From 6cd43a7e84ce40cdc1ac82057a5f8cd50a7f8b10 Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Tue, 4 Jun 2024 20:04:54 +0200 Subject: [PATCH] Bump dependencies and dist --- dist/capture-policy/index.js | 32 +- dist/capture-policy/index.js.map | 2 +- dist/capture-policy/licenses.txt | 257 ++++- dist/index.js | 4 +- dist/index.js.map | 2 +- dist/licenses.txt | 47 + package.json | 2 +- pnpm-lock.yaml | 1584 +++++++++++++++++------------- 8 files changed, 1210 insertions(+), 720 deletions(-) diff --git a/dist/capture-policy/index.js b/dist/capture-policy/index.js index 72bfb96..f1709fa 100644 --- a/dist/capture-policy/index.js +++ b/dist/capture-policy/index.js @@ -1,4 +1,4 @@ -require('./sourcemap-register.js');(()=>{var __webpack_modules__={1767:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__exportStar||function(r,i){for(var a in r)if(a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a))s(i,r,a)};Object.defineProperty(i,"__esModule",{value:true});const p=a(6254);l(a(305),i);l(a(2857),i);l(a(6254),i);const c=new p.DefaultArtifactClient;i["default"]=c},5969:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const s=a(5926);const l=a(5926);const p=a(5926);const c=a(5926);const d=a(5926);const u=a(5926);const h=a(5926);class Timestamp$Type extends h.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 a=r.getTime();i.seconds=u.PbLong.from(Math.floor(a/1e3)).toString();i.nanos=a%1e3*1e6;return i}internalJsonWrite(r,i){let a=u.PbLong.from(r.seconds).toNumber()*1e3;if(aDate.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 s="Z";if(r.nanos>0){let i=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")s="."+i.substring(0,3)+"Z";else if(i.substring(6)==="000")s="."+i.substring(0,6)+"Z";else s="."+i+"Z"}return new Date(a).toISOString().replace(".000Z",s)}internalJsonRead(r,i,a){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,d.typeofJsonValue)(r)+".");let s=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(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let l=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[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(!a)a=this.create();a.seconds=u.PbLong.from(l/1e3).toString();a.nanos=0;if(s[7])a.nanos=parseInt("1"+s[7]+"0".repeat(9-s[7].length))-1e9;return a}create(r){const i={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,c.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,s){let p=s!==null&&s!==void 0?s:this.create(),c=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 s=a(5926);const l=a(5926);const p=a(5926);const c=a(5926);const d=a(5926);const u=a(5926);const h=a(5926);class DoubleValue$Type extends h.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,a){if(!a)a=this.create();a.value=this.refJsonReader.scalar(r,1,undefined,"value");return a}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,a,s){let l=s!==null&&s!==void 0?s:this.create(),p=r.pos+i;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ArtifactService=i.DeleteArtifactResponse=i.DeleteArtifactRequest=i.GetSignedArtifactURLResponse=i.GetSignedArtifactURLRequest=i.ListArtifactsResponse_MonolithArtifact=i.ListArtifactsResponse=i.ListArtifactsRequest=i.FinalizeArtifactResponse=i.FinalizeArtifactRequest=i.CreateArtifactResponse=i.CreateArtifactRequest=void 0;const s=a(3979);const l=a(5926);const p=a(5926);const c=a(5926);const d=a(5926);const u=a(5926);const h=a(814);const g=a(814);const y=a(5969);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:()=>y.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,c.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,s){let l=s!==null&&s!==void 0?s:this.create(),c=r.pos+i;while(r.posg.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,c.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,s){let l=s!==null&&s!==void 0?s:this.create(),c=r.pos+i;while(r.posg.StringValue},{no:4,name:"id_filter",kind:"message",T:()=>h.Int64Value}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:""};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,c.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,s){let l=s!==null&&s!==void 0?s:this.create(),c=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,c.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,a,s,l){let c=l!==null&&l!==void 0?l:this.create(),d=r.pos+a;while(r.posy.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,c.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,s){let l=s!==null&&s!==void 0?s:this.create(),c=r.pos+i;while(r.posp.CreateArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}FinalizeArtifact(r){const i=p.FinalizeArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",i);return a.then((r=>p.FinalizeArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}ListArtifacts(r){const i=p.ListArtifactsRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",i);return a.then((r=>p.ListArtifactsResponse.fromJson(r,{ignoreUnknownFields:true})))}GetSignedArtifactURL(r){const i=p.GetSignedArtifactURLRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",i);return a.then((r=>p.GetSignedArtifactURLResponse.fromJson(r,{ignoreUnknownFields:true})))}DeleteArtifact(r){const i=p.DeleteArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",i);return a.then((r=>p.DeleteArtifactResponse.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);this.DeleteArtifact.bind(this)}CreateArtifact(r){const i=p.CreateArtifactRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/protobuf",i);return a.then((r=>p.CreateArtifactResponse.fromBinary(r)))}FinalizeArtifact(r){const i=p.FinalizeArtifactRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/protobuf",i);return a.then((r=>p.FinalizeArtifactResponse.fromBinary(r)))}ListArtifacts(r){const i=p.ListArtifactsRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/protobuf",i);return a.then((r=>p.ListArtifactsResponse.fromBinary(r)))}GetSignedArtifactURL(r){const i=p.GetSignedArtifactURLRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/protobuf",i);return a.then((r=>p.GetSignedArtifactURLResponse.fromBinary(r)))}DeleteArtifact(r){const i=p.DeleteArtifactRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/protobuf",i);return a.then((r=>p.DeleteArtifactResponse.fromBinary(r)))}}i.ArtifactServiceClientProtobuf=ArtifactServiceClientProtobuf;var c;(function(r){r["CreateArtifact"]="CreateArtifact";r["FinalizeArtifact"]="FinalizeArtifact";r["ListArtifacts"]="ListArtifacts";r["GetSignedArtifactURL"]="GetSignedArtifactURL";r["DeleteArtifact"]="DeleteArtifact"})(c||(i.ArtifactServiceMethod=c={}));i.ArtifactServiceMethodList=[c.CreateArtifact,c.FinalizeArtifact,c.ListArtifacts,c.GetSignedArtifactURL,c.DeleteArtifact];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,a,l,p)=>s(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"CreateArtifact"});yield i.onMatch(r);return handleArtifactServiceCreateArtifactRequest(r,a,l,p)}));case"FinalizeArtifact":return(r,a,l,p)=>s(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"FinalizeArtifact"});yield i.onMatch(r);return handleArtifactServiceFinalizeArtifactRequest(r,a,l,p)}));case"ListArtifacts":return(r,a,l,p)=>s(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"ListArtifacts"});yield i.onMatch(r);return handleArtifactServiceListArtifactsRequest(r,a,l,p)}));case"GetSignedArtifactURL":return(r,a,l,p)=>s(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"GetSignedArtifactURL"});yield i.onMatch(r);return handleArtifactServiceGetSignedArtifactURLRequest(r,a,l,p)}));case"DeleteArtifact":return(r,a,l,p)=>s(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"DeleteArtifact"});yield i.onMatch(r);return handleArtifactServiceDeleteArtifactRequest(r,a,l,p)}));default:i.onNotFound();const r=`no handler found`;throw new l.TwirpError(l.TwirpErrorCode.BadRoute,r)}}function handleArtifactServiceCreateArtifactRequest(r,i,a,s){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceCreateArtifactJSON(r,i,a,s);case l.TwirpContentType.Protobuf:return handleArtifactServiceCreateArtifactProtobuf(r,i,a,s);default:const p="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,p)}}function handleArtifactServiceFinalizeArtifactRequest(r,i,a,s){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceFinalizeArtifactJSON(r,i,a,s);case l.TwirpContentType.Protobuf:return handleArtifactServiceFinalizeArtifactProtobuf(r,i,a,s);default:const p="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,p)}}function handleArtifactServiceListArtifactsRequest(r,i,a,s){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceListArtifactsJSON(r,i,a,s);case l.TwirpContentType.Protobuf:return handleArtifactServiceListArtifactsProtobuf(r,i,a,s);default:const p="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,p)}}function handleArtifactServiceGetSignedArtifactURLRequest(r,i,a,s){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceGetSignedArtifactURLJSON(r,i,a,s);case l.TwirpContentType.Protobuf:return handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,a,s);default:const p="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,p)}}function handleArtifactServiceDeleteArtifactRequest(r,i,a,s){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceDeleteArtifactJSON(r,i,a,s);case l.TwirpContentType.Protobuf:return handleArtifactServiceDeleteArtifactProtobuf(r,i,a,s);default:const p="unexpected Content-Type";throw new l.TwirpError(l.TwirpErrorCode.BadRoute,p)}}function handleArtifactServiceCreateArtifactJSON(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{const r=JSON.parse(a.toString()||"{}");s=p.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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.CreateArtifact(r,a)))}else{d=yield i.CreateArtifact(r,s)}return JSON.stringify(p.CreateArtifactResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceFinalizeArtifactJSON(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{const r=JSON.parse(a.toString()||"{}");s=p.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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.FinalizeArtifact(r,a)))}else{d=yield i.FinalizeArtifact(r,s)}return JSON.stringify(p.FinalizeArtifactResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceListArtifactsJSON(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{const r=JSON.parse(a.toString()||"{}");s=p.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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.ListArtifacts(r,a)))}else{d=yield i.ListArtifacts(r,s)}return JSON.stringify(p.ListArtifactsResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceGetSignedArtifactURLJSON(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{const r=JSON.parse(a.toString()||"{}");s=p.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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.GetSignedArtifactURL(r,a)))}else{d=yield i.GetSignedArtifactURL(r,s)}return JSON.stringify(p.GetSignedArtifactURLResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceDeleteArtifactJSON(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{const r=JSON.parse(a.toString()||"{}");s=p.DeleteArtifactRequest.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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.DeleteArtifact(r,a)))}else{d=yield i.DeleteArtifact(r,s)}return JSON.stringify(p.DeleteArtifactResponse.toJson(d,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceCreateArtifactProtobuf(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{s=p.CreateArtifactRequest.fromBinary(a)}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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.CreateArtifact(r,a)))}else{d=yield i.CreateArtifact(r,s)}return Buffer.from(p.CreateArtifactResponse.toBinary(d))}))}function handleArtifactServiceFinalizeArtifactProtobuf(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{s=p.FinalizeArtifactRequest.fromBinary(a)}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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.FinalizeArtifact(r,a)))}else{d=yield i.FinalizeArtifact(r,s)}return Buffer.from(p.FinalizeArtifactResponse.toBinary(d))}))}function handleArtifactServiceListArtifactsProtobuf(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{s=p.ListArtifactsRequest.fromBinary(a)}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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.ListArtifacts(r,a)))}else{d=yield i.ListArtifacts(r,s)}return Buffer.from(p.ListArtifactsResponse.toBinary(d))}))}function handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{s=p.GetSignedArtifactURLRequest.fromBinary(a)}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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.GetSignedArtifactURL(r,a)))}else{d=yield i.GetSignedArtifactURL(r,s)}return Buffer.from(p.GetSignedArtifactURLResponse.toBinary(d))}))}function handleArtifactServiceDeleteArtifactProtobuf(r,i,a,c){return s(this,void 0,void 0,(function*(){let s;let d;try{s=p.DeleteArtifactRequest.fromBinary(a)}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(c&&c.length>0){const a=(0,l.chainInterceptors)(...c);d=yield a(r,s,((r,a)=>i.DeleteArtifact(r,a)))}else{d=yield i.DeleteArtifact(r,s)}return Buffer.from(p.DeleteArtifactResponse.toBinary(d))}))}},6254:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};var l=this&&this.__rest||function(r,i){var a={};for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&i.indexOf(s)<0)a[s]=r[s];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var l=0,s=Object.getOwnPropertySymbols(r);l1){d=c.artifacts.sort(((r,i)=>Number(i.databaseId)-Number(r.databaseId)))[0];(0,l.debug)(`More than one artifact found for a single name, returning newest (id: ${d.databaseId})`)}const u={workflowRunBackendId:d.workflowRunBackendId,workflowJobRunBackendId:d.workflowJobRunBackendId,name:d.name};const h=yield i.DeleteArtifact(u);(0,l.info)(`Artifact '${r}' (ID: ${h.artifactId}) deleted`);return{id:Number(h.artifactId)}}))}i.deleteArtifactInternal=deleteArtifactInternal},2199:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.downloadArtifactInternal=i.downloadArtifactPublic=i.streamExtractExternal=void 0;const u=d(a(3292));const h=p(a(2781));const g=a(7147);const y=p(a(1017));const b=p(a(5207));const v=p(a(9093));const w=p(a(3021));const x=d(a(8851));const S=a(5752);const _=a(6833);const T=a(2515);const N=a(4577);const P=a(517);const O=a(2857);const scrubQueryParameters=r=>{const i=new URL(r);i.search="";return i.toString()};function exists(r){return c(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 c(this,void 0,void 0,(function*(){let a=0;while(a<5){try{yield streamExtractExternal(r,i);return}catch(r){if(r.message.includes("Malformed extraction path")){throw new Error(`Artifact download failed with unretryable error: ${r.message}`)}a++;v.debug(`Failed to download artifact after ${a} retries due to ${r.message}. Retrying in 5 seconds...`);yield new Promise((r=>setTimeout(r,5e3)))}}throw new Error(`Artifact download failed after ${a} retries.`)}))}function streamExtractExternal(r,i){return c(this,void 0,void 0,(function*(){const a=new w.HttpClient((0,S.getUserAgentString)());const s=yield a.get(r);if(s.message.statusCode!==200){throw new Error(`Unexpected HTTP response from blob storage: ${s.message.statusCode} ${s.message.statusMessage}`)}const l=30*1e3;return new Promise(((r,a)=>{const timerFn=()=>{s.message.destroy(new Error(`Blob storage chunk did not respond in ${l}ms`))};const p=setTimeout(timerFn,l);const d=new Set;d.add(i);s.message.on("data",(()=>{p.refresh()})).on("error",(r=>{v.debug(`response.message: Artifact download failed: ${r.message}`);clearTimeout(p);a(r)})).pipe(x.default.Parse()).pipe(new h.Transform({objectMode:true,transform:(r,s,l)=>c(this,void 0,void 0,(function*(){const s=y.normalize(y.join(i,r.path));if(!i.endsWith(y.sep)){i+=y.sep}if(!s.startsWith(i)){a(new Error(`Malformed extraction path: ${s}`))}if(r.type==="Directory"){if(!d.has(s)){d.add(s);yield resolveOrCreateDirectory(s).then((()=>{r.autodrain();l()}))}else{r.autodrain();l()}}else{v.info(`Extracting artifact entry: ${s}`);if(!d.has(y.dirname(s))){d.add(y.dirname(s));yield resolveOrCreateDirectory(y.dirname(s))}const i=(0,g.createWriteStream)(s);i.on("finish",l);i.on("error",a);r.pipe(i)}}))})).on("finish",(()=>c(this,void 0,void 0,(function*(){clearTimeout(p);r()})))).on("error",(r=>{a(r)}))}))}))}i.streamExtractExternal=streamExtractExternal;function downloadArtifactPublic(r,i,a,s,l){return c(this,void 0,void 0,(function*(){const p=yield resolveOrCreateDirectory(l===null||l===void 0?void 0:l.path);const c=b.getOctokit(s);v.info(`Downloading artifact '${r}' from '${i}/${a}'`);const{headers:d,status:u}=yield c.rest.actions.downloadArtifact({owner:i,repo:a,artifact_id:r,archive_format:"zip",request:{redirect:"manual"}});if(u!==302){throw new Error(`Unable to download artifact. Unexpected status: ${u}`)}const{location:h}=d;if(!h){throw new Error(`Unable to redirect to artifact download url`)}v.info(`Redirecting to blob download url: ${scrubQueryParameters(h)}`);try{v.info(`Starting download of artifact to: ${p}`);yield streamExtract(h,p);v.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:p}}))}i.downloadArtifactPublic=downloadArtifactPublic;function downloadArtifactInternal(r,i){return c(this,void 0,void 0,(function*(){const a=yield resolveOrCreateDirectory(i===null||i===void 0?void 0:i.path);const s=(0,T.internalArtifactTwirpClient)();const{workflowRunBackendId:l,workflowJobRunBackendId:p}=(0,P.getBackendIdsFromToken)();const c={workflowRunBackendId:l,workflowJobRunBackendId:p,idFilter:N.Int64Value.create({value:r.toString()})};const{artifacts:d}=yield s.ListArtifacts(c);if(d.length===0){throw new O.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){v.warning("Multiple artifacts found, defaulting to first.")}const u={workflowRunBackendId:d[0].workflowRunBackendId,workflowJobRunBackendId:d[0].workflowJobRunBackendId,name:d[0].name};const{signedUrl:h}=yield s.GetSignedArtifactURL(u);v.info(`Redirecting to blob download url: ${scrubQueryParameters(h)}`);try{v.info(`Starting download of artifact to: ${a}`);yield streamExtract(h,a);v.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:a}}))}i.downloadArtifactInternal=downloadArtifactInternal;function resolveOrCreateDirectory(r=(0,_.getGitHubWorkspaceDir)()){return c(this,void 0,void 0,(function*(){if(!(yield exists(r))){v.debug(`Artifact destination folder does not exist, creating: ${r}`);yield u.default.mkdir(r,{recursive:true})}else{v.debug(`Artifact destination folder already exists: ${r}`)}return r}))}},5574:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getArtifactInternal=i.getArtifactPublic=void 0;const d=a(5207);const u=a(2872);const h=p(a(9093));const g=a(2894);const y=a(2344);const b=a(5675);const v=a(517);const w=a(5752);const x=a(2515);const S=a(4577);const _=a(2857);function getArtifactPublic(r,i,a,s,l){var p;return c(this,void 0,void 0,(function*(){const[c,v]=(0,y.getRetryOptions)(g.defaults);const x={log:undefined,userAgent:(0,w.getUserAgentString)(),previews:undefined,retry:c,request:v};const S=(0,d.getOctokit)(l,x,u.retry,b.requestLog);const T=yield S.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:a,repo:s,run_id:i,name:r});if(T.status!==200){throw new _.InvalidResponseError(`Invalid response from GitHub API: ${T.status} (${(p=T===null||T===void 0?void 0:T.headers)===null||p===void 0?void 0:p["x-github-request-id"]})`)}if(T.data.artifacts.length===0){throw new _.ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let N=T.data.artifacts[0];if(T.data.artifacts.length>1){N=T.data.artifacts.sort(((r,i)=>i.id-r.id))[0];h.debug(`More than one artifact found for a single name, returning newest (id: ${N.id})`)}return{artifact:{name:N.name,id:N.id,size:N.size_in_bytes,createdAt:N.created_at?new Date(N.created_at):undefined}}}))}i.getArtifactPublic=getArtifactPublic;function getArtifactInternal(r){return c(this,void 0,void 0,(function*(){const i=(0,x.internalArtifactTwirpClient)();const{workflowRunBackendId:a,workflowJobRunBackendId:s}=(0,v.getBackendIdsFromToken)();const l={workflowRunBackendId:a,workflowJobRunBackendId:s,nameFilter:S.StringValue.create({value:r})};const p=yield i.ListArtifacts(l);if(p.artifacts.length===0){throw new _.ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let c=p.artifacts[0];if(p.artifacts.length>1){c=p.artifacts.sort(((r,i)=>Number(i.databaseId)-Number(r.databaseId)))[0];h.debug(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)}return{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?S.Timestamp.toDate(c.createdAt):undefined}}}))}i.getArtifactInternal=getArtifactInternal},7103:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.listArtifactsInternal=i.listArtifactsPublic=void 0;const l=a(9093);const p=a(5207);const c=a(5752);const d=a(2344);const u=a(2894);const h=a(5675);const g=a(2872);const y=a(2515);const b=a(517);const v=a(4577);const w=1e3;const x=100;const S=w/x;function listArtifactsPublic(r,i,a,y,b=false){return s(this,void 0,void 0,(function*(){(0,l.info)(`Fetching artifact list for workflow run ${r} in repository ${i}/${a}`);let s=[];const[v,_]=(0,d.getRetryOptions)(u.defaults);const T={log:undefined,userAgent:(0,c.getUserAgentString)(),previews:undefined,retry:v,request:_};const N=(0,p.getOctokit)(y,T,g.retry,h.requestLog);let P=1;const{data:O}=yield N.rest.actions.listWorkflowRunArtifacts({owner:i,repo:a,run_id:r,per_page:x,page:P});let R=Math.ceil(O.total_count/x);const C=O.total_count;if(C>w){(0,l.warning)(`Workflow run ${r} has more than 1000 artifacts. Results will be incomplete as only the first ${w} artifacts will be returned`);R=S}for(const r of O.artifacts){s.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined})}for(P;P({name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?v.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 a=new Set;for(const s of r){if(!a.has(s.name)){i.push(s);a.add(s.name)}}return i}},2344:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getRetryOptions=void 0;const c=p(a(9093));const d=5;const u=[400,401,403,404,422];function getRetryOptions(r,i=d,a=u){var s;if(i<=0){return[{enabled:false},r.request]}const l={enabled:true};if(a.length>0){l.doNotRetry=a}const p=Object.assign(Object.assign({},r.request),{retries:i});c.debug(`GitHub client configured with: (retries: ${p.retries}, retry-exempt-status-code: ${(s=l.doNotRetry)!==null&&s!==void 0?s:"octokit default: [400, 401, 403, 404, 422]"})`);return[l,p]}i.getRetryOptions=getRetryOptions},2515:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.internalArtifactTwirpClient=void 0;const l=a(3021);const p=a(2418);const c=a(9093);const d=a(4577);const u=a(6833);const h=a(5752);const g=a(2857);class ArtifactHttpClient{constructor(r,i,a,s){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const c=(0,u.getRuntimeToken)();this.baseUrl=(0,u.getResultsServiceUrl)();if(i){this.maxAttempts=i}if(a){this.baseRetryIntervalMilliseconds=a}if(s){this.retryMultiplier=s}this.httpClient=new l.HttpClient(r,[new p.BearerCredentialHandler(c)])}request(r,i,a,l){return s(this,void 0,void 0,(function*(){const p=new URL(`/twirp/${r}/${i}`,this.baseUrl).href;(0,c.debug)(`[Request] ${i} ${p}`);const d={"Content-Type":a};try{const{body:r}=yield this.retryableRequest((()=>s(this,void 0,void 0,(function*(){return this.httpClient.post(p,JSON.stringify(l),d)}))));return r}catch(r){throw new Error(`Failed to ${i}: ${r.message}`)}}))}retryableRequest(r){return s(this,void 0,void 0,(function*(){let i=0;let a="";let s="";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 s(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 a=i*this.retryMultiplier;return Math.trunc(Math.random()*(a-i)+i)}}function internalArtifactTwirpClient(r){const i=new ArtifactHttpClient((0,h.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},6833:function(r,i,a){"use strict";var s=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=s(a(2037));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");const i=r.hostname.trimEnd().toUpperCase();const a=i==="GITHUB.COM";const s=i.endsWith(".GHE.COM")||i.endsWith(".GHE.LOCALHOST");return!a&&!s}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},2857:(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")}},305:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true})},5752:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getUserAgentString=void 0;const s=a(7685);function getUserAgentString(){return`@actions/artifact-${s.version}`}i.getUserAgentString=getUserAgentString},517:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.getBackendIdsFromToken=void 0;const d=p(a(9093));const u=a(6833);const h=c(a(1003));const g=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,h.default)(r);if(!i.scp){throw g}const a=i.scp.split(" ");if(a.length===0){throw g}for(const r of a){const i=r.split(":");if((i===null||i===void 0?void 0:i[0])!=="Actions.Results"){continue}if(i.length!==3){throw g}const a={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};d.debug(`Workflow Run Backend ID: ${a.workflowRunBackendId}`);d.debug(`Workflow Job Run Backend ID: ${a.workflowJobRunBackendId}`);return a}throw g}i.getBackendIdsFromToken=getBackendIdsFromToken},7687:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.uploadZipToBlobStorage=void 0;const d=a(5542);const u=a(6833);const h=p(a(9093));const g=p(a(6113));const y=p(a(2781));const b=a(2857);function uploadZipToBlobStorage(r,i){return c(this,void 0,void 0,(function*(){let a=0;let s=Date.now();let l;const chunkTimer=r=>{if(l){clearTimeout(l)}l=setTimeout((()=>{const i=Date.now();if(i-s>r){throw new Error("Upload progress stalled.")}}),r);return l};const p=(0,u.getConcurrency)();const c=(0,u.getUploadChunkSize)();const v=new d.BlobClient(r);const w=v.getBlockBlobClient();const x=3e5;h.debug(`Uploading artifact zip to blob storage with maxConcurrency: ${p}, bufferSize: ${c}`);const uploadCallback=r=>{h.info(`Uploaded bytes ${r.loadedBytes}`);a=r.loadedBytes;chunkTimer(x);s=Date.now()};const S={blobHTTPHeaders:{blobContentType:"zip"},onProgress:uploadCallback};let _=undefined;const T=new y.PassThrough;const N=g.createHash("sha256");i.pipe(T);i.pipe(N).setEncoding("hex");h.info("Beginning upload of artifact content to blob storage");try{l=chunkTimer(x);yield w.uploadStream(T,c,p,S)}catch(r){if(b.NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new b.NetworkError(r===null||r===void 0?void 0:r.code)}throw r}finally{if(l){clearTimeout(l)}}h.info("Finished uploading artifact content to blob storage!");N.end();_=N.read();h.info(`SHA256 hash of uploaded artifact zip is ${_}`);if(a===0){h.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:a,sha256Hash:_}}))}i.uploadZipToBlobStorage=uploadZipToBlobStorage},9069:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateFilePath=i.validateArtifactName=void 0;const s=a(9093);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 p=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,a]of p){if(r.includes(i)){throw new Error(`The artifact name is not valid: ${r}. Contains the following character: ${a}\n \nInvalid characters include: ${Array.from(p.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,s.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,a]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: ${a}\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},1503:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getExpiration=void 0;const c=a(4577);const d=p(a(9093));function getExpiration(r){if(!r){return undefined}const i=getRetentionDays();if(i&&ir.sourcePath?[r.sourcePath]:[])))}const p=(0,b.getBackendIdsFromToken)();const c=(0,g.internalArtifactTwirpClient)();const _={workflowRunBackendId:p.workflowRunBackendId,workflowJobRunBackendId:p.workflowJobRunBackendId,name:r,version:4};const T=(0,u.getExpiration)(s===null||s===void 0?void 0:s.retentionDays);if(T){_.expiresAt=T}const N=yield c.CreateArtifact(_);if(!N.ok){throw new S.InvalidResponseError("CreateArtifact: response from backend was not ok")}const P=yield(0,w.createZipUploadStream)(l,s===null||s===void 0?void 0:s.compressionLevel);const O=yield(0,v.uploadZipToBlobStorage)(N.signedUploadUrl,P);const R={workflowRunBackendId:p.workflowRunBackendId,workflowJobRunBackendId:p.workflowJobRunBackendId,name:r,size:O.uploadSize?O.uploadSize.toString():"0"};if(O.sha256Hash){R.hash=x.StringValue.create({value:`sha256:${O.sha256Hash}`})}d.info(`Finalizing artifact upload`);const C=yield c.FinalizeArtifact(R);if(!C.ok){throw new S.InvalidResponseError("FinalizeArtifact: response from backend was not ok")}const k=BigInt(C.artifactId);d.info(`Artifact ${r}.zip successfully finalized. Artifact ID ${k}`);return{size:O.uploadSize,id:Number(k)}}))}i.uploadArtifact=uploadArtifact},593:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getUploadZipSpecification=i.validateRootDirectory=void 0;const c=p(a(7147));const d=a(9093);const u=a(1017);const h=a(9069);function validateRootDirectory(r){if(!c.existsSync(r)){throw new Error(`The provided rootDirectory ${r} does not exist`)}if(!c.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 a=[];i=(0,u.normalize)(i);i=(0,u.resolve)(i);for(let s of r){if(!c.existsSync(s)){throw new Error(`File ${s} does not exist`)}if(!c.statSync(s).isDirectory()){s=(0,u.normalize)(s);s=(0,u.resolve)(s);if(!s.startsWith(i)){throw new Error(`The rootDirectory: ${i} is not a parent directory of the file: ${s}`)}const r=s.replace(i,"");(0,h.validateFilePath)(r);a.push({sourcePath:s,destinationPath:r})}else{const r=s.replace(i,"");(0,h.validateFilePath)(r);a.push({sourcePath:null,destinationPath:r})}}return a}i.getUploadZipSpecification=getUploadZipSpecification},1791:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.createZipUploadStream=i.ZipUploadStream=i.DEFAULT_COMPRESSION_LEVEL=void 0;const d=p(a(2781));const u=p(a(3572));const h=p(a(9093));const g=a(7147);const y=a(6833);i.DEFAULT_COMPRESSION_LEVEL=6;class ZipUploadStream extends d.Transform{constructor(r){super({highWaterMark:r})}_transform(r,i,a){a(null,r)}}i.ZipUploadStream=ZipUploadStream;function createZipUploadStream(r,a=i.DEFAULT_COMPRESSION_LEVEL){return c(this,void 0,void 0,(function*(){h.debug(`Creating Artifact archive with compressionLevel: ${a}`);const i=u.create("zip",{highWaterMark:(0,y.getUploadChunkSize)(),zlib:{level:a}});i.on("error",zipErrorCallback);i.on("warning",zipWarningCallback);i.on("finish",zipFinishCallback);i.on("end",zipEndCallback);for(const a of r){if(a.sourcePath!==null){i.append((0,g.createReadStream)(a.sourcePath),{name:a.destinationPath})}else{i.append("",{name:a.destinationPath})}}const s=(0,y.getUploadChunkSize)();const l=new ZipUploadStream(s);h.debug(`Zip write high watermark value ${l.writableHighWaterMark}`);h.debug(`Zip read high watermark value ${l.readableHighWaterMark}`);i.pipe(l);i.finalize();return l}))}i.createZipUploadStream=createZipUploadStream;const zipErrorCallback=r=>{h.error("An error has occurred while creating the zip file for upload");h.info(r);throw new Error("An error has occurred during zip creation for the artifact")};const zipWarningCallback=r=>{if(r.code==="ENOENT"){h.warning("ENOENT warning during artifact zip creation. No such file or directory");h.info(r)}else{h.warning(`A non-blocking warning has occurred during artifact zip creation: ${r.code}`);h.info(r)}};const zipFinishCallback=()=>{h.debug("Zip stream for upload has finished.")};const zipEndCallback=()=>{h.debug("Zip stream for upload has ended.")}},1513:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.issue=i.issueCommand=void 0;const c=p(a(2037));const d=a(1120);function issueCommand(r,i,a){const s=new Command(r,i,a);process.stdout.write(s.toString()+c.EOL)}i.issueCommand=issueCommand;function issue(r,i=""){issueCommand(r,{},i)}i.issue=issue;const u="::";class Command{constructor(r,i,a){if(!r){r="missing.command"}this.command=r;this.properties=i;this.message=a}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let i=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const s=this.properties[a];if(s){if(i){i=false}else{r+=","}r+=`${a}=${escapeProperty(s)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function escapeData(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},9093:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getIDToken=i.getState=i.saveState=i.group=i.endGroup=i.startGroup=i.info=i.notice=i.warning=i.error=i.debug=i.isDebug=i.setFailed=i.setCommandEcho=i.setOutput=i.getBooleanInput=i.getMultilineInput=i.getInput=i.addPath=i.setSecret=i.exportVariable=i.ExitCode=void 0;const d=a(1513);const u=a(9017);const h=a(1120);const g=p(a(2037));const y=p(a(1017));const b=a(9141);var v;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(v=i.ExitCode||(i.ExitCode={}));function exportVariable(r,i){const a=h.toCommandValue(i);process.env[r]=a;const s=process.env["GITHUB_ENV"]||"";if(s){return u.issueFileCommand("ENV",u.prepareKeyValueMessage(r,i))}d.issueCommand("set-env",{name:r},a)}i.exportVariable=exportVariable;function setSecret(r){d.issueCommand("add-mask",{},r)}i.setSecret=setSecret;function addPath(r){const i=process.env["GITHUB_PATH"]||"";if(i){u.issueFileCommand("PATH",r)}else{d.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${y.delimiter}${process.env["PATH"]}`}i.addPath=addPath;function getInput(r,i){const a=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(i&&i.required&&!a){throw new Error(`Input required and not supplied: ${r}`)}if(i&&i.trimWhitespace===false){return a}return a.trim()}i.getInput=getInput;function getMultilineInput(r,i){const a=getInput(r,i).split("\n").filter((r=>r!==""));if(i&&i.trimWhitespace===false){return a}return a.map((r=>r.trim()))}i.getMultilineInput=getMultilineInput;function getBooleanInput(r,i){const a=["true","True","TRUE"];const s=["false","False","FALSE"];const l=getInput(r,i);if(a.includes(l))return true;if(s.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 a=process.env["GITHUB_OUTPUT"]||"";if(a){return u.issueFileCommand("OUTPUT",u.prepareKeyValueMessage(r,i))}process.stdout.write(g.EOL);d.issueCommand("set-output",{name:r},h.toCommandValue(i))}i.setOutput=setOutput;function setCommandEcho(r){d.issue("echo",r?"on":"off")}i.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=v.Failure;error(r)}i.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}i.isDebug=isDebug;function debug(r){d.issueCommand("debug",{},r)}i.debug=debug;function error(r,i={}){d.issueCommand("error",h.toCommandProperties(i),r instanceof Error?r.toString():r)}i.error=error;function warning(r,i={}){d.issueCommand("warning",h.toCommandProperties(i),r instanceof Error?r.toString():r)}i.warning=warning;function notice(r,i={}){d.issueCommand("notice",h.toCommandProperties(i),r instanceof Error?r.toString():r)}i.notice=notice;function info(r){process.stdout.write(r+g.EOL)}i.info=info;function startGroup(r){d.issue("group",r)}i.startGroup=startGroup;function endGroup(){d.issue("endgroup")}i.endGroup=endGroup;function group(r,i){return c(this,void 0,void 0,(function*(){startGroup(r);let a;try{a=yield i()}finally{endGroup()}return a}))}i.group=group;function saveState(r,i){const a=process.env["GITHUB_STATE"]||"";if(a){return u.issueFileCommand("STATE",u.prepareKeyValueMessage(r,i))}d.issueCommand("save-state",{name:r},h.toCommandValue(i))}i.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}i.getState=getState;function getIDToken(r){return c(this,void 0,void 0,(function*(){return yield b.OidcClient.getIDToken(r)}))}i.getIDToken=getIDToken;var w=a(5276);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return w.summary}});var x=a(5276);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return x.markdownSummary}});var S=a(670);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return S.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return S.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return S.toPlatformPath}})},9017:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.prepareKeyValueMessage=i.issueFileCommand=void 0;const c=p(a(7147));const d=p(a(2037));const u=a(7338);const h=a(1120);function issueFileCommand(r,i){const a=process.env[`GITHUB_${r}`];if(!a){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!c.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}c.appendFileSync(a,`${h.toCommandValue(i)}${d.EOL}`,{encoding:"utf8"})}i.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,i){const a=`ghadelimiter_${u.v4()}`;const s=h.toCommandValue(i);if(r.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(s.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${r}<<${a}${d.EOL}${s}${d.EOL}${a}`}i.prepareKeyValueMessage=prepareKeyValueMessage},9141:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.OidcClient=void 0;const l=a(3021);const p=a(2418);const c=a(9093);class OidcClient{static createHttpClient(r=true,i=10){const a={allowRetries:r,maxRetries:i};return new l.HttpClient("actions/oidc-client",[new p.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var i;return s(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const s=yield a.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const l=(i=s.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 s(this,void 0,void 0,(function*(){try{let i=OidcClient.getIDTokenUrl();if(r){const a=encodeURIComponent(r);i=`${i}&audience=${a}`}c.debug(`ID token url is ${i}`);const a=yield OidcClient.getCall(i);c.setSecret(a);return a}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}i.OidcClient=OidcClient},670:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.toPlatformPath=i.toWin32Path=i.toPosixPath=void 0;const c=p(a(1017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}i.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}i.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,c.sep)}i.toPlatformPath=toPlatformPath},5276:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.summary=i.markdownSummary=i.SUMMARY_DOCS_URL=i.SUMMARY_ENV_VAR=void 0;const l=a(2037);const p=a(7147);const{access:c,appendFile:d,writeFile:u}=p.promises;i.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";i.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return s(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[i.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${i.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield c(r,p.constants.R_OK|p.constants.W_OK)}catch(i){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,i,a={}){const s=Object.entries(a).map((([r,i])=>` ${r}="${i}"`)).join("");if(!i){return`<${r}${s}>`}return`<${r}${s}>${i}`}write(r){return s(this,void 0,void 0,(function*(){const i=!!(r===null||r===void 0?void 0:r.overwrite);const a=yield this.filePath();const s=i?u:d;yield s(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return s(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,i=false){this._buffer+=r;return i?this.addEOL():this}addEOL(){return this.addRaw(l.EOL)}addCodeBlock(r,i){const a=Object.assign({},i&&{lang:i});const s=this.wrap("pre",this.wrap("code",r),a);return this.addRaw(s).addEOL()}addList(r,i=false){const a=i?"ol":"ul";const s=r.map((r=>this.wrap("li",r))).join("");const l=this.wrap(a,s);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:a,colspan:s,rowspan:l}=r;const p=i?"th":"td";const c=Object.assign(Object.assign({},s&&{colspan:s}),l&&{rowspan:l});return this.wrap(p,a,c)})).join("");return this.wrap("tr",i)})).join("");const a=this.wrap("table",i);return this.addRaw(a).addEOL()}addDetails(r,i){const a=this.wrap("details",this.wrap("summary",r)+i);return this.addRaw(a).addEOL()}addImage(r,i,a){const{width:s,height:l}=a||{};const p=Object.assign(Object.assign({},s&&{width:s}),l&&{height:l});const c=this.wrap("img",null,Object.assign({src:r,alt:i},p));return this.addRaw(c).addEOL()}addHeading(r,i){const a=`h${i}`;const s=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const l=this.wrap(s,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 a=Object.assign({},i&&{cite:i});const s=this.wrap("blockquote",r,a);return this.addRaw(s).addEOL()}addLink(r,i){const a=this.wrap("a",r,{href:i});return this.addRaw(a).addEOL()}}const h=new Summary;i.markdownSummary=h;i.summary=h},1120:(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},8476:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Context=void 0;const s=a(7147);const l=a(2037);class Context{constructor(){var r,i,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(s.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(s.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=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`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},5207:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokit=i.context=void 0;const c=p(a(8476));const d=a(2894);i.context=new c.Context;function getOctokit(r,i,...a){const s=d.GitHub.plugin(...a);return new s(d.getOctokitOptions(r,i))}i.getOctokit=getOctokit},6911:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getApiBaseUrl=i.getProxyAgent=i.getAuthString=void 0;const c=p(a(3021));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 c.HttpClient;return i.getAgent(r)}i.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.getApiBaseUrl=getApiBaseUrl},2894:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokitOptions=i.GitHub=i.defaults=i.context=void 0;const c=p(a(8476));const d=p(a(6911));const u=a(2205);const h=a(3492);const g=a(3785);i.context=new c.Context;const y=d.getApiBaseUrl();i.defaults={baseUrl:y,request:{agent:d.getProxyAgent(y)}};i.GitHub=u.Octokit.plugin(h.restEndpointMethods,g.paginateRest).defaults(i.defaults);function getOctokitOptions(r,i){const a=Object.assign({},i||{});const s=d.getAuthString(r,a);if(s){a.auth=s}return a}i.getOctokitOptions=getOctokitOptions},2418:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.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 a(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 a(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 a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},3021:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.HttpClient=i.isHttps=i.HttpClientResponse=i.HttpClientError=i.getProxyUrl=i.MediaTypes=i.Headers=i.HttpCodes=void 0;const d=p(a(3685));const u=p(a(5687));const h=p(a(3343));const g=p(a(4225));var y;(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"})(y=i.HttpCodes||(i.HttpCodes={}));var b;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(b=i.Headers||(i.Headers={}));var v;(function(r){r["ApplicationJson"]="application/json"})(v=i.MediaTypes||(i.MediaTypes={}));function getProxyUrl(r){const i=h.getProxyUrl(new URL(r));return i?i.href:""}i.getProxyUrl=getProxyUrl;const w=[y.MovedPermanently,y.ResourceMoved,y.SeeOther,y.TemporaryRedirect,y.PermanentRedirect];const x=[y.BadGateway,y.ServiceUnavailable,y.GatewayTimeout];const S=["OPTIONS","GET","DELETE","HEAD"];const _=10;const T=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 c(this,void 0,void 0,(function*(){return new Promise((r=>c(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 c(this,void 0,void 0,(function*(){return new Promise((r=>c(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,a){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=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(r,i){return c(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,i||{})}))}get(r,i){return c(this,void 0,void 0,(function*(){return this.request("GET",r,null,i||{})}))}del(r,i){return c(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,i||{})}))}post(r,i,a){return c(this,void 0,void 0,(function*(){return this.request("POST",r,i,a||{})}))}patch(r,i,a){return c(this,void 0,void 0,(function*(){return this.request("PATCH",r,i,a||{})}))}put(r,i,a){return c(this,void 0,void 0,(function*(){return this.request("PUT",r,i,a||{})}))}head(r,i){return c(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,i||{})}))}sendStream(r,i,a,s){return c(this,void 0,void 0,(function*(){return this.request(r,i,a,s)}))}getJson(r,i={}){return c(this,void 0,void 0,(function*(){i[b.Accept]=this._getExistingOrDefaultHeader(i,b.Accept,v.ApplicationJson);const a=yield this.get(r,i);return this._processResponse(a,this.requestOptions)}))}postJson(r,i,a={}){return c(this,void 0,void 0,(function*(){const s=JSON.stringify(i,null,2);a[b.Accept]=this._getExistingOrDefaultHeader(a,b.Accept,v.ApplicationJson);a[b.ContentType]=this._getExistingOrDefaultHeader(a,b.ContentType,v.ApplicationJson);const l=yield this.post(r,s,a);return this._processResponse(l,this.requestOptions)}))}putJson(r,i,a={}){return c(this,void 0,void 0,(function*(){const s=JSON.stringify(i,null,2);a[b.Accept]=this._getExistingOrDefaultHeader(a,b.Accept,v.ApplicationJson);a[b.ContentType]=this._getExistingOrDefaultHeader(a,b.ContentType,v.ApplicationJson);const l=yield this.put(r,s,a);return this._processResponse(l,this.requestOptions)}))}patchJson(r,i,a={}){return c(this,void 0,void 0,(function*(){const s=JSON.stringify(i,null,2);a[b.Accept]=this._getExistingOrDefaultHeader(a,b.Accept,v.ApplicationJson);a[b.ContentType]=this._getExistingOrDefaultHeader(a,b.ContentType,v.ApplicationJson);const l=yield this.patch(r,s,a);return this._processResponse(l,this.requestOptions)}))}request(r,i,a,s){return c(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const l=new URL(i);let p=this._prepareRequest(r,l,s);const c=this._allowRetries&&S.includes(r)?this._maxRetries+1:1;let d=0;let u;do{u=yield this.requestRaw(p,a);if(u&&u.message&&u.message.statusCode===y.Unauthorized){let r;for(const i of this.handlers){if(i.canHandleAuthentication(u)){r=i;break}}if(r){return r.handleAuthentication(this,p,a)}else{return u}}let i=this._maxRedirects;while(u.message.statusCode&&w.includes(u.message.statusCode)&&this._allowRedirects&&i>0){const c=u.message.headers["location"];if(!c){break}const d=new URL(c);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 s){if(r.toLowerCase()==="authorization"){delete s[r]}}}p=this._prepareRequest(r,d,s);u=yield this.requestRaw(p,a);i--}if(!u.message.statusCode||!x.includes(u.message.statusCode)){return u}d+=1;if(d{function callbackForResult(r,i){if(r){s(r)}else if(!i){s(new Error("Unknown error"))}else{a(i)}}this.requestRawWithCallback(r,i,callbackForResult)}))}))}requestRawWithCallback(r,i,a){if(typeof i==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(i,"utf8")}let s=false;function handleResult(r,i){if(!s){s=true;a(r,i)}}const l=r.httpModule.request(r.options,(r=>{const i=new HttpClientResponse(r);handleResult(undefined,i)}));let p;l.on("socket",(r=>{p=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(p){p.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)}_prepareRequest(r,i,a){const s={};s.parsedUrl=i;const l=s.parsedUrl.protocol==="https:";s.httpModule=l?u:d;const p=l?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):p;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=r;s.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(s.options)}}return s}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,i,a){let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[i]}return r[i]||s||a}_getAgent(r){let i;const a=h.getProxyUrl(r);const s=a&&a.hostname;if(this._keepAlive&&s){i=this._proxyAgent}if(this._keepAlive&&!s){i=this._agent}if(i){return i}const l=r.protocol==="https:";let p=100;if(this.requestOptions){p=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(a&&a.hostname){const r={maxSockets:p,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let s;const c=a.protocol==="https:";if(l){s=c?g.httpsOverHttps:g.httpsOverHttp}else{s=c?g.httpOverHttps:g.httpOverHttp}i=s(r);this._proxyAgent=i}if(this._keepAlive&&!i){const r={keepAlive:this._keepAlive,maxSockets:p};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}_performExponentialBackoff(r){return c(this,void 0,void 0,(function*(){r=Math.min(_,r);const i=T*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),i)))}))}_processResponse(r,i){return c(this,void 0,void 0,(function*(){return new Promise(((a,s)=>c(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const p={statusCode:l,result:null,headers:{}};if(l===y.NotFound){a(p)}function dateTimeDeserializer(r,i){if(typeof i==="string"){const r=new Date(i);if(!isNaN(r.valueOf())){return r}}return i}let c;let d;try{d=yield r.readBody();if(d&&d.length>0){if(i&&i.deserializeDates){c=JSON.parse(d,dateTimeDeserializer)}else{c=JSON.parse(d)}p.result=c}p.headers=r.message.headers}catch(r){}if(l>299){let r;if(c&&c.message){r=c.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${l})`}const i=new HttpClientError(r,l);i.result=p.result;s(i)}else{a(p)}}))))}))}}i.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((i,a)=>(i[a.toLowerCase()]=r[a],i)),{})},3343:(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 a=(()=>{if(i){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){try{return new URL(a)}catch(r){if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}}else{return undefined}}i.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const i=r.hostname;if(isLoopbackAddress(i)){return true}const a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let s;if(r.port){s=Number(r.port)}else if(r.protocol==="http:"){s=80}else if(r.protocol==="https:"){s=443}const l=[r.hostname.toUpperCase()];if(typeof s==="number"){l.push(`${l[0]}:${s}`)}for(const r of a.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]")}},4732:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=new WeakMap;const s=new WeakMap;class AbortSignal{constructor(){this.onabort=null;a.set(this,[]);s.set(this,false)}get aborted(){if(!s.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return s.get(this)}static get none(){return new AbortSignal}addEventListener(r,i){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const s=a.get(this);s.push(i)}removeEventListener(r,i){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const s=a.get(this);const l=s.indexOf(i);if(l>-1){s.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=a.get(r);if(i){i.slice().forEach((i=>{i.call(r,{type:"abort"})}))}s.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 a=setTimeout(abortSignal,r,i);if(typeof a.unref==="function"){a.unref()}return i}}i.AbortController=AbortController;i.AbortError=AbortError;i.AbortSignal=AbortSignal},1264:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(665);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 s.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 s.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},9808:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(7338);var l=a(3837);var p=a(3134);var c=a(1136);var d=a(665);var u=a(1267);var h=a(1264);var g=a(2037);var y=a(3685);var b=a(5687);var v=a(4732);var w=a(4225);var x=a(2781);var S=a(6698);var _=a(8761);var T=a(9011);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(a){if(a!=="default"){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,s.get?s:{enumerable:true,get:function(){return r[a]}})}}))}i["default"]=r;return Object.freeze(i)}var N=_interopNamespace(c);var P=_interopNamespace(g);var O=_interopNamespace(y);var R=_interopNamespace(b);var C=_interopNamespace(w);var k=_interopDefaultLegacy(S);var A=_interopDefaultLegacy(_);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 a=0;a{a=a.then(r)}));return a}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,a,s){if(!Array.isArray(r)){r=[r]}if(!a||!s){return{[i]:r}}const l={[i]:r};l[I]={[a]:s};return l}function applyMixins(r,i){const a=r;i.forEach((r=>{Object.getOwnPropertyNames(r.prototype).forEach((i=>{a.prototype[i]=r.prototype[i]}))}))}const M=/^(-|\+)?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 M.test(r)}function replaceAll(r,i,a){return!r||!i?r:r.split(i).join(a||"")}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,a){const failValidation=(r,s)=>{throw new Error(`"${a}" with value "${i}" should satisfy the constraint "${r}": ${s}.`)};if(r.constraints&&i!=undefined){const a=i;const{ExclusiveMaximum:s,ExclusiveMinimum:l,InclusiveMaximum:p,InclusiveMinimum:c,MaxItems:d,MaxLength:u,MinItems:h,MinLength:g,MultipleOf:y,Pattern:b,UniqueItems:v}=r.constraints;if(s!=undefined&&a>=s){failValidation("ExclusiveMaximum",s)}if(l!=undefined&&a<=l){failValidation("ExclusiveMinimum",l)}if(p!=undefined&&a>p){failValidation("InclusiveMaximum",p)}if(c!=undefined&&ad){failValidation("MaxItems",d)}if(u!=undefined&&w.length>u){failValidation("MaxLength",u)}if(h!=undefined&&w.lengtha.indexOf(r)!==i))){failValidation("UniqueItems",v)}}}serialize(r,i,a,s={}){var l,p,c;const d={rootName:(l=s.rootName)!==null&&l!==void 0?l:"",includeRoot:(p=s.includeRoot)!==null&&p!==void 0?p:false,xmlCharKey:(c=s.xmlCharKey)!==null&&c!==void 0?c:L};let u={};const h=r.type.name;if(!a){a=r.serializedName}if(h.match(/^Sequence$/i)!==null){u=[]}if(r.isConstant){i=r.defaultValue}const{required:g,nullable:y}=r;if(g&&y&&i===undefined){throw new Error(`${a} cannot be undefined.`)}if(g&&!y&&i==undefined){throw new Error(`${a} cannot be null or undefined.`)}if(!g&&y===false&&i===null){throw new Error(`${a} cannot be null.`)}if(i==undefined){u=i}else{if(h.match(/^any$/i)!==null){u=i}else if(h.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){u=serializeBasicTypes(h,a,i)}else if(h.match(/^Enum$/i)!==null){const s=r;u=serializeEnumType(a,s.type.allowedValues,i)}else if(h.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){u=serializeDateTypes(h,i,a)}else if(h.match(/^ByteArray$/i)!==null){u=serializeByteArrayType(a,i)}else if(h.match(/^Base64Url$/i)!==null){u=serializeBase64UrlType(a,i)}else if(h.match(/^Sequence$/i)!==null){u=serializeSequenceType(this,r,i,a,Boolean(this.isXML),d)}else if(h.match(/^Dictionary$/i)!==null){u=serializeDictionaryType(this,r,i,a,Boolean(this.isXML),d)}else if(h.match(/^Composite$/i)!==null){u=serializeCompositeType(this,r,i,a,Boolean(this.isXML),d)}}return u}deserialize(r,i,a,s={}){var l,p,c;const d={rootName:(l=s.rootName)!==null&&l!==void 0?l:"",includeRoot:(p=s.includeRoot)!==null&&p!==void 0?p:false,xmlCharKey:(c=s.xmlCharKey)!==null&&c!==void 0?c:L};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 h=r.type.name;if(!a){a=r.serializedName}if(h.match(/^Composite$/i)!==null){u=deserializeCompositeType(this,r,i,a,d)}else{if(this.isXML){const r=d.xmlCharKey;const a=i;if(a[I]!=undefined&&a[r]!=undefined){i=a[r]}}if(h.match(/^Number$/i)!==null){u=parseFloat(i);if(isNaN(u)){u=i}}else if(h.match(/^Boolean$/i)!==null){if(i==="true"){u=true}else if(i==="false"){u=false}else{u=i}}else if(h.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){u=i}else if(h.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){u=new Date(i)}else if(h.match(/^UnixTime$/i)!==null){u=unixTimeToDate(i)}else if(h.match(/^ByteArray$/i)!==null){u=decodeString(i)}else if(h.match(/^Base64Url$/i)!==null){u=base64UrlToByteArray(i)}else if(h.match(/^Sequence$/i)!==null){u=deserializeSequenceType(this,r,i,a,d)}else if(h.match(/^Dictionary$/i)!==null){u=deserializeDictionaryType(this,r,i,a,d)}}if(r.isConstant){u=r.defaultValue}return u}}function trimEnd(r,i){let a=r.length;while(a-1>=0&&r[a-1]===i){--a}return r.substr(0,a)}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 a="";if(r){const s=r.split(".");for(const r of s){if(r.charAt(r.length-1)==="\\"){a+=r.substr(0,r.length-1)+"."}else{a+=r;i.push(a);a=""}}}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,a){if(a!==null&&a!==undefined){if(r.match(/^Number$/i)!==null){if(typeof a!=="number"){throw new Error(`${i} with value ${a} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof a.valueOf()!=="string"){throw new Error(`${i} with value "${a}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof a.valueOf()==="string"&&isValidUuid(a))){throw new Error(`${i} with value "${a}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof a!=="boolean"){throw new Error(`${i} with value ${a} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof a;if(r!=="string"&&r!=="function"&&!(a instanceof ArrayBuffer)&&!ArrayBuffer.isView(a)&&!((typeof Blob==="function"||typeof Blob==="object")&&a instanceof Blob)){throw new Error(`${i} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return a}function serializeEnumType(r,i,a){if(!i){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const s=i.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===a.toLowerCase()}return r===a}));if(!s){throw new Error(`${a} is not a valid value for ${r}. The valid values are: ${JSON.stringify(i)}.`)}return a}function serializeByteArrayType(r,i){let a="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}a=encodeByteArray(i)}return a}function serializeBase64UrlType(r,i){let a="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}a=bufferToBase64Url(i)||""}return a}function serializeDateTypes(r,i,a){if(i!=undefined){if(r.match(/^Date$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${a} 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(`${a} 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(`${a} 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(`${a} 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(`${a} must be a string in ISO 8601 format. Instead was "${i}".`)}}}return i}function serializeSequenceType(r,i,a,s,l,p){if(!Array.isArray(a)){throw new Error(`${s} must be of type Array.`)}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 ${s}.`)}const d=[];for(let i=0;ir!==l));if(d){c[l]=r.serialize(u,a[l],s+'["'+l+'"]',p)}}}return c}return a}function getXmlObjectValue(r,i,a,s){if(!a||!r.xmlNamespace){return i}const l=r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns";const p={[l]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(i[I]){return i}else{const r=Object.assign({},i);r[I]=p;return r}}const c={};c[s.xmlCharKey]=i;c[I]=p;return c}function isSpecialXmlProperty(r,i){return[I,i.xmlCharKey].includes(r)}function deserializeCompositeType(r,i,a,s,l){var p,c;const d=(p=l.xmlCharKey)!==null&&p!==void 0?p:L;if(getPolymorphicDiscriminatorRecursively(r,i)){i=getPolymorphicMapper(r,i,a,"serializedName")}const u=resolveModelProperties(r,i,s);let h={};const g=[];for(const p of Object.keys(u)){const y=u[p];const b=splitSerializeName(u[p].serializedName);g.push(b[0]);const{serializedName:v,xmlName:w,xmlElementName:x}=y;let S=s;if(v!==""&&v!==undefined){S=s+"."+v}const _=y.headerCollectionPrefix;if(_){const i={};for(const s of Object.keys(a)){if(s.startsWith(_)){i[s.substring(_.length)]=r.deserialize(y.type.value,a[s],S,l)}g.push(s)}h[p]=i}else if(r.isXML){if(y.xmlIsAttribute&&a[I]){h[p]=r.deserialize(y,a[I][w],S,l)}else if(y.xmlIsMsText){if(a[d]!==undefined){h[p]=a[d]}else if(typeof a==="string"){h[p]=a}}else{const i=x||w||v;if(y.xmlIsWrapped){const i=a[w];const s=(c=i===null||i===void 0?void 0:i[x])!==null&&c!==void 0?c:[];h[p]=r.deserialize(y,s,S,l);g.push(w)}else{const s=a[i];h[p]=r.deserialize(y,s,S,l);g.push(i)}}}else{let s;let c=a;for(const r of b){if(!c)break;c=c[r]}s=c;const d=i.type.polymorphicDiscriminator;if(d&&p===d.clientName&&s==undefined){s=i.serializedName}let g;if(Array.isArray(a[p])&&u[p].serializedName===""){s=a[p];const i=r.deserialize(y,s,S,l);for(const[r,a]of Object.entries(h)){if(!Object.prototype.hasOwnProperty.call(i,r)){i[r]=a}}h=i}else if(s!==undefined||y.defaultValue!==undefined){g=r.deserialize(y,s,S,l);h[p]=g}}}const y=i.type.additionalProperties;if(y){const isAdditionalProperty=r=>{for(const i in u){const a=splitSerializeName(u[i].serializedName);if(a[0]===r){return false}}return true};for(const i in a){if(isAdditionalProperty(i)){h[i]=r.deserialize(y,a[i],s+'["'+i+'"]',l)}}}else if(a){for(const r of Object.keys(a)){if(h[r]===undefined&&!g.includes(r)&&!isSpecialXmlProperty(r,l)){h[r]=a[r]}}}return h}function deserializeDictionaryType(r,i,a,s,l){const p=i.type.value;if(!p||typeof p!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${s}`)}if(a){const i={};for(const c of Object.keys(a)){i[c]=r.deserialize(p,a[c],s,l)}return i}return a}function deserializeSequenceType(r,i,a,s,l){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 ${s}`)}if(a){if(!Array.isArray(a)){a=[a]}const i=[];for(let c=0;c0}keys(){return Object.keys(this._rawQuery)}set(r,i){const a=i;if(r){if(a!==undefined&&a!==null){const i=Array.isArray(a)?a:a.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 a=this._rawQuery[i];if(Array.isArray(a)){const s=[];for(const r of a){s.push(`${i}=${r}`)}r+=s.join("&")}else{r+=`${i}=${a}`}}return r}static parse(r){const i=new URLQuery;if(r){if(r.startsWith("?")){r=r.substring(1)}let a="ParameterName";let s="";let l="";for(let p=0;pisAlphaNumericCharacter(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,a){const s=URLBuilder.parse(i.host).getHost();if(!s){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:s,port:i.port,headers:a&&a.rawHeaders()||{}}};if(i.username&&i.password){l.proxy.proxyAuth=`${i.username}:${i.password}`}else if(i.username){l.proxy.proxyAuth=`${i.username}`}const p=isUrlHttps(r);const c=isUrlHttps(i.host);const d={isHttps:p,agent:createTunnel(p,c,l)};return d}function isUrlHttps(r){const i=URLBuilder.parse(r).getScheme()||"";return i.toLowerCase()==="https"}function createTunnel(r,i,a){if(r&&i){return C.httpsOverHttps(a)}else if(r&&!i){return C.httpsOverHttp(a)}else if(!r&&i){return C.httpOverHttps(a)}else{return C.httpOverHttp(a)}}function isValidPort(r){return 0<=r&&r<=65535}const z="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 q=["api-version"];class Sanitizer{constructor({allowedHeaderNames:r=[],allowedQueryParameters:i=[]}={}){r=Array.isArray(r)?U.concat(r):U;i=Array.isArray(i)?q.concat(i):q;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,a)=>{if(a instanceof Error){return Object.assign(Object.assign({},a),{name:a.name,message:a.message})}if(r==="_headersMap"){return this.sanitizeHeaders(a)}else if(r==="url"){return this.sanitizeUrl(a)}else if(r==="query"){return this.sanitizeQuery(a)}else if(r==="body"){return undefined}else if(r==="response"){return undefined}else if(r==="operationSpec"){return undefined}else if(Array.isArray(a)||isObject(a)){if(i.has(a)){return"[Circular]"}i.add(a)}return a}),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,a){if(typeof r!=="object"||r===null){return r}const s={};for(const l of Object.keys(r)){if(i.has(l.toLowerCase())){s[l]=a(r,l)}else{s[l]=z}}return s}sanitizeUrl(r){if(typeof r!=="string"||r===null){return r}const i=URLBuilder.parse(r);const a=i.getQuery();if(!a){return r}const s=URLQuery.parse(a);for(const r of s.keys()){if(!this.allowedQueryParameters.has(r.toLowerCase())){s.set(r,z)}}i.setQuery(s.toString());return i.toString()}}const H=l.inspect.custom;const V=new Sanitizer;class RestError extends Error{constructor(r,i,a,s,l){super(r);this.name="RestError";this.code=i;this.statusCode=a;this.request=s;this.response=l;Object.setPrototypeOf(this,RestError.prototype)}[H](){return`RestError: ${this.message} \n ${V.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const G=u.createClientLogger("core-http");function getCachedAgent(r,i){return r?i.httpsAgent:i.httpAgent}class ReportTransform extends x.Transform{constructor(r){super();this.progressCallback=r;this.loadedBytes=0}_transform(r,i,a){this.push(r);this.loadedBytes+=r.length;this.progressCallback({loadedBytes:this.loadedBytes});a(undefined)}}function isReadableStream(r){return r&&typeof r.pipe==="function"}function isStreamComplete(r,i){return new Promise((a=>{r.once("close",(()=>{i===null||i===void 0?void 0:i.abort();a()}));r.once("end",a);r.once("error",a)}))}function parseHeaders(r){const i=new HttpHeaders;r.forEach(((r,a)=>{i.set(a,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 a=new v.AbortController;let s;if(r.abortSignal){if(r.abortSignal.aborted){throw new v.AbortError("The operation was aborted.")}s=r=>{if(r.type==="abort"){a.abort()}};r.abortSignal.addEventListener("abort",s)}if(r.timeout){setTimeout((()=>{a.abort()}),r.timeout)}if(r.formData){const i=r.formData;const a=new k["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")){a.append(r,i.value,i.options)}else{a.append(r,i)}};for(const r of Object.keys(i)){const a=i[r];if(Array.isArray(a)){for(let i=0;i{var i;(i=r.abortSignal)===null||i===void 0?void 0:i.removeEventListener("abort",s);return})).catch((r=>{G.warning("Error when cleaning up abortListener on httpRequest",r)}))}}}getOrCreateAgent(r){var i;const a=isUrlHttps(r.url);if(r.proxySettings){const{host:s,port:l,username:p,password:c}=r.proxySettings;const d=`${s}:${l}:${p}:${c}`;const u=(i=this.proxyAgentMap.get(d))!==null&&i!==void 0?i:{};let h=getCachedAgent(a,u);if(h){return h}const g=createProxyAgent(r.url,r.proxySettings,r.headers);h=g.agent;if(g.isHttps){u.httpsAgent=g.agent}else{u.httpAgent=g.agent}this.proxyAgentMap.set(d,u);return h}else if(r.keepAlive){let i=getCachedAgent(a,this.keepAliveAgents);if(i){return i}const s={keepAlive:r.keepAlive};if(a){i=this.keepAliveAgents.httpsAgent=new R.Agent(s)}else{i=this.keepAliveAgents.httpAgent=new O.Agent(s)}return i}else{return a?R.globalAgent:O.globalAgent}}async fetch(r,i){return A["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:a}=r,s=p.__rest(r,["requestOptions","tracingOptions"]);let l=s;if(i){l=Object.assign(Object.assign({},l),i)}if(a){l.tracingContext=a.tracingContext;l.spanOptions=a===null||a===void 0?void 0:a.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 W={explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:I,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 $=Object.assign({},W);$.explicitArray=false;const X=Object.assign({},W);X.explicitArray=false;X.renderOpts={pretty:false};function stringifyXML(r,i={}){var a;X.rootName=i.rootName;X.charkey=(a=i.xmlCharKey)!==null&&a!==void 0?a:L;const s=new N.Builder(X);return s.buildObject(r)}function parseXML(r,i={}){var a;$.explicitRoot=!!i.includeRoot;$.charkey=(a=i.xmlCharKey)!==null&&a!==void 0?a:L;const s=new N.Parser($);return new Promise(((i,a)=>{if(!r){a(new Error("Document is empty"))}else{s.parseString(r,((r,s)=>{if(r){a(r)}else{i(s)}}))}}))}function deserializationPolicy(r,i){return{create:(a,s)=>new DeserializationPolicy(a,s,r,i)}}const K=["application/json","text/json"];const J=["application/xml","application/atom+xml"];const Q={expectedContentTypes:{json:K,xml:J}};class DeserializationPolicy extends BaseRequestPolicy{constructor(r,i,a,s={}){var l;super(r,i);this.jsonContentTypes=a&&a.json||K;this.xmlContentTypes=a&&a.xml||J;this.xmlCharKey=(l=s.xmlCharKey)!==null&&l!==void 0?l:L}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 a=r.request;const s=a.operationSpec;if(s){const l=a.operationResponseGetter;if(!l){i=s.responses[r.status]}else{i=l(s,r)}}return i}function shouldDeserializeResponse(r){const i=r.request.shouldDeserialize;let a;if(i===undefined){a=true}else if(typeof i==="boolean"){a=i}else{a=i(r)}return a}function deserializeResponseBody(r,i,a,s={}){var l,p,c;const d={rootName:(l=s.rootName)!==null&&l!==void 0?l:"",includeRoot:(p=s.includeRoot)!==null&&p!==void 0?p:false,xmlCharKey:(c=s.xmlCharKey)!==null&&c!==void 0?c:L};return parse(r,i,a,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:p,shouldReturnResponse:c}=handleErrorResponse(r,i,l);if(p){throw p}else if(c){return r}if(l){if(l.bodyMapper){let a=r.parsedBody;if(i.isXML&&l.bodyMapper.type.name===j.Sequence){a=typeof a==="object"?a[l.bodyMapper.xmlElementName]:[]}try{r.parsedBody=i.serializer.deserialize(l.bodyMapper,a,"operationRes.parsedBody",s)}catch(i){const a=new RestError(`Error ${i} occurred in deserializing the responseBody - ${r.bodyAsText}`,undefined,r.status,r.request,r);throw a}}else if(i.httpMethod==="HEAD"){r.parsedBody=a.status>=200&&a.status<300}if(l.headersMapper){r.parsedHeaders=i.serializer.deserialize(l.headersMapper,r.headers.toJson(),"operationRes.parsedHeaders",s)}}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,a){var s;const l=200<=r.status&&r.status<300;const p=isOperationSpecEmpty(i)?l:!!a;if(p){if(a){if(!a.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const c=a!==null&&a!==void 0?a:i.responses.default;const d=((s=r.request.streamResponseStatusCodes)===null||s===void 0?void 0:s.has(r.status))||r.request.streamResponseBody;const u=d?`Unexpected status code: ${r.status}`:r.bodyAsText;const h=new RestError(u,undefined,r.status,r.request,r);if(!c){throw h}const g=c.bodyMapper;const y=c.headersMapper;try{if(r.parsedBody){const a=r.parsedBody;let s;if(g){let r=a;if(i.isXML&&g.type.name===j.Sequence){r=typeof a==="object"?a[g.xmlElementName]:[]}s=i.serializer.deserialize(g,r,"error.response.parsedBody")}const l=a.error||s||a;h.code=l.code;if(l.message){h.message=l.message}if(g){h.response.parsedBody=s}}if(r.headers&&y){h.response.parsedHeaders=i.serializer.deserialize(y,r.headers.toJson(),"operationRes.parsedHeaders")}}catch(i){h.message=`Error "${i.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:h,shouldReturnResponse:false}}function parse(r,i,a,s){var l;const errorHandler=r=>{const i=`Error "${r}" occurred while parsing the response body - ${a.bodyAsText}.`;const s=r.code||RestError.PARSE_ERROR;const l=new RestError(i,s,a.status,a.request,a);return Promise.reject(l)};const p=((l=a.request.streamResponseStatusCodes)===null||l===void 0?void 0:l.has(a.status))||a.request.streamResponseBody;if(!p&&a.bodyAsText){const l=a.bodyAsText;const p=a.headers.get("Content-Type")||"";const c=!p?[]:p.split(";").map((r=>r.toLowerCase()));if(c.length===0||c.some((i=>r.indexOf(i)!==-1))){return new Promise((r=>{a.parsedBody=JSON.parse(l);r(a)})).catch(errorHandler)}else if(c.some((r=>i.indexOf(r)!==-1))){return parseXML(l,s).then((r=>{a.parsedBody=r;return a})).catch(errorHandler)}}return Promise.resolve(a)}const Y={enable:true};function keepAlivePolicy(r){return{create:(i,a)=>new KeepAlivePolicy(i,a,r||Y)}}class KeepAlivePolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this.keepAliveOptions=a}async sendRequest(r){r.keepAlive=this.keepAliveOptions.enable;return this._nextPolicy.sendRequest(r)}}const Z=["GET","HEAD"];const ee={handleRedirects:true,maxRetries:20};function redirectPolicy(r=20){return{create:(i,a)=>new RedirectPolicy(i,a,r)}}class RedirectPolicy extends BaseRequestPolicy{constructor(r,i,a=20){super(r,i);this.maxRetries=a}sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>handleRedirect(this,r,0)))}}function handleRedirect(r,i,a){const{request:s,status:l}=i;const p=i.headers.get("location");if(p&&(l===300||l===301&&Z.includes(s.method)||l===302&&Z.includes(s.method)||l===303&&s.method==="POST"||l===307)&&(!r.maxRetries||ahandleRedirect(r,i,a+1)))}return Promise.resolve(i)}const te=3;const re=1e3*30;const ie=1e3*90;const ne=1e3*3;function isNumber(r){return typeof r==="number"}function shouldRetry(r,i,a,s,l){if(!i(s,l)){return false}return a.retryCountnew ExponentialRetryPolicy(s,l,r,i,a)}}i.RetryMode=void 0;(function(r){r[r["Exponential"]=0]="Exponential"})(i.RetryMode||(i.RetryMode={}));const ae={maxRetries:te,retryDelayInMs:re,maxRetryDelayInMs:ie};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(r,i,a,s,l){super(r,i);this.retryCount=isNumber(a)?a:te;this.retryInterval=isNumber(s)?s:re;this.maxRetryInterval=isNumber(l)?l:ie}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,a,s,l){function shouldPolicyRetry(r){const i=r===null||r===void 0?void 0:r.status;if(i===503&&(a===null||a===void 0?void 0:a.headers.get(D.HeaderConstants.RETRY_AFTER))){return false}if(i===undefined||i<500&&i!==408||i===501||i===505){return false}return true}s=updateRetryData({retryInterval:r.retryInterval,minRetryInterval:0,maxRetryInterval:r.maxRetryInterval},s,l);const p=i.abortSignal&&i.abortSignal.aborted;if(!p&&shouldRetry(r.retryCount,shouldPolicyRetry,s,a)){G.info(`Retrying request in ${s.retryInterval}`);try{await d.delay(s.retryInterval);const a=await r._nextPolicy.sendRequest(i.clone());return retry$1(r,i,a,s)}catch(l){return retry$1(r,i,a,s,l)}}else if(p||l||!a){const r=s.error||new RestError("Failed to send the request.",RestError.REQUEST_SEND_ERROR,a&&a.status,a&&a.request,a);throw r}else{return a}}function logPolicy(r={}){return{create:(i,a)=>new LogPolicy(i,a,r)}}class LogPolicy extends BaseRequestPolicy{constructor(r,i,{logger:a=G.info,allowedHeaderNames:s=[],allowedQueryParameters:l=[]}={}){super(r,i);this.logger=a;this.sanitizer=new Sanitizer({allowedHeaderNames:s,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 a;if(typeof r==="string"){a=r}else if(Array.isArray(r)){a=r.join(".")}else{a=i.serializedName}return a}function getStreamResponseStatusCodes(r){const i=new Set;for(const a in r.responses){const s=r.responses[a];if(s.bodyMapper&&s.bodyMapper.type.name===j.Stream){i.add(Number(a))}}return i}function getDefaultUserAgentKey(){return D.HeaderConstants.USER_AGENT}function getPlatformSpecificData(){const r={key:"Node",value:process.version};const i={key:"OS",value:`(${P.arch()}-${P.type()}-${P.release()})`};return[r,i]}function getRuntimeInfo(){const r={key:"core-http",value:D.coreHttpVersion};return[r]}function getUserAgentString(r,i=" ",a="/"){return r.map((r=>{const i=r.value?`${a}${r.value}`:"";return`${r.key}${i}`})).join(i)}const se=getDefaultUserAgentKey;function getDefaultUserAgentValue(){const r=getRuntimeInfo();const i=getPlatformSpecificData();const a=getUserAgentString(r.concat(i));return a}function userAgentPolicy(r){const i=!r||r.key===undefined||r.key===null?getDefaultUserAgentKey():r.key;const a=!r||r.value===undefined||r.value===null?getDefaultUserAgentValue():r.value;return{create:(r,s)=>new UserAgentPolicy(r,s,i,a)}}class UserAgentPolicy extends BaseRequestPolicy{constructor(r,i,a,s){super(r,i);this._nextPolicy=r;this._options=i;this.headerKey=a;this.headerValue=s}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 oe={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,a){async function tryGetAccessToken(){if(Date.now()r.getToken(i,a);s=beginRefresh(tryGetAccessToken,p.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{s=null;l=r;return l})).catch((r=>{s=null;l=null;throw r}))}return s}return async r=>{if(c.mustRefresh)return refresh(r);if(c.shouldRefresh){refresh(r)}return l}}function bearerTokenAuthenticationPolicy(r,i){const a=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 a({abortSignal:r.abortSignal,tracingOptions:{tracingContext:r.tracingContext}});r.headers.set(D.HeaderConstants.AUTHORIZATION,`Bearer ${i}`);return this._nextPolicy.sendRequest(r)}}return{create:(r,i)=>new BearerTokenAuthenticationPolicy(r,i)}}function disableResponseDecompressionPolicy(){return{create:(r,i)=>new DisableResponseDecompressionPolicy(r,i)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){r.decompressResponse=false;return this._nextPolicy.sendRequest(r)}}function generateClientRequestIdPolicy(r="x-ms-client-request-id"){return{create:(i,a)=>new GenerateClientRequestIdPolicy(i,a,r)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this._requestIdHeaderName=a}sendRequest(r){if(!r.headers.contains(this._requestIdHeaderName)){r.headers.set(this._requestIdHeaderName,r.requestId)}return this._nextPolicy.sendRequest(r)}}let le;function getCachedDefaultHttpClient(){if(!le){le=new NodeFetchHttpClient}return le}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 pe=[];let ce=false;const de=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(D.HTTPS_PROXY);const i=getEnvironmentValue(D.ALL_PROXY);const a=getEnvironmentValue(D.HTTP_PROXY);return r||i||a}function isBypassed(r,i,a){if(i.length===0){return false}const s=URLBuilder.parse(r).getHost();if(a===null||a===void 0?void 0:a.has(s)){return a.get(s)}let l=false;for(const r of i){if(r[0]==="."){if(s.endsWith(r)){l=true}else{if(s.length===r.length-1&&s===r.slice(1)){l=true}}}else{if(s===r){l=true}}}a===null||a===void 0?void 0:a.set(s,l);return l}function loadNoProxy(){const r=getEnvironmentValue(D.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:a,urlWithoutAuth:s}=extractAuthFromUrl(r);const l=URLBuilder.parse(s);const p=l.getScheme()?l.getScheme()+"://":"";return{host:p+l.getHost(),port:Number.parseInt(l.getPort()||"80"),username:i,password:a}}function proxyPolicy(r,i){if(!r){r=getDefaultProxySettings()}if(!ce){pe.push(...loadNoProxy())}return{create:(a,s)=>new ProxyPolicy(a,s,r,i===null||i===void 0?void 0:i.customNoProxyList)}}function extractAuthFromUrl(r){const i=r.indexOf("@");if(i===-1){return{urlWithoutAuth:r}}const a=r.indexOf("://");const s=a!==-1?a+3:0;const l=r.substring(s,i);const p=l.indexOf(":");const c=p!==-1;const d=c?l.substring(0,p):l;const u=c?l.substring(p+1):undefined;const h=r.substring(0,s)+r.substring(i+1);return{username:d,password:u,urlWithoutAuth:h}}class ProxyPolicy extends BaseRequestPolicy{constructor(r,i,a,s){super(r,i);this.proxySettings=a;this.customNoProxyList=s}sendRequest(r){var i;if(!r.proxySettings&&!isBypassed(r.url,(i=this.customNoProxyList)!==null&&i!==void 0?i:pe,this.customNoProxyList?undefined:de)){r.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(r)}}function rpRegistrationPolicy(r=30){return{create:(i,a)=>new RPRegistrationPolicy(i,a,r)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(r,i,a=30){super(r,i);this._retryTimeout=a}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>registerIfNeeded(this,r,i)))}}function registerIfNeeded(r,i,a){if(a.status===409){const s=checkRPNotRegisteredError(a.bodyAsText);if(s){const l=extractSubscriptionUrl(i.url);return registerRP(r,l,s,i).catch((()=>false)).then((s=>{if(s){i.headers.set("x-ms-client-request-id",generateUuid());return r._nextPolicy.sendRequest(i.clone())}return a}))}}return Promise.resolve(a)}function getRequestEssentials(r,i=false){const a=r.clone();if(i){a.url=r.url}a.headers.set("x-ms-client-request-id",generateUuid());a.headers.set("Content-Type","application/json; charset=utf-8");return a}function checkRPNotRegisteredError(r){let i,a;if(r){try{a=JSON.parse(r)}catch(r){}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){const r=a.error.message.match(/.*'(.*)'/i);if(r){i=r.pop()}}}return i}function extractSubscriptionUrl(r){let i;const a=r.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0]){i=a[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${r}.`)}return i}async function registerRP(r,i,a,s){const l=`${i}providers/${a}/register?api-version=2016-02-01`;const p=`${i}providers/${a}?api-version=2016-02-01`;const c=getRequestEssentials(s);c.method="POST";c.url=l;const d=await r._nextPolicy.sendRequest(c);if(d.status!==200){throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`)}return getRegistrationStatus(r,p,s)}async function getRegistrationStatus(r,i,a){const s=getRequestEssentials(a);s.url=i;s.method="GET";const l=await r._nextPolicy.sendRequest(s);const p=l.parsedBody;if(l.parsedBody&&p.registrationState&&p.registrationState==="Registered"){return true}else{await d.delay(r._retryTimeout*1e3);return getRegistrationStatus(r,i,a)}}function signingPolicy(r){return{create:(i,a)=>new SigningPolicy(i,a,r)}}class SigningPolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this.authenticationProvider=a}signRequest(r){return this.authenticationProvider.signRequest(r)}sendRequest(r){return this.signRequest(r).then((r=>this._nextPolicy.sendRequest(r)))}}function systemErrorRetryPolicy(r,i,a,s){return{create:(l,p)=>new SystemErrorRetryPolicy(l,p,r,i,a,s)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(r,i,a,s,l,p){super(r,i);this.retryCount=isNumber(a)?a:te;this.retryInterval=isNumber(s)?s:re;this.minRetryInterval=isNumber(l)?l:ne;this.maxRetryInterval=isNumber(p)?p:ie}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).catch((i=>retry(this,r,i.response,i)))}}async function retry(r,i,a,s,l){l=updateRetryData(r,l,s);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,a,s)){try{await d.delay(l.retryInterval);return r._nextPolicy.sendRequest(i.clone())}catch(s){return retry(r,i,a,s,l)}}else{if(s){return Promise.reject(l.error)}return a}}const ue=3;const me=D.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(r,i)=>new ThrottlingRetryPolicy(r,i)}}const fe="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this.numberOfRetries=0;this._handleResponse=a||this._defaultResponseHandler}async sendRequest(r){const i=await this._nextPolicy.sendRequest(r.clone());if(i.status!==me.TooManyRequests&&i.status!==me.ServiceUnavailable){return i}else{return this._handleResponse(r,i)}}async _defaultResponseHandler(r,i){var a;const s=i.headers.get(D.HeaderConstants.RETRY_AFTER);if(s){const i=ThrottlingRetryPolicy.parseRetryAfterHeader(s);if(i){this.numberOfRetries+=1;await d.delay(i,{abortSignal:r.abortSignal,abortErrorMsg:fe});if((a=r.abortSignal)===null||a===void 0?void 0:a.aborted){throw new v.AbortError(fe)}if(this.numberOfRetries{let a=undefined;const s=this;const l=i;return{create(i,p){const c=getCredentialScopes(l,s.baseUri);if(!c){throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`)}if(a===undefined||a===null){a=bearerTokenAuthenticationPolicy(r,c)}return a.create(i,p)}}};s=wrappedPolicyFactory()}else if(r&&typeof r.signRequest==="function"){G.info("ServiceClient: creating signing policy from provided credentials");s=signingPolicy(r)}else if(r!==undefined&&r!==null){throw new Error("The credentials argument must implement the TokenCredential interface")}G.info("ServiceClient: using default request policies");a=createDefaultRequestPolicyFactories(s,i);if(i.requestPolicyFactories){const r=i.requestPolicyFactories(a);if(r){a=r}}}this._requestPolicyFactories=a}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 a=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0){for(let r=this._requestPolicyFactories.length-1;r>=0;--r){a=this._requestPolicyFactories[r].create(a,this._requestPolicyOptions)}}return a.sendRequest(i)}async sendOperationRequest(r,a,s){var l;if(typeof r.options==="function"){s=r.options;r.options=undefined}const p=(l=r.options)===null||l===void 0?void 0:l.serializerOptions;const c=new WebResource;let d;try{const s=a.baseUrl||this.baseUri;if(!s){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.")}c.method=a.httpMethod;c.operationSpec=a;const l=URLBuilder.parse(s);if(a.path){l.appendPath(a.path)}if(a.urlParameters&&a.urlParameters.length>0){for(const i of a.urlParameters){let s=getOperationArgumentValueFromParameter(this,r,i,a.serializer);s=a.serializer.serialize(i.mapper,s,getPathStringFromParameter(i),p);if(!i.skipEncoding){s=encodeURIComponent(s)}l.replaceAll(`{${i.mapper.serializedName||getPathStringFromParameter(i)}}`,s)}}if(a.queryParameters&&a.queryParameters.length>0){for(const s of a.queryParameters){let c=getOperationArgumentValueFromParameter(this,r,s,a.serializer);if(c!==undefined&&c!==null){c=a.serializer.serialize(s.mapper,c,getPathStringFromParameter(s),p);if(s.collectionFormat!==undefined&&s.collectionFormat!==null){if(s.collectionFormat===i.QueryCollectionFormat.Multi){if(c.length===0){continue}else{for(const r in c){const i=c[r];c[r]=i===undefined||i===null?"":i.toString()}}}else if(s.collectionFormat===i.QueryCollectionFormat.Ssv||s.collectionFormat===i.QueryCollectionFormat.Tsv){c=c.join(s.collectionFormat)}}if(!s.skipEncoding){if(Array.isArray(c)){for(const r in c){if(c[r]!==undefined&&c[r]!==null){c[r]=encodeURIComponent(c[r])}}}else{c=encodeURIComponent(c)}}if(s.collectionFormat!==undefined&&s.collectionFormat!==null&&s.collectionFormat!==i.QueryCollectionFormat.Multi&&s.collectionFormat!==i.QueryCollectionFormat.Ssv&&s.collectionFormat!==i.QueryCollectionFormat.Tsv){c=c.join(s.collectionFormat)}l.setQueryParameter(s.mapper.serializedName||getPathStringFromParameter(s),c)}}}c.url=l.toString();const u=a.contentType||this.requestContentType;if(u&&a.requestBody){c.headers.set("Content-Type",u)}if(a.headerParameters){for(const i of a.headerParameters){let s=getOperationArgumentValueFromParameter(this,r,i,a.serializer);if(s!==undefined&&s!==null){s=a.serializer.serialize(i.mapper,s,getPathStringFromParameter(i),p);const r=i.mapper.headerCollectionPrefix;if(r){for(const i of Object.keys(s)){c.headers.set(r+i,s[i])}}else{c.headers.set(i.mapper.serializedName||getPathStringFromParameter(i),s)}}}}const h=r.options;if(h){if(h.customHeaders){for(const r in h.customHeaders){c.headers.set(r,h.customHeaders[r])}}if(h.abortSignal){c.abortSignal=h.abortSignal}if(h.timeout){c.timeout=h.timeout}if(h.onUploadProgress){c.onUploadProgress=h.onUploadProgress}if(h.onDownloadProgress){c.onDownloadProgress=h.onDownloadProgress}if(h.spanOptions){c.spanOptions=h.spanOptions}if(h.tracingContext){c.tracingContext=h.tracingContext}if(h.shouldDeserialize!==undefined&&h.shouldDeserialize!==null){c.shouldDeserialize=h.shouldDeserialize}}c.withCredentials=this._withCredentials;serializeRequestBody(this,c,r,a);if(c.streamResponseStatusCodes===undefined){c.streamResponseStatusCodes=getStreamResponseStatusCodes(a)}let g;let y;try{g=await this.sendRequest(c)}catch(r){y=r}if(y){if(y.response){y.details=flattenResponse(y.response,a.responses[y.statusCode]||a.responses["default"])}d=Promise.reject(y)}else{d=Promise.resolve(flattenResponse(g,a.responses[g.status]))}}catch(r){d=Promise.reject(r)}const u=s;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,a,s){var l,p,c,d,u,h;const g=(p=(l=a.options)===null||l===void 0?void 0:l.serializerOptions)!==null&&p!==void 0?p:{};const y={rootName:(c=g.rootName)!==null&&c!==void 0?c:"",includeRoot:(d=g.includeRoot)!==null&&d!==void 0?d:false,xmlCharKey:(u=g.xmlCharKey)!==null&&u!==void 0?u:L};const b=g.xmlCharKey;if(s.requestBody&&s.requestBody.mapper){i.body=getOperationArgumentValueFromParameter(r,a,s.requestBody,s.serializer);const l=s.requestBody.mapper;const{required:p,xmlName:c,xmlElementName:d,serializedName:u,xmlNamespace:g,xmlNamespacePrefix:v}=l;const w=l.type.name;try{if(i.body!==undefined&&i.body!==null||p){const r=getPathStringFromParameter(s.requestBody);i.body=s.serializer.serialize(l,i.body,r,y);const a=w===j.Stream;if(s.isXML){const r=v?`xmlns:${v}`:"xmlns";const s=getXmlValueWithNamespace(g,r,w,i.body,y);if(w===j.Sequence){i.body=stringifyXML(prepareXMLRootList(s,d||c||u,r,g),{rootName:c||u,xmlCharKey:b})}else if(!a){i.body=stringifyXML(s,{rootName:c||u,xmlCharKey:b})}}else if(w===j.String&&(((h=s.contentType)===null||h===void 0?void 0:h.match("text/plain"))||s.mediaType==="text")){return}else if(!a){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(s.formDataParameters&&s.formDataParameters.length>0){i.formData={};for(const l of s.formDataParameters){const p=getOperationArgumentValueFromParameter(r,a,l,s.serializer);if(p!==undefined&&p!==null){const r=l.mapper.serializedName||getPathStringFromParameter(l);i.formData[r]=s.serializer.serialize(l.mapper,p,getPathStringFromParameter(l),y)}}}}function getXmlValueWithNamespace(r,i,a,s,l){if(r&&!["Composite","Sequence","Dictionary"].includes(a)){const a={};a[l.xmlCharKey]=s;a[I]={[i]:r};return a}return s}function getValueOrFunctionResult(r,i){let a;if(typeof r==="string"){a=r}else{a=i();if(typeof r==="function"){a=r(a)}}return a}function createDefaultRequestPolicyFactories(r,i){const a=[];if(i.generateClientRequestIdHeader){a.push(generateClientRequestIdPolicy(i.clientRequestIdHeaderName))}if(r){a.push(r)}const s=getValueOrFunctionResult(i.userAgentHeaderName,se);const l=getValueOrFunctionResult(i.userAgent,getDefaultUserAgentValue);if(s&&l){a.push(userAgentPolicy({key:s,value:l}))}a.push(redirectPolicy());a.push(rpRegistrationPolicy(i.rpRegistrationRetryTimeout));if(!i.noRetryPolicy){a.push(exponentialRetryPolicy());a.push(systemErrorRetryPolicy());a.push(throttlingRetryPolicy())}a.push(deserializationPolicy(i.deserializationContentTypes));if(d.isNode){a.push(proxyPolicy(i.proxySettings))}a.push(logPolicy({logger:G.info}));return a}function createPipelineFromOptions(r,i){const a=[];if(r.sendStreamingJson){a.push(ndJsonPolicy())}let s=undefined;if(r.userAgentOptions&&r.userAgentOptions.userAgentPrefix){const i=[];i.push(r.userAgentOptions.userAgentPrefix);const a=getDefaultUserAgentValue();if(i.indexOf(a)===-1){i.push(a)}s=i.join(" ")}const l=Object.assign(Object.assign({},Y),r.keepAliveOptions);const p=Object.assign(Object.assign({},ae),r.retryOptions);const c=Object.assign(Object.assign({},ee),r.redirectOptions);if(d.isNode){a.push(proxyPolicy(r.proxyOptions))}const u=Object.assign(Object.assign({},Q),r.deserializationOptions);const h=Object.assign({},r.loggingOptions);a.push(tracingPolicy({userAgent:s}),keepAlivePolicy(l),userAgentPolicy({value:s}),generateClientRequestIdPolicy(),deserializationPolicy(u.expectedContentTypes),throttlingRetryPolicy(),systemErrorRetryPolicy(),exponentialRetryPolicy(p.maxRetries,p.retryDelayInMs,p.maxRetryDelayInMs));if(c.handleRedirects){a.push(redirectPolicy(c.maxRetries))}if(i){a.push(i)}a.push(logPolicy(h));if(d.isNode&&r.decompressResponse===false){a.push(disableResponseDecompressionPolicy())}return{httpClient:r.httpClient,requestPolicyFactories:a}}function getOperationArgumentValueFromParameter(r,i,a,s){return getOperationArgumentValueFromParameterPath(r,i,a.parameterPath,a.mapper,s)}function getOperationArgumentValueFromParameterPath(r,i,a,s,l){var p;let c;if(typeof a==="string"){a=[a]}const d=(p=i.options)===null||p===void 0?void 0:p.serializerOptions;if(Array.isArray(a)){if(a.length>0){if(s.isConstant){c=s.defaultValue}else{let l=getPropertyFromParameterPath(i,a);if(!l.propertyFound){l=getPropertyFromParameterPath(r,a)}let p=false;if(!l.propertyFound){p=s.required||a[0]==="options"&&a.length===2}c=p?s.defaultValue:l.propertyValue}const p=getPathStringFromParameterPath(a,s);l.serialize(s,c,p,d)}}else{if(s.required){c={}}for(const p in a){const u=s.type.modelProperties[p];const h=a[p];const g=getOperationArgumentValueFromParameterPath(r,i,h,u,l);const y=getPathStringFromParameterPath(h,u);l.serialize(u,g,y,d);if(g!==undefined&&g!==null){if(!c){c={}}c[p]=g}}}return c}function getPropertyFromParameterPath(r,i){const a={propertyFound:false};let s=0;for(;sObject.defineProperty(i,"_response",{value:r});if(s){const i=s.type.name;if(i==="Stream"){return addOperationResponse(Object.assign(Object.assign({},a),{blobBody:r.blobBody,readableStreamBody:r.readableStreamBody}))}const l=i==="Composite"&&s.type.modelProperties||{};const p=Object.keys(l).some((r=>l[r].serializedName===""));if(i==="Sequence"||p){const i=[...r.parsedBody||[]];for(const a of Object.keys(l)){if(l[a].serializedName){i[a]=r.parsedBody[a]}}if(a){for(const r of Object.keys(a)){i[r]=a[r]}}addOperationResponse(i);return i}if(i==="Composite"||i==="Dictionary"){return addOperationResponse(Object.assign(Object.assign({},a),r.parsedBody))}}if(s||r.request.method==="HEAD"||isPrimitiveType(r.parsedBody)){return addOperationResponse(Object.assign(Object.assign({},a),{body:r.parsedBody}))}return addOperationResponse(Object.assign(Object.assign({},a),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 T.createSpanFunction(r)}const ge=2*60*1e3;class ExpiringAccessTokenCache{constructor(r=ge){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,a=3e4){this.credential=r;this.scopes=i;this.requiredMillisecondsBeforeNewRefresh=a;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 ye=D.HeaderConstants;const be="Basic";class BasicAuthenticationCredentials{constructor(r,i,a=be){this.authorizationScheme=be;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=a}signRequest(r){const i=`${this.userName}:${this.password}`;const a=`${this.authorizationScheme} ${encodeString(i)}`;if(!r.headers)r.headers=new HttpHeaders;r.headers.set(ye.AUTHORIZATION,a);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 h.isTokenCredential}});i.AccessTokenRefresher=AccessTokenRefresher;i.ApiKeyCredentials=ApiKeyCredentials;i.BaseRequestPolicy=BaseRequestPolicy;i.BasicAuthenticationCredentials=BasicAuthenticationCredentials;i.Constants=D;i.DefaultHttpClient=NodeFetchHttpClient;i.ExpiringAccessTokenCache=ExpiringAccessTokenCache;i.HttpHeaders=HttpHeaders;i.MapperType=j;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=I;i.XML_CHARKEY=L;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},8063:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(1267);var l=a(4732);var p=a(665);const c=s.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:a,isOperationError:s}=r;return r=>{if(s(r)){a.setError(i,r);a.setFailed(i)}throw r}}function appendReadableErrorMessage(r,i){let a=r;if(a.slice(-1)!=="."){a=a+"."}return a+" "+i}function simplifyError(r){let i=r.message;let a=r.code;let s=r;while(s.innererror){s=s.innererror;a=s.code;i=appendReadableErrorMessage(i,s.message)}return{code:a,message:i}}function processOperationStatus(r){const{state:i,stateProxy:a,status:s,isDone:l,processResult:p,getError:d,response:u,setErrorAsResult:h}=r;switch(s){case"succeeded":{a.setSucceeded(i);break}case"failed":{const r=d===null||d===void 0?void 0:d(u);let s="";if(r){const{code:i,message:a}=simplifyError(r);s=`. ${i}. ${a}`}const l=`The long-running operation has failed${s}`;a.setError(i,new Error(l));a.setFailed(i);c.warning(l);break}case"canceled":{a.setCanceled(i);break}}if((l===null||l===void 0?void 0:l(u,i))||l===undefined&&["succeeded","canceled"].concat(h?[]:["failed"]).includes(s)){a.setResult(i,buildResult({response:u,state:i,processResult:p}))}}function buildResult(r){const{processResult:i,response:a,state:s}=r;return i?i(a,s):a}async function initOperation(r){const{init:i,stateProxy:a,processResult:s,getOperationStatus:l,withOperationLocation:p,setErrorAsResult:d}=r;const{operationLocation:u,resourceLocation:h,metadata:g,response:y}=await i();if(u)p===null||p===void 0?void 0:p(u,false);const b={metadata:g,operationLocation:u,resourceLocation:h};c.verbose(`LRO: Operation description:`,b);const v=a.initState(b);const w=l({response:y,state:v,operationLocation:u});processOperationStatus({state:v,status:w,stateProxy:a,response:y,setErrorAsResult:d,processResult:s});return v}async function pollOperationHelper(r){const{poll:i,state:a,stateProxy:s,operationLocation:l,getOperationStatus:p,getResourceLocation:d,isOperationError:h,options:g}=r;const y=await i(l,g).catch(setStateError({state:a,stateProxy:s,isOperationError:h}));const b=p(y,a);c.verbose(`LRO: Status:\n\tPolling from: ${a.config.operationLocation}\n\tOperation status: ${b}\n\tPolling status: ${u.includes(b)?"Stopped":"Running"}`);if(b==="succeeded"){const r=d(y,a);if(r!==undefined){return{response:await i(r).catch(setStateError({state:a,stateProxy:s,isOperationError:h})),status:b}}}return{response:y,status:b}}async function pollOperation(r){const{poll:i,state:a,stateProxy:s,options:l,getOperationStatus:p,getResourceLocation:c,getOperationLocation:d,isOperationError:h,withOperationLocation:g,getPollingInterval:y,processResult:b,getError:v,updateState:w,setDelay:x,isDone:S,setErrorAsResult:_}=r;const{operationLocation:T}=a.config;if(T!==undefined){const{response:r,status:N}=await pollOperationHelper({poll:i,getOperationStatus:p,state:a,stateProxy:s,operationLocation:T,getResourceLocation:c,isOperationError:h,options:l});processOperationStatus({status:N,response:r,state:a,stateProxy:s,isDone:S,processResult:b,getError:v,setErrorAsResult:_});if(!u.includes(N)){const i=y===null||y===void 0?void 0:y(r);if(i)x(i);const s=d===null||d===void 0?void 0:d(r,a);if(s!==undefined){const r=T!==s;a.config.operationLocation=s;g===null||g===void 0?void 0:g(s,r)}else g===null||g===void 0?void 0:g(T,false)}w===null||w===void 0?void 0:w(a,r)}}function getOperationLocationPollingUrl(r){const{azureAsyncOperation:i,operationLocation:a}=r;return a!==null&&a!==void 0?a: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:a,requestMethod:s,requestPath:l,resourceLocationConfig:p}=r;switch(s){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(p){case"azure-async-operation":{return undefined}case"original-uri":{return l}case"location":default:{return a}}}}function inferLroMode(r){const{rawResponse:i,requestMethod:a,requestPath:s,resourceLocationConfig:l}=r;const p=getOperationLocationHeader(i);const c=getAzureAsyncOperationHeader(i);const d=getOperationLocationPollingUrl({operationLocation:p,azureAsyncOperation:c});const u=getLocationHeader(i);const h=a===null||a===void 0?void 0:a.toLocaleUpperCase();if(d!==undefined){return{mode:"OperationLocation",operationLocation:d,resourceLocation:findResourceLocation({requestMethod:h,location:u,requestPath:s,resourceLocationConfig:l})}}else if(u!==undefined){return{mode:"ResourceLocation",operationLocation:u}}else if(h==="PUT"&&s){return{mode:"Body",operationLocation:s}}else{return undefined}}function transformStatus(r){const{status:i,statusCode:a}=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(a);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:{c.verbose(`LRO: unrecognized operation status: ${i}`);return i}}}function getStatus(r){var i;const{status:a}=(i=r.body)!==null&&i!==void 0?i:{};return transformStatus({status:a,statusCode:r.statusCode})}function getProvisioningState(r){var i,a;const{properties:s,provisioningState:l}=(i=r.body)!==null&&i!==void 0?i:{};const p=(a=s===null||s===void 0?void 0:s.provisioningState)!==null&&a!==void 0?a:l;return transformStatus({status:p,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){c.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!i.code||!i.message){c.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 a=r.getTime();if(i{const r=await l.sendInitialRequest();const i=inferLroMode({rawResponse:r.rawResponse,requestPath:l.requestPath,requestMethod:l.requestMethod,resourceLocationConfig:a});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:s?({flatResponse:r},i)=>s(r,i):({flatResponse:r})=>r,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:p})}function getOperationLocation({rawResponse:r},i){var a;const s=(a=i.config.metadata)===null||a===void 0?void 0:a["mode"];switch(s){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 a;const s=(a=i.config.metadata)===null||a===void 0?void 0:a["mode"];switch(s){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: ${s}`)}}function getResourceLocation({flatResponse:r},i){if(typeof r==="object"){const a=r.resourceLocation;if(a!==undefined){i.config.resourceLocation=a}}return i.config.resourceLocation}function isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:i,stateProxy:a,options:s,processResult:l,updateState:p,setDelay:c,state:d,setErrorAsResult:u}=r;return pollOperation({state:d,stateProxy:a,setDelay:c,processResult:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r,getError:getErrorFromResponse,updateState:p,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:s,poll:async(r,a)=>i.sendPollRequest(r,a),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:a,getStatusFromPollResponse:s,isOperationError:c,getResourceLocation:u,getPollingInterval:h,getError:g,resolveOnUnsuccessful:y}=r;return async({init:r,poll:b},v)=>{const{processResult:w,updateState:x,withOperationLocation:S,intervalInMs:_=d,restoreFrom:T}=v||{};const N=createStateProxy$1();const P=S?(()=>{let r=false;return(i,a)=>{if(a)S(i);else if(!r)S(i);r=true}})():undefined;const O=T?deserializeState(T):await initOperation({init:r,stateProxy:N,processResult:w,getOperationStatus:a,withOperationLocation:P,setErrorAsResult:!y});let R;const C=new l.AbortController;const k=new Map;const handleProgressEvents=async()=>k.forEach((r=>r(O)));const A="Operation was canceled";let D=_;const I={getOperationState:()=>O,getResult:()=>O.result,isDone:()=>["succeeded","failed","canceled"].includes(O.status),isStopped:()=>R===undefined,stopPolling:()=>{C.abort()},toString:()=>JSON.stringify({state:O}),onProgress:r=>{const i=Symbol();k.set(i,r);return()=>k.delete(i)},pollUntilDone:r=>R!==null&&R!==void 0?R:R=(async()=>{const{abortSignal:i}=r||{};const{signal:a}=i?new l.AbortController([i,C.signal]):C;if(!I.isDone()){await I.poll({abortSignal:a});while(!I.isDone()){await p.delay(D,{abortSignal:a});await I.poll({abortSignal:a})}}if(y){return I.getResult()}else{switch(O.status){case"succeeded":return I.getResult();case"canceled":throw new Error(A);case"failed":throw O.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{R=undefined})),async poll(r){if(y){if(I.isDone())return}else{switch(O.status){case"succeeded":return;case"canceled":throw new Error(A);case"failed":throw O.error}}await pollOperation({poll:b,state:O,stateProxy:N,getOperationLocation:i,isOperationError:c,withOperationLocation:P,getPollingInterval:h,getOperationStatus:s,getResourceLocation:u,processResult:w,getError:g,updateState:x,options:r,setDelay:r=>{D=r},setErrorAsResult:!y});await handleProgressEvents();if(!y){switch(O.status){case"canceled":throw new Error(A);case"failed":throw O.error}}}};return I}}async function createHttpPoller(r,i){const{resourceLocationConfig:a,intervalInMs:s,processResult:l,restoreFrom:p,updateState:c,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 s=inferLroMode({rawResponse:i.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:i,operationLocation:s===null||s===void 0?void 0:s.operationLocation,resourceLocation:s===null||s===void 0?void 0:s.resourceLocation},(s===null||s===void 0?void 0:s.mode)?{metadata:{mode:s.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:s,withOperationLocation:d,restoreFrom:p,updateState:c,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,a,s,l,p,c){this.state=r;this.lro=i;this.setErrorAsResult=a;this.lroResourceLocationConfig=s;this.processResult=l;this.updateState=p;this.isDone=c}setPollerConfig(r){this.pollerConfig=r}async update(r){var i;const a=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:a,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const s=this.updateState;const l=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:a,processResult:this.processResult,updateState:s?(r,{rawResponse:i})=>s(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(){c.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:a=d,resumeFrom:s,resolveOnUnsuccessful:l=false,isDone:p,lroResourceLocationConfig:c,processResult:u,updateState:h}=i||{};const g=s?deserializeState(s):{};const y=new GenericPollOperation(g,r,!l,c,u,h,p);super(y);this.resolveOnUnsuccessful=l;this.config={intervalInMs:a};y.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},1728:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(3134);function getPagedAsyncIterator(r){var i;const a=getItemAsyncIterator(r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(i=r===null||r===void 0?void 0:r.byPage)!==null&&i!==void 0?i:i=>{const{continuationToken:a,maxPageSize:s}=i!==null&&i!==void 0?i:{};return getPageAsyncIterator(r,{pageLink:a,maxPageSize:s})}}}function getItemAsyncIterator(r){return s.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var i,a,l,p;const c=getPageAsyncIterator(r);const d=yield s.__await(c.next());if(!Array.isArray(d.value)){const{toElements:l}=r;if(l){yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(l(d.value))));try{for(var u=s.__asyncValues(c),h;h=yield s.__await(u.next()),!h.done;){const r=h.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(l(r))))}}catch(r){i={error:r}}finally{try{if(h&&!h.done&&(a=u.return))yield s.__await(a.call(u))}finally{if(i)throw i.error}}}else{yield yield s.__await(d.value);yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(c)))}}else{yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(d.value)));try{for(var g=s.__asyncValues(c),y;y=yield s.__await(g.next()),!y.done;){const r=y.value;yield s.__await(yield*s.__asyncDelegator(s.__asyncValues(r)))}}catch(r){l={error:r}}finally{try{if(y&&!y.done&&(p=g.return))yield s.__await(p.call(g))}finally{if(l)throw l.error}}}}))}function getPageAsyncIterator(r,i={}){return s.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:a,maxPageSize:l}=i;let p=yield s.__await(r.getPage(a!==null&&a!==void 0?a:r.firstPageLink,l));if(!p){return yield s.__await(void 0)}yield yield s.__await(p.page);while(p.nextPageLink){p=yield s.__await(r.getPage(p.nextPageLink,l));if(!p){return yield s.__await(void 0)}yield yield s.__await(p.page)}}))}i.getPagedAsyncIterator=getPagedAsyncIterator},9011:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(5861);(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 s.trace.getSpan(r)}function setSpan(r,i){return s.trace.setSpan(r,i)}function setSpanContext(r,i){return s.trace.setSpanContext(r,i)}function getSpanContext(r){return s.trace.getSpanContext(r)}function isSpanContextValid(r){return s.trace.isSpanContextValid(r)}function getTracer(r,i){return s.trace.getTracer(r||"azure/core-tracing",i)}const l=s.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(a,p){const c=getTracer();const d=(p===null||p===void 0?void 0:p.tracingOptions)||{};const u=Object.assign({kind:i.SpanKind.INTERNAL},d.spanOptions);const h=r.packagePrefix?`${r.packagePrefix}.${a}`:a;let g;if(isTracingDisabled()){g=s.trace.wrapSpanContext(s.INVALID_SPAN_CONTEXT)}else{g=c.startSpan(h,u,d.tracingContext)}if(r.namespace){g.setAttribute("az.namespace",r.namespace)}let y=d.spanOptions||{};if(g.isRecording()&&r.namespace){y=Object.assign(Object.assign({},d.spanOptions),{attributes:Object.assign(Object.assign({},u.attributes),{"az.namespace":r.namespace})})}const b=Object.assign(Object.assign({},d),{spanOptions:y,tracingContext:setSpan(d.tracingContext||l.active(),g)});const v=Object.assign(Object.assign({},p),{tracingOptions:b});return{span:g,updatedOptions:v}}}const p="00";function extractSpanContextFromTraceParentHeader(r){const i=r.split("-");if(i.length!==4){return}const[a,s,l,c]=i;if(a!==p){return}const d=parseInt(c,16);const u={spanId:l,traceId:s,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 a=r.traceFlags||0;const s=a.toString(16);const l=s.length===1?`0${s}`:s;return`${p}-${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},665:(r,i,a)=>{"use strict";var s=a(4732);var l=a(6113);function createAbortablePromise(r,i){const{cleanupBeforeAbort:a,abortSignal:l,abortErrorMsg:p}=i!==null&&i!==void 0?i:{};return new Promise(((i,c)=>{function rejectOnAbort(){c(new s.AbortError(p!==null&&p!==void 0?p:"The operation was aborted."))}function removeListeners(){l===null||l===void 0?void 0:l.removeEventListener("abort",onAbort)}function onAbort(){a===null||a===void 0?void 0:a();removeListeners();rejectOnAbort()}if(l===null||l===void 0?void 0:l.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();i(r)}),(r=>{removeListeners();c(r)}))}catch(r){c(r)}l===null||l===void 0?void 0:l.addEventListener("abort",onAbort)}))}const p="The delay was aborted.";function delay(r,i){let a;const{abortSignal:s,abortErrorMsg:l}=i!==null&&i!==void 0?i:{};return createAbortablePromise((i=>{a=setTimeout(i,r)}),{cleanupBeforeAbort:()=>clearTimeout(a),abortSignal:s,abortErrorMsg:l!==null&&l!==void 0?l:p})}async function cancelablePromiseRace(r,i){var a,l;const p=new s.AbortController;function abortHandler(){p.abort()}(a=i===null||i===void 0?void 0:i.abortSignal)===null||a===void 0?void 0:a.addEventListener("abort",abortHandler);try{return await Promise.race(r.map((r=>r({abortSignal:p.signal}))))}finally{p.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 a=Math.floor(Math.random()*(i-r+1));return a+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 a=typeof r.message==="string";return i&&a}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,a){const s=Buffer.from(r,"base64");return l.createHmac("sha256",s).update(i).digest(a)}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 a of i){if(!objectHasProperty(r,a)){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 a=Math.floor(Math.random()*16);if(i===12){r+="4"}else if(i===16){r+=a&3|8}else{r+=a.toString(16)}if(i===7||i===11||i===15||i===19){r+="-"}}return r}var c;let d=typeof((c=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||c===void 0?void 0:c.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):l.randomUUID;if(!d){d=generateUUID}function randomUUID(){return d()}var u,h,g,y;const b=typeof window!=="undefined"&&typeof window.document!=="undefined";const v=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"||((h=self.constructor)===null||h===void 0?void 0:h.name)==="ServiceWorkerGlobalScope"||((g=self.constructor)===null||g===void 0?void 0:g.name)==="SharedWorkerGlobalScope");const w=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const x=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((y=process.versions)===null||y===void 0?void 0:y.node)&&!w;const S=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const _=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=b;i.isBun=S;i.isDefined=isDefined;i.isDeno=w;i.isError=isError;i.isNode=x;i.isObject=isObject;i.isObjectWithProperties=isObjectWithProperties;i.isReactNative=_;i.isWebWorker=v;i.objectHasProperty=objectHasProperty;i.randomUUID=randomUUID;i.stringToUint8Array=stringToUint8Array;i.uint8ArrayToString=uint8ArrayToString},1267:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(2037);var l=a(3837);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var p=_interopDefaultLegacy(l);function log(r,...i){process.stderr.write(`${p["default"].format(r,...i)}${s.EOL}`)}const c=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let u=[];let h=[];const g=[];if(c){enable(c)}const y=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){d=r;u=[];h=[];const i=/\*/g;const a=r.split(",").map((r=>r.trim().replace(i,".*?")));for(const r of a){if(r.startsWith("-")){h.push(new RegExp(`^${r.substr(1)}$`))}else{u.push(new RegExp(`^${r}$`))}}for(const r of g){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const i of h){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:y.log,namespace:r,extend:extend});function debug(...a){if(!i.enabled){return}if(a.length>0){a[0]=`${r} ${a[0]}`}i.log(...a)}g.push(i);return i}function destroy(){const r=g.indexOf(this);if(r>=0){g.splice(r,1);return true}return false}function extend(r){const i=createDebugger(`${this.namespace}:${r}`);i.log=this.log;return i}var b=y;const v=new Set;const w=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let x;const S=b("azure");S.log=(...r)=>{b.log(...r)};const _=["verbose","info","warning","error"];if(w){if(isAzureLogLevel(w)){setLogLevel(w)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${w}'; logging is not enabled. Acceptable values: ${_.join(", ")}.`)}}function setLogLevel(r){if(r&&!isAzureLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${_.join(",")}`)}x=r;const i=[];for(const r of v){if(shouldEnable(r)){i.push(r.namespace)}}b.enable(i.join(","))}function getLogLevel(){return x}const T={verbose:400,info:300,warning:200,error:100};function createClientLogger(r){const i=S.extend(r);patchLogMethod(S,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 a=Object.assign(r.extend(i),{level:i});patchLogMethod(r,a);if(shouldEnable(a)){const r=b.disable();b.enable(r+","+a.namespace)}v.add(a);return a}function shouldEnable(r){return Boolean(x&&T[r.level]<=T[x])}function isAzureLogLevel(r){return _.includes(r)}i.AzureLogger=S;i.createClientLogger=createClientLogger;i.getLogLevel=getLogLevel;i.setLogLevel=setLogLevel},5542:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(9808);var l=a(3134);var p=a(9011);var c=a(1267);var d=a(4732);var u=a(2037);var h=a(6113);var g=a(2781);a(1728);var y=a(8063);var b=a(2361);var v=a(7147);var w=a(3837);function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(a){if(a!=="default"){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,s.get?s:{enumerable:true,get:function(){return r[a]}})}}))}i["default"]=r;return Object.freeze(i)}var x=_interopNamespace(s);var S=_interopNamespace(u);var _=_interopNamespace(v);var T=_interopNamespace(w);const N={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 P={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 O={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 R={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 C={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 k={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 A={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const D={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const I={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 L={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 B={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 M={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 j={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 z={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 q={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 H={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 V={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const G={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const W={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 $={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 X={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 K={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 Q={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 Y={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 Z={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 ee={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const te={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 re={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 ie={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 ne={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 ae={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 oe={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 le={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const pe={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 de={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const ue={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 me={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 fe={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 he={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ge={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 ye={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={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 ve={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={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 xe={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={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 _e={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={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 Pe={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={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 Re={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ce={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 ke={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ae={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={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 Le={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={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 Me={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const je={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 ze={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={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 qe={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 He={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const We={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 $e={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xe={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 Ke={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 Qe={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ye={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 Ze={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const et={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 tt={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rt={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 it={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nt={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 st={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={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 lt={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ct={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 mt={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 ft={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ht={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 gt={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yt={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 bt={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={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 wt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={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 St={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={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 Et={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={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 Nt={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pt={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 Ot={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rt={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 Ct={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kt={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 At={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 It={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lt={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 Bt={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mt={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 jt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zt={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 Ft={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ut={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 Gt={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 Wt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $t={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 Xt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kt={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 Jt={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qt={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 Yt={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const er={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const rr={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ir={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 sr={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const or={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 cr={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={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 yr={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 br={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={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 wr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={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 Sr={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={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 Er={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={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 Nr={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={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 Or={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={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 Cr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kr={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 Ar={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 Ir={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={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 Br={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={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 jr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zr={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 Fr={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={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 Gr=Object.freeze({__proto__:null,BlobServiceProperties:N,Logging:P,RetentionPolicy:O,Metrics:R,CorsRule:C,StaticWebsite:k,StorageError:A,BlobServiceStatistics:D,GeoReplication:I,ListContainersSegmentResponse:L,ContainerItem:B,ContainerProperties:M,KeyInfo:j,UserDelegationKey:z,FilterBlobSegment:U,FilterBlobItem:q,BlobTags:H,BlobTag:V,SignedIdentifier:G,AccessPolicy:W,ListBlobsFlatSegmentResponse:$,BlobFlatListSegment:X,BlobItemInternal:K,BlobName:J,BlobPropertiesInternal:Q,ListBlobsHierarchySegmentResponse:Y,BlobHierarchyListSegment:Z,BlobPrefix:ee,BlockLookupList:te,BlockList:re,Block:ie,PageList:ne,PageRange:ae,ClearRange:se,QueryRequest:oe,QuerySerialization:le,QueryFormat:pe,DelimitedTextConfiguration:ce,JsonTextConfiguration:de,ArrowConfiguration:ue,ArrowField:me,ServiceSetPropertiesHeaders:fe,ServiceSetPropertiesExceptionHeaders:he,ServiceGetPropertiesHeaders:ge,ServiceGetPropertiesExceptionHeaders:ye,ServiceGetStatisticsHeaders:be,ServiceGetStatisticsExceptionHeaders:ve,ServiceListContainersSegmentHeaders:we,ServiceListContainersSegmentExceptionHeaders:xe,ServiceGetUserDelegationKeyHeaders:Se,ServiceGetUserDelegationKeyExceptionHeaders:_e,ServiceGetAccountInfoHeaders:Ee,ServiceGetAccountInfoExceptionHeaders:Te,ServiceSubmitBatchHeaders:Ne,ServiceSubmitBatchExceptionHeaders:Pe,ServiceFilterBlobsHeaders:Oe,ServiceFilterBlobsExceptionHeaders:Re,ContainerCreateHeaders:Ce,ContainerCreateExceptionHeaders:ke,ContainerGetPropertiesHeaders:Ae,ContainerGetPropertiesExceptionHeaders:De,ContainerDeleteHeaders:Ie,ContainerDeleteExceptionHeaders:Le,ContainerSetMetadataHeaders:Be,ContainerSetMetadataExceptionHeaders:Me,ContainerGetAccessPolicyHeaders:je,ContainerGetAccessPolicyExceptionHeaders:ze,ContainerSetAccessPolicyHeaders:Fe,ContainerSetAccessPolicyExceptionHeaders:Ue,ContainerRestoreHeaders:qe,ContainerRestoreExceptionHeaders:He,ContainerRenameHeaders:Ve,ContainerRenameExceptionHeaders:Ge,ContainerSubmitBatchHeaders:We,ContainerSubmitBatchExceptionHeaders:$e,ContainerFilterBlobsHeaders:Xe,ContainerFilterBlobsExceptionHeaders:Ke,ContainerAcquireLeaseHeaders:Je,ContainerAcquireLeaseExceptionHeaders:Qe,ContainerReleaseLeaseHeaders:Ye,ContainerReleaseLeaseExceptionHeaders:Ze,ContainerRenewLeaseHeaders:et,ContainerRenewLeaseExceptionHeaders:tt,ContainerBreakLeaseHeaders:rt,ContainerBreakLeaseExceptionHeaders:it,ContainerChangeLeaseHeaders:nt,ContainerChangeLeaseExceptionHeaders:st,ContainerListBlobFlatSegmentHeaders:ot,ContainerListBlobFlatSegmentExceptionHeaders:lt,ContainerListBlobHierarchySegmentHeaders:pt,ContainerListBlobHierarchySegmentExceptionHeaders:ct,ContainerGetAccountInfoHeaders:dt,ContainerGetAccountInfoExceptionHeaders:ut,BlobDownloadHeaders:mt,BlobDownloadExceptionHeaders:ft,BlobGetPropertiesHeaders:ht,BlobGetPropertiesExceptionHeaders:gt,BlobDeleteHeaders:yt,BlobDeleteExceptionHeaders:bt,BlobUndeleteHeaders:vt,BlobUndeleteExceptionHeaders:wt,BlobSetExpiryHeaders:xt,BlobSetExpiryExceptionHeaders:St,BlobSetHttpHeadersHeaders:_t,BlobSetHttpHeadersExceptionHeaders:Et,BlobSetImmutabilityPolicyHeaders:Tt,BlobSetImmutabilityPolicyExceptionHeaders:Nt,BlobDeleteImmutabilityPolicyHeaders:Pt,BlobDeleteImmutabilityPolicyExceptionHeaders:Ot,BlobSetLegalHoldHeaders:Rt,BlobSetLegalHoldExceptionHeaders:Ct,BlobSetMetadataHeaders:kt,BlobSetMetadataExceptionHeaders:At,BlobAcquireLeaseHeaders:Dt,BlobAcquireLeaseExceptionHeaders:It,BlobReleaseLeaseHeaders:Lt,BlobReleaseLeaseExceptionHeaders:Bt,BlobRenewLeaseHeaders:Mt,BlobRenewLeaseExceptionHeaders:jt,BlobChangeLeaseHeaders:zt,BlobChangeLeaseExceptionHeaders:Ft,BlobBreakLeaseHeaders:Ut,BlobBreakLeaseExceptionHeaders:qt,BlobCreateSnapshotHeaders:Ht,BlobCreateSnapshotExceptionHeaders:Vt,BlobStartCopyFromURLHeaders:Gt,BlobStartCopyFromURLExceptionHeaders:Wt,BlobCopyFromURLHeaders:$t,BlobCopyFromURLExceptionHeaders:Xt,BlobAbortCopyFromURLHeaders:Kt,BlobAbortCopyFromURLExceptionHeaders:Jt,BlobSetTierHeaders:Qt,BlobSetTierExceptionHeaders:Yt,BlobGetAccountInfoHeaders:Zt,BlobGetAccountInfoExceptionHeaders:er,BlobQueryHeaders:tr,BlobQueryExceptionHeaders:rr,BlobGetTagsHeaders:ir,BlobGetTagsExceptionHeaders:nr,BlobSetTagsHeaders:ar,BlobSetTagsExceptionHeaders:sr,PageBlobCreateHeaders:or,PageBlobCreateExceptionHeaders:lr,PageBlobUploadPagesHeaders:pr,PageBlobUploadPagesExceptionHeaders:cr,PageBlobClearPagesHeaders:dr,PageBlobClearPagesExceptionHeaders:ur,PageBlobUploadPagesFromURLHeaders:mr,PageBlobUploadPagesFromURLExceptionHeaders:fr,PageBlobGetPageRangesHeaders:hr,PageBlobGetPageRangesExceptionHeaders:gr,PageBlobGetPageRangesDiffHeaders:yr,PageBlobGetPageRangesDiffExceptionHeaders:br,PageBlobResizeHeaders:vr,PageBlobResizeExceptionHeaders:wr,PageBlobUpdateSequenceNumberHeaders:xr,PageBlobUpdateSequenceNumberExceptionHeaders:Sr,PageBlobCopyIncrementalHeaders:_r,PageBlobCopyIncrementalExceptionHeaders:Er,AppendBlobCreateHeaders:Tr,AppendBlobCreateExceptionHeaders:Nr,AppendBlobAppendBlockHeaders:Pr,AppendBlobAppendBlockExceptionHeaders:Or,AppendBlobAppendBlockFromUrlHeaders:Rr,AppendBlobAppendBlockFromUrlExceptionHeaders:Cr,AppendBlobSealHeaders:kr,AppendBlobSealExceptionHeaders:Ar,BlockBlobUploadHeaders:Dr,BlockBlobUploadExceptionHeaders:Ir,BlockBlobPutBlobFromUrlHeaders:Lr,BlockBlobPutBlobFromUrlExceptionHeaders:Br,BlockBlobStageBlockHeaders:Mr,BlockBlobStageBlockExceptionHeaders:jr,BlockBlobStageBlockFromURLHeaders:zr,BlockBlobStageBlockFromURLExceptionHeaders:Fr,BlockBlobCommitBlockListHeaders:Ur,BlockBlobCommitBlockListExceptionHeaders:qr,BlockBlobGetBlockListHeaders:Hr,BlockBlobGetBlockListExceptionHeaders:Vr});const Wr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const $r={parameterPath:"blobServiceProperties",mapper:N};const Xr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Kr={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Jr={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Qr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Yr={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Zr={parameterPath:"version",mapper:{defaultValue:"2023-11-03",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const ei={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const ti={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ri={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ii={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ni={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const ai={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const si={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const oi={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:s.QueryCollectionFormat.Csv};const li={parameterPath:"keyInfo",mapper:j};const pi={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ci={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const di={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ui={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 yi={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const bi={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const vi={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const wi={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const xi={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Si={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const _i={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const Ei={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Ti={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ni={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pi={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Oi={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ri={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Ci={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const ki={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ai={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 Ii={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Li={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Bi={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Mi={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const ji={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const zi={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Fi={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Ui={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 Gi={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:s.QueryCollectionFormat.Csv};const Wi={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const $i={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Xi={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Ki={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Ji={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Qi={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Yi={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Zi={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const en={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const tn={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const rn={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const nn={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const an={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const sn={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const ln={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 cn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const dn={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const un={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 yn={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const bn={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const vn={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const wn={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const xn={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Sn={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const _n={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const En={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Tn={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 Nn={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const Pn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const On={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Rn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Cn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const kn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const An={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 In={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Ln={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Bn={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const Mn={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const jn={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const zn={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 Fn={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Un={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 Gn={parameterPath:["options","queryRequest"],mapper:oe};const Wn={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const $n={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Xn={parameterPath:["options","tags"],mapper:H};const Kn={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Jn={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Qn={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Yn={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Zn={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const ea={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const ta={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ra={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ia={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const na={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const aa={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const sa={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const oa={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const la={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const pa={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const ca={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const da={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const ua={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const ma={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fa={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const ha={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const ga={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 ya={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ba={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const va={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wa={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const xa={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Sa={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const _a={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ea={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Ta={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const Na={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pa={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Oa={parameterPath:"blocks",mapper:te};const Ra={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ca={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 a={blobServiceProperties:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Aa)}getProperties(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Da)}getStatistics(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ia)}listContainersSegment(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,La)}getUserDelegationKey(r,i){const a={keyInfo:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ba)}getAccountInfo(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ma)}submitBatch(r,i,a,s){const l={contentLength:r,multipartContentType:i,body:a,options:x.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(l,ja)}filterBlobs(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,za)}}const ka=new x.Serializer(Gr,true);const Aa={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:fe},default:{bodyMapper:A,headersMapper:he}},requestBody:$r,queryParameters:[Jr,Qr,Yr],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ka};const Da={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:N,headersMapper:ge},default:{bodyMapper:A,headersMapper:ye}},queryParameters:[Jr,Qr,Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ka};const Ia={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:D,headersMapper:be},default:{bodyMapper:A,headersMapper:ve}},queryParameters:[Jr,Yr,ri],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ka};const La={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:L,headersMapper:we},default:{bodyMapper:A,headersMapper:xe}},queryParameters:[Yr,ii,ni,ai,si,oi],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ka};const Ba={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:z,headersMapper:Se},default:{bodyMapper:A,headersMapper:_e}},requestBody:li,queryParameters:[Jr,Yr,pi],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ka};const Ma={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Ee},default:{bodyMapper:A,headersMapper:Te}},queryParameters:[Qr,ci],urlParameters:[Kr],headerParameters:[Zr,ti],isXML:true,serializer:ka};const ja={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Ne},default:{bodyMapper:A,headersMapper:Pe}},requestBody:di,queryParameters:[Yr,ui],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei,mi,fi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ka};const za={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:Oe},default:{bodyMapper:A,headersMapper:Re}},queryParameters:[Yr,ai,si,hi,gi],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ka};class Container{constructor(r){this.client=r}create(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ua)}getProperties(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,qa)}delete(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ha)}setMetadata(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Va)}getAccessPolicy(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ga)}setAccessPolicy(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Wa)}restore(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,$a)}rename(r,i){const a={sourceContainerName:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Xa)}submitBatch(r,i,a,s){const l={contentLength:r,multipartContentType:i,body:a,options:x.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(l,Ka)}filterBlobs(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ja)}acquireLease(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Qa)}releaseLease(r,i){const a={leaseId:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ya)}renewLease(r,i){const a={leaseId:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Za)}breakLease(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,es)}changeLease(r,i,a){const s={leaseId:r,proposedLeaseId:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,ts)}listBlobFlatSegment(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,rs)}listBlobHierarchySegment(r,i){const a={delimiter:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,ns)}getAccountInfo(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,as)}}const Fa=new x.Serializer(Gr,true);const Ua={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ce},default:{bodyMapper:A,headersMapper:ke}},queryParameters:[Yr,yi],urlParameters:[Kr],headerParameters:[Zr,ei,ti,bi,vi,wi,xi],isXML:true,serializer:Fa};const qa={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Ae},default:{bodyMapper:A,headersMapper:De}},queryParameters:[Yr,yi],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si],isXML:true,serializer:Fa};const Ha={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:Ie},default:{bodyMapper:A,headersMapper:Le}},queryParameters:[Yr,yi],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei],isXML:true,serializer:Fa};const Va={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Be},default:{bodyMapper:A,headersMapper:Me}},queryParameters:[Yr,yi,Ti],urlParameters:[Kr],headerParameters:[Zr,ei,ti,bi,Si,_i],isXML:true,serializer:Fa};const Ga={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:je},default:{bodyMapper:A,headersMapper:ze}},queryParameters:[Yr,yi,Ni],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si],isXML:true,serializer:Fa};const Wa={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Fe},default:{bodyMapper:A,headersMapper:Ue}},requestBody:Pi,queryParameters:[Yr,yi,Ni],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei,vi,Si,_i,Ei],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fa};const $a={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:qe},default:{bodyMapper:A,headersMapper:He}},queryParameters:[Yr,yi,Oi],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Ri,Ci],isXML:true,serializer:Fa};const Xa={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ve},default:{bodyMapper:A,headersMapper:Ge}},queryParameters:[Yr,yi,ki],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Ai,Di],isXML:true,serializer:Fa};const Ka={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:We},default:{bodyMapper:A,headersMapper:$e}},requestBody:di,queryParameters:[Yr,ui,yi],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei,mi,fi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fa};const Ja={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:U,headersMapper:Xe},default:{bodyMapper:A,headersMapper:Ke}},queryParameters:[Yr,ai,si,hi,gi,yi],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Fa};const Qa={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Je},default:{bodyMapper:A,headersMapper:Qe}},queryParameters:[Yr,yi,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,Li,Bi,Mi],isXML:true,serializer:Fa};const Ya={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ye},default:{bodyMapper:A,headersMapper:Ze}},queryParameters:[Yr,yi,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,ji,zi],isXML:true,serializer:Fa};const Za={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:et},default:{bodyMapper:A,headersMapper:tt}},queryParameters:[Yr,yi,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,zi,Fi],isXML:true,serializer:Fa};const es={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:rt},default:{bodyMapper:A,headersMapper:it}},queryParameters:[Yr,yi,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,Ui,qi],isXML:true,serializer:Fa};const ts={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:nt},default:{bodyMapper:A,headersMapper:st}},queryParameters:[Yr,yi,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,zi,Hi,Vi],isXML:true,serializer:Fa};const rs={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:$,headersMapper:ot},default:{bodyMapper:A,headersMapper:lt}},queryParameters:[Yr,ii,ni,ai,si,yi,Gi],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Fa};const ns={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Y,headersMapper:pt},default:{bodyMapper:A,headersMapper:ct}},queryParameters:[Yr,ii,ni,ai,si,yi,Gi,Wi],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Fa};const as={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:dt},default:{bodyMapper:A,headersMapper:ut}},queryParameters:[Qr,ci],urlParameters:[Kr],headerParameters:[Zr,ti],isXML:true,serializer:Fa};class Blob$1{constructor(r){this.client=r}download(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,os)}getProperties(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ls)}delete(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ps)}undelete(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,cs)}setExpiry(r,i){const a={expiryOptions:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,ds)}setHttpHeaders(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,us)}setImmutabilityPolicy(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ms)}deleteImmutabilityPolicy(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,fs)}setLegalHold(r,i){const a={legalHold:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,hs)}setMetadata(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,gs)}acquireLease(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ys)}releaseLease(r,i){const a={leaseId:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,bs)}renewLease(r,i){const a={leaseId:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,vs)}changeLease(r,i,a){const s={leaseId:r,proposedLeaseId:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,ws)}breakLease(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,xs)}createSnapshot(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ss)}startCopyFromURL(r,i){const a={copySource:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,_s)}copyFromURL(r,i){const a={copySource:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Es)}abortCopyFromURL(r,i){const a={copyId:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ts)}setTier(r,i){const a={tier:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ns)}getAccountInfo(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ps)}query(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Os)}getTags(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Rs)}setTags(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Cs)}}const ss=new x.Serializer(Gr,true);const os={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:mt},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:mt},default:{bodyMapper:A,headersMapper:ft}},queryParameters:[Yr,$i,Xi],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,Ki,Ji,Qi,Yi,Zi,en,tn,rn,nn],isXML:true,serializer:ss};const ls={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ht},default:{bodyMapper:A,headersMapper:gt}},queryParameters:[Yr,$i,Xi],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,Yi,Zi,en,tn,rn,nn],isXML:true,serializer:ss};const ps={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:yt},default:{bodyMapper:A,headersMapper:bt}},queryParameters:[Yr,$i,Xi,sn],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,tn,rn,nn,an],isXML:true,serializer:ss};const cs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vt},default:{bodyMapper:A,headersMapper:wt}},queryParameters:[Yr,Oi],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ss};const ds={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xt},default:{bodyMapper:A,headersMapper:St}},queryParameters:[Yr,ln],urlParameters:[Kr],headerParameters:[Zr,ei,ti,pn,cn],isXML:true,serializer:ss};const us={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_t},default:{bodyMapper:A,headersMapper:Et}},queryParameters:[Qr,Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,tn,rn,nn,dn,un,mn,hn,gn,yn],isXML:true,serializer:ss};const ms={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tt},default:{bodyMapper:A,headersMapper:Nt}},queryParameters:[Yr,bn],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Ei,vn,wn],isXML:true,serializer:ss};const fs={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:Pt},default:{bodyMapper:A,headersMapper:Ot}},queryParameters:[Yr,bn],urlParameters:[Kr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ss};const hs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Rt},default:{bodyMapper:A,headersMapper:Ct}},queryParameters:[Yr,xn],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Sn],isXML:true,serializer:ss};const gs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:kt},default:{bodyMapper:A,headersMapper:At}},queryParameters:[Yr,Ti],urlParameters:[Kr],headerParameters:[Zr,ei,ti,bi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,_n],isXML:true,serializer:ss};const ys={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dt},default:{bodyMapper:A,headersMapper:It}},queryParameters:[Yr,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,Li,Bi,Mi,tn,rn,nn],isXML:true,serializer:ss};const bs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lt},default:{bodyMapper:A,headersMapper:Bt}},queryParameters:[Yr,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,ji,zi,tn,rn,nn],isXML:true,serializer:ss};const vs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Mt},default:{bodyMapper:A,headersMapper:jt}},queryParameters:[Yr,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,zi,Fi,tn,rn,nn],isXML:true,serializer:ss};const ws={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:zt},default:{bodyMapper:A,headersMapper:Ft}},queryParameters:[Yr,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,zi,Hi,Vi,tn,rn,nn],isXML:true,serializer:ss};const xs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ut},default:{bodyMapper:A,headersMapper:qt}},queryParameters:[Yr,Ii],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,Ui,qi,tn,rn,nn],isXML:true,serializer:ss};const Ss={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ht},default:{bodyMapper:A,headersMapper:Vt}},queryParameters:[Yr,En],urlParameters:[Kr],headerParameters:[Zr,ei,ti,bi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,_n],isXML:true,serializer:ss};const _s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Gt},default:{bodyMapper:A,headersMapper:Wt}},queryParameters:[Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,bi,Si,_i,Ei,tn,rn,nn,vn,wn,Tn,Nn,Pn,On,Rn,Cn,kn,An,Dn,In,Ln],isXML:true,serializer:ss};const Es={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:$t},default:{bodyMapper:A,headersMapper:Xt}},queryParameters:[Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,bi,Si,_i,Ei,tn,rn,nn,vn,wn,_n,Tn,Pn,On,Rn,Cn,An,Dn,Ln,Bn,Mn,jn,zn],isXML:true,serializer:ss};const Ts={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Kt},default:{bodyMapper:A,headersMapper:Jt}},queryParameters:[Yr,Fn,qn],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,Un],isXML:true,serializer:ss};const Ns={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Qt},202:{headersMapper:Qt},default:{bodyMapper:A,headersMapper:Yt}},queryParameters:[Yr,$i,Xi,Hn],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,nn,Nn,Vn],isXML:true,serializer:ss};const Ps={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Zt},default:{bodyMapper:A,headersMapper:er}},queryParameters:[Qr,ci],urlParameters:[Kr],headerParameters:[Zr,ti],isXML:true,serializer:ss};const Os={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:tr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:tr},default:{bodyMapper:A,headersMapper:rr}},requestBody:Gn,queryParameters:[Yr,$i,Wn],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei,Si,_i,Ei,Yi,Zi,en,tn,rn,nn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ss};const Rs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:H,headersMapper:ir},default:{bodyMapper:A,headersMapper:nr}},queryParameters:[Yr,$i,Xi,$n],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,nn],isXML:true,serializer:ss};const Cs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:ar},default:{bodyMapper:A,headersMapper:sr}},requestBody:Xn,queryParameters:[Yr,Xi,$n],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei,Si,nn,Kn,Jn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ss};class PageBlob{constructor(r){this.client=r}create(r,i,a){const s={contentLength:r,blobContentLength:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,Ds)}uploadPages(r,i,a){const s={contentLength:r,body:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,Is)}clearPages(r,i){const a={contentLength:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ls)}uploadPagesFromURL(r,i,a,s,l){const p={sourceUrl:r,sourceRange:i,contentLength:a,range:s,options:x.operationOptionsToRequestOptionsBase(l||{})};return this.client.sendOperationRequest(p,Bs)}getPageRanges(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ms)}getPageRangesDiff(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,js)}resize(r,i){const a={blobContentLength:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,zs)}updateSequenceNumber(r,i){const a={sequenceNumberAction:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Fs)}copyIncremental(r,i){const a={copySource:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Us)}}const ks=new x.Serializer(Gr,true);const As=new x.Serializer(Gr,false);const Ds={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:or},default:{bodyMapper:A,headersMapper:lr}},queryParameters:[Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,mi,bi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,dn,un,mn,hn,gn,yn,vn,wn,_n,Tn,Dn,Ln,Qn,Yn,Zn],isXML:true,serializer:ks};const Is={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pr},default:{bodyMapper:A,headersMapper:cr}},requestBody:ta,queryParameters:[Yr,ia],urlParameters:[Kr],headerParameters:[Zr,ei,mi,Si,_i,Ei,Ki,Yi,Zi,en,tn,rn,nn,_n,Kn,Jn,ea,ra,na,aa,sa,oa],mediaType:"binary",serializer:As};const Ls={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:dr},default:{bodyMapper:A,headersMapper:ur}},queryParameters:[Yr,ia],urlParameters:[Kr],headerParameters:[Zr,ei,ti,mi,Si,_i,Ei,Ki,Yi,Zi,en,tn,rn,nn,_n,aa,sa,oa,la],isXML:true,serializer:ks};const Bs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:mr},default:{bodyMapper:A,headersMapper:fr}},queryParameters:[Yr,ia],urlParameters:[Kr],headerParameters:[Zr,ei,ti,mi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,_n,Pn,On,Rn,Cn,Mn,jn,na,aa,sa,oa,pa,ca,da,ua],isXML:true,serializer:ks};const Ms={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ne,headersMapper:hr},default:{bodyMapper:A,headersMapper:gr}},queryParameters:[Yr,ai,si,$i,ma],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,Ki,tn,rn,nn],isXML:true,serializer:ks};const js={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ne,headersMapper:yr},default:{bodyMapper:A,headersMapper:br}},queryParameters:[Yr,ai,si,$i,ma,fa],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,Ki,tn,rn,nn,ha],isXML:true,serializer:ks};const zs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vr},default:{bodyMapper:A,headersMapper:wr}},queryParameters:[Qr,Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,_n,Yn],isXML:true,serializer:ks};const Fs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xr},default:{bodyMapper:A,headersMapper:Sr}},queryParameters:[Qr,Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,tn,rn,nn,Zn,ga],isXML:true,serializer:ks};const Us={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:_r},default:{bodyMapper:A,headersMapper:Er}},queryParameters:[Yr,ya],urlParameters:[Kr],headerParameters:[Zr,ei,ti,_i,Ei,tn,rn,nn,An],isXML:true,serializer:ks};class AppendBlob{constructor(r){this.client=r}create(r,i){const a={contentLength:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Vs)}appendBlock(r,i,a){const s={contentLength:r,body:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,Gs)}appendBlockFromUrl(r,i,a){const s={sourceUrl:r,contentLength:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,Ws)}seal(r){const i={options:x.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,$s)}}const qs=new x.Serializer(Gr,true);const Hs=new x.Serializer(Gr,false);const Vs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Tr},default:{bodyMapper:A,headersMapper:Nr}},queryParameters:[Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,mi,bi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,dn,un,mn,hn,gn,yn,vn,wn,_n,Dn,Ln,ba],isXML:true,serializer:qs};const Gs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:A,headersMapper:Or}},requestBody:ta,queryParameters:[Yr,va],urlParameters:[Kr],headerParameters:[Zr,ei,mi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,_n,Kn,Jn,ea,ra,wa,xa],mediaType:"binary",serializer:Hs};const Ws={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Rr},default:{bodyMapper:A,headersMapper:Cr}},queryParameters:[Yr,va],urlParameters:[Kr],headerParameters:[Zr,ei,ti,mi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,_n,Pn,On,Rn,Cn,Mn,jn,Kn,pa,da,wa,xa,Sa],isXML:true,serializer:qs};const $s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:kr},default:{bodyMapper:A,headersMapper:Ar}},queryParameters:[Yr,_a],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,_i,Ei,tn,rn,xa],isXML:true,serializer:qs};class BlockBlob{constructor(r){this.client=r}upload(r,i,a){const s={contentLength:r,body:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,Js)}putBlobFromUrl(r,i,a){const s={contentLength:r,copySource:i,options:x.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(s,Qs)}stageBlock(r,i,a,s){const l={blockId:r,contentLength:i,body:a,options:x.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(l,Ys)}stageBlockFromURL(r,i,a,s){const l={blockId:r,contentLength:i,sourceUrl:a,options:x.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(l,Zs)}commitBlockList(r,i){const a={blocks:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,eo)}getBlockList(r,i){const a={listType:r,options:x.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,to)}}const Xs=new x.Serializer(Gr,true);const Ks=new x.Serializer(Gr,false);const Js={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dr},default:{bodyMapper:A,headersMapper:Ir}},requestBody:ta,queryParameters:[Yr],urlParameters:[Kr],headerParameters:[Zr,ei,mi,bi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,dn,un,mn,hn,gn,yn,vn,wn,_n,Tn,Dn,Ln,Kn,Jn,ea,ra,Ea],mediaType:"binary",serializer:Ks};const Qs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Lr},default:{bodyMapper:A,headersMapper:Br}},queryParameters:[Yr],urlParameters:[Kr],headerParameters:[Zr,ei,ti,mi,bi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,dn,un,mn,hn,gn,yn,_n,Tn,Pn,On,Rn,Cn,kn,An,Dn,Mn,jn,zn,Kn,Ea,Ta],isXML:true,serializer:Xs};const Ys={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:A,headersMapper:jr}},requestBody:ta,queryParameters:[Yr,Na,Pa],urlParameters:[Kr],headerParameters:[Zr,ei,mi,Si,Yi,Zi,en,_n,Kn,Jn,ea,ra],mediaType:"binary",serializer:Ks};const Zs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:zr},default:{bodyMapper:A,headersMapper:Fr}},queryParameters:[Yr,Na,Pa],urlParameters:[Kr],headerParameters:[Zr,ei,ti,mi,Si,Yi,Zi,en,_n,Pn,On,Rn,Cn,Mn,jn,pa,da,Sa],isXML:true,serializer:Xs};const eo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ur},default:{bodyMapper:A,headersMapper:qr}},requestBody:Oa,queryParameters:[Yr,Ra],urlParameters:[Kr],headerParameters:[Wr,Xr,Zr,ei,bi,Si,_i,Ei,Yi,Zi,en,tn,rn,nn,dn,un,mn,hn,gn,yn,vn,wn,_n,Tn,Dn,Ln,Kn,Jn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Xs};const to={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:re,headersMapper:Hr},default:{bodyMapper:A,headersMapper:Vr}},queryParameters:[Yr,$i,Ra,Ca],urlParameters:[Kr],headerParameters:[Zr,ei,ti,Si,nn],isXML:true,serializer:Xs};const ro=c.createClientLogger("storage-blob");const io="12.17.0";const no="2023-11-03";const ao=256*1024*1024;const so=4e3*1024*1024;const oo=5e4;const lo=8*1024*1024;const po=4*1024*1024;const co=5;const uo=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 yo="";const bo="*";const vo=1*1024*1024;const wo=256;const xo=4*vo;const So="\r\n";const _o="HTTP/1.1";const Eo="AES256";const To=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const No=["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 Po=["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 Oo="BlobUsesCustomerSpecifiedEncryption";const Ro="BlobDoesNotUseCustomerSpecifiedEncryption";const Co=["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=s.URLBuilder.parse(r);let a=i.getPath();a=a||"/";a=escape(a);i.setPath(a);return i.toString()}function getProxyUriFromDevConnString(r){let i="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const a=r.split(";");for(const r of a){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){i=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return i}function getValueInConnString(r,i){const a=r.split(";");for(const r of a){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=To}let a=getValueInConnString(r,"BlobEndpoint");a=a.endsWith("/")?a.slice(0,-1):a;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let s="";let l="";let p=Buffer.from("accountKey","base64");let c="";l=getValueInConnString(r,"AccountName");p=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!a){s=getValueInConnString(r,"DefaultEndpointsProtocol");const i=s.toLowerCase();if(i!=="https"&&i!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}c=getValueInConnString(r,"EndpointSuffix");if(!c){throw new Error("Invalid EndpointSuffix in the provided Connection String")}a=`${s}://${l}.blob.${c}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(p.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:a,accountName:l,accountKey:p,proxyUri:i}}else{const i=getValueInConnString(r,"SharedAccessSignature");let s=getValueInConnString(r,"AccountName");if(!s){s=getAccountNameFromUrl(a)}if(!a){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:a,accountName:s,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 a=s.URLBuilder.parse(r);let l=a.getPath();l=l?l.endsWith("/")?`${l}${i}`:`${l}/${i}`:i;a.setPath(l);const p=new URL(a.toString());return p.toString()}function setURLParameter(r,i,a){const l=s.URLBuilder.parse(r);l.setQueryParameter(i,a);return l.toString()}function getURLParameter(r,i){const a=s.URLBuilder.parse(r);return a.getQueryParameterValue(i)}function setURLHost(r,i){const a=s.URLBuilder.parse(r);a.setHost(i);return a.toString()}function getURLPath(r){const i=s.URLBuilder.parse(r);return i.getPath()}function getURLScheme(r){const i=s.URLBuilder.parse(r);return i.getScheme()}function getURLPathAndQuery(r){const i=s.URLBuilder.parse(r);const a=i.getPath();if(!a){throw new RangeError("Invalid url without valid path.")}let l=i.getQuery()||"";l=l.trim();if(l!==""){l=l.startsWith("?")?l:`?${l}`}return`${a}${l}`}function getURLQueries(r){let i=s.URLBuilder.parse(r).getQuery();if(!i){return{}}i=i.trim();i=i.startsWith("?")?i.substr(1):i;let a=i.split("&");a=a.filter((r=>{const i=r.indexOf("=");const a=r.lastIndexOf("=");return i>0&&i===a&&al){r=r.slice(0,l)}const p=r+padStart(i.toString(),a-r.length,"0");return base64encode(p)}async function delay(r,i,a){return new Promise(((s,l)=>{let p;const abortHandler=()=>{if(p!==undefined){clearTimeout(p)}l(a)};const resolveHandler=()=>{if(i!==undefined){i.removeEventListener("abort",abortHandler)}s()};p=setTimeout(resolveHandler,r);if(i!==undefined){i.addEventListener("abort",abortHandler)}}))}function padStart(r,i,a=" "){if(String.prototype.padStart){return r.padStart(i,a)}a=a||" ";if(r.length>i){return r}else{i=i-r.length;if(i>a.length){a+=a.repeat(i/a.length)}return a.slice(0,i)+r}}function iEqual(r,i){return r.toLocaleLowerCase()===i.toLocaleLowerCase()}function getAccountNameFromUrl(r){const i=s.URLBuilder.parse(r);let a;try{if(i.getHost().split(".")[1]==="blob"){a=i.getHost().split(".")[0]}else if(isIpEndpointStyle(i)){a=i.getPath().split("/")[1]}else{a=""}return a}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&&Co.includes(r.getPort())}function toBlobTagsString(r){if(r===undefined){return undefined}const i=[];for(const a in r){if(Object.prototype.hasOwnProperty.call(r,a)){const s=r[a];i.push(`${encodeURIComponent(a)}=${encodeURIComponent(s)}`)}}return i.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const i={blobTagSet:[]};for(const a in r){if(Object.prototype.hasOwnProperty.call(r,a)){const s=r[a];i.blobTagSet.push({key:a,value:s})}}return i}function toTags(r){if(r===undefined){return undefined}const i={};for(const a of r.blobTagSet){i[a.key]=a.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 a in r){const s=a.split("_");const l="or-";if(s[0].startsWith(l)){s[0]=s[0].substring(l.length)}const p={ruleId:s[1],replicationStatus:r[a]};const c=i.findIndex((r=>r.policyId===s[0]));if(c>-1){i[c].rules.push(p)}else{i.push({policyId:s[0],rules:[p]})}}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 a=[];if(r.pageRange)i=r.pageRange;if(r.clearRange)a=r.clearRange;let s=0;let l=0;while(s=1?Math.floor(a.maxTries):ko.maxTries,tryTimeoutInMs:a.tryTimeoutInMs&&a.tryTimeoutInMs>=0?a.tryTimeoutInMs:ko.tryTimeoutInMs,retryDelayInMs:a.retryDelayInMs&&a.retryDelayInMs>=0?Math.min(a.retryDelayInMs,a.maxRetryDelayInMs?a.maxRetryDelayInMs:ko.maxRetryDelayInMs):ko.retryDelayInMs,maxRetryDelayInMs:a.maxRetryDelayInMs&&a.maxRetryDelayInMs>=0?a.maxRetryDelayInMs:ko.maxRetryDelayInMs,secondaryHost:a.secondaryHost?a.secondaryHost:ko.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,i,a){const s=r.clone();const l=i||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||a%2===1;if(!l){s.url=setURLHost(s.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){s.url=setURLParameter(s.url,fo.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let p;try{ro.info(`RetryPolicy: =====> Try=${a} ${l?"Primary":"Secondary"}`);p=await this._nextPolicy.sendRequest(s);if(!this.shouldRetry(l,a,p)){return p}i=i||!l&&p.status===404}catch(r){ro.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(l,a,p,r)){throw r}}await this.delay(l,a,r.abortSignal);return this.attemptSendRequest(r,i,++a)}shouldRetry(r,i,a,s){if(i>=this.retryOptions.maxTries){ro.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(s){for(const r of l){if(s.name.toUpperCase().includes(r)||s.message.toUpperCase().includes(r)||s.code&&s.code.toString().toUpperCase()===r){ro.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(a||s){const i=a?a.status:s?s.statusCode:0;if(!r&&i===404){ro.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(i===503||i===500){ro.info(`RetryPolicy: Will retry for status code ${i}.`);return true}}if((s===null||s===void 0?void 0:s.code)==="PARSE_ERROR"&&(s===null||s===void 0?void 0:s.message.startsWith(`Error "Error: Unclosed root tag`))){ro.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,a,s){let l=0;if(r){switch(this.retryOptions.retryPolicyType){case i.StorageRetryPolicyType.EXPONENTIAL:l=Math.min((Math.pow(2,a-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case i.StorageRetryPolicyType.FIXED:l=this.retryOptions.retryDelayInMs;break}}else{l=Math.random()*1e3}ro.info(`RetryPolicy: Delay for ${l}ms`);return delay(l,s,Ao)}}class StorageRetryPolicyFactory{constructor(r){this.retryOptions=r}create(r,i){return new StorageRetryPolicy(r,i,this.retryOptions)}}class CredentialPolicy extends s.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 s.BaseRequestPolicy{constructor(r,i,a){super(r,i);this.telemetry=a}async sendRequest(r){if(s.isNode){if(!r.headers){r.headers=new s.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(s.isNode){if(r){const a=r.userAgentPrefix||"";if(a.length>0&&i.indexOf(a)===-1){i.push(a)}}const a=`azsdk-js-storageblob/${io}`;if(i.indexOf(a)===-1){i.push(a)}let s=`(NODE-VERSION ${process.version})`;if(S){s=`(NODE-VERSION ${process.version}; ${S.type()} ${S.release()})`}if(i.indexOf(s)===-1){i.push(s)}}this.telemetryString=i.join(" ")}create(r,i){return new TelemetryPolicy(r,i,this.telemetryString)}}const Do=new s.DefaultHttpClient;function getCachedDefaultHttpClient(){return Do}const Io={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Lo={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,a){async function tryGetAccessToken(){if(Date.now()r.getToken(i,a);s=beginRefresh(tryGetAccessToken,p.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{s=null;l=r;return l})).catch((r=>{s=null;l=null;throw r}))}return s}return async r=>{if(c.mustRefresh)return refresh(r);if(c.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 a=`${i.trim()} `.split(" ").filter((r=>r));const s=a.map((r=>(([r,i])=>({[r]:i}))(r.trim().split("="))));return s.reduce(((r,i)=>Object.assign(Object.assign({},r),i)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,i){let a=createTokenCycler(r,i);class StorageBearerTokenChallengeAuthenticationPolicy extends s.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=a;const p=(await l({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext}})).token;i.headers.set(Io.HeaderConstants.AUTHORIZATION,`Bearer ${p}`);const c=await this._nextPolicy.sendRequest(i);if((c===null||c===void 0?void 0:c.status)===401){const l=getChallenge(c);if(l){const p=parseChallenge(l);const c=p.resource_id+Io.DefaultScope;const d=s.URLBuilder.parse(p.authorization_uri);const u=d.getPath().split("/");const h=u[1];const g=createTokenCycler(r,c);const y=(await g({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext},tenantId:h})).token;a=g;i.headers.set(Io.HeaderConstants.AUTHORIZATION,`Bearer ${y}`);return this._nextPolicy.sendRequest(i)}}return c}}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 a;if(r===undefined){r=new AnonymousCredential}const l=new TelemetryPolicyFactory(i.userAgentOptions);const p=[s.tracingPolicy({userAgent:l.telemetryString}),s.keepAlivePolicy(i.keepAliveOptions),l,s.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(i.retryOptions),s.deserializationPolicy(undefined,{xmlCharKey:"#"}),s.logPolicy({logger:ro.info,allowedHeaderNames:No,allowedQueryParameters:Po})];if(s.isNode){p.push(s.proxyPolicy(i.proxyOptions));p.push(s.disableResponseDecompressionPolicy())}p.push(s.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(a=i.audience)!==null&&a!==void 0?a:mo),r):r);return new Pipeline(p,i)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,i,a){super(r,i);this.factory=a}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 a=this.factory.computeHMACSHA256(i);r.headers.set(go.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${a}`);return r}getHeaderValueToSign(r,i){const a=r.headers.get(i);if(!a){return""}if(i===go.CONTENT_LENGTH&&a==="0"){return""}return a}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,a)=>{if(i>0&&r.name.toLowerCase()===a[i-1].name.toLowerCase()){return false}return true}));let a="";i.forEach((r=>{a+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return a}getCanonicalizedResourceString(r){const i=getURLPath(r.url)||"/";let a="";a+=`/${this.factory.accountName}${i}`;const s=getURLQueries(r.url);const l={};if(s){const r=[];for(const i in s){if(Object.prototype.hasOwnProperty.call(s,i)){const a=i.toLowerCase();l[a]=s[i];r.push(a)}}r.sort();for(const i of r){a+=`\n${i}:${decodeURIComponent(l[i])}`}}return a}}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 h.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const Bo="azure-storage-blob";const Mo="12.17.0";class StorageClientContext extends x.ServiceClient{constructor(r,i){if(r===undefined){throw new Error("'url' cannot be null")}if(!i){i={}}if(!i.userAgent){const r=x.getDefaultUserAgentValue();i.userAgent=`${Bo}/${Mo} ${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(s.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(s.isTokenCredential(r.credential)){this.credential=r.credential}}const a=this.storageClientContext;a.requestContentType=undefined}}const jo=p.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var i,a;return{spanOptions:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.spanOptions,tracingContext:(a=r===null||r===void 0?void 0:r.tracingOptions)===null||a===void 0?void 0:a.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 a of r){switch(a){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: ${a}`)}}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 a of r){switch(a){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 ${a}`)}}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 h.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,a,s,l,p,c,d,u,h,g,y,b,v,w,x,S,_,T,N){this.version=r;this.signature=i;if(a!==undefined&&typeof a!=="string"){this.permissions=a.permissions;this.services=a.services;this.resourceTypes=a.resourceTypes;this.protocol=a.protocol;this.startsOn=a.startsOn;this.expiresOn=a.expiresOn;this.ipRangeInner=a.ipRange;this.identifier=a.identifier;this.encryptionScope=a.encryptionScope;this.resource=a.resource;this.cacheControl=a.cacheControl;this.contentDisposition=a.contentDisposition;this.contentEncoding=a.contentEncoding;this.contentLanguage=a.contentLanguage;this.contentType=a.contentType;if(a.userDelegationKey){this.signedOid=a.userDelegationKey.signedObjectId;this.signedTenantId=a.userDelegationKey.signedTenantId;this.signedStartsOn=a.userDelegationKey.signedStartsOn;this.signedExpiresOn=a.userDelegationKey.signedExpiresOn;this.signedService=a.userDelegationKey.signedService;this.signedVersion=a.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=a.preauthorizedAgentObjectId;this.correlationId=a.correlationId}}else{this.services=s;this.resourceTypes=l;this.expiresOn=d;this.permissions=a;this.protocol=p;this.startsOn=c;this.ipRangeInner=u;this.encryptionScope=N;this.identifier=h;this.resource=g;this.cacheControl=y;this.contentDisposition=b;this.contentEncoding=v;this.contentLanguage=w;this.contentType=x;if(S){this.signedOid=S.signedObjectId;this.signedTenantId=S.signedTenantId;this.signedStartsOn=S.signedStartsOn;this.signedExpiresOn=S.signedExpiresOn;this.signedService=S.signedService;this.signedVersion=S.signedVersion;this.preauthorizedAgentObjectId=_;this.correlationId=T}}}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 a of r){switch(a){case"sv":this.tryAppendQueryParameter(i,a,this.version);break;case"ss":this.tryAppendQueryParameter(i,a,this.services);break;case"srt":this.tryAppendQueryParameter(i,a,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(i,a,this.protocol);break;case"st":this.tryAppendQueryParameter(i,a,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(i,a,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(i,a,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(i,a,this.identifier);break;case"ses":this.tryAppendQueryParameter(i,a,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(i,a,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(i,a,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(i,a,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(i,a,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(i,a,this.signedService);break;case"skv":this.tryAppendQueryParameter(i,a,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(i,a,this.resource);break;case"sp":this.tryAppendQueryParameter(i,a,this.permissions);break;case"sig":this.tryAppendQueryParameter(i,a,this.signature);break;case"rscc":this.tryAppendQueryParameter(i,a,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(i,a,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(i,a,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(i,a,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(i,a,this.contentType);break;case"saoid":this.tryAppendQueryParameter(i,a,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(i,a,this.correlationId);break}}return i.join("&")}tryAppendQueryParameter(r,i,a){if(!a){return}i=encodeURIComponent(i);a=encodeURIComponent(a);if(i.length>0&&a.length>0){r.push(`${i}=${a}`)}}}function generateBlobSASQueryParameters(r,i,a){const s=r.version?r.version:no;const l=i instanceof StorageSharedKeyCredential?i:undefined;let p;if(l===undefined&&a!==undefined){p=new UserDelegationKeyCredential(a,i)}if(l===undefined&&p===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(s>="2020-12-06"){if(l!==undefined){return generateBlobSASQueryParameters20201206(r,l)}else{return generateBlobSASQueryParametersUDK20201206(r,p)}}if(s>="2018-11-09"){if(l!==undefined){return generateBlobSASQueryParameters20181109(r,l)}else{if(s>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,p)}else{return generateBlobSASQueryParametersUDK20181109(r,p)}}}if(s>="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 a="c";if(r.blobName){a="b"}let s;if(r.permissions){if(r.blobName){s=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{s=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[s?s:"",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 p=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,p,s,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,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 a="c";let s=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";s=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 p=[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,a,s,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(p);return new SASQueryParameters(r.version,c,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,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 a="c";let s=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";s=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 p=[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,a,s,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 c=i.computeHMACSHA256(p);return new SASQueryParameters(r.version,c,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,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 a="c";let s=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";s=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 p=[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,a,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const c=i.computeHMACSHA256(p);return new SASQueryParameters(r.version,c,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,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 a="c";let s=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";s=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 p=[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,a,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const c=i.computeHMACSHA256(p);return new SASQueryParameters(r.version,c,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,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 a="c";let s=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";s=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 p=[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,a,s,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const c=i.computeHMACSHA256(p);return new SASQueryParameters(r.version,c,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,i,a){const s=[`/blob/${r}/${i}`];if(a){s.push(`/${a}`)}return s.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const i=r.version?r.version:no;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 a=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(a)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(a)}if(!i){i=s.generateUuid()}this._leaseId=i}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,i={}){var a,s,l,c,d,u;const{span:h,updatedOptions:g}=jo("BlobLeaseClient-acquireLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)!==yo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifNoneMatch)!==yo||((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(g)))}catch(r){h.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{h.end()}}async changeLease(r,i={}){var a,s,l,c,d,u;const{span:h,updatedOptions:g}=jo("BlobLeaseClient-changeLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)!==yo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifNoneMatch)!==yo||((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 a=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(g)));this._leaseId=r;return a}catch(r){h.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{h.end()}}async releaseLease(r={}){var i,a,s,l,c,d;const{span:u,updatedOptions:h}=jo("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=r.conditions)===null||a===void 0?void 0:a.ifMatch)!==yo||((s=r.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==yo||((c=r.conditions)===null||c===void 0?void 0:c.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(h)))}catch(r){u.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async renewLease(r={}){var i,a,s,l,c,d;const{span:u,updatedOptions:h}=jo("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=r.conditions)===null||a===void 0?void 0:a.ifMatch)!==yo||((s=r.conditions)===null||s===void 0?void 0:s.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==yo||((c=r.conditions)===null||c===void 0?void 0:c.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(h)))}catch(r){u.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async breakLease(r,i={}){var a,s,l,c,d,u;const{span:h,updatedOptions:g}=jo("BlobLeaseClient-breakLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)!==yo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifNoneMatch)!==yo||((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 a=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(g));return await this._containerOrBlobOperation.breakLease(a)}catch(r){h.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{h.end()}}}class RetriableReadableStream extends g.Readable{constructor(r,i,a,s,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=a;this.offset=a;this.end=a+s-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,a,s,l={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,i,a,s,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 s.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const zo=16;const Fo=new Uint8Array([79,98,106,1]);const Uo="avro.codec";const qo="avro.schema";class AvroParser{static async readFixedBytes(r,i,a={}){const s=await r.read(i,{abortSignal:a.abortSignal});if(s.length!==i){throw new Error("Hit stream end.")}return s}static async readByte(r,i={}){const a=await AvroParser.readFixedBytes(r,1,i);return a[0]}static async readZigZagLong(r,i={}){let a=0;let s=0;let l,p,c;do{l=await AvroParser.readByte(r,i);p=l&128;a|=(l&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return s}return a>>1^-(a&1)}static async readLong(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readInt(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readNull(){return null}static async readBoolean(r,i={}){const a=await AvroParser.readByte(r,i);if(a===1){return true}else if(a===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,i={}){const a=await AvroParser.readFixedBytes(r,4,i);const s=new DataView(a.buffer,a.byteOffset,a.byteLength);return s.getFloat32(0,true)}static async readDouble(r,i={}){const a=await AvroParser.readFixedBytes(r,8,i);const s=new DataView(a.buffer,a.byteOffset,a.byteLength);return s.getFloat64(0,true)}static async readBytes(r,i={}){const a=await AvroParser.readLong(r,i);if(a<0){throw new Error("Bytes size was negative.")}return r.read(a,{abortSignal:i.abortSignal})}static async readString(r,i={}){const a=await AvroParser.readBytes(r,i);const s=new TextDecoder;return s.decode(a)}static async readMapPair(r,i,a={}){const s=await AvroParser.readString(r,a);const l=await i(r,a);return{key:s,value:l}}static async readMap(r,i,a={}){const readPairMethod=(r,a={})=>AvroParser.readMapPair(r,i,a);const s=await AvroParser.readArray(r,readPairMethod,a);const l={};for(const r of s){l[r.key]=r.value}return l}static async readArray(r,i,a={}){const s=[];for(let l=await AvroParser.readLong(r,a);l!==0;l=await AvroParser.readLong(r,a)){if(l<0){await AvroParser.readLong(r,a);l=-l}while(l--){const l=await i(r,a);s.push(l)}}return s}}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 a={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const i of r.fields){a[i.name]=AvroType.fromSchema(i.type)}return new AvroRecordType(a,r.name);case 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 a=await AvroParser.readInt(r,i);return this._symbols[a]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,i={}){const a=await AvroParser.readInt(r,i);return this._types[a].read(r,i)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,i={}){const readItemMethod=(r,i)=>this._itemType.read(r,i);return AvroParser.readMap(r,readItemMethod,i)}}class AvroRecordType extends AvroType{constructor(r,i){super();this._fields=r;this._name=i}async read(r,i={}){const a={};a["$schema"]=this._name;for(const s in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,s)){a[s]=await this._fields[s].read(r,i)}}return a}}function arraysEqual(r,i){if(r===i)return true;if(r==null||i==null)return false;if(r.length!==i.length)return false;for(let a=0;a0){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,zo,{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 Go=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 a;if((a=i.abortSignal)===null||a===void 0?void 0:a.aborted){throw Go}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 s=this._readable.read(r);if(s){this._position+=s.length;return this.toUint8Array(s)}else{return new Promise(((a,s)=>{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();a(this.toUint8Array(i))}};const rejectCallback=()=>{cleanUp();s()};const abortHandler=()=>{cleanUp();s(Go)};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 g.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 a=i.$schema;if(typeof a!=="string"){throw Error("Missing schema in avro record.")}switch(a){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 a=i.name;if(typeof a!=="string"){throw Error("Invalid name in avro error record.")}const s=i.description;if(typeof s!=="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:a,isFatal:r,description:s})}break;default:throw Error(`Unknown schema ${a} 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 s.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=Eo}}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 a=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return Object.assign(Object.assign({},r),{pageRange:i,clearRange:a,_response:Object.assign(Object.assign({},r._response),{parsedBody:{pageRange:i,clearRange:a}})})}class BlobBeginCopyFromUrlPoller extends y.Poller{constructor(r){const{blobClient:i,copySource:a,intervalInMs:s=15e3,onProgress:l,resumeFrom:p,startCopyFromURLOptions:c}=r;let d;if(p){d=JSON.parse(p).state}const u=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},d),{blobClient:i,copySource:a,startCopyFromURLOptions:c}));super(u);if(typeof l==="function"){this.onProgress(l)}this.intervalInMs=s}delay(){return s.delay(this.intervalInMs)}}const Wo=async function cancel(r={}){const i=this.state;const{copyId:a}=i;if(i.isCompleted){return makeBlobBeginCopyFromURLPollOperation(i)}if(!a){i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)}await i.blobClient.abortCopyFromURL(a,{abortSignal:r.abortSignal});i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)};const $o=async function update(r={}){const i=this.state;const{blobClient:a,copySource:s,startCopyFromURLOptions:l}=i;if(!i.isStarted){i.isStarted=true;const r=await a.startCopyFromURL(s,l);i.copyId=r.copyId;if(r.copyStatus==="success"){i.result=r;i.isCompleted=true}}else if(!i.isCompleted){try{const a=await i.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:s,copyProgress:l}=a;const p=i.copyProgress;if(l){i.copyProgress=l}if(s==="pending"&&l!==p&&typeof r.fireProgress==="function"){r.fireProgress(i)}else if(s==="success"){i.result=a;i.isCompleted=true}else if(s==="failed"){i.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`);i.isCompleted=true}}catch(r){i.error=r;i.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(i)};const Xo=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:Wo,toString:Xo,update:$o}}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 Ko;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})(Ko||(Ko={}));class Batch{constructor(r=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=Ko.Good;if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new b.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=Ko.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 a=0;while(ar-a){const s=this.byteOffsetInCurrentBuffer+r-a;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,s));this.pushedBytesLength+=r-a;this.byteOffsetInCurrentBuffer=s;a=r;break}else{const r=this.byteOffsetInCurrentBuffer+p;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(p===l){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=p;a+=p}}if(i.length>1){this.push(Buffer.concat(i))}else if(i.length===1){this.push(i[0])}}}const Jo=a(4300).constants.MAX_LENGTH;class PooledBuffer{constructor(r,i,a){this.buffers=[];this.capacity=r;this._size=0;const s=Math.ceil(r/Jo);for(let i=0;i0){r[0]=r[0].slice(p)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(r,i,a,s,l,p){this.emitter=new b.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(i<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${i}`)}if(a<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${a}`)}if(l<=0){throw new RangeError(`concurrency must be larger than 0, current is ${l}`)}this.bufferSize=i;this.maxBuffers=a;this.readable=r;this.outgoingHandler=s;this.concurrency=l;this.encoding=p}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.unresolvedLengtha.getReadableStream()),a.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,a,s,l){let p=0;const c=s-a;return new Promise(((s,d)=>{const u=setTimeout((()=>d(new Error(`The operation cannot be completed in timeout.`))),uo);r.on("readable",(()=>{if(p>=c){clearTimeout(u);s();return}let d=r.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,l)}const h=p+d.length>c?c-p:d.length;i.fill(d.slice(0,h),a+p,a+p+h);p+=h}));r.on("end",(()=>{clearTimeout(u);if(p{clearTimeout(u);d(r)}))}))}async function streamToBuffer2(r,i,a){let s=0;const l=i.length;return new Promise(((p,c)=>{r.on("readable",(()=>{let p=r.read();if(!p){return}if(typeof p==="string"){p=Buffer.from(p,a)}if(s+p.length>l){c(new Error(`Stream exceeds buffer size. Buffer size: ${l}`));return}i.fill(p,s,s+p.length);s+=p.length}));r.on("end",(()=>{p(s)}));r.on("error",c)}))}async function readStreamToLocalFile(r,i){return new Promise(((a,s)=>{const l=_.createWriteStream(i);r.on("error",(r=>{s(r)}));l.on("error",(r=>{s(r)}));l.on("close",a);r.pipe(l)}))}const Qo=T.promisify(_.stat);const Yo=_.createReadStream;class BlobClient extends StorageClient{constructor(r,i,a,l){l=l||{};let p;let c;if(isPipelineLike(i)){c=r;p=i}else if(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i)){c=r;l=a;p=newPipeline(i,l)}else if(!i&&typeof i!=="string"){c=r;if(a&&typeof a!=="string"){l=a}p=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const d=i;const u=a;const h=extractConnectionStringParts(r);if(h.kind==="AccountConnString"){if(s.isNode){const r=new StorageSharedKeyCredential(h.accountName,h.accountKey);c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=s.getDefaultProxySettings(h.proxyUri)}p=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+h.accountSas;p=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(c,p);({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,a={}){var l;a.conditions=a.conditions||{};a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);const{span:c,updatedOptions:d}=jo("BlobClient-download",a);try{const p=await this.blobContext.download(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:{onDownloadProgress:s.isNode?undefined:a.onProgress},range:r===0&&!i?undefined:rangeToString({offset:r,count:i}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey},convertTracingToRequestOptionsBase(d)));const c=Object.assign(Object.assign({},p),{_response:p._response,objectReplicationDestinationPolicyId:p.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(p.objectReplicationRules)});if(!s.isNode){return c}if(a.maxRetryRequests===undefined||a.maxRetryRequests<0){a.maxRetryRequests=co}if(p.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!p.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(c,(async i=>{var s;const l={leaseAccessConditions:a.conditions,modifiedAccessConditions:{ifMatch:a.conditions.ifMatch||p.etag,ifModifiedSince:a.conditions.ifModifiedSince,ifNoneMatch:a.conditions.ifNoneMatch,ifUnmodifiedSince:a.conditions.ifUnmodifiedSince,ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions},range:rangeToString({count:r+p.contentLength-i,offset:i}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:a.abortSignal},l))).readableStreamBody}),r,p.contentLength,{maxRetryRequests:a.maxRetryRequests,onProgress:a.onProgress})}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async exists(r={}){const{span:i,updatedOptions:a}=jo("BlobClient-exists",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:a.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===Oo||r.details.errorCode===Ro)){return true}i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getProperties(r={}){var i;const{span:a,updatedOptions:s}=jo("BlobClient-getProperties",r);try{r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const a=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(s)));return Object.assign(Object.assign({},a),{_response:a._response,objectReplicationDestinationPolicyId:a.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(a.objectReplicationRules)})}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async delete(r={}){var i;const{span:a,updatedOptions:s}=jo("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(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async deleteIfExists(r={}){var i,a;const{span:s,updatedOptions:l}=jo("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"){s.setStatus({code:p.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async undelete(r={}){const{span:i,updatedOptions:a}=jo("BlobClient-undelete",r);try{return await this.blobContext.undelete(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setHTTPHeaders(r,i={}){var a;const{span:s,updatedOptions:l}=jo("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:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setMetadata(r,i={}){var a;const{span:s,updatedOptions:l}=jo("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:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setTags(r,i={}){var a;const{span:s,updatedOptions:l}=jo("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:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(l)),{tags:toBlobTags(r)}))}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getTags(r={}){var i;const{span:a,updatedOptions:s}=jo("BlobClient-getTags",r);try{const a=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(s)));const l=Object.assign(Object.assign({},a),{_response:a._response,tags:toTags({blobTagSet:a.blobTagSet})||{}});return l}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){var i;const{span:a,updatedOptions:s}=jo("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(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async beginCopyFromURL(r,i={}){const a={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const s=new BlobBeginCopyFromUrlPoller({blobClient:a,copySource:r,intervalInMs:i.intervalInMs,onProgress:i.onProgress,resumeFrom:i.resumeFrom,startCopyFromURLOptions:i});await s.poll();return s}async abortCopyFromURL(r,i={}){const{span:a,updatedOptions:s}=jo("BlobClient-abortCopyFromURL",i);try{return await this.blobContext.abortCopyFromURL(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions},convertTracingToRequestOptionsBase(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async syncCopyFromURL(r,i={}){var a,s,l;const{span:c,updatedOptions:d}=jo("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:(a=i.conditions)===null||a===void 0?void 0:a.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:(s=i.immutabilityPolicy)===null||s===void 0?void 0:s.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){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async setAccessTier(r,i={}){var a;const{span:s,updatedOptions:l}=jo("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:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),rehydratePriority:i.rehydratePriority},convertTracingToRequestOptionsBase(l)))}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async downloadToBuffer(r,i,a,s={}){let l;let c=0;let d=0;let u=s;if(r instanceof Buffer){l=r;c=i||0;d=typeof a==="number"?a:0}else{c=typeof r==="number"?r:0;d=typeof i==="number"?i:0;u=a||{}}const{span:h,updatedOptions:g}=jo("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(c<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(g))}));d=r.contentLength-c;if(d<0){throw new RangeError(`offset ${c} 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=c+d;if(a+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 a=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},r),this.credential).toString();i(appendToURLQuery(this.url,a))}))}async deleteImmutabilityPolicy(r){const{span:i,updatedOptions:a}=jo("BlobClient-deleteImmutabilityPolicy",r);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:r===null||r===void 0?void 0:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setImmutabilityPolicy(r,i){const{span:a,updatedOptions:s}=jo("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(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setLegalHold(r,i){const{span:a,updatedOptions:s}=jo("BlobClient-setLegalHold",i);try{return await this.blobContext.setLegalHold(r,Object.assign({abortSignal:i===null||i===void 0?void 0:i.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}class AppendBlobClient extends BlobClient{constructor(r,i,a,l){let p;let c;l=l||{};if(isPipelineLike(i)){c=r;p=i}else if(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i)){c=r;l=a;p=newPipeline(i,l)}else if(!i&&typeof i!=="string"){c=r;p=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const d=i;const u=a;const h=extractConnectionStringParts(r);if(h.kind==="AccountConnString"){if(s.isNode){const r=new StorageSharedKeyCredential(h.accountName,h.accountKey);c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=s.getDefaultProxySettings(h.proxyUri)}p=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+h.accountSas;p=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(c,p);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,a,s;const{span:l,updatedOptions:c}=jo("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:(a=r.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(s=r.immutabilityPolicy)===null||s===void 0?void 0:s.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(c)))}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async createIfNotExists(r={}){var i,a;const{span:s,updatedOptions:l}=jo("AppendBlobClient-createIfNotExists",r);const c={ifNoneMatch:bo};try{const r=await this.create(Object.assign(Object.assign({},l),{conditions:c}));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"){s.setStatus({code:p.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})}s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async seal(r={}){var i;const{span:a,updatedOptions:s}=jo("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(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async appendBlock(r,i,a={}){var s;const{span:l,updatedOptions:c}=jo("AppendBlobClient-appendBlock",a);a.conditions=a.conditions||{};try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(i,r,Object.assign({abortSignal:a.abortSignal,appendPositionAccessConditions:a.conditions,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(c)))}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async appendBlockFromURL(r,i,a,s={}){var l;const{span:c,updatedOptions:d}=jo("AppendBlobClient-appendBlockFromURL",s);s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(r,0,Object.assign({abortSignal:s.abortSignal,sourceRange:rangeToString({offset:i,count:a}),sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,appendPositionAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions.ifMatch,sourceIfModifiedSince:s.sourceConditions.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}}class BlockBlobClient extends BlobClient{constructor(r,i,a,l){let p;let c;l=l||{};if(isPipelineLike(i)){c=r;p=i}else if(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i)){c=r;l=a;p=newPipeline(i,l)}else if(!i&&typeof i!=="string"){c=r;if(a&&typeof a!=="string"){l=a}p=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const d=i;const u=a;const h=extractConnectionStringParts(r);if(h.kind==="AccountConnString"){if(s.isNode){const r=new StorageSharedKeyCredential(h.accountName,h.accountKey);c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=s.getDefaultProxySettings(h.proxyUri)}p=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+h.accountSas;p=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(c,p);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 a;ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const{span:l,updatedOptions:c}=jo("BlockBlobClient-query",i);try{if(!s.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:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey},convertTracingToRequestOptionsBase(c)));return new BlobQueryResponse(l,{abortSignal:i.abortSignal,onProgress:i.onProgress,onError:i.onError})}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async upload(r,i,a={}){var s,l,c;a.conditions=a.conditions||{};const{span:d,updatedOptions:u}=jo("BlockBlobClient-upload",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(i,r,Object.assign({abortSignal:a.abortSignal,blobHttpHeaders:a.blobHTTPHeaders,leaseAccessConditions:a.conditions,metadata:a.metadata,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,immutabilityPolicyExpiry:(l=a.immutabilityPolicy)===null||l===void 0?void 0:l.expiriesOn,immutabilityPolicyMode:(c=a.immutabilityPolicy)===null||c===void 0?void 0:c.policyMode,legalHold:a.legalHold,tier:toAccessTier(a.tier),blobTagsString:toBlobTagsString(a.tags)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async syncUploadFromURL(r,i={}){var a,s,l,c,d;i.conditions=i.conditions||{};const{span:u,updatedOptions:h}=jo("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:(a=i.sourceConditions)===null||a===void 0?void 0:a.ifMatch,sourceIfModifiedSince:(s=i.sourceConditions)===null||s===void 0?void 0:s.ifModifiedSince,sourceIfNoneMatch:(l=i.sourceConditions)===null||l===void 0?void 0:l.ifNoneMatch,sourceIfUnmodifiedSince:(c=i.sourceConditions)===null||c===void 0?void 0:c.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(h)))}catch(r){u.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async stageBlock(r,i,a,s={}){const{span:l,updatedOptions:c}=jo("BlockBlobClient-stageBlock",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(r,a,i,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(c)))}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async stageBlockFromURL(r,i,a=0,s,l={}){const{span:c,updatedOptions:d}=jo("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:a===0&&!s?undefined:rangeToString({offset:a,count:s}),cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:httpAuthorizationToString(l.sourceAuthorization)},convertTracingToRequestOptionsBase(d)))}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async commitBlockList(r,i={}){var a,s,l;i.conditions=i.conditions||{};const{span:c,updatedOptions:d}=jo("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:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(s=i.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(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){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async getBlockList(r,i={}){var a;const{span:s,updatedOptions:l}=jo("BlockBlobClient-getBlockList",i);try{const s=await this.blockBlobContext.getBlockList(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(l)));if(!s.committedBlocks){s.committedBlocks=[]}if(!s.uncommittedBlocks){s.uncommittedBlocks=[]}return s}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async uploadData(r,i={}){const{span:a,updatedOptions:l}=jo("BlockBlobClient-uploadData",i);try{if(s.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,a)=>i.slice(r,r+a)),i.byteLength,l)}else{const i=new Blob([r]);return this.uploadSeekableInternal(((r,a)=>i.slice(r,r+a)),i.size,l)}}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadBrowserData(r,i={}){const{span:a,updatedOptions:s}=jo("BlockBlobClient-uploadBrowserData",i);try{const i=new Blob([r]);return await this.uploadSeekableInternal(((r,a)=>i.slice(r,r+a)),i.size,s)}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadSeekableInternal(r,i,a={}){if(!a.blockSize){a.blockSize=0}if(a.blockSize<0||a.blockSize>so){throw new RangeError(`blockSize option must be >= 0 and <= ${so}`)}if(a.maxSingleShotSize!==0&&!a.maxSingleShotSize){a.maxSingleShotSize=ao}if(a.maxSingleShotSize<0||a.maxSingleShotSize>ao){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ao}`)}if(a.blockSize===0){if(i>so*oo){throw new RangeError(`${i} is too larger to upload to a block blob.`)}if(i>a.maxSingleShotSize){a.blockSize=Math.ceil(i/oo);if(a.blockSizeoo){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${oo}`)}const p=[];const d=s.generateUuid();let u=0;const h=new Batch(a.concurrency);for(let s=0;s{const h=generateBlockID(d,s);const g=a.blockSize*s;const y=s===l-1?i:g+a.blockSize;const b=y-g;p.push(h);await this.stageBlock(h,r(g,b),b,{abortSignal:a.abortSignal,conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:c.tracingOptions});u+=b;if(a.onProgress){a.onProgress({loadedBytes:u})}}))}await h.do();return this.commitBlockList(p,c)}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadFile(r,i={}){const{span:a,updatedOptions:s}=jo("BlockBlobClient-uploadFile",i);try{const a=(await Qo(r)).size;return await this.uploadSeekableInternal(((i,a)=>()=>Yo(r,{autoClose:true,end:a?i+a-1:Infinity,start:i})),a,Object.assign(Object.assign({},i),{tracingOptions:Object.assign(Object.assign({},i.tracingOptions),convertTracingToRequestOptionsBase(s))}))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadStream(r,i=lo,a=5,l={}){if(!l.blobHTTPHeaders){l.blobHTTPHeaders={}}if(!l.conditions){l.conditions={}}const{span:c,updatedOptions:d}=jo("BlockBlobClient-uploadStream",l);try{let p=0;const c=s.generateUuid();let u=0;const h=[];const g=new BufferScheduler(r,i,a,(async(r,i)=>{const a=generateBlockID(c,p);h.push(a);p++;await this.stageBlock(a,r,i,{conditions:l.conditions,encryptionScope:l.encryptionScope,tracingOptions:d.tracingOptions});u+=i;if(l.onProgress){l.onProgress({loadedBytes:u})}}),Math.ceil(a/4*3));await g.do();return await this.commitBlockList(h,Object.assign(Object.assign({},l),{tracingOptions:Object.assign(Object.assign({},l.tracingOptions),convertTracingToRequestOptionsBase(d))}))}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}}class PageBlobClient extends BlobClient{constructor(r,i,a,l){let p;let c;l=l||{};if(isPipelineLike(i)){c=r;p=i}else if(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i)){c=r;l=a;p=newPipeline(i,l)}else if(!i&&typeof i!=="string"){c=r;p=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const d=i;const u=a;const h=extractConnectionStringParts(r);if(h.kind==="AccountConnString"){if(s.isNode){const r=new StorageSharedKeyCredential(h.accountName,h.accountKey);c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u));if(!l.proxyOptions){l.proxyOptions=s.getDefaultProxySettings(h.proxyUri)}p=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){c=appendToURLPath(appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+h.accountSas;p=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(c,p);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 a,s,l;i.conditions=i.conditions||{};const{span:c,updatedOptions:d}=jo("PageBlobClient-create",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,r,Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,blobSequenceNumber:i.blobSequenceNumber,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(s=i.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(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){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async createIfNotExists(r,i={}){var a,s;const{span:l,updatedOptions:c}=jo("PageBlobClient-createIfNotExists",i);try{const a={ifNoneMatch:bo};const s=await this.create(r,Object.assign(Object.assign({},i),{conditions:a,tracingOptions:c.tracingOptions}));return Object.assign(Object.assign({succeeded:true},s),{_response:s._response})}catch(r){if(((a=r.details)===null||a===void 0?void 0:a.errorCode)==="BlobAlreadyExists"){l.setStatus({code:p.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})}l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadPages(r,i,a,s={}){var l;s.conditions=s.conditions||{};const{span:c,updatedOptions:d}=jo("PageBlobClient-uploadPages",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(a,r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),requestOptions:{onUploadProgress:s.onProgress},range:rangeToString({offset:i,count:a}),sequenceNumberAccessConditions:s.conditions,transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async uploadPagesFromURL(r,i,a,s,l={}){var c;l.conditions=l.conditions||{};l.sourceConditions=l.sourceConditions||{};const{span:d,updatedOptions:u}=jo("PageBlobClient-uploadPagesFromURL",l);try{ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:i,count:s}),0,rangeToString({offset:a,count:s}),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:(c=l.conditions)===null||c===void 0?void 0:c.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:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async clearPages(r=0,i,a={}){var s;a.conditions=a.conditions||{};const{span:l,updatedOptions:c}=jo("PageBlobClient-clearPages",a);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),range:rangeToString({offset:r,count:i}),sequenceNumberAccessConditions:a.conditions,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(c)))}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getPageRanges(r=0,i,a={}){var s;a.conditions=a.conditions||{};const{span:l,updatedOptions:c}=jo("PageBlobClient-getPageRanges",a);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(c))).then(rangeResponseFromModel)}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async listPageRangesSegment(r=0,i,a,s={}){var l;const{span:c,updatedOptions:d}=jo("PageBlobClient-getPageRangesSegment",s);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),range:rangeToString({offset:r,count:i}),marker:a,maxPageSize:s.maxPageSize},convertTracingToRequestOptionsBase(d)))}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}listPageRangeItemSegments(r=0,i,a,s={}){return l.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let p;if(!!a||a===undefined){do{p=yield l.__await(this.listPageRangesSegment(r,i,a,s));a=p.continuationToken;yield yield l.__await(yield l.__await(p))}while(a)}}))}listPageRangeItems(r=0,i,a={}){return l.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var s,p;let c;try{for(var d=l.__asyncValues(this.listPageRangeItemSegments(r,i,c,a)),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){s={error:r}}finally{try{if(u&&!u.done&&(p=d.return))yield l.__await(p.call(d))}finally{if(s)throw s.error}}}))}listPageRanges(r=0,i,a={}){a.conditions=a.conditions||{};const s=this.listPageRangeItems(r,i,a);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeItemSegments(r,i,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},a))}}async getPageRangesDiff(r,i,a,s={}){var l;s.conditions=s.conditions||{};const{span:c,updatedOptions:d}=jo("PageBlobClient-getPageRangesDiff",s);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),prevsnapshot:a,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async listPageRangesDiffSegment(r,i,a,s,l){var c;const{span:d,updatedOptions:u}=jo("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:(c=l===null||l===void 0?void 0:l.conditions)===null||c===void 0?void 0:c.tagConditions}),prevsnapshot:a,range:rangeToString({offset:r,count:i}),marker:s,maxPageSize:l===null||l===void 0?void 0:l.maxPageSize},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}listPageRangeDiffItemSegments(r,i,a,s,p){return l.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let c;if(!!s||s===undefined){do{c=yield l.__await(this.listPageRangesDiffSegment(r,i,a,s,p));s=c.continuationToken;yield yield l.__await(yield l.__await(c))}while(s)}}))}listPageRangeDiffItems(r,i,a,s){return l.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var p,c;let d;try{for(var u=l.__asyncValues(this.listPageRangeDiffItemSegments(r,i,a,d,s)),h;h=yield l.__await(u.next()),!h.done;){const r=h.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){p={error:r}}finally{try{if(h&&!h.done&&(c=u.return))yield l.__await(c.call(u))}finally{if(p)throw p.error}}}))}listPageRangesDiff(r,i,a,s={}){s.conditions=s.conditions||{};const l=this.listPageRangeDiffItems(r,i,a,Object.assign({},s));return{next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(l={})=>this.listPageRangeDiffItemSegments(r,i,a,l.continuationToken,Object.assign({maxPageSize:l.maxPageSize},s))}}async getPageRangesDiffForManagedDisks(r,i,a,s={}){var l;s.conditions=s.conditions||{};const{span:c,updatedOptions:d}=jo("PageBlobClient-GetPageRangesDiffForManagedDisks",s);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),prevSnapshotUrl:a,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){c.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async resize(r,i={}){var a;i.conditions=i.conditions||{};const{span:s,updatedOptions:l}=jo("PageBlobClient-resize",i);try{return await this.pageBlobContext.resize(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async updateSequenceNumber(r,i,a={}){var s;a.conditions=a.conditions||{};const{span:l,updatedOptions:c}=jo("PageBlobClient-updateSequenceNumber",a);try{return await this.pageBlobContext.updateSequenceNumber(r,Object.assign({abortSignal:a.abortSignal,blobSequenceNumber:i,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(c)))}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async startCopyIncremental(r,i={}){var a;const{span:s,updatedOptions:l}=jo("PageBlobClient-startCopyIncremental",i);try{return await this.pageBlobContext.copyIncremental(r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}}async function getBodyAsText(r){let i=Buffer.alloc(xo);const a=await streamToBuffer2(r.readableStreamBody,i);i=i.slice(0,a);return i.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const Zo=": ";const el=" ";const tl=-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}${So}`;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 a=i.length;if(a!==this.subRequests.size&&a!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const l=new Array(a);let p=0;let c=0;for(let r=0;r=0&&b{if(this.keys[r]===undefined||this.keys[r]===rl.UNLOCKED){this.keys[r]=rl.LOCKED;i()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=rl.LOCKED;i()}))}}))}static async unlock(r){return new Promise((i=>{if(this.keys[r]===rl.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,a){let l;let c;if(typeof r==="string"&&(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i))){l=r;c=i}else if(r instanceof BlobClient){l=r.url;c=r.credential;a=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!a){a={}}const{span:d,updatedOptions:u}=jo("BatchDeleteRequest-addSubRequest",a);try{this.setBatchType("delete");await this.addSubRequestInternal({url:l,credential:c},(async()=>{await new BlobClient(l,this.batchRequest.createPipeline(c)).delete(u)}))}catch(r){d.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async setBlobAccessTier(r,i,a,l){let c;let d;let u;if(typeof r==="string"&&(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i))){c=r;d=i;u=a}else if(r instanceof BlobClient){c=r.url;d=r.credential;u=i;l=a}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!l){l={}}const{span:h,updatedOptions:g}=jo("BatchSetTierRequest-addSubRequest",l);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:c,credential:d},(async()=>{await new BlobClient(c,this.batchRequest.createPipeline(d)).setAccessTier(u,g)}))}catch(r){h.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{h.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const r=s.generateUuid();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${So}${go.CONTENT_TYPE}: application/http${So}${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 a=3+(i?0:1);const l=new Array(a);l[0]=s.deserializationPolicy();l[1]=new BatchHeaderFilterPolicyFactory;if(!i){l[2]=s.isTokenCredential(r)?attachCredential(s.bearerTokenAuthenticationPolicy(r,mo),r):r}l[a-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)} ${_o}${So}`].join(So);for(const i of r.headers.headersArray()){this.body+=`${i.name}: ${i.value}${So}`}this.body+=So}preAddSubRequest(r){if(this.operationCount>=wo){throw new RangeError(`Cannot exceed ${wo} 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}${So}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends s.BaseRequestPolicy{constructor(r,i,a){super(i,a);this.dummyResponse={request:new s.WebResource,status:200,headers:new s.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 s.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){let i="";for(const a of r.headers.headersArray()){if(iEqual(a.name,go.X_MS_VERSION)){i=a.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,a){let s;if(isPipelineLike(i)){s=i}else if(!i){s=newPipeline(new AnonymousCredential,a)}else{s=newPipeline(i,a)}const l=new StorageClientContext(r,s.toServiceClientOptions());const p=getURLPath(r);if(p&&p!=="/"){this.serviceOrContainerContext=new Container(l)}else{this.serviceOrContainerContext=new Service(l)}}createBatch(){return new BlobBatch}async deleteBlobs(r,i,a){const s=new BlobBatch;for(const l of r){if(typeof l==="string"){await s.deleteBlob(l,i,a)}else{await s.deleteBlob(l,i)}}return this.submitBatch(s)}async setBlobsAccessTier(r,i,a,s){const l=new BlobBatch;for(const p of r){if(typeof p==="string"){await l.setBlobAccessTier(p,i,a,s)}else{await l.setBlobAccessTier(p,i,a)}}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:a,updatedOptions:s}=jo("BlobBatchClient-submitBatch",i);try{const a=r.getHttpRequestBody();const l=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(a),r.getMultiPartContentType(),a,Object.assign(Object.assign({},i),convertTracingToRequestOptionsBase(s)));const p=new BatchResponseParser(l,r.getSubRequests());const c=await p.parseBatchResponse();const d={_response:l._response,contentType:l.contentType,errorCode:l.errorCode,requestId:l.requestId,clientRequestId:l.clientRequestId,version:l.version,subResponses:c.subResponses,subResponsesSucceededCount:c.subResponsesSucceededCount,subResponsesFailedCount:c.subResponsesFailedCount};return d}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}class ContainerClient extends StorageClient{constructor(r,i,a){let l;let p;a=a||{};if(isPipelineLike(i)){p=r;l=i}else if(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i)){p=r;l=newPipeline(i,a)}else if(!i&&typeof i!=="string"){p=r;l=newPipeline(new AnonymousCredential,a)}else if(i&&typeof i==="string"){const c=i;const d=extractConnectionStringParts(r);if(d.kind==="AccountConnString"){if(s.isNode){const r=new StorageSharedKeyCredential(d.accountName,d.accountKey);p=appendToURLPath(d.url,encodeURIComponent(c));if(!a.proxyOptions){a.proxyOptions=s.getDefaultProxySettings(d.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){p=appendToURLPath(d.url,encodeURIComponent(c))+"?"+d.accountSas;l=newPipeline(new AnonymousCredential,a)}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(p,l);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(r={}){const{span:i,updatedOptions:a}=jo("ContainerClient-create",r);try{return await this.containerContext.create(Object.assign(Object.assign({},r),convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async createIfNotExists(r={}){var i,a;const{span:s,updatedOptions:l}=jo("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"){s.setStatus({code:p.SpanStatusCode.ERROR,message:"Expected exception when creating a container 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})}s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async exists(r={}){const{span:i,updatedOptions:a}=jo("ContainerClient-exists",r);try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:a.tracingOptions});return true}catch(r){if(r.statusCode===404){i.setStatus({code:p.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}i.setStatus({code:p.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:a}=jo("ContainerClient-getProperties",r);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:r.abortSignal},r.conditions),convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async delete(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:a}=jo("ContainerClient-delete",r);try{return await this.containerContext.delete(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteIfExists(r={}){var i,a;const{span:s,updatedOptions:l}=jo("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"){s.setStatus({code:p.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.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:a,updatedOptions:s}=jo("ContainerClient-setMetadata",i);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:i.conditions},convertTracingToRequestOptionsBase(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:a}=jo("ContainerClient-getAccessPolicy",r);try{const i=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions},convertTracingToRequestOptionsBase(a)));const s={_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)}}s.signedIdentifiers.push({accessPolicy:i,id:r.id})}return s}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setAccessPolicy(r,i,a={}){a.conditions=a.conditions||{};const{span:s,updatedOptions:l}=jo("ContainerClient-setAccessPolicy",a);try{const s=[];for(const r of i||[]){s.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:a.abortSignal,access:r,containerAcl:s,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions},convertTracingToRequestOptionsBase(l)))}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,i,a,s={}){const{span:l,updatedOptions:c}=jo("ContainerClient-uploadBlockBlob",s);try{const s=this.getBlockBlobClient(r);const l=await s.upload(i,a,c);return{blockBlobClient:s,response:l}}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async deleteBlob(r,i={}){const{span:a,updatedOptions:s}=jo("ContainerClient-deleteBlob",i);try{let a=this.getBlobClient(r);if(i.versionId){a=a.withVersion(i.versionId)}return await a.delete(s)}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async listBlobFlatSegment(r,i={}){const{span:a,updatedOptions:s}=jo("ContainerClient-listBlobFlatSegment",i);try{const a=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:r},i),convertTracingToRequestOptionsBase(s)));const l=Object.assign(Object.assign({},a),{_response:Object.assign(Object.assign({},a._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(a._response.parsedBody)}),segment:Object.assign(Object.assign({},a.segment),{blobItems:a.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){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async listBlobHierarchySegment(r,i,a={}){var s;const{span:l,updatedOptions:c}=jo("ContainerClient-listBlobHierarchySegment",a);try{const l=await this.containerContext.listBlobHierarchySegment(r,Object.assign(Object.assign({marker:i},a),convertTracingToRequestOptionsBase(c)));const p=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:(s=l.segment.blobPrefixes)===null||s===void 0?void 0:s.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))})});return p}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}listSegments(r,i={}){return l.__asyncGenerator(this,arguments,(function*listSegments_1(){let a;if(!!r||r===undefined){do{a=yield l.__await(this.listBlobFlatSegment(r,i));r=a.continuationToken;yield yield l.__await(yield l.__await(a))}while(r)}}))}listItems(r={}){return l.__asyncGenerator(this,arguments,(function*listItems_1(){var i,a;let s;try{for(var p=l.__asyncValues(this.listSegments(s,r)),c;c=yield l.__await(p.next()),!c.done;){const r=c.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.segment.blobItems)))}}catch(r){i={error:r}}finally{try{if(c&&!c.done&&(a=p.return))yield l.__await(a.call(p))}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 a=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const s=this.listItems(a);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},a))}}listHierarchySegments(r,i,a={}){return l.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let s;if(!!i||i===undefined){do{s=yield l.__await(this.listBlobHierarchySegment(r,i,a));i=s.continuationToken;yield yield l.__await(yield l.__await(s))}while(i)}}))}listItemsByHierarchy(r,i={}){return l.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var a,s;let p;try{for(var c=l.__asyncValues(this.listHierarchySegments(r,p,i)),d;d=yield l.__await(c.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){a={error:r}}finally{try{if(d&&!d.done&&(s=c.return))yield l.__await(s.call(c))}finally{if(a)throw a.error}}}))}listBlobsByHierarchy(r,i={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const a=[];if(i.includeCopy){a.push("copy")}if(i.includeDeleted){a.push("deleted")}if(i.includeMetadata){a.push("metadata")}if(i.includeSnapshots){a.push("snapshots")}if(i.includeVersions){a.push("versions")}if(i.includeUncommitedBlobs){a.push("uncommittedblobs")}if(i.includeTags){a.push("tags")}if(i.includeDeletedWithVersions){a.push("deletedwithversions")}if(i.includeImmutabilityPolicy){a.push("immutabilitypolicy")}if(i.includeLegalHold){a.push("legalhold")}if(i.prefix===""){i.prefix=undefined}const s=Object.assign(Object.assign({},i),a.length>0?{include:a}:{});const l=this.listItemsByHierarchy(r,s);return{async next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listHierarchySegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},s))}}async findBlobsByTagsSegment(r,i,a={}){const{span:s,updatedOptions:l}=jo("ContainerClient-findBlobsByTagsSegment",a);try{const s=await this.containerContext.filterBlobs(Object.assign({abortSignal:a.abortSignal,where:r,marker:i,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(l)));const p=Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map((r=>{var i;let a="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){a=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:a})}))});return p}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}findBlobsByTagsSegments(r,i,a={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let s;if(!!i||i===undefined){do{s=yield l.__await(this.findBlobsByTagsSegment(r,i,a));s.blobs=s.blobs||[];i=s.continuationToken;yield yield l.__await(s)}while(i)}}))}findBlobsByTagsItems(r,i={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var a,s;let p;try{for(var c=l.__asyncValues(this.findBlobsByTagsSegments(r,p,i)),d;d=yield l.__await(c.next()),!d.done;){const r=d.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.blobs)))}}catch(r){a={error:r}}finally{try{if(d&&!d.done&&(s=c.return))yield l.__await(s.call(c))}finally{if(a)throw a.error}}}))}findBlobsByTags(r,i={}){const a=Object.assign({},i);const s=this.findBlobsByTagsItems(r,a);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},a))}}getContainerNameFromUrl(){let r;try{const i=s.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 a=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},r),this.credential).toString();i(appendToURLQuery(this.url,a))}))}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 a of r){switch(a){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: ${a}`)}}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 a of r){switch(a){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: ${a}`)}}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 a of r){switch(a){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: ${a}`)}}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 a=r.version?r.version:no;if(r.permissions&&r.permissions.setImmutabilityPolicy&&a<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&a<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&a<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&a<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&a<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&a<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const s=AccountSASPermissions.parse(r.permissions.toString());const l=AccountSASServices.parse(r.services).toString();const p=AccountSASResourceTypes.parse(r.resourceTypes).toString();let c;if(a>="2020-12-06"){c=[i.accountName,s,l,p,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",a,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{c=[i.accountName,s,l,p,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",a,""].join("\n")}const d=i.computeHMACSHA256(c);return new SASQueryParameters(a,d,s.toString(),l,p,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,a){let l;if(isPipelineLike(i)){l=i}else if(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i)){l=newPipeline(i,a)}else{l=newPipeline(new AnonymousCredential,a)}super(r,l);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(r,i){i=i||{};const a=extractConnectionStringParts(r);if(a.kind==="AccountConnString"){if(s.isNode){const r=new StorageSharedKeyCredential(a.accountName,a.accountKey);if(!i.proxyOptions){i.proxyOptions=s.getDefaultProxySettings(a.proxyUri)}const l=newPipeline(r,i);return new BlobServiceClient(a.url,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(a.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,i);return new BlobServiceClient(a.url+"?"+a.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:a,updatedOptions:s}=jo("BlobServiceClient-createContainer",i);try{const i=this.getContainerClient(r);const a=await i.create(s);return{containerClient:i,containerCreateResponse:a}}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async deleteContainer(r,i={}){const{span:a,updatedOptions:s}=jo("BlobServiceClient-deleteContainer",i);try{const i=this.getContainerClient(r);return await i.delete(s)}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async undeleteContainer(r,i,a={}){const{span:s,updatedOptions:l}=jo("BlobServiceClient-undeleteContainer",a);try{const s=this.getContainerClient(a.destinationContainerName||r);const p=new Container(s["storageClientContext"]);const c=await p.restore(Object.assign({deletedContainerName:r,deletedContainerVersion:i},l));return{containerClient:s,containerUndeleteResponse:c}}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async renameContainer(r,i,a={}){var s;const{span:l,updatedOptions:c}=jo("BlobServiceClient-renameContainer",a);try{const l=this.getContainerClient(i);const p=new Container(l["storageClientContext"]);const d=await p.rename(r,Object.assign(Object.assign({},c),{sourceLeaseId:(s=a.sourceCondition)===null||s===void 0?void 0:s.leaseId}));return{containerClient:l,containerRenameResponse:d}}catch(r){l.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getProperties(r={}){const{span:i,updatedOptions:a}=jo("BlobServiceClient-getProperties",r);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setProperties(r,i={}){const{span:a,updatedOptions:s}=jo("BlobServiceClient-setProperties",i);try{return await this.serviceContext.setProperties(r,Object.assign({abortSignal:i.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getStatistics(r={}){const{span:i,updatedOptions:a}=jo("BlobServiceClient-getStatistics",r);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getAccountInfo(r={}){const{span:i,updatedOptions:a}=jo("BlobServiceClient-getAccountInfo",r);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listContainersSegment(r,i={}){const{span:a,updatedOptions:s}=jo("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(s)))}catch(r){a.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async findBlobsByTagsSegment(r,i,a={}){const{span:s,updatedOptions:l}=jo("BlobServiceClient-findBlobsByTagsSegment",a);try{const s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:a.abortSignal,where:r,marker:i,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(l)));const p=Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map((r=>{var i;let a="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){a=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:a})}))});return p}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}findBlobsByTagsSegments(r,i,a={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let s;if(!!i||i===undefined){do{s=yield l.__await(this.findBlobsByTagsSegment(r,i,a));s.blobs=s.blobs||[];i=s.continuationToken;yield yield l.__await(s)}while(i)}}))}findBlobsByTagsItems(r,i={}){return l.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var a,s;let p;try{for(var c=l.__asyncValues(this.findBlobsByTagsSegments(r,p,i)),d;d=yield l.__await(c.next()),!d.done;){const r=d.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.blobs)))}}catch(r){a={error:r}}finally{try{if(d&&!d.done&&(s=c.return))yield l.__await(s.call(c))}finally{if(a)throw a.error}}}))}findBlobsByTags(r,i={}){const a=Object.assign({},i);const s=this.findBlobsByTagsItems(r,a);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},a))}}listSegments(r,i={}){return l.__asyncGenerator(this,arguments,(function*listSegments_1(){let a;if(!!r||r===undefined){do{a=yield l.__await(this.listContainersSegment(r,i));a.containerItems=a.containerItems||[];r=a.continuationToken;yield yield l.__await(yield l.__await(a))}while(r)}}))}listItems(r={}){return l.__asyncGenerator(this,arguments,(function*listItems_1(){var i,a;let s;try{for(var p=l.__asyncValues(this.listSegments(s,r)),c;c=yield l.__await(p.next()),!c.done;){const r=c.value;yield l.__await(yield*l.__asyncDelegator(l.__asyncValues(r.containerItems)))}}catch(r){i={error:r}}finally{try{if(c&&!c.done&&(a=p.return))yield l.__await(a.call(p))}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 a=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const s=this.listItems(a);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},a))}}async getUserDelegationKey(r,i,a={}){const{span:s,updatedOptions:l}=jo("BlobServiceClient-getUserDelegationKey",a);try{const s=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(r,false),expiresOn:truncatedISO8061Date(i,false)},Object.assign({abortSignal:a.abortSignal},convertTracingToRequestOptionsBase(l)));const p={signedObjectId:s.signedObjectId,signedTenantId:s.signedTenantId,signedStartsOn:new Date(s.signedStartsOn),signedExpiresOn:new Date(s.signedExpiresOn),signedService:s.signedService,signedVersion:s.signedVersion,value:s.value};const c=Object.assign({_response:s._response,requestId:s.requestId,clientRequestId:s.clientRequestId,version:s.version,date:s.date,errorCode:s.errorCode},p);return c}catch(r){s.setStatus({code:p.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,i=AccountSASPermissions.parse("r"),a="sco",s={}){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:a,services:AccountSASServices.parse("b").toString()},s),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 s.BaseRequestPolicy}});Object.defineProperty(i,"HttpHeaders",{enumerable:true,get:function(){return s.HttpHeaders}});Object.defineProperty(i,"RequestPolicyOptions",{enumerable:true,get:function(){return s.RequestPolicyOptions}});Object.defineProperty(i,"RestError",{enumerable:true,get:function(){return s.RestError}});Object.defineProperty(i,"WebResource",{enumerable:true,get:function(){return s.WebResource}});Object.defineProperty(i,"deserializationPolicy",{enumerable:true,get:function(){return s.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=ro;i.newPipeline=newPipeline},4758:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=/^v1\./;const s=/^ghs_/;const l=/^ghu_/;async function auth(r){const i=r.split(/\./).length===3;const p=a.test(r)||s.test(r);const c=l.test(r);const d=i?"app":p?"installation":c?"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,a,s){const l=i.endpoint.merge(a,s);l.headers.authorization=withAuthorizationPrefix(r);return i(l)}const p=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=p},2205:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(5592);var l=a(3990);var p=a(6392);var c=a(8033);var d=a(4758);function _objectWithoutPropertiesLoose(r,i){if(r==null)return{};var a={};var s=Object.keys(r);var l,p;for(p=0;p=0)continue;a[l]=r[l]}return a}function _objectWithoutProperties(r,i){if(r==null)return{};var a=_objectWithoutPropertiesLoose(r,i);var s,l;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(r);for(l=0;l=0)continue;if(!Object.prototype.propertyIsEnumerable.call(r,s))continue;a[s]=r[s]}}return a}const u="3.6.0";const h=["authStrategy"];class Octokit{constructor(r={}){const i=new l.Collection;const a={baseUrl:p.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[r.userAgent,`octokit-core.js/${u} ${s.getUserAgent()}`].filter(Boolean).join(" ");if(r.baseUrl){a.baseUrl=r.baseUrl}if(r.previews){a.mediaType.previews=r.previews}if(r.timeZone){a.headers["time-zone"]=r.timeZone}this.request=p.request.defaults(a);this.graphql=c.withCustomRequest(this.request).defaults(a);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 a=d.createTokenAuth(r.auth);i.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a}=r,s=_objectWithoutProperties(r,h);const l=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:s},r.auth));i.wrap("request",l.hook);this.auth=l}const g=this.constructor;g.plugins.forEach((i=>{Object.assign(this,i(this,r))}))}static defaults(r){const i=class extends(this){constructor(...i){const a=i[0]||{};if(typeof r==="function"){super(r(a));return}super(Object.assign({},r,a,a.userAgent&&r.userAgent?{userAgent:`${a.userAgent} ${r.userAgent}`}:null))}};return i}static plugin(...r){var i;const a=this.plugins;const s=(i=class extends(this){},i.plugins=a.concat(r.filter((r=>!a.includes(r)))),i);return s}}Octokit.VERSION=u;Octokit.plugins=[];i.Octokit=Octokit},4860:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(7352);var l=a(5592);function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((i,a)=>{i[a.toLowerCase()]=r[a];return i}),{})}function mergeDeep(r,i){const a=Object.assign({},r);Object.keys(i).forEach((l=>{if(s.isPlainObject(i[l])){if(!(l in r))Object.assign(a,{[l]:i[l]});else a[l]=mergeDeep(r[l],i[l])}else{Object.assign(a,{[l]:i[l]})}}));return a}function removeUndefinedProperties(r){for(const i in r){if(r[i]===undefined){delete r[i]}}return r}function merge(r,i,a){if(typeof i==="string"){let[r,s]=i.split(" ");a=Object.assign(s?{method:r,url:s}:{url:r},a)}else{a=Object.assign({},i)}a.headers=lowercaseKeys(a.headers);removeUndefinedProperties(a);removeUndefinedProperties(a.headers);const s=mergeDeep(r||{},a);if(r&&r.mediaType.previews.length){s.mediaType.previews=r.mediaType.previews.filter((r=>!s.mediaType.previews.includes(r))).concat(s.mediaType.previews)}s.mediaType.previews=s.mediaType.previews.map((r=>r.replace(/-preview/,"")));return s}function addQueryParameters(r,i){const a=/\?/.test(r)?"&":"?";const s=Object.keys(i);if(s.length===0){return r}return r+a+s.map((r=>{if(r==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(i[r])}`})).join("&")}const p=/\{[^}]+\}/g;function removeNonChars(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(r){const i=r.match(p);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,a)=>{i[a]=r[a];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,a){i=r==="+"||r==="#"?encodeReserved(i):encodeUnreserved(i);if(a){return encodeUnreserved(a)+"="+i}else{return i}}function isDefined(r){return r!==undefined&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,i,a,s){var l=r[a],p=[];if(isDefined(l)&&l!==""){if(typeof l==="string"||typeof l==="number"||typeof l==="boolean"){l=l.toString();if(s&&s!=="*"){l=l.substring(0,parseInt(s,10))}p.push(encodeValue(i,l,isKeyOperator(i)?a:""))}else{if(s==="*"){if(Array.isArray(l)){l.filter(isDefined).forEach((function(r){p.push(encodeValue(i,r,isKeyOperator(i)?a:""))}))}else{Object.keys(l).forEach((function(r){if(isDefined(l[r])){p.push(encodeValue(i,l[r],r))}}))}}else{const r=[];if(Array.isArray(l)){l.filter(isDefined).forEach((function(a){r.push(encodeValue(i,a))}))}else{Object.keys(l).forEach((function(a){if(isDefined(l[a])){r.push(encodeUnreserved(a));r.push(encodeValue(i,l[a].toString()))}}))}if(isKeyOperator(i)){p.push(encodeUnreserved(a)+"="+r.join(","))}else if(r.length!==0){p.push(r.join(","))}}}}else{if(i===";"){if(isDefined(l)){p.push(encodeUnreserved(a))}}else if(l===""&&(i==="&"||i==="?")){p.push(encodeUnreserved(a)+"=")}else if(l===""){p.push("")}}return p}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,i){var a=["+","#",".","/",";","?","&"];return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,s,l){if(s){let r="";const l=[];if(a.indexOf(s.charAt(0))!==-1){r=s.charAt(0);s=s.substr(1)}s.split(/,/g).forEach((function(a){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);l.push(getValues(i,r,s[1],s[2]||s[3]))}));if(r&&r!=="+"){var p=",";if(r==="?"){p="&"}else if(r!=="#"){p=r}return(l.length!==0?r:"")+l.join(p)}else{return l.join(",")}}else{return encodeReserved(l)}}))}function parse(r){let i=r.method.toUpperCase();let a=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let s=Object.assign({},r.headers);let l;let p=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const c=extractUrlVariableNames(a);a=parseUrl(a).expand(p);if(!/^http/.test(a)){a=r.baseUrl+a}const d=Object.keys(r).filter((r=>c.includes(r))).concat("baseUrl");const u=omit(p,d);const h=/application\/octet-stream/i.test(s.accept);if(!h){if(r.mediaType.format){s.accept=s.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=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=i.concat(r.mediaType.previews).map((i=>{const a=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${a}`})).join(",")}}if(["GET","HEAD"].includes(i)){a=addQueryParameters(a,u)}else{if("data"in u){l=u.data}else{if(Object.keys(u).length){l=u}else{s["content-length"]=0}}}if(!s["content-type"]&&typeof l!=="undefined"){s["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof l==="undefined"){l=""}return Object.assign({method:i,url:a,headers:s},typeof l!=="undefined"?{body:l}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,i,a){return parse(merge(r,i,a))}function withDefaults(r,i){const a=merge(r,i);const s=endpointWithDefaults.bind(null,a);return Object.assign(s,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const c="6.0.12";const d=`octokit-endpoint.js/${c} ${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 h=withDefaults(null,u);i.endpoint=h},8033:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(6392);var l=a(5592);const p="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,a){super(_buildMessageForResponseErrors(a));this.request=r;this.headers=i;this.response=a;this.name="GraphqlResponseError";this.errors=a.errors;this.data=a.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const c=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const u=/\/api\/v3\/?$/;function graphql(r,i,a){if(a){if(typeof i==="string"&&"query"in a){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in a){if(!d.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const s=typeof i==="string"?Object.assign({query:i},a):i;const l=Object.keys(s).reduce(((r,i)=>{if(c.includes(i)){r[i]=s[i];return r}if(!r.variables){r.variables={}}r.variables[i]=s[i];return r}),{});const p=s.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(u.test(p)){l.url=p.replace(u,"/api/graphql")}return r(l).then((r=>{if(r.data.errors){const i={};for(const a of Object.keys(r.headers)){i[a]=r.headers[a]}throw new GraphqlResponseError(l,i,r.data)}return r.data.data}))}function withDefaults(r,i){const a=r.defaults(i);const newApi=(r,i)=>graphql(a,r,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,a),endpoint:s.request.endpoint})}const h=withDefaults(s.request,{headers:{"user-agent":`octokit-graphql.js/${p} ${l.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return withDefaults(r,{method:"POST",url:"/graphql"})}i.GraphqlResponseError=GraphqlResponseError;i.graphql=h;i.withCustomRequest=withCustomRequest},3785:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a="2.21.3";function ownKeys(r,i){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),a.push.apply(a,s)}return a}function _objectSpread2(r){for(var i=1;i({async next(){if(!d)return{done:true};try{const r=await l({method:p,url:d,headers:c});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,a,s){if(typeof a==="function"){s=a;a=undefined}return gather(r,[],iterator(r,i,a)[Symbol.asyncIterator](),s)}function gather(r,i,a,s){return a.next().then((l=>{if(l.done){return i}let p=false;function done(){p=true}i=i.concat(s?s(l.value,done):l.value.data);if(p){return i}return gather(r,i,a,s)}))}const s=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}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","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/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/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","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}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","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}/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/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/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","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/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","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}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","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 /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/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=a;i.composePaginateRest=s;i.isPaginatingEndpoint=isPaginatingEndpoint;i.paginateRest=paginateRest;i.paginatingEndpoints=l},5675:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a="1.0.4";function requestLog(r){r.hook.wrap("request",((i,a)=>{r.log.debug("request",a);const s=Date.now();const l=r.request.endpoint.parse(a);const p=l.url.replace(a.baseUrl,"");return i(a).then((i=>{r.log.info(`${l.method} ${p} - ${i.status} in ${Date.now()-s}ms`);return i})).catch((i=>{r.log.info(`${l.method} ${p} - ${i.status} in ${Date.now()-s}ms`);throw i}))}))}requestLog.VERSION=a;i.requestLog=requestLog},3492:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function ownKeys(r,i){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);if(i){s=s.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))}a.push.apply(a,s)}return a}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 s=_interopDefault(a(9541));async function errorRequest(r,i,a,s){if(!a.request||!a.request.request){throw a}if(a.status>=400&&!i.doNotRetry.includes(a.status)){const l=s.request.retries!=null?s.request.retries:i.retries;const p=Math.pow((s.request.retryCount||0)+1,2);throw r.retry.retryRequest(a,l,p)}throw a}async function wrapRequest(r,i,a){const l=new s;l.on("failed",(function(i,s){const l=~~i.request.request.retries;const p=~~i.request.request.retryAfter;a.request.retryCount=s.retryCount+1;if(l>s.retryCount){return p*r.retryAfterBaseValue}}));return l.schedule(i,a)}const l="3.0.9";function retry(r,i){const a=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422],retries:3},i.retry);if(a.enabled){r.hook.error("request",errorRequest.bind(null,r,a));r.hook.wrap("request",wrapRequest.bind(null,a))}return{retry:{retryRequest:(r,i,a)=>{r.request.request=Object.assign({},r.request.request,{retries:i,retryAfter:a});return r}}}}retry.VERSION=l;i.VERSION=l;i.retry=retry},7803:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var s=a(64);var l=_interopDefault(a(9472));const p=l((r=>console.warn(r)));const c=l((r=>console.warn(r)));class RequestError extends Error{constructor(r,i,a){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let l;if("headers"in a&&typeof a.headers!=="undefined"){l=a.headers}if("response"in a){this.response=a.response;l=a.response.headers}const d=Object.assign({},a.request);if(a.request.headers.authorization){d.headers=Object.assign({},a.request.headers,{authorization:a.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(){p(new s.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){c(new s.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return l||{}}})}}i.RequestError=RequestError},6392:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var s=a(4860);var l=a(5592);var p=a(7352);var c=_interopDefault(a(8761));var d=a(7803);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(p.isPlainObject(r.body)||Array.isArray(r.body)){r.body=JSON.stringify(r.body)}let a={};let s;let l;const u=r.request&&r.request.fetch||c;return u(r.url,Object.assign({method:r.method,body:r.body,headers:r.headers,redirect:r.redirect},r.request)).then((async p=>{l=p.url;s=p.status;for(const r of p.headers){a[r[0]]=r[1]}if("deprecation"in a){const s=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const l=s&&s.pop();i.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${l?`. See ${l}`:""}`)}if(s===204||s===205){return}if(r.method==="HEAD"){if(s<400){return}throw new d.RequestError(p.statusText,s,{response:{url:l,status:s,headers:a,data:undefined},request:r})}if(s===304){throw new d.RequestError("Not modified",s,{response:{url:l,status:s,headers:a,data:await getResponseData(p)},request:r})}if(s>=400){const i=await getResponseData(p);const c=new d.RequestError(toErrorMessage(i),s,{response:{url:l,status:s,headers:a,data:i},request:r});throw c}return getResponseData(p)})).then((r=>({status:s,url:l,headers:a,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 a=r.defaults(i);const newApi=function(r,i){const s=a.merge(r,i);if(!s.request||!s.request.hook){return fetchWrapper(a.parse(s))}const request=(r,i)=>fetchWrapper(a.parse(a.merge(r,i)));Object.assign(request,{endpoint:a,defaults:withDefaults.bind(null,a)});return s.request.hook(request,s)};return Object.assign(newApi,{endpoint:a,defaults:withDefaults.bind(null,a)})}const h=withDefaults(s.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${l.getUserAgent()}`}});i.request=h},2349:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ContextAPI=void 0;const s=a(4994);const l=a(5895);const p=a(7132);const c="context";const d=new s.NoopContextManager;class ContextAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new ContextAPI}return this._instance}setGlobalContextManager(r){return(0,l.registerGlobal)(c,r,p.DiagAPI.instance())}active(){return this._getContextManager().active()}with(r,i,a,...s){return this._getContextManager().with(r,i,a,...s)}bind(r,i){return this._getContextManager().bind(r,i)}_getContextManager(){return(0,l.getGlobal)(c)||d}disable(){this._getContextManager().disable();(0,l.unregisterGlobal)(c,p.DiagAPI.instance())}}i.ContextAPI=ContextAPI},7132:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagAPI=void 0;const s=a(4420);const l=a(7814);const p=a(9353);const c=a(5895);const d="diag";class DiagAPI{constructor(){function _logProxy(r){return function(...i){const a=(0,c.getGlobal)("diag");if(!a)return;return a[r](...i)}}const r=this;const setLogger=(i,a={logLevel:p.DiagLogLevel.INFO})=>{var s,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((s=i.stack)!==null&&s!==void 0?s:i.message);return false}if(typeof a==="number"){a={logLevel:a}}const h=(0,c.getGlobal)("diag");const g=(0,l.createLogLevelDiagLogger)((d=a.logLevel)!==null&&d!==void 0?d:p.DiagLogLevel.INFO,i);if(h&&!a.suppressOverrideMessage){const r=(u=(new Error).stack)!==null&&u!==void 0?u:"";h.warn(`Current logger will be overwritten from ${r}`);g.warn(`Current logger will overwrite one already registered from ${r}`)}return(0,c.registerGlobal)("diag",g,r,true)};r.setLogger=setLogger;r.disable=()=>{(0,c.unregisterGlobal)(d,r)};r.createComponentLogger=r=>new s.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},8224:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MetricsAPI=void 0;const s=a(8462);const l=a(5895);const p=a(7132);const c="metrics";class MetricsAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new MetricsAPI}return this._instance}setGlobalMeterProvider(r){return(0,l.registerGlobal)(c,r,p.DiagAPI.instance())}getMeterProvider(){return(0,l.getGlobal)(c)||s.NOOP_METER_PROVIDER}getMeter(r,i,a){return this.getMeterProvider().getMeter(r,i,a)}disable(){(0,l.unregisterGlobal)(c,p.DiagAPI.instance())}}i.MetricsAPI=MetricsAPI},1641:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PropagationAPI=void 0;const s=a(5895);const l=a(7155);const p=a(3502);const c=a(7756);const d=a(1810);const u=a(7132);const h="propagation";const g=new l.NoopTextMapPropagator;class PropagationAPI{constructor(){this.createBaggage=d.createBaggage;this.getBaggage=c.getBaggage;this.getActiveBaggage=c.getActiveBaggage;this.setBaggage=c.setBaggage;this.deleteBaggage=c.deleteBaggage}static getInstance(){if(!this._instance){this._instance=new PropagationAPI}return this._instance}setGlobalPropagator(r){return(0,s.registerGlobal)(h,r,u.DiagAPI.instance())}inject(r,i,a=p.defaultTextMapSetter){return this._getGlobalPropagator().inject(r,i,a)}extract(r,i,a=p.defaultTextMapGetter){return this._getGlobalPropagator().extract(r,i,a)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,s.unregisterGlobal)(h,u.DiagAPI.instance())}_getGlobalPropagator(){return(0,s.getGlobal)(h)||g}}i.PropagationAPI=PropagationAPI},9376:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceAPI=void 0;const s=a(5895);const l=a(1308);const p=a(2400);const c=a(9175);const d=a(7132);const u="trace";class TraceAPI{constructor(){this._proxyTracerProvider=new l.ProxyTracerProvider;this.wrapSpanContext=p.wrapSpanContext;this.isSpanContextValid=p.isSpanContextValid;this.deleteSpan=c.deleteSpan;this.getSpan=c.getSpan;this.getActiveSpan=c.getActiveSpan;this.getSpanContext=c.getSpanContext;this.setSpan=c.setSpan;this.setSpanContext=c.setSpanContext}static getInstance(){if(!this._instance){this._instance=new TraceAPI}return this._instance}setGlobalTracerProvider(r){const i=(0,s.registerGlobal)(u,this._proxyTracerProvider,d.DiagAPI.instance());if(i){this._proxyTracerProvider.setDelegate(r)}return i}getTracerProvider(){return(0,s.getGlobal)(u)||this._proxyTracerProvider}getTracer(r,i){return this.getTracerProvider().getTracer(r,i)}disable(){(0,s.unregisterGlobal)(u,d.DiagAPI.instance());this._proxyTracerProvider=new l.ProxyTracerProvider}}i.TraceAPI=TraceAPI},7756:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.deleteBaggage=i.setBaggage=i.getActiveBaggage=i.getBaggage=void 0;const s=a(2349);const l=a(574);const p=(0,l.createContextKey)("OpenTelemetry Baggage Key");function getBaggage(r){return r.getValue(p)||undefined}i.getBaggage=getBaggage;function getActiveBaggage(){return getBaggage(s.ContextAPI.getInstance().active())}i.getActiveBaggage=getActiveBaggage;function setBaggage(r,i){return r.setValue(p,i)}i.setBaggage=setBaggage;function deleteBaggage(r){return r.deleteValue(p)}i.deleteBaggage=deleteBaggage},4657:(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 a=new BaggageImpl(this._entries);a._entries.set(r,i);return a}removeEntry(r){const i=new BaggageImpl(this._entries);i._entries.delete(r);return i}removeEntries(...r){const i=new BaggageImpl(this._entries);for(const a of r){i._entries.delete(a)}return i}clear(){return new BaggageImpl}}i.BaggageImpl=BaggageImpl},6473:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataSymbol=void 0;i.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},1810:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataFromString=i.createBaggage=void 0;const s=a(7132);const l=a(4657);const p=a(6473);const c=s.DiagAPI.instance();function createBaggage(r={}){return new l.BaggageImpl(new Map(Object.entries(r)))}i.createBaggage=createBaggage;function baggageEntryMetadataFromString(r){if(typeof r!=="string"){c.error(`Cannot create baggage metadata from unknown type: ${typeof r}`);r=""}return{__TYPE__:p.baggageEntryMetadataSymbol,toString(){return r}}}i.baggageEntryMetadataFromString=baggageEntryMetadataFromString},5648:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.context=void 0;const s=a(2349);i.context=s.ContextAPI.getInstance()},4994:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopContextManager=void 0;const s=a(574);class NoopContextManager{active(){return s.ROOT_CONTEXT}with(r,i,a,...s){return i.call(a,...s)}bind(r,i){return i}enable(){return this}disable(){return this}}i.NoopContextManager=NoopContextManager},574:(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,a)=>{const s=new BaseContext(i._currentContext);s._currentContext.set(r,a);return s};i.deleteValue=r=>{const a=new BaseContext(i._currentContext);a._currentContext.delete(r);return a}}}i.ROOT_CONTEXT=new BaseContext},5638:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.diag=void 0;const s=a(7132);i.diag=s.DiagAPI.instance()},4420:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagComponentLogger=void 0;const s=a(5895);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,a){const l=(0,s.getGlobal)("diag");if(!l){return}a.unshift(i);return l[r](...a)}},8598:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagConsoleLogger=void 0;const a=[{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 a=console[r];if(typeof a!=="function"){a=console.log}if(typeof a==="function"){return a.apply(console,i)}}}}for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createLogLevelDiagLogger=void 0;const s=a(9353);function createLogLevelDiagLogger(r,i){if(rs.DiagLogLevel.ALL){r=s.DiagLogLevel.ALL}i=i||{};function _filterFunc(a,s){const l=i[a];if(typeof l==="function"&&r>=s){return l.bind(i)}return function(){}}return{error:_filterFunc("error",s.DiagLogLevel.ERROR),warn:_filterFunc("warn",s.DiagLogLevel.WARN),info:_filterFunc("info",s.DiagLogLevel.INFO),debug:_filterFunc("debug",s.DiagLogLevel.DEBUG),verbose:_filterFunc("verbose",s.DiagLogLevel.VERBOSE)}}i.createLogLevelDiagLogger=createLogLevelDiagLogger},9353:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagLogLevel=void 0;var a;(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"})(a=i.DiagLogLevel||(i.DiagLogLevel={}))},5861:(r,i,a)=>{"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 s=a(1810);Object.defineProperty(i,"baggageEntryMetadataFromString",{enumerable:true,get:function(){return s.baggageEntryMetadataFromString}});var l=a(574);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 p=a(8598);Object.defineProperty(i,"DiagConsoleLogger",{enumerable:true,get:function(){return p.DiagConsoleLogger}});var c=a(9353);Object.defineProperty(i,"DiagLogLevel",{enumerable:true,get:function(){return c.DiagLogLevel}});var d=a(1163);Object.defineProperty(i,"createNoopMeter",{enumerable:true,get:function(){return d.createNoopMeter}});var u=a(1836);Object.defineProperty(i,"ValueType",{enumerable:true,get:function(){return u.ValueType}});var h=a(3502);Object.defineProperty(i,"defaultTextMapGetter",{enumerable:true,get:function(){return h.defaultTextMapGetter}});Object.defineProperty(i,"defaultTextMapSetter",{enumerable:true,get:function(){return h.defaultTextMapSetter}});var g=a(5531);Object.defineProperty(i,"ProxyTracer",{enumerable:true,get:function(){return g.ProxyTracer}});var y=a(1308);Object.defineProperty(i,"ProxyTracerProvider",{enumerable:true,get:function(){return y.ProxyTracerProvider}});var b=a(3418);Object.defineProperty(i,"SamplingDecision",{enumerable:true,get:function(){return b.SamplingDecision}});var v=a(3244);Object.defineProperty(i,"SpanKind",{enumerable:true,get:function(){return v.SpanKind}});var w=a(8049);Object.defineProperty(i,"SpanStatusCode",{enumerable:true,get:function(){return w.SpanStatusCode}});var x=a(8610);Object.defineProperty(i,"TraceFlags",{enumerable:true,get:function(){return x.TraceFlags}});var S=a(7069);Object.defineProperty(i,"createTraceState",{enumerable:true,get:function(){return S.createTraceState}});var _=a(2400);Object.defineProperty(i,"isSpanContextValid",{enumerable:true,get:function(){return _.isSpanContextValid}});Object.defineProperty(i,"isValidTraceId",{enumerable:true,get:function(){return _.isValidTraceId}});Object.defineProperty(i,"isValidSpanId",{enumerable:true,get:function(){return _.isValidSpanId}});var T=a(548);Object.defineProperty(i,"INVALID_SPANID",{enumerable:true,get:function(){return T.INVALID_SPANID}});Object.defineProperty(i,"INVALID_TRACEID",{enumerable:true,get:function(){return T.INVALID_TRACEID}});Object.defineProperty(i,"INVALID_SPAN_CONTEXT",{enumerable:true,get:function(){return T.INVALID_SPAN_CONTEXT}});const N=a(5648);Object.defineProperty(i,"context",{enumerable:true,get:function(){return N.context}});const P=a(5638);Object.defineProperty(i,"diag",{enumerable:true,get:function(){return P.diag}});const O=a(7014);Object.defineProperty(i,"metrics",{enumerable:true,get:function(){return O.metrics}});const R=a(8152);Object.defineProperty(i,"propagation",{enumerable:true,get:function(){return R.propagation}});const C=a(1323);Object.defineProperty(i,"trace",{enumerable:true,get:function(){return C.trace}});i["default"]={context:N.context,diag:P.diag,metrics:O.metrics,propagation:R.propagation,trace:C.trace}},5895:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.unregisterGlobal=i.getGlobal=i.registerGlobal=void 0;const s=a(3466);const l=a(5763);const p=a(4311);const c=l.VERSION.split(".")[0];const d=Symbol.for(`opentelemetry.js.api.${c}`);const u=s._globalThis;function registerGlobal(r,i,a,s=false){var p;const c=u[d]=(p=u[d])!==null&&p!==void 0?p:{version:l.VERSION};if(!s&&c[r]){const i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${r}`);a.error(i.stack||i.message);return false}if(c.version!==l.VERSION){const i=new Error(`@opentelemetry/api: Registration of version v${c.version} for ${r} does not match previously registered API v${l.VERSION}`);a.error(i.stack||i.message);return false}c[r]=i;a.debug(`@opentelemetry/api: Registered a global for ${r} v${l.VERSION}.`);return true}i.registerGlobal=registerGlobal;function getGlobal(r){var i,a;const s=(i=u[d])===null||i===void 0?void 0:i.version;if(!s||!(0,p.isCompatible)(s)){return}return(a=u[d])===null||a===void 0?void 0:a[r]}i.getGlobal=getGlobal;function unregisterGlobal(r,i){i.debug(`@opentelemetry/api: Unregistering a global for ${r} v${l.VERSION}.`);const a=u[d];if(a){delete a[r]}}i.unregisterGlobal=unregisterGlobal},4311:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isCompatible=i._makeCompatibilityCheck=void 0;const s=a(5763);const l=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _makeCompatibilityCheck(r){const i=new Set([r]);const a=new Set;const s=r.match(l);if(!s){return()=>false}const p={major:+s[1],minor:+s[2],patch:+s[3],prerelease:s[4]};if(p.prerelease!=null){return function isExactmatch(i){return i===r}}function _reject(r){a.add(r);return false}function _accept(r){i.add(r);return true}return function isCompatible(r){if(i.has(r)){return true}if(a.has(r)){return false}const s=r.match(l);if(!s){return _reject(r)}const c={major:+s[1],minor:+s[2],patch:+s[3],prerelease:s[4]};if(c.prerelease!=null){return _reject(r)}if(p.major!==c.major){return _reject(r)}if(p.major===0){if(p.minor===c.minor&&p.patch<=c.patch){return _accept(r)}return _reject(r)}if(p.minor<=c.minor){return _accept(r)}return _reject(r)}}i._makeCompatibilityCheck=_makeCompatibilityCheck;i.isCompatible=_makeCompatibilityCheck(s.VERSION)},7014:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.metrics=void 0;const s=a(8224);i.metrics=s.MetricsAPI.getInstance()},1836:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ValueType=void 0;var a;(function(r){r[r["INT"]=0]="INT";r[r["DOUBLE"]=1]="DOUBLE"})(a=i.ValueType||(i.ValueType={}))},1163:(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,a){return i.NOOP_HISTOGRAM_METRIC}createCounter(r,a){return i.NOOP_COUNTER_METRIC}createUpDownCounter(r,a){return i.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(r,a){return i.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(r,a){return i.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(r,a){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},8462:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NOOP_METER_PROVIDER=i.NoopMeterProvider=void 0;const s=a(1163);class NoopMeterProvider{getMeter(r,i,a){return s.NOOP_METER}}i.NoopMeterProvider=NoopMeterProvider;i.NOOP_METER_PROVIDER=new NoopMeterProvider},3466:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__exportStar||function(r,i){for(var a in r)if(a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a))s(i,r,a)};Object.defineProperty(i,"__esModule",{value:true});l(a(2608),i)},889:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i._globalThis=void 0;i._globalThis=typeof globalThis==="object"?globalThis:global},2608:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__exportStar||function(r,i){for(var a in r)if(a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a))s(i,r,a)};Object.defineProperty(i,"__esModule",{value:true});l(a(889),i)},8152:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.propagation=void 0;const s=a(1641);i.propagation=s.PropagationAPI.getInstance()},7155:(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},3502:(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,a){if(r==null){return}r[i]=a}}},1323:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.trace=void 0;const s=a(9376);i.trace=s.TraceAPI.getInstance()},1210:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NonRecordingSpan=void 0;const s=a(548);class NonRecordingSpan{constructor(r=s.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},7593:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracer=void 0;const s=a(2349);const l=a(9175);const p=a(1210);const c=a(2400);const d=s.ContextAPI.getInstance();class NoopTracer{startSpan(r,i,a=d.active()){const s=Boolean(i===null||i===void 0?void 0:i.root);if(s){return new p.NonRecordingSpan}const u=a&&(0,l.getSpanContext)(a);if(isSpanContext(u)&&(0,c.isSpanContextValid)(u)){return new p.NonRecordingSpan(u)}else{return new p.NonRecordingSpan}}startActiveSpan(r,i,a,s){let p;let c;let u;if(arguments.length<2){return}else if(arguments.length===2){u=i}else if(arguments.length===3){p=i;u=a}else{p=i;c=a;u=s}const h=c!==null&&c!==void 0?c:d.active();const g=this.startSpan(r,p,h);const y=(0,l.setSpan)(h,g);return d.with(y,u,undefined,g)}}i.NoopTracer=NoopTracer;function isSpanContext(r){return typeof r==="object"&&typeof r["spanId"]==="string"&&typeof r["traceId"]==="string"&&typeof r["traceFlags"]==="number"}},1680:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracerProvider=void 0;const s=a(7593);class NoopTracerProvider{getTracer(r,i,a){return new s.NoopTracer}}i.NoopTracerProvider=NoopTracerProvider},5531:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracer=void 0;const s=a(7593);const l=new s.NoopTracer;class ProxyTracer{constructor(r,i,a,s){this._provider=r;this.name=i;this.version=a;this.options=s}startSpan(r,i,a){return this._getTracer().startSpan(r,i,a)}startActiveSpan(r,i,a,s){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},1308:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracerProvider=void 0;const s=a(5531);const l=a(1680);const p=new l.NoopTracerProvider;class ProxyTracerProvider{getTracer(r,i,a){var l;return(l=this.getDelegateTracer(r,i,a))!==null&&l!==void 0?l:new s.ProxyTracer(this,r,i,a)}getDelegate(){var r;return(r=this._delegate)!==null&&r!==void 0?r:p}setDelegate(r){this._delegate=r}getDelegateTracer(r,i,a){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getTracer(r,i,a)}}i.ProxyTracerProvider=ProxyTracerProvider},3418:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SamplingDecision=void 0;var a;(function(r){r[r["NOT_RECORD"]=0]="NOT_RECORD";r[r["RECORD"]=1]="RECORD";r[r["RECORD_AND_SAMPLED"]=2]="RECORD_AND_SAMPLED"})(a=i.SamplingDecision||(i.SamplingDecision={}))},9175:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getSpanContext=i.setSpanContext=i.deleteSpan=i.setSpan=i.getActiveSpan=i.getSpan=void 0;const s=a(574);const l=a(1210);const p=a(2349);const c=(0,s.createContextKey)("OpenTelemetry Context Key SPAN");function getSpan(r){return r.getValue(c)||undefined}i.getSpan=getSpan;function getActiveSpan(){return getSpan(p.ContextAPI.getInstance().active())}i.getActiveSpan=getActiveSpan;function setSpan(r,i){return r.setValue(c,i)}i.setSpan=setSpan;function deleteSpan(r){return r.deleteValue(c)}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},5442:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceStateImpl=void 0;const s=a(125);const l=32;const p=512;const c=",";const d="=";class TraceStateImpl{constructor(r){this._internalState=new Map;if(r)this._parse(r)}set(r,i){const a=this._clone();if(a._internalState.has(r)){a._internalState.delete(r)}a._internalState.set(r,i);return a}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(c)}_parse(r){if(r.length>p)return;this._internalState=r.split(c).reverse().reduce(((r,i)=>{const a=i.trim();const l=a.indexOf(d);if(l!==-1){const p=a.slice(0,l);const c=a.slice(l+1,i.length);if((0,s.validateKey)(p)&&(0,s.validateValue)(c)){r.set(p,c)}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},125:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateValue=i.validateKey=void 0;const a="[_0-9a-z-*/]";const s=`[a-z]${a}{0,255}`;const l=`[a-z0-9]${a}{0,240}@[a-z]${a}{0,13}`;const p=new RegExp(`^(?:${s}|${l})$`);const c=/^[ -~]{0,255}[!-~]$/;const d=/,|=/;function validateKey(r){return p.test(r)}i.validateKey=validateKey;function validateValue(r){return c.test(r)&&!d.test(r)}i.validateValue=validateValue},7069:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createTraceState=void 0;const s=a(5442);function createTraceState(r){return new s.TraceStateImpl(r)}i.createTraceState=createTraceState},548:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.INVALID_SPAN_CONTEXT=i.INVALID_TRACEID=i.INVALID_SPANID=void 0;const s=a(8610);i.INVALID_SPANID="0000000000000000";i.INVALID_TRACEID="00000000000000000000000000000000";i.INVALID_SPAN_CONTEXT={traceId:i.INVALID_TRACEID,spanId:i.INVALID_SPANID,traceFlags:s.TraceFlags.NONE}},3244:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SpanKind=void 0;var a;(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"})(a=i.SpanKind||(i.SpanKind={}))},2400:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.wrapSpanContext=i.isSpanContextValid=i.isValidSpanId=i.isValidTraceId=void 0;const s=a(548);const l=a(1210);const p=/^([0-9a-f]{32})$/i;const c=/^[0-9a-f]{16}$/i;function isValidTraceId(r){return p.test(r)&&r!==s.INVALID_TRACEID}i.isValidTraceId=isValidTraceId;function isValidSpanId(r){return c.test(r)&&r!==s.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},8049:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SpanStatusCode=void 0;var a;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(a=i.SpanStatusCode||(i.SpanStatusCode={}))},8610:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceFlags=void 0;var a;(function(r){r[r["NONE"]=0]="NONE";r[r["SAMPLED"]=1]="SAMPLED"})(a=i.TraceFlags||(i.TraceFlags={}))},5763:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.VERSION=void 0;i.VERSION="1.7.0"},9435:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(r,i,a,s,l,p,c){this.method=r;this.requestHeaders=i;this.requests=a;this.headers=s;this.response=l;this.status=p;this.trailers=c}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 a(this,void 0,void 0,(function*(){let[r,i,a,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,response:i,status:a,trailers:s}}))}}i.ClientStreamingCall=ClientStreamingCall},5157:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Deferred=i.DeferredState=void 0;var a;(function(r){r[r["PENDING"]=0]="PENDING";r[r["REJECTED"]=1]="REJECTED";r[r["RESOLVED"]=2]="RESOLVED"})(a=i.DeferredState||(i.DeferredState={}));class Deferred{constructor(r=true){this._state=a.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!==a.PENDING)throw new Error(`cannot resolve ${a[this.state].toLowerCase()}`);this._resolve(r);this._state=a.RESOLVED}reject(r){if(this.state!==a.PENDING)throw new Error(`cannot reject ${a[this.state].toLowerCase()}`);this._reject(r);this._state=a.REJECTED}resolvePending(r){if(this._state===a.PENDING)this.resolve(r)}rejectPending(r){if(this._state===a.PENDING)this.reject(r)}}i.Deferred=Deferred},4798:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(r,i,a,s,l,p,c){this.method=r;this.requestHeaders=i;this.requests=a;this.headers=s;this.responses=l;this.status=p;this.trailers=c}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 a(this,void 0,void 0,(function*(){let[r,i,a]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,status:i,trailers:a}}))}}i.DuplexStreamingCall=DuplexStreamingCall},3979:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(7513);Object.defineProperty(i,"ServiceType",{enumerable:true,get:function(){return s.ServiceType}});var l=a(640);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 p=a(5812);Object.defineProperty(i,"RpcError",{enumerable:true,get:function(){return p.RpcError}});var c=a(9727);Object.defineProperty(i,"mergeRpcOptions",{enumerable:true,get:function(){return c.mergeRpcOptions}});var d=a(4194);Object.defineProperty(i,"RpcOutputStreamController",{enumerable:true,get:function(){return d.RpcOutputStreamController}});var u=a(8269);Object.defineProperty(i,"TestTransport",{enumerable:true,get:function(){return u.TestTransport}});var h=a(5157);Object.defineProperty(i,"Deferred",{enumerable:true,get:function(){return h.Deferred}});Object.defineProperty(i,"DeferredState",{enumerable:true,get:function(){return h.DeferredState}});var g=a(4798);Object.defineProperty(i,"DuplexStreamingCall",{enumerable:true,get:function(){return g.DuplexStreamingCall}});var y=a(9435);Object.defineProperty(i,"ClientStreamingCall",{enumerable:true,get:function(){return y.ClientStreamingCall}});var b=a(1321);Object.defineProperty(i,"ServerStreamingCall",{enumerable:true,get:function(){return b.ServerStreamingCall}});var v=a(7532);Object.defineProperty(i,"UnaryCall",{enumerable:true,get:function(){return v.UnaryCall}});var w=a(9055);Object.defineProperty(i,"stackIntercept",{enumerable:true,get:function(){return w.stackIntercept}});Object.defineProperty(i,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return w.stackDuplexStreamingInterceptors}});Object.defineProperty(i,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return w.stackClientStreamingInterceptors}});Object.defineProperty(i,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return w.stackServerStreamingInterceptors}});Object.defineProperty(i,"stackUnaryInterceptors",{enumerable:true,get:function(){return w.stackUnaryInterceptors}});var x=a(5755);Object.defineProperty(i,"ServerCallContextController",{enumerable:true,get:function(){return x.ServerCallContextController}})},640:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.readServiceOption=i.readMethodOption=i.readMethodOptions=i.normalizeMethodInfo=void 0;const s=a(5926);function normalizeMethodInfo(r,i){var a,l,p;let c=r;c.service=i;c.localName=(a=c.localName)!==null&&a!==void 0?a:s.lowerCamelCase(c.name);c.serverStreaming=!!c.serverStreaming;c.clientStreaming=!!c.clientStreaming;c.options=(l=c.options)!==null&&l!==void 0?l:{};c.idempotency=(p=c.idempotency)!==null&&p!==void 0?p:undefined;return c}i.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(r,i,a,s){var l;const p=(l=r.methods.find(((r,a)=>r.localName===i||a===i)))===null||l===void 0?void 0:l.options;return p&&p[a]?s.fromJson(p[a]):undefined}i.readMethodOptions=readMethodOptions;function readMethodOption(r,i,a,s){var l;const p=(l=r.methods.find(((r,a)=>r.localName===i||a===i)))===null||l===void 0?void 0:l.options;if(!p){return undefined}const c=p[a];if(c===undefined){return c}return s?s.fromJson(c):c}i.readMethodOption=readMethodOption;function readServiceOption(r,i,a){const s=r.options;if(!s){return undefined}const l=s[i];if(l===undefined){return l}return a?a.fromJson(l):l}i.readServiceOption=readServiceOption},5812:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.RpcError=void 0;class RpcError extends Error{constructor(r,i="UNKNOWN",a){super(r);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=i;this.meta=a!==null&&a!==void 0?a:{}}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[a,s]of i){r.push(` ${a}: ${s}`)}}return r.join("\n")}}i.RpcError=RpcError},9055:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.stackDuplexStreamingInterceptors=i.stackClientStreamingInterceptors=i.stackServerStreamingInterceptors=i.stackUnaryInterceptors=i.stackIntercept=void 0;const s=a(5926);function stackIntercept(r,i,a,l,p){var c,d,u,h;if(r=="unary"){let tail=(r,a,s)=>i.unary(r,a,s);for(const r of((c=l.interceptors)!==null&&c!==void 0?c:[]).filter((r=>r.interceptUnary)).reverse()){const i=tail;tail=(a,s,l)=>r.interceptUnary(i,a,s,l)}return tail(a,p,l)}if(r=="serverStreaming"){let tail=(r,a,s)=>i.serverStreaming(r,a,s);for(const r of((d=l.interceptors)!==null&&d!==void 0?d:[]).filter((r=>r.interceptServerStreaming)).reverse()){const i=tail;tail=(a,s,l)=>r.interceptServerStreaming(i,a,s,l)}return tail(a,p,l)}if(r=="clientStreaming"){let tail=(r,a)=>i.clientStreaming(r,a);for(const r of((u=l.interceptors)!==null&&u!==void 0?u:[]).filter((r=>r.interceptClientStreaming)).reverse()){const i=tail;tail=(a,s)=>r.interceptClientStreaming(i,a,s)}return tail(a,l)}if(r=="duplex"){let tail=(r,a)=>i.duplex(r,a);for(const r of((h=l.interceptors)!==null&&h!==void 0?h:[]).filter((r=>r.interceptDuplex)).reverse()){const i=tail;tail=(a,s)=>r.interceptDuplex(i,a,s)}return tail(a,l)}s.assertNever(r)}i.stackIntercept=stackIntercept;function stackUnaryInterceptors(r,i,a,s){return stackIntercept("unary",r,i,s,a)}i.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(r,i,a,s){return stackIntercept("serverStreaming",r,i,s,a)}i.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(r,i,a){return stackIntercept("clientStreaming",r,i,a)}i.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(r,i,a){return stackIntercept("duplex",r,i,a)}i.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},9727:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.mergeRpcOptions=void 0;const s=a(5926);function mergeRpcOptions(r,i){if(!i)return r;let a={};copy(r,a);copy(i,a);for(let l of Object.keys(i)){let p=i[l];switch(l){case"jsonOptions":a.jsonOptions=s.mergeJsonOptions(r.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=s.mergeBinaryOptions(r.binaryOptions,a.binaryOptions);break;case"meta":a.meta={};copy(r.meta,a.meta);copy(i.meta,a.meta);break;case"interceptors":a.interceptors=r.interceptors?r.interceptors.concat(p):p.concat();break}}return a}i.mergeRpcOptions=mergeRpcOptions;function copy(r,i){if(!r)return;let a=i;for(let[i,s]of Object.entries(r)){if(s instanceof Date)a[i]=new Date(s.getTime());else if(Array.isArray(s))a[i]=s.concat();else a[i]=s}}},4194:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.RpcOutputStreamController=void 0;const s=a(5157);const l=a(5926);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 a=i.indexOf(r);if(a>=0)i.splice(a,1)}}clearLis(){for(let r of Object.values(this._lis))r.splice(0,r.length)}get closed(){return this._closed!==false}notifyNext(r,i,a){l.assert((r?1:0)+(i?1:0)+(a?1:0)<=1,"only one emission at a time");if(r)this.notifyMessage(r);if(i)this.notifyError(i);if(a)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 s.Deferred;return r.p.promise}}}pushIt(r){let i=this._itState;if(!i)return;if(i.p){const a=i.p;l.assert(a.state==s.DeferredState.PENDING,"iterator contract broken");"value"in r?a.resolve(r):a.reject(r);delete i.p}else{i.q.push(r)}}}i.RpcOutputStreamController=RpcOutputStreamController},5755:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ServerCallContextController=void 0;class ServerCallContextController{constructor(r,i,a,s,l={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=r;this.headers=i;this.deadline=a;this.trailers={};this._sendRH=s;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 a=i.indexOf(r);if(a>=0)i.splice(a,1)}}}i.ServerCallContextController=ServerCallContextController},1321:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(r,i,a,s,l,p,c){this.method=r;this.requestHeaders=i;this.request=a;this.headers=s;this.responses=l;this.status=p;this.trailers=c}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 a(this,void 0,void 0,(function*(){let[r,i,a]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,status:i,trailers:a}}))}}i.ServerStreamingCall=ServerStreamingCall},7513:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ServiceType=void 0;const s=a(640);class ServiceType{constructor(r,i,a){this.typeName=r;this.methods=i.map((r=>s.normalizeMethodInfo(r,this)));this.options=a!==null&&a!==void 0?a:{}}}i.ServiceType=ServiceType},8269:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.TestTransport=void 0;const l=a(5812);const p=a(5926);const c=a(4194);const d=a(9727);const u=a(7532);const h=a(1321);const g=a(9435);const y=a(4798);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)){p.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()}p.assert(r.O.is(i));return Promise.resolve(i)}streamResponses(r,i,a){return s(this,void 0,void 0,(function*(){const s=[];if(this.data.response===undefined){s.push(r.O.create())}else if(Array.isArray(this.data.response)){for(let i of this.data.response){p.assert(r.O.is(i));s.push(i)}}else if(!(this.data.response instanceof l.RpcError)){p.assert(r.O.is(this.data.response));s.push(this.data.response)}try{yield delay(this.responseDelay,a)(undefined)}catch(r){i.notifyError(r);return}if(this.data.response instanceof l.RpcError){i.notifyError(this.data.response);return}for(let r of s){i.notifyMessage(r);try{yield delay(this.betweenResponseDelay,a)(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,a){var s;const l=(s=a.meta)!==null&&s!==void 0?s:{},p=this.promiseHeaders().then(delay(this.headerDelay,a.abort)),c=p.catch((r=>{})).then(delay(this.responseDelay,a.abort)).then((i=>this.promiseSingleResponse(r))),d=c.catch((r=>{})).then(delay(this.afterResponseDelay,a.abort)).then((r=>this.promiseStatus())),h=c.catch((r=>{})).then(delay(this.afterResponseDelay,a.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(d,h);this.lastInput={single:i};return new u.UnaryCall(r,l,i,p,c,d,h)}serverStreaming(r,i,a){var s;const l=(s=a.meta)!==null&&s!==void 0?s:{},p=this.promiseHeaders().then(delay(this.headerDelay,a.abort)),d=new c.RpcOutputStreamController,u=p.then(delay(this.responseDelay,a.abort)).catch((()=>{})).then((()=>this.streamResponses(r,d,a.abort))).then(delay(this.afterResponseDelay,a.abort)),g=u.then((()=>this.promiseStatus())),y=u.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(g,y);this.lastInput={single:i};return new h.ServerStreamingCall(r,l,i,p,d,g,y)}clientStreaming(r,i){var a;const s=(a=i.meta)!==null&&a!==void 0?a:{},l=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),p=l.catch((r=>{})).then(delay(this.responseDelay,i.abort)).then((i=>this.promiseSingleResponse(r))),c=p.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseStatus())),d=p.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(c,d);this.lastInput=new TestInputStream(this.data,i.abort);return new g.ClientStreamingCall(r,s,this.lastInput,l,p,c,d)}duplex(r,i){var a;const s=(a=i.meta)!==null&&a!==void 0?a:{},l=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),p=new c.RpcOutputStreamController,d=l.then(delay(this.responseDelay,i.abort)).catch((()=>{})).then((()=>this.streamResponses(r,p,i.abort))).then(delay(this.afterResponseDelay,i.abort)),u=d.then((()=>this.promiseStatus())),h=d.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(u,h);this.lastInput=new TestInputStream(this.data,i.abort);return new y.DuplexStreamingCall(r,s,this.lastInput,l,p,u,h)}}i.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(r,i){return a=>new Promise(((s,p)=>{if(i===null||i===void 0?void 0:i.aborted){p(new l.RpcError("user cancel","CANCELLED"))}else{const c=setTimeout((()=>s(a)),r);if(i){i.addEventListener("abort",(r=>{clearTimeout(c);p(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))}}},7532:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.UnaryCall=void 0;class UnaryCall{constructor(r,i,a,s,l,p,c){this.method=r;this.requestHeaders=i;this.request=a;this.headers=s;this.response=l;this.status=p;this.trailers=c}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 a(this,void 0,void 0,(function*(){let[r,i,a,s]=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:a,trailers:s}}))}}i.UnaryCall=UnaryCall},7831:(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 a=34028234663852886e22,s=-34028234663852886e22,l=4294967295,p=2147483647,c=-2147483648;function assertInt32(r){if(typeof r!=="number")throw new Error("invalid int 32: "+typeof r);if(!Number.isInteger(r)||r>p||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>a||r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.base64encode=i.base64decode=void 0;let a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let s=[];for(let r=0;r>4;d=c;p=2;break;case 2:a[l++]=(d&15)<<4|(c&60)>>2;d=c;p=3;break;case 3:a[l++]=(d&3)<<6|c;p=0;break}}if(p==1)throw Error(`invalid base64 string.`);return a.subarray(0,l)}i.base64decode=base64decode;function base64encode(r){let i="",s=0,l,p=0;for(let c=0;c>2];p=(l&3)<<4;s=1;break;case 1:i+=a[p|l>>4];p=(l&15)<<2;s=2;break;case 2:i+=a[p|l>>6];i+=a[l&63];s=0;break}}if(s){i+=a[p];i+="=";if(s==1)i+="="}return i}i.base64encode=base64encode},248:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.WireType=i.mergeBinaryOptions=i.UnknownFieldHandler=void 0;var a;(function(r){r.symbol=Symbol.for("protobuf-ts/unknown");r.onRead=(i,a,s,l,p)=>{let c=is(a)?a[r.symbol]:a[r.symbol]=[];c.push({no:s,wireType:l,data:p})};r.onWrite=(i,a,s)=>{for(let{no:i,wireType:l,data:p}of r.list(a))s.tag(i,l).raw(p)};r.list=(i,a)=>{if(is(i)){let s=i[r.symbol];return a?s.filter((r=>r.no==a)):s}return[]};r.last=(i,a)=>r.list(i,a).slice(-1)[0];const is=i=>i&&Array.isArray(i[r.symbol])})(a=i.UnknownFieldHandler||(i.UnknownFieldHandler={}));function mergeBinaryOptions(r,i){return Object.assign(Object.assign({},r),i)}i.mergeBinaryOptions=mergeBinaryOptions;var s;(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"})(s=i.WireType||(i.WireType={}))},6146:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryReader=i.binaryReadOptions=void 0;const s=a(248);const l=a(8734);const p=a(1011);const c={readUnknownField:true,readerFactory:r=>new BinaryReader(r)};function binaryReadOptions(r){return r?Object.assign(Object.assign({},c),r):c}i.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(r,i){this.varint64=p.varint64read;this.uint32=p.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,a=r&7;if(i<=0||a<0||a>5)throw new Error("illegal tag: field no "+i+" wire type "+a);return[i,a]}skip(r){let i=this.pos;switch(r){case s.WireType.Varint:while(this.buf[this.pos++]&128){}break;case s.WireType.Bit64:this.pos+=4;case s.WireType.Bit32:this.pos+=4;break;case s.WireType.LengthDelimited:let i=this.uint32();this.pos+=i;break;case s.WireType.StartGroup:let a;while((a=this.tag()[1])!==s.WireType.EndGroup){this.skip(a)}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 a=-(r&1);r=(r>>>1|(i&1)<<31)^a;i=i>>>1^a;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},3742:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryWriter=i.binaryWriteOptions=void 0;const s=a(8734);const l=a(1011);const p=a(7831);const c={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(r){return r?Object.assign(Object.assign({},c),r):c}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){p.assertUInt32(r);while(r>127){this.buf.push(r&127|128);r=r>>>7}this.buf.push(r);return this}int32(r){p.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){p.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){p.assertUInt32(r);let i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r,true);return this.raw(i)}sfixed32(r){p.assertInt32(r);let i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,r,true);return this.raw(i)}sint32(r){p.assertInt32(r);r=(r<<1^r>>31)>>>0;l.varint32write(r,this.buf);return this}sfixed64(r){let i=new Uint8Array(8);let a=new DataView(i.buffer);let l=s.PbLong.from(r);a.setInt32(0,l.lo,true);a.setInt32(4,l.hi,true);return this.raw(i)}fixed64(r){let i=new Uint8Array(8);let a=new DataView(i.buffer);let l=s.PbULong.from(r);a.setInt32(0,l.lo,true);a.setInt32(4,l.hi,true);return this.raw(i)}int64(r){let i=s.PbLong.from(r);l.varint64write(i.lo,i.hi,this.buf);return this}sint64(r){let i=s.PbLong.from(r),a=i.hi>>31,p=i.lo<<1^a,c=(i.hi<<1|i.lo>>>31)^a;l.varint64write(p,c,this.buf);return this}uint64(r){let i=s.PbULong.from(r);l.varint64write(i.lo,i.hi,this.buf);return this}}i.BinaryWriter=BinaryWriter},252:(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 a=parseInt(i);if(!Number.isNaN(a)){let i=r[a];if(i===undefined)return false;if(r[i]!==a)return false}else{let a=r[i];if(a===undefined)return false;if(typeof a!=="number")return false;if(r[a]===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[a,s]of Object.entries(r))if(typeof s=="number")i.push({name:a,number:s});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,a)=>a.indexOf(r)==i))}i.listEnumNumbers=listEnumNumbers},1011:(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 a=0;a<28;a+=7){let s=this.buf[this.pos++];r|=(s&127)<>4;if((a&128)==0){this.assertBounds();return[r,i]}for(let a=3;a<=31;a+=7){let s=this.buf[this.pos++];i|=(s&127)<>>s;const p=!(l>>>7==0&&i==0);const c=(p?l|128:l)&255;a.push(c);if(!p){return}}const s=r>>>28&15|(i&7)<<4;const l=!(i>>3==0);a.push((l?s|128:s)&255);if(!l){return}for(let r=3;r<31;r=r+7){const s=i>>>r;const l=!(s>>>7==0);const p=(l?s|128:s)&255;a.push(p);if(!l){return}}a.push(i>>>31&1)}i.varint64write=varint64write;const a=(1<<16)*(1<<16);function int64fromString(r){let i=r[0]=="-";if(i)r=r.slice(1);const s=1e6;let l=0;let p=0;function add1e6digit(i,c){const d=Number(r.slice(i,c));p*=s;l=l*s+d;if(l>=a){p=p+(l/a|0);l=l%a}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[i,l,p]}i.int64fromString=int64fromString;function int64toString(r,i){if(i>>>0<=2097151){return""+(a*i+(r>>>0))}let s=r&16777215;let l=(r>>>24|i<<8)>>>0&16777215;let p=i>>16&65535;let c=s+l*6777216+p*6710656;let d=l+p*8147497;let u=p*2;let h=1e7;if(c>=h){d+=Math.floor(c/h);c%=h}if(d>=h){u+=Math.floor(d/h);d%=h}function decimalFrom1e7(r,i){let a=r?String(r):"";if(i){return"0000000".slice(a.length)+a}return a}return decimalFrom1e7(u,0)+decimalFrom1e7(d,u)+decimalFrom1e7(c,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 a=0;a<9;a++){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},5926:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(1617);Object.defineProperty(i,"typeofJsonValue",{enumerable:true,get:function(){return s.typeofJsonValue}});Object.defineProperty(i,"isJsonObject",{enumerable:true,get:function(){return s.isJsonObject}});var l=a(5954);Object.defineProperty(i,"base64decode",{enumerable:true,get:function(){return l.base64decode}});Object.defineProperty(i,"base64encode",{enumerable:true,get:function(){return l.base64encode}});var p=a(4512);Object.defineProperty(i,"utf8read",{enumerable:true,get:function(){return p.utf8read}});var c=a(248);Object.defineProperty(i,"WireType",{enumerable:true,get:function(){return c.WireType}});Object.defineProperty(i,"mergeBinaryOptions",{enumerable:true,get:function(){return c.mergeBinaryOptions}});Object.defineProperty(i,"UnknownFieldHandler",{enumerable:true,get:function(){return c.UnknownFieldHandler}});var d=a(6146);Object.defineProperty(i,"BinaryReader",{enumerable:true,get:function(){return d.BinaryReader}});Object.defineProperty(i,"binaryReadOptions",{enumerable:true,get:function(){return d.binaryReadOptions}});var u=a(3742);Object.defineProperty(i,"BinaryWriter",{enumerable:true,get:function(){return u.BinaryWriter}});Object.defineProperty(i,"binaryWriteOptions",{enumerable:true,get:function(){return u.binaryWriteOptions}});var h=a(8734);Object.defineProperty(i,"PbLong",{enumerable:true,get:function(){return h.PbLong}});Object.defineProperty(i,"PbULong",{enumerable:true,get:function(){return h.PbULong}});var g=a(6737);Object.defineProperty(i,"jsonReadOptions",{enumerable:true,get:function(){return g.jsonReadOptions}});Object.defineProperty(i,"jsonWriteOptions",{enumerable:true,get:function(){return g.jsonWriteOptions}});Object.defineProperty(i,"mergeJsonOptions",{enumerable:true,get:function(){return g.mergeJsonOptions}});var y=a(227);Object.defineProperty(i,"MESSAGE_TYPE",{enumerable:true,get:function(){return y.MESSAGE_TYPE}});var b=a(4740);Object.defineProperty(i,"MessageType",{enumerable:true,get:function(){return b.MessageType}});var v=a(6008);Object.defineProperty(i,"ScalarType",{enumerable:true,get:function(){return v.ScalarType}});Object.defineProperty(i,"LongType",{enumerable:true,get:function(){return v.LongType}});Object.defineProperty(i,"RepeatType",{enumerable:true,get:function(){return v.RepeatType}});Object.defineProperty(i,"normalizeFieldInfo",{enumerable:true,get:function(){return v.normalizeFieldInfo}});Object.defineProperty(i,"readFieldOptions",{enumerable:true,get:function(){return v.readFieldOptions}});Object.defineProperty(i,"readFieldOption",{enumerable:true,get:function(){return v.readFieldOption}});Object.defineProperty(i,"readMessageOption",{enumerable:true,get:function(){return v.readMessageOption}});var w=a(6388);Object.defineProperty(i,"ReflectionTypeCheck",{enumerable:true,get:function(){return w.ReflectionTypeCheck}});var x=a(8399);Object.defineProperty(i,"reflectionCreate",{enumerable:true,get:function(){return x.reflectionCreate}});var S=a(7245);Object.defineProperty(i,"reflectionScalarDefault",{enumerable:true,get:function(){return S.reflectionScalarDefault}});var _=a(1922);Object.defineProperty(i,"reflectionMergePartial",{enumerable:true,get:function(){return _.reflectionMergePartial}});var T=a(1292);Object.defineProperty(i,"reflectionEquals",{enumerable:true,get:function(){return T.reflectionEquals}});var N=a(7116);Object.defineProperty(i,"ReflectionBinaryReader",{enumerable:true,get:function(){return N.ReflectionBinaryReader}});var P=a(318);Object.defineProperty(i,"ReflectionBinaryWriter",{enumerable:true,get:function(){return P.ReflectionBinaryWriter}});var O=a(6559);Object.defineProperty(i,"ReflectionJsonReader",{enumerable:true,get:function(){return O.ReflectionJsonReader}});var R=a(3645);Object.defineProperty(i,"ReflectionJsonWriter",{enumerable:true,get:function(){return R.ReflectionJsonWriter}});var C=a(6969);Object.defineProperty(i,"containsMessageType",{enumerable:true,get:function(){return C.containsMessageType}});var k=a(8081);Object.defineProperty(i,"isOneofGroup",{enumerable:true,get:function(){return k.isOneofGroup}});Object.defineProperty(i,"setOneofValue",{enumerable:true,get:function(){return k.setOneofValue}});Object.defineProperty(i,"getOneofValue",{enumerable:true,get:function(){return k.getOneofValue}});Object.defineProperty(i,"clearOneofValue",{enumerable:true,get:function(){return k.clearOneofValue}});Object.defineProperty(i,"getSelectedOneofValue",{enumerable:true,get:function(){return k.getSelectedOneofValue}});var A=a(252);Object.defineProperty(i,"listEnumValues",{enumerable:true,get:function(){return A.listEnumValues}});Object.defineProperty(i,"listEnumNames",{enumerable:true,get:function(){return A.listEnumNames}});Object.defineProperty(i,"listEnumNumbers",{enumerable:true,get:function(){return A.listEnumNumbers}});Object.defineProperty(i,"isEnumObject",{enumerable:true,get:function(){return A.isEnumObject}});var D=a(591);Object.defineProperty(i,"lowerCamelCase",{enumerable:true,get:function(){return D.lowerCamelCase}});var I=a(7831);Object.defineProperty(i,"assert",{enumerable:true,get:function(){return I.assert}});Object.defineProperty(i,"assertNever",{enumerable:true,get:function(){return I.assertNever}});Object.defineProperty(i,"assertInt32",{enumerable:true,get:function(){return I.assertInt32}});Object.defineProperty(i,"assertUInt32",{enumerable:true,get:function(){return I.assertUInt32}});Object.defineProperty(i,"assertFloat32",{enumerable:true,get:function(){return I.assertFloat32}})},6737:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.mergeJsonOptions=i.jsonWriteOptions=i.jsonReadOptions=void 0;const a={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},s={ignoreUnknownFields:false};function jsonReadOptions(r){return r?Object.assign(Object.assign({},s),r):s}i.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(r){return r?Object.assign(Object.assign({},a),r):a}i.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(r,i){var a,s;let l=Object.assign(Object.assign({},r),i);l.typeRegistry=[...(a=r===null||r===void 0?void 0:r.typeRegistry)!==null&&a!==void 0?a:[],...(s=i===null||i===void 0?void 0:i.typeRegistry)!==null&&s!==void 0?s:[]];return l}i.mergeJsonOptions=mergeJsonOptions},1617:(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},591:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.lowerCamelCase=void 0;function lowerCamelCase(r){let i=false;const a=[];for(let s=0;s{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MESSAGE_TYPE=void 0;i.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},4740:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MessageType=void 0;const s=a(227);const l=a(6008);const p=a(6388);const c=a(6559);const d=a(3645);const u=a(7116);const h=a(318);const g=a(8399);const y=a(1922);const b=a(1617);const v=a(6737);const w=a(1292);const x=a(3742);const S=a(6146);class MessageType{constructor(r,i,a){this.defaultCheckDepth=16;this.typeName=r;this.fields=i.map(l.normalizeFieldInfo);this.options=a!==null&&a!==void 0?a:{};this.messagePrototype=Object.defineProperty({},s.MESSAGE_TYPE,{value:this});this.refTypeCheck=new p.ReflectionTypeCheck(this);this.refJsonReader=new c.ReflectionJsonReader(this);this.refJsonWriter=new d.ReflectionJsonWriter(this);this.refBinReader=new u.ReflectionBinaryReader(this);this.refBinWriter=new h.ReflectionBinaryWriter(this)}create(r){let i=g.reflectionCreate(this);if(r!==undefined){y.reflectionMergePartial(this,i,r)}return i}clone(r){let i=this.create();y.reflectionMergePartial(this,i,r);return i}equals(r,i){return w.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){y.reflectionMergePartial(this,r,i)}fromBinary(r,i){let a=S.binaryReadOptions(i);return this.internalBinaryRead(a.readerFactory(r),r.byteLength,a)}fromJson(r,i){return this.internalJsonRead(r,v.jsonReadOptions(i))}fromJsonString(r,i){let a=JSON.parse(r);return this.fromJson(a,i)}toJson(r,i){return this.internalJsonWrite(r,v.jsonWriteOptions(i))}toJsonString(r,i){var a;let s=this.toJson(r,i);return JSON.stringify(s,null,(a=i===null||i===void 0?void 0:i.prettySpaces)!==null&&a!==void 0?a:0)}toBinary(r,i){let a=x.binaryWriteOptions(i);return this.internalBinaryWrite(r,a.writerFactory(),a).finish()}internalJsonRead(r,i,a){if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let s=a!==null&&a!==void 0?a:this.create();this.refJsonReader.read(r,s,i);return s}throw new Error(`Unable to parse message ${this.typeName} from JSON ${b.typeofJsonValue(r)}.`)}internalJsonWrite(r,i){return this.refJsonWriter.write(r,i)}internalBinaryWrite(r,i,a){this.refBinWriter.write(r,i,a);return i}internalBinaryRead(r,i,a,s){let l=s!==null&&s!==void 0?s:this.create();this.refBinReader.read(r,l,a,i);return l}}i.MessageType=MessageType},8081:(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,a){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=i;if(a!==undefined){r[i]=a}}i.setOneofValue=setOneofValue;function setUnknownOneofValue(r,i,a){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=i;if(a!==undefined&&i!==undefined){r[i]=a}}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},8734:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PbLong=i.PbULong=i.detectBi=void 0;const s=a(1011);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 p=/^-?[0-9]+$/;const c=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*c+(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(!p.test(r))throw new Error("string is no integer");let[i,a,l]=s.int64fromString(r);if(i)throw new Error("signed value for ulong");return new PbULong(a,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/c)}throw new Error("unknown value "+typeof r)}toString(){return l?this.toBigInt().toString():s.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(!p.test(r))throw new Error("string is no integer");let[i,a,l]=s.int64fromString(r);if(i){if(l>d||l==d&&a!=0)throw new Error("signed long too small")}else if(l>=d)throw new Error("signed long too large");let u=new PbLong(a,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/c):new PbLong(-r,-r/c).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"-"+s.int64toString(r.lo,r.hi)}return s.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)},4512:(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,a=[],s=[],l=0,p;let c=r.length;while(i191&&p<224)s[l++]=(p&31)<<6|r[i++]&63;else if(p>239&&p<365){p=((p&7)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536;s[l++]=55296+(p>>10);s[l++]=56320+(p&1023)}else s[l++]=(p&15)<<12|(r[i++]&63)<<6|r[i++]&63;if(l>8191){a.push(fromCharCodes(s));l=0}}if(a.length){if(l)a.push(fromCharCodes(s.slice(0,l)));return a.join("")}return fromCharCodes(s.slice(0,l))}i.utf8read=utf8read},7116:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionBinaryReader=void 0;const s=a(248);const l=a(6008);const p=a(3855);const c=a(7245);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,a,p){this.prepare();const c=p===undefined?r.len:r.pos+p;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionBinaryWriter=void 0;const s=a(248);const l=a(6008);const p=a(7831);const c=a(8734);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,a){this.prepare();for(const s of this.fields){let c,d,u=s.repeat,h=s.localName;if(s.oneof){const i=r[s.oneof];if(i.oneofKind!==h)continue;c=i[h];d=true}else{c=r[h];d=false}switch(s.kind){case"scalar":case"enum":let r=s.kind=="enum"?l.ScalarType.INT32:s.T;if(u){p.assert(Array.isArray(c));if(u==l.RepeatType.PACKED)this.packed(i,r,s.no,c);else for(const a of c)this.scalar(i,r,s.no,a,true)}else if(c===undefined)p.assert(s.opt);else this.scalar(i,r,s.no,c,d||s.opt);break;case"message":if(u){p.assert(Array.isArray(c));for(const r of c)this.message(i,a,s.T(),s.no,r)}else{this.message(i,a,s.T(),s.no,c)}break;case"map":p.assert(typeof c=="object"&&c!==null);for(const[r,l]of Object.entries(c))this.mapEntry(i,a,s,r,l);break}}let c=a.writeUnknownFields;if(c!==false)(c===true?s.UnknownFieldHandler.onWrite:c)(this.info.typeName,r,i)}mapEntry(r,i,a,c,d){r.tag(a.no,s.WireType.LengthDelimited);r.fork();let u=c;switch(a.K){case l.ScalarType.INT32:case l.ScalarType.FIXED32:case l.ScalarType.UINT32:case l.ScalarType.SFIXED32:case l.ScalarType.SINT32:u=Number.parseInt(c);break;case l.ScalarType.BOOL:p.assert(c=="true"||c=="false");u=c=="true";break}this.scalar(r,a.K,1,u,true);switch(a.V.kind){case"scalar":this.scalar(r,a.V.T,2,d,true);break;case"enum":this.scalar(r,l.ScalarType.INT32,2,d,true);break;case"message":this.message(r,i,a.V.T(),2,d);break}r.join()}message(r,i,a,l,p){if(p===undefined)return;a.internalBinaryWrite(p,r.tag(l,s.WireType.LengthDelimited).fork(),i);r.join()}scalar(r,i,a,s,l){let[p,c,d]=this.scalarInfo(i,s);if(!d||l){r.tag(a,p);r[c](s)}}packed(r,i,a,c){if(!c.length)return;p.assert(i!==l.ScalarType.BYTES&&i!==l.ScalarType.STRING);r.tag(a,s.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 s=a(227);function containsMessageType(r){return r[s.MESSAGE_TYPE]!=null}i.containsMessageType=containsMessageType},8399:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionCreate=void 0;const s=a(7245);const l=a(227);function reflectionCreate(r){const i=r.messagePrototype?Object.create(r.messagePrototype):Object.defineProperty({},l.MESSAGE_TYPE,{value:r});for(let a of r.fields){let r=a.localName;if(a.opt)continue;if(a.oneof)i[a.oneof]={oneofKind:undefined};else if(a.repeat)i[r]=[];else switch(a.kind){case"scalar":i[r]=s.reflectionScalarDefault(a.T,a.L);break;case"enum":i[r]=0;break;case"map":i[r]={};break}}return i}i.reflectionCreate=reflectionCreate},1292:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionEquals=void 0;const s=a(6008);function reflectionEquals(r,i,a){if(i===a)return true;if(!i||!a)return false;for(let p of r.fields){let r=p.localName;let c=p.oneof?i[p.oneof][r]:i[r];let d=p.oneof?a[p.oneof][r]:a[r];switch(p.kind){case"enum":case"scalar":let r=p.kind=="enum"?s.ScalarType.INT32:p.T;if(!(p.repeat?repeatedPrimitiveEq(r,c,d):primitiveEq(r,c,d)))return false;break;case"map":if(!(p.V.kind=="message"?repeatedMsgEq(p.V.T(),l(c),l(d)):repeatedPrimitiveEq(p.V.kind=="enum"?s.ScalarType.INT32:p.V.T,l(c),l(d))))return false;break;case"message":let i=p.T();if(!(p.repeat?repeatedMsgEq(i,c,d):i.equals(c,d)))return false;break}}return true}i.reflectionEquals=reflectionEquals;const l=Object.values;function primitiveEq(r,i,a){if(i===a)return true;if(r!==s.ScalarType.BYTES)return false;let l=i;let p=a;if(l.length!==p.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 s=a(591);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 p;(function(r){r[r["BIGINT"]=0]="BIGINT";r[r["STRING"]=1]="STRING";r[r["NUMBER"]=2]="NUMBER"})(p=i.LongType||(i.LongType={}));var c;(function(r){r[r["NO"]=0]="NO";r[r["PACKED"]=1]="PACKED";r[r["UNPACKED"]=2]="UNPACKED"})(c=i.RepeatType||(i.RepeatType={}));function normalizeFieldInfo(r){var i,a,l,p;r.localName=(i=r.localName)!==null&&i!==void 0?i:s.lowerCamelCase(r.name);r.jsonName=(a=r.jsonName)!==null&&a!==void 0?a:s.lowerCamelCase(r.name);r.repeat=(l=r.repeat)!==null&&l!==void 0?l:c.NO;r.opt=(p=r.opt)!==null&&p!==void 0?p:r.repeat?false:r.oneof?false:r.kind=="message";return r}i.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(r,i,a,s){var l;const p=(l=r.fields.find(((r,a)=>r.localName==i||a==i)))===null||l===void 0?void 0:l.options;return p&&p[a]?s.fromJson(p[a]):undefined}i.readFieldOptions=readFieldOptions;function readFieldOption(r,i,a,s){var l;const p=(l=r.fields.find(((r,a)=>r.localName==i||a==i)))===null||l===void 0?void 0:l.options;if(!p){return undefined}const c=p[a];if(c===undefined){return c}return s?s.fromJson(c):c}i.readFieldOption=readFieldOption;function readMessageOption(r,i,a){const s=r.options;const l=s[i];if(l===undefined){return l}return a?a.fromJson(l):l}i.readMessageOption=readMessageOption},6559:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonReader=void 0;const s=a(1617);const l=a(5954);const p=a(6008);const c=a(8734);const d=a(7831);const u=a(3855);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,a){if(!r){let r=s.typeofJsonValue(a);if(r=="number"||r=="boolean")r=a.toString();throw new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${i}`)}}read(r,i,a){this.prepare();const l=[];for(const[c,d]of Object.entries(r)){const r=this.fMap[c];if(!r){if(!a.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${c}`);continue}const u=r.localName;let h;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);h=i[r.oneof]={oneofKind:u}}else{h=i}if(r.kind=="map"){if(d===null){continue}this.assert(s.isJsonObject(d),r.name,d);const i=h[u];for(const[s,l]of Object.entries(d)){this.assert(l!==null,r.name+" map value",null);let c;switch(r.V.kind){case"message":c=r.V.T().internalJsonRead(l,a);break;case"enum":c=this.enum(r.V.T(),l,r.name,a.ignoreUnknownFields);if(c===false)continue;break;case"scalar":c=this.scalar(l,r.V.T,r.V.L,r.name);break}this.assert(c!==undefined,r.name+" map value",l);let d=s;if(r.K==p.ScalarType.BOOL)d=d=="true"?true:d=="false"?false:d;d=this.scalar(d,r.K,p.LongType.STRING,r.name).toString();i[d]=c}}else if(r.repeat){if(d===null)continue;this.assert(Array.isArray(d),r.name,d);const i=h[u];for(const s of d){this.assert(s!==null,r.name,null);let l;switch(r.kind){case"message":l=r.T().internalJsonRead(s,a);break;case"enum":l=this.enum(r.T(),s,r.name,a.ignoreUnknownFields);if(l===false)continue;break;case"scalar":l=this.scalar(s,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}h[u]=r.T().internalJsonRead(d,a,h[u]);break;case"enum":let i=this.enum(r.T(),d,r.name,a.ignoreUnknownFields);if(i===false)continue;h[u]=i;break;case"scalar":h[u]=this.scalar(d,r.T,r.L,r.name);break}}}}enum(r,i,a,s){if(r[0]=="google.protobuf.NullValue")d.assert(i===null||i==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${a}, 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}#${a}, 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 p=r[1][l];if(typeof p==="undefined"&&s){return false}d.assert(typeof p=="number",`Unable to parse field ${this.info.typeName}#${a}, enum ${r[0]} has no value for "${i}".`);return p}d.assert(false,`Unable to parse field ${this.info.typeName}#${a}, cannot parse enum value from ${typeof i}".`)}scalar(r,i,a,s){let h;try{switch(i){case p.ScalarType.DOUBLE:case p.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===""){h="empty string";break}if(typeof r=="string"&&r.trim().length!==r.length){h="extra whitespace";break}if(typeof r!="string"&&typeof r!="number"){break}let s=Number(r);if(Number.isNaN(s)){h="not a number";break}if(!Number.isFinite(s)){h="too large or small";break}if(i==p.ScalarType.FLOAT)d.assertFloat32(s);return s;case p.ScalarType.INT32:case p.ScalarType.FIXED32:case p.ScalarType.SFIXED32:case p.ScalarType.SINT32:case p.ScalarType.UINT32:if(r===null)return 0;let g;if(typeof r=="number")g=r;else if(r==="")h="empty string";else if(typeof r=="string"){if(r.trim().length!==r.length)h="extra whitespace";else g=Number(r)}if(g===undefined)break;if(i==p.ScalarType.UINT32)d.assertUInt32(g);else d.assertInt32(g);return g;case p.ScalarType.INT64:case p.ScalarType.SFIXED64:case p.ScalarType.SINT64:if(r===null)return u.reflectionLongConvert(c.PbLong.ZERO,a);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(c.PbLong.from(r),a);case p.ScalarType.FIXED64:case p.ScalarType.UINT64:if(r===null)return u.reflectionLongConvert(c.PbULong.ZERO,a);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(c.PbULong.from(r),a);case p.ScalarType.BOOL:if(r===null)return false;if(typeof r!=="boolean")break;return r;case p.ScalarType.STRING:if(r===null)return"";if(typeof r!=="string"){h="extra whitespace";break}try{encodeURIComponent(r)}catch(h){h="invalid UTF8";break}return r;case p.ScalarType.BYTES:if(r===null||r==="")return new Uint8Array(0);if(typeof r!=="string")break;return l.base64decode(r)}}catch(r){h=r.message}this.assert(false,s+(h?" - "+h:""),r)}}i.ReflectionJsonReader=ReflectionJsonReader},3645:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonWriter=void 0;const s=a(5954);const l=a(8734);const p=a(6008);const c=a(7831);class ReflectionJsonWriter{constructor(r){var i;this.fields=(i=r.fields)!==null&&i!==void 0?i:[]}write(r,i){const a={},s=r;for(const r of this.fields){if(!r.oneof){let l=this.field(r,s[r.localName],i);if(l!==undefined)a[i.useProtoFieldName?r.name:r.jsonName]=l;continue}const l=s[r.oneof];if(l.oneofKind!==r.localName)continue;const p=r.kind=="scalar"||r.kind=="enum"?Object.assign(Object.assign({},i),{emitDefaultValues:true}):i;let d=this.field(r,l[r.localName],p);c.assert(d!==undefined);a[i.useProtoFieldName?r.name:r.jsonName]=d}return a}field(r,i,a){let s=undefined;if(r.kind=="map"){c.assert(typeof i=="object"&&i!==null);const l={};switch(r.V.kind){case"scalar":for(const[a,s]of Object.entries(i)){const i=this.scalar(r.V.T,s,r.name,false,true);c.assert(i!==undefined);l[a.toString()]=i}break;case"message":const s=r.V.T();for(const[p,d]of Object.entries(i)){const i=this.message(s,d,r.name,a);c.assert(i!==undefined);l[p.toString()]=i}break;case"enum":const p=r.V.T();for(const[s,d]of Object.entries(i)){c.assert(d===undefined||typeof d=="number");const i=this.enum(p,d,r.name,false,true,a.enumAsInteger);c.assert(i!==undefined);l[s.toString()]=i}break}if(a.emitDefaultValues||Object.keys(l).length>0)s=l}else if(r.repeat){c.assert(Array.isArray(i));const l=[];switch(r.kind){case"scalar":for(let a=0;a0||a.emitDefaultValues)s=l}else{switch(r.kind){case"scalar":s=this.scalar(r.T,i,r.name,r.opt,a.emitDefaultValues);break;case"enum":s=this.enum(r.T(),i,r.name,r.opt,a.emitDefaultValues,a.enumAsInteger);break;case"message":s=this.message(r.T(),i,r.name,a);break}}return s}enum(r,i,a,s,l,p){if(r[0]=="google.protobuf.NullValue")return!l&&!s?undefined:null;if(i===undefined){c.assert(s);return undefined}if(i===0&&!l&&!s)return undefined;c.assert(typeof i=="number");c.assert(Number.isInteger(i));if(p||!r[1].hasOwnProperty(i))return i;if(r[2])return r[2]+r[1][i];return r[1][i]}message(r,i,a,s){if(i===undefined)return s.emitDefaultValues?null:undefined;return r.internalJsonWrite(i,s)}scalar(r,i,a,d,u){if(i===undefined){c.assert(d);return undefined}const h=u||d;switch(r){case p.ScalarType.INT32:case p.ScalarType.SFIXED32:case p.ScalarType.SINT32:if(i===0)return h?0:undefined;c.assertInt32(i);return i;case p.ScalarType.FIXED32:case p.ScalarType.UINT32:if(i===0)return h?0:undefined;c.assertUInt32(i);return i;case p.ScalarType.FLOAT:c.assertFloat32(i);case p.ScalarType.DOUBLE:if(i===0)return h?0:undefined;c.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 p.ScalarType.STRING:if(i==="")return h?"":undefined;c.assert(typeof i=="string");return i;case p.ScalarType.BOOL:if(i===false)return h?false:undefined;c.assert(typeof i=="boolean");return i;case p.ScalarType.UINT64:case p.ScalarType.FIXED64:c.assert(typeof i=="number"||typeof i=="string"||typeof i=="bigint");let r=l.PbULong.from(i);if(r.isZero()&&!h)return undefined;return r.toString();case p.ScalarType.INT64:case p.ScalarType.SFIXED64:case p.ScalarType.SINT64:c.assert(typeof i=="number"||typeof i=="string"||typeof i=="bigint");let a=l.PbLong.from(i);if(a.isZero()&&!h)return undefined;return a.toString();case p.ScalarType.BYTES:c.assert(i instanceof Uint8Array);if(!i.byteLength)return h?"":undefined;return s.base64encode(i)}}}i.ReflectionJsonWriter=ReflectionJsonWriter},3855:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionLongConvert=void 0;const s=a(6008);function reflectionLongConvert(r,i){switch(i){case s.LongType.BIGINT:return r.toBigInt();case s.LongType.NUMBER:return r.toNumber();default:return r.toString()}}i.reflectionLongConvert=reflectionLongConvert},1922:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionMergePartial=void 0;function reflectionMergePartial(r,i,a){let s,l=a,p;for(let a of r.fields){let r=a.localName;if(a.oneof){const c=l[a.oneof];if((c===null||c===void 0?void 0:c.oneofKind)==undefined){continue}s=c[r];p=i[a.oneof];p.oneofKind=c.oneofKind;if(s==undefined){delete p[r];continue}}else{s=l[r];p=i;if(s==undefined){continue}}if(a.repeat)p[r].length=s.length;switch(a.kind){case"scalar":case"enum":if(a.repeat)for(let i=0;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionScalarDefault=void 0;const s=a(6008);const l=a(3855);const p=a(8734);function reflectionScalarDefault(r,i=s.LongType.STRING){switch(r){case s.ScalarType.BOOL:return false;case s.ScalarType.UINT64:case s.ScalarType.FIXED64:return l.reflectionLongConvert(p.PbULong.ZERO,i);case s.ScalarType.INT64:case s.ScalarType.SFIXED64:case s.ScalarType.SINT64:return l.reflectionLongConvert(p.PbLong.ZERO,i);case s.ScalarType.DOUBLE:case s.ScalarType.FLOAT:return 0;case s.ScalarType.BYTES:return new Uint8Array(0);case s.ScalarType.STRING:return"";default:return 0}}i.reflectionScalarDefault=reflectionScalarDefault},6388:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionTypeCheck=void 0;const s=a(6008);const l=a(8081);class ReflectionTypeCheck{constructor(r){var i;this.fields=(i=r.fields)!==null&&i!==void 0?i:[]}prepare(){if(this.data)return;const r=[],i=[],a=[];for(let s of this.fields){if(s.oneof){if(!a.includes(s.oneof)){a.push(s.oneof);r.push(s.oneof);i.push(s.oneof)}}else{i.push(s.localName);switch(s.kind){case"scalar":case"enum":if(!s.opt||s.repeat)r.push(s.localName);break;case"message":if(s.repeat)r.push(s.localName);break;case"map":r.push(s.localName);break}}}this.data={req:r,known:i,oneofs:Object.values(a)}}is(r,i,a=false){if(i<0)return true;if(r===null||r===undefined||typeof r!="object")return false;this.prepare();let s=Object.keys(r),p=this.data;if(s.length!s.includes(r))))return false;if(!a){if(s.some((r=>!p.known.includes(r))))return false}if(i<1){return true}for(const s of p.oneofs){const p=r[s];if(!l.isOneofGroup(p))return false;if(p.oneofKind===undefined)continue;const c=this.fields.find((r=>r.localName===p.oneofKind));if(!c)return false;if(!this.field(p[p.oneofKind],c,a,i))return false}for(const s of this.fields){if(s.oneof!==undefined)continue;if(!this.field(r[s.localName],s,a,i))return false}return true}field(r,i,a,l){let p=i.repeat;switch(i.kind){case"scalar":if(r===undefined)return i.opt;if(p)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(p)return this.scalars(r,s.ScalarType.INT32,l);return this.scalar(r,s.ScalarType.INT32);case"message":if(r===undefined)return true;if(p)return this.messages(r,i.T(),a,l);return this.message(r,i.T(),a,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),s.ScalarType.INT32,l);case"message":return this.messages(Object.values(r),i.V.T(),a,l)}break}return true}message(r,i,a,s){if(a){return i.isAssignable(r,s)}return i.is(r,s)}messages(r,i,a,s){if(!Array.isArray(r))return false;if(s<2)return true;if(a){for(let a=0;aparseInt(r))),i,a);case s.ScalarType.BOOL:return this.scalars(l.slice(0,a).map((r=>r=="true"?true:r=="false"?false:r)),i,a);default:return this.scalars(l,i,a,s.LongType.STRING)}}}i.ReflectionTypeCheck=ReflectionTypeCheck},7428:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var s=a(9129);class AbortSignal extends s.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const r=l.get(this);if(typeof r!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return r}}s.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const r=Object.create(AbortSignal.prototype);s.EventTarget.call(r);l.set(r,false);return r}function abortSignal(r){if(l.get(r)!==false){return}l.set(r,true);r.dispatchEvent({type:"abort"})}const l=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){p.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const p=new WeakMap;function getSignal(r){const i=p.get(r);if(i==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${r===null?"null":typeof r}`)}return i}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}i.AbortController=AbortController;i.AbortSignal=AbortSignal;i["default"]=AbortController;r.exports=AbortController;r.exports.AbortController=r.exports["default"]=AbortController;r.exports.AbortSignal=AbortSignal},122:(r,i,a)=>{var s=a(7804);var l=a(1017);var p=a(3138);var c=a(2705);var d=a(4909);var u=a(256);var h=a(3449);var g=r.exports={};var y=/[\/\\]/g;var processPatterns=function(r,i){var a=[];p(r).forEach((function(r){var s=r.indexOf("!")===0;if(s){r=r.slice(1)}var l=i(r);if(s){a=c(a,l)}else{a=d(a,l)}}));return a};g.exists=function(){var r=l.join.apply(l,arguments);return s.existsSync(r)};g.expand=function(...r){var i=u(r[0])?r.shift():{};var a=Array.isArray(r[0])?r[0]:r;if(a.length===0){return[]}var p=processPatterns(a,(function(r){return h.sync(r,i)}));if(i.filter){p=p.filter((function(r){r=l.join(i.cwd||"",r);try{if(typeof i.filter==="function"){return i.filter(r)}else{return s.statSync(r)[i.filter]()}}catch(r){return false}}))}return p};g.expandMapping=function(r,i,a){a=Object.assign({rename:function(r,i){return l.join(r||"",i)}},a);var s=[];var p={};g.expand(a,r).forEach((function(r){var c=r;if(a.flatten){c=l.basename(c)}if(a.ext){c=c.replace(/(\.[^\/]*)?$/,a.ext)}var d=a.rename(i,c,a);if(a.cwd){r=l.join(a.cwd,r)}d=d.replace(y,"/");r=r.replace(y,"/");if(p[d]){p[d].src.push(r)}else{s.push({src:[r],dest:d});p[d]=s[s.length-1]}}));return s};g.normalizeFilesArray=function(r){var i=[];r.forEach((function(r){var a;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=p(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 g.expandMapping(r.src,r.dest,i).map((function(i){var a=Object.assign({},r);a.orig=Object.assign({},r);a.src=i.src;a.dest=i.dest;["expand","cwd","flatten","rename","ext"].forEach((function(r){delete a[r]}));return a}))}var a=Object.assign({},r);a.orig=Object.assign({},r);if("src"in a){Object.defineProperty(a,"src",{enumerable:true,get:function fn(){var a;if(!("result"in fn)){a=r.src;a=Array.isArray(a)?p(a):[a];fn.result=g.expand(i,a)}return fn.result}})}if("dest"in a){a.dest=r.dest}return a})).flatten().value();return i}},6757:(r,i,a)=>{var s=a(7804);var l=a(1017);var p=a(6070);var c=a(5081);var d=a(7674);var u=a(9689);var h=a(2781).Stream;var g=a(388).PassThrough;var y=r.exports={};y.file=a(122);y.collectStream=function(r,i){var a=[];var s=0;r.on("error",i);r.on("data",(function(r){a.push(r);s+=r.length}));r.on("end",(function(){var r=Buffer.alloc(s);var l=0;a.forEach((function(i){i.copy(r,l);l+=i.length}));i(null,r)}))};y.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};y.defaults=function(r,i,a){var s=arguments;s[0]=s[0]||{};return u(...s)};y.isStream=function(r){return p(r)};y.lazyReadStream=function(r){return new c.Readable((function(){return s.createReadStream(r)}))};y.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(y.isStream(r)){return r.pipe(new g)}return r};y.sanitizePath=function(r){return d(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};y.trailingSlashIt=function(r){return r.slice(-1)!=="/"?r+"/":r};y.unixifyPath=function(r){return d(r,false).replace(/^\w+:/,"")};y.walkdir=function(r,i,a){var p=[];if(typeof i==="function"){a=i;i=r}s.readdir(r,(function(c,d){var u=0;var h;var g;if(c){return a(c)}(function next(){h=d[u++];if(!h){return a(null,p)}g=l.join(r,h);s.stat(g,(function(r,s){p.push({path:g,relative:l.relative(i,g).replace(/\\/g,"/"),stats:s});if(s&&s.isDirectory()){y.walkdir(g,i,(function(r,i){if(r){return a(r)}i.forEach((function(r){p.push(r)}));next()}))}else{next()}}))})()}))}},3572:(r,i,a)=>{ +require('./sourcemap-register.js');(()=>{var __webpack_modules__={75963: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(95126);l(s(11349),i);l(s(43098),i);l(s(95126),i);const p=new c.DefaultArtifactClient;i["default"]=p},73349:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const a=s(69948);const l=s(69948);const c=s(69948);const p=s(69948);const d=s(69948);const u=s(69948);const A=s(69948);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(69948);const l=s(69948);const c=s(69948);const p=s(69948);const d=s(69948);const u=s(69948);const A=s(69948);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.DeleteArtifactResponse=i.DeleteArtifactRequest=i.GetSignedArtifactURLResponse=i.GetSignedArtifactURLRequest=i.ListArtifactsResponse_MonolithArtifact=i.ListArtifactsResponse=i.ListArtifactsRequest=i.FinalizeArtifactResponse=i.FinalizeArtifactRequest=i.CreateArtifactResponse=i.CreateArtifactRequest=void 0;const a=s(74115);const l=s(69948);const c=s(69948);const p=s(69948);const d=s(69948);const u=s(69948);const A=s(19657);const h=s(19657);const g=s(73349);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})))}DeleteArtifact(r){const i=c.DeleteArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",i);return s.then((r=>c.DeleteArtifactResponse.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);this.DeleteArtifact.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)))}DeleteArtifact(r){const i=c.DeleteArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/protobuf",i);return s.then((r=>c.DeleteArtifactResponse.fromBinary(r)))}}i.ArtifactServiceClientProtobuf=ArtifactServiceClientProtobuf;var p;(function(r){r["CreateArtifact"]="CreateArtifact";r["FinalizeArtifact"]="FinalizeArtifact";r["ListArtifacts"]="ListArtifacts";r["GetSignedArtifactURL"]="GetSignedArtifactURL";r["DeleteArtifact"]="DeleteArtifact"})(p||(i.ArtifactServiceMethod=p={}));i.ArtifactServiceMethodList=[p.CreateArtifact,p.FinalizeArtifact,p.ListArtifacts,p.GetSignedArtifactURL,p.DeleteArtifact];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)}));case"DeleteArtifact":return(r,s,l,c)=>a(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"DeleteArtifact"});yield i.onMatch(r);return handleArtifactServiceDeleteArtifactRequest(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 handleArtifactServiceDeleteArtifactRequest(r,i,s,a){switch(r.contentType){case l.TwirpContentType.JSON:return handleArtifactServiceDeleteArtifactJSON(r,i,s,a);case l.TwirpContentType.Protobuf:return handleArtifactServiceDeleteArtifactProtobuf(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 handleArtifactServiceDeleteArtifactJSON(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.DeleteArtifactRequest.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.DeleteArtifact(r,s)))}else{d=yield i.DeleteArtifact(r,a)}return JSON.stringify(c.DeleteArtifactResponse.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))}))}function handleArtifactServiceDeleteArtifactProtobuf(r,i,s,p){return a(this,void 0,void 0,(function*(){let a;let d;try{a=c.DeleteArtifactRequest.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.DeleteArtifact(r,s)))}else{d=yield i.DeleteArtifact(r,a)}return Buffer.from(c.DeleteArtifactResponse.toBinary(d))}))}},95126: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);l1){d=p.artifacts.sort(((r,i)=>Number(i.databaseId)-Number(r.databaseId)))[0];(0,l.debug)(`More than one artifact found for a single name, returning newest (id: ${d.databaseId})`)}const u={workflowRunBackendId:d.workflowRunBackendId,workflowJobRunBackendId:d.workflowJobRunBackendId,name:d.name};const A=yield i.DeleteArtifact(u);(0,l.info)(`Artifact '${r}' (ID: ${A.artifactId}) deleted`);return{id:Number(A.artifactId)}}))}i.deleteArtifactInternal=deleteArtifactInternal},86530: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())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.downloadArtifactInternal=i.downloadArtifactPublic=i.streamExtractExternal=void 0;const u=d(s(73292));const A=c(s(45207));const h=c(s(19093));const g=c(s(76372));const y=d(s(15413));const b=s(45568);const C=s(87457);const v=s(34068);const B=s(43430);const w=s(32598);const I=s(43098);const scrubQueryParameters=r=>{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,b.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(y.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,v.internalArtifactTwirpClient)();const{workflowRunBackendId:l,workflowJobRunBackendId:c}=(0,w.getBackendIdsFromToken)();const p={workflowRunBackendId:l,workflowJobRunBackendId:c,idFilter:B.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,C.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}))}},74146: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(45207);const u=s(32872);const A=c(s(19093));const h=s(12894);const g=s(34564);const y=s(55675);const b=s(32598);const C=s(45568);const v=s(34068);const B=s(43430);const w=s(43098);function getArtifactPublic(r,i,s,a,l){var c;return p(this,void 0,void 0,(function*(){const[p,b]=(0,g.getRetryOptions)(h.defaults);const v={log:undefined,userAgent:(0,C.getUserAgentString)(),previews:undefined,retry:p,request:b};const B=(0,d.getOctokit)(l,v,u.retry,y.requestLog);const I=yield B.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}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let S=I.data.artifacts[0];if(I.data.artifacts.length>1){S=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: ${S.id})`)}return{artifact:{name:S.name,id:S.id,size:S.size_in_bytes,createdAt:S.created_at?new Date(S.created_at):undefined}}}))}i.getArtifactPublic=getArtifactPublic;function getArtifactInternal(r){return p(this,void 0,void 0,(function*(){const i=(0,v.internalArtifactTwirpClient)();const{workflowRunBackendId:s,workflowJobRunBackendId:a}=(0,b.getBackendIdsFromToken)();const l={workflowRunBackendId:s,workflowJobRunBackendId:a,nameFilter:B.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}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}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?B.Timestamp.toDate(p.createdAt):undefined}}}))}i.getArtifactInternal=getArtifactInternal},29318: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(19093);const c=s(45207);const p=s(45568);const d=s(34564);const u=s(12894);const A=s(55675);const h=s(32872);const g=s(34068);const y=s(32598);const b=s(43430);const C=1e3;const v=100;const B=C/v;function listArtifactsPublic(r,i,s,g,y=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[b,w]=(0,d.getRetryOptions)(u.defaults);const I={log:undefined,userAgent:(0,p.getUserAgentString)(),previews:undefined,retry:b,request:w};const S=(0,c.getOctokit)(g,I,h.retry,A.requestLog);let Q=1;const{data:x}=yield S.rest.actions.listWorkflowRunArtifacts({owner:i,repo:s,run_id:r,per_page:v,page:Q});let N=Math.ceil(x.total_count/v);const R=x.total_count;if(R>C){(0,l.warning)(`Workflow run ${r} has more than 1000 artifacts. Results will be incomplete as only the first ${C} artifacts will be returned`);N=B}for(const r of x.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(Q;Q({name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?b.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}},34564: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(19093));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},34068: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(76372);const c=s(8603);const p=s(19093);const d=s(43430);const u=s(87457);const A=s(45568);const h=s(43098);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},87457: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");const i=r.hostname.trimEnd().toUpperCase();const s=i==="GITHUB.COM";const a=i.endsWith(".GHE.COM")||i.endsWith(".GHE.LOCALHOST");return!s&&!a}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},43098:(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")}},11349:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true})},45568:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getUserAgentString=void 0;const a=s(34004);function getUserAgentString(){return`@actions/artifact-${a.version}`}i.getUserAgentString=getUserAgentString},32598: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(19093));const u=s(87457);const A=p(s(41003));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},22475: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(24883);const u=s(87457);const A=c(s(19093));const h=c(s(6113));const g=c(s(12781));const y=s(43098);function uploadZipToBlobStorage(r,i){return p(this,void 0,void 0,(function*(){let s=0;let a=Date.now();let l;const chunkTimer=r=>{if(l){clearTimeout(l)}l=setTimeout((()=>{const i=Date.now();if(i-a>r){throw new Error("Upload progress stalled.")}}),r);return l};const c=(0,u.getConcurrency)();const p=(0,u.getUploadChunkSize)();const b=new d.BlobClient(r);const C=b.getBlockBlobClient();const v=3e5;A.debug(`Uploading artifact zip to blob storage with maxConcurrency: ${c}, bufferSize: ${p}`);const uploadCallback=r=>{A.info(`Uploaded bytes ${r.loadedBytes}`);s=r.loadedBytes;chunkTimer(v);a=Date.now()};const B={blobHTTPHeaders:{blobContentType:"zip"},onProgress:uploadCallback};let w=undefined;const I=new g.PassThrough;const S=h.createHash("sha256");i.pipe(I);i.pipe(S).setEncoding("hex");A.info("Beginning upload of artifact content to blob storage");try{l=chunkTimer(v);yield C.uploadStream(I,p,c,B)}catch(r){if(y.NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new y.NetworkError(r===null||r===void 0?void 0:r.code)}throw r}finally{if(l){clearTimeout(l)}}A.info("Finished uploading artifact content to blob storage!");S.end();w=S.read();A.info(`SHA256 hash of uploaded artifact zip is ${w}`);if(s===0){A.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:s,sha256Hash:w}}))}i.uploadZipToBlobStorage=uploadZipToBlobStorage},16461:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateFilePath=i.validateArtifactName=void 0;const a=s(19093);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},9136: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(43430);const d=c(s(19093));function getExpiration(r){if(!r){return undefined}const i=getRetentionDays();if(i&&ir.sourcePath?[r.sourcePath]:[])))}const c=(0,y.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 S=yield p.CreateArtifact(w);if(!S.ok){throw new B.InvalidResponseError("CreateArtifact: response from backend was not ok")}const Q=yield(0,C.createZipUploadStream)(l,a===null||a===void 0?void 0:a.compressionLevel);const x=yield(0,b.uploadZipToBlobStorage)(S.signedUploadUrl,Q);const N={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:r,size:x.uploadSize?x.uploadSize.toString():"0"};if(x.sha256Hash){N.hash=v.StringValue.create({value:`sha256:${x.sha256Hash}`})}d.info(`Finalizing artifact upload`);const R=yield p.FinalizeArtifact(N);if(!R.ok){throw new B.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:x.uploadSize,id:Number(T)}}))}i.uploadArtifact=uploadArtifact},80654: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(19093);const u=s(71017);const A=s(16461);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},46280: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(13572));const A=c(s(19093));const h=s(57147);const g=s(87457);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.")}},21513: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(41120);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")}},19093: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(21513);const u=s(59017);const A=s(41120);const h=c(s(22037));const g=c(s(71017));const y=s(49141);var b;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(b=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=b.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 y.OidcClient.getIDToken(r)}))}i.getIDToken=getIDToken;var C=s(25276);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return C.summary}});var v=s(25276);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return v.markdownSummary}});var B=s(10670);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return B.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return B.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return B.toPlatformPath}})},59017: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(47338);const A=s(41120);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},49141: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(76372);const c=s(8603);const p=s(19093);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},10670: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},25276: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},41120:(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},68476:(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},45207: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(68476));const d=s(12894);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},76911: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(76372));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},12894: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(68476));const d=c(s(76911));const u=s(32205);const A=s(23492);const h=s(23785);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},8603: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},76372: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(62067));const h=c(s(94225));const g=s(37181);var y;(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"})(y||(i.HttpCodes=y={}));var b;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(b||(i.Headers=b={}));var C;(function(r){r["ApplicationJson"]="application/json"})(C||(i.MediaTypes=C={}));function getProxyUrl(r){const i=A.getProxyUrl(new URL(r));return i?i.href:""}i.getProxyUrl=getProxyUrl;const v=[y.MovedPermanently,y.ResourceMoved,y.SeeOther,y.TemporaryRedirect,y.PermanentRedirect];const B=[y.BadGateway,y.ServiceUnavailable,y.GatewayTimeout];const w=["OPTIONS","GET","DELETE","HEAD"];const I=10;const S=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[b.Accept]=this._getExistingOrDefaultHeader(i,b.Accept,C.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[b.Accept]=this._getExistingOrDefaultHeader(s,b.Accept,C.ApplicationJson);s[b.ContentType]=this._getExistingOrDefaultHeader(s,b.ContentType,C.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[b.Accept]=this._getExistingOrDefaultHeader(s,b.Accept,C.ApplicationJson);s[b.ContentType]=this._getExistingOrDefaultHeader(s,b.ContentType,C.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[b.Accept]=this._getExistingOrDefaultHeader(s,b.Accept,C.ApplicationJson);s[b.ContentType]=this._getExistingOrDefaultHeader(s,b.ContentType,C.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===y.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&&v.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||!B.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(!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(!i){const r={keepAlive:this._keepAlive,maxSockets:c};i=l?new u.Agent(r):new d.Agent(r);this._agent=i}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=S*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===y.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)),{})},62067:(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]")}},64732:(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},49808:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(47338);var l=s(73837);var c=s(83134);var p=s(11136);var d=s(33302);var u=s(8076);var A=s(59334);var h=s(22037);var g=s(13685);var y=s(95687);var b=s(64732);var C=s(94225);var v=s(12781);var B=s(6698);var w=s(88761);var I=s(19011);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 S=_interopNamespace(p);var Q=_interopNamespace(h);var x=_interopNamespace(g);var N=_interopNamespace(y);var R=_interopNamespace(C);var T=_interopDefaultLegacy(B);var D=_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 L=/^(-|\+)?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 L.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:y,UniqueItems:b}=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&&C.length>u){failValidation("MaxLength",u)}if(A!=undefined&&C.lengths.indexOf(r)!==i))){failValidation("UniqueItems",b)}}}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:P};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:P};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:P;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 y=splitSerializeName(u[c].serializedName);h.push(y[0]);const{serializedName:b,xmlName:C,xmlElementName:v}=g;let B=a;if(b!==""&&b!==undefined){B=a+"."+b}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],B,l)}h.push(a)}A[c]=i}else if(r.isXML){if(g.xmlIsAttribute&&s[k]){A[c]=r.deserialize(g,s[k][C],B,l)}else if(g.xmlIsMsText){if(s[d]!==undefined){A[c]=s[d]}else if(typeof s==="string"){A[c]=s}}else{const i=v||C||b;if(g.xmlIsWrapped){const i=s[C];const a=(p=i===null||i===void 0?void 0:i[v])!==null&&p!==void 0?p:[];A[c]=r.deserialize(g,a,B,l);h.push(C)}else{const a=s[i];A[c]=r.deserialize(g,a,B,l);h.push(i)}}}else{let a;let p=s;for(const r of y){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,B,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,B,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 U="REDACTED";const H=["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 j=["api-version"];class Sanitizer{constructor({allowedHeaderNames:r=[],allowedQueryParameters:i=[]}={}){r=Array.isArray(r)?H.concat(r):H;i=Array.isArray(i)?j.concat(i):j;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]=U}}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,U)}}i.setQuery(a.toString());return i.toString()}}const q=l.inspect.custom;const G=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)}[q](){return`RestError: ${this.message} \n ${G.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const z=u.createClientLogger("core-http");function getCachedAgent(r,i){return r?i.httpsAgent:i.httpAgent}class ReportTransform extends v.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 b.AbortController;let a;if(r.abortSignal){if(r.abortSignal.aborted){throw new b.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=>{z.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 N.Agent(a)}else{i=this.keepAliveAgents.httpAgent=new x.Agent(a)}return i}else{return s?N.globalAgent:x.globalAgent}}async fetch(r,i){return D["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 W=Object.assign({},V);W.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:P;const a=new S.Builder(Y);return a.buildObject(r)}function parseXML(r,i={}){var s;W.explicitRoot=!!i.includeRoot;W.charkey=(s=i.xmlCharKey)!==null&&s!==void 0?s:P;const a=new S.Parser(W);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 J=["application/json","text/json"];const X=["application/xml","application/atom+xml"];const K={expectedContentTypes:{json:J,xml:X}};class DeserializationPolicy extends BaseRequestPolicy{constructor(r,i,s,a={}){var l;super(r,i);this.jsonContentTypes=s&&s.json||J;this.xmlContentTypes=s&&s.xml||X;this.xmlCharKey=(l=a.xmlCharKey)!==null&&l!==void 0?l:P}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:P};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===M.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===M.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 Z=["GET","HEAD"];const ee={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&&Z.includes(a.method)||l===302&&Z.includes(a.method)||l===303&&a.method==="POST"||l===307)&&(!r.maxRetries||shandleRedirect(r,i,s+1)))}return Promise.resolve(i)}const te=3;const re=1e3*30;const ie=1e3*90;const ne=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 se={maxRetries:te,retryDelayInMs:re,maxRetryDelayInMs:ie};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(r,i,s,a,l){super(r,i);this.retryCount=isNumber(s)?s:te;this.retryInterval=isNumber(a)?a:re;this.maxRetryInterval=isNumber(l)?l:ie}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)){z.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=z.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===M.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:`(${Q.arch()}-${Q.type()}-${Q.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 ae=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 oe={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 le;function getCachedDefaultHttpClient(){if(!le){le=new NodeFetchHttpClient}return le}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 ce=[];let pe=false;const de=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);pe=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(!pe){ce.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:ce,this.customNoProxyList?undefined:de)){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:te;this.retryInterval=isNumber(a)?a:re;this.minRetryInterval=isNumber(l)?l:ne;this.maxRetryInterval=isNumber(c)?c:ie}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 ue=3;const Ae=_.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(r,i)=>new ThrottlingRetryPolicy(r,i)}}const me="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!==Ae.TooManyRequests&&i.status!==Ae.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:me});if((s=r.abortSignal)===null||s===void 0?void 0:s.aborted){throw new b.AbortError(me)}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"){z.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")}z.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:P};const y=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:b}=l;const C=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=C===M.Stream;if(a.isXML){const r=b?`xmlns:${b}`:"xmlns";const a=getXmlValueWithNamespace(h,r,C,i.body,g);if(C===M.Sequence){i.body=stringifyXML(prepareXMLRootList(a,d||p||u,r,h),{rootName:p||u,xmlCharKey:y})}else if(!s){i.body=stringifyXML(a,{rootName:p||u,xmlCharKey:y})}}else if(C===M.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,ae);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:z.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({},se),r.retryOptions);const p=Object.assign(Object.assign({},ee),r.redirectOptions);if(d.isNode){s.push(proxyPolicy(r.proxyOptions))}const u=Object.assign(Object.assign({},K),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 ge=_.HeaderConstants;const ye="Basic";class BasicAuthenticationCredentials{constructor(r,i,s=ye){this.authorizationScheme=ye;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(ge.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=M;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=P;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},19011:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(24319);(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 y=Object.assign(Object.assign({},d),{spanOptions:g,tracingContext:setSpan(d.tracingContext||l.active(),h)});const b=Object.assign(Object.assign({},c),{tracingOptions:y});return{span:h,updatedOptions:b}}}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},24883:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(49808);var l=s(83134);var c=s(19011);var p=s(8076);var d=s(64732);var u=s(22037);var A=s(6113);var h=s(12781);s(31181);var g=s(92045);var y=s(82361);var b=s(57147);var C=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 v=_interopNamespace(a);var B=_interopNamespace(u);var w=_interopNamespace(b);var I=_interopNamespace(C);const S={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const Q={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const x={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 N={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 D={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 P={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 L={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 M={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 U={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 H={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 j={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const q={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const G={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 z={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 W={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 J={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 X={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 K={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 Z={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 ee={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const te={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 re={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 ie={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 ne={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 se={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 ae={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 oe={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 le={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const ce={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 pe={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 de={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const ue={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 Ae={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 me={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 he={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 ge={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={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 be={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 Ce={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 Se={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qe={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xe={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 Ne={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 De={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 Pe={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 Le={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Me={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 Ue={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 He={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const je={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={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 ze={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 We={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 Je={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xe={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 Ke={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 Ze={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const et={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 tt={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rt={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 it={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nt={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 st={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={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 lt={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 ht={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 ft={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gt={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 Et={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 bt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={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 vt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bt={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const It={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 St={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qt={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 xt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nt={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const Rt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={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 Dt={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const kt={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 Ot={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lt={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ft={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ut={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ht={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 jt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qt={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 Gt={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 Vt={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 Yt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 $t={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const er={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const rr={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ir={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sr={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const or={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 Er={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 br={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={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 vr={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Br={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ir={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 Sr={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={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 xr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={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 Dr={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kr={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const 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 Or={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hr={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 jr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qr={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 Gr={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:S,Logging:Q,RetentionPolicy:x,Metrics:N,CorsRule:R,StaticWebsite:T,StorageError:D,BlobServiceStatistics:_,GeoReplication:k,ListContainersSegmentResponse:P,ContainerItem:O,ContainerProperties:L,KeyInfo:M,UserDelegationKey:U,FilterBlobSegment:H,FilterBlobItem:j,BlobTags:q,BlobTag:G,SignedIdentifier:z,AccessPolicy:V,ListBlobsFlatSegmentResponse:W,BlobFlatListSegment:Y,BlobItemInternal:J,BlobName:X,BlobPropertiesInternal:K,ListBlobsHierarchySegmentResponse:$,BlobHierarchyListSegment:Z,BlobPrefix:ee,BlockLookupList:te,BlockList:re,Block:ie,PageList:ne,PageRange:se,ClearRange:ae,QueryRequest:oe,QuerySerialization:le,QueryFormat:ce,DelimitedTextConfiguration:pe,JsonTextConfiguration:de,ArrowConfiguration:ue,ArrowField:Ae,ServiceSetPropertiesHeaders:me,ServiceSetPropertiesExceptionHeaders:he,ServiceGetPropertiesHeaders:fe,ServiceGetPropertiesExceptionHeaders:ge,ServiceGetStatisticsHeaders:ye,ServiceGetStatisticsExceptionHeaders:Ee,ServiceListContainersSegmentHeaders:be,ServiceListContainersSegmentExceptionHeaders:Ce,ServiceGetUserDelegationKeyHeaders:ve,ServiceGetUserDelegationKeyExceptionHeaders:Be,ServiceGetAccountInfoHeaders:we,ServiceGetAccountInfoExceptionHeaders:Ie,ServiceSubmitBatchHeaders:Se,ServiceSubmitBatchExceptionHeaders:Qe,ServiceFilterBlobsHeaders:xe,ServiceFilterBlobsExceptionHeaders:Ne,ContainerCreateHeaders:Re,ContainerCreateExceptionHeaders:Te,ContainerGetPropertiesHeaders:De,ContainerGetPropertiesExceptionHeaders:_e,ContainerDeleteHeaders:ke,ContainerDeleteExceptionHeaders:Pe,ContainerSetMetadataHeaders:Oe,ContainerSetMetadataExceptionHeaders:Le,ContainerGetAccessPolicyHeaders:Me,ContainerGetAccessPolicyExceptionHeaders:Fe,ContainerSetAccessPolicyHeaders:Ue,ContainerSetAccessPolicyExceptionHeaders:He,ContainerRestoreHeaders:je,ContainerRestoreExceptionHeaders:qe,ContainerRenameHeaders:Ge,ContainerRenameExceptionHeaders:ze,ContainerSubmitBatchHeaders:Ve,ContainerSubmitBatchExceptionHeaders:We,ContainerFilterBlobsHeaders:Ye,ContainerFilterBlobsExceptionHeaders:Je,ContainerAcquireLeaseHeaders:Xe,ContainerAcquireLeaseExceptionHeaders:Ke,ContainerReleaseLeaseHeaders:$e,ContainerReleaseLeaseExceptionHeaders:Ze,ContainerRenewLeaseHeaders:et,ContainerRenewLeaseExceptionHeaders:tt,ContainerBreakLeaseHeaders:rt,ContainerBreakLeaseExceptionHeaders:it,ContainerChangeLeaseHeaders:nt,ContainerChangeLeaseExceptionHeaders:st,ContainerListBlobFlatSegmentHeaders:ot,ContainerListBlobFlatSegmentExceptionHeaders:lt,ContainerListBlobHierarchySegmentHeaders:ct,ContainerListBlobHierarchySegmentExceptionHeaders:pt,ContainerGetAccountInfoHeaders:dt,ContainerGetAccountInfoExceptionHeaders:ut,BlobDownloadHeaders:At,BlobDownloadExceptionHeaders:mt,BlobGetPropertiesHeaders:ht,BlobGetPropertiesExceptionHeaders:ft,BlobDeleteHeaders:gt,BlobDeleteExceptionHeaders:yt,BlobUndeleteHeaders:Et,BlobUndeleteExceptionHeaders:bt,BlobSetExpiryHeaders:Ct,BlobSetExpiryExceptionHeaders:vt,BlobSetHttpHeadersHeaders:Bt,BlobSetHttpHeadersExceptionHeaders:wt,BlobSetImmutabilityPolicyHeaders:It,BlobSetImmutabilityPolicyExceptionHeaders:St,BlobDeleteImmutabilityPolicyHeaders:Qt,BlobDeleteImmutabilityPolicyExceptionHeaders:xt,BlobSetLegalHoldHeaders:Nt,BlobSetLegalHoldExceptionHeaders:Rt,BlobSetMetadataHeaders:Tt,BlobSetMetadataExceptionHeaders:Dt,BlobAcquireLeaseHeaders:_t,BlobAcquireLeaseExceptionHeaders:kt,BlobReleaseLeaseHeaders:Pt,BlobReleaseLeaseExceptionHeaders:Ot,BlobRenewLeaseHeaders:Lt,BlobRenewLeaseExceptionHeaders:Mt,BlobChangeLeaseHeaders:Ft,BlobChangeLeaseExceptionHeaders:Ut,BlobBreakLeaseHeaders:Ht,BlobBreakLeaseExceptionHeaders:jt,BlobCreateSnapshotHeaders:qt,BlobCreateSnapshotExceptionHeaders:Gt,BlobStartCopyFromURLHeaders:zt,BlobStartCopyFromURLExceptionHeaders:Vt,BlobCopyFromURLHeaders:Wt,BlobCopyFromURLExceptionHeaders:Yt,BlobAbortCopyFromURLHeaders:Jt,BlobAbortCopyFromURLExceptionHeaders:Xt,BlobSetTierHeaders:Kt,BlobSetTierExceptionHeaders:$t,BlobGetAccountInfoHeaders:Zt,BlobGetAccountInfoExceptionHeaders:er,BlobQueryHeaders:tr,BlobQueryExceptionHeaders:rr,BlobGetTagsHeaders:ir,BlobGetTagsExceptionHeaders:nr,BlobSetTagsHeaders:sr,BlobSetTagsExceptionHeaders:ar,PageBlobCreateHeaders:or,PageBlobCreateExceptionHeaders:lr,PageBlobUploadPagesHeaders:cr,PageBlobUploadPagesExceptionHeaders:pr,PageBlobClearPagesHeaders:dr,PageBlobClearPagesExceptionHeaders:ur,PageBlobUploadPagesFromURLHeaders:Ar,PageBlobUploadPagesFromURLExceptionHeaders:mr,PageBlobGetPageRangesHeaders:hr,PageBlobGetPageRangesExceptionHeaders:fr,PageBlobGetPageRangesDiffHeaders:gr,PageBlobGetPageRangesDiffExceptionHeaders:yr,PageBlobResizeHeaders:Er,PageBlobResizeExceptionHeaders:br,PageBlobUpdateSequenceNumberHeaders:Cr,PageBlobUpdateSequenceNumberExceptionHeaders:vr,PageBlobCopyIncrementalHeaders:Br,PageBlobCopyIncrementalExceptionHeaders:wr,AppendBlobCreateHeaders:Ir,AppendBlobCreateExceptionHeaders:Sr,AppendBlobAppendBlockHeaders:Qr,AppendBlobAppendBlockExceptionHeaders:xr,AppendBlobAppendBlockFromUrlHeaders:Nr,AppendBlobAppendBlockFromUrlExceptionHeaders:Rr,AppendBlobSealHeaders:Tr,AppendBlobSealExceptionHeaders:Dr,BlockBlobUploadHeaders:_r,BlockBlobUploadExceptionHeaders:kr,BlockBlobPutBlobFromUrlHeaders:Pr,BlockBlobPutBlobFromUrlExceptionHeaders:Or,BlockBlobStageBlockHeaders:Lr,BlockBlobStageBlockExceptionHeaders:Mr,BlockBlobStageBlockFromURLHeaders:Fr,BlockBlobStageBlockFromURLExceptionHeaders:Ur,BlockBlobCommitBlockListHeaders:Hr,BlockBlobCommitBlockListExceptionHeaders:jr,BlockBlobGetBlockListHeaders:qr,BlockBlobGetBlockListExceptionHeaders:Gr});const Vr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Wr={parameterPath:"blobServiceProperties",mapper:S};const Yr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Jr={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Xr={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Kr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const $r={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Zr={parameterPath:"version",mapper:{defaultValue:"2024-05-04",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const ei={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const ti={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ri={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ii={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ni={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const si={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const ai={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const oi={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const li={parameterPath:"keyInfo",mapper:M};const ci={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const pi={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const di={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ui={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ai={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const mi={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const hi={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fi={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const gi={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const 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 Ei={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const bi={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Ci={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const vi={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Bi={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const wi={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Ii={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Si={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Qi={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const xi={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ni={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Ri={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const Ti={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Di={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const _i={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const ki={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pi={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Oi={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Li={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Mi={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Fi={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Ui={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Hi={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ji={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const qi={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Gi={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 Vi={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 Yi={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Ji={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Xi={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Ki={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const $i={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Zi={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const en={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const tn={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const rn={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const nn={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const sn={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const an={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const ln={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const cn={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const pn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const dn={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const un={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const An={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const mn={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const hn={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const gn={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 En={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const bn={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const Cn={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const vn={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Bn={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const wn={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const In={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 Sn={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const Qn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const xn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Nn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Rn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const Tn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Dn={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const _n={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const kn={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 On={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const Ln={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 Fn={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 Un={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Hn={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const jn={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const qn={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Gn={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:oe};const Vn={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 Yn={parameterPath:["options","tags"],mapper:q};const Jn={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Xn={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 $n={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Zn={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const es={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const ts={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const rs={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ns={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ss={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const as={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const os={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const ls={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const cs={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ps={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const ds={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const us={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const As={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const ms={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 fs={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const gs={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 Es={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const bs={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Cs={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const vs={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Bs={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const ws={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Is={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Ss={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const Qs={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xs={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Ns={parameterPath:"blocks",mapper:te};const Rs={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ts={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:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,_s)}getProperties(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ks)}getStatistics(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ps)}listContainersSegment(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Os)}getUserDelegationKey(r,i){const s={keyInfo:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ls)}getAccountInfo(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ms)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:v.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Fs)}filterBlobs(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Us)}}const Ds=new v.Serializer(zr,true);const _s={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:me},default:{bodyMapper:D,headersMapper:he}},requestBody:Wr,queryParameters:[Xr,Kr,$r],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ds};const ks={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:S,headersMapper:fe},default:{bodyMapper:D,headersMapper:ge}},queryParameters:[Xr,Kr,$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ds};const Ps={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:_,headersMapper:ye},default:{bodyMapper:D,headersMapper:Ee}},queryParameters:[Xr,$r,ri],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ds};const Os={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:P,headersMapper:be},default:{bodyMapper:D,headersMapper:Ce}},queryParameters:[$r,ii,ni,si,ai,oi],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ds};const Ls={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:U,headersMapper:ve},default:{bodyMapper:D,headersMapper:Be}},requestBody:li,queryParameters:[Xr,$r,ci],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ds};const Ms={path:"/",httpMethod:"GET",responses:{200:{headersMapper:we},default:{bodyMapper:D,headersMapper:Ie}},queryParameters:[Kr,pi],urlParameters:[Jr],headerParameters:[Zr,ti],isXML:true,serializer:Ds};const Fs={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Se},default:{bodyMapper:D,headersMapper:Qe}},requestBody:di,queryParameters:[$r,ui],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei,Ai,mi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ds};const Us={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:H,headersMapper:xe},default:{bodyMapper:D,headersMapper:Ne}},queryParameters:[$r,si,ai,hi,fi],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ds};class Container{constructor(r){this.client=r}create(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,js)}getProperties(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,qs)}delete(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Gs)}setMetadata(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,zs)}getAccessPolicy(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Vs)}setAccessPolicy(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ws)}restore(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ys)}rename(r,i){const s={sourceContainerName:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Js)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:v.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Xs)}filterBlobs(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ks)}acquireLease(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,$s)}releaseLease(r,i){const s={leaseId:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Zs)}renewLease(r,i){const s={leaseId:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ea)}breakLease(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ta)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,ra)}listBlobFlatSegment(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ia)}listBlobHierarchySegment(r,i){const s={delimiter:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,na)}getAccountInfo(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,sa)}}const Hs=new v.Serializer(zr,true);const js={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Re},default:{bodyMapper:D,headersMapper:Te}},queryParameters:[$r,gi],urlParameters:[Jr],headerParameters:[Zr,ei,ti,yi,Ei,bi,Ci],isXML:true,serializer:Hs};const qs={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:De},default:{bodyMapper:D,headersMapper:_e}},queryParameters:[$r,gi],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi],isXML:true,serializer:Hs};const Gs={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:ke},default:{bodyMapper:D,headersMapper:Pe}},queryParameters:[$r,gi],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi],isXML:true,serializer:Hs};const zs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Oe},default:{bodyMapper:D,headersMapper:Le}},queryParameters:[$r,gi,Ii],urlParameters:[Jr],headerParameters:[Zr,ei,ti,yi,vi,Bi],isXML:true,serializer:Hs};const Vs={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:Me},default:{bodyMapper:D,headersMapper:Fe}},queryParameters:[$r,gi,Si],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi],isXML:true,serializer:Hs};const Ws={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ue},default:{bodyMapper:D,headersMapper:He}},requestBody:Qi,queryParameters:[$r,gi,Si],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei,Ei,vi,Bi,wi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Hs};const Ys={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:je},default:{bodyMapper:D,headersMapper:qe}},queryParameters:[$r,gi,xi],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ni,Ri],isXML:true,serializer:Hs};const Js={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ge},default:{bodyMapper:D,headersMapper:ze}},queryParameters:[$r,gi,Ti],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Di,_i],isXML:true,serializer:Hs};const Xs={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Ve},default:{bodyMapper:D,headersMapper:We}},requestBody:di,queryParameters:[$r,ui,gi],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei,Ai,mi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Hs};const Ks={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:H,headersMapper:Ye},default:{bodyMapper:D,headersMapper:Je}},queryParameters:[$r,si,ai,hi,fi,gi],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Hs};const $s={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Xe},default:{bodyMapper:D,headersMapper:Ke}},queryParameters:[$r,gi,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Pi,Oi,Li],isXML:true,serializer:Hs};const Zs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:$e},default:{bodyMapper:D,headersMapper:Ze}},queryParameters:[$r,gi,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Mi,Fi],isXML:true,serializer:Hs};const ea={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:et},default:{bodyMapper:D,headersMapper:tt}},queryParameters:[$r,gi,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Fi,Ui],isXML:true,serializer:Hs};const ta={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:rt},default:{bodyMapper:D,headersMapper:it}},queryParameters:[$r,gi,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Hi,ji],isXML:true,serializer:Hs};const ra={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:nt},default:{bodyMapper:D,headersMapper:st}},queryParameters:[$r,gi,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Fi,qi,Gi],isXML:true,serializer:Hs};const ia={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:W,headersMapper:ot},default:{bodyMapper:D,headersMapper:lt}},queryParameters:[$r,ii,ni,si,ai,gi,zi],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Hs};const na={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:$,headersMapper:ct},default:{bodyMapper:D,headersMapper:pt}},queryParameters:[$r,ii,ni,si,ai,gi,zi,Vi],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Hs};const sa={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:dt},default:{bodyMapper:D,headersMapper:ut}},queryParameters:[Kr,pi],urlParameters:[Jr],headerParameters:[Zr,ti],isXML:true,serializer:Hs};class Blob$1{constructor(r){this.client=r}download(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,oa)}getProperties(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,la)}delete(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ca)}undelete(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,pa)}setExpiry(r,i){const s={expiryOptions:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,da)}setHttpHeaders(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ua)}setImmutabilityPolicy(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Aa)}deleteImmutabilityPolicy(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ma)}setLegalHold(r,i){const s={legalHold:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ha)}setMetadata(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,fa)}acquireLease(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ga)}releaseLease(r,i){const s={leaseId:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ya)}renewLease(r,i){const s={leaseId:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ea)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,ba)}breakLease(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ca)}createSnapshot(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,va)}startCopyFromURL(r,i){const s={copySource:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ba)}copyFromURL(r,i){const s={copySource:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,wa)}abortCopyFromURL(r,i){const s={copyId:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ia)}setTier(r,i){const s={tier:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Sa)}getAccountInfo(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Qa)}query(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,xa)}getTags(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Na)}setTags(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ra)}}const aa=new v.Serializer(zr,true);const oa={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:D,headersMapper:mt}},queryParameters:[$r,Wi,Yi],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,Ji,Xi,Ki,$i,Zi,en,tn,rn,nn],isXML:true,serializer:aa};const la={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ht},default:{bodyMapper:D,headersMapper:ft}},queryParameters:[$r,Wi,Yi],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,$i,Zi,en,tn,rn,nn],isXML:true,serializer:aa};const ca={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:gt},default:{bodyMapper:D,headersMapper:yt}},queryParameters:[$r,Wi,Yi,an],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,tn,rn,nn,sn],isXML:true,serializer:aa};const pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Et},default:{bodyMapper:D,headersMapper:bt}},queryParameters:[$r,xi],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:aa};const da={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ct},default:{bodyMapper:D,headersMapper:vt}},queryParameters:[$r,ln],urlParameters:[Jr],headerParameters:[Zr,ei,ti,cn,pn],isXML:true,serializer:aa};const ua={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Bt},default:{bodyMapper:D,headersMapper:wt}},queryParameters:[Kr,$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,tn,rn,nn,dn,un,An,mn,hn,gn],isXML:true,serializer:aa};const Aa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:It},default:{bodyMapper:D,headersMapper:St}},queryParameters:[$r,yn],urlParameters:[Jr],headerParameters:[Zr,ei,ti,wi,En,bn],isXML:true,serializer:aa};const ma={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:Qt},default:{bodyMapper:D,headersMapper:xt}},queryParameters:[$r,yn],urlParameters:[Jr],headerParameters:[Zr,ei,ti],isXML:true,serializer:aa};const ha={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Nt},default:{bodyMapper:D,headersMapper:Rt}},queryParameters:[$r,Cn],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vn],isXML:true,serializer:aa};const fa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tt},default:{bodyMapper:D,headersMapper:Dt}},queryParameters:[$r,Ii],urlParameters:[Jr],headerParameters:[Zr,ei,ti,yi,vi,Bi,wi,$i,Zi,en,tn,rn,nn,Bn],isXML:true,serializer:aa};const ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_t},default:{bodyMapper:D,headersMapper:kt}},queryParameters:[$r,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Pi,Oi,Li,tn,rn,nn],isXML:true,serializer:aa};const ya={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Pt},default:{bodyMapper:D,headersMapper:Ot}},queryParameters:[$r,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Mi,Fi,tn,rn,nn],isXML:true,serializer:aa};const Ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lt},default:{bodyMapper:D,headersMapper:Mt}},queryParameters:[$r,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Fi,Ui,tn,rn,nn],isXML:true,serializer:aa};const ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ft},default:{bodyMapper:D,headersMapper:Ut}},queryParameters:[$r,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Fi,qi,Gi,tn,rn,nn],isXML:true,serializer:aa};const Ca={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ht},default:{bodyMapper:D,headersMapper:jt}},queryParameters:[$r,ki],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,Hi,ji,tn,rn,nn],isXML:true,serializer:aa};const va={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qt},default:{bodyMapper:D,headersMapper:Gt}},queryParameters:[$r,wn],urlParameters:[Jr],headerParameters:[Zr,ei,ti,yi,vi,Bi,wi,$i,Zi,en,tn,rn,nn,Bn],isXML:true,serializer:aa};const Ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:zt},default:{bodyMapper:D,headersMapper:Vt}},queryParameters:[$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,yi,vi,Bi,wi,tn,rn,nn,En,bn,In,Sn,Qn,xn,Nn,Rn,Tn,Dn,_n,kn,Pn],isXML:true,serializer:aa};const wa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Wt},default:{bodyMapper:D,headersMapper:Yt}},queryParameters:[$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,yi,vi,Bi,wi,tn,rn,nn,En,bn,Bn,In,Qn,xn,Nn,Rn,Dn,_n,Pn,On,Ln,Mn,Fn],isXML:true,serializer:aa};const Ia={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Jt},default:{bodyMapper:D,headersMapper:Xt}},queryParameters:[$r,Un,jn],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Hn],isXML:true,serializer:aa};const Sa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Kt},202:{headersMapper:Kt},default:{bodyMapper:D,headersMapper:$t}},queryParameters:[$r,Wi,Yi,qn],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,nn,Sn,Gn],isXML:true,serializer:aa};const Qa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Zt},default:{bodyMapper:D,headersMapper:er}},queryParameters:[Kr,pi],urlParameters:[Jr],headerParameters:[Zr,ti],isXML:true,serializer:aa};const xa={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:tr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:tr},default:{bodyMapper:D,headersMapper:rr}},requestBody:zn,queryParameters:[$r,Wi,Vn],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei,vi,Bi,wi,$i,Zi,en,tn,rn,nn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:aa};const Na={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:q,headersMapper:ir},default:{bodyMapper:D,headersMapper:nr}},queryParameters:[$r,Wi,Yi,Wn],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,nn],isXML:true,serializer:aa};const Ra={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:sr},default:{bodyMapper:D,headersMapper:ar}},requestBody:Yn,queryParameters:[$r,Yi,Wn],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei,vi,nn,Jn,Xn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:aa};class PageBlob{constructor(r){this.client=r}create(r,i,s){const a={contentLength:r,blobContentLength:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,_a)}uploadPages(r,i,s){const a={contentLength:r,body:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,ka)}clearPages(r,i){const s={contentLength:r,options:v.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:v.operationOptionsToRequestOptionsBase(l||{})};return this.client.sendOperationRequest(c,Oa)}getPageRanges(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,La)}getPageRangesDiff(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ma)}resize(r,i){const s={blobContentLength:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Fa)}updateSequenceNumber(r,i){const s={sequenceNumberAction:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ua)}copyIncremental(r,i){const s={copySource:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ha)}}const Ta=new v.Serializer(zr,true);const Da=new v.Serializer(zr,false);const _a={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:or},default:{bodyMapper:D,headersMapper:lr}},queryParameters:[$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ai,yi,vi,Bi,wi,$i,Zi,en,tn,rn,nn,dn,un,An,mn,hn,gn,En,bn,Bn,In,_n,Pn,Kn,$n,Zn],isXML:true,serializer:Ta};const ka={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cr},default:{bodyMapper:D,headersMapper:pr}},requestBody:ts,queryParameters:[$r,ns],urlParameters:[Jr],headerParameters:[Zr,ei,Ai,vi,Bi,wi,Ji,$i,Zi,en,tn,rn,nn,Bn,Jn,Xn,es,rs,ss,as,os,ls],mediaType:"binary",serializer:Da};const Pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:dr},default:{bodyMapper:D,headersMapper:ur}},queryParameters:[$r,ns],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ai,vi,Bi,wi,Ji,$i,Zi,en,tn,rn,nn,Bn,as,os,ls,cs],isXML:true,serializer:Ta};const Oa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ar},default:{bodyMapper:D,headersMapper:mr}},queryParameters:[$r,ns],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ai,vi,Bi,wi,$i,Zi,en,tn,rn,nn,Bn,Qn,xn,Nn,Rn,Ln,Mn,ss,as,os,ls,ps,ds,us,As],isXML:true,serializer:Ta};const La={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ne,headersMapper:hr},default:{bodyMapper:D,headersMapper:fr}},queryParameters:[$r,si,ai,Wi,ms],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,Ji,tn,rn,nn],isXML:true,serializer:Ta};const Ma={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ne,headersMapper:gr},default:{bodyMapper:D,headersMapper:yr}},queryParameters:[$r,si,ai,Wi,ms,hs],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,Ji,tn,rn,nn,fs],isXML:true,serializer:Ta};const Fa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Er},default:{bodyMapper:D,headersMapper:br}},queryParameters:[Kr,$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,$i,Zi,en,tn,rn,nn,Bn,$n],isXML:true,serializer:Ta};const Ua={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Cr},default:{bodyMapper:D,headersMapper:vr}},queryParameters:[Kr,$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,tn,rn,nn,Zn,gs],isXML:true,serializer:Ta};const Ha={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Br},default:{bodyMapper:D,headersMapper:wr}},queryParameters:[$r,ys],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Bi,wi,tn,rn,nn,Dn],isXML:true,serializer:Ta};class AppendBlob{constructor(r){this.client=r}create(r,i){const s={contentLength:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ga)}appendBlock(r,i,s){const a={contentLength:r,body:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,za)}appendBlockFromUrl(r,i,s){const a={sourceUrl:r,contentLength:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Va)}seal(r){const i={options:v.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Wa)}}const ja=new v.Serializer(zr,true);const qa=new v.Serializer(zr,false);const Ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ir},default:{bodyMapper:D,headersMapper:Sr}},queryParameters:[$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ai,yi,vi,Bi,wi,$i,Zi,en,tn,rn,nn,dn,un,An,mn,hn,gn,En,bn,Bn,_n,Pn,Es],isXML:true,serializer:ja};const za={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Qr},default:{bodyMapper:D,headersMapper:xr}},requestBody:ts,queryParameters:[$r,bs],urlParameters:[Jr],headerParameters:[Zr,ei,Ai,vi,Bi,wi,$i,Zi,en,tn,rn,nn,Bn,Jn,Xn,es,rs,Cs,vs],mediaType:"binary",serializer:qa};const Va={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Nr},default:{bodyMapper:D,headersMapper:Rr}},queryParameters:[$r,bs],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ai,vi,Bi,wi,$i,Zi,en,tn,rn,nn,Bn,Qn,xn,Nn,Rn,Ln,Mn,Jn,ps,us,Cs,vs,Bs],isXML:true,serializer:ja};const Wa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tr},default:{bodyMapper:D,headersMapper:Dr}},queryParameters:[$r,ws],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,Bi,wi,tn,rn,vs],isXML:true,serializer:ja};class BlockBlob{constructor(r){this.client=r}upload(r,i,s){const a={contentLength:r,body:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Xa)}putBlobFromUrl(r,i,s){const a={contentLength:r,copySource:i,options:v.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ka)}stageBlock(r,i,s,a){const l={blockId:r,contentLength:i,body:s,options:v.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,$a)}stageBlockFromURL(r,i,s,a){const l={blockId:r,contentLength:i,sourceUrl:s,options:v.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Za)}commitBlockList(r,i){const s={blocks:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,eo)}getBlockList(r,i){const s={listType:r,options:v.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,to)}}const Ya=new v.Serializer(zr,true);const Ja=new v.Serializer(zr,false);const Xa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_r},default:{bodyMapper:D,headersMapper:kr}},requestBody:ts,queryParameters:[$r],urlParameters:[Jr],headerParameters:[Zr,ei,Ai,yi,vi,Bi,wi,$i,Zi,en,tn,rn,nn,dn,un,An,mn,hn,gn,En,bn,Bn,In,_n,Pn,Jn,Xn,es,rs,Is],mediaType:"binary",serializer:Ja};const Ka={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:D,headersMapper:Or}},queryParameters:[$r],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ai,yi,vi,Bi,wi,$i,Zi,en,tn,rn,nn,dn,un,An,mn,hn,gn,Bn,In,Qn,xn,Nn,Rn,Tn,Dn,_n,Ln,Mn,Fn,Jn,Is,Ss],isXML:true,serializer:Ya};const $a={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Lr},default:{bodyMapper:D,headersMapper:Mr}},requestBody:ts,queryParameters:[$r,Qs,xs],urlParameters:[Jr],headerParameters:[Zr,ei,Ai,vi,$i,Zi,en,Bn,Jn,Xn,es,rs],mediaType:"binary",serializer:Ja};const Za={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fr},default:{bodyMapper:D,headersMapper:Ur}},queryParameters:[$r,Qs,xs],urlParameters:[Jr],headerParameters:[Zr,ei,ti,Ai,vi,$i,Zi,en,Bn,Qn,xn,Nn,Rn,Ln,Mn,ps,us,Bs],isXML:true,serializer:Ya};const eo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Hr},default:{bodyMapper:D,headersMapper:jr}},requestBody:Ns,queryParameters:[$r,Rs],urlParameters:[Jr],headerParameters:[Vr,Yr,Zr,ei,yi,vi,Bi,wi,$i,Zi,en,tn,rn,nn,dn,un,An,mn,hn,gn,En,bn,Bn,In,_n,Pn,Jn,Xn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ya};const to={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:re,headersMapper:qr},default:{bodyMapper:D,headersMapper:Gr}},queryParameters:[$r,Wi,Rs,Ts],urlParameters:[Jr],headerParameters:[Zr,ei,ti,vi,nn],isXML:true,serializer:Ya};const ro=p.createClientLogger("storage-blob");const io="12.18.0";const no="2024-05-04";const so=256*1024*1024;const ao=4e3*1024*1024;const oo=5e4;const lo=8*1024*1024;const co=4*1024*1024;const po=5;const uo=100*1e3;const Ao="https://storage.azure.com/.default";const mo={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 fo={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 go="";const yo="*";const Eo=1*1024*1024;const bo=256;const Co=4*Eo;const vo="\r\n";const Bo="HTTP/1.1";const wo="AES256";const Io=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const So=["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 Qo=["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 xo="BlobUsesCustomerSpecifiedEncryption";const No="BlobDoesNotUseCustomerSpecifiedEncryption";const Ro=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const i=a.URLBuilder.parse(r);let s=i.getPath();s=s||"/";s=escape(s);i.setPath(s);return i.toString()}function getProxyUriFromDevConnString(r){let i="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){i=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return i}function getValueInConnString(r,i){const s=r.split(";");for(const r of s){if(r.trim().startsWith(i)){return r.trim().match(i+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let i="";if(r.startsWith("UseDevelopmentStorage=true")){i=getProxyUriFromDevConnString(r);r=Io}let s=getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let c=Buffer.from("accountKey","base64");let p="";l=getValueInConnString(r,"AccountName");c=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!s){a=getValueInConnString(r,"DefaultEndpointsProtocol");const i=a.toLowerCase();if(i!=="https"&&i!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(r,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${p}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(c.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:c,proxyUri:i}}else{const i=getValueInConnString(r,"SharedAccessSignature");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&&Ro.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):To.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:To.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:To.maxRetryDelayInMs):To.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:To.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:To.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,mo.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let c;try{ro.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){ro.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){ro.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){ro.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){ro.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(i===503||i===500){ro.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`))){ro.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}ro.info(`RetryPolicy: Delay for ${l}ms`);return delay(l,a,Do)}}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(fo.USER_AGENT)){r.headers.set(fo.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/${io}`;if(i.indexOf(s)===-1){i.push(s)}let a=`(NODE-VERSION ${process.version})`;if(B){a=`(NODE-VERSION ${process.version}; ${B.type()} ${B.release()})`}if(i.indexOf(a)===-1){i.push(a)}}this.telemetryString=i.join(" ")}create(r,i){return new TelemetryPolicy(r,i,this.telemetryString)}}const _o=new a.DefaultHttpClient;function getCachedDefaultHttpClient(){return _o}const ko={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(ko.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+ko.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(ko.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:ro.info,allowedHeaderNames:So,allowedQueryParameters:Qo})];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:Ao),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(fo.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(fo.CONTENT_LENGTH,Buffer.byteLength(r.body))}const i=[r.method.toUpperCase(),this.getHeaderValueToSign(r,fo.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,fo.CONTENT_ENCODING),this.getHeaderValueToSign(r,fo.CONTENT_LENGTH),this.getHeaderValueToSign(r,fo.CONTENT_MD5),this.getHeaderValueToSign(r,fo.CONTENT_TYPE),this.getHeaderValueToSign(r,fo.DATE),this.getHeaderValueToSign(r,fo.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,fo.IF_MATCH),this.getHeaderValueToSign(r,fo.IF_NONE_MATCH),this.getHeaderValueToSign(r,fo.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,fo.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const s=this.factory.computeHMACSHA256(i);r.headers.set(fo.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`);return r}getHeaderValueToSign(r,i){const s=r.headers.get(i);if(!s){return""}if(i===fo.CONTENT_LENGTH&&s==="0"){return""}return s}getCanonicalizedHeadersString(r){let i=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(fo.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 Oo="azure-storage-blob";const Lo="12.18.0";class StorageClientContext extends v.ServiceClient{constructor(r,i){if(r===undefined){throw new Error("'url' cannot be null")}if(!i){i={}}if(!i.userAgent){const r=v.getDefaultUserAgentValue();i.userAgent=`${Oo}/${Lo} ${r}`}super(undefined,i);this.requestContentType="application/json; charset=utf-8";this.baseUri=i.endpoint||"{url}";this.url=r;this.version=i.version||"2024-05-04"}}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,y,b,C,v,B,w,I,S){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=S;this.identifier=A;this.resource=h;this.cacheControl=g;this.contentDisposition=y;this.contentEncoding=b;this.contentLanguage=C;this.contentType=v;if(B){this.signedOid=B.signedObjectId;this.signedTenantId=B.signedTenantId;this.signedStartsOn=B.signedStartsOn;this.signedExpiresOn=B.signedExpiresOn;this.signedService=B.signedService;this.signedVersion=B.signedVersion;this.preauthorizedAgentObjectId=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:no;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:no;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)!==go||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==go||((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)!==go||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==go||((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)!==go||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==go||((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)!==go||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==go||((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)!==go||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==go||((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 Fo=16;const Uo=new Uint8Array([79,98,106,1]);const Ho="avro.codec";const jo="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 qo;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(qo||(qo={}));var Go;(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"})(Go||(Go={}));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 Go.NULL:case Go.BOOLEAN:case Go.INT:case Go.LONG:case Go.FLOAT:case Go.DOUBLE:case Go.BYTES:case Go.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const i=r.type;try{return AvroType.fromStringSchema(i)}catch(r){}switch(i){case qo.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const 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 qo.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case qo.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case qo.ARRAY:case qo.FIXED:default:throw new Error(`Unexpected Avro type ${i} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,i={}){switch(this._primitive){case Go.NULL:return AvroParser.readNull();case Go.BOOLEAN:return AvroParser.readBoolean(r,i);case Go.INT:return AvroParser.readInt(r,i);case Go.LONG:return AvroParser.readLong(r,i);case Go.FLOAT:return AvroParser.readFloat(r,i);case Go.DOUBLE:return AvroParser.readDouble(r,i);case Go.BYTES:return AvroParser.readBytes(r,i);case Go.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,Fo,{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=wo}}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 Vo=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 Yo=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:Vo,toString:Yo,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 Jo;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})(Jo||(Jo={}));class Batch{constructor(r=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=Jo.Good;if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new y.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=Jo.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 Xo=s(14300).constants.MAX_LENGTH;class PooledBuffer{constructor(r,i,s){this.buffers=[];this.capacity=r;this._size=0;const a=Math.ceil(r/Xo);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 y.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(i<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${i}`)}if(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.`))),uo);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 $o=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,mo.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,mo.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(r){return new BlobClient(setURLParameter(this.url,mo.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(setURLParameter(this.url,mo.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=po}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===xo||r.details.errorCode===No)){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=co}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,mo.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,mo.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>ao){throw new RangeError(`blockSize option must be >= 0 and <= ${ao}`)}if(s.maxSingleShotSize!==0&&!s.maxSingleShotSize){s.maxSingleShotSize=so}if(s.maxSingleShotSize<0||s.maxSingleShotSize>so){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${so}`)}if(s.blockSize===0){if(i>ao*oo){throw new RangeError(`${i} is too larger to upload to a block blob.`)}if(i>s.maxSingleShotSize){s.blockSize=Math.ceil(i/oo);if(s.blockSizeoo){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${oo}`)}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 y=g-h;c.push(A);await this.stageBlock(A,r(h,y),y,{abortSignal:s.abortSignal,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:p.tracingOptions});u+=y;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)=>()=>$o(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=lo,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,mo.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(Co);const s=await streamToBuffer2(r.readableStreamBody,i);i=i.slice(0,s);return i.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const Zo=": ";const el=" ";const tl=-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}${vo}`;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&&y{if(this.keys[r]===undefined||this.keys[r]===rl.UNLOCKED){this.keys[r]=rl.LOCKED;i()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=rl.LOCKED;i()}))}}))}static async unlock(r){return new Promise((i=>{if(this.keys[r]===rl.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}${vo}${fo.CONTENT_TYPE}: application/http${vo}${fo.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,Ao),r):r}l[s-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(l,{})}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${fo.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${getURLPathAndQuery(r.url)} ${Bo}${vo}`].join(vo);for(const i of r.headers.headersArray()){this.body+=`${i.name}: ${i.value}${vo}`}this.body+=vo}preAddSubRequest(r){if(this.operationCount>=bo){throw new RangeError(`Cannot exceed ${bo} 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}${vo}`}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,fo.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:no;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=Ao;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=ro;i.newPipeline=newPipeline},24758:(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},32205:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(25592);var l=s(73990);var c=s(86392);var p=s(38033);var d=s(24758);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},24860:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(37352);var l=s(25592);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},38033:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(86392);var l=s(25592);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},23785:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const s="2.21.3";function ownKeys(r,i){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);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}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","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/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/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","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}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","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}/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/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/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","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/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","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}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","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 /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/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},55675:(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},23492:(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(29541));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},77803:(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(20064);var l=_interopDefault(s(39472));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},86392:(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(24860);var l=s(25592);var c=s(37352);var p=_interopDefault(s(88761));var d=s(77803);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},37585:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ContextAPI=void 0;const a=s(6684);const l=s(53864);const c=s(19174);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},19174:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagAPI=void 0;const a=s(4011);const l=s(84996);const c=s(69963);const p=s(53864);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},2603:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MetricsAPI=void 0;const a=s(66684);const l=s(53864);const c=s(19174);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},19440:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PropagationAPI=void 0;const a=s(53864);const l=s(70525);const c=s(95809);const p=s(61360);const d=s(94566);const u=s(19174);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},99317:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceAPI=void 0;const a=s(53864);const l=s(64619);const c=s(82414);const p=s(67943);const d=s(19174);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},61360:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.deleteBaggage=i.setBaggage=i.getActiveBaggage=i.getBaggage=void 0;const a=s(37585);const l=s(55610);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},33890:(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},83934:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataSymbol=void 0;i.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},94566:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.baggageEntryMetadataFromString=i.createBaggage=void 0;const a=s(19174);const l=s(33890);const c=s(83934);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},10133:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.context=void 0;const a=s(37585);i.context=a.ContextAPI.getInstance()},6684:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopContextManager=void 0;const a=s(55610);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},55610:(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},64065:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.diag=void 0;const a=s(19174);i.diag=a.DiagAPI.instance()},4011:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.DiagComponentLogger=void 0;const a=s(53864);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)}},69421:(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(69963);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},69963:(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={}))},24319:(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(94566);Object.defineProperty(i,"baggageEntryMetadataFromString",{enumerable:true,get:function(){return a.baggageEntryMetadataFromString}});var l=s(55610);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(69421);Object.defineProperty(i,"DiagConsoleLogger",{enumerable:true,get:function(){return c.DiagConsoleLogger}});var p=s(69963);Object.defineProperty(i,"DiagLogLevel",{enumerable:true,get:function(){return p.DiagLogLevel}});var d=s(65158);Object.defineProperty(i,"createNoopMeter",{enumerable:true,get:function(){return d.createNoopMeter}});var u=s(22343);Object.defineProperty(i,"ValueType",{enumerable:true,get:function(){return u.ValueType}});var A=s(95809);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(23362);Object.defineProperty(i,"ProxyTracer",{enumerable:true,get:function(){return h.ProxyTracer}});var g=s(64619);Object.defineProperty(i,"ProxyTracerProvider",{enumerable:true,get:function(){return g.ProxyTracerProvider}});var y=s(64409);Object.defineProperty(i,"SamplingDecision",{enumerable:true,get:function(){return y.SamplingDecision}});var b=s(61127);Object.defineProperty(i,"SpanKind",{enumerable:true,get:function(){return b.SpanKind}});var C=s(32587);Object.defineProperty(i,"SpanStatusCode",{enumerable:true,get:function(){return C.SpanStatusCode}});var v=s(96836);Object.defineProperty(i,"TraceFlags",{enumerable:true,get:function(){return v.TraceFlags}});var B=s(1635);Object.defineProperty(i,"createTraceState",{enumerable:true,get:function(){return B.createTraceState}});var w=s(82414);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(79421);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 S=s(10133);Object.defineProperty(i,"context",{enumerable:true,get:function(){return S.context}});const Q=s(64065);Object.defineProperty(i,"diag",{enumerable:true,get:function(){return Q.diag}});const x=s(36709);Object.defineProperty(i,"metrics",{enumerable:true,get:function(){return x.metrics}});const N=s(40991);Object.defineProperty(i,"propagation",{enumerable:true,get:function(){return N.propagation}});const R=s(13967);Object.defineProperty(i,"trace",{enumerable:true,get:function(){return R.trace}});i["default"]={context:S.context,diag:Q.diag,metrics:x.metrics,propagation:N.propagation,trace:R.trace}},53864:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.unregisterGlobal=i.getGlobal=i.registerGlobal=void 0;const a=s(1288);const l=s(40696);const c=s(22362);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},22362:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isCompatible=i._makeCompatibilityCheck=void 0;const a=s(40696);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)},36709:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.metrics=void 0;const a=s(2603);i.metrics=a.MetricsAPI.getInstance()},22343:(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={}))},65158:(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},66684:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NOOP_METER_PROVIDER=i.NoopMeterProvider=void 0;const a=s(65158);class NoopMeterProvider{getMeter(r,i,s){return a.NOOP_METER}}i.NoopMeterProvider=NoopMeterProvider;i.NOOP_METER_PROVIDER=new NoopMeterProvider},1288: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(67577),i)},17572:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i._globalThis=void 0;i._globalThis=typeof globalThis==="object"?globalThis:global},67577: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(17572),i)},40991:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.propagation=void 0;const a=s(19440);i.propagation=a.PropagationAPI.getInstance()},70525:(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},95809:(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}}},13967:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.trace=void 0;const a=s(99317);i.trace=a.TraceAPI.getInstance()},61002:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NonRecordingSpan=void 0;const a=s(79421);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},80589:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracer=void 0;const a=s(37585);const l=s(67943);const c=s(61002);const p=s(82414);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"}},88478:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.NoopTracerProvider=void 0;const a=s(80589);class NoopTracerProvider{getTracer(r,i,s){return new a.NoopTracer}}i.NoopTracerProvider=NoopTracerProvider},23362:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracer=void 0;const a=s(80589);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},64619:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ProxyTracerProvider=void 0;const a=s(23362);const l=s(88478);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},64409:(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={}))},67943:(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(55610);const l=s(61002);const c=s(37585);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},16834:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.TraceStateImpl=void 0;const a=s(29270);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},29270:(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},1635:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createTraceState=void 0;const a=s(16834);function createTraceState(r){return new a.TraceStateImpl(r)}i.createTraceState=createTraceState},79421:(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(96836);i.INVALID_SPANID="0000000000000000";i.INVALID_TRACEID="00000000000000000000000000000000";i.INVALID_SPAN_CONTEXT={traceId:i.INVALID_TRACEID,spanId:i.INVALID_SPANID,traceFlags:a.TraceFlags.NONE}},61127:(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={}))},82414:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.wrapSpanContext=i.isSpanContextValid=i.isValidSpanId=i.isValidTraceId=void 0;const a=s(79421);const l=s(61002);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},32587:(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={}))},96836:(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={}))},40696:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.VERSION=void 0;i.VERSION="1.8.0"},61881: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},43963:(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},65562: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},74115:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(52360);Object.defineProperty(i,"ServiceType",{enumerable:true,get:function(){return a.ServiceType}});var l=s(11743);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(206);Object.defineProperty(i,"RpcError",{enumerable:true,get:function(){return c.RpcError}});var p=s(21613);Object.defineProperty(i,"mergeRpcOptions",{enumerable:true,get:function(){return p.mergeRpcOptions}});var d=s(29713);Object.defineProperty(i,"RpcOutputStreamController",{enumerable:true,get:function(){return d.RpcOutputStreamController}});var u=s(69798);Object.defineProperty(i,"TestTransport",{enumerable:true,get:function(){return u.TestTransport}});var A=s(43963);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(65562);Object.defineProperty(i,"DuplexStreamingCall",{enumerable:true,get:function(){return h.DuplexStreamingCall}});var g=s(61881);Object.defineProperty(i,"ClientStreamingCall",{enumerable:true,get:function(){return g.ClientStreamingCall}});var y=s(47146);Object.defineProperty(i,"ServerStreamingCall",{enumerable:true,get:function(){return y.ServerStreamingCall}});var b=s(88972);Object.defineProperty(i,"UnaryCall",{enumerable:true,get:function(){return b.UnaryCall}});var C=s(32989);Object.defineProperty(i,"stackIntercept",{enumerable:true,get:function(){return C.stackIntercept}});Object.defineProperty(i,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return C.stackDuplexStreamingInterceptors}});Object.defineProperty(i,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return C.stackClientStreamingInterceptors}});Object.defineProperty(i,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return C.stackServerStreamingInterceptors}});Object.defineProperty(i,"stackUnaryInterceptors",{enumerable:true,get:function(){return C.stackUnaryInterceptors}});var v=s(75504);Object.defineProperty(i,"ServerCallContextController",{enumerable:true,get:function(){return v.ServerCallContextController}})},11743:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.readServiceOption=i.readMethodOption=i.readMethodOptions=i.normalizeMethodInfo=void 0;const a=s(69948);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},206:(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},32989:(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(69948);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},21613:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.mergeRpcOptions=void 0;const a=s(69948);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}}},29713:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.RpcOutputStreamController=void 0;const a=s(43963);const l=s(69948);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},75504:(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},47146: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},52360:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ServiceType=void 0;const a=s(11743);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},69798: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(206);const c=s(69948);const p=s(29713);const d=s(21613);const u=s(88972);const A=s(47146);const h=s(61881);const g=s(65562);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))}}},88972: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},28453:(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},80363:(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={}))},23739:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryReader=i.binaryReadOptions=void 0;const a=s(80363);const l=s(63090);const c=s(65435);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},47283:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BinaryWriter=i.binaryWriteOptions=void 0;const a=s(63090);const l=s(65435);const c=s(28453);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},63830:(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},65435:(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},69948:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(52320);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(92081);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(12091);Object.defineProperty(i,"utf8read",{enumerable:true,get:function(){return c.utf8read}});var p=s(80363);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(23739);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(47283);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(63090);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(45550);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(4318);Object.defineProperty(i,"MESSAGE_TYPE",{enumerable:true,get:function(){return g.MESSAGE_TYPE}});var y=s(44620);Object.defineProperty(i,"MessageType",{enumerable:true,get:function(){return y.MessageType}});var b=s(73460);Object.defineProperty(i,"ScalarType",{enumerable:true,get:function(){return b.ScalarType}});Object.defineProperty(i,"LongType",{enumerable:true,get:function(){return b.LongType}});Object.defineProperty(i,"RepeatType",{enumerable:true,get:function(){return b.RepeatType}});Object.defineProperty(i,"normalizeFieldInfo",{enumerable:true,get:function(){return b.normalizeFieldInfo}});Object.defineProperty(i,"readFieldOptions",{enumerable:true,get:function(){return b.readFieldOptions}});Object.defineProperty(i,"readFieldOption",{enumerable:true,get:function(){return b.readFieldOption}});Object.defineProperty(i,"readMessageOption",{enumerable:true,get:function(){return b.readMessageOption}});var C=s(76328);Object.defineProperty(i,"ReflectionTypeCheck",{enumerable:true,get:function(){return C.ReflectionTypeCheck}});var v=s(20584);Object.defineProperty(i,"reflectionCreate",{enumerable:true,get:function(){return v.reflectionCreate}});var B=s(57070);Object.defineProperty(i,"reflectionScalarDefault",{enumerable:true,get:function(){return B.reflectionScalarDefault}});var w=s(14150);Object.defineProperty(i,"reflectionMergePartial",{enumerable:true,get:function(){return w.reflectionMergePartial}});var I=s(75285);Object.defineProperty(i,"reflectionEquals",{enumerable:true,get:function(){return I.reflectionEquals}});var S=s(68671);Object.defineProperty(i,"ReflectionBinaryReader",{enumerable:true,get:function(){return S.ReflectionBinaryReader}});var Q=s(45090);Object.defineProperty(i,"ReflectionBinaryWriter",{enumerable:true,get:function(){return Q.ReflectionBinaryWriter}});var x=s(26135);Object.defineProperty(i,"ReflectionJsonReader",{enumerable:true,get:function(){return x.ReflectionJsonReader}});var N=s(22597);Object.defineProperty(i,"ReflectionJsonWriter",{enumerable:true,get:function(){return N.ReflectionJsonWriter}});var R=s(40150);Object.defineProperty(i,"containsMessageType",{enumerable:true,get:function(){return R.containsMessageType}});var T=s(66777);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 D=s(63830);Object.defineProperty(i,"listEnumValues",{enumerable:true,get:function(){return D.listEnumValues}});Object.defineProperty(i,"listEnumNames",{enumerable:true,get:function(){return D.listEnumNames}});Object.defineProperty(i,"listEnumNumbers",{enumerable:true,get:function(){return D.listEnumNumbers}});Object.defineProperty(i,"isEnumObject",{enumerable:true,get:function(){return D.isEnumObject}});var _=s(5995);Object.defineProperty(i,"lowerCamelCase",{enumerable:true,get:function(){return _.lowerCamelCase}});var k=s(28453);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}})},45550:(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},52320:(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},5995:(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")},44620:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MessageType=void 0;const a=s(4318);const l=s(73460);const c=s(76328);const p=s(26135);const d=s(22597);const u=s(68671);const A=s(45090);const h=s(20584);const g=s(14150);const y=s(52320);const b=s(45550);const C=s(75285);const v=s(47283);const B=s(23739);const w=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));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.create(null,Object.assign(Object.assign({},w),{[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 C.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=B.binaryReadOptions(i);return this.internalBinaryRead(s.readerFactory(r),r.byteLength,s)}fromJson(r,i){return this.internalJsonRead(r,b.jsonReadOptions(i))}fromJsonString(r,i){let s=JSON.parse(r);return this.fromJson(s,i)}toJson(r,i){return this.internalJsonWrite(r,b.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=v.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 ${y.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},66777:(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},63090:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.PbLong=i.PbULong=i.detectBi=void 0;const a=s(65435);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)},12091:(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},68671:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionBinaryReader=void 0;const a=s(80363);const l=s(73460);const c=s(20350);const p=s(57070);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(80363);const l=s(73460);const c=s(28453);const p=s(63090);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(4318);function containsMessageType(r){return r[a.MESSAGE_TYPE]!=null}i.containsMessageType=containsMessageType},20584:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionCreate=void 0;const a=s(57070);const l=s(4318);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},75285:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionEquals=void 0;const a=s(73460);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(5995);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},26135:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonReader=void 0;const a=s(52320);const l=s(92081);const c=s(73460);const p=s(63090);const d=s(28453);const u=s(20350);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},22597:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionJsonWriter=void 0;const a=s(92081);const l=s(63090);const c=s(73460);const p=s(28453);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},20350:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.reflectionLongConvert=void 0;const a=s(73460);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},14150:(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(73460);const l=s(20350);const c=s(63090);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},76328:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ReflectionTypeCheck=void 0;const a=s(73460);const l=s(66777);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},37428:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(89129);class AbortSignal extends a.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const r=l.get(this);if(typeof r!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return r}}a.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const r=Object.create(AbortSignal.prototype);a.EventTarget.call(r);l.set(r,false);return r}function abortSignal(r){if(l.get(r)!==false){return}l.set(r,true);r.dispatchEvent({type:"abort"})}const l=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){c.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const c=new WeakMap;function getSignal(r){const i=c.get(r);if(i==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${r===null?"null":typeof r}`)}return i}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}i.AbortController=AbortController;i.AbortSignal=AbortSignal;i["default"]=AbortController;r.exports=AbortController;r.exports.AbortController=r.exports["default"]=AbortController;r.exports.AbortSignal=AbortSignal},20122:(r,i,s)=>{var a=s(37804);var l=s(71017);var c=s(13138);var p=s(42705);var d=s(94909);var u=s(60256);var A=s(61001);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}},56757:(r,i,s)=>{var a=s(37804);var l=s(71017);var c=s(16070);var p=s(92707);var d=s(7674);var u=s(69689);var A=s(12781).Stream;var h=s(10388).PassThrough;var g=r.exports={};g.file=s(20122);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=Buffer.alloc(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 c(r)};g.lazyReadStream=function(r){return new p.Readable((function(){return a.createReadStream(r)}))};g.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(g.isStream(r)){return r.pipe(new h)}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,a){c.push({path:h,relative:l.relative(i,h).replace(/\\/g,"/"),stats:a});if(a&&a.isDirectory()){g.walkdir(h,i,(function(r,i){if(r){return s(r)}i.forEach((function(r){c.push(r)}));next()}))}else{next()}}))})()}))}},13572:(r,i,s)=>{ /** * Archiver Vending * @@ -6,7 +6,7 @@ require('./sourcemap-register.js');(()=>{var __webpack_modules__={1767:function( * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var s=a(3954);var l={};var vending=function(r,i){return vending.create(r,i)};vending.create=function(r,i){if(l[r]){var a=new s(r,i);a.setFormat(r);a.setModule(new l[r](i));return a}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,i){if(l[r]){throw new Error("register("+r+"): format already registered")}if(typeof i!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof i.prototype.append!=="function"||typeof i.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}l[r]=i};vending.isRegisteredFormat=function(r){if(l[r]){return true}return false};vending.registerFormat("zip",a(7541));vending.registerFormat("tar",a(6663));vending.registerFormat("json",a(1914));r.exports=vending},3954:(r,i,a)=>{ +var a=s(43954);var l={};var vending=function(r,i){return vending.create(r,i)};vending.create=function(r,i){if(l[r]){var s=new a(r,i);s.setFormat(r);s.setModule(new l[r](i));return s}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,i){if(l[r]){throw new Error("register("+r+"): format already registered")}if(typeof i!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof i.prototype.append!=="function"||typeof i.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}l[r]=i};vending.isRegisteredFormat=function(r){if(l[r]){return true}return false};vending.registerFormat("zip",s(87541));vending.registerFormat("tar",s(46663));vending.registerFormat("json",s(41914));r.exports=vending},43954:(r,i,s)=>{ /** * Archiver Core * @@ -14,7 +14,7 @@ var s=a(3954);var l={};var vending=function(r,i){return vending.create(r,i)};ven * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var s=a(7147);var l=a(8555);var p=a(9883);var c=a(1017);var d=a(6757);var u=a(3837).inherits;var h=a(1796);var g=a(388).Transform;var y=process.platform==="win32";var Archiver=function(r,i){if(!(this instanceof Archiver)){return new Archiver(r,i)}if(typeof r!=="string"){i=r;r="zip"}i=this.options=d.defaults(i,{highWaterMark:1024*1024,statConcurrency:4});g.call(this,i);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=p.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=p.queue(this._onStatQueueTask.bind(this),i.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};u(Archiver,g);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,i){i=i||{};var a={source:null,filepath:r};if(!i.name){i.name=r}i.sourcePath=r;a.data=i;this._entriesCount++;if(i.stats&&i.stats instanceof s.Stats){a=this._updateQueueTaskWithStats(a,i.stats);if(a){if(i.stats.size){this._fsEntriesTotalBytes+=i.stats.size}this._queue.push(a)}}else{this._statQueue.push(a)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,i,a){if(this._state.aborted){a();return}this._module.append(r,i,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(a);return}this.emit("entry",i);this._entriesProcessedCount++;if(i.stats&&i.stats.size){this._fsEntriesProcessedBytes+=i.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(a)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new h("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,i){r=d.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(i&&r.stats===false){r.stats=i}var a=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=d.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){a=true;r.type="directory"}else if(a){r.name+="/"}}if(typeof r.mode==="number"){if(y){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(y){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(y&&a){r.mode=493}}else if(r.mode===null){r.mode=a?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=d.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,i){var fullCallback=()=>{if(r.data.callback){r.data.callback()}i()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,i){if(this._state.finalizing||this._state.finalized||this._state.aborted){i();return}s.lstat(r.filepath,function(a,s){if(this._state.aborted){setImmediate(i);return}if(a){this._entriesCount--;this.emit("warning",a);setImmediate(i);return}r=this._updateQueueTaskWithStats(r,s);if(r){if(s.size){this._fsEntriesTotalBytes+=s.size}this._queue.push(r)}setImmediate(i)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,i,a){if(r){this._pointer+=r.length}a(null,r)};Archiver.prototype._updateQueueTaskWithStats=function(r,i){if(i.isFile()){r.data.type="file";r.data.sourceType="stream";r.source=d.lazyReadStream(r.filepath)}else if(i.isDirectory()&&this._moduleSupports("directory")){r.data.name=d.trailingSlashIt(r.data.name);r.data.type="directory";r.data.sourcePath=d.trailingSlashIt(r.filepath);r.data.sourceType="buffer";r.source=Buffer.concat([])}else if(i.isSymbolicLink()&&this._moduleSupports("symlink")){var a=s.readlinkSync(r.filepath);var l=c.dirname(r.filepath);r.data.type="symlink";r.data.linkname=c.relative(l,c.resolve(l,a));r.data.sourceType="buffer";r.source=Buffer.concat([])}else{if(i.isDirectory()){this.emit("warning",new h("DIRECTORYNOTSUPPORTED",r.data))}else if(i.isSymbolicLink()){this.emit("warning",new h("SYMLINKNOTSUPPORTED",r.data))}else{this.emit("warning",new h("ENTRYNOTSUPPORTED",r.data))}return null}r.data=this._normalizeEntryData(r.data,i);return r};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(r,i){if(this._state.finalize||this._state.aborted){this.emit("error",new h("QUEUECLOSED"));return this}i=this._normalizeEntryData(i);if(typeof i.name!=="string"||i.name.length===0){this.emit("error",new h("ENTRYNAMEREQUIRED"));return this}if(i.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new h("DIRECTORYNOTSUPPORTED",{name:i.name}));return this}r=d.normalizeInputSource(r);if(Buffer.isBuffer(r)){i.sourceType="buffer"}else if(d.isStream(r)){i.sourceType="stream"}else{this.emit("error",new h("INPUTSTEAMBUFFERREQUIRED",{name:i.name}));return this}this._entriesCount++;this._queue.push({data:i,source:r});return this};Archiver.prototype.directory=function(r,i,a){if(this._state.finalize||this._state.aborted){this.emit("error",new h("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new h("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(i===false){i=""}else if(typeof i!=="string"){i=r}var s=false;if(typeof a==="function"){s=a;a={}}else if(typeof a!=="object"){a={}}var p={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(l){c.pause();var p=false;var d=Object.assign({},a);d.name=l.relative;d.prefix=i;d.stats=l.stat;d.callback=c.resume.bind(c);try{if(s){d=s(d);if(d===false){p=true}else if(typeof d!=="object"){throw new h("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:r})}}}catch(r){this.emit("error",r);return}if(p){c.resume();return}this._append(l.absolute,d)}var c=l(r,p);c.on("error",onGlobError.bind(this));c.on("match",onGlobMatch.bind(this));c.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(r,i){if(this._state.finalize||this._state.aborted){this.emit("error",new h("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new h("FILEFILEPATHREQUIRED"));return this}this._append(r,i);return this};Archiver.prototype.glob=function(r,i,a){this._pending++;i=d.defaults(i,{stat:true,pattern:r});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(r){s.pause();var i=Object.assign({},a);i.callback=s.resume.bind(s);i.stats=r.stat;i.name=r.relative;this._append(r.absolute,i)}var s=l(i.cwd||".",i);s.on("error",onGlobError.bind(this));s.on("match",onGlobMatch.bind(this));s.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var r=new h("ABORTED");this.emit("error",r);return Promise.reject(r)}if(this._state.finalize){var i=new h("FINALIZING");this.emit("error",i);return Promise.reject(i)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var a=this;return new Promise((function(r,i){var s;a._module.on("end",(function(){if(!s){r()}}));a._module.on("error",(function(r){s=true;i(r)}))}))};Archiver.prototype.setFormat=function(r){if(this._format){this.emit("error",new h("FORMATSET"));return this}this._format=r;return this};Archiver.prototype.setModule=function(r){if(this._state.aborted){this.emit("error",new h("ABORTED"));return this}if(this._state.module){this.emit("error",new h("MODULESET"));return this}this._module=r;this._modulePipe();return this};Archiver.prototype.symlink=function(r,i,a){if(this._state.finalize||this._state.aborted){this.emit("error",new h("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new h("SYMLINKFILEPATHREQUIRED"));return this}if(typeof i!=="string"||i.length===0){this.emit("error",new h("SYMLINKTARGETREQUIRED",{filepath:r}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new h("SYMLINKNOTSUPPORTED",{filepath:r}));return this}var s={};s.type="symlink";s.name=r.replace(/\\/g,"/");s.linkname=i.replace(/\\/g,"/");s.sourceType="buffer";if(typeof a==="number"){s.mode=a}this._entriesCount++;this._queue.push({data:s,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(r){this._streams.push(r);return this};r.exports=Archiver},1796:(r,i,a)=>{ +var a=s(57147);var l=s(78555);var c=s(59883);var p=s(71017);var d=s(56757);var u=s(73837).inherits;var A=s(74334);var h=s(10388).Transform;var g=process.platform==="win32";var Archiver=function(r,i){if(!(this instanceof Archiver)){return new Archiver(r,i)}if(typeof r!=="string"){i=r;r="zip"}i=this.options=d.defaults(i,{highWaterMark:1024*1024,statConcurrency:4});h.call(this,i);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=c.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=c.queue(this._onStatQueueTask.bind(this),i.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};u(Archiver,h);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,i){i=i||{};var s={source:null,filepath:r};if(!i.name){i.name=r}i.sourcePath=r;s.data=i;this._entriesCount++;if(i.stats&&i.stats instanceof a.Stats){s=this._updateQueueTaskWithStats(s,i.stats);if(s){if(i.stats.size){this._fsEntriesTotalBytes+=i.stats.size}this._queue.push(s)}}else{this._statQueue.push(s)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,i,s){if(this._state.aborted){s();return}this._module.append(r,i,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(s);return}this.emit("entry",i);this._entriesProcessedCount++;if(i.stats&&i.stats.size){this._fsEntriesProcessedBytes+=i.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(s)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new A("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,i){r=d.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(i&&r.stats===false){r.stats=i}var s=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=d.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){s=true;r.type="directory"}else if(s){r.name+="/"}}if(typeof r.mode==="number"){if(g){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(g){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(g&&s){r.mode=493}}else if(r.mode===null){r.mode=s?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=d.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,i){var fullCallback=()=>{if(r.data.callback){r.data.callback()}i()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,i){if(this._state.finalizing||this._state.finalized||this._state.aborted){i();return}a.lstat(r.filepath,function(s,a){if(this._state.aborted){setImmediate(i);return}if(s){this._entriesCount--;this.emit("warning",s);setImmediate(i);return}r=this._updateQueueTaskWithStats(r,a);if(r){if(a.size){this._fsEntriesTotalBytes+=a.size}this._queue.push(r)}setImmediate(i)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,i,s){if(r){this._pointer+=r.length}s(null,r)};Archiver.prototype._updateQueueTaskWithStats=function(r,i){if(i.isFile()){r.data.type="file";r.data.sourceType="stream";r.source=d.lazyReadStream(r.filepath)}else if(i.isDirectory()&&this._moduleSupports("directory")){r.data.name=d.trailingSlashIt(r.data.name);r.data.type="directory";r.data.sourcePath=d.trailingSlashIt(r.filepath);r.data.sourceType="buffer";r.source=Buffer.concat([])}else if(i.isSymbolicLink()&&this._moduleSupports("symlink")){var s=a.readlinkSync(r.filepath);var l=p.dirname(r.filepath);r.data.type="symlink";r.data.linkname=p.relative(l,p.resolve(l,s));r.data.sourceType="buffer";r.source=Buffer.concat([])}else{if(i.isDirectory()){this.emit("warning",new A("DIRECTORYNOTSUPPORTED",r.data))}else if(i.isSymbolicLink()){this.emit("warning",new A("SYMLINKNOTSUPPORTED",r.data))}else{this.emit("warning",new A("ENTRYNOTSUPPORTED",r.data))}return null}r.data=this._normalizeEntryData(r.data,i);return r};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(r,i){if(this._state.finalize||this._state.aborted){this.emit("error",new A("QUEUECLOSED"));return this}i=this._normalizeEntryData(i);if(typeof i.name!=="string"||i.name.length===0){this.emit("error",new A("ENTRYNAMEREQUIRED"));return this}if(i.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new A("DIRECTORYNOTSUPPORTED",{name:i.name}));return this}r=d.normalizeInputSource(r);if(Buffer.isBuffer(r)){i.sourceType="buffer"}else if(d.isStream(r)){i.sourceType="stream"}else{this.emit("error",new A("INPUTSTEAMBUFFERREQUIRED",{name:i.name}));return this}this._entriesCount++;this._queue.push({data:i,source:r});return this};Archiver.prototype.directory=function(r,i,s){if(this._state.finalize||this._state.aborted){this.emit("error",new A("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new A("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(i===false){i=""}else if(typeof i!=="string"){i=r}var a=false;if(typeof s==="function"){a=s;s={}}else if(typeof s!=="object"){s={}}var c={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(l){p.pause();var c=false;var d=Object.assign({},s);d.name=l.relative;d.prefix=i;d.stats=l.stat;d.callback=p.resume.bind(p);try{if(a){d=a(d);if(d===false){c=true}else if(typeof d!=="object"){throw new A("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:r})}}}catch(r){this.emit("error",r);return}if(c){p.resume();return}this._append(l.absolute,d)}var p=l(r,c);p.on("error",onGlobError.bind(this));p.on("match",onGlobMatch.bind(this));p.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(r,i){if(this._state.finalize||this._state.aborted){this.emit("error",new A("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new A("FILEFILEPATHREQUIRED"));return this}this._append(r,i);return this};Archiver.prototype.glob=function(r,i,s){this._pending++;i=d.defaults(i,{stat:true,pattern:r});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(r){a.pause();var i=Object.assign({},s);i.callback=a.resume.bind(a);i.stats=r.stat;i.name=r.relative;this._append(r.absolute,i)}var a=l(i.cwd||".",i);a.on("error",onGlobError.bind(this));a.on("match",onGlobMatch.bind(this));a.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var r=new A("ABORTED");this.emit("error",r);return Promise.reject(r)}if(this._state.finalize){var i=new A("FINALIZING");this.emit("error",i);return Promise.reject(i)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var s=this;return new Promise((function(r,i){var a;s._module.on("end",(function(){if(!a){r()}}));s._module.on("error",(function(r){a=true;i(r)}))}))};Archiver.prototype.setFormat=function(r){if(this._format){this.emit("error",new A("FORMATSET"));return this}this._format=r;return this};Archiver.prototype.setModule=function(r){if(this._state.aborted){this.emit("error",new A("ABORTED"));return this}if(this._state.module){this.emit("error",new A("MODULESET"));return this}this._module=r;this._modulePipe();return this};Archiver.prototype.symlink=function(r,i,s){if(this._state.finalize||this._state.aborted){this.emit("error",new A("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new A("SYMLINKFILEPATHREQUIRED"));return this}if(typeof i!=="string"||i.length===0){this.emit("error",new A("SYMLINKTARGETREQUIRED",{filepath:r}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new A("SYMLINKNOTSUPPORTED",{filepath:r}));return this}var a={};a.type="symlink";a.name=r.replace(/\\/g,"/");a.linkname=i.replace(/\\/g,"/");a.sourceType="buffer";if(typeof s==="number"){a.mode=s}this._entriesCount++;this._queue.push({data:a,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(r){this._streams.push(r);return this};r.exports=Archiver},74334:(r,i,s)=>{ /** * Archiver Core * @@ -22,7 +22,7 @@ var s=a(7147);var l=a(8555);var p=a(9883);var c=a(1017);var d=a(6757);var u=a(38 * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var s=a(3837);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,i){Error.captureStackTrace(this,this.constructor);this.message=l[r]||r;this.code=r;this.data=i}s.inherits(ArchiverError,Error);i=r.exports=ArchiverError},1914:(r,i,a)=>{ +var a=s(73837);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,i){Error.captureStackTrace(this,this.constructor);this.message=l[r]||r;this.code=r;this.data=i}a.inherits(ArchiverError,Error);i=r.exports=ArchiverError},41914:(r,i,s)=>{ /** * JSON Format Plugin * @@ -30,7 +30,7 @@ var s=a(3837);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"d * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var s=a(3837).inherits;var l=a(388).Transform;var p=a(2304);var c=a(6757);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=c.defaults(r,{});l.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};s(Json,l);Json.prototype._transform=function(r,i,a){a(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,i,a){var s=this;i.crc32=0;function onend(r,l){if(r){a(r);return}i.size=l.length||0;i.crc32=p.unsigned(l);s.files.push(i);a(null,i)}if(i.sourceType==="buffer"){onend(null,r)}else if(i.sourceType==="stream"){c.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},6663:(r,i,a)=>{ +var a=s(73837).inherits;var l=s(10388).Transform;var c=s(4868);var p=s(56757);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=p.defaults(r,{});l.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};a(Json,l);Json.prototype._transform=function(r,i,s){s(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,i,s){var a=this;i.crc32=0;function onend(r,l){if(r){s(r);return}i.size=l.length||0;i.crc32=c.unsigned(l);a.files.push(i);s(null,i)}if(i.sourceType==="buffer"){onend(null,r)}else if(i.sourceType==="stream"){p.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},46663:(r,i,s)=>{ /** * TAR Format Plugin * @@ -38,7 +38,7 @@ var s=a(3837).inherits;var l=a(388).Transform;var p=a(2304);var c=a(6757);var Js * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var s=a(9796);var l=a(8156);var p=a(6757);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=p.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=l.pack(r);this.compressor=false;if(r.gzip){this.compressor=s.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,i,a){var s=this;i.mtime=i.date;function append(r,l){if(r){a(r);return}s.engine.entry(i,l,(function(r){a(r,i)}))}if(i.sourceType==="buffer"){append(null,r)}else if(i.sourceType==="stream"&&i.stats){i.size=i.stats.size;var l=s.engine.entry(i,(function(r){a(r,i)}));r.pipe(l)}else if(i.sourceType==="stream"){p.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,i){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,i)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},7541:(r,i,a)=>{ +var a=s(59796);var l=s(8156);var c=s(56757);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=c.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=l.pack(r);this.compressor=false;if(r.gzip){this.compressor=a.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,i,s){var a=this;i.mtime=i.date;function append(r,l){if(r){s(r);return}a.engine.entry(i,l,(function(r){s(r,i)}))}if(i.sourceType==="buffer"){append(null,r)}else if(i.sourceType==="stream"&&i.stats){i.size=i.stats.size;var l=a.engine.entry(i,(function(r){s(r,i)}));r.pipe(l)}else if(i.sourceType==="stream"){c.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,i){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,i)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},87541:(r,i,s)=>{ /** * ZIP Format Plugin * @@ -46,41 +46,43 @@ var s=a(9796);var l=a(8156);var p=a(6757);var Tar=function(r){if(!(this instance * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var s=a(6060);var l=a(6757);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=l.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new s(r)};Zip.prototype.append=function(r,i,a){this.engine.entry(r,i,a)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},9883:function(r,i){(function(r,a){true?a(i):0})(this,(function(r){"use strict";function apply(r,...i){return(...a)=>r(...i,...a)}function initialParams(r){return function(...i){var a=i.pop();return r.call(this,i,a)}}var i=typeof queueMicrotask==="function"&&queueMicrotask;var a=typeof setImmediate==="function"&&setImmediate;var s=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(i,...a)=>r((()=>i(...a)))}var l;if(i){l=queueMicrotask}else if(a){l=setImmediate}else if(s){l=process.nextTick}else{l=fallback}var p=wrap(l);function asyncify(r){if(isAsync(r)){return function(...i){const a=i.pop();const s=r.apply(this,i);return handlePromise(s,a)}}return initialParams((function(i,a){var s;try{s=r.apply(this,i)}catch(r){return a(r)}if(s&&typeof s.then==="function"){return handlePromise(s,a)}else{a(null,s)}}))}function handlePromise(r,i){return r.then((r=>{invokeCallback(i,null,r)}),(r=>{invokeCallback(i,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,i,a){try{r(i,a)}catch(r){p((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,i){if(!i)i=r.length;if(!i)throw new Error("arity is undefined");function awaitable(...a){if(typeof a[i-1]==="function"){return r.apply(this,a)}return new Promise(((s,l)=>{a[i-1]=(r,...i)=>{if(r)return l(r);s(i.length>1?i:i[0])};r.apply(this,a)}))}return awaitable}function applyEach$1(r){return function applyEach(i,...a){const s=awaitify((function(s){var l=this;return r(i,((r,i)=>{wrapAsync(r).apply(l,a.concat(i))}),s)}));return s}}function _asyncMap(r,i,a,s){i=i||[];var l=[];var p=0;var c=wrapAsync(a);return r(i,((r,i,a)=>{var s=p++;c(r,((r,i)=>{l[s]=i;a(r)}))}),(r=>{s(r,l)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const c={};var d=c;function once(r){function wrapper(...i){if(r===null)return;var a=r;r=null;a.apply(this,i)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var i=-1;var a=r.length;return function next(){return++i=i||c||l)return;c=true;r.next().then((({value:r,done:i})=>{if(p||l)return;c=false;if(i){l=true;if(u<=0){s(null)}return}u++;a(r,h,iterateeCallback);h++;replenish()})).catch(handleError)}function iterateeCallback(r,i){u-=1;if(p)return;if(r)return handleError(r);if(r===false){l=true;p=true;return}if(i===d||l&&u<=0){l=true;return s(null)}replenish()}function handleError(r){if(p)return;c=false;l=true;s(r)}replenish()}var eachOfLimit$2=r=>(i,a,s)=>{s=once(s);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!i){return s(null)}if(isAsyncGenerator(i)){return asyncEachOfLimit(i,r,a,s)}if(isAsyncIterable(i)){return asyncEachOfLimit(i[Symbol.asyncIterator](),r,a,s)}var l=createIterator(i);var p=false;var c=false;var u=0;var h=false;function iterateeCallback(r,i){if(c)return;u-=1;if(r){p=true;s(r)}else if(r===false){p=true;c=true}else if(i===d||p&&u<=0){p=true;return s(null)}else if(!h){replenish()}}function replenish(){h=true;while(u1?s:s[0])}callback[x]=new Promise(((a,s)=>{r=a,i=s}));return callback}function auto(r,i,a){if(typeof i!=="number"){a=i;i=null}a=once(a||promiseCallback());var s=Object.keys(r).length;if(!s){return a(null)}if(!i){i=s}var l={};var p=0;var c=false;var d=false;var u=Object.create(null);var h=[];var g=[];var y={};Object.keys(r).forEach((i=>{var a=r[i];if(!Array.isArray(a)){enqueueTask(i,[a]);g.push(i);return}var s=a.slice(0,a.length-1);var l=s.length;if(l===0){enqueueTask(i,a);g.push(i);return}y[i]=l;s.forEach((p=>{if(!r[p]){throw new Error("async.auto task `"+i+"` has a non-existent dependency `"+p+"` in "+s.join(", "))}addListener(p,(()=>{l--;if(l===0){enqueueTask(i,a)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(r,i){h.push((()=>runTask(r,i)))}function processQueue(){if(c)return;if(h.length===0&&p===0){return a(null,l)}while(h.length&&pr()));processQueue()}function runTask(r,i){if(d)return;var s=onlyOnce(((i,...s)=>{p--;if(i===false){c=true;return}if(s.length<2){[s]=s}if(i){var h={};Object.keys(l).forEach((r=>{h[r]=l[r]}));h[r]=s;d=true;u=Object.create(null);if(c)return;a(i,h)}else{l[r]=s;taskComplete(r)}}));p++;var h=wrapAsync(i[i.length-1]);if(i.length>1){h(l,s)}else{h(s)}}function checkForDeadlocks(){var r;var i=0;while(g.length){r=g.pop();i++;getDependents(r).forEach((r=>{if(--y[r]===0){g.push(r)}}))}if(i!==s){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(i){var a=[];Object.keys(r).forEach((s=>{const l=r[s];if(Array.isArray(l)&&l.indexOf(i)>=0){a.push(s)}}));return a}return a[x]}var S=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var _=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var T=/,/;var N=/(=.+)?(\s*)$/;function stripComments(r){let i="";let a=0;let s=r.indexOf("*/");while(ar.replace(N,"").trim()))}function autoInject(r,i){var a={};Object.keys(r).forEach((i=>{var s=r[i];var l;var p=isAsync(s);var c=!p&&s.length===1||p&&s.length===0;if(Array.isArray(s)){l=[...s];s=l.pop();a[i]=l.concat(l.length>0?newTask:s)}else if(c){a[i]=s}else{l=parseParams(s);if(s.length===0&&!p&&l.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!p)l.pop();a[i]=l.concat(newTask)}function newTask(r,i){var a=l.map((i=>r[i]));a.push(i);wrapAsync(s)(...a)}}));return auto(a,i)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(r){if(r.prev)r.prev.next=r.next;else this.head=r.next;if(r.next)r.next.prev=r.prev;else this.tail=r.prev;r.prev=r.next=null;this.length-=1;return r}empty(){while(this.head)this.shift();return this}insertAfter(r,i){i.prev=r;i.next=r.next;if(r.next)r.next.prev=i;else this.tail=i;r.next=i;this.length+=1}insertBefore(r,i){i.prev=r.prev;i.next=r;if(r.prev)r.prev.next=i;else this.head=i;r.prev=i;this.length+=1}unshift(r){if(this.head)this.insertBefore(this.head,r);else setInitial(this,r)}push(r){if(this.tail)this.insertAfter(this.tail,r);else setInitial(this,r)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var r=this.head;while(r){yield r.data;r=r.next}}remove(r){var i=this.head;while(i){var{next:a}=i;if(r(i)){this.removeLink(i)}i=a}return this}}function setInitial(r,i){r.length=1;r.head=r.tail=i}function queue$1(r,i,a){if(i==null){i=1}else if(i===0){throw new RangeError("Concurrency must not be zero")}var s=wrapAsync(r);var l=0;var c=[];const d={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(r,i){d[r].push(i)}function once(r,i){const handleAndRemove=(...a)=>{off(r,handleAndRemove);i(...a)};d[r].push(handleAndRemove)}function off(r,i){if(!r)return Object.keys(d).forEach((r=>d[r]=[]));if(!i)return d[r]=[];d[r]=d[r].filter((r=>r!==i))}function trigger(r,...i){d[r].forEach((r=>r(...i)))}var u=false;function _insert(r,i,a,s){if(s!=null&&typeof s!=="function"){throw new Error("task callback must be a function")}g.started=true;var l,c;function promiseCallback(r,...i){if(r)return a?c(r):l();if(i.length<=1)return l(i[0]);l(i)}var d=g._createTaskItem(r,a?promiseCallback:s||promiseCallback);if(i){g._tasks.unshift(d)}else{g._tasks.push(d)}if(!u){u=true;p((()=>{u=false;g.process()}))}if(a||!s){return new Promise(((r,i)=>{l=r;c=i}))}}function _createCB(r){return function(i,...a){l-=1;for(var s=0,p=r.length;s0){c.splice(u,1)}d.callback(i,...a);if(i!=null){trigger("error",i,d.data)}}if(l<=g.concurrency-g.buffer){trigger("unsaturated")}if(g.idle()){trigger("drain")}g.process()}}function _maybeDrain(r){if(r.length===0&&g.idle()){p((()=>trigger("drain")));return true}return false}const eventMethod=r=>i=>{if(!i){return new Promise(((i,a)=>{once(r,((r,s)=>{if(r)return a(r);i(s)}))}))}off(r);on(r,i)};var h=false;var g={_tasks:new DLL,_createTaskItem(r,i){return{data:r,callback:i}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:i,payload:a,buffer:i/4,started:false,paused:false,push(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,false,i)))}return _insert(r,false,false,i)},pushAsync(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,true,i)))}return _insert(r,false,true,i)},kill(){off();g._tasks.empty()},unshift(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,false,i)))}return _insert(r,true,false,i)},unshiftAsync(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,true,i)))}return _insert(r,true,true,i)},remove(r){g._tasks.remove(r)},process(){if(h){return}h=true;while(!g.paused&&l{l(i,r,((r,a)=>{i=a;s(r)}))}),(r=>s(r,i)))}var P=awaitify(reduce,4);function seq(...r){var i=r.map(wrapAsync);return function(...r){var a=this;var s=r[r.length-1];if(typeof s=="function"){r.pop()}else{s=promiseCallback()}P(i,r,((r,i,s)=>{i.apply(a,r.concat(((r,...i)=>{s(r,i)})))}),((r,i)=>s(r,...i)));return s[x]}}function compose(...r){return seq(...r.reverse())}function mapLimit(r,i,a,s){return _asyncMap(eachOfLimit$2(i),r,a,s)}var O=awaitify(mapLimit,4);function concatLimit(r,i,a,s){var l=wrapAsync(a);return O(r,i,((r,i)=>{l(r,((r,...a)=>{if(r)return i(r);return i(r,a)}))}),((r,i)=>{var a=[];for(var l=0;l{var c=false;var u;const h=wrapAsync(l);a(s,((a,s,l)=>{h(a,((s,p)=>{if(s||s===false)return l(s);if(r(p)&&!u){c=true;u=i(true,a);return l(null,d)}l()}))}),(r=>{if(r)return p(r);p(null,c?u:i(false))}))}}function detect(r,i,a){return _createTester((r=>r),((r,i)=>i))(h,r,i,a)}var A=awaitify(detect,3);function detectLimit(r,i,a,s){return _createTester((r=>r),((r,i)=>i))(eachOfLimit$2(i),r,a,s)}var D=awaitify(detectLimit,4);function detectSeries(r,i,a){return _createTester((r=>r),((r,i)=>i))(eachOfLimit$2(1),r,i,a)}var I=awaitify(detectSeries,3);function consoleFunc(r){return(i,...a)=>wrapAsync(i)(...a,((i,...a)=>{if(typeof console==="object"){if(i){if(console.error){console.error(i)}}else if(console[r]){a.forEach((i=>console[r](i)))}}}))}var L=consoleFunc("dir");function doWhilst(r,i,a){a=onlyOnce(a);var s=wrapAsync(r);var l=wrapAsync(i);var p;function next(r,...i){if(r)return a(r);if(r===false)return;p=i;l(...i,check)}function check(r,i){if(r)return a(r);if(r===false)return;if(!i)return a(null,...p);s(next)}return check(null,true)}var B=awaitify(doWhilst,3);function doUntil(r,i,a){const s=wrapAsync(i);return B(r,((...r)=>{const i=r.pop();s(...r,((r,a)=>i(r,!a)))}),a)}function _withoutIndex(r){return(i,a,s)=>r(i,s)}function eachLimit$2(r,i,a){return h(r,_withoutIndex(wrapAsync(i)),a)}var M=awaitify(eachLimit$2,3);function eachLimit(r,i,a,s){return eachOfLimit$2(i)(r,_withoutIndex(wrapAsync(a)),s)}var j=awaitify(eachLimit,4);function eachSeries(r,i,a){return j(r,1,i,a)}var z=awaitify(eachSeries,3);function ensureAsync(r){if(isAsync(r))return r;return function(...i){var a=i.pop();var s=true;i.push(((...r)=>{if(s){p((()=>a(...r)))}else{a(...r)}}));r.apply(this,i);s=false}}function every(r,i,a){return _createTester((r=>!r),(r=>!r))(h,r,i,a)}var U=awaitify(every,3);function everyLimit(r,i,a,s){return _createTester((r=>!r),(r=>!r))(eachOfLimit$2(i),r,a,s)}var q=awaitify(everyLimit,4);function everySeries(r,i,a){return _createTester((r=>!r),(r=>!r))(b,r,i,a)}var H=awaitify(everySeries,3);function filterArray(r,i,a,s){var l=new Array(i.length);r(i,((r,i,s)=>{a(r,((r,a)=>{l[i]=!!a;s(r)}))}),(r=>{if(r)return s(r);var a=[];for(var p=0;p{a(r,((a,p)=>{if(a)return s(a);if(p){l.push({index:i,value:r})}s(a)}))}),(r=>{if(r)return s(r);s(null,l.sort(((r,i)=>r.index-i.index)).map((r=>r.value)))}))}function _filter(r,i,a,s){var l=isArrayLike(i)?filterArray:filterGeneric;return l(r,i,wrapAsync(a),s)}function filter(r,i,a){return _filter(h,r,i,a)}var V=awaitify(filter,3);function filterLimit(r,i,a,s){return _filter(eachOfLimit$2(i),r,a,s)}var G=awaitify(filterLimit,4);function filterSeries(r,i,a){return _filter(b,r,i,a)}var W=awaitify(filterSeries,3);function forever(r,i){var a=onlyOnce(i);var s=wrapAsync(ensureAsync(r));function next(r){if(r)return a(r);if(r===false)return;s(next)}return next()}var $=awaitify(forever,2);function groupByLimit(r,i,a,s){var l=wrapAsync(a);return O(r,i,((r,i)=>{l(r,((a,s)=>{if(a)return i(a);return i(a,{key:s,val:r})}))}),((r,i)=>{var a={};var{hasOwnProperty:l}=Object.prototype;for(var p=0;p{p(r,i,((r,s)=>{if(r)return a(r);l[i]=s;a(r)}))}),(r=>s(r,l)))}var J=awaitify(mapValuesLimit,4);function mapValues(r,i,a){return J(r,Infinity,i,a)}function mapValuesSeries(r,i,a){return J(r,1,i,a)}function memoize(r,i=(r=>r)){var a=Object.create(null);var s=Object.create(null);var l=wrapAsync(r);var c=initialParams(((r,c)=>{var d=i(...r);if(d in a){p((()=>c(null,...a[d])))}else if(d in s){s[d].push(c)}else{s[d]=[c];l(...r,((r,...i)=>{if(!r){a[d]=i}var l=s[d];delete s[d];for(var p=0,c=l.length;p{var s=isArrayLike(i)?[]:{};r(i,((r,i,a)=>{wrapAsync(r)(((r,...l)=>{if(l.length<2){[l]=l}s[i]=l;a(r)}))}),(r=>a(r,s)))}),3);function parallel(r,i){return Z(h,r,i)}function parallelLimit(r,i,a){return Z(eachOfLimit$2(i),r,a)}function queue(r,i){var a=wrapAsync(r);return queue$1(((r,i)=>{a(r[0],i)}),i,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(r){let i;while(r>0&&smaller(this.heap[r],this.heap[i=parent(r)])){let a=this.heap[r];this.heap[r]=this.heap[i];this.heap[i]=a;r=i}}percDown(r){let i;while((i=leftChi(r))=0;r--){this.percDown(r)}return this}}function leftChi(r){return(r<<1)+1}function parent(r){return(r+1>>1)-1}function smaller(r,i){if(r.priority!==i.priority){return r.priority({data:r,priority:i,callback:a});function createDataItems(r,i){if(!Array.isArray(r)){return{data:r,priority:i}}return r.map((r=>({data:r,priority:i})))}a.push=function(r,i=0,a){return s(createDataItems(r,i),a)};a.pushAsync=function(r,i=0,a){return l(createDataItems(r,i),a)};delete a.unshift;delete a.unshiftAsync;return a}function race(r,i){i=once(i);if(!Array.isArray(r))return i(new TypeError("First argument to race must be an array of functions"));if(!r.length)return i();for(var a=0,s=r.length;a{let s={};if(r){s.error=r}if(i.length>0){var l=i;if(i.length<=1){[l]=i}s.value=l}a(null,s)}));return i.apply(this,r)}))}function reflectAll(r){var i;if(Array.isArray(r)){i=r.map(reflect)}else{i={};Object.keys(r).forEach((a=>{i[a]=reflect.call(this,r[a])}))}return i}function reject$2(r,i,a,s){const l=wrapAsync(a);return _filter(r,i,((r,i)=>{l(r,((r,a)=>{i(r,!a)}))}),s)}function reject(r,i,a){return reject$2(h,r,i,a)}var te=awaitify(reject,3);function rejectLimit(r,i,a,s){return reject$2(eachOfLimit$2(i),r,a,s)}var re=awaitify(rejectLimit,4);function rejectSeries(r,i,a){return reject$2(b,r,i,a)}var ie=awaitify(rejectSeries,3);function constant(r){return function(){return r}}const ne=5;const ae=0;function retry(r,i,a){var s={times:ne,intervalFunc:constant(ae)};if(arguments.length<3&&typeof r==="function"){a=i||promiseCallback();i=r}else{parseTimes(s,r);a=a||promiseCallback()}if(typeof i!=="function"){throw new Error("Invalid arguments for async.retry")}var l=wrapAsync(i);var p=1;function retryAttempt(){l(((r,...i)=>{if(r===false)return;if(r&&p++{if(i.lengthr))(h,r,i,a)}var se=awaitify(some,3);function someLimit(r,i,a,s){return _createTester(Boolean,(r=>r))(eachOfLimit$2(i),r,a,s)}var oe=awaitify(someLimit,4);function someSeries(r,i,a){return _createTester(Boolean,(r=>r))(b,r,i,a)}var le=awaitify(someSeries,3);function sortBy(r,i,a){var s=wrapAsync(i);return g(r,((r,i)=>{s(r,((a,s)=>{if(a)return i(a);i(a,{value:r,criteria:s})}))}),((r,i)=>{if(r)return a(r);a(null,i.sort(comparator).map((r=>r.value)))}));function comparator(r,i){var a=r.criteria,s=i.criteria;return as?1:0}}var pe=awaitify(sortBy,3);function timeout(r,i,a){var s=wrapAsync(r);return initialParams(((l,p)=>{var c=false;var d;function timeoutCallback(){var i=r.name||"anonymous";var s=new Error('Callback function "'+i+'" timed out.');s.code="ETIMEDOUT";if(a){s.info=a}c=true;p(s)}l.push(((...r)=>{if(!c){p(...r);clearTimeout(d)}}));d=setTimeout(timeoutCallback,i);s(...l)}))}function range(r){var i=Array(r);while(r--){i[r]=r}return i}function timesLimit(r,i,a,s){var l=wrapAsync(a);return O(range(r),i,l,s)}function times(r,i,a){return timesLimit(r,Infinity,i,a)}function timesSeries(r,i,a){return timesLimit(r,1,i,a)}function transform(r,i,a,s){if(arguments.length<=3&&typeof i==="function"){s=a;a=i;i=Array.isArray(r)?[]:{}}s=once(s||promiseCallback());var l=wrapAsync(a);h(r,((r,a,s)=>{l(i,r,a,s)}),(r=>s(r,i)));return s[x]}function tryEach(r,i){var a=null;var s;return z(r,((r,i)=>{wrapAsync(r)(((r,...l)=>{if(r===false)return i(r);if(l.length<2){[s]=l}else{s=l}a=r;i(r?null:{})}))}),(()=>i(a,s)))}var ce=awaitify(tryEach);function unmemoize(r){return(...i)=>(r.unmemoized||r)(...i)}function whilst(r,i,a){a=onlyOnce(a);var s=wrapAsync(i);var l=wrapAsync(r);var p=[];function next(r,...i){if(r)return a(r);p=i;if(r===false)return;l(check)}function check(r,i){if(r)return a(r);if(r===false)return;if(!i)return a(null,...p);s(next)}return l(check)}var de=awaitify(whilst,3);function until(r,i,a){const s=wrapAsync(r);return de((r=>s(((i,a)=>r(i,!a)))),i,a)}function waterfall(r,i){i=once(i);if(!Array.isArray(r))return i(new Error("First argument to waterfall must be an array of functions"));if(!r.length)return i();var a=0;function nextTask(i){var s=wrapAsync(r[a++]);s(...i,onlyOnce(next))}function next(s,...l){if(s===false)return;if(s||a===r.length){return i(s,...l)}nextTask(l)}nextTask([])}var ue=awaitify(waterfall);var me={apply:apply,applyEach:y,applyEachSeries:w,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:C,concatLimit:R,concatSeries:k,constant:constant$1,detect:A,detectLimit:D,detectSeries:I,dir:L,doUntil:doUntil,doWhilst:B,each:M,eachLimit:j,eachOf:h,eachOfLimit:u,eachOfSeries:b,eachSeries:z,ensureAsync:ensureAsync,every:U,everyLimit:q,everySeries:H,filter:V,filterLimit:G,filterSeries:W,forever:$,groupBy:groupBy,groupByLimit:X,groupBySeries:groupBySeries,log:K,map:g,mapLimit:O,mapSeries:v,mapValues:mapValues,mapValuesLimit:J,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:Y,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:ee,reduce:P,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:te,rejectLimit:re,rejectSeries:ie,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:p,some:se,someLimit:oe,someSeries:le,sortBy:pe,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ce,unmemoize:unmemoize,until:until,waterfall:ue,whilst:de,all:U,allLimit:q,allSeries:H,any:se,anyLimit:oe,anySeries:le,find:A,findLimit:D,findSeries:I,flatMap:C,flatMapLimit:R,flatMapSeries:k,forEach:M,forEachSeries:z,forEachLimit:j,forEachOf:h,forEachOfSeries:b,forEachOfLimit:u,inject:P,foldl:P,foldr:reduceRight,select:V,selectLimit:G,selectSeries:W,wrapSync:asyncify,during:de,doDuring:B};r.all=U;r.allLimit=q;r.allSeries=H;r.any=se;r.anyLimit=oe;r.anySeries=le;r.apply=apply;r.applyEach=y;r.applyEachSeries=w;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo$1;r.cargoQueue=cargo;r.compose=compose;r.concat=C;r.concatLimit=R;r.concatSeries=k;r.constant=constant$1;r.default=me;r.detect=A;r.detectLimit=D;r.detectSeries=I;r.dir=L;r.doDuring=B;r.doUntil=doUntil;r.doWhilst=B;r.during=de;r.each=M;r.eachLimit=j;r.eachOf=h;r.eachOfLimit=u;r.eachOfSeries=b;r.eachSeries=z;r.ensureAsync=ensureAsync;r.every=U;r.everyLimit=q;r.everySeries=H;r.filter=V;r.filterLimit=G;r.filterSeries=W;r.find=A;r.findLimit=D;r.findSeries=I;r.flatMap=C;r.flatMapLimit=R;r.flatMapSeries=k;r.foldl=P;r.foldr=reduceRight;r.forEach=M;r.forEachLimit=j;r.forEachOf=h;r.forEachOfLimit=u;r.forEachOfSeries=b;r.forEachSeries=z;r.forever=$;r.groupBy=groupBy;r.groupByLimit=X;r.groupBySeries=groupBySeries;r.inject=P;r.log=K;r.map=g;r.mapLimit=O;r.mapSeries=v;r.mapValues=mapValues;r.mapValuesLimit=J;r.mapValuesSeries=mapValuesSeries;r.memoize=memoize;r.nextTick=Y;r.parallel=parallel;r.parallelLimit=parallelLimit;r.priorityQueue=priorityQueue;r.queue=queue;r.race=ee;r.reduce=P;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=te;r.rejectLimit=re;r.rejectSeries=ie;r.retry=retry;r.retryable=retryable;r.select=V;r.selectLimit=G;r.selectSeries=W;r.seq=seq;r.series=series;r.setImmediate=p;r.some=se;r.someLimit=oe;r.someSeries=le;r.sortBy=pe;r.timeout=timeout;r.times=times;r.timesLimit=timesLimit;r.timesSeries=timesSeries;r.transform=transform;r.tryEach=ce;r.unmemoize=unmemoize;r.until=until;r.waterfall=ue;r.whilst=de;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},4821:(r,i,a)=>{r.exports={parallel:a(644),serial:a(4501),serialOrdered:a(2362)}},3234:r=>{r.exports=abort;function abort(r){Object.keys(r.jobs).forEach(clean.bind(r));r.jobs={}}function clean(r){if(typeof this.jobs[r]=="function"){this.jobs[r]()}}},3784:(r,i,a)=>{var s=a(9919);r.exports=async;function async(r){var i=false;s((function(){i=true}));return function async_callback(a,l){if(i){r(a,l)}else{s((function nextTick_callback(){r(a,l)}))}}}},9919:r=>{r.exports=defer;function defer(r){var i=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(i){i(r)}else{setTimeout(r,0)}}},5748:(r,i,a)=>{var s=a(3784),l=a(3234);r.exports=iterate;function iterate(r,i,a,s){var p=a["keyedList"]?a["keyedList"][a.index]:a.index;a.jobs[p]=runJob(i,p,r[p],(function(r,i){if(!(p in a.jobs)){return}delete a.jobs[p];if(r){l(a)}else{a.results[p]=i}s(r,a.results)}))}function runJob(r,i,a,l){var p;if(r.length==2){p=r(a,s(l))}else{p=r(a,i,s(l))}return p}},8258:r=>{r.exports=state;function state(r,i){var a=!Array.isArray(r),s={index:0,keyedList:a||i?Object.keys(r):null,jobs:{},results:a?{}:[],size:a?Object.keys(r).length:r.length};if(i){s.keyedList.sort(a?i:function(a,s){return i(r[a],r[s])})}return s}},6349:(r,i,a)=>{var s=a(3234),l=a(3784);r.exports=terminator;function terminator(r){if(!Object.keys(this.jobs).length){return}this.index=this.size;s(this);l(r)(null,this.results)}},644:(r,i,a)=>{var s=a(5748),l=a(8258),p=a(6349);r.exports=parallel;function parallel(r,i,a){var c=l(r);while(c.index<(c["keyedList"]||r).length){s(r,i,c,(function(r,i){if(r){a(r,i);return}if(Object.keys(c.jobs).length===0){a(null,c.results);return}}));c.index++}return p.bind(c,a)}},4501:(r,i,a)=>{var s=a(2362);r.exports=serial;function serial(r,i,a){return s(r,i,null,a)}},2362:(r,i,a)=>{var s=a(5748),l=a(8258),p=a(6349);r.exports=serialOrdered;r.exports.ascending=ascending;r.exports.descending=descending;function serialOrdered(r,i,a,c){var d=l(r,a);s(r,i,d,(function iteratorHandler(a,l){if(a){c(a,l);return}d.index++;if(d.index<(d["keyedList"]||r).length){s(r,i,d,iteratorHandler);return}c(null,d.results)}));return p.bind(d,c)}function ascending(r,i){return ri?1:0}function descending(r,i){return-1*ascending(r,i)}},4785:r=>{function isBuffer(r){return Buffer.isBuffer(r)||r instanceof Uint8Array}function isEncoding(r){return Buffer.isEncoding(r)}function alloc(r,i,a){return Buffer.alloc(r,i,a)}function allocUnsafe(r){return Buffer.allocUnsafe(r)}function allocUnsafeSlow(r){return Buffer.allocUnsafeSlow(r)}function byteLength(r,i){return Buffer.byteLength(r,i)}function compare(r,i){return Buffer.compare(r,i)}function concat(r,i){return Buffer.concat(r,i)}function copy(r,i,a,s,l){return toBuffer(r).copy(i,a,s,l)}function equals(r,i){return toBuffer(r).equals(i)}function fill(r,i,a,s,l){return toBuffer(r).fill(i,a,s,l)}function from(r,i,a){return Buffer.from(r,i,a)}function includes(r,i,a,s){return toBuffer(r).includes(i,a,s)}function indexOf(r,i,a,s){return toBuffer(r).indexOf(i,a,s)}function lastIndexOf(r,i,a,s){return toBuffer(r).lastIndexOf(i,a,s)}function swap16(r){return toBuffer(r).swap16()}function swap32(r){return toBuffer(r).swap32()}function swap64(r){return toBuffer(r).swap64()}function toBuffer(r){if(Buffer.isBuffer(r))return r;return Buffer.from(r.buffer,r.byteOffset,r.byteLength)}function toString(r,i,a,s){return toBuffer(r).toString(i,a,s)}function write(r,i,a,s,l){return toBuffer(r).write(i,a,s,l)}function writeDoubleLE(r,i,a){return toBuffer(r).writeDoubleLE(i,a)}function writeFloatLE(r,i,a){return toBuffer(r).writeFloatLE(i,a)}function writeUInt32LE(r,i,a){return toBuffer(r).writeUInt32LE(i,a)}function writeInt32LE(r,i,a){return toBuffer(r).writeInt32LE(i,a)}function readDoubleLE(r,i){return toBuffer(r).readDoubleLE(i)}function readFloatLE(r,i){return toBuffer(r).readFloatLE(i)}function readUInt32LE(r,i){return toBuffer(r).readUInt32LE(i)}function readInt32LE(r,i){return toBuffer(r).readInt32LE(i)}r.exports={isBuffer:isBuffer,isEncoding:isEncoding,alloc:alloc,allocUnsafe:allocUnsafe,allocUnsafeSlow:allocUnsafeSlow,byteLength:byteLength,compare:compare,concat:concat,copy:copy,equals:equals,fill:fill,from:from,includes:includes,indexOf:indexOf,lastIndexOf:lastIndexOf,swap16:swap16,swap32:swap32,swap64:swap64,toBuffer:toBuffer,toString:toString,write:write,writeDoubleLE:writeDoubleLE,writeFloatLE:writeFloatLE,writeUInt32LE:writeUInt32LE,writeInt32LE:writeInt32LE,readDoubleLE:readDoubleLE,readFloatLE:readFloatLE,readUInt32LE:readUInt32LE,readInt32LE:readInt32LE}},8419:r=>{"use strict";r.exports=balanced;function balanced(r,i,a){if(r instanceof RegExp)r=maybeMatch(r,a);if(i instanceof RegExp)i=maybeMatch(i,a);var s=range(r,i,a);return s&&{start:s[0],end:s[1],pre:a.slice(0,s[0]),body:a.slice(s[0]+r.length,s[1]),post:a.slice(s[1]+i.length)}}function maybeMatch(r,i){var a=i.match(r);return a?a[0]:null}balanced.range=range;function range(r,i,a){var s,l,p,c,d;var u=a.indexOf(r);var h=a.indexOf(i,u+1);var g=u;if(u>=0&&h>0){if(r===i){return[u,h]}s=[];p=a.length;while(g>=0&&!d){if(g==u){s.push(g);u=a.indexOf(r,g+1)}else if(s.length==1){d=[s.pop(),h]}else{l=s.pop();if(l=0?u:h}if(s.length){d=[p,c]}}return d}},3990:(r,i,a)=>{var s=a(3512);var l=a(80);var p=a(5976);var c=Function.bind;var d=c.bind(c);function bindApi(r,i,a){var s=d(p,null).apply(null,a?[i,a]:[i]);r.api={remove:s};r.remove=s;["before","error","after","wrap"].forEach((function(s){var p=a?[i,s,a]:[i,s];r[s]=r.api[s]=d(l,null).apply(null,p)}))}function HookSingular(){var r="h";var i={registry:{}};var a=s.bind(null,i,r);bindApi(a,i,r);return a}function HookCollection(){var r={registry:{}};var i=s.bind(null,r);bindApi(i,r);return i}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();r.exports=Hook;r.exports.Hook=Hook;r.exports.Singular=Hook.Singular;r.exports.Collection=Hook.Collection},80:r=>{r.exports=addHook;function addHook(r,i,a,s){var l=s;if(!r.registry[a]){r.registry[a]=[]}if(i==="before"){s=function(r,i){return Promise.resolve().then(l.bind(null,i)).then(r.bind(null,i))}}if(i==="after"){s=function(r,i){var a;return Promise.resolve().then(r.bind(null,i)).then((function(r){a=r;return l(a,i)})).then((function(){return a}))}}if(i==="error"){s=function(r,i){return Promise.resolve().then(r.bind(null,i)).catch((function(r){return l(r,i)}))}}r.registry[a].push({hook:s,orig:l})}},3512:r=>{r.exports=register;function register(r,i,a,s){if(typeof a!=="function"){throw new Error("method for before hook must be a function")}if(!s){s={}}if(Array.isArray(i)){return i.reverse().reduce((function(i,a){return register.bind(null,r,a,i,s)}),a)()}return Promise.resolve().then((function(){if(!r.registry[i]){return a(s)}return r.registry[i].reduce((function(r,i){return i.hook.bind(null,r,s)}),a)()}))}},5976:r=>{r.exports=removeHook;function removeHook(r,i,a){if(!r.registry[i]){return}var s=r.registry[i].map((function(r){return r.orig})).indexOf(a);if(s===-1){return}r.registry[i].splice(s,1)}},84:(r,i,a)=>{var s=a(6548);var l=a(2361).EventEmitter;var p=a(6260);var c=a(6721);var d=a(2781).Stream;i=r.exports=function(r,a){if(Buffer.isBuffer(r)){return i.parse(r)}var s=i.stream();if(r&&r.pipe){r.pipe(s)}else if(r){r.on(a||"data",(function(r){s.write(r)}));r.on("end",(function(){s.end()}))}return s};i.stream=function(r){if(r)return i.apply(null,arguments);var a=null;function getBytes(r,i,s){a={bytes:r,skip:s,cb:function(r){a=null;i(r)}};dispatch()}var u=null;function dispatch(){if(!a){if(v)b=true;return}if(typeof a==="function"){a()}else{var r=u+a.bytes;if(g.length>=r){var i;if(u==null){i=g.splice(0,r);if(!a.skip){i=i.slice()}}else{if(!a.skip){i=g.slice(u,r)}u=r}if(a.skip){a.cb()}else{a.cb(i)}}}}function builder(r){function next(){if(!b)r.next()}var i=words((function(r,i){return function(a){getBytes(r,(function(r){y.set(a,i(r));next()}))}}));i.tap=function(i){r.nest(i,y.store)};i.into=function(i,a){if(!y.get(i))y.set(i,{});var s=y;y=c(s.get(i));r.nest((function(){a.apply(this,arguments);this.tap((function(){y=s}))}),y.store)};i.flush=function(){y.store={};next()};i.loop=function(i){var a=false;r.nest(false,(function loop(){this.vars=y.store;i.call(this,(function(){a=true;next()}),y.store);this.tap(function(){if(a)r.next();else loop.call(this)}.bind(this))}),y.store)};i.buffer=function(r,i){if(typeof i==="string"){i=y.get(i)}getBytes(i,(function(i){y.set(r,i);next()}))};i.skip=function(r){if(typeof r==="string"){r=y.get(r)}getBytes(r,(function(){next()}))};i.scan=function find(r,i){if(typeof i==="string"){i=new Buffer(i)}else if(!Buffer.isBuffer(i)){throw new Error("search must be a Buffer or a string")}var s=0;a=function(){var l=g.indexOf(i,u+s);var p=l-u-s;if(l!==-1){a=null;if(u!=null){y.set(r,g.slice(u,u+s+p));u+=s+p+i.length}else{y.set(r,g.slice(0,s+p));g.splice(0,s+p+i.length)}next();dispatch()}else{p=Math.max(g.length-i.length-u-s,0)}s+=p};dispatch()};i.peek=function(i){u=0;r.nest((function(){i.call(this,y.store);this.tap((function(){u=null}))}))};return i}var h=s.light(builder);h.writable=true;var g=p();h.write=function(r){g.push(r);dispatch()};var y=c();var b=false,v=false;h.end=function(){v=true};h.pipe=d.prototype.pipe;Object.getOwnPropertyNames(l.prototype).forEach((function(r){h[r]=l.prototype[r]}));return h};i.parse=function parse(r){var i=words((function(l,p){return function(c){if(a+l<=r.length){var d=r.slice(a,a+l);a+=l;s.set(c,p(d))}else{s.set(c,null)}return i}}));var a=0;var s=c();i.vars=s.store;i.tap=function(r){r.call(i,s.store);return i};i.into=function(r,a){if(!s.get(r)){s.set(r,{})}var l=s;s=c(l.get(r));a.call(i,s.store);s=l;return i};i.loop=function(r){var a=false;var ender=function(){a=true};while(a===false){r.call(i,ender,s.store)}return i};i.buffer=function(l,p){if(typeof p==="string"){p=s.get(p)}var c=r.slice(a,Math.min(r.length,a+p));a+=p;s.set(l,c);return i};i.skip=function(r){if(typeof r==="string"){r=s.get(r)}a+=r;return i};i.scan=function(l,p){if(typeof p==="string"){p=new Buffer(p)}else if(!Buffer.isBuffer(p)){throw new Error("search must be a Buffer or a string")}s.set(l,null);for(var c=0;c+a<=r.length-p.length+1;c++){for(var d=0;d=r.length};return i};function decodeLEu(r){var i=0;for(var a=0;a{r.exports=function(r){function getset(r,a){var s=i.store;var l=r.split(".");l.slice(0,-1).forEach((function(r){if(s[r]===undefined)s[r]={};s=s[r]}));var p=l[l.length-1];if(arguments.length==1){return s[p]}else{return s[p]=a}}var i={get:function(r){return getset(r)},set:function(r,i){return getset(r,i)},store:r||{}};return i}},9541:function(r){(function(i,a){true?r.exports=a():0})(this,(function(){"use strict";var r=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(r){return r&&r["default"]||r}var load=function(r,i,a={}){var s,l,p;for(s in i){p=i[s];a[s]=(l=r[s])!=null?l:p}return a};var overwrite=function(r,i,a={}){var s,l;for(s in r){l=r[s];if(i[s]!==void 0){a[s]=l}}return a};var i={load:load,overwrite:overwrite};var a;a=class DLList{constructor(r,i){this.incr=r;this.decr=i;this._first=null;this._last=null;this.length=0}push(r){var i;this.length++;if(typeof this.incr==="function"){this.incr()}i={value:r,prev:this._last,next:null};if(this._last!=null){this._last.next=i;this._last=i}else{this._first=this._last=i}return void 0}shift(){var r;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}r=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return r}first(){if(this._first!=null){return this._first.value}}getArray(){var r,i,a;r=this._first;a=[];while(r!=null){a.push((i=r,r=r.next,i.value))}return a}forEachShift(r){var i;i=this.shift();while(i!=null){r(i),i=this.shift()}return void 0}debug(){var r,i,a,s,l;r=this._first;l=[];while(r!=null){l.push((i=r,r=r.next,{value:i.value,prev:(a=i.prev)!=null?a.value:void 0,next:(s=i.next)!=null?s.value:void 0}))}return l}};var s=a;var l;l=class Events{constructor(r){this.instance=r;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(r,i)=>this._addListener(r,"many",i);this.instance.once=(r,i)=>this._addListener(r,"once",i);this.instance.removeAllListeners=(r=null)=>{if(r!=null){return delete this._events[r]}else{return this._events={}}}}_addListener(r,i,a){var s;if((s=this._events)[r]==null){s[r]=[]}this._events[r].push({cb:a,status:i});return this.instance}listenerCount(r){if(this._events[r]!=null){return this._events[r].length}else{return 0}}async trigger(r,...i){var a,s;try{if(r!=="debug"){this.trigger("debug",`Event triggered: ${r}`,i)}if(this._events[r]==null){return}this._events[r]=this._events[r].filter((function(r){return r.status!=="none"}));s=this._events[r].map((async r=>{var a,s;if(r.status==="none"){return}if(r.status==="once"){r.status="none"}try{s=typeof r.cb==="function"?r.cb(...i):void 0;if(typeof(s!=null?s.then:void 0)==="function"){return await s}else{return s}}catch(r){a=r;{this.trigger("error",a)}return null}}));return(await Promise.all(s)).find((function(r){return r!=null}))}catch(r){a=r;{this.trigger("error",a)}return null}}};var p=l;var c,d,u;c=s;d=p;u=class Queues{constructor(r){var i;this.Events=new d(this);this._length=0;this._lists=function(){var a,s,l;l=[];for(i=a=1,s=r;1<=s?a<=s:a>=s;i=1<=s?++a:--a){l.push(new c((()=>this.incr()),(()=>this.decr())))}return l}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(r){return this._lists[r.options.priority].push(r)}queued(r){if(r!=null){return this._lists[r].length}else{return this._length}}shiftAll(r){return this._lists.forEach((function(i){return i.forEachShift(r)}))}getFirst(r=this._lists){var i,a,s;for(i=0,a=r.length;i0){return s}}return[]}shiftLastFrom(r){return this.getFirst(this._lists.slice(r).reverse()).shift()}};var h=u;var g;g=class BottleneckError extends Error{};var y=g;var b,v,w,x,S;x=10;v=5;S=i;b=y;w=class Job{constructor(r,i,a,s,l,p,c,d){this.task=r;this.args=i;this.rejectOnDrop=l;this.Events=p;this._states=c;this.Promise=d;this.options=S.load(a,s);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===s.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((r,i)=>{this._resolve=r;this._reject=i}));this.retryCount=0}_sanitizePriority(r){var i;i=~~r!==r?v:r;if(i<0){return 0}else if(i>x-1){return x-1}else{return i}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:r,message:i="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(r!=null?r:new b(i))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(r){var i;i=this._states.jobStatus(this.options.id);if(!(i===r||r==="DONE"&&i===null)){throw new b(`Invalid job status ${i}, expected ${r}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(r,i){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:r,blocked:i})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(r,i,a,s){var l,p,c;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}p={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",p);try{c=await(r!=null?r.schedule(this.options,this.task,...this.args):this.task(...this.args));if(i()){this.doDone(p);await s(this.options,p);this._assertStatus("DONE");return this._resolve(c)}}catch(r){l=r;return this._onFailure(l,p,i,a,s)}}doExpire(r,i,a){var s,l;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");l={args:this.args,options:this.options,retryCount:this.retryCount};s=new b(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(s,l,r,i,a)}async _onFailure(r,i,a,s,l){var p,c;if(a()){p=await this.Events.trigger("failed",r,i);if(p!=null){c=~~p;this.Events.trigger("retry",`Retrying ${this.options.id} after ${c} ms`,i);this.retryCount++;return s(c)}else{this.doDone(i);await l(this.options,i);this._assertStatus("DONE");return this._reject(r)}}}doDone(r){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",r)}};var _=w;var T,N,P;P=i;T=y;N=class LocalDatastore{constructor(r,i,a){this.instance=r;this.storeOptions=i;this.clientId=this.instance._randomIndex();P.load(a,a,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var r;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(r=this.heartbeat=setInterval((()=>{var r,i,a,s,l;s=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&s>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=s;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&s>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:r,reservoirIncreaseMaximum:a,reservoir:l}=this.storeOptions);this._lastReservoirIncrease=s;i=a!=null?Math.min(r,a-l):r;if(i>0){this.storeOptions.reservoir+=i;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?r.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(r){await this.yieldLoop();return this.instance.Events.trigger("message",r.toString())}async __disconnect__(r){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(r=0){return new this.Promise((function(i,a){return setTimeout(i,r)}))}computePenalty(){var r;return(r=this.storeOptions.penalty)!=null?r:15*this.storeOptions.minTime||5e3}async __updateSettings__(r){await this.yieldLoop();P.overwrite(r,r,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(r){await this.yieldLoop();return this._nextRequest+this.timeout=r}check(r,i){return this.conditionsCheck(r)&&this._nextRequest-i<=0}async __check__(r){var i;await this.yieldLoop();i=Date.now();return this.check(r,i)}async __register__(r,i,a){var s,l;await this.yieldLoop();s=Date.now();if(this.conditionsCheck(i)){this._running+=i;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=i}l=Math.max(this._nextRequest-s,0);this._nextRequest=s+l+this.storeOptions.minTime;return{success:true,wait:l,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(r,i){var a,s,l;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&i>this.storeOptions.maxConcurrent){throw new T(`Impossible to add a job having a weight of ${i} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}s=Date.now();l=this.storeOptions.highWater!=null&&r===this.storeOptions.highWater&&!this.check(i,s);a=this.strategyIsBlock()&&(l||this.isBlocked(s));if(a){this._unblockTime=s+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:l,blocked:a,strategy:this.storeOptions.strategy}}async __free__(r,i){await this.yieldLoop();this._running-=i;this._done+=i;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var O=N;var R,C;R=y;C=class States{constructor(r){this.status=r;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(r){var i,a;i=this._jobs[r];a=i+1;if(i!=null&&a{r[this.status[a]]=i;return r}),{})}};var k=C;var A,D;A=s;D=class Sync{constructor(r,i){this.schedule=this.schedule.bind(this);this.name=r;this.Promise=i;this._running=0;this._queue=new A}isEmpty(){return this._queue.length===0}async _tryToRun(){var r,i,a,s,l,p,c;if(this._running<1&&this._queue.length>0){this._running++;({task:c,args:r,resolve:l,reject:s}=this._queue.shift());i=await async function(){try{p=await c(...r);return function(){return l(p)}}catch(r){a=r;return function(){return s(a)}}}();this._running--;this._tryToRun();return i()}}schedule(r,...i){var a,s,l;l=s=null;a=new this.Promise((function(r,i){l=r;return s=i}));this._queue.push({task:r,args:i,resolve:l,reject:s});this._tryToRun();return a}};var I=D;var L="2.19.5";var B={version:L};var M=Object.freeze({version:L,default:B});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var j,z,U,q,H,V;V=i;j=p;q=require$$2;U=require$$3;H=require$$4;z=function(){class Group{constructor(r={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=r;V.load(this.limiterOptions,this.defaults,this);this.Events=new j(this);this.instances={};this.Bottleneck=pe;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new q(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new U(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(r=""){var i;return(i=this.instances[r])!=null?i:(()=>{var i;i=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",i,r);return i})()}async deleteKey(r=""){var i,a;a=this.instances[r];if(this.connection){i=await this.connection.__runCommand__(["del",...H.allKeys(`${this.id}-${r}`)])}if(a!=null){delete this.instances[r];await a.disconnect()}return a!=null||i>0}limiters(){var r,i,a,s;i=this.instances;a=[];for(r in i){s=i[r];a.push({key:r,limiter:s})}return a}keys(){return Object.keys(this.instances)}async clusterKeys(){var r,i,a,s,l,p,c,d,u;if(this.connection==null){return this.Promise.resolve(this.keys())}p=[];r=null;u=`b_${this.id}-`.length;i="_settings".length;while(r!==0){[d,a]=await this.connection.__runCommand__(["scan",r!=null?r:0,"match",`b_${this.id}-*_settings`,"count",1e4]);r=~~d;for(s=0,c=a.length;s{var r,i,a,s,l,p;l=Date.now();a=this.instances;s=[];for(i in a){p=a[i];try{if(await p._store.__groupCheck__(l)){s.push(this.deleteKey(i))}else{s.push(void 0)}}catch(i){r=i;s.push(p.Events.trigger("error",r))}}return s}),this.timeout/2)).unref==="function"?r.unref():void 0}updateSettings(r={}){V.overwrite(r,this.defaults,this);V.overwrite(r,r,this.limiterOptions);if(r.timeout!=null){return this._startAutoCleanup()}}disconnect(r=true){var i;if(!this.sharedConnection){return(i=this.connection)!=null?i.disconnect(r):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(r);var G=z;var W,$,X;X=i;$=p;W=function(){class Batcher{constructor(r={}){this.options=r;X.load(this.options,this.defaults,this);this.Events=new $(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((r,i)=>this._resolve=r))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(r){var i;this._arr.push(r);i=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return i}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(r);var K=W;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var J=getCjsExportFromNamespace(M);var Q,Y,Z,ee,te,re,ie,ne,ae,se,oe,le=[].splice;re=10;Y=5;oe=i;ie=h;ee=_;te=O;ne=require$$4$1;Z=p;ae=k;se=I;Q=function(){class Bottleneck{constructor(r={},...i){var a,s;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(r,i);oe.load(r,this.instanceDefaults,this);this._queues=new ie(re);this._scheduled={};this._states=new ae(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Z(this);this._submitLock=new se("submit",this.Promise);this._registerLock=new se("register",this.Promise);s=oe.load(r,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){a=oe.load(r,this.redisStoreDefaults,{});return new ne(this,s,a)}else if(this.datastore==="local"){a=oe.load(r,this.localStoreDefaults,{});return new te(this,s,a)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.ref==="function"?r.ref():void 0:void 0}));this._queues.on("zero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.unref==="function"?r.unref():void 0:void 0}))}_validateOptions(r,i){if(!(r!=null&&typeof r==="object"&&i.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=true){return this._store.__disconnect__(r)}chain(r){this._limiter=r;return this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){if(this._scheduled[r]!=null){clearTimeout(this._scheduled[r].expiration);delete this._scheduled[r];return true}else{return false}}async _free(r,i,a,s){var l,p;try{({running:p}=await this._store.__free__(r,a.weight));this.Events.trigger("debug",`Freed ${a.id}`,s);if(p===0&&this.empty()){return this.Events.trigger("idle")}}catch(r){l=r;return this.Events.trigger("error",l)}}_run(r,i,a){var s,l,p;i.doRun();s=this._clearGlobalState.bind(this,r);p=this._run.bind(this,r,i);l=this._free.bind(this,r,i);return this._scheduled[r]={timeout:setTimeout((()=>i.doExecute(this._limiter,s,p,l)),a),expiration:i.options.expiration!=null?setTimeout((function(){return i.doExpire(s,p,l)}),a+i.options.expiration):void 0,job:i}}_drainOne(r){return this._registerLock.schedule((()=>{var i,a,s,l,p;if(this.queued()===0){return this.Promise.resolve(null)}p=this._queues.getFirst();({options:l,args:i}=s=p.first());if(r!=null&&l.weight>r){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${l.id}`,{args:i,options:l});a=this._randomIndex();return this._store.__register__(a,l.weight,l.expiration).then((({success:r,wait:c,reservoir:d})=>{var u;this.Events.trigger("debug",`Drained ${l.id}`,{success:r,args:i,options:l});if(r){p.shift();u=this.empty();if(u){this.Events.trigger("empty")}if(d===0){this.Events.trigger("depleted",u)}this._run(a,s,c);return this.Promise.resolve(l.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(r,i=0){return this._drainOne(r).then((a=>{var s;if(a!=null){s=r!=null?r-a:r;return this._drainAll(s,i+a)}else{return this.Promise.resolve(i)}})).catch((r=>this.Events.trigger("error",r)))}_dropAllQueued(r){return this._queues.shiftAll((function(i){return i.doDrop({message:r})}))}stop(r={}){var i,a;r=oe.load(r,this.stopDefaults);a=r=>{var i;i=()=>{var i;i=this._states.counts;return i[0]+i[1]+i[2]+i[3]===r};return new this.Promise(((r,a)=>{if(i()){return r()}else{return this.on("done",(()=>{if(i()){this.removeAllListeners("done");return r()}}))}}))};i=r.dropWaitingJobs?(this._run=function(i,a){return a.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var i,s,l;s=this._scheduled;for(i in s){l=s[i];if(this.jobStatus(l.job.options.id)==="RUNNING"){clearTimeout(l.timeout);clearTimeout(l.expiration);l.job.doDrop({message:r.dropErrorMessage})}}this._dropAllQueued(r.dropErrorMessage);return a(0)}))))):this.schedule({priority:re-1,weight:0},(()=>a(1)));this._receive=function(i){return i._reject(new Bottleneck.prototype.BottleneckError(r.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return i}async _addToQueue(r){var i,a,s,l,p,c,d;({args:i,options:l}=r);try{({reachedHWM:p,blocked:a,strategy:d}=await this._store.__submit__(this.queued(),l.weight))}catch(a){s=a;this.Events.trigger("debug",`Could not queue ${l.id}`,{args:i,options:l,error:s});r.doDrop({error:s});return false}if(a){r.doDrop();return true}else if(p){c=d===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(l.priority):d===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(l.priority+1):d===Bottleneck.prototype.strategy.OVERFLOW?r:void 0;if(c!=null){c.doDrop()}if(c==null||d===Bottleneck.prototype.strategy.OVERFLOW){if(c==null){r.doDrop()}return p}}r.doQueue(p,a);this._queues.push(r);await this._drainAll();return p}_receive(r){if(this._states.jobStatus(r.options.id)!=null){r._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`));return false}else{r.doReceive();return this._submitLock.schedule(this._addToQueue,r)}}submit(...r){var i,a,s,l,p,c,d;if(typeof r[0]==="function"){p=r,[a,...r]=p,[i]=le.call(r,-1);l=oe.load({},this.jobDefaults)}else{c=r,[l,a,...r]=c,[i]=le.call(r,-1);l=oe.load(l,this.jobDefaults)}d=(...r)=>new this.Promise((function(i,s){return a(...r,(function(...r){return(r[0]!=null?s:i)(r)}))}));s=new ee(d,r,l,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);s.promise.then((function(r){return typeof i==="function"?i(...r):void 0})).catch((function(r){if(Array.isArray(r)){return typeof i==="function"?i(...r):void 0}else{return typeof i==="function"?i(r):void 0}}));return this._receive(s)}schedule(...r){var i,a,s;if(typeof r[0]==="function"){[s,...r]=r;a={}}else{[a,s,...r]=r}i=new ee(s,r,a,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(i);return i.promise}wrap(r){var i,a;i=this.schedule.bind(this);a=function(...a){return i(r.bind(this),...a)};a.withOptions=function(a,...s){return i(a,r,...s)};return a}async updateSettings(r={}){await this._store.__updateSettings__(oe.overwrite(r,this.storeDefaults));oe.overwrite(r,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Z;Bottleneck.version=Bottleneck.prototype.version=J.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=y;Bottleneck.Group=Bottleneck.prototype.Group=G;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=K;Bottleneck.prototype.jobDefaults={priority:Y,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(r);var pe=Q;var ce=pe;return ce}))},1981:(r,i,a)=>{var s=a(8419);r.exports=expandTop;var l="\0SLASH"+Math.random()+"\0";var p="\0OPEN"+Math.random()+"\0";var c="\0CLOSE"+Math.random()+"\0";var d="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function escapeBraces(r){return r.split("\\\\").join(l).split("\\{").join(p).split("\\}").join(c).split("\\,").join(d).split("\\.").join(u)}function unescapeBraces(r){return r.split(l).join("\\").split(p).join("{").split(c).join("}").split(d).join(",").split(u).join(".")}function parseCommaParts(r){if(!r)return[""];var i=[];var a=s("{","}",r);if(!a)return r.split(",");var l=a.pre;var p=a.body;var c=a.post;var d=l.split(",");d[d.length-1]+="{"+p+"}";var u=parseCommaParts(c);if(c.length){d[d.length-1]+=u.shift();d.push.apply(d,u)}i.push.apply(i,d);return i}function expandTop(r){if(!r)return[];if(r.substr(0,2)==="{}"){r="\\{\\}"+r.substr(2)}return expand(escapeBraces(r),true).map(unescapeBraces)}function embrace(r){return"{"+r+"}"}function isPadded(r){return/^-?0\d/.test(r)}function lte(r,i){return r<=i}function gte(r,i){return r>=i}function expand(r,i){var a=[];var l=s("{","}",r);if(!l)return[r];var p=l.pre;var d=l.post.length?expand(l.post,false):[""];if(/\$$/.test(l.pre)){for(var u=0;u=0;if(!b&&!v){if(l.post.match(/,.*\}/)){r=l.pre+"{"+l.body+c+l.post;return expand(r)}return[r]}var w;if(b){w=l.body.split(/\.\./)}else{w=parseCommaParts(l.body);if(w.length===1){w=expand(w[0],false).map(embrace);if(w.length===1){return d.map((function(r){return l.pre+w[0]+r}))}}}var x;if(b){var S=numeric(w[0]);var _=numeric(w[1]);var T=Math.max(w[0].length,w[1].length);var N=w.length==3?Math.abs(numeric(w[2])):1;var P=lte;var O=_0){var D=new Array(A+1).join("0");if(C<0)k="-"+D+k.slice(1);else k=D+k}}}x.push(k)}}else{x=[];for(var I=0;I{r.exports=Buffers;function Buffers(r){if(!(this instanceof Buffers))return new Buffers(r);this.buffers=r||[];this.length=this.buffers.reduce((function(r,i){return r+i.length}),0)}Buffers.prototype.push=function(){for(var r=0;r=0?r:this.length-r;var l=[].slice.call(arguments,2);if(i===undefined){i=this.length-s}else if(i>this.length-s){i=this.length-s}for(var r=0;r0){var h=s-d;if(h+i0){var v=l.slice();v.unshift(y);v.push(b);a.splice.apply(a,[u,1].concat(v));u+=v.length;l=[]}else{a.splice(u,1,y,b);u+=2}}else{p.push(a[u].slice(h));a[u]=a[u].slice(0,h);u++}}if(l.length>0){a.splice.apply(a,[u,0].concat(l));u+=l.length}while(p.lengththis.length)i=this.length;var s=0;for(var l=0;l=i-r?Math.min(h+(i-r)-c,u):u;a[d].copy(p,c,h,g);c+=g-h}return p};Buffers.prototype.pos=function(r){if(r<0||r>=this.length)throw new Error("oob");var i=r,a=0,s=null;for(;;){s=this.buffers[a];if(i=this.buffers[a].length){s=0;a++;if(a>=this.buffers.length){return-1}}var u=this.buffers[a][s];if(u==r[l]){if(l==0){p={i:a,j:s,pos:c}}l++;if(l==r.length){return p.pos}}else if(l!=0){a=p.i;s=p.j;c=p.pos;l=0}s++;c++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(r,i,a){return this.slice(i,a).toString(r)}},6548:(r,i,a)=>{var s=a(8717);var l=a(2361).EventEmitter;r.exports=Chainsaw;function Chainsaw(r){var i=Chainsaw.saw(r,{});var a=r.call(i.handlers,i);if(a!==undefined)i.handlers=a;i.record();return i.chain()}Chainsaw.light=function ChainsawLight(r){var i=Chainsaw.saw(r,{});var a=r.call(i.handlers,i);if(a!==undefined)i.handlers=a;return i.chain()};Chainsaw.saw=function(r,i){var a=new l;a.handlers=i;a.actions=[];a.chain=function(){var r=s(a.handlers).map((function(i){if(this.isRoot)return i;var s=this.path;if(typeof i==="function"){this.update((function(){a.actions.push({path:s,args:[].slice.call(arguments)});return r}))}}));process.nextTick((function(){a.emit("begin");a.next()}));return r};a.pop=function(){return a.actions.shift()};a.next=function(){var r=a.pop();if(!r){a.emit("end")}else if(!r.trap){var i=a.handlers;r.path.forEach((function(r){i=i[r]}));i.apply(a.handlers,r.args)}};a.nest=function(i){var s=[].slice.call(arguments,1);var l=true;if(typeof i==="boolean"){var l=i;i=s.shift()}var p=Chainsaw.saw(r,{});var c=r.call(p.handlers,p);if(c!==undefined)p.handlers=c;if("undefined"!==typeof a.step){p.record()}i.apply(p.chain(),s);if(l!==false)p.on("end",a.next)};a.record=function(){upgradeChainsaw(a)};["trap","down","jump"].forEach((function(r){a[r]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return a};function upgradeChainsaw(r){r.step=0;r.pop=function(){return r.actions[r.step++]};r.trap=function(i,a){var s=Array.isArray(i)?i:[i];r.actions.push({path:s,step:r.step,cb:a,trap:true})};r.down=function(i){var a=(Array.isArray(i)?i:[i]).join("/");var s=r.actions.slice(r.step).map((function(i){if(i.trap&&i.step<=r.step)return false;return i.path.join("/")==a})).indexOf(true);if(s>=0)r.step+=s;else r.step=r.actions.length;var l=r.actions[r.step-1];if(l&&l.trap){r.step=l.step;l.cb()}else r.next()};r.jump=function(i){r.step=i;r.next()}}},4991:(r,i,a)=>{var s=a(3837);var l=a(2781).Stream;var p=a(7386);r.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}s.inherits(CombinedStream,l);CombinedStream.create=function(r){var i=new this;r=r||{};for(var a in r){i[a]=r[a]}return i};CombinedStream.isStreamLike=function(r){return typeof r!=="function"&&typeof r!=="string"&&typeof r!=="boolean"&&typeof r!=="number"&&!Buffer.isBuffer(r)};CombinedStream.prototype.append=function(r){var i=CombinedStream.isStreamLike(r);if(i){if(!(r instanceof p)){var a=p.create(r,{maxDataSize:Infinity,pauseStream:this.pauseStreams});r.on("data",this._checkDataSize.bind(this));r=a}this._handleErrors(r);if(this.pauseStreams){r.pause()}}this._streams.push(r);return this};CombinedStream.prototype.pipe=function(r,i){l.prototype.pipe.call(this,r,i);this.resume();return r};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var r=this._streams.shift();if(typeof r=="undefined"){this.end();return}if(typeof r!=="function"){this._pipeNext(r);return}var i=r;i(function(r){var i=CombinedStream.isStreamLike(r);if(i){r.on("data",this._checkDataSize.bind(this));this._handleErrors(r)}this._pipeNext(r)}.bind(this))};CombinedStream.prototype._pipeNext=function(r){this._currentStream=r;var i=CombinedStream.isStreamLike(r);if(i){r.on("end",this._getNext.bind(this));r.pipe(this,{end:false});return}var a=r;this.write(a);this._getNext()};CombinedStream.prototype._handleErrors=function(r){var i=this;r.on("error",(function(r){i._emitError(r)}))};CombinedStream.prototype.write=function(r){this.emit("data",r)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(r))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var r=this;this._streams.forEach((function(i){if(!i.dataSize){return}r.dataSize+=i.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(r){this._reset();this.emit("error",r)}},5318:r=>{var i=r.exports=function(){};i.prototype.getName=function(){};i.prototype.getSize=function(){};i.prototype.getLastModifiedDate=function(){};i.prototype.isDirectory=function(){}},8491:(r,i,a)=>{var s=a(3837).inherits;var l=a(6070);var p=a(388).Transform;var c=a(5318);var d=a(2053);var u=r.exports=function(r){if(!(this instanceof u)){return new u(r)}p.call(this,r);this.offset=0;this._archive={finish:false,finished:false,processing:false}};s(u,p);u.prototype._appendBuffer=function(r,i,a){};u.prototype._appendStream=function(r,i,a){};u.prototype._emitErrorCallback=function(r){if(r){this.emit("error",r)}};u.prototype._finish=function(r){};u.prototype._normalizeEntry=function(r){};u.prototype._transform=function(r,i,a){a(null,r)};u.prototype.entry=function(r,i,a){i=i||null;if(typeof a!=="function"){a=this._emitErrorCallback.bind(this)}if(!(r instanceof c)){a(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){a(new Error("unacceptable entry after finish"));return}if(this._archive.processing){a(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(r);this._entry=r;i=d.normalizeInputSource(i);if(Buffer.isBuffer(i)){this._appendBuffer(r,i,a)}else if(l(i)){this._appendStream(r,i,a)}else{this._archive.processing=false;a(new Error("input source must be valid Stream or Buffer instance"));return}return this};u.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};u.prototype.getBytesWritten=function(){return this.offset};u.prototype.write=function(r,i){if(r){this.offset+=r.length}return p.prototype.write.call(this,r,i)}},8762:r=>{r.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},923:(r,i,a)=>{var s=a(2168);var l=1<<3;var p=1<<0;var c=1<<2;var d=1<<1;var u=1<<6;var h=1<<11;var g=r.exports=function(){if(!(this instanceof g)){return new g}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};g.prototype.encode=function(){return s.getShortBytes((this.descriptor?l:0)|(this.utf8?h:0)|(this.encryption?p:0)|(this.strongEncryption?u:0))};g.prototype.parse=function(r,i){var a=s.getShortBytesValue(r,i);var y=new g;y.useDataDescriptor((a&l)!==0);y.useUTF8ForNames((a&h)!==0);y.useStrongEncryption((a&u)!==0);y.useEncryption((a&p)!==0);y.setSlidingDictionarySize((a&d)!==0?8192:4096);y.setNumberOfShannonFanoTrees((a&c)!==0?3:2);return y};g.prototype.setNumberOfShannonFanoTrees=function(r){this.numberOfShannonFanoTrees=r};g.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};g.prototype.setSlidingDictionarySize=function(r){this.slidingDictionarySize=r};g.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};g.prototype.useDataDescriptor=function(r){this.descriptor=r};g.prototype.usesDataDescriptor=function(){return this.descriptor};g.prototype.useEncryption=function(r){this.encryption=r};g.prototype.usesEncryption=function(){return this.encryption};g.prototype.useStrongEncryption=function(r){this.strongEncryption=r};g.prototype.usesStrongEncryption=function(){return this.strongEncryption};g.prototype.useUTF8ForNames=function(r){this.utf8=r};g.prototype.usesUTF8ForNames=function(){return this.utf8}},6703:r=>{r.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},2168:r=>{var i=r.exports={};i.dateToDos=function(r,i){i=i||false;var a=i?r.getFullYear():r.getUTCFullYear();if(a<1980){return 2162688}else if(a>=2044){return 2141175677}var s={year:a,month:i?r.getMonth():r.getUTCMonth(),date:i?r.getDate():r.getUTCDate(),hours:i?r.getHours():r.getUTCHours(),minutes:i?r.getMinutes():r.getUTCMinutes(),seconds:i?r.getSeconds():r.getUTCSeconds()};return s.year-1980<<25|s.month+1<<21|s.date<<16|s.hours<<11|s.minutes<<5|s.seconds/2};i.dosToDate=function(r){return new Date((r>>25&127)+1980,(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(r&31)<<1)};i.fromDosTime=function(r){return i.dosToDate(r.readUInt32LE(0))};i.getEightBytes=function(r){var i=Buffer.alloc(8);i.writeUInt32LE(r%4294967296,0);i.writeUInt32LE(r/4294967296|0,4);return i};i.getShortBytes=function(r){var i=Buffer.alloc(2);i.writeUInt16LE((r&65535)>>>0,0);return i};i.getShortBytesValue=function(r,i){return r.readUInt16LE(i)};i.getLongBytes=function(r){var i=Buffer.alloc(4);i.writeUInt32LE((r&4294967295)>>>0,0);return i};i.getLongBytesValue=function(r,i){return r.readUInt32LE(i)};i.toDosTime=function(r){return i.getLongBytes(i.dateToDos(r))}},9244:(r,i,a)=>{var s=a(3837).inherits;var l=a(7674);var p=a(5318);var c=a(923);var d=a(6703);var u=a(8762);var h=a(2168);var g=r.exports=function(r){if(!(this instanceof g)){return new g(r)}p.call(this);this.platform=u.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new c;this.crc=0;this.time=-1;this.minver=u.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(r){this.setName(r)}};s(g,p);g.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};g.prototype.getComment=function(){return this.comment!==null?this.comment:""};g.prototype.getCompressedSize=function(){return this.csize};g.prototype.getCrc=function(){return this.crc};g.prototype.getExternalAttributes=function(){return this.exattr};g.prototype.getExtra=function(){return this.extra!==null?this.extra:u.EMPTY};g.prototype.getGeneralPurposeBit=function(){return this.gpb};g.prototype.getInternalAttributes=function(){return this.inattr};g.prototype.getLastModifiedDate=function(){return this.getTime()};g.prototype.getLocalFileDataExtra=function(){return this.getExtra()};g.prototype.getMethod=function(){return this.method};g.prototype.getName=function(){return this.name};g.prototype.getPlatform=function(){return this.platform};g.prototype.getSize=function(){return this.size};g.prototype.getTime=function(){return this.time!==-1?h.dosToDate(this.time):-1};g.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};g.prototype.getUnixMode=function(){return this.platform!==u.PLATFORM_UNIX?0:this.getExternalAttributes()>>u.SHORT_SHIFT&u.SHORT_MASK};g.prototype.getVersionNeededToExtract=function(){return this.minver};g.prototype.setComment=function(r){if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=r};g.prototype.setCompressedSize=function(r){if(r<0){throw new Error("invalid entry compressed size")}this.csize=r};g.prototype.setCrc=function(r){if(r<0){throw new Error("invalid entry crc32")}this.crc=r};g.prototype.setExternalAttributes=function(r){this.exattr=r>>>0};g.prototype.setExtra=function(r){this.extra=r};g.prototype.setGeneralPurposeBit=function(r){if(!(r instanceof c)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=r};g.prototype.setInternalAttributes=function(r){this.inattr=r};g.prototype.setMethod=function(r){if(r<0){throw new Error("invalid entry compression method")}this.method=r};g.prototype.setName=function(r,i=false){r=l(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(i){r=`/${r}`}if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=r};g.prototype.setPlatform=function(r){this.platform=r};g.prototype.setSize=function(r){if(r<0){throw new Error("invalid entry size")}this.size=r};g.prototype.setTime=function(r,i){if(!(r instanceof Date)){throw new Error("invalid entry time")}this.time=h.dateToDos(r,i)};g.prototype.setUnixMode=function(r){r|=this.isDirectory()?u.S_IFDIR:u.S_IFREG;var i=0;i|=r<u.ZIP64_MAGIC||this.size>u.ZIP64_MAGIC}},477:(r,i,a)=>{var s=a(3837).inherits;var l=a(980);var{CRC32Stream:p}=a(948);var{DeflateCRC32Stream:c}=a(948);var d=a(8491);var u=a(9244);var h=a(923);var g=a(8762);var y=a(2053);var b=a(2168);var v=r.exports=function(r){if(!(this instanceof v)){return new v(r)}r=this.options=this._defaults(r);d.call(this,r);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:r.forceZip64,forceLocalTime:r.forceLocalTime}};s(v,d);v.prototype._afterAppend=function(r){this._entries.push(r);if(r.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(r)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};v.prototype._appendBuffer=function(r,i,a){if(i.length===0){r.setMethod(g.METHOD_STORED)}var s=r.getMethod();if(s===g.METHOD_STORED){r.setSize(i.length);r.setCompressedSize(i.length);r.setCrc(l.buf(i)>>>0)}this._writeLocalFileHeader(r);if(s===g.METHOD_STORED){this.write(i);this._afterAppend(r);a(null,r);return}else if(s===g.METHOD_DEFLATED){this._smartStream(r,a).end(i);return}else{a(new Error("compression method "+s+" not implemented"));return}};v.prototype._appendStream=function(r,i,a){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(r);var s=this._smartStream(r,a);i.once("error",(function(r){s.emit("error",r);s.end()}));i.pipe(s)};v.prototype._defaults=function(r){if(typeof r!=="object"){r={}}if(typeof r.zlib!=="object"){r.zlib={}}if(typeof r.zlib.level!=="number"){r.zlib.level=g.ZLIB_BEST_SPEED}r.forceZip64=!!r.forceZip64;r.forceLocalTime=!!r.forceLocalTime;return r};v.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(r){this._writeCentralFileHeader(r)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};v.prototype._normalizeEntry=function(r){if(r.getMethod()===-1){r.setMethod(g.METHOD_DEFLATED)}if(r.getMethod()===g.METHOD_DEFLATED){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR)}if(r.getTime()===-1){r.setTime(new Date,this._archive.forceLocalTime)}r._offsets={file:0,data:0,contents:0}};v.prototype._smartStream=function(r,i){var a=r.getMethod()===g.METHOD_DEFLATED;var s=a?new c(this.options.zlib):new p;var l=null;function handleStuff(){var a=s.digest().readUInt32BE(0);r.setCrc(a);r.setSize(s.size());r.setCompressedSize(s.size(true));this._afterAppend(r);i(l,r)}s.once("end",handleStuff.bind(this));s.once("error",(function(r){l=r}));s.pipe(this,{end:false});return s};v.prototype._writeCentralDirectoryEnd=function(){var r=this._entries.length;var i=this._archive.centralLength;var a=this._archive.centralOffset;if(this.isZip64()){r=g.ZIP64_MAGIC_SHORT;i=g.ZIP64_MAGIC;a=g.ZIP64_MAGIC}this.write(b.getLongBytes(g.SIG_EOCD));this.write(g.SHORT_ZERO);this.write(g.SHORT_ZERO);this.write(b.getShortBytes(r));this.write(b.getShortBytes(r));this.write(b.getLongBytes(i));this.write(b.getLongBytes(a));var s=this.getComment();var l=Buffer.byteLength(s);this.write(b.getShortBytes(l));this.write(s)};v.prototype._writeCentralDirectoryZip64=function(){this.write(b.getLongBytes(g.SIG_ZIP64_EOCD));this.write(b.getEightBytes(44));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._archive.centralLength));this.write(b.getEightBytes(this._archive.centralOffset));this.write(b.getLongBytes(g.SIG_ZIP64_EOCD_LOC));this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(b.getLongBytes(1))};v.prototype._writeCentralFileHeader=function(r){var i=r.getGeneralPurposeBit();var a=r.getMethod();var s=r._offsets.file;var l=r.getSize();var p=r.getCompressedSize();if(r.isZip64()||s>g.ZIP64_MAGIC){l=g.ZIP64_MAGIC;p=g.ZIP64_MAGIC;s=g.ZIP64_MAGIC;r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64);var c=Buffer.concat([b.getShortBytes(g.ZIP64_EXTRA_ID),b.getShortBytes(24),b.getEightBytes(r.getSize()),b.getEightBytes(r.getCompressedSize()),b.getEightBytes(r._offsets.file)],28);r.setExtra(c)}this.write(b.getLongBytes(g.SIG_CFH));this.write(b.getShortBytes(r.getPlatform()<<8|g.VERSION_MADEBY));this.write(b.getShortBytes(r.getVersionNeededToExtract()));this.write(i.encode());this.write(b.getShortBytes(a));this.write(b.getLongBytes(r.getTimeDos()));this.write(b.getLongBytes(r.getCrc()));this.write(b.getLongBytes(p));this.write(b.getLongBytes(l));var d=r.getName();var u=r.getComment();var h=r.getCentralDirectoryExtra();if(i.usesUTF8ForNames()){d=Buffer.from(d);u=Buffer.from(u)}this.write(b.getShortBytes(d.length));this.write(b.getShortBytes(h.length));this.write(b.getShortBytes(u.length));this.write(g.SHORT_ZERO);this.write(b.getShortBytes(r.getInternalAttributes()));this.write(b.getLongBytes(r.getExternalAttributes()));this.write(b.getLongBytes(s));this.write(d);this.write(h);this.write(u)};v.prototype._writeDataDescriptor=function(r){this.write(b.getLongBytes(g.SIG_DD));this.write(b.getLongBytes(r.getCrc()));if(r.isZip64()){this.write(b.getEightBytes(r.getCompressedSize()));this.write(b.getEightBytes(r.getSize()))}else{this.write(b.getLongBytes(r.getCompressedSize()));this.write(b.getLongBytes(r.getSize()))}};v.prototype._writeLocalFileHeader=function(r){var i=r.getGeneralPurposeBit();var a=r.getMethod();var s=r.getName();var l=r.getLocalFileDataExtra();if(r.isZip64()){i.useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64)}if(i.usesUTF8ForNames()){s=Buffer.from(s)}r._offsets.file=this.offset;this.write(b.getLongBytes(g.SIG_LFH));this.write(b.getShortBytes(r.getVersionNeededToExtract()));this.write(i.encode());this.write(b.getShortBytes(a));this.write(b.getLongBytes(r.getTimeDos()));r._offsets.data=this.offset;if(i.usesDataDescriptor()){this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(g.LONG_ZERO)}else{this.write(b.getLongBytes(r.getCrc()));this.write(b.getLongBytes(r.getCompressedSize()));this.write(b.getLongBytes(r.getSize()))}this.write(b.getShortBytes(s.length));this.write(b.getShortBytes(l.length));this.write(s);this.write(l);r._offsets.contents=this.offset};v.prototype.getComment=function(r){return this._archive.comment!==null?this._archive.comment:""};v.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>g.ZIP64_MAGIC_SHORT||this._archive.centralLength>g.ZIP64_MAGIC||this._archive.centralOffset>g.ZIP64_MAGIC};v.prototype.setComment=function(r){this._archive.comment=r}},9738:(r,i,a)=>{r.exports={ArchiveEntry:a(5318),ZipArchiveEntry:a(9244),ArchiveOutputStream:a(8491),ZipArchiveOutputStream:a(477)}},2053:(r,i,a)=>{var s=a(2781).Stream;var l=a(388).PassThrough;var p=a(6070);var c=r.exports={};c.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(p(r)&&!r._readableState){var i=new l;r.pipe(i);return i}return r}},326:(r,i,a)=>{function isArray(r){if(Array.isArray){return Array.isArray(r)}return objectToString(r)==="[object Array]"}i.isArray=isArray;function isBoolean(r){return typeof r==="boolean"}i.isBoolean=isBoolean;function isNull(r){return r===null}i.isNull=isNull;function isNullOrUndefined(r){return r==null}i.isNullOrUndefined=isNullOrUndefined;function isNumber(r){return typeof r==="number"}i.isNumber=isNumber;function isString(r){return typeof r==="string"}i.isString=isString;function isSymbol(r){return typeof r==="symbol"}i.isSymbol=isSymbol;function isUndefined(r){return r===void 0}i.isUndefined=isUndefined;function isRegExp(r){return objectToString(r)==="[object RegExp]"}i.isRegExp=isRegExp;function isObject(r){return typeof r==="object"&&r!==null}i.isObject=isObject;function isDate(r){return objectToString(r)==="[object Date]"}i.isDate=isDate;function isError(r){return objectToString(r)==="[object Error]"||r instanceof Error}i.isError=isError;function isFunction(r){return typeof r==="function"}i.isFunction=isFunction;function isPrimitive(r){return r===null||typeof r==="boolean"||typeof r==="number"||typeof r==="string"||typeof r==="symbol"||typeof r==="undefined"}i.isPrimitive=isPrimitive;i.isBuffer=a(4300).Buffer.isBuffer;function objectToString(r){return Object.prototype.toString.call(r)}},980:(r,i)=>{ +var a=s(66060);var l=s(56757);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=l.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new a(r)};Zip.prototype.append=function(r,i,s){this.engine.entry(r,i,s)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},59883:function(r,i){(function(r,s){true?s(i):0})(this,(function(r){"use strict";function apply(r,...i){return(...s)=>r(...i,...s)}function initialParams(r){return function(...i){var s=i.pop();return r.call(this,i,s)}}var i=typeof queueMicrotask==="function"&&queueMicrotask;var s=typeof setImmediate==="function"&&setImmediate;var a=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(i,...s)=>r((()=>i(...s)))}var l;if(i){l=queueMicrotask}else if(s){l=setImmediate}else if(a){l=process.nextTick}else{l=fallback}var c=wrap(l);function asyncify(r){if(isAsync(r)){return function(...i){const s=i.pop();const a=r.apply(this,i);return handlePromise(a,s)}}return initialParams((function(i,s){var a;try{a=r.apply(this,i)}catch(r){return s(r)}if(a&&typeof a.then==="function"){return handlePromise(a,s)}else{s(null,a)}}))}function handlePromise(r,i){return r.then((r=>{invokeCallback(i,null,r)}),(r=>{invokeCallback(i,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,i,s){try{r(i,s)}catch(r){c((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,i){if(!i)i=r.length;if(!i)throw new Error("arity is undefined");function awaitable(...s){if(typeof s[i-1]==="function"){return r.apply(this,s)}return new Promise(((a,l)=>{s[i-1]=(r,...i)=>{if(r)return l(r);a(i.length>1?i:i[0])};r.apply(this,s)}))}return awaitable}function applyEach$1(r){return function applyEach(i,...s){const a=awaitify((function(a){var l=this;return r(i,((r,i)=>{wrapAsync(r).apply(l,s.concat(i))}),a)}));return a}}function _asyncMap(r,i,s,a){i=i||[];var l=[];var c=0;var p=wrapAsync(s);return r(i,((r,i,s)=>{var a=c++;p(r,((r,i)=>{l[a]=i;s(r)}))}),(r=>{a(r,l)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const p={};var d=p;function once(r){function wrapper(...i){if(r===null)return;var s=r;r=null;s.apply(this,i)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var i=-1;var s=r.length;return function next(){return++i=i||p||l)return;p=true;r.next().then((({value:r,done:i})=>{if(c||l)return;p=false;if(i){l=true;if(u<=0){a(null)}return}u++;s(r,A,iterateeCallback);A++;replenish()})).catch(handleError)}function iterateeCallback(r,i){u-=1;if(c)return;if(r)return handleError(r);if(r===false){l=true;c=true;return}if(i===d||l&&u<=0){l=true;return a(null)}replenish()}function handleError(r){if(c)return;p=false;l=true;a(r)}replenish()}var eachOfLimit$2=r=>(i,s,a)=>{a=once(a);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!i){return a(null)}if(isAsyncGenerator(i)){return asyncEachOfLimit(i,r,s,a)}if(isAsyncIterable(i)){return asyncEachOfLimit(i[Symbol.asyncIterator](),r,s,a)}var l=createIterator(i);var c=false;var p=false;var u=0;var A=false;function iterateeCallback(r,i){if(p)return;u-=1;if(r){c=true;a(r)}else if(r===false){c=true;p=true}else if(i===d||c&&u<=0){c=true;return a(null)}else if(!A){replenish()}}function replenish(){A=true;while(u1?a:a[0])}callback[v]=new Promise(((s,a)=>{r=s,i=a}));return callback}function auto(r,i,s){if(typeof i!=="number"){s=i;i=null}s=once(s||promiseCallback());var a=Object.keys(r).length;if(!a){return s(null)}if(!i){i=a}var l={};var c=0;var p=false;var d=false;var u=Object.create(null);var A=[];var h=[];var g={};Object.keys(r).forEach((i=>{var s=r[i];if(!Array.isArray(s)){enqueueTask(i,[s]);h.push(i);return}var a=s.slice(0,s.length-1);var l=a.length;if(l===0){enqueueTask(i,s);h.push(i);return}g[i]=l;a.forEach((c=>{if(!r[c]){throw new Error("async.auto task `"+i+"` has a non-existent dependency `"+c+"` in "+a.join(", "))}addListener(c,(()=>{l--;if(l===0){enqueueTask(i,s)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(r,i){A.push((()=>runTask(r,i)))}function processQueue(){if(p)return;if(A.length===0&&c===0){return s(null,l)}while(A.length&&cr()));processQueue()}function runTask(r,i){if(d)return;var a=onlyOnce(((i,...a)=>{c--;if(i===false){p=true;return}if(a.length<2){[a]=a}if(i){var A={};Object.keys(l).forEach((r=>{A[r]=l[r]}));A[r]=a;d=true;u=Object.create(null);if(p)return;s(i,A)}else{l[r]=a;taskComplete(r)}}));c++;var A=wrapAsync(i[i.length-1]);if(i.length>1){A(l,a)}else{A(a)}}function checkForDeadlocks(){var r;var i=0;while(h.length){r=h.pop();i++;getDependents(r).forEach((r=>{if(--g[r]===0){h.push(r)}}))}if(i!==a){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(i){var s=[];Object.keys(r).forEach((a=>{const l=r[a];if(Array.isArray(l)&&l.indexOf(i)>=0){s.push(a)}}));return s}return s[v]}var B=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var w=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var I=/,/;var S=/(=.+)?(\s*)$/;function stripComments(r){let i="";let s=0;let a=r.indexOf("*/");while(sr.replace(S,"").trim()))}function autoInject(r,i){var s={};Object.keys(r).forEach((i=>{var a=r[i];var l;var c=isAsync(a);var p=!c&&a.length===1||c&&a.length===0;if(Array.isArray(a)){l=[...a];a=l.pop();s[i]=l.concat(l.length>0?newTask:a)}else if(p){s[i]=a}else{l=parseParams(a);if(a.length===0&&!c&&l.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!c)l.pop();s[i]=l.concat(newTask)}function newTask(r,i){var s=l.map((i=>r[i]));s.push(i);wrapAsync(a)(...s)}}));return auto(s,i)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(r){if(r.prev)r.prev.next=r.next;else this.head=r.next;if(r.next)r.next.prev=r.prev;else this.tail=r.prev;r.prev=r.next=null;this.length-=1;return r}empty(){while(this.head)this.shift();return this}insertAfter(r,i){i.prev=r;i.next=r.next;if(r.next)r.next.prev=i;else this.tail=i;r.next=i;this.length+=1}insertBefore(r,i){i.prev=r.prev;i.next=r;if(r.prev)r.prev.next=i;else this.head=i;r.prev=i;this.length+=1}unshift(r){if(this.head)this.insertBefore(this.head,r);else setInitial(this,r)}push(r){if(this.tail)this.insertAfter(this.tail,r);else setInitial(this,r)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var r=this.head;while(r){yield r.data;r=r.next}}remove(r){var i=this.head;while(i){var{next:s}=i;if(r(i)){this.removeLink(i)}i=s}return this}}function setInitial(r,i){r.length=1;r.head=r.tail=i}function queue$1(r,i,s){if(i==null){i=1}else if(i===0){throw new RangeError("Concurrency must not be zero")}var a=wrapAsync(r);var l=0;var p=[];const d={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(r,i){d[r].push(i)}function once(r,i){const handleAndRemove=(...s)=>{off(r,handleAndRemove);i(...s)};d[r].push(handleAndRemove)}function off(r,i){if(!r)return Object.keys(d).forEach((r=>d[r]=[]));if(!i)return d[r]=[];d[r]=d[r].filter((r=>r!==i))}function trigger(r,...i){d[r].forEach((r=>r(...i)))}var u=false;function _insert(r,i,s,a){if(a!=null&&typeof a!=="function"){throw new Error("task callback must be a function")}h.started=true;var l,p;function promiseCallback(r,...i){if(r)return s?p(r):l();if(i.length<=1)return l(i[0]);l(i)}var d=h._createTaskItem(r,s?promiseCallback:a||promiseCallback);if(i){h._tasks.unshift(d)}else{h._tasks.push(d)}if(!u){u=true;c((()=>{u=false;h.process()}))}if(s||!a){return new Promise(((r,i)=>{l=r;p=i}))}}function _createCB(r){return function(i,...s){l-=1;for(var a=0,c=r.length;a0){p.splice(u,1)}d.callback(i,...s);if(i!=null){trigger("error",i,d.data)}}if(l<=h.concurrency-h.buffer){trigger("unsaturated")}if(h.idle()){trigger("drain")}h.process()}}function _maybeDrain(r){if(r.length===0&&h.idle()){c((()=>trigger("drain")));return true}return false}const eventMethod=r=>i=>{if(!i){return new Promise(((i,s)=>{once(r,((r,a)=>{if(r)return s(r);i(a)}))}))}off(r);on(r,i)};var A=false;var h={_tasks:new DLL,_createTaskItem(r,i){return{data:r,callback:i}},*[Symbol.iterator](){yield*h._tasks[Symbol.iterator]()},concurrency:i,payload:s,buffer:i/4,started:false,paused:false,push(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,false,i)))}return _insert(r,false,false,i)},pushAsync(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,true,i)))}return _insert(r,false,true,i)},kill(){off();h._tasks.empty()},unshift(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,false,i)))}return _insert(r,true,false,i)},unshiftAsync(r,i){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,true,i)))}return _insert(r,true,true,i)},remove(r){h._tasks.remove(r)},process(){if(A){return}A=true;while(!h.paused&&l{l(i,r,((r,s)=>{i=s;a(r)}))}),(r=>a(r,i)))}var Q=awaitify(reduce,4);function seq(...r){var i=r.map(wrapAsync);return function(...r){var s=this;var a=r[r.length-1];if(typeof a=="function"){r.pop()}else{a=promiseCallback()}Q(i,r,((r,i,a)=>{i.apply(s,r.concat(((r,...i)=>{a(r,i)})))}),((r,i)=>a(r,...i)));return a[v]}}function compose(...r){return seq(...r.reverse())}function mapLimit(r,i,s,a){return _asyncMap(eachOfLimit$2(i),r,s,a)}var x=awaitify(mapLimit,4);function concatLimit(r,i,s,a){var l=wrapAsync(s);return x(r,i,((r,i)=>{l(r,((r,...s)=>{if(r)return i(r);return i(r,s)}))}),((r,i)=>{var s=[];for(var l=0;l{var p=false;var u;const A=wrapAsync(l);s(a,((s,a,l)=>{A(s,((a,c)=>{if(a||a===false)return l(a);if(r(c)&&!u){p=true;u=i(true,s);return l(null,d)}l()}))}),(r=>{if(r)return c(r);c(null,p?u:i(false))}))}}function detect(r,i,s){return _createTester((r=>r),((r,i)=>i))(A,r,i,s)}var D=awaitify(detect,3);function detectLimit(r,i,s,a){return _createTester((r=>r),((r,i)=>i))(eachOfLimit$2(i),r,s,a)}var _=awaitify(detectLimit,4);function detectSeries(r,i,s){return _createTester((r=>r),((r,i)=>i))(eachOfLimit$2(1),r,i,s)}var k=awaitify(detectSeries,3);function consoleFunc(r){return(i,...s)=>wrapAsync(i)(...s,((i,...s)=>{if(typeof console==="object"){if(i){if(console.error){console.error(i)}}else if(console[r]){s.forEach((i=>console[r](i)))}}}))}var P=consoleFunc("dir");function doWhilst(r,i,s){s=onlyOnce(s);var a=wrapAsync(r);var l=wrapAsync(i);var c;function next(r,...i){if(r)return s(r);if(r===false)return;c=i;l(...i,check)}function check(r,i){if(r)return s(r);if(r===false)return;if(!i)return s(null,...c);a(next)}return check(null,true)}var O=awaitify(doWhilst,3);function doUntil(r,i,s){const a=wrapAsync(i);return O(r,((...r)=>{const i=r.pop();a(...r,((r,s)=>i(r,!s)))}),s)}function _withoutIndex(r){return(i,s,a)=>r(i,a)}function eachLimit$2(r,i,s){return A(r,_withoutIndex(wrapAsync(i)),s)}var L=awaitify(eachLimit$2,3);function eachLimit(r,i,s,a){return eachOfLimit$2(i)(r,_withoutIndex(wrapAsync(s)),a)}var M=awaitify(eachLimit,4);function eachSeries(r,i,s){return M(r,1,i,s)}var U=awaitify(eachSeries,3);function ensureAsync(r){if(isAsync(r))return r;return function(...i){var s=i.pop();var a=true;i.push(((...r)=>{if(a){c((()=>s(...r)))}else{s(...r)}}));r.apply(this,i);a=false}}function every(r,i,s){return _createTester((r=>!r),(r=>!r))(A,r,i,s)}var H=awaitify(every,3);function everyLimit(r,i,s,a){return _createTester((r=>!r),(r=>!r))(eachOfLimit$2(i),r,s,a)}var j=awaitify(everyLimit,4);function everySeries(r,i,s){return _createTester((r=>!r),(r=>!r))(y,r,i,s)}var q=awaitify(everySeries,3);function filterArray(r,i,s,a){var l=new Array(i.length);r(i,((r,i,a)=>{s(r,((r,s)=>{l[i]=!!s;a(r)}))}),(r=>{if(r)return a(r);var s=[];for(var c=0;c{s(r,((s,c)=>{if(s)return a(s);if(c){l.push({index:i,value:r})}a(s)}))}),(r=>{if(r)return a(r);a(null,l.sort(((r,i)=>r.index-i.index)).map((r=>r.value)))}))}function _filter(r,i,s,a){var l=isArrayLike(i)?filterArray:filterGeneric;return l(r,i,wrapAsync(s),a)}function filter(r,i,s){return _filter(A,r,i,s)}var G=awaitify(filter,3);function filterLimit(r,i,s,a){return _filter(eachOfLimit$2(i),r,s,a)}var z=awaitify(filterLimit,4);function filterSeries(r,i,s){return _filter(y,r,i,s)}var V=awaitify(filterSeries,3);function forever(r,i){var s=onlyOnce(i);var a=wrapAsync(ensureAsync(r));function next(r){if(r)return s(r);if(r===false)return;a(next)}return next()}var W=awaitify(forever,2);function groupByLimit(r,i,s,a){var l=wrapAsync(s);return x(r,i,((r,i)=>{l(r,((s,a)=>{if(s)return i(s);return i(s,{key:a,val:r})}))}),((r,i)=>{var s={};var{hasOwnProperty:l}=Object.prototype;for(var c=0;c{c(r,i,((r,a)=>{if(r)return s(r);l[i]=a;s(r)}))}),(r=>a(r,l)))}var X=awaitify(mapValuesLimit,4);function mapValues(r,i,s){return X(r,Infinity,i,s)}function mapValuesSeries(r,i,s){return X(r,1,i,s)}function memoize(r,i=(r=>r)){var s=Object.create(null);var a=Object.create(null);var l=wrapAsync(r);var p=initialParams(((r,p)=>{var d=i(...r);if(d in s){c((()=>p(null,...s[d])))}else if(d in a){a[d].push(p)}else{a[d]=[p];l(...r,((r,...i)=>{if(!r){s[d]=i}var l=a[d];delete a[d];for(var c=0,p=l.length;c{var a=isArrayLike(i)?[]:{};r(i,((r,i,s)=>{wrapAsync(r)(((r,...l)=>{if(l.length<2){[l]=l}a[i]=l;s(r)}))}),(r=>s(r,a)))}),3);function parallel(r,i){return Z(A,r,i)}function parallelLimit(r,i,s){return Z(eachOfLimit$2(i),r,s)}function queue(r,i){var s=wrapAsync(r);return queue$1(((r,i)=>{s(r[0],i)}),i,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(r){let i;while(r>0&&smaller(this.heap[r],this.heap[i=parent(r)])){let s=this.heap[r];this.heap[r]=this.heap[i];this.heap[i]=s;r=i}}percDown(r){let i;while((i=leftChi(r))=0;r--){this.percDown(r)}return this}}function leftChi(r){return(r<<1)+1}function parent(r){return(r+1>>1)-1}function smaller(r,i){if(r.priority!==i.priority){return r.priority({data:r,priority:i,callback:s});function createDataItems(r,i){if(!Array.isArray(r)){return{data:r,priority:i}}return r.map((r=>({data:r,priority:i})))}s.push=function(r,i=0,s){return a(createDataItems(r,i),s)};s.pushAsync=function(r,i=0,s){return l(createDataItems(r,i),s)};delete s.unshift;delete s.unshiftAsync;return s}function race(r,i){i=once(i);if(!Array.isArray(r))return i(new TypeError("First argument to race must be an array of functions"));if(!r.length)return i();for(var s=0,a=r.length;s{let a={};if(r){a.error=r}if(i.length>0){var l=i;if(i.length<=1){[l]=i}a.value=l}s(null,a)}));return i.apply(this,r)}))}function reflectAll(r){var i;if(Array.isArray(r)){i=r.map(reflect)}else{i={};Object.keys(r).forEach((s=>{i[s]=reflect.call(this,r[s])}))}return i}function reject$2(r,i,s,a){const l=wrapAsync(s);return _filter(r,i,((r,i)=>{l(r,((r,s)=>{i(r,!s)}))}),a)}function reject(r,i,s){return reject$2(A,r,i,s)}var te=awaitify(reject,3);function rejectLimit(r,i,s,a){return reject$2(eachOfLimit$2(i),r,s,a)}var re=awaitify(rejectLimit,4);function rejectSeries(r,i,s){return reject$2(y,r,i,s)}var ie=awaitify(rejectSeries,3);function constant(r){return function(){return r}}const ne=5;const se=0;function retry(r,i,s){var a={times:ne,intervalFunc:constant(se)};if(arguments.length<3&&typeof r==="function"){s=i||promiseCallback();i=r}else{parseTimes(a,r);s=s||promiseCallback()}if(typeof i!=="function"){throw new Error("Invalid arguments for async.retry")}var l=wrapAsync(i);var c=1;function retryAttempt(){l(((r,...i)=>{if(r===false)return;if(r&&c++{if(i.lengthr))(A,r,i,s)}var ae=awaitify(some,3);function someLimit(r,i,s,a){return _createTester(Boolean,(r=>r))(eachOfLimit$2(i),r,s,a)}var oe=awaitify(someLimit,4);function someSeries(r,i,s){return _createTester(Boolean,(r=>r))(y,r,i,s)}var le=awaitify(someSeries,3);function sortBy(r,i,s){var a=wrapAsync(i);return h(r,((r,i)=>{a(r,((s,a)=>{if(s)return i(s);i(s,{value:r,criteria:a})}))}),((r,i)=>{if(r)return s(r);s(null,i.sort(comparator).map((r=>r.value)))}));function comparator(r,i){var s=r.criteria,a=i.criteria;return sa?1:0}}var ce=awaitify(sortBy,3);function timeout(r,i,s){var a=wrapAsync(r);return initialParams(((l,c)=>{var p=false;var d;function timeoutCallback(){var i=r.name||"anonymous";var a=new Error('Callback function "'+i+'" timed out.');a.code="ETIMEDOUT";if(s){a.info=s}p=true;c(a)}l.push(((...r)=>{if(!p){c(...r);clearTimeout(d)}}));d=setTimeout(timeoutCallback,i);a(...l)}))}function range(r){var i=Array(r);while(r--){i[r]=r}return i}function timesLimit(r,i,s,a){var l=wrapAsync(s);return x(range(r),i,l,a)}function times(r,i,s){return timesLimit(r,Infinity,i,s)}function timesSeries(r,i,s){return timesLimit(r,1,i,s)}function transform(r,i,s,a){if(arguments.length<=3&&typeof i==="function"){a=s;s=i;i=Array.isArray(r)?[]:{}}a=once(a||promiseCallback());var l=wrapAsync(s);A(r,((r,s,a)=>{l(i,r,s,a)}),(r=>a(r,i)));return a[v]}function tryEach(r,i){var s=null;var a;return U(r,((r,i)=>{wrapAsync(r)(((r,...l)=>{if(r===false)return i(r);if(l.length<2){[a]=l}else{a=l}s=r;i(r?null:{})}))}),(()=>i(s,a)))}var pe=awaitify(tryEach);function unmemoize(r){return(...i)=>(r.unmemoized||r)(...i)}function whilst(r,i,s){s=onlyOnce(s);var a=wrapAsync(i);var l=wrapAsync(r);var c=[];function next(r,...i){if(r)return s(r);c=i;if(r===false)return;l(check)}function check(r,i){if(r)return s(r);if(r===false)return;if(!i)return s(null,...c);a(next)}return l(check)}var de=awaitify(whilst,3);function until(r,i,s){const a=wrapAsync(r);return de((r=>a(((i,s)=>r(i,!s)))),i,s)}function waterfall(r,i){i=once(i);if(!Array.isArray(r))return i(new Error("First argument to waterfall must be an array of functions"));if(!r.length)return i();var s=0;function nextTask(i){var a=wrapAsync(r[s++]);a(...i,onlyOnce(next))}function next(a,...l){if(a===false)return;if(a||s===r.length){return i(a,...l)}nextTask(l)}nextTask([])}var ue=awaitify(waterfall);var Ae={apply:apply,applyEach:g,applyEachSeries:C,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:R,concatLimit:N,concatSeries:T,constant:constant$1,detect:D,detectLimit:_,detectSeries:k,dir:P,doUntil:doUntil,doWhilst:O,each:L,eachLimit:M,eachOf:A,eachOfLimit:u,eachOfSeries:y,eachSeries:U,ensureAsync:ensureAsync,every:H,everyLimit:j,everySeries:q,filter:G,filterLimit:z,filterSeries:V,forever:W,groupBy:groupBy,groupByLimit:Y,groupBySeries:groupBySeries,log:J,map:h,mapLimit:x,mapSeries:b,mapValues:mapValues,mapValuesLimit:X,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:$,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:ee,reduce:Q,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:te,rejectLimit:re,rejectSeries:ie,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:c,some:ae,someLimit:oe,someSeries:le,sortBy:ce,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:pe,unmemoize:unmemoize,until:until,waterfall:ue,whilst:de,all:H,allLimit:j,allSeries:q,any:ae,anyLimit:oe,anySeries:le,find:D,findLimit:_,findSeries:k,flatMap:R,flatMapLimit:N,flatMapSeries:T,forEach:L,forEachSeries:U,forEachLimit:M,forEachOf:A,forEachOfSeries:y,forEachOfLimit:u,inject:Q,foldl:Q,foldr:reduceRight,select:G,selectLimit:z,selectSeries:V,wrapSync:asyncify,during:de,doDuring:O};r.all=H;r.allLimit=j;r.allSeries=q;r.any=ae;r.anyLimit=oe;r.anySeries=le;r.apply=apply;r.applyEach=g;r.applyEachSeries=C;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo$1;r.cargoQueue=cargo;r.compose=compose;r.concat=R;r.concatLimit=N;r.concatSeries=T;r.constant=constant$1;r.default=Ae;r.detect=D;r.detectLimit=_;r.detectSeries=k;r.dir=P;r.doDuring=O;r.doUntil=doUntil;r.doWhilst=O;r.during=de;r.each=L;r.eachLimit=M;r.eachOf=A;r.eachOfLimit=u;r.eachOfSeries=y;r.eachSeries=U;r.ensureAsync=ensureAsync;r.every=H;r.everyLimit=j;r.everySeries=q;r.filter=G;r.filterLimit=z;r.filterSeries=V;r.find=D;r.findLimit=_;r.findSeries=k;r.flatMap=R;r.flatMapLimit=N;r.flatMapSeries=T;r.foldl=Q;r.foldr=reduceRight;r.forEach=L;r.forEachLimit=M;r.forEachOf=A;r.forEachOfLimit=u;r.forEachOfSeries=y;r.forEachSeries=U;r.forever=W;r.groupBy=groupBy;r.groupByLimit=Y;r.groupBySeries=groupBySeries;r.inject=Q;r.log=J;r.map=h;r.mapLimit=x;r.mapSeries=b;r.mapValues=mapValues;r.mapValuesLimit=X;r.mapValuesSeries=mapValuesSeries;r.memoize=memoize;r.nextTick=$;r.parallel=parallel;r.parallelLimit=parallelLimit;r.priorityQueue=priorityQueue;r.queue=queue;r.race=ee;r.reduce=Q;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=te;r.rejectLimit=re;r.rejectSeries=ie;r.retry=retry;r.retryable=retryable;r.select=G;r.selectLimit=z;r.selectSeries=V;r.seq=seq;r.series=series;r.setImmediate=c;r.some=ae;r.someLimit=oe;r.someSeries=le;r.sortBy=ce;r.timeout=timeout;r.times=times;r.timesLimit=timesLimit;r.timesSeries=timesSeries;r.transform=transform;r.tryEach=pe;r.unmemoize=unmemoize;r.until=until;r.waterfall=ue;r.whilst=de;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},4821:(r,i,s)=>{r.exports={parallel:s(40644),serial:s(94501),serialOrdered:s(32362)}},73234:r=>{r.exports=abort;function abort(r){Object.keys(r.jobs).forEach(clean.bind(r));r.jobs={}}function clean(r){if(typeof this.jobs[r]=="function"){this.jobs[r]()}}},3784:(r,i,s)=>{var a=s(69919);r.exports=async;function async(r){var i=false;a((function(){i=true}));return function async_callback(s,l){if(i){r(s,l)}else{a((function nextTick_callback(){r(s,l)}))}}}},69919:r=>{r.exports=defer;function defer(r){var i=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(i){i(r)}else{setTimeout(r,0)}}},75748:(r,i,s)=>{var a=s(3784),l=s(73234);r.exports=iterate;function iterate(r,i,s,a){var c=s["keyedList"]?s["keyedList"][s.index]:s.index;s.jobs[c]=runJob(i,c,r[c],(function(r,i){if(!(c in s.jobs)){return}delete s.jobs[c];if(r){l(s)}else{s.results[c]=i}a(r,s.results)}))}function runJob(r,i,s,l){var c;if(r.length==2){c=r(s,a(l))}else{c=r(s,i,a(l))}return c}},18258:r=>{r.exports=state;function state(r,i){var s=!Array.isArray(r),a={index:0,keyedList:s||i?Object.keys(r):null,jobs:{},results:s?{}:[],size:s?Object.keys(r).length:r.length};if(i){a.keyedList.sort(s?i:function(s,a){return i(r[s],r[a])})}return a}},46349:(r,i,s)=>{var a=s(73234),l=s(3784);r.exports=terminator;function terminator(r){if(!Object.keys(this.jobs).length){return}this.index=this.size;a(this);l(r)(null,this.results)}},40644:(r,i,s)=>{var a=s(75748),l=s(18258),c=s(46349);r.exports=parallel;function parallel(r,i,s){var p=l(r);while(p.index<(p["keyedList"]||r).length){a(r,i,p,(function(r,i){if(r){s(r,i);return}if(Object.keys(p.jobs).length===0){s(null,p.results);return}}));p.index++}return c.bind(p,s)}},94501:(r,i,s)=>{var a=s(32362);r.exports=serial;function serial(r,i,s){return a(r,i,null,s)}},32362:(r,i,s)=>{var a=s(75748),l=s(18258),c=s(46349);r.exports=serialOrdered;r.exports.ascending=ascending;r.exports.descending=descending;function serialOrdered(r,i,s,p){var d=l(r,s);a(r,i,d,(function iteratorHandler(s,l){if(s){p(s,l);return}d.index++;if(d.index<(d["keyedList"]||r).length){a(r,i,d,iteratorHandler);return}p(null,d.results)}));return c.bind(d,p)}function ascending(r,i){return ri?1:0}function descending(r,i){return-1*ascending(r,i)}},84785:r=>{function isBuffer(r){return Buffer.isBuffer(r)||r instanceof Uint8Array}function isEncoding(r){return Buffer.isEncoding(r)}function alloc(r,i,s){return Buffer.alloc(r,i,s)}function allocUnsafe(r){return Buffer.allocUnsafe(r)}function allocUnsafeSlow(r){return Buffer.allocUnsafeSlow(r)}function byteLength(r,i){return Buffer.byteLength(r,i)}function compare(r,i){return Buffer.compare(r,i)}function concat(r,i){return Buffer.concat(r,i)}function copy(r,i,s,a,l){return toBuffer(r).copy(i,s,a,l)}function equals(r,i){return toBuffer(r).equals(i)}function fill(r,i,s,a,l){return toBuffer(r).fill(i,s,a,l)}function from(r,i,s){return Buffer.from(r,i,s)}function includes(r,i,s,a){return toBuffer(r).includes(i,s,a)}function indexOf(r,i,s,a){return toBuffer(r).indexOf(i,s,a)}function lastIndexOf(r,i,s,a){return toBuffer(r).lastIndexOf(i,s,a)}function swap16(r){return toBuffer(r).swap16()}function swap32(r){return toBuffer(r).swap32()}function swap64(r){return toBuffer(r).swap64()}function toBuffer(r){if(Buffer.isBuffer(r))return r;return Buffer.from(r.buffer,r.byteOffset,r.byteLength)}function toString(r,i,s,a){return toBuffer(r).toString(i,s,a)}function write(r,i,s,a,l){return toBuffer(r).write(i,s,a,l)}function writeDoubleLE(r,i,s){return toBuffer(r).writeDoubleLE(i,s)}function writeFloatLE(r,i,s){return toBuffer(r).writeFloatLE(i,s)}function writeUInt32LE(r,i,s){return toBuffer(r).writeUInt32LE(i,s)}function writeInt32LE(r,i,s){return toBuffer(r).writeInt32LE(i,s)}function readDoubleLE(r,i){return toBuffer(r).readDoubleLE(i)}function readFloatLE(r,i){return toBuffer(r).readFloatLE(i)}function readUInt32LE(r,i){return toBuffer(r).readUInt32LE(i)}function readInt32LE(r,i){return toBuffer(r).readInt32LE(i)}r.exports={isBuffer:isBuffer,isEncoding:isEncoding,alloc:alloc,allocUnsafe:allocUnsafe,allocUnsafeSlow:allocUnsafeSlow,byteLength:byteLength,compare:compare,concat:concat,copy:copy,equals:equals,fill:fill,from:from,includes:includes,indexOf:indexOf,lastIndexOf:lastIndexOf,swap16:swap16,swap32:swap32,swap64:swap64,toBuffer:toBuffer,toString:toString,write:write,writeDoubleLE:writeDoubleLE,writeFloatLE:writeFloatLE,writeUInt32LE:writeUInt32LE,writeInt32LE:writeInt32LE,readDoubleLE:readDoubleLE,readFloatLE:readFloatLE,readUInt32LE:readUInt32LE,readInt32LE:readInt32LE}},98419:r=>{"use strict";r.exports=balanced;function balanced(r,i,s){if(r instanceof RegExp)r=maybeMatch(r,s);if(i instanceof RegExp)i=maybeMatch(i,s);var a=range(r,i,s);return a&&{start:a[0],end:a[1],pre:s.slice(0,a[0]),body:s.slice(a[0]+r.length,a[1]),post:s.slice(a[1]+i.length)}}function maybeMatch(r,i){var s=i.match(r);return s?s[0]:null}balanced.range=range;function range(r,i,s){var a,l,c,p,d;var u=s.indexOf(r);var A=s.indexOf(i,u+1);var h=u;if(u>=0&&A>0){if(r===i){return[u,A]}a=[];c=s.length;while(h>=0&&!d){if(h==u){a.push(h);u=s.indexOf(r,h+1)}else if(a.length==1){d=[a.pop(),A]}else{l=a.pop();if(l=0?u:A}if(a.length){d=[c,p]}}return d}},73990:(r,i,s)=>{var a=s(13512);var l=s(50080);var c=s(35976);var p=Function.bind;var d=p.bind(p);function bindApi(r,i,s){var a=d(c,null).apply(null,s?[i,s]:[i]);r.api={remove:a};r.remove=a;["before","error","after","wrap"].forEach((function(a){var c=s?[i,a,s]:[i,a];r[a]=r.api[a]=d(l,null).apply(null,c)}))}function HookSingular(){var r="h";var i={registry:{}};var s=a.bind(null,i,r);bindApi(s,i,r);return s}function HookCollection(){var r={registry:{}};var i=a.bind(null,r);bindApi(i,r);return i}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();r.exports=Hook;r.exports.Hook=Hook;r.exports.Singular=Hook.Singular;r.exports.Collection=Hook.Collection},50080:r=>{r.exports=addHook;function addHook(r,i,s,a){var l=a;if(!r.registry[s]){r.registry[s]=[]}if(i==="before"){a=function(r,i){return Promise.resolve().then(l.bind(null,i)).then(r.bind(null,i))}}if(i==="after"){a=function(r,i){var s;return Promise.resolve().then(r.bind(null,i)).then((function(r){s=r;return l(s,i)})).then((function(){return s}))}}if(i==="error"){a=function(r,i){return Promise.resolve().then(r.bind(null,i)).catch((function(r){return l(r,i)}))}}r.registry[s].push({hook:a,orig:l})}},13512:r=>{r.exports=register;function register(r,i,s,a){if(typeof s!=="function"){throw new Error("method for before hook must be a function")}if(!a){a={}}if(Array.isArray(i)){return i.reverse().reduce((function(i,s){return register.bind(null,r,s,i,a)}),s)()}return Promise.resolve().then((function(){if(!r.registry[i]){return s(a)}return r.registry[i].reduce((function(r,i){return i.hook.bind(null,r,a)}),s)()}))}},35976:r=>{r.exports=removeHook;function removeHook(r,i,s){if(!r.registry[i]){return}var a=r.registry[i].map((function(r){return r.orig})).indexOf(s);if(a===-1){return}r.registry[i].splice(a,1)}},70084:(r,i,s)=>{var a=s(66548);var l=s(82361).EventEmitter;var c=s(76260);var p=s(6721);var d=s(12781).Stream;i=r.exports=function(r,s){if(Buffer.isBuffer(r)){return i.parse(r)}var a=i.stream();if(r&&r.pipe){r.pipe(a)}else if(r){r.on(s||"data",(function(r){a.write(r)}));r.on("end",(function(){a.end()}))}return a};i.stream=function(r){if(r)return i.apply(null,arguments);var s=null;function getBytes(r,i,a){s={bytes:r,skip:a,cb:function(r){s=null;i(r)}};dispatch()}var u=null;function dispatch(){if(!s){if(b)y=true;return}if(typeof s==="function"){s()}else{var r=u+s.bytes;if(h.length>=r){var i;if(u==null){i=h.splice(0,r);if(!s.skip){i=i.slice()}}else{if(!s.skip){i=h.slice(u,r)}u=r}if(s.skip){s.cb()}else{s.cb(i)}}}}function builder(r){function next(){if(!y)r.next()}var i=words((function(r,i){return function(s){getBytes(r,(function(r){g.set(s,i(r));next()}))}}));i.tap=function(i){r.nest(i,g.store)};i.into=function(i,s){if(!g.get(i))g.set(i,{});var a=g;g=p(a.get(i));r.nest((function(){s.apply(this,arguments);this.tap((function(){g=a}))}),g.store)};i.flush=function(){g.store={};next()};i.loop=function(i){var s=false;r.nest(false,(function loop(){this.vars=g.store;i.call(this,(function(){s=true;next()}),g.store);this.tap(function(){if(s)r.next();else loop.call(this)}.bind(this))}),g.store)};i.buffer=function(r,i){if(typeof i==="string"){i=g.get(i)}getBytes(i,(function(i){g.set(r,i);next()}))};i.skip=function(r){if(typeof r==="string"){r=g.get(r)}getBytes(r,(function(){next()}))};i.scan=function find(r,i){if(typeof i==="string"){i=new Buffer(i)}else if(!Buffer.isBuffer(i)){throw new Error("search must be a Buffer or a string")}var a=0;s=function(){var l=h.indexOf(i,u+a);var c=l-u-a;if(l!==-1){s=null;if(u!=null){g.set(r,h.slice(u,u+a+c));u+=a+c+i.length}else{g.set(r,h.slice(0,a+c));h.splice(0,a+c+i.length)}next();dispatch()}else{c=Math.max(h.length-i.length-u-a,0)}a+=c};dispatch()};i.peek=function(i){u=0;r.nest((function(){i.call(this,g.store);this.tap((function(){u=null}))}))};return i}var A=a.light(builder);A.writable=true;var h=c();A.write=function(r){h.push(r);dispatch()};var g=p();var y=false,b=false;A.end=function(){b=true};A.pipe=d.prototype.pipe;Object.getOwnPropertyNames(l.prototype).forEach((function(r){A[r]=l.prototype[r]}));return A};i.parse=function parse(r){var i=words((function(l,c){return function(p){if(s+l<=r.length){var d=r.slice(s,s+l);s+=l;a.set(p,c(d))}else{a.set(p,null)}return i}}));var s=0;var a=p();i.vars=a.store;i.tap=function(r){r.call(i,a.store);return i};i.into=function(r,s){if(!a.get(r)){a.set(r,{})}var l=a;a=p(l.get(r));s.call(i,a.store);a=l;return i};i.loop=function(r){var s=false;var ender=function(){s=true};while(s===false){r.call(i,ender,a.store)}return i};i.buffer=function(l,c){if(typeof c==="string"){c=a.get(c)}var p=r.slice(s,Math.min(r.length,s+c));s+=c;a.set(l,p);return i};i.skip=function(r){if(typeof r==="string"){r=a.get(r)}s+=r;return i};i.scan=function(l,c){if(typeof c==="string"){c=new Buffer(c)}else if(!Buffer.isBuffer(c)){throw new Error("search must be a Buffer or a string")}a.set(l,null);for(var p=0;p+s<=r.length-c.length+1;p++){for(var d=0;d=r.length};return i};function decodeLEu(r){var i=0;for(var s=0;s{r.exports=function(r){function getset(r,s){var a=i.store;var l=r.split(".");l.slice(0,-1).forEach((function(r){if(a[r]===undefined)a[r]={};a=a[r]}));var c=l[l.length-1];if(arguments.length==1){return a[c]}else{return a[c]=s}}var i={get:function(r){return getset(r)},set:function(r,i){return getset(r,i)},store:r||{}};return i}},29541:function(r){(function(i,s){true?r.exports=s():0})(this,(function(){"use strict";var r=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(r){return r&&r["default"]||r}var load=function(r,i,s={}){var a,l,c;for(a in i){c=i[a];s[a]=(l=r[a])!=null?l:c}return s};var overwrite=function(r,i,s={}){var a,l;for(a in r){l=r[a];if(i[a]!==void 0){s[a]=l}}return s};var i={load:load,overwrite:overwrite};var s;s=class DLList{constructor(r,i){this.incr=r;this.decr=i;this._first=null;this._last=null;this.length=0}push(r){var i;this.length++;if(typeof this.incr==="function"){this.incr()}i={value:r,prev:this._last,next:null};if(this._last!=null){this._last.next=i;this._last=i}else{this._first=this._last=i}return void 0}shift(){var r;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}r=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return r}first(){if(this._first!=null){return this._first.value}}getArray(){var r,i,s;r=this._first;s=[];while(r!=null){s.push((i=r,r=r.next,i.value))}return s}forEachShift(r){var i;i=this.shift();while(i!=null){r(i),i=this.shift()}return void 0}debug(){var r,i,s,a,l;r=this._first;l=[];while(r!=null){l.push((i=r,r=r.next,{value:i.value,prev:(s=i.prev)!=null?s.value:void 0,next:(a=i.next)!=null?a.value:void 0}))}return l}};var a=s;var l;l=class Events{constructor(r){this.instance=r;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(r,i)=>this._addListener(r,"many",i);this.instance.once=(r,i)=>this._addListener(r,"once",i);this.instance.removeAllListeners=(r=null)=>{if(r!=null){return delete this._events[r]}else{return this._events={}}}}_addListener(r,i,s){var a;if((a=this._events)[r]==null){a[r]=[]}this._events[r].push({cb:s,status:i});return this.instance}listenerCount(r){if(this._events[r]!=null){return this._events[r].length}else{return 0}}async trigger(r,...i){var s,a;try{if(r!=="debug"){this.trigger("debug",`Event triggered: ${r}`,i)}if(this._events[r]==null){return}this._events[r]=this._events[r].filter((function(r){return r.status!=="none"}));a=this._events[r].map((async r=>{var s,a;if(r.status==="none"){return}if(r.status==="once"){r.status="none"}try{a=typeof r.cb==="function"?r.cb(...i):void 0;if(typeof(a!=null?a.then:void 0)==="function"){return await a}else{return a}}catch(r){s=r;{this.trigger("error",s)}return null}}));return(await Promise.all(a)).find((function(r){return r!=null}))}catch(r){s=r;{this.trigger("error",s)}return null}}};var c=l;var p,d,u;p=a;d=c;u=class Queues{constructor(r){var i;this.Events=new d(this);this._length=0;this._lists=function(){var s,a,l;l=[];for(i=s=1,a=r;1<=a?s<=a:s>=a;i=1<=a?++s:--s){l.push(new p((()=>this.incr()),(()=>this.decr())))}return l}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(r){return this._lists[r.options.priority].push(r)}queued(r){if(r!=null){return this._lists[r].length}else{return this._length}}shiftAll(r){return this._lists.forEach((function(i){return i.forEachShift(r)}))}getFirst(r=this._lists){var i,s,a;for(i=0,s=r.length;i0){return a}}return[]}shiftLastFrom(r){return this.getFirst(this._lists.slice(r).reverse()).shift()}};var A=u;var h;h=class BottleneckError extends Error{};var g=h;var y,b,C,v,B;v=10;b=5;B=i;y=g;C=class Job{constructor(r,i,s,a,l,c,p,d){this.task=r;this.args=i;this.rejectOnDrop=l;this.Events=c;this._states=p;this.Promise=d;this.options=B.load(s,a);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===a.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((r,i)=>{this._resolve=r;this._reject=i}));this.retryCount=0}_sanitizePriority(r){var i;i=~~r!==r?b:r;if(i<0){return 0}else if(i>v-1){return v-1}else{return i}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:r,message:i="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(r!=null?r:new y(i))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(r){var i;i=this._states.jobStatus(this.options.id);if(!(i===r||r==="DONE"&&i===null)){throw new y(`Invalid job status ${i}, expected ${r}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(r,i){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:r,blocked:i})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(r,i,s,a){var l,c,p;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}c={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",c);try{p=await(r!=null?r.schedule(this.options,this.task,...this.args):this.task(...this.args));if(i()){this.doDone(c);await a(this.options,c);this._assertStatus("DONE");return this._resolve(p)}}catch(r){l=r;return this._onFailure(l,c,i,s,a)}}doExpire(r,i,s){var a,l;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");l={args:this.args,options:this.options,retryCount:this.retryCount};a=new y(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(a,l,r,i,s)}async _onFailure(r,i,s,a,l){var c,p;if(s()){c=await this.Events.trigger("failed",r,i);if(c!=null){p=~~c;this.Events.trigger("retry",`Retrying ${this.options.id} after ${p} ms`,i);this.retryCount++;return a(p)}else{this.doDone(i);await l(this.options,i);this._assertStatus("DONE");return this._reject(r)}}}doDone(r){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",r)}};var w=C;var I,S,Q;Q=i;I=g;S=class LocalDatastore{constructor(r,i,s){this.instance=r;this.storeOptions=i;this.clientId=this.instance._randomIndex();Q.load(s,s,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var r;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(r=this.heartbeat=setInterval((()=>{var r,i,s,a,l;a=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&a>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=a;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&a>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:r,reservoirIncreaseMaximum:s,reservoir:l}=this.storeOptions);this._lastReservoirIncrease=a;i=s!=null?Math.min(r,s-l):r;if(i>0){this.storeOptions.reservoir+=i;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?r.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(r){await this.yieldLoop();return this.instance.Events.trigger("message",r.toString())}async __disconnect__(r){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(r=0){return new this.Promise((function(i,s){return setTimeout(i,r)}))}computePenalty(){var r;return(r=this.storeOptions.penalty)!=null?r:15*this.storeOptions.minTime||5e3}async __updateSettings__(r){await this.yieldLoop();Q.overwrite(r,r,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(r){await this.yieldLoop();return this._nextRequest+this.timeout=r}check(r,i){return this.conditionsCheck(r)&&this._nextRequest-i<=0}async __check__(r){var i;await this.yieldLoop();i=Date.now();return this.check(r,i)}async __register__(r,i,s){var a,l;await this.yieldLoop();a=Date.now();if(this.conditionsCheck(i)){this._running+=i;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=i}l=Math.max(this._nextRequest-a,0);this._nextRequest=a+l+this.storeOptions.minTime;return{success:true,wait:l,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(r,i){var s,a,l;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&i>this.storeOptions.maxConcurrent){throw new I(`Impossible to add a job having a weight of ${i} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}a=Date.now();l=this.storeOptions.highWater!=null&&r===this.storeOptions.highWater&&!this.check(i,a);s=this.strategyIsBlock()&&(l||this.isBlocked(a));if(s){this._unblockTime=a+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:l,blocked:s,strategy:this.storeOptions.strategy}}async __free__(r,i){await this.yieldLoop();this._running-=i;this._done+=i;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var x=S;var N,R;N=g;R=class States{constructor(r){this.status=r;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(r){var i,s;i=this._jobs[r];s=i+1;if(i!=null&&s{r[this.status[s]]=i;return r}),{})}};var T=R;var D,_;D=a;_=class Sync{constructor(r,i){this.schedule=this.schedule.bind(this);this.name=r;this.Promise=i;this._running=0;this._queue=new D}isEmpty(){return this._queue.length===0}async _tryToRun(){var r,i,s,a,l,c,p;if(this._running<1&&this._queue.length>0){this._running++;({task:p,args:r,resolve:l,reject:a}=this._queue.shift());i=await async function(){try{c=await p(...r);return function(){return l(c)}}catch(r){s=r;return function(){return a(s)}}}();this._running--;this._tryToRun();return i()}}schedule(r,...i){var s,a,l;l=a=null;s=new this.Promise((function(r,i){l=r;return a=i}));this._queue.push({task:r,args:i,resolve:l,reject:a});this._tryToRun();return s}};var k=_;var P="2.19.5";var O={version:P};var L=Object.freeze({version:P,default:O});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var M,U,H,j,q,G;G=i;M=c;j=require$$2;H=require$$3;q=require$$4;U=function(){class Group{constructor(r={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=r;G.load(this.limiterOptions,this.defaults,this);this.Events=new M(this);this.instances={};this.Bottleneck=ce;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new H(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(r=""){var i;return(i=this.instances[r])!=null?i:(()=>{var i;i=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",i,r);return i})()}async deleteKey(r=""){var i,s;s=this.instances[r];if(this.connection){i=await this.connection.__runCommand__(["del",...q.allKeys(`${this.id}-${r}`)])}if(s!=null){delete this.instances[r];await s.disconnect()}return s!=null||i>0}limiters(){var r,i,s,a;i=this.instances;s=[];for(r in i){a=i[r];s.push({key:r,limiter:a})}return s}keys(){return Object.keys(this.instances)}async clusterKeys(){var r,i,s,a,l,c,p,d,u;if(this.connection==null){return this.Promise.resolve(this.keys())}c=[];r=null;u=`b_${this.id}-`.length;i="_settings".length;while(r!==0){[d,s]=await this.connection.__runCommand__(["scan",r!=null?r:0,"match",`b_${this.id}-*_settings`,"count",1e4]);r=~~d;for(a=0,p=s.length;a{var r,i,s,a,l,c;l=Date.now();s=this.instances;a=[];for(i in s){c=s[i];try{if(await c._store.__groupCheck__(l)){a.push(this.deleteKey(i))}else{a.push(void 0)}}catch(i){r=i;a.push(c.Events.trigger("error",r))}}return a}),this.timeout/2)).unref==="function"?r.unref():void 0}updateSettings(r={}){G.overwrite(r,this.defaults,this);G.overwrite(r,r,this.limiterOptions);if(r.timeout!=null){return this._startAutoCleanup()}}disconnect(r=true){var i;if(!this.sharedConnection){return(i=this.connection)!=null?i.disconnect(r):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(r);var z=U;var V,W,Y;Y=i;W=c;V=function(){class Batcher{constructor(r={}){this.options=r;Y.load(this.options,this.defaults,this);this.Events=new W(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((r,i)=>this._resolve=r))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(r){var i;this._arr.push(r);i=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return i}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(r);var J=V;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var X=getCjsExportFromNamespace(L);var K,$,Z,ee,te,re,ie,ne,se,ae,oe,le=[].splice;re=10;$=5;oe=i;ie=A;ee=w;te=x;ne=require$$4$1;Z=c;se=T;ae=k;K=function(){class Bottleneck{constructor(r={},...i){var s,a;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(r,i);oe.load(r,this.instanceDefaults,this);this._queues=new ie(re);this._scheduled={};this._states=new se(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Z(this);this._submitLock=new ae("submit",this.Promise);this._registerLock=new ae("register",this.Promise);a=oe.load(r,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){s=oe.load(r,this.redisStoreDefaults,{});return new ne(this,a,s)}else if(this.datastore==="local"){s=oe.load(r,this.localStoreDefaults,{});return new te(this,a,s)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.ref==="function"?r.ref():void 0:void 0}));this._queues.on("zero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.unref==="function"?r.unref():void 0:void 0}))}_validateOptions(r,i){if(!(r!=null&&typeof r==="object"&&i.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=true){return this._store.__disconnect__(r)}chain(r){this._limiter=r;return this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){if(this._scheduled[r]!=null){clearTimeout(this._scheduled[r].expiration);delete this._scheduled[r];return true}else{return false}}async _free(r,i,s,a){var l,c;try{({running:c}=await this._store.__free__(r,s.weight));this.Events.trigger("debug",`Freed ${s.id}`,a);if(c===0&&this.empty()){return this.Events.trigger("idle")}}catch(r){l=r;return this.Events.trigger("error",l)}}_run(r,i,s){var a,l,c;i.doRun();a=this._clearGlobalState.bind(this,r);c=this._run.bind(this,r,i);l=this._free.bind(this,r,i);return this._scheduled[r]={timeout:setTimeout((()=>i.doExecute(this._limiter,a,c,l)),s),expiration:i.options.expiration!=null?setTimeout((function(){return i.doExpire(a,c,l)}),s+i.options.expiration):void 0,job:i}}_drainOne(r){return this._registerLock.schedule((()=>{var i,s,a,l,c;if(this.queued()===0){return this.Promise.resolve(null)}c=this._queues.getFirst();({options:l,args:i}=a=c.first());if(r!=null&&l.weight>r){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${l.id}`,{args:i,options:l});s=this._randomIndex();return this._store.__register__(s,l.weight,l.expiration).then((({success:r,wait:p,reservoir:d})=>{var u;this.Events.trigger("debug",`Drained ${l.id}`,{success:r,args:i,options:l});if(r){c.shift();u=this.empty();if(u){this.Events.trigger("empty")}if(d===0){this.Events.trigger("depleted",u)}this._run(s,a,p);return this.Promise.resolve(l.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(r,i=0){return this._drainOne(r).then((s=>{var a;if(s!=null){a=r!=null?r-s:r;return this._drainAll(a,i+s)}else{return this.Promise.resolve(i)}})).catch((r=>this.Events.trigger("error",r)))}_dropAllQueued(r){return this._queues.shiftAll((function(i){return i.doDrop({message:r})}))}stop(r={}){var i,s;r=oe.load(r,this.stopDefaults);s=r=>{var i;i=()=>{var i;i=this._states.counts;return i[0]+i[1]+i[2]+i[3]===r};return new this.Promise(((r,s)=>{if(i()){return r()}else{return this.on("done",(()=>{if(i()){this.removeAllListeners("done");return r()}}))}}))};i=r.dropWaitingJobs?(this._run=function(i,s){return s.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var i,a,l;a=this._scheduled;for(i in a){l=a[i];if(this.jobStatus(l.job.options.id)==="RUNNING"){clearTimeout(l.timeout);clearTimeout(l.expiration);l.job.doDrop({message:r.dropErrorMessage})}}this._dropAllQueued(r.dropErrorMessage);return s(0)}))))):this.schedule({priority:re-1,weight:0},(()=>s(1)));this._receive=function(i){return i._reject(new Bottleneck.prototype.BottleneckError(r.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return i}async _addToQueue(r){var i,s,a,l,c,p,d;({args:i,options:l}=r);try{({reachedHWM:c,blocked:s,strategy:d}=await this._store.__submit__(this.queued(),l.weight))}catch(s){a=s;this.Events.trigger("debug",`Could not queue ${l.id}`,{args:i,options:l,error:a});r.doDrop({error:a});return false}if(s){r.doDrop();return true}else if(c){p=d===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(l.priority):d===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(l.priority+1):d===Bottleneck.prototype.strategy.OVERFLOW?r:void 0;if(p!=null){p.doDrop()}if(p==null||d===Bottleneck.prototype.strategy.OVERFLOW){if(p==null){r.doDrop()}return c}}r.doQueue(c,s);this._queues.push(r);await this._drainAll();return c}_receive(r){if(this._states.jobStatus(r.options.id)!=null){r._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`));return false}else{r.doReceive();return this._submitLock.schedule(this._addToQueue,r)}}submit(...r){var i,s,a,l,c,p,d;if(typeof r[0]==="function"){c=r,[s,...r]=c,[i]=le.call(r,-1);l=oe.load({},this.jobDefaults)}else{p=r,[l,s,...r]=p,[i]=le.call(r,-1);l=oe.load(l,this.jobDefaults)}d=(...r)=>new this.Promise((function(i,a){return s(...r,(function(...r){return(r[0]!=null?a:i)(r)}))}));a=new ee(d,r,l,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);a.promise.then((function(r){return typeof i==="function"?i(...r):void 0})).catch((function(r){if(Array.isArray(r)){return typeof i==="function"?i(...r):void 0}else{return typeof i==="function"?i(r):void 0}}));return this._receive(a)}schedule(...r){var i,s,a;if(typeof r[0]==="function"){[a,...r]=r;s={}}else{[s,a,...r]=r}i=new ee(a,r,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(i);return i.promise}wrap(r){var i,s;i=this.schedule.bind(this);s=function(...s){return i(r.bind(this),...s)};s.withOptions=function(s,...a){return i(s,r,...a)};return s}async updateSettings(r={}){await this._store.__updateSettings__(oe.overwrite(r,this.storeDefaults));oe.overwrite(r,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Z;Bottleneck.version=Bottleneck.prototype.version=X.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=g;Bottleneck.Group=Bottleneck.prototype.Group=z;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=J;Bottleneck.prototype.jobDefaults={priority:$,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(r);var ce=K;var pe=ce;return pe}))},21981:(r,i,s)=>{var a=s(98419);r.exports=expandTop;var l="\0SLASH"+Math.random()+"\0";var c="\0OPEN"+Math.random()+"\0";var p="\0CLOSE"+Math.random()+"\0";var d="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function escapeBraces(r){return r.split("\\\\").join(l).split("\\{").join(c).split("\\}").join(p).split("\\,").join(d).split("\\.").join(u)}function unescapeBraces(r){return r.split(l).join("\\").split(c).join("{").split(p).join("}").split(d).join(",").split(u).join(".")}function parseCommaParts(r){if(!r)return[""];var i=[];var s=a("{","}",r);if(!s)return r.split(",");var l=s.pre;var c=s.body;var p=s.post;var d=l.split(",");d[d.length-1]+="{"+c+"}";var u=parseCommaParts(p);if(p.length){d[d.length-1]+=u.shift();d.push.apply(d,u)}i.push.apply(i,d);return i}function expandTop(r){if(!r)return[];if(r.substr(0,2)==="{}"){r="\\{\\}"+r.substr(2)}return expand(escapeBraces(r),true).map(unescapeBraces)}function embrace(r){return"{"+r+"}"}function isPadded(r){return/^-?0\d/.test(r)}function lte(r,i){return r<=i}function gte(r,i){return r>=i}function expand(r,i){var s=[];var l=a("{","}",r);if(!l)return[r];var c=l.pre;var d=l.post.length?expand(l.post,false):[""];if(/\$$/.test(l.pre)){for(var u=0;u=0;if(!y&&!b){if(l.post.match(/,.*\}/)){r=l.pre+"{"+l.body+p+l.post;return expand(r)}return[r]}var C;if(y){C=l.body.split(/\.\./)}else{C=parseCommaParts(l.body);if(C.length===1){C=expand(C[0],false).map(embrace);if(C.length===1){return d.map((function(r){return l.pre+C[0]+r}))}}}var v;if(y){var B=numeric(C[0]);var w=numeric(C[1]);var I=Math.max(C[0].length,C[1].length);var S=C.length==3?Math.abs(numeric(C[2])):1;var Q=lte;var x=w0){var _=new Array(D+1).join("0");if(R<0)T="-"+_+T.slice(1);else T=_+T}}}v.push(T)}}else{v=[];for(var k=0;k{r.exports=Buffers;function Buffers(r){if(!(this instanceof Buffers))return new Buffers(r);this.buffers=r||[];this.length=this.buffers.reduce((function(r,i){return r+i.length}),0)}Buffers.prototype.push=function(){for(var r=0;r=0?r:this.length-r;var l=[].slice.call(arguments,2);if(i===undefined){i=this.length-a}else if(i>this.length-a){i=this.length-a}for(var r=0;r0){var A=a-d;if(A+i0){var b=l.slice();b.unshift(g);b.push(y);s.splice.apply(s,[u,1].concat(b));u+=b.length;l=[]}else{s.splice(u,1,g,y);u+=2}}else{c.push(s[u].slice(A));s[u]=s[u].slice(0,A);u++}}if(l.length>0){s.splice.apply(s,[u,0].concat(l));u+=l.length}while(c.lengththis.length)i=this.length;var a=0;for(var l=0;l=i-r?Math.min(A+(i-r)-p,u):u;s[d].copy(c,p,A,h);p+=h-A}return c};Buffers.prototype.pos=function(r){if(r<0||r>=this.length)throw new Error("oob");var i=r,s=0,a=null;for(;;){a=this.buffers[s];if(i=this.buffers[s].length){a=0;s++;if(s>=this.buffers.length){return-1}}var u=this.buffers[s][a];if(u==r[l]){if(l==0){c={i:s,j:a,pos:p}}l++;if(l==r.length){return c.pos}}else if(l!=0){s=c.i;a=c.j;p=c.pos;l=0}a++;p++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(r,i,s){return this.slice(i,s).toString(r)}},66548:(r,i,s)=>{var a=s(98717);var l=s(82361).EventEmitter;r.exports=Chainsaw;function Chainsaw(r){var i=Chainsaw.saw(r,{});var s=r.call(i.handlers,i);if(s!==undefined)i.handlers=s;i.record();return i.chain()}Chainsaw.light=function ChainsawLight(r){var i=Chainsaw.saw(r,{});var s=r.call(i.handlers,i);if(s!==undefined)i.handlers=s;return i.chain()};Chainsaw.saw=function(r,i){var s=new l;s.handlers=i;s.actions=[];s.chain=function(){var r=a(s.handlers).map((function(i){if(this.isRoot)return i;var a=this.path;if(typeof i==="function"){this.update((function(){s.actions.push({path:a,args:[].slice.call(arguments)});return r}))}}));process.nextTick((function(){s.emit("begin");s.next()}));return r};s.pop=function(){return s.actions.shift()};s.next=function(){var r=s.pop();if(!r){s.emit("end")}else if(!r.trap){var i=s.handlers;r.path.forEach((function(r){i=i[r]}));i.apply(s.handlers,r.args)}};s.nest=function(i){var a=[].slice.call(arguments,1);var l=true;if(typeof i==="boolean"){var l=i;i=a.shift()}var c=Chainsaw.saw(r,{});var p=r.call(c.handlers,c);if(p!==undefined)c.handlers=p;if("undefined"!==typeof s.step){c.record()}i.apply(c.chain(),a);if(l!==false)c.on("end",s.next)};s.record=function(){upgradeChainsaw(s)};["trap","down","jump"].forEach((function(r){s[r]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return s};function upgradeChainsaw(r){r.step=0;r.pop=function(){return r.actions[r.step++]};r.trap=function(i,s){var a=Array.isArray(i)?i:[i];r.actions.push({path:a,step:r.step,cb:s,trap:true})};r.down=function(i){var s=(Array.isArray(i)?i:[i]).join("/");var a=r.actions.slice(r.step).map((function(i){if(i.trap&&i.step<=r.step)return false;return i.path.join("/")==s})).indexOf(true);if(a>=0)r.step+=a;else r.step=r.actions.length;var l=r.actions[r.step-1];if(l&&l.trap){r.step=l.step;l.cb()}else r.next()};r.jump=function(i){r.step=i;r.next()}}},94991:(r,i,s)=>{var a=s(73837);var l=s(12781).Stream;var c=s(67386);r.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}a.inherits(CombinedStream,l);CombinedStream.create=function(r){var i=new this;r=r||{};for(var s in r){i[s]=r[s]}return i};CombinedStream.isStreamLike=function(r){return typeof r!=="function"&&typeof r!=="string"&&typeof r!=="boolean"&&typeof r!=="number"&&!Buffer.isBuffer(r)};CombinedStream.prototype.append=function(r){var i=CombinedStream.isStreamLike(r);if(i){if(!(r instanceof c)){var s=c.create(r,{maxDataSize:Infinity,pauseStream:this.pauseStreams});r.on("data",this._checkDataSize.bind(this));r=s}this._handleErrors(r);if(this.pauseStreams){r.pause()}}this._streams.push(r);return this};CombinedStream.prototype.pipe=function(r,i){l.prototype.pipe.call(this,r,i);this.resume();return r};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var r=this._streams.shift();if(typeof r=="undefined"){this.end();return}if(typeof r!=="function"){this._pipeNext(r);return}var i=r;i(function(r){var i=CombinedStream.isStreamLike(r);if(i){r.on("data",this._checkDataSize.bind(this));this._handleErrors(r)}this._pipeNext(r)}.bind(this))};CombinedStream.prototype._pipeNext=function(r){this._currentStream=r;var i=CombinedStream.isStreamLike(r);if(i){r.on("end",this._getNext.bind(this));r.pipe(this,{end:false});return}var s=r;this.write(s);this._getNext()};CombinedStream.prototype._handleErrors=function(r){var i=this;r.on("error",(function(r){i._emitError(r)}))};CombinedStream.prototype.write=function(r){this.emit("data",r)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(r))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var r=this;this._streams.forEach((function(i){if(!i.dataSize){return}r.dataSize+=i.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(r){this._reset();this.emit("error",r)}},85318:r=>{var i=r.exports=function(){};i.prototype.getName=function(){};i.prototype.getSize=function(){};i.prototype.getLastModifiedDate=function(){};i.prototype.isDirectory=function(){}},78491:(r,i,s)=>{var a=s(73837).inherits;var l=s(16070);var c=s(10388).Transform;var p=s(85318);var d=s(2053);var u=r.exports=function(r){if(!(this instanceof u)){return new u(r)}c.call(this,r);this.offset=0;this._archive={finish:false,finished:false,processing:false}};a(u,c);u.prototype._appendBuffer=function(r,i,s){};u.prototype._appendStream=function(r,i,s){};u.prototype._emitErrorCallback=function(r){if(r){this.emit("error",r)}};u.prototype._finish=function(r){};u.prototype._normalizeEntry=function(r){};u.prototype._transform=function(r,i,s){s(null,r)};u.prototype.entry=function(r,i,s){i=i||null;if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}if(!(r instanceof p)){s(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){s(new Error("unacceptable entry after finish"));return}if(this._archive.processing){s(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(r);this._entry=r;i=d.normalizeInputSource(i);if(Buffer.isBuffer(i)){this._appendBuffer(r,i,s)}else if(l(i)){this._appendStream(r,i,s)}else{this._archive.processing=false;s(new Error("input source must be valid Stream or Buffer instance"));return}return this};u.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};u.prototype.getBytesWritten=function(){return this.offset};u.prototype.write=function(r,i){if(r){this.offset+=r.length}return c.prototype.write.call(this,r,i)}},98762:r=>{r.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},10923:(r,i,s)=>{var a=s(32168);var l=1<<3;var c=1<<0;var p=1<<2;var d=1<<1;var u=1<<6;var A=1<<11;var h=r.exports=function(){if(!(this instanceof h)){return new h}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};h.prototype.encode=function(){return a.getShortBytes((this.descriptor?l:0)|(this.utf8?A:0)|(this.encryption?c:0)|(this.strongEncryption?u:0))};h.prototype.parse=function(r,i){var s=a.getShortBytesValue(r,i);var g=new h;g.useDataDescriptor((s&l)!==0);g.useUTF8ForNames((s&A)!==0);g.useStrongEncryption((s&u)!==0);g.useEncryption((s&c)!==0);g.setSlidingDictionarySize((s&d)!==0?8192:4096);g.setNumberOfShannonFanoTrees((s&p)!==0?3:2);return g};h.prototype.setNumberOfShannonFanoTrees=function(r){this.numberOfShannonFanoTrees=r};h.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};h.prototype.setSlidingDictionarySize=function(r){this.slidingDictionarySize=r};h.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};h.prototype.useDataDescriptor=function(r){this.descriptor=r};h.prototype.usesDataDescriptor=function(){return this.descriptor};h.prototype.useEncryption=function(r){this.encryption=r};h.prototype.usesEncryption=function(){return this.encryption};h.prototype.useStrongEncryption=function(r){this.strongEncryption=r};h.prototype.usesStrongEncryption=function(){return this.strongEncryption};h.prototype.useUTF8ForNames=function(r){this.utf8=r};h.prototype.usesUTF8ForNames=function(){return this.utf8}},76703:r=>{r.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},32168:r=>{var i=r.exports={};i.dateToDos=function(r,i){i=i||false;var s=i?r.getFullYear():r.getUTCFullYear();if(s<1980){return 2162688}else if(s>=2044){return 2141175677}var a={year:s,month:i?r.getMonth():r.getUTCMonth(),date:i?r.getDate():r.getUTCDate(),hours:i?r.getHours():r.getUTCHours(),minutes:i?r.getMinutes():r.getUTCMinutes(),seconds:i?r.getSeconds():r.getUTCSeconds()};return a.year-1980<<25|a.month+1<<21|a.date<<16|a.hours<<11|a.minutes<<5|a.seconds/2};i.dosToDate=function(r){return new Date((r>>25&127)+1980,(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(r&31)<<1)};i.fromDosTime=function(r){return i.dosToDate(r.readUInt32LE(0))};i.getEightBytes=function(r){var i=Buffer.alloc(8);i.writeUInt32LE(r%4294967296,0);i.writeUInt32LE(r/4294967296|0,4);return i};i.getShortBytes=function(r){var i=Buffer.alloc(2);i.writeUInt16LE((r&65535)>>>0,0);return i};i.getShortBytesValue=function(r,i){return r.readUInt16LE(i)};i.getLongBytes=function(r){var i=Buffer.alloc(4);i.writeUInt32LE((r&4294967295)>>>0,0);return i};i.getLongBytesValue=function(r,i){return r.readUInt32LE(i)};i.toDosTime=function(r){return i.getLongBytes(i.dateToDos(r))}},39244:(r,i,s)=>{var a=s(73837).inherits;var l=s(7674);var c=s(85318);var p=s(10923);var d=s(76703);var u=s(98762);var A=s(32168);var h=r.exports=function(r){if(!(this instanceof h)){return new h(r)}c.call(this);this.platform=u.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new p;this.crc=0;this.time=-1;this.minver=u.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(r){this.setName(r)}};a(h,c);h.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};h.prototype.getComment=function(){return this.comment!==null?this.comment:""};h.prototype.getCompressedSize=function(){return this.csize};h.prototype.getCrc=function(){return this.crc};h.prototype.getExternalAttributes=function(){return this.exattr};h.prototype.getExtra=function(){return this.extra!==null?this.extra:u.EMPTY};h.prototype.getGeneralPurposeBit=function(){return this.gpb};h.prototype.getInternalAttributes=function(){return this.inattr};h.prototype.getLastModifiedDate=function(){return this.getTime()};h.prototype.getLocalFileDataExtra=function(){return this.getExtra()};h.prototype.getMethod=function(){return this.method};h.prototype.getName=function(){return this.name};h.prototype.getPlatform=function(){return this.platform};h.prototype.getSize=function(){return this.size};h.prototype.getTime=function(){return this.time!==-1?A.dosToDate(this.time):-1};h.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};h.prototype.getUnixMode=function(){return this.platform!==u.PLATFORM_UNIX?0:this.getExternalAttributes()>>u.SHORT_SHIFT&u.SHORT_MASK};h.prototype.getVersionNeededToExtract=function(){return this.minver};h.prototype.setComment=function(r){if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=r};h.prototype.setCompressedSize=function(r){if(r<0){throw new Error("invalid entry compressed size")}this.csize=r};h.prototype.setCrc=function(r){if(r<0){throw new Error("invalid entry crc32")}this.crc=r};h.prototype.setExternalAttributes=function(r){this.exattr=r>>>0};h.prototype.setExtra=function(r){this.extra=r};h.prototype.setGeneralPurposeBit=function(r){if(!(r instanceof p)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=r};h.prototype.setInternalAttributes=function(r){this.inattr=r};h.prototype.setMethod=function(r){if(r<0){throw new Error("invalid entry compression method")}this.method=r};h.prototype.setName=function(r,i=false){r=l(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(i){r=`/${r}`}if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=r};h.prototype.setPlatform=function(r){this.platform=r};h.prototype.setSize=function(r){if(r<0){throw new Error("invalid entry size")}this.size=r};h.prototype.setTime=function(r,i){if(!(r instanceof Date)){throw new Error("invalid entry time")}this.time=A.dateToDos(r,i)};h.prototype.setUnixMode=function(r){r|=this.isDirectory()?u.S_IFDIR:u.S_IFREG;var i=0;i|=r<u.ZIP64_MAGIC||this.size>u.ZIP64_MAGIC}},30477:(r,i,s)=>{var a=s(73837).inherits;var l=s(10980);var{CRC32Stream:c}=s(90948);var{DeflateCRC32Stream:p}=s(90948);var d=s(78491);var u=s(39244);var A=s(10923);var h=s(98762);var g=s(2053);var y=s(32168);var b=r.exports=function(r){if(!(this instanceof b)){return new b(r)}r=this.options=this._defaults(r);d.call(this,r);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:r.forceZip64,forceLocalTime:r.forceLocalTime}};a(b,d);b.prototype._afterAppend=function(r){this._entries.push(r);if(r.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(r)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};b.prototype._appendBuffer=function(r,i,s){if(i.length===0){r.setMethod(h.METHOD_STORED)}var a=r.getMethod();if(a===h.METHOD_STORED){r.setSize(i.length);r.setCompressedSize(i.length);r.setCrc(l.buf(i)>>>0)}this._writeLocalFileHeader(r);if(a===h.METHOD_STORED){this.write(i);this._afterAppend(r);s(null,r);return}else if(a===h.METHOD_DEFLATED){this._smartStream(r,s).end(i);return}else{s(new Error("compression method "+a+" not implemented"));return}};b.prototype._appendStream=function(r,i,s){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(h.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(r);var a=this._smartStream(r,s);i.once("error",(function(r){a.emit("error",r);a.end()}));i.pipe(a)};b.prototype._defaults=function(r){if(typeof r!=="object"){r={}}if(typeof r.zlib!=="object"){r.zlib={}}if(typeof r.zlib.level!=="number"){r.zlib.level=h.ZLIB_BEST_SPEED}r.forceZip64=!!r.forceZip64;r.forceLocalTime=!!r.forceLocalTime;return r};b.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(r){this._writeCentralFileHeader(r)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};b.prototype._normalizeEntry=function(r){if(r.getMethod()===-1){r.setMethod(h.METHOD_DEFLATED)}if(r.getMethod()===h.METHOD_DEFLATED){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(h.MIN_VERSION_DATA_DESCRIPTOR)}if(r.getTime()===-1){r.setTime(new Date,this._archive.forceLocalTime)}r._offsets={file:0,data:0,contents:0}};b.prototype._smartStream=function(r,i){var s=r.getMethod()===h.METHOD_DEFLATED;var a=s?new p(this.options.zlib):new c;var l=null;function handleStuff(){var s=a.digest().readUInt32BE(0);r.setCrc(s);r.setSize(a.size());r.setCompressedSize(a.size(true));this._afterAppend(r);i(l,r)}a.once("end",handleStuff.bind(this));a.once("error",(function(r){l=r}));a.pipe(this,{end:false});return a};b.prototype._writeCentralDirectoryEnd=function(){var r=this._entries.length;var i=this._archive.centralLength;var s=this._archive.centralOffset;if(this.isZip64()){r=h.ZIP64_MAGIC_SHORT;i=h.ZIP64_MAGIC;s=h.ZIP64_MAGIC}this.write(y.getLongBytes(h.SIG_EOCD));this.write(h.SHORT_ZERO);this.write(h.SHORT_ZERO);this.write(y.getShortBytes(r));this.write(y.getShortBytes(r));this.write(y.getLongBytes(i));this.write(y.getLongBytes(s));var a=this.getComment();var l=Buffer.byteLength(a);this.write(y.getShortBytes(l));this.write(a)};b.prototype._writeCentralDirectoryZip64=function(){this.write(y.getLongBytes(h.SIG_ZIP64_EOCD));this.write(y.getEightBytes(44));this.write(y.getShortBytes(h.MIN_VERSION_ZIP64));this.write(y.getShortBytes(h.MIN_VERSION_ZIP64));this.write(h.LONG_ZERO);this.write(h.LONG_ZERO);this.write(y.getEightBytes(this._entries.length));this.write(y.getEightBytes(this._entries.length));this.write(y.getEightBytes(this._archive.centralLength));this.write(y.getEightBytes(this._archive.centralOffset));this.write(y.getLongBytes(h.SIG_ZIP64_EOCD_LOC));this.write(h.LONG_ZERO);this.write(y.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(y.getLongBytes(1))};b.prototype._writeCentralFileHeader=function(r){var i=r.getGeneralPurposeBit();var s=r.getMethod();var a=r._offsets.file;var l=r.getSize();var c=r.getCompressedSize();if(r.isZip64()||a>h.ZIP64_MAGIC){l=h.ZIP64_MAGIC;c=h.ZIP64_MAGIC;a=h.ZIP64_MAGIC;r.setVersionNeededToExtract(h.MIN_VERSION_ZIP64);var p=Buffer.concat([y.getShortBytes(h.ZIP64_EXTRA_ID),y.getShortBytes(24),y.getEightBytes(r.getSize()),y.getEightBytes(r.getCompressedSize()),y.getEightBytes(r._offsets.file)],28);r.setExtra(p)}this.write(y.getLongBytes(h.SIG_CFH));this.write(y.getShortBytes(r.getPlatform()<<8|h.VERSION_MADEBY));this.write(y.getShortBytes(r.getVersionNeededToExtract()));this.write(i.encode());this.write(y.getShortBytes(s));this.write(y.getLongBytes(r.getTimeDos()));this.write(y.getLongBytes(r.getCrc()));this.write(y.getLongBytes(c));this.write(y.getLongBytes(l));var d=r.getName();var u=r.getComment();var A=r.getCentralDirectoryExtra();if(i.usesUTF8ForNames()){d=Buffer.from(d);u=Buffer.from(u)}this.write(y.getShortBytes(d.length));this.write(y.getShortBytes(A.length));this.write(y.getShortBytes(u.length));this.write(h.SHORT_ZERO);this.write(y.getShortBytes(r.getInternalAttributes()));this.write(y.getLongBytes(r.getExternalAttributes()));this.write(y.getLongBytes(a));this.write(d);this.write(A);this.write(u)};b.prototype._writeDataDescriptor=function(r){this.write(y.getLongBytes(h.SIG_DD));this.write(y.getLongBytes(r.getCrc()));if(r.isZip64()){this.write(y.getEightBytes(r.getCompressedSize()));this.write(y.getEightBytes(r.getSize()))}else{this.write(y.getLongBytes(r.getCompressedSize()));this.write(y.getLongBytes(r.getSize()))}};b.prototype._writeLocalFileHeader=function(r){var i=r.getGeneralPurposeBit();var s=r.getMethod();var a=r.getName();var l=r.getLocalFileDataExtra();if(r.isZip64()){i.useDataDescriptor(true);r.setVersionNeededToExtract(h.MIN_VERSION_ZIP64)}if(i.usesUTF8ForNames()){a=Buffer.from(a)}r._offsets.file=this.offset;this.write(y.getLongBytes(h.SIG_LFH));this.write(y.getShortBytes(r.getVersionNeededToExtract()));this.write(i.encode());this.write(y.getShortBytes(s));this.write(y.getLongBytes(r.getTimeDos()));r._offsets.data=this.offset;if(i.usesDataDescriptor()){this.write(h.LONG_ZERO);this.write(h.LONG_ZERO);this.write(h.LONG_ZERO)}else{this.write(y.getLongBytes(r.getCrc()));this.write(y.getLongBytes(r.getCompressedSize()));this.write(y.getLongBytes(r.getSize()))}this.write(y.getShortBytes(a.length));this.write(y.getShortBytes(l.length));this.write(a);this.write(l);r._offsets.contents=this.offset};b.prototype.getComment=function(r){return this._archive.comment!==null?this._archive.comment:""};b.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>h.ZIP64_MAGIC_SHORT||this._archive.centralLength>h.ZIP64_MAGIC||this._archive.centralOffset>h.ZIP64_MAGIC};b.prototype.setComment=function(r){this._archive.comment=r}},39738:(r,i,s)=>{r.exports={ArchiveEntry:s(85318),ZipArchiveEntry:s(39244),ArchiveOutputStream:s(78491),ZipArchiveOutputStream:s(30477)}},2053:(r,i,s)=>{var a=s(12781).Stream;var l=s(10388).PassThrough;var c=s(16070);var p=r.exports={};p.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(c(r)&&!r._readableState){var i=new l;r.pipe(i);return i}return r}},70326:(r,i,s)=>{function isArray(r){if(Array.isArray){return Array.isArray(r)}return objectToString(r)==="[object Array]"}i.isArray=isArray;function isBoolean(r){return typeof r==="boolean"}i.isBoolean=isBoolean;function isNull(r){return r===null}i.isNull=isNull;function isNullOrUndefined(r){return r==null}i.isNullOrUndefined=isNullOrUndefined;function isNumber(r){return typeof r==="number"}i.isNumber=isNumber;function isString(r){return typeof r==="string"}i.isString=isString;function isSymbol(r){return typeof r==="symbol"}i.isSymbol=isSymbol;function isUndefined(r){return r===void 0}i.isUndefined=isUndefined;function isRegExp(r){return objectToString(r)==="[object RegExp]"}i.isRegExp=isRegExp;function isObject(r){return typeof r==="object"&&r!==null}i.isObject=isObject;function isDate(r){return objectToString(r)==="[object Date]"}i.isDate=isDate;function isError(r){return objectToString(r)==="[object Error]"||r instanceof Error}i.isError=isError;function isFunction(r){return typeof r==="function"}i.isFunction=isFunction;function isPrimitive(r){return r===null||typeof r==="boolean"||typeof r==="number"||typeof r==="string"||typeof r==="symbol"||typeof r==="undefined"}i.isPrimitive=isPrimitive;i.isBuffer=s(14300).Buffer.isBuffer;function objectToString(r){return Object.prototype.toString.call(r)}},10980:(r,i)=>{ /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */ -var a;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else{}}else{r(a={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,i=new Array(256);for(var a=0;a!=256;++a){r=a;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;i[a]=r}return typeof Int32Array!=="undefined"?new Int32Array(i):i}var i=signed_crc_table();function slice_by_16_tables(r){var i=0,a=0,s=0,l=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(s=0;s!=256;++s)l[s]=r[s];for(s=0;s!=256;++s){a=r[s];for(i=256+s;i<4096;i+=256)a=l[i]=a>>>8^r[a&255]}var p=[];for(s=1;s!=16;++s)p[s-1]=typeof Int32Array!=="undefined"?l.subarray(s*256,s*256+256):l.slice(s*256,s*256+256);return p}var a=slice_by_16_tables(i);var s=a[0],l=a[1],p=a[2],c=a[3],d=a[4];var u=a[5],h=a[6],g=a[7],y=a[8],b=a[9];var v=a[10],w=a[11],x=a[12],S=a[13],_=a[14];function crc32_bstr(r,a){var s=a^-1;for(var l=0,p=r.length;l>>8^i[(s^r.charCodeAt(l++))&255];return~s}function crc32_buf(r,a){var T=a^-1,N=r.length-15,P=0;for(;P>8&255]^x[r[P++]^T>>16&255]^w[r[P++]^T>>>24]^v[r[P++]]^b[r[P++]]^y[r[P++]]^g[r[P++]]^h[r[P++]]^u[r[P++]]^d[r[P++]]^c[r[P++]]^p[r[P++]]^l[r[P++]]^s[r[P++]]^i[r[P++]];N+=15;while(P>>8^i[(T^r[P++])&255];return~T}function crc32_str(r,a){var s=a^-1;for(var l=0,p=r.length,c=0,d=0;l>>8^i[(s^c)&255]}else if(c<2048){s=s>>>8^i[(s^(192|c>>6&31))&255];s=s>>>8^i[(s^(128|c&63))&255]}else if(c>=55296&&c<57344){c=(c&1023)+64;d=r.charCodeAt(l++)&1023;s=s>>>8^i[(s^(240|c>>8&7))&255];s=s>>>8^i[(s^(128|c>>2&63))&255];s=s>>>8^i[(s^(128|d>>6&15|(c&3)<<4))&255];s=s>>>8^i[(s^(128|d&63))&255]}else{s=s>>>8^i[(s^(224|c>>12&15))&255];s=s>>>8^i[(s^(128|c>>6&63))&255];s=s>>>8^i[(s^(128|c&63))&255]}}return~s}r.table=i;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},1594:(r,i,a)=>{"use strict";const{Transform:s}=a(388);const l=a(980);class CRC32Stream extends s{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,i,a){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}a(null,r)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},3936:(r,i,a)=>{"use strict";const{DeflateRaw:s}=a(9796);const l=a(980);class DeflateCRC32Stream extends s{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,i){if(r){this.compressedSize+=r.length}return super.push(r,i)}_transform(r,i,a){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,i,a)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},948:(r,i,a)=>{"use strict";r.exports={CRC32Stream:a(1594),DeflateCRC32Stream:a(3936)}},7386:(r,i,a)=>{var s=a(2781).Stream;var l=a(3837);r.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}l.inherits(DelayedStream,s);DelayedStream.create=function(r,i){var a=new this;i=i||{};for(var s in i){a[s]=i[s]}a.source=r;var l=r.emit;r.emit=function(){a._handleEmit(arguments);return l.apply(r,arguments)};r.on("error",(function(){}));if(a.pauseStream){r.pause()}return a};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(r){this.emit.apply(this,r)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var r=s.prototype.pipe.apply(this,arguments);this.resume();return r};DelayedStream.prototype._handleEmit=function(r){if(this._released){this.emit.apply(this,r);return}if(r[0]==="data"){this.dataSize+=r[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(r)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(r))}},64:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});class Deprecation extends Error{constructor(r){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}i.Deprecation=Deprecation},4089:r=>{"use strict";function _process(r,i){var a;var s;if(typeof i==="function"){s=i(r);if(s!==undefined){r=s}}else if(Array.isArray(i)){for(a=0;a=0){r=r.replace(/\[/g,i).replace(/]/g,"")}var a=r.split(i);var s=a.filter(blacklistFilter);if(s.length!==a.length){throw Error("Refusing to update blacklisted property "+r)}return a}var a=Object.prototype.hasOwnProperty;function DotObject(r,i,a,s){if(!(this instanceof DotObject)){return new DotObject(r,i,a,s)}if(typeof i==="undefined")i=false;if(typeof a==="undefined")a=true;if(typeof s==="undefined")s=true;this.separator=r||".";this.override=i;this.useArray=a;this.useBrackets=s;this.keepArray=false;this.cleanup=[]}var s=new DotObject(".",false,true,true);function wrap(r){return function(){return s[r].apply(s,arguments)}}DotObject.prototype._fill=function(r,i,a,s){var l=r.shift();if(r.length>0){i[l]=i[l]||(this.useArray&&isIndex(r[0])?[]:{});if(!isArrayOrObject(i[l])){if(this.override){i[l]={}}else{if(!(isArrayOrObject(a)&&isEmptyObject(a))){throw new Error("Trying to redefine `"+l+"` which is a "+typeof i[l])}return}}this._fill(r,i[l],a,s)}else{if(!this.override&&isArrayOrObject(i[l])&&!isEmptyObject(i[l])){if(!(isArrayOrObject(a)&&isEmptyObject(a))){throw new Error("Trying to redefine non-empty obj['"+l+"']")}return}i[l]=_process(a,s)}};DotObject.prototype.object=function(r,i){var a=this;Object.keys(r).forEach((function(s){var l=i===undefined?null:i[s];var p=parsePath(s,a.separator).join(a.separator);if(p.indexOf(a.separator)!==-1){a._fill(p.split(a.separator),r,r[s],l);delete r[s]}else{r[s]=_process(r[s],l)}}));return r};DotObject.prototype.str=function(r,i,a,s){var l=parsePath(r,this.separator).join(this.separator);if(r.indexOf(this.separator)!==-1){this._fill(l.split(this.separator),a,i,s)}else{a[r]=_process(i,s)}return a};DotObject.prototype.pick=function(r,i,a,s){var l;var p;var c;var d;var u;p=parsePath(r,this.separator);for(l=0;l{"use strict"; +var s;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else{}}else{r(s={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,i=new Array(256);for(var s=0;s!=256;++s){r=s;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;i[s]=r}return typeof Int32Array!=="undefined"?new Int32Array(i):i}var i=signed_crc_table();function slice_by_16_tables(r){var i=0,s=0,a=0,l=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)l[a]=r[a];for(a=0;a!=256;++a){s=r[a];for(i=256+a;i<4096;i+=256)s=l[i]=s>>>8^r[s&255]}var c=[];for(a=1;a!=16;++a)c[a-1]=typeof Int32Array!=="undefined"?l.subarray(a*256,a*256+256):l.slice(a*256,a*256+256);return c}var s=slice_by_16_tables(i);var a=s[0],l=s[1],c=s[2],p=s[3],d=s[4];var u=s[5],A=s[6],h=s[7],g=s[8],y=s[9];var b=s[10],C=s[11],v=s[12],B=s[13],w=s[14];function crc32_bstr(r,s){var a=s^-1;for(var l=0,c=r.length;l>>8^i[(a^r.charCodeAt(l++))&255];return~a}function crc32_buf(r,s){var I=s^-1,S=r.length-15,Q=0;for(;Q>8&255]^v[r[Q++]^I>>16&255]^C[r[Q++]^I>>>24]^b[r[Q++]]^y[r[Q++]]^g[r[Q++]]^h[r[Q++]]^A[r[Q++]]^u[r[Q++]]^d[r[Q++]]^p[r[Q++]]^c[r[Q++]]^l[r[Q++]]^a[r[Q++]]^i[r[Q++]];S+=15;while(Q>>8^i[(I^r[Q++])&255];return~I}function crc32_str(r,s){var a=s^-1;for(var l=0,c=r.length,p=0,d=0;l>>8^i[(a^p)&255]}else if(p<2048){a=a>>>8^i[(a^(192|p>>6&31))&255];a=a>>>8^i[(a^(128|p&63))&255]}else if(p>=55296&&p<57344){p=(p&1023)+64;d=r.charCodeAt(l++)&1023;a=a>>>8^i[(a^(240|p>>8&7))&255];a=a>>>8^i[(a^(128|p>>2&63))&255];a=a>>>8^i[(a^(128|d>>6&15|(p&3)<<4))&255];a=a>>>8^i[(a^(128|d&63))&255]}else{a=a>>>8^i[(a^(224|p>>12&15))&255];a=a>>>8^i[(a^(128|p>>6&63))&255];a=a>>>8^i[(a^(128|p&63))&255]}}return~a}r.table=i;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},1594:(r,i,s)=>{"use strict";const{Transform:a}=s(10388);const l=s(10980);class CRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,i,s){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}s(null,r)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},73936:(r,i,s)=>{"use strict";const{DeflateRaw:a}=s(59796);const l=s(10980);class DeflateCRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,i){if(r){this.compressedSize+=r.length}return super.push(r,i)}_transform(r,i,s){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,i,s)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},90948:(r,i,s)=>{"use strict";r.exports={CRC32Stream:s(1594),DeflateCRC32Stream:s(73936)}},67386:(r,i,s)=>{var a=s(12781).Stream;var l=s(73837);r.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}l.inherits(DelayedStream,a);DelayedStream.create=function(r,i){var s=new this;i=i||{};for(var a in i){s[a]=i[a]}s.source=r;var l=r.emit;r.emit=function(){s._handleEmit(arguments);return l.apply(r,arguments)};r.on("error",(function(){}));if(s.pauseStream){r.pause()}return s};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(r){this.emit.apply(this,r)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var r=a.prototype.pipe.apply(this,arguments);this.resume();return r};DelayedStream.prototype._handleEmit=function(r){if(this._released){this.emit.apply(this,r);return}if(r[0]==="data"){this.dataSize+=r[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(r)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(r))}},20064:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});class Deprecation extends Error{constructor(r){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}i.Deprecation=Deprecation},23770:r=>{"use strict";function _process(r,i){var s;var a;if(typeof i==="function"){a=i(r);if(a!==undefined){r=a}}else if(Array.isArray(i)){for(s=0;s=0){r=r.replace(/\[/g,i).replace(/]/g,"")}var s=r.split(i);var a=s.filter(blacklistFilter);if(a.length!==s.length){throw Error("Refusing to update blacklisted property "+r)}return s}var s=Object.prototype.hasOwnProperty;function DotObject(r,i,s,a){if(!(this instanceof DotObject)){return new DotObject(r,i,s,a)}if(typeof i==="undefined")i=false;if(typeof s==="undefined")s=true;if(typeof a==="undefined")a=true;this.separator=r||".";this.override=i;this.useArray=s;this.useBrackets=a;this.keepArray=false;this.cleanup=[]}var a=new DotObject(".",false,true,true);function wrap(r){return function(){return a[r].apply(a,arguments)}}DotObject.prototype._fill=function(r,i,s,a){var l=r.shift();if(r.length>0){i[l]=i[l]||(this.useArray&&isIndex(r[0])?[]:{});if(!isArrayOrObject(i[l])){if(this.override){i[l]={}}else{if(!(isArrayOrObject(s)&&isEmptyObject(s))){throw new Error("Trying to redefine `"+l+"` which is a "+typeof i[l])}return}}this._fill(r,i[l],s,a)}else{if(!this.override&&isArrayOrObject(i[l])&&!isEmptyObject(i[l])){if(!(isArrayOrObject(s)&&isEmptyObject(s))){throw new Error("Trying to redefine non-empty obj['"+l+"']")}return}i[l]=_process(s,a)}};DotObject.prototype.object=function(r,i){var s=this;Object.keys(r).forEach((function(a){var l=i===undefined?null:i[a];var c=parsePath(a,s.separator).join(s.separator);if(c.indexOf(s.separator)!==-1){s._fill(c.split(s.separator),r,r[a],l);delete r[a]}else{r[a]=_process(r[a],l)}}));return r};DotObject.prototype.str=function(r,i,s,a){var l=parsePath(r,this.separator).join(this.separator);if(r.indexOf(this.separator)!==-1){this._fill(l.split(this.separator),s,i,a)}else{s[r]=_process(i,a)}return s};DotObject.prototype.pick=function(r,i,s,a){var l;var c;var p;var d;var u;c=parsePath(r,this.separator);for(l=0;l{"use strict"; /** * @author Toru Nagashima * @copyright 2015 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. - */Object.defineProperty(i,"__esModule",{value:true});const a=new WeakMap;const s=new WeakMap;function pd(r){const i=a.get(r);console.assert(i!=null,"'this' is expected an Event object, but got",r);return i}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,i){a.set(this,{eventTarget:r,event:i,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:i.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const s=Object.keys(i);for(let r=0;r0){const r=new Array(arguments.length);for(let i=0;i{r.exports=class FixedFIFO{constructor(r){if(!(r>0)||(r-1&r)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(r);this.mask=r-1;this.top=0;this.btm=0;this.next=null}clear(){this.top=this.btm=0;this.next=null;this.buffer.fill(undefined)}push(r){if(this.buffer[this.top]!==undefined)return false;this.buffer[this.top]=r;this.top=this.top+1&this.mask;return true}shift(){const r=this.buffer[this.btm];if(r===undefined)return undefined;this.buffer[this.btm]=undefined;this.btm=this.btm+1&this.mask;return r}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}},9003:(r,i,a)=>{const s=a(6646);r.exports=class FastFIFO{constructor(r){this.hwm=r||16;this.head=new s(this.hwm);this.tail=this.head;this.length=0}clear(){this.head=this.tail;this.head.clear();this.length=0}push(r){this.length++;if(!this.head.push(r)){const i=this.head;this.head=i.next=new s(2*this.head.buffer.length);this.head.push(r)}}shift(){if(this.length!==0)this.length--;const r=this.tail.shift();if(r===undefined&&this.tail.next){const r=this.tail.next;this.tail.next=null;this.tail=r;return this.tail.shift()}return r}peek(){const r=this.tail.peek();if(r===undefined&&this.tail.next)return this.tail.next.peek();return r}isEmpty(){return this.length===0}}},3277:(r,i,a)=>{"use strict";r.exports=a(9779)},9779:(r,i,a)=>{"use strict";const s=a(8846);const l=a(3823);const p={port(r,i){return s(r,i).then((r=>p.pid(r,i)),(()=>[]))},pid(r,i){return l({pid:r,strict:i})},name(r,i){return l({name:r,strict:i})}};function find(r,i,a){return new Promise(((s,l)=>{if(!(r in p)){l(new Error(`do not support find by "${r}"`))}else{const c=/^\d+$/.test(i);if(r==="pid"&&!c){l(new Error("pid must be a number"))}else if(r==="port"&&!c){l(new Error("port must be a number"))}else{p[r](i,a).then(s,l)}}}))}r.exports=find},8846:(r,i,a)=>{"use strict";const s=a(2037);const l=a(7147);const p=a(8773);const ensureDir=r=>new Promise(((i,a)=>{if(l.existsSync(r)){i()}else{l.mkdir(r,(r=>{r?a(r):i()}))}}));const c={darwin(r){return new Promise(((i,a)=>{p.exec("netstat -anv -p TCP && netstat -anv -p UDP",(function(s,l,c){if(s){a(s)}else{s=c.toString().trim();if(s){a(s);return}const d=p.stripLine(l.toString(),2);const u=p.extractColumns(d,[0,3,8],10).filter((r=>!!String(r[0]).match(/^(udp|tcp)/))).find((i=>{const a=String(i[1]).match(/\.(\d+)$/);if(a&&a[1]===String(r)){return true}}));if(u&&u[2].length){i(parseInt(u[2],10))}else{a(new Error(`pid of port (${r}) not found`))}}}))}))},freebsd:"darwin",sunos:"darwin",linux(r){return new Promise(((i,a)=>{const s="netstat -tunlp";p.exec(s,(function(s,l,c){if(s){a(s)}else{const s=c.toString().trim();if(s){console.warn(s)}const d=p.stripLine(l.toString(),2);const u=p.extractColumns(d,[3,6],7).find((i=>{const a=String(i[0]).match(/:(\d+)$/);if(a&&a[1]===String(r)){return true}}));if(u&&u[1]){const s=u[1].split("/",1)[0];if(s.length){i(parseInt(s,10))}else{a(new Error(`pid of port (${r}) not found`))}}else{a(new Error(`pid of port (${r}) not found`))}}}))}))},win32(r){return new Promise(((i,a)=>{p.exec("netstat -ano",(function(s,l,c){if(s){a(s)}else{s=c.toString().trim();if(s){a(s);return}const d=p.stripLine(l.toString(),4);const u=p.extractColumns(d,[1,4],5).find((i=>{const a=String(i[0]).match(/:(\d+)$/);if(a&&a[1]===String(r)){return true}}));if(u&&u[1].length&&parseInt(u[1],10)>0){i(parseInt(u[1],10))}else{a(new Error(`pid of port (${r}) not found`))}}}))}))},android(r){return new Promise(((i,a)=>{const c=s.tmpdir()+"/.find-process";const d=c+"/"+process.pid;const u='netstat -tunp >> "'+d+'"';ensureDir(c).then((()=>{p.exec(u,(()=>{l.readFile(d,"utf8",((s,c)=>{l.unlink(d,(()=>{}));if(s){a(s)}else{c=p.stripLine(c,2);const s=p.extractColumns(c,[3,6],7).find((i=>{const a=String(i[0]).match(/:(\d+)$/);if(a&&a[1]===String(r)){return true}}));if(s&&s[1]){const l=s[1].split("/",1)[0];if(l.length){i(parseInt(l,10))}else{a(new Error(`pid of port (${r}) not found`))}}else{a(new Error(`pid of port (${r}) not found`))}}}))}))}))}))}};function findPidByPort(r){const i=process.platform;return new Promise(((a,s)=>{if(!(i in c)){return s(new Error(`platform ${i} is unsupported`))}let l=c[i];if(typeof l==="string"){l=c[l]}l(r).then(a,s)}))}r.exports=findPidByPort},3823:(r,i,a)=>{"use strict";const s=a(1017);const l=a(8773);function matchName(r,i){if(!i){return true}if(r&&r.match){return r.match(i)}return false}function fetchBin(r){const i=r.split(s.sep);const a=i[i.length-1];if(a){i[i.length-1]=a.split(" ")[0]}const l=[];for(const r of i){const i=r.indexOf(" -");if(i>=0){l.push(r.substring(0,i).trim());break}else if(r.endsWith(" ")){l.push(r.trim());break}l.push(r)}return l.join(s.sep)}function fetchName(r){if(process.platform==="darwin"){const i=r.indexOf(".app/");if(i>=0){return s.basename(r.substring(0,i))}}return s.basename(r)}const p={darwin(r){return new Promise(((i,a)=>{let s;if("pid"in r){s=`ps -p ${r.pid} -ww -o pid,ppid,uid,gid,args`}else{s="ps ax -ww -o pid,ppid,uid,gid,args"}l.exec(s,(function(s,p,c){if(s){if("pid"in r){i([])}else{a(s)}}else{s=c.toString().trim();if(s){a(s);return}const d=l.stripLine(p.toString(),1);const u=l.extractColumns(d,[0,1,2,3,4],5).filter((i=>{if(i[0]&&r.pid){return i[0]===String(r.pid)}else if(i[4]&&r.name){return matchName(i[4],r.name)}else{return!!i[0]}}));let h=u.map((r=>{const i=String(r[4]);const a=fetchBin(i);return{pid:parseInt(r[0],10),ppid:parseInt(r[1],10),uid:parseInt(r[2],10),gid:parseInt(r[3],10),name:fetchName(a),bin:a,cmd:r[4]}}));if(r.strict&&r.name){h=h.filter((i=>i.name===r.name))}i(h)}}))}))},linux:"darwin",sunos:"darwin",freebsd:"darwin",win32(r){return new Promise(((i,a)=>{const s="Get-CimInstance -className win32_process | select Name,ProcessId,ParentProcessId,CommandLine,ExecutablePath";const p=[];const c=l.spawn("powershell.exe",["/c",s],{detached:false,windowsHide:true});c.stdout.on("data",(r=>{p.push(r.toString())}));c.on("close",(c=>{if(c!==0){return a(new Error("Command '"+s+"' terminated with code: "+c))}const d=l.parseTable(p.join("")).filter((i=>{if("pid"in r){return i.ProcessId===String(r.pid)}else if(r.name){const a=i.Name||"";if(r.strict){return a===r.name||a.endsWith(".exe")&&a.slice(0,-4)===r.name}else{return matchName(i.CommandLine||a,r.name)}}else{return true}})).map((r=>({pid:parseInt(r.ProcessId,10),ppid:parseInt(r.ParentProcessId,10),bin:r.ExecutablePath,name:r.Name||"",cmd:r.CommandLine})));i(d)}))}))},android(r){return new Promise(((i,a)=>{const s="ps";l.exec(s,(function(s,p,c){if(s){if("pid"in r){i([])}else{a(s)}}else{s=c.toString().trim();if(s){a(s);return}const d=l.stripLine(p.toString(),1);const u=l.extractColumns(d,[0,3],4).filter((i=>{if(i[0]&&r.pid){return i[0]===String(r.pid)}else if(i[1]&&r.name){return matchName(i[1],r.name)}else{return!!i[0]}}));let h=u.map((r=>{const i=String(r[1]);const a=fetchBin(i);return{pid:parseInt(r[0],10),name:fetchName(a),bin:a,cmd:i}}));if(r.strict&&r.name){h=h.filter((i=>i.name===r.name))}i(h)}}))}))}};function findProcess(r){const i=process.platform;return new Promise(((a,s)=>{if(!(i in p)){return s(new Error(`platform ${i} is unsupported`))}let l=p[i];if(typeof l==="string"){l=p[l]}l(r).then(a,s)}))}r.exports=findProcess},8773:(r,i,a)=>{"use strict";const s=a(2081);const l=1024*1024;const p={exec(r,i){s.exec(r,{maxBuffer:2*l,windowsHide:true},i)},spawn(r,i,a){return s.spawn(r,i,a)},stripLine(r,i){let a=0;while(i-- >0){const i=r.indexOf("\n",a);if(i>=0){a=i+1}}return a>0?r.substring(a):r},split(r,i){const a=r.trim().split(/\s+/);if(a.length>i){a[i-1]=a.slice(i-1).join(" ")}return a},extractColumns(r,i,a){const s=r.split(/(\r\n|\n|\r)/);const l=[];if(!a){a=Math.max.apply(null,i)+1}s.forEach((r=>{const s=p.split(r,a);const c=[];i.forEach((r=>{c.push(s[r]||"")}));l.push(c)}));return l},parseTable(r){const i=r.split(/(\r\n\r\n|\r\n\n|\n\r\n)|\n\n/).filter((r=>r.trim().length>0)).map((r=>r.split(/(\r\n|\n|\r)/).filter((r=>r.trim().length>0))));i.forEach((r=>{for(let i=0;r[i];){const a=r[i];if(a.startsWith(" ")){r[i-1]+=a.trimLeft();r.splice(i,1)}else{i+=1}}}));return i.map((r=>{const i={};r.forEach((r=>{const a=r.indexOf(":");const s=r.slice(0,a).trim();i[s]=r.slice(a+1).trim()}));return i}))}};r.exports=p},6698:(r,i,a)=>{var s=a(4991);var l=a(3837);var p=a(1017);var c=a(3685);var d=a(5687);var u=a(7310).parse;var h=a(7147);var g=a(2781).Stream;var y=a(3739);var b=a(4821);var v=a(1713);r.exports=FormData;l.inherits(FormData,s);function FormData(r){if(!(this instanceof FormData)){return new FormData(r)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];s.call(this);r=r||{};for(var i in r){this[i]=r[i]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(r,i,a){a=a||{};if(typeof a=="string"){a={filename:a}}var p=s.prototype.append.bind(this);if(typeof i=="number"){i=""+i}if(l.isArray(i)){this._error(new Error("Arrays are not supported."));return}var c=this._multiPartHeader(r,i,a);var d=this._multiPartFooter();p(c);p(i);p(d);this._trackLength(c,i,a)};FormData.prototype._trackLength=function(r,i,a){var s=0;if(a.knownLength!=null){s+=+a.knownLength}else if(Buffer.isBuffer(i)){s=i.length}else if(typeof i==="string"){s=Buffer.byteLength(i)}this._valueLength+=s;this._overheadLength+=Buffer.byteLength(r)+FormData.LINE_BREAK.length;if(!i||!i.path&&!(i.readable&&i.hasOwnProperty("httpVersion"))&&!(i instanceof g)){return}if(!a.knownLength){this._valuesToMeasure.push(i)}};FormData.prototype._lengthRetriever=function(r,i){if(r.hasOwnProperty("fd")){if(r.end!=undefined&&r.end!=Infinity&&r.start!=undefined){i(null,r.end+1-(r.start?r.start:0))}else{h.stat(r.path,(function(a,s){var l;if(a){i(a);return}l=s.size-(r.start?r.start:0);i(null,l)}))}}else if(r.hasOwnProperty("httpVersion")){i(null,+r.headers["content-length"])}else if(r.hasOwnProperty("httpModule")){r.on("response",(function(a){r.pause();i(null,+a.headers["content-length"])}));r.resume()}else{i("Unknown stream")}};FormData.prototype._multiPartHeader=function(r,i,a){if(typeof a.header=="string"){return a.header}var s=this._getContentDisposition(i,a);var l=this._getContentType(i,a);var p="";var c={"Content-Disposition":["form-data",'name="'+r+'"'].concat(s||[]),"Content-Type":[].concat(l||[])};if(typeof a.header=="object"){v(c,a.header)}var d;for(var u in c){if(!c.hasOwnProperty(u))continue;d=c[u];if(d==null){continue}if(!Array.isArray(d)){d=[d]}if(d.length){p+=u+": "+d.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+p+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(r,i){var a,s;if(typeof i.filepath==="string"){a=p.normalize(i.filepath).replace(/\\/g,"/")}else if(i.filename||r.name||r.path){a=p.basename(i.filename||r.name||r.path)}else if(r.readable&&r.hasOwnProperty("httpVersion")){a=p.basename(r.client._httpMessage.path||"")}if(a){s='filename="'+a+'"'}return s};FormData.prototype._getContentType=function(r,i){var a=i.contentType;if(!a&&r.name){a=y.lookup(r.name)}if(!a&&r.path){a=y.lookup(r.path)}if(!a&&r.readable&&r.hasOwnProperty("httpVersion")){a=r.headers["content-type"]}if(!a&&(i.filepath||i.filename)){a=y.lookup(i.filepath||i.filename)}if(!a&&typeof r=="object"){a=FormData.DEFAULT_CONTENT_TYPE}return a};FormData.prototype._multiPartFooter=function(){return function(r){var i=FormData.LINE_BREAK;var a=this._streams.length===0;if(a){i+=this._lastBoundary()}r(i)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(r){var i;var a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(i in r){if(r.hasOwnProperty(i)){a[i.toLowerCase()]=r[i]}}return a};FormData.prototype.setBoundary=function(r){this._boundary=r};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var r=new Buffer.alloc(0);var i=this.getBoundary();for(var a=0,s=this._streams.length;a{r.exports=function(r,i){Object.keys(i).forEach((function(a){r[a]=r[a]||i[a]}));return r}},2691:r=>{"use strict";r.exports=clone;var i=Object.getPrototypeOf||function(r){return r.__proto__};function clone(r){if(r===null||typeof r!=="object")return r;if(r instanceof Object)var a={__proto__:i(r)};else var a=Object.create(null);Object.getOwnPropertyNames(r).forEach((function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(r,i))}));return a}},7804:(r,i,a)=>{var s=a(7147);var l=a(7567);var p=a(7915);var c=a(2691);var d=a(3837);var u;var h;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");h=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";h="___graceful-fs.previous"}function noop(){}function publishQueue(r,i){Object.defineProperty(r,u,{get:function(){return i}})}var g=noop;if(d.debuglog)g=d.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))g=function(){var r=d.format.apply(d,arguments);r="GFS4: "+r.split(/\n/).join("\nGFS4: ");console.error(r)};if(!s[u]){var y=global[u]||[];publishQueue(s,y);s.close=function(r){function close(i,a){return r.call(s,i,(function(r){if(!r){resetQueue()}if(typeof a==="function")a.apply(this,arguments)}))}Object.defineProperty(close,h,{value:r});return close}(s.close);s.closeSync=function(r){function closeSync(i){r.apply(s,arguments);resetQueue()}Object.defineProperty(closeSync,h,{value:r});return closeSync}(s.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){g(s[u]);a(9491).equal(s[u].length,0)}))}}if(!global[u]){publishQueue(global,s[u])}r.exports=patch(c(s));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched){r.exports=patch(s);s.__patched=true}function patch(r){l(r);r.gracefulify=patch;r.createReadStream=createReadStream;r.createWriteStream=createWriteStream;var i=r.readFile;r.readFile=readFile;function readFile(r,a,s){if(typeof a==="function")s=a,a=null;return go$readFile(r,a,s);function go$readFile(r,a,s,l){return i(r,a,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readFile,[r,a,s],i,l||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var a=r.writeFile;r.writeFile=writeFile;function writeFile(r,i,s,l){if(typeof s==="function")l=s,s=null;return go$writeFile(r,i,s,l);function go$writeFile(r,i,s,l,p){return a(r,i,s,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$writeFile,[r,i,s,l],a,p||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var s=r.appendFile;if(s)r.appendFile=appendFile;function appendFile(r,i,a,l){if(typeof a==="function")l=a,a=null;return go$appendFile(r,i,a,l);function go$appendFile(r,i,a,l,p){return s(r,i,a,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$appendFile,[r,i,a,l],s,p||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var c=r.copyFile;if(c)r.copyFile=copyFile;function copyFile(r,i,a,s){if(typeof a==="function"){s=a;a=0}return go$copyFile(r,i,a,s);function go$copyFile(r,i,a,s,l){return c(r,i,a,(function(p){if(p&&(p.code==="EMFILE"||p.code==="ENFILE"))enqueue([go$copyFile,[r,i,a,s],p,l||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var d=r.readdir;r.readdir=readdir;var u=/^v[0-5]\./;function readdir(r,i,a){if(typeof i==="function")a=i,i=null;var s=u.test(process.version)?function go$readdir(r,i,a,s){return d(r,fs$readdirCallback(r,i,a,s))}:function go$readdir(r,i,a,s){return d(r,i,fs$readdirCallback(r,i,a,s))};return s(r,i,a);function fs$readdirCallback(r,i,a,l){return function(p,c){if(p&&(p.code==="EMFILE"||p.code==="ENFILE"))enqueue([s,[r,i,a],p,l||Date.now(),Date.now()]);else{if(c&&c.sort)c.sort();if(typeof a==="function")a.call(this,p,c)}}}}if(process.version.substr(0,4)==="v0.8"){var h=p(r);ReadStream=h.ReadStream;WriteStream=h.WriteStream}var g=r.ReadStream;if(g){ReadStream.prototype=Object.create(g.prototype);ReadStream.prototype.open=ReadStream$open}var y=r.WriteStream;if(y){WriteStream.prototype=Object.create(y.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(r,"ReadStream",{get:function(){return ReadStream},set:function(r){ReadStream=r},enumerable:true,configurable:true});Object.defineProperty(r,"WriteStream",{get:function(){return WriteStream},set:function(r){WriteStream=r},enumerable:true,configurable:true});var b=ReadStream;Object.defineProperty(r,"FileReadStream",{get:function(){return b},set:function(r){b=r},enumerable:true,configurable:true});var v=WriteStream;Object.defineProperty(r,"FileWriteStream",{get:function(){return v},set:function(r){v=r},enumerable:true,configurable:true});function ReadStream(r,i){if(this instanceof ReadStream)return g.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(i,a){if(i){if(r.autoClose)r.destroy();r.emit("error",i)}else{r.fd=a;r.emit("open",a);r.read()}}))}function WriteStream(r,i){if(this instanceof WriteStream)return y.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(i,a){if(i){r.destroy();r.emit("error",i)}else{r.fd=a;r.emit("open",a)}}))}function createReadStream(i,a){return new r.ReadStream(i,a)}function createWriteStream(i,a){return new r.WriteStream(i,a)}var w=r.open;r.open=open;function open(r,i,a,s){if(typeof a==="function")s=a,a=null;return go$open(r,i,a,s);function go$open(r,i,a,s,l){return w(r,i,a,(function(p,c){if(p&&(p.code==="EMFILE"||p.code==="ENFILE"))enqueue([go$open,[r,i,a,s],p,l||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}return r}function enqueue(r){g("ENQUEUE",r[0].name,r[1]);s[u].push(r);retry()}var b;function resetQueue(){var r=Date.now();for(var i=0;i2){s[u][i][3]=r;s[u][i][4]=r}}retry()}function retry(){clearTimeout(b);b=undefined;if(s[u].length===0)return;var r=s[u].shift();var i=r[0];var a=r[1];var l=r[2];var p=r[3];var c=r[4];if(p===undefined){g("RETRY",i.name,a);i.apply(null,a)}else if(Date.now()-p>=6e4){g("TIMEOUT",i.name,a);var d=a.pop();if(typeof d==="function")d.call(null,l)}else{var h=Date.now()-c;var y=Math.max(c-p,1);var v=Math.min(y*1.2,100);if(h>=v){g("RETRY",i.name,a);i.apply(null,a.concat([p]))}else{s[u].push(r)}}if(b===undefined){b=setTimeout(retry,0)}}},7915:(r,i,a)=>{var s=a(2781).Stream;r.exports=legacy;function legacy(r){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(i,a){if(!(this instanceof ReadStream))return new ReadStream(i,a);s.call(this);var l=this;this.path=i;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;a=a||{};var p=Object.keys(a);for(var c=0,d=p.length;cthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){l._read()}));return}r.open(this.path,this.flags,this.mode,(function(r,i){if(r){l.emit("error",r);l.readable=false;return}l.fd=i;l.emit("open",i);l._read()}))}function WriteStream(i,a){if(!(this instanceof WriteStream))return new WriteStream(i,a);s.call(this);this.path=i;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;a=a||{};var l=Object.keys(a);for(var p=0,c=l.length;p= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=r.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},7567:(r,i,a)=>{var s=a(2057);var l=process.cwd;var p=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!p)p=l.call(process);return p};try{process.cwd()}catch(r){}if(typeof process.chdir==="function"){var d=process.chdir;process.chdir=function(r){p=null;d.call(process,r)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,d)}r.exports=patch;function patch(r){if(s.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(r)}if(!r.lutimes){patchLutimes(r)}r.chown=chownFix(r.chown);r.fchown=chownFix(r.fchown);r.lchown=chownFix(r.lchown);r.chmod=chmodFix(r.chmod);r.fchmod=chmodFix(r.fchmod);r.lchmod=chmodFix(r.lchmod);r.chownSync=chownFixSync(r.chownSync);r.fchownSync=chownFixSync(r.fchownSync);r.lchownSync=chownFixSync(r.lchownSync);r.chmodSync=chmodFixSync(r.chmodSync);r.fchmodSync=chmodFixSync(r.fchmodSync);r.lchmodSync=chmodFixSync(r.lchmodSync);r.stat=statFix(r.stat);r.fstat=statFix(r.fstat);r.lstat=statFix(r.lstat);r.statSync=statFixSync(r.statSync);r.fstatSync=statFixSync(r.fstatSync);r.lstatSync=statFixSync(r.lstatSync);if(r.chmod&&!r.lchmod){r.lchmod=function(r,i,a){if(a)process.nextTick(a)};r.lchmodSync=function(){}}if(r.chown&&!r.lchown){r.lchown=function(r,i,a,s){if(s)process.nextTick(s)};r.lchownSync=function(){}}if(c==="win32"){r.rename=typeof r.rename!=="function"?r.rename:function(i){function rename(a,s,l){var p=Date.now();var c=0;i(a,s,(function CB(d){if(d&&(d.code==="EACCES"||d.code==="EPERM"||d.code==="EBUSY")&&Date.now()-p<6e4){setTimeout((function(){r.stat(s,(function(r,p){if(r&&r.code==="ENOENT")i(a,s,CB);else l(d)}))}),c);if(c<100)c+=10;return}if(l)l(d)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,i);return rename}(r.rename)}r.read=typeof r.read!=="function"?r.read:function(i){function read(a,s,l,p,c,d){var u;if(d&&typeof d==="function"){var h=0;u=function(g,y,b){if(g&&g.code==="EAGAIN"&&h<10){h++;return i.call(r,a,s,l,p,c,u)}d.apply(this,arguments)}}return i.call(r,a,s,l,p,c,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,i);return read}(r.read);r.readSync=typeof r.readSync!=="function"?r.readSync:function(i){return function(a,s,l,p,c){var d=0;while(true){try{return i.call(r,a,s,l,p,c)}catch(r){if(r.code==="EAGAIN"&&d<10){d++;continue}throw r}}}}(r.readSync);function patchLchmod(r){r.lchmod=function(i,a,l){r.open(i,s.O_WRONLY|s.O_SYMLINK,a,(function(i,s){if(i){if(l)l(i);return}r.fchmod(s,a,(function(i){r.close(s,(function(r){if(l)l(i||r)}))}))}))};r.lchmodSync=function(i,a){var l=r.openSync(i,s.O_WRONLY|s.O_SYMLINK,a);var p=true;var c;try{c=r.fchmodSync(l,a);p=false}finally{if(p){try{r.closeSync(l)}catch(r){}}else{r.closeSync(l)}}return c}}function patchLutimes(r){if(s.hasOwnProperty("O_SYMLINK")&&r.futimes){r.lutimes=function(i,a,l,p){r.open(i,s.O_SYMLINK,(function(i,s){if(i){if(p)p(i);return}r.futimes(s,a,l,(function(i){r.close(s,(function(r){if(p)p(i||r)}))}))}))};r.lutimesSync=function(i,a,l){var p=r.openSync(i,s.O_SYMLINK);var c;var d=true;try{c=r.futimesSync(p,a,l);d=false}finally{if(d){try{r.closeSync(p)}catch(r){}}else{r.closeSync(p)}}return c}}else if(r.futimes){r.lutimes=function(r,i,a,s){if(s)process.nextTick(s)};r.lutimesSync=function(){}}}function chmodFix(i){if(!i)return i;return function(a,s,l){return i.call(r,a,s,(function(r){if(chownErOk(r))r=null;if(l)l.apply(this,arguments)}))}}function chmodFixSync(i){if(!i)return i;return function(a,s){try{return i.call(r,a,s)}catch(r){if(!chownErOk(r))throw r}}}function chownFix(i){if(!i)return i;return function(a,s,l,p){return i.call(r,a,s,l,(function(r){if(chownErOk(r))r=null;if(p)p.apply(this,arguments)}))}}function chownFixSync(i){if(!i)return i;return function(a,s,l){try{return i.call(r,a,s,l)}catch(r){if(!chownErOk(r))throw r}}}function statFix(i){if(!i)return i;return function(a,s,l){if(typeof s==="function"){l=s;s=null}function callback(r,i){if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}if(l)l.apply(this,arguments)}return s?i.call(r,a,s,callback):i.call(r,a,callback)}}function statFixSync(i){if(!i)return i;return function(a,s){var l=s?i.call(r,a,s):i.call(r,a);if(l){if(l.uid<0)l.uid+=4294967296;if(l.gid<0)l.gid+=4294967296}return l}}function chownErOk(r){if(!r)return true;if(r.code==="ENOSYS")return true;var i=!process.getuid||process.getuid()!==0;if(i){if(r.code==="EINVAL"||r.code==="EPERM")return true}return false}}},2713:(r,i,a)=>{try{var s=a(3837);if(typeof s.inherits!=="function")throw"";r.exports=s.inherits}catch(i){r.exports=a(8432)}},8432:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,i){if(i){r.super_=i;r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,i){if(i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},7352:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true}); + */Object.defineProperty(i,"__esModule",{value:true});const s=new WeakMap;const a=new WeakMap;function pd(r){const i=s.get(r);console.assert(i!=null,"'this' is expected an Event object, but got",r);return i}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,i){s.set(this,{eventTarget:r,event:i,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:i.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const a=Object.keys(i);for(let r=0;r0){const r=new Array(arguments.length);for(let i=0;i{r.exports=class FixedFIFO{constructor(r){if(!(r>0)||(r-1&r)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(r);this.mask=r-1;this.top=0;this.btm=0;this.next=null}clear(){this.top=this.btm=0;this.next=null;this.buffer.fill(undefined)}push(r){if(this.buffer[this.top]!==undefined)return false;this.buffer[this.top]=r;this.top=this.top+1&this.mask;return true}shift(){const r=this.buffer[this.btm];if(r===undefined)return undefined;this.buffer[this.btm]=undefined;this.btm=this.btm+1&this.mask;return r}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}},9003:(r,i,s)=>{const a=s(76646);r.exports=class FastFIFO{constructor(r){this.hwm=r||16;this.head=new a(this.hwm);this.tail=this.head;this.length=0}clear(){this.head=this.tail;this.head.clear();this.length=0}push(r){this.length++;if(!this.head.push(r)){const i=this.head;this.head=i.next=new a(2*this.head.buffer.length);this.head.push(r)}}shift(){if(this.length!==0)this.length--;const r=this.tail.shift();if(r===undefined&&this.tail.next){const r=this.tail.next;this.tail.next=null;this.tail=r;return this.tail.shift()}return r}peek(){const r=this.tail.peek();if(r===undefined&&this.tail.next)return this.tail.next.peek();return r}isEmpty(){return this.length===0}}},73277:(r,i,s)=>{"use strict";r.exports=s(29779)},29779:(r,i,s)=>{"use strict";const a=s(88846);const l=s(33823);const c={port(r,i){return a(r,i).then((r=>c.pid(r,i)),(()=>[]))},pid(r,i){return l({pid:r,strict:i})},name(r,i){return l({name:r,strict:i})}};function find(r,i,s){return new Promise(((a,l)=>{if(!(r in c)){l(new Error(`do not support find by "${r}"`))}else{const p=/^\d+$/.test(i);if(r==="pid"&&!p){l(new Error("pid must be a number"))}else if(r==="port"&&!p){l(new Error("port must be a number"))}else{c[r](i,s).then(a,l)}}}))}r.exports=find},88846:(r,i,s)=>{"use strict";const a=s(22037);const l=s(57147);const c=s(78773);const ensureDir=r=>new Promise(((i,s)=>{if(l.existsSync(r)){i()}else{l.mkdir(r,(r=>{r?s(r):i()}))}}));const p={darwin(r){return new Promise(((i,s)=>{c.exec("netstat -anv -p TCP && netstat -anv -p UDP",(function(a,l,p){if(a){s(a)}else{a=p.toString().trim();if(a){s(a);return}const d=c.stripLine(l.toString(),2);const u=c.extractColumns(d,[0,3,8],10).filter((r=>!!String(r[0]).match(/^(udp|tcp)/))).find((i=>{const s=String(i[1]).match(/\.(\d+)$/);if(s&&s[1]===String(r)){return true}}));if(u&&u[2].length){i(parseInt(u[2],10))}else{s(new Error(`pid of port (${r}) not found`))}}}))}))},freebsd:"darwin",sunos:"darwin",linux(r){return new Promise(((i,s)=>{const a="netstat -tunlp";c.exec(a,(function(a,l,p){if(a){s(a)}else{const a=p.toString().trim();if(a){console.warn(a)}const d=c.stripLine(l.toString(),2);const u=c.extractColumns(d,[3,6],7).find((i=>{const s=String(i[0]).match(/:(\d+)$/);if(s&&s[1]===String(r)){return true}}));if(u&&u[1]){const a=u[1].split("/",1)[0];if(a.length){i(parseInt(a,10))}else{s(new Error(`pid of port (${r}) not found`))}}else{s(new Error(`pid of port (${r}) not found`))}}}))}))},win32(r){return new Promise(((i,s)=>{c.exec("netstat -ano",(function(a,l,p){if(a){s(a)}else{a=p.toString().trim();if(a){s(a);return}const d=c.stripLine(l.toString(),4);const u=c.extractColumns(d,[1,4],5).find((i=>{const s=String(i[0]).match(/:(\d+)$/);if(s&&s[1]===String(r)){return true}}));if(u&&u[1].length&&parseInt(u[1],10)>0){i(parseInt(u[1],10))}else{s(new Error(`pid of port (${r}) not found`))}}}))}))},android(r){return new Promise(((i,s)=>{const p=a.tmpdir()+"/.find-process";const d=p+"/"+process.pid;const u='netstat -tunp >> "'+d+'"';ensureDir(p).then((()=>{c.exec(u,(()=>{l.readFile(d,"utf8",((a,p)=>{l.unlink(d,(()=>{}));if(a){s(a)}else{p=c.stripLine(p,2);const a=c.extractColumns(p,[3,6],7).find((i=>{const s=String(i[0]).match(/:(\d+)$/);if(s&&s[1]===String(r)){return true}}));if(a&&a[1]){const l=a[1].split("/",1)[0];if(l.length){i(parseInt(l,10))}else{s(new Error(`pid of port (${r}) not found`))}}else{s(new Error(`pid of port (${r}) not found`))}}}))}))}))}))}};function findPidByPort(r){const i=process.platform;return new Promise(((s,a)=>{if(!(i in p)){return a(new Error(`platform ${i} is unsupported`))}let l=p[i];if(typeof l==="string"){l=p[l]}l(r).then(s,a)}))}r.exports=findPidByPort},33823:(r,i,s)=>{"use strict";const a=s(71017);const l=s(78773);function matchName(r,i){if(!i){return true}if(r&&r.match){return r.match(i)}return false}function fetchBin(r){const i=r.split(a.sep);const s=i[i.length-1];if(s){i[i.length-1]=s.split(" ")[0]}const l=[];for(const r of i){const i=r.indexOf(" -");if(i>=0){l.push(r.substring(0,i).trim());break}else if(r.endsWith(" ")){l.push(r.trim());break}l.push(r)}return l.join(a.sep)}function fetchName(r){if(process.platform==="darwin"){const i=r.indexOf(".app/");if(i>=0){return a.basename(r.substring(0,i))}}return a.basename(r)}const c={darwin(r){return new Promise(((i,s)=>{let a;if("pid"in r){a=`ps -p ${r.pid} -ww -o pid,ppid,uid,gid,args`}else{a="ps ax -ww -o pid,ppid,uid,gid,args"}l.exec(a,(function(a,c,p){if(a){if("pid"in r){i([])}else{s(a)}}else{a=p.toString().trim();if(a){s(a);return}const d=l.stripLine(c.toString(),1);const u=l.extractColumns(d,[0,1,2,3,4],5).filter((i=>{if(i[0]&&r.pid){return i[0]===String(r.pid)}else if(i[4]&&r.name){return matchName(i[4],r.name)}else{return!!i[0]}}));let A=u.map((r=>{const i=String(r[4]);const s=fetchBin(i);return{pid:parseInt(r[0],10),ppid:parseInt(r[1],10),uid:parseInt(r[2],10),gid:parseInt(r[3],10),name:fetchName(s),bin:s,cmd:r[4]}}));if(r.strict&&r.name){A=A.filter((i=>i.name===r.name))}i(A)}}))}))},linux:"darwin",sunos:"darwin",freebsd:"darwin",win32(r){return new Promise(((i,s)=>{const a="Get-CimInstance -className win32_process | select Name,ProcessId,ParentProcessId,CommandLine,ExecutablePath";const c=[];const p=l.spawn("powershell.exe",["/c",a],{detached:false,windowsHide:true});p.stdout.on("data",(r=>{c.push(r.toString())}));p.on("close",(p=>{if(p!==0){return s(new Error("Command '"+a+"' terminated with code: "+p))}const d=l.parseTable(c.join("")).filter((i=>{if("pid"in r){return i.ProcessId===String(r.pid)}else if(r.name){const s=i.Name||"";if(r.strict){return s===r.name||s.endsWith(".exe")&&s.slice(0,-4)===r.name}else{return matchName(i.CommandLine||s,r.name)}}else{return true}})).map((r=>({pid:parseInt(r.ProcessId,10),ppid:parseInt(r.ParentProcessId,10),bin:r.ExecutablePath,name:r.Name||"",cmd:r.CommandLine})));i(d)}))}))},android(r){return new Promise(((i,s)=>{const a="ps";l.exec(a,(function(a,c,p){if(a){if("pid"in r){i([])}else{s(a)}}else{a=p.toString().trim();if(a){s(a);return}const d=l.stripLine(c.toString(),1);const u=l.extractColumns(d,[0,3],4).filter((i=>{if(i[0]&&r.pid){return i[0]===String(r.pid)}else if(i[1]&&r.name){return matchName(i[1],r.name)}else{return!!i[0]}}));let A=u.map((r=>{const i=String(r[1]);const s=fetchBin(i);return{pid:parseInt(r[0],10),name:fetchName(s),bin:s,cmd:i}}));if(r.strict&&r.name){A=A.filter((i=>i.name===r.name))}i(A)}}))}))}};function findProcess(r){const i=process.platform;return new Promise(((s,a)=>{if(!(i in c)){return a(new Error(`platform ${i} is unsupported`))}let l=c[i];if(typeof l==="string"){l=c[l]}l(r).then(s,a)}))}r.exports=findProcess},78773:(r,i,s)=>{"use strict";const a=s(32081);const l=1024*1024;const c={exec(r,i){a.exec(r,{maxBuffer:2*l,windowsHide:true},i)},spawn(r,i,s){return a.spawn(r,i,s)},stripLine(r,i){let s=0;while(i-- >0){const i=r.indexOf("\n",s);if(i>=0){s=i+1}}return s>0?r.substring(s):r},split(r,i){const s=r.trim().split(/\s+/);if(s.length>i){s[i-1]=s.slice(i-1).join(" ")}return s},extractColumns(r,i,s){const a=r.split(/(\r\n|\n|\r)/);const l=[];if(!s){s=Math.max.apply(null,i)+1}a.forEach((r=>{const a=c.split(r,s);const p=[];i.forEach((r=>{p.push(a[r]||"")}));l.push(p)}));return l},parseTable(r){const i=r.split(/(\r\n\r\n|\r\n\n|\n\r\n)|\n\n/).filter((r=>r.trim().length>0)).map((r=>r.split(/(\r\n|\n|\r)/).filter((r=>r.trim().length>0))));i.forEach((r=>{for(let i=0;r[i];){const s=r[i];if(s.startsWith(" ")){r[i-1]+=s.trimLeft();r.splice(i,1)}else{i+=1}}}));return i.map((r=>{const i={};r.forEach((r=>{const s=r.indexOf(":");const a=r.slice(0,s).trim();i[a]=r.slice(s+1).trim()}));return i}))}};r.exports=c},6698:(r,i,s)=>{var a=s(94991);var l=s(73837);var c=s(71017);var p=s(13685);var d=s(95687);var u=s(57310).parse;var A=s(57147);var h=s(12781).Stream;var g=s(53739);var y=s(4821);var b=s(11713);r.exports=FormData;l.inherits(FormData,a);function FormData(r){if(!(this instanceof FormData)){return new FormData(r)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];a.call(this);r=r||{};for(var i in r){this[i]=r[i]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(r,i,s){s=s||{};if(typeof s=="string"){s={filename:s}}var c=a.prototype.append.bind(this);if(typeof i=="number"){i=""+i}if(l.isArray(i)){this._error(new Error("Arrays are not supported."));return}var p=this._multiPartHeader(r,i,s);var d=this._multiPartFooter();c(p);c(i);c(d);this._trackLength(p,i,s)};FormData.prototype._trackLength=function(r,i,s){var a=0;if(s.knownLength!=null){a+=+s.knownLength}else if(Buffer.isBuffer(i)){a=i.length}else if(typeof i==="string"){a=Buffer.byteLength(i)}this._valueLength+=a;this._overheadLength+=Buffer.byteLength(r)+FormData.LINE_BREAK.length;if(!i||!i.path&&!(i.readable&&i.hasOwnProperty("httpVersion"))&&!(i instanceof h)){return}if(!s.knownLength){this._valuesToMeasure.push(i)}};FormData.prototype._lengthRetriever=function(r,i){if(r.hasOwnProperty("fd")){if(r.end!=undefined&&r.end!=Infinity&&r.start!=undefined){i(null,r.end+1-(r.start?r.start:0))}else{A.stat(r.path,(function(s,a){var l;if(s){i(s);return}l=a.size-(r.start?r.start:0);i(null,l)}))}}else if(r.hasOwnProperty("httpVersion")){i(null,+r.headers["content-length"])}else if(r.hasOwnProperty("httpModule")){r.on("response",(function(s){r.pause();i(null,+s.headers["content-length"])}));r.resume()}else{i("Unknown stream")}};FormData.prototype._multiPartHeader=function(r,i,s){if(typeof s.header=="string"){return s.header}var a=this._getContentDisposition(i,s);var l=this._getContentType(i,s);var c="";var p={"Content-Disposition":["form-data",'name="'+r+'"'].concat(a||[]),"Content-Type":[].concat(l||[])};if(typeof s.header=="object"){b(p,s.header)}var d;for(var u in p){if(!p.hasOwnProperty(u))continue;d=p[u];if(d==null){continue}if(!Array.isArray(d)){d=[d]}if(d.length){c+=u+": "+d.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+c+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(r,i){var s,a;if(typeof i.filepath==="string"){s=c.normalize(i.filepath).replace(/\\/g,"/")}else if(i.filename||r.name||r.path){s=c.basename(i.filename||r.name||r.path)}else if(r.readable&&r.hasOwnProperty("httpVersion")){s=c.basename(r.client._httpMessage.path||"")}if(s){a='filename="'+s+'"'}return a};FormData.prototype._getContentType=function(r,i){var s=i.contentType;if(!s&&r.name){s=g.lookup(r.name)}if(!s&&r.path){s=g.lookup(r.path)}if(!s&&r.readable&&r.hasOwnProperty("httpVersion")){s=r.headers["content-type"]}if(!s&&(i.filepath||i.filename)){s=g.lookup(i.filepath||i.filename)}if(!s&&typeof r=="object"){s=FormData.DEFAULT_CONTENT_TYPE}return s};FormData.prototype._multiPartFooter=function(){return function(r){var i=FormData.LINE_BREAK;var s=this._streams.length===0;if(s){i+=this._lastBoundary()}r(i)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(r){var i;var s={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(i in r){if(r.hasOwnProperty(i)){s[i.toLowerCase()]=r[i]}}return s};FormData.prototype.setBoundary=function(r){this._boundary=r};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var r=new Buffer.alloc(0);var i=this.getBoundary();for(var s=0,a=this._streams.length;s{r.exports=function(r,i){Object.keys(i).forEach((function(s){r[s]=r[s]||i[s]}));return r}},62691:r=>{"use strict";r.exports=clone;var i=Object.getPrototypeOf||function(r){return r.__proto__};function clone(r){if(r===null||typeof r!=="object")return r;if(r instanceof Object)var s={__proto__:i(r)};else var s=Object.create(null);Object.getOwnPropertyNames(r).forEach((function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(r,i))}));return s}},37804:(r,i,s)=>{var a=s(57147);var l=s(37567);var c=s(77915);var p=s(62691);var d=s(73837);var u;var A;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");A=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";A="___graceful-fs.previous"}function noop(){}function publishQueue(r,i){Object.defineProperty(r,u,{get:function(){return i}})}var h=noop;if(d.debuglog)h=d.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))h=function(){var r=d.format.apply(d,arguments);r="GFS4: "+r.split(/\n/).join("\nGFS4: ");console.error(r)};if(!a[u]){var g=global[u]||[];publishQueue(a,g);a.close=function(r){function close(i,s){return r.call(a,i,(function(r){if(!r){resetQueue()}if(typeof s==="function")s.apply(this,arguments)}))}Object.defineProperty(close,A,{value:r});return close}(a.close);a.closeSync=function(r){function closeSync(i){r.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,A,{value:r});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){h(a[u]);s(39491).equal(a[u].length,0)}))}}if(!global[u]){publishQueue(global,a[u])}r.exports=patch(p(a));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched){r.exports=patch(a);a.__patched=true}function patch(r){l(r);r.gracefulify=patch;r.createReadStream=createReadStream;r.createWriteStream=createWriteStream;var i=r.readFile;r.readFile=readFile;function readFile(r,s,a){if(typeof s==="function")a=s,s=null;return go$readFile(r,s,a);function go$readFile(r,s,a,l){return i(r,s,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readFile,[r,s,a],i,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var s=r.writeFile;r.writeFile=writeFile;function writeFile(r,i,a,l){if(typeof a==="function")l=a,a=null;return go$writeFile(r,i,a,l);function go$writeFile(r,i,a,l,c){return s(r,i,a,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$writeFile,[r,i,a,l],s,c||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var a=r.appendFile;if(a)r.appendFile=appendFile;function appendFile(r,i,s,l){if(typeof s==="function")l=s,s=null;return go$appendFile(r,i,s,l);function go$appendFile(r,i,s,l,c){return a(r,i,s,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$appendFile,[r,i,s,l],a,c||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var p=r.copyFile;if(p)r.copyFile=copyFile;function copyFile(r,i,s,a){if(typeof s==="function"){a=s;s=0}return go$copyFile(r,i,s,a);function go$copyFile(r,i,s,a,l){return p(r,i,s,(function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([go$copyFile,[r,i,s,a],c,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var d=r.readdir;r.readdir=readdir;var u=/^v[0-5]\./;function readdir(r,i,s){if(typeof i==="function")s=i,i=null;var a=u.test(process.version)?function go$readdir(r,i,s,a){return d(r,fs$readdirCallback(r,i,s,a))}:function go$readdir(r,i,s,a){return d(r,i,fs$readdirCallback(r,i,s,a))};return a(r,i,s);function fs$readdirCallback(r,i,s,l){return function(c,p){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([a,[r,i,s],c,l||Date.now(),Date.now()]);else{if(p&&p.sort)p.sort();if(typeof s==="function")s.call(this,c,p)}}}}if(process.version.substr(0,4)==="v0.8"){var A=c(r);ReadStream=A.ReadStream;WriteStream=A.WriteStream}var h=r.ReadStream;if(h){ReadStream.prototype=Object.create(h.prototype);ReadStream.prototype.open=ReadStream$open}var g=r.WriteStream;if(g){WriteStream.prototype=Object.create(g.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(r,"ReadStream",{get:function(){return ReadStream},set:function(r){ReadStream=r},enumerable:true,configurable:true});Object.defineProperty(r,"WriteStream",{get:function(){return WriteStream},set:function(r){WriteStream=r},enumerable:true,configurable:true});var y=ReadStream;Object.defineProperty(r,"FileReadStream",{get:function(){return y},set:function(r){y=r},enumerable:true,configurable:true});var b=WriteStream;Object.defineProperty(r,"FileWriteStream",{get:function(){return b},set:function(r){b=r},enumerable:true,configurable:true});function ReadStream(r,i){if(this instanceof ReadStream)return h.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(i,s){if(i){if(r.autoClose)r.destroy();r.emit("error",i)}else{r.fd=s;r.emit("open",s);r.read()}}))}function WriteStream(r,i){if(this instanceof WriteStream)return g.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(i,s){if(i){r.destroy();r.emit("error",i)}else{r.fd=s;r.emit("open",s)}}))}function createReadStream(i,s){return new r.ReadStream(i,s)}function createWriteStream(i,s){return new r.WriteStream(i,s)}var C=r.open;r.open=open;function open(r,i,s,a){if(typeof s==="function")a=s,s=null;return go$open(r,i,s,a);function go$open(r,i,s,a,l){return C(r,i,s,(function(c,p){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([go$open,[r,i,s,a],c,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}return r}function enqueue(r){h("ENQUEUE",r[0].name,r[1]);a[u].push(r);retry()}var y;function resetQueue(){var r=Date.now();for(var i=0;i2){a[u][i][3]=r;a[u][i][4]=r}}retry()}function retry(){clearTimeout(y);y=undefined;if(a[u].length===0)return;var r=a[u].shift();var i=r[0];var s=r[1];var l=r[2];var c=r[3];var p=r[4];if(c===undefined){h("RETRY",i.name,s);i.apply(null,s)}else if(Date.now()-c>=6e4){h("TIMEOUT",i.name,s);var d=s.pop();if(typeof d==="function")d.call(null,l)}else{var A=Date.now()-p;var g=Math.max(p-c,1);var b=Math.min(g*1.2,100);if(A>=b){h("RETRY",i.name,s);i.apply(null,s.concat([c]))}else{a[u].push(r)}}if(y===undefined){y=setTimeout(retry,0)}}},77915:(r,i,s)=>{var a=s(12781).Stream;r.exports=legacy;function legacy(r){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(i,s){if(!(this instanceof ReadStream))return new ReadStream(i,s);a.call(this);var l=this;this.path=i;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;s=s||{};var c=Object.keys(s);for(var p=0,d=c.length;pthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){l._read()}));return}r.open(this.path,this.flags,this.mode,(function(r,i){if(r){l.emit("error",r);l.readable=false;return}l.fd=i;l.emit("open",i);l._read()}))}function WriteStream(i,s){if(!(this instanceof WriteStream))return new WriteStream(i,s);a.call(this);this.path=i;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;s=s||{};var l=Object.keys(s);for(var c=0,p=l.length;c= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=r.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},37567:(r,i,s)=>{var a=s(22057);var l=process.cwd;var c=null;var p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!c)c=l.call(process);return c};try{process.cwd()}catch(r){}if(typeof process.chdir==="function"){var d=process.chdir;process.chdir=function(r){c=null;d.call(process,r)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,d)}r.exports=patch;function patch(r){if(a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(r)}if(!r.lutimes){patchLutimes(r)}r.chown=chownFix(r.chown);r.fchown=chownFix(r.fchown);r.lchown=chownFix(r.lchown);r.chmod=chmodFix(r.chmod);r.fchmod=chmodFix(r.fchmod);r.lchmod=chmodFix(r.lchmod);r.chownSync=chownFixSync(r.chownSync);r.fchownSync=chownFixSync(r.fchownSync);r.lchownSync=chownFixSync(r.lchownSync);r.chmodSync=chmodFixSync(r.chmodSync);r.fchmodSync=chmodFixSync(r.fchmodSync);r.lchmodSync=chmodFixSync(r.lchmodSync);r.stat=statFix(r.stat);r.fstat=statFix(r.fstat);r.lstat=statFix(r.lstat);r.statSync=statFixSync(r.statSync);r.fstatSync=statFixSync(r.fstatSync);r.lstatSync=statFixSync(r.lstatSync);if(r.chmod&&!r.lchmod){r.lchmod=function(r,i,s){if(s)process.nextTick(s)};r.lchmodSync=function(){}}if(r.chown&&!r.lchown){r.lchown=function(r,i,s,a){if(a)process.nextTick(a)};r.lchownSync=function(){}}if(p==="win32"){r.rename=typeof r.rename!=="function"?r.rename:function(i){function rename(s,a,l){var c=Date.now();var p=0;i(s,a,(function CB(d){if(d&&(d.code==="EACCES"||d.code==="EPERM"||d.code==="EBUSY")&&Date.now()-c<6e4){setTimeout((function(){r.stat(a,(function(r,c){if(r&&r.code==="ENOENT")i(s,a,CB);else l(d)}))}),p);if(p<100)p+=10;return}if(l)l(d)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,i);return rename}(r.rename)}r.read=typeof r.read!=="function"?r.read:function(i){function read(s,a,l,c,p,d){var u;if(d&&typeof d==="function"){var A=0;u=function(h,g,y){if(h&&h.code==="EAGAIN"&&A<10){A++;return i.call(r,s,a,l,c,p,u)}d.apply(this,arguments)}}return i.call(r,s,a,l,c,p,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,i);return read}(r.read);r.readSync=typeof r.readSync!=="function"?r.readSync:function(i){return function(s,a,l,c,p){var d=0;while(true){try{return i.call(r,s,a,l,c,p)}catch(r){if(r.code==="EAGAIN"&&d<10){d++;continue}throw r}}}}(r.readSync);function patchLchmod(r){r.lchmod=function(i,s,l){r.open(i,a.O_WRONLY|a.O_SYMLINK,s,(function(i,a){if(i){if(l)l(i);return}r.fchmod(a,s,(function(i){r.close(a,(function(r){if(l)l(i||r)}))}))}))};r.lchmodSync=function(i,s){var l=r.openSync(i,a.O_WRONLY|a.O_SYMLINK,s);var c=true;var p;try{p=r.fchmodSync(l,s);c=false}finally{if(c){try{r.closeSync(l)}catch(r){}}else{r.closeSync(l)}}return p}}function patchLutimes(r){if(a.hasOwnProperty("O_SYMLINK")&&r.futimes){r.lutimes=function(i,s,l,c){r.open(i,a.O_SYMLINK,(function(i,a){if(i){if(c)c(i);return}r.futimes(a,s,l,(function(i){r.close(a,(function(r){if(c)c(i||r)}))}))}))};r.lutimesSync=function(i,s,l){var c=r.openSync(i,a.O_SYMLINK);var p;var d=true;try{p=r.futimesSync(c,s,l);d=false}finally{if(d){try{r.closeSync(c)}catch(r){}}else{r.closeSync(c)}}return p}}else if(r.futimes){r.lutimes=function(r,i,s,a){if(a)process.nextTick(a)};r.lutimesSync=function(){}}}function chmodFix(i){if(!i)return i;return function(s,a,l){return i.call(r,s,a,(function(r){if(chownErOk(r))r=null;if(l)l.apply(this,arguments)}))}}function chmodFixSync(i){if(!i)return i;return function(s,a){try{return i.call(r,s,a)}catch(r){if(!chownErOk(r))throw r}}}function chownFix(i){if(!i)return i;return function(s,a,l,c){return i.call(r,s,a,l,(function(r){if(chownErOk(r))r=null;if(c)c.apply(this,arguments)}))}}function chownFixSync(i){if(!i)return i;return function(s,a,l){try{return i.call(r,s,a,l)}catch(r){if(!chownErOk(r))throw r}}}function statFix(i){if(!i)return i;return function(s,a,l){if(typeof a==="function"){l=a;a=null}function callback(r,i){if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}if(l)l.apply(this,arguments)}return a?i.call(r,s,a,callback):i.call(r,s,callback)}}function statFixSync(i){if(!i)return i;return function(s,a){var l=a?i.call(r,s,a):i.call(r,s);if(l){if(l.uid<0)l.uid+=4294967296;if(l.gid<0)l.gid+=4294967296}return l}}function chownErOk(r){if(!r)return true;if(r.code==="ENOSYS")return true;var i=!process.getuid||process.getuid()!==0;if(i){if(r.code==="EINVAL"||r.code==="EPERM")return true}return false}}},52713:(r,i,s)=>{try{var a=s(73837);if(typeof a.inherits!=="function")throw"";r.exports=a.inherits}catch(i){r.exports=s(18432)}},18432:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,i){if(i){r.super_=i;r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,i){if(i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},37352:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true}); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var i,a;if(isObject(r)===false)return false;i=r.constructor;if(i===undefined)return true;a=i.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}i.isPlainObject=isPlainObject},6070:r=>{"use strict";const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},5062:r=>{var i={}.toString;r.exports=Array.isArray||function(r){return i.call(r)=="[object Array]"}},1003:r=>{"use strict";function e(r){this.message=r}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var i=String(r).replace(/=+$/,"");if(i.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var a,s,l=0,p=0,c="";s=i.charAt(p++);~s&&(a=l%4?64*a+s:s,l++%4)?c+=String.fromCharCode(255&a>>(-2*l&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return c};function t(r){var a=r.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(i(r).replace(/(.)/g,(function(r,i){var a=i.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a})))}(a)}catch(r){return i(a)}}function n(r){this.message=r}function o(r,i){if("string"!=typeof r)throw new n("Invalid token specified");var a=!0===(i=i||{}).header?0:1;try{return JSON.parse(t(r.split(".")[a]))}catch(r){throw new n("Invalid token specified: "+r.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const a=o;a.default=o,a.InvalidTokenError=n,r.exports=a},5081:(r,i,a)=>{var s=a(3837);var l=a(3775);r.exports={Readable:Readable,Writable:Writable};s.inherits(Readable,l);s.inherits(Writable,l);function beforeFirstCall(r,i,a){r[i]=function(){delete r[i];a.apply(this,arguments);return this[i].apply(this,arguments)}}function Readable(r,i){if(!(this instanceof Readable))return new Readable(r,i);l.call(this,i);beforeFirstCall(this,"_read",(function(){var a=r.call(this,i);var s=this.emit.bind(this,"error");a.on("error",s);a.pipe(this)}));this.emit("readable")}function Writable(r,i){if(!(this instanceof Writable))return new Writable(r,i);l.call(this,i);beforeFirstCall(this,"_write",(function(){var a=r.call(this,i);var s=this.emit.bind(this,"error");a.on("error",s);this.pipe(a)}));this.emit("writable")}},5635:(r,i,a)=>{var s=a(5274),l=a(2809),p=a(7903),c=a(5907),d=a(7639);function Hash(r){var i=-1,a=r==null?0:r.length;this.clear();while(++i{var s=a(1896),l=a(6812),p=a(6403),c=a(5544),d=a(4006);function ListCache(r){var i=-1,a=r==null?0:r.length;this.clear();while(++i{var s=a(7489),l=a(4645);var p=s(l,"Map");r.exports=p},1305:(r,i,a)=>{var s=a(1161),l=a(1586),p=a(9264),c=a(7644),d=a(9866);function MapCache(r){var i=-1,a=r==null?0:r.length;this.clear();while(++i{var s=a(7489),l=a(4645);var p=s(l,"Set");r.exports=p},9893:(r,i,a)=>{var s=a(1305),l=a(156),p=a(2791);function SetCache(r){var i=-1,a=r==null?0:r.length;this.__data__=new s;while(++i{var s=a(4645);var l=s.Symbol;r.exports=l},3691:r=>{function apply(r,i,a){switch(a.length){case 0:return r.call(i);case 1:return r.call(i,a[0]);case 2:return r.call(i,a[0],a[1]);case 3:return r.call(i,a[0],a[1],a[2])}return r.apply(i,a)}r.exports=apply},804:(r,i,a)=>{var s=a(8235);function arrayIncludes(r,i){var a=r==null?0:r.length;return!!a&&s(r,i,0)>-1}r.exports=arrayIncludes},7290:r=>{function arrayIncludesWith(r,i,a){var s=-1,l=r==null?0:r.length;while(++s{var s=a(7730),l=a(5223),p=a(5249),c=a(4095),d=a(2873),u=a(7772);var h=Object.prototype;var g=h.hasOwnProperty;function arrayLikeKeys(r,i){var a=p(r),h=!a&&l(r),y=!a&&!h&&c(r),b=!a&&!h&&!y&&u(r),v=a||h||y||b,w=v?s(r.length,String):[],x=w.length;for(var S in r){if((i||g.call(r,S))&&!(v&&(S=="length"||y&&(S=="offset"||S=="parent")||b&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||d(S,x)))){w.push(S)}}return w}r.exports=arrayLikeKeys},5348:r=>{function arrayMap(r,i){var a=-1,s=r==null?0:r.length,l=Array(s);while(++a{function arrayPush(r,i){var a=-1,s=i.length,l=r.length;while(++a{var s=a(8752);function assocIndexOf(r,i){var a=r.length;while(a--){if(s(r[a][0],i)){return a}}return-1}r.exports=assocIndexOf},8589:(r,i,a)=>{var s=a(9893),l=a(804),p=a(7290),c=a(5348),d=a(1310),u=a(7417);var h=200;function baseDifference(r,i,a,g){var y=-1,b=l,v=true,w=r.length,x=[],S=i.length;if(!w){return x}if(a){i=c(i,d(a))}if(g){b=p;v=false}else if(i.length>=h){b=u;v=false;i=new s(i)}e:while(++y{function baseFindIndex(r,i,a,s){var l=r.length,p=a+(s?1:-1);while(s?p--:++p{var s=a(7067),l=a(9309);function baseFlatten(r,i,a,p,c){var d=-1,u=r.length;a||(a=l);c||(c=[]);while(++d0&&a(h)){if(i>1){baseFlatten(h,i-1,a,p,c)}else{s(c,h)}}else if(!p){c[c.length]=h}}return c}r.exports=baseFlatten},1675:(r,i,a)=>{var s=a(209),l=a(9305),p=a(5707);var c="[object Null]",d="[object Undefined]";var u=s?s.toStringTag:undefined;function baseGetTag(r){if(r==null){return r===undefined?d:c}return u&&u in Object(r)?l(r):p(r)}r.exports=baseGetTag},8235:(r,i,a)=>{var s=a(1042),l=a(4531),p=a(2215);function baseIndexOf(r,i,a){return i===i?p(r,i,a):s(r,l,a)}r.exports=baseIndexOf},5119:(r,i,a)=>{var s=a(1675),l=a(8671);var p="[object Arguments]";function baseIsArguments(r){return l(r)&&s(r)==p}r.exports=baseIsArguments},4531:r=>{function baseIsNaN(r){return r!==r}r.exports=baseIsNaN},38:(r,i,a)=>{var s=a(6223),l=a(3258),p=a(9959),c=a(9318);var d=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var h=Function.prototype,g=Object.prototype;var y=h.toString;var b=g.hasOwnProperty;var v=RegExp("^"+y.call(b).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(r){if(!p(r)||l(r)){return false}var i=s(r)?v:u;return i.test(c(r))}r.exports=baseIsNative},31:(r,i,a)=>{var s=a(1675),l=a(3914),p=a(8671);var c="[object Arguments]",d="[object Array]",u="[object Boolean]",h="[object Date]",g="[object Error]",y="[object Function]",b="[object Map]",v="[object Number]",w="[object Object]",x="[object RegExp]",S="[object Set]",_="[object String]",T="[object WeakMap]";var N="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",R="[object Float64Array]",C="[object Int8Array]",k="[object Int16Array]",A="[object Int32Array]",D="[object Uint8Array]",I="[object Uint8ClampedArray]",L="[object Uint16Array]",B="[object Uint32Array]";var M={};M[O]=M[R]=M[C]=M[k]=M[A]=M[D]=M[I]=M[L]=M[B]=true;M[c]=M[d]=M[N]=M[u]=M[P]=M[h]=M[g]=M[y]=M[b]=M[v]=M[w]=M[x]=M[S]=M[_]=M[T]=false;function baseIsTypedArray(r){return p(r)&&l(r.length)&&!!M[s(r)]}r.exports=baseIsTypedArray},7995:(r,i,a)=>{var s=a(9959),l=a(9275),p=a(1395);var c=Object.prototype;var d=c.hasOwnProperty;function baseKeysIn(r){if(!s(r)){return p(r)}var i=l(r),a=[];for(var c in r){if(!(c=="constructor"&&(i||!d.call(r,c)))){a.push(c)}}return a}r.exports=baseKeysIn},2593:(r,i,a)=>{var s=a(6730),l=a(9605),p=a(9674);function baseRest(r,i){return p(l(r,i,s),r+"")}r.exports=baseRest},7978:(r,i,a)=>{var s=a(1391),l=a(874),p=a(6730);var c=!l?p:function(r,i){return l(r,"toString",{configurable:true,enumerable:false,value:s(i),writable:true})};r.exports=c},7730:r=>{function baseTimes(r,i){var a=-1,s=Array(r);while(++a{function baseUnary(r){return function(i){return r(i)}}r.exports=baseUnary},474:(r,i,a)=>{var s=a(9893),l=a(804),p=a(7290),c=a(7417),d=a(8048),u=a(5766);var h=200;function baseUniq(r,i,a){var g=-1,y=l,b=r.length,v=true,w=[],x=w;if(a){v=false;y=p}else if(b>=h){var S=i?null:d(r);if(S){return u(S)}v=false;y=c;x=new s}else{x=i?[]:w}e:while(++g{function cacheHas(r,i){return r.has(i)}r.exports=cacheHas},2486:(r,i,a)=>{var s=a(4645);var l=s["__core-js_shared__"];r.exports=l},8048:(r,i,a)=>{var s=a(3517),l=a(1099),p=a(5766);var c=1/0;var d=!(s&&1/p(new s([,-0]))[1]==c)?l:function(r){return new s(r)};r.exports=d},874:(r,i,a)=>{var s=a(7489);var l=function(){try{var r=s(Object,"defineProperty");r({},"",{});return r}catch(r){}}();r.exports=l},9912:r=>{var i=typeof global=="object"&&global&&global.Object===Object&&global;r.exports=i},3711:(r,i,a)=>{var s=a(7630);function getMapData(r,i){var a=r.__data__;return s(i)?a[typeof i=="string"?"string":"hash"]:a.map}r.exports=getMapData},7489:(r,i,a)=>{var s=a(38),l=a(6759);function getNative(r,i){var a=l(r,i);return s(a)?a:undefined}r.exports=getNative},1961:(r,i,a)=>{var s=a(6462);var l=s(Object.getPrototypeOf,Object);r.exports=l},9305:(r,i,a)=>{var s=a(209);var l=Object.prototype;var p=l.hasOwnProperty;var c=l.toString;var d=s?s.toStringTag:undefined;function getRawTag(r){var i=p.call(r,d),a=r[d];try{r[d]=undefined;var s=true}catch(r){}var l=c.call(r);if(s){if(i){r[d]=a}else{delete r[d]}}return l}r.exports=getRawTag},6759:r=>{function getValue(r,i){return r==null?undefined:r[i]}r.exports=getValue},5274:(r,i,a)=>{var s=a(9807);function hashClear(){this.__data__=s?s(null):{};this.size=0}r.exports=hashClear},2809:r=>{function hashDelete(r){var i=this.has(r)&&delete this.__data__[r];this.size-=i?1:0;return i}r.exports=hashDelete},7903:(r,i,a)=>{var s=a(9807);var l="__lodash_hash_undefined__";var p=Object.prototype;var c=p.hasOwnProperty;function hashGet(r){var i=this.__data__;if(s){var a=i[r];return a===l?undefined:a}return c.call(i,r)?i[r]:undefined}r.exports=hashGet},5907:(r,i,a)=>{var s=a(9807);var l=Object.prototype;var p=l.hasOwnProperty;function hashHas(r){var i=this.__data__;return s?i[r]!==undefined:p.call(i,r)}r.exports=hashHas},7639:(r,i,a)=>{var s=a(9807);var l="__lodash_hash_undefined__";function hashSet(r,i){var a=this.__data__;this.size+=this.has(r)?0:1;a[r]=s&&i===undefined?l:i;return this}r.exports=hashSet},9309:(r,i,a)=>{var s=a(209),l=a(5223),p=a(5249);var c=s?s.isConcatSpreadable:undefined;function isFlattenable(r){return p(r)||l(r)||!!(c&&r&&r[c])}r.exports=isFlattenable},2873:r=>{var i=9007199254740991;var a=/^(?:0|[1-9]\d*)$/;function isIndex(r,s){var l=typeof r;s=s==null?i:s;return!!s&&(l=="number"||l!="symbol"&&a.test(r))&&(r>-1&&r%1==0&&r{var s=a(8752),l=a(9615),p=a(2873),c=a(9959);function isIterateeCall(r,i,a){if(!c(a)){return false}var d=typeof i;if(d=="number"?l(a)&&p(i,a.length):d=="string"&&i in a){return s(a[i],r)}return false}r.exports=isIterateeCall},7630:r=>{function isKeyable(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}r.exports=isKeyable},3258:(r,i,a)=>{var s=a(2486);var l=function(){var r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function isMasked(r){return!!l&&l in r}r.exports=isMasked},9275:r=>{var i=Object.prototype;function isPrototype(r){var a=r&&r.constructor,s=typeof a=="function"&&a.prototype||i;return r===s}r.exports=isPrototype},1896:r=>{function listCacheClear(){this.__data__=[];this.size=0}r.exports=listCacheClear},6812:(r,i,a)=>{var s=a(5e3);var l=Array.prototype;var p=l.splice;function listCacheDelete(r){var i=this.__data__,a=s(i,r);if(a<0){return false}var l=i.length-1;if(a==l){i.pop()}else{p.call(i,a,1)}--this.size;return true}r.exports=listCacheDelete},6403:(r,i,a)=>{var s=a(5e3);function listCacheGet(r){var i=this.__data__,a=s(i,r);return a<0?undefined:i[a][1]}r.exports=listCacheGet},5544:(r,i,a)=>{var s=a(5e3);function listCacheHas(r){return s(this.__data__,r)>-1}r.exports=listCacheHas},4006:(r,i,a)=>{var s=a(5e3);function listCacheSet(r,i){var a=this.__data__,l=s(a,r);if(l<0){++this.size;a.push([r,i])}else{a[l][1]=i}return this}r.exports=listCacheSet},1161:(r,i,a)=>{var s=a(5635),l=a(6270),p=a(1759);function mapCacheClear(){this.size=0;this.__data__={hash:new s,map:new(p||l),string:new s}}r.exports=mapCacheClear},1586:(r,i,a)=>{var s=a(3711);function mapCacheDelete(r){var i=s(this,r)["delete"](r);this.size-=i?1:0;return i}r.exports=mapCacheDelete},9264:(r,i,a)=>{var s=a(3711);function mapCacheGet(r){return s(this,r).get(r)}r.exports=mapCacheGet},7644:(r,i,a)=>{var s=a(3711);function mapCacheHas(r){return s(this,r).has(r)}r.exports=mapCacheHas},9866:(r,i,a)=>{var s=a(3711);function mapCacheSet(r,i){var a=s(this,r),l=a.size;a.set(r,i);this.size+=a.size==l?0:1;return this}r.exports=mapCacheSet},9807:(r,i,a)=>{var s=a(7489);var l=s(Object,"create");r.exports=l},1395:r=>{function nativeKeysIn(r){var i=[];if(r!=null){for(var a in Object(r)){i.push(a)}}return i}r.exports=nativeKeysIn},3375:(r,i,a)=>{r=a.nmd(r);var s=a(9912);var l=true&&i&&!i.nodeType&&i;var p=l&&"object"=="object"&&r&&!r.nodeType&&r;var c=p&&p.exports===l;var d=c&&s.process;var u=function(){try{var r=p&&p.require&&p.require("util").types;if(r){return r}return d&&d.binding&&d.binding("util")}catch(r){}}();r.exports=u},5707:r=>{var i=Object.prototype;var a=i.toString;function objectToString(r){return a.call(r)}r.exports=objectToString},6462:r=>{function overArg(r,i){return function(a){return r(i(a))}}r.exports=overArg},9605:(r,i,a)=>{var s=a(3691);var l=Math.max;function overRest(r,i,a){i=l(i===undefined?r.length-1:i,0);return function(){var p=arguments,c=-1,d=l(p.length-i,0),u=Array(d);while(++c{var s=a(9912);var l=typeof self=="object"&&self&&self.Object===Object&&self;var p=s||l||Function("return this")();r.exports=p},156:r=>{var i="__lodash_hash_undefined__";function setCacheAdd(r){this.__data__.set(r,i);return this}r.exports=setCacheAdd},2791:r=>{function setCacheHas(r){return this.__data__.has(r)}r.exports=setCacheHas},5766:r=>{function setToArray(r){var i=-1,a=Array(r.size);r.forEach((function(r){a[++i]=r}));return a}r.exports=setToArray},9674:(r,i,a)=>{var s=a(7978),l=a(2545);var p=l(s);r.exports=p},2545:r=>{var i=800,a=16;var s=Date.now;function shortOut(r){var l=0,p=0;return function(){var c=s(),d=a-(c-p);p=c;if(d>0){if(++l>=i){return arguments[0]}}else{l=0}return r.apply(undefined,arguments)}}r.exports=shortOut},2215:r=>{function strictIndexOf(r,i,a){var s=a-1,l=r.length;while(++s{var i=Function.prototype;var a=i.toString;function toSource(r){if(r!=null){try{return a.call(r)}catch(r){}try{return r+""}catch(r){}}return""}r.exports=toSource},1391:r=>{function constant(r){return function(){return r}}r.exports=constant},9689:(r,i,a)=>{var s=a(2593),l=a(8752),p=a(441),c=a(7393);var d=Object.prototype;var u=d.hasOwnProperty;var h=s((function(r,i){r=Object(r);var a=-1;var s=i.length;var h=s>2?i[2]:undefined;if(h&&p(i[0],i[1],h)){s=1}while(++a{var s=a(8589),l=a(6239),p=a(2593),c=a(5050);var d=p((function(r,i){return c(r)?s(r,l(i,1,c,true)):[]}));r.exports=d},8752:r=>{function eq(r,i){return r===i||r!==r&&i!==i}r.exports=eq},3138:(r,i,a)=>{var s=a(6239);function flatten(r){var i=r==null?0:r.length;return i?s(r,1):[]}r.exports=flatten},6730:r=>{function identity(r){return r}r.exports=identity},5223:(r,i,a)=>{var s=a(5119),l=a(8671);var p=Object.prototype;var c=p.hasOwnProperty;var d=p.propertyIsEnumerable;var u=s(function(){return arguments}())?s:function(r){return l(r)&&c.call(r,"callee")&&!d.call(r,"callee")};r.exports=u},5249:r=>{var i=Array.isArray;r.exports=i},9615:(r,i,a)=>{var s=a(6223),l=a(3914);function isArrayLike(r){return r!=null&&l(r.length)&&!s(r)}r.exports=isArrayLike},5050:(r,i,a)=>{var s=a(9615),l=a(8671);function isArrayLikeObject(r){return l(r)&&s(r)}r.exports=isArrayLikeObject},4095:(r,i,a)=>{r=a.nmd(r);var s=a(4645),l=a(911);var p=true&&i&&!i.nodeType&&i;var c=p&&"object"=="object"&&r&&!r.nodeType&&r;var d=c&&c.exports===p;var u=d?s.Buffer:undefined;var h=u?u.isBuffer:undefined;var g=h||l;r.exports=g},6223:(r,i,a)=>{var s=a(1675),l=a(9959);var p="[object AsyncFunction]",c="[object Function]",d="[object GeneratorFunction]",u="[object Proxy]";function isFunction(r){if(!l(r)){return false}var i=s(r);return i==c||i==d||i==p||i==u}r.exports=isFunction},3914:r=>{var i=9007199254740991;function isLength(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=i}r.exports=isLength},9959:r=>{function isObject(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}r.exports=isObject},8671:r=>{function isObjectLike(r){return r!=null&&typeof r=="object"}r.exports=isObjectLike},256:(r,i,a)=>{var s=a(1675),l=a(1961),p=a(8671);var c="[object Object]";var d=Function.prototype,u=Object.prototype;var h=d.toString;var g=u.hasOwnProperty;var y=h.call(Object);function isPlainObject(r){if(!p(r)||s(r)!=c){return false}var i=l(r);if(i===null){return true}var a=g.call(i,"constructor")&&i.constructor;return typeof a=="function"&&a instanceof a&&h.call(a)==y}r.exports=isPlainObject},7772:(r,i,a)=>{var s=a(31),l=a(1310),p=a(3375);var c=p&&p.isTypedArray;var d=c?l(c):s;r.exports=d},7393:(r,i,a)=>{var s=a(3410),l=a(7995),p=a(9615);function keysIn(r){return p(r)?s(r,true):l(r)}r.exports=keysIn},1099:r=>{function noop(){}r.exports=noop},911:r=>{function stubFalse(){return false}r.exports=stubFalse},4909:(r,i,a)=>{var s=a(6239),l=a(2593),p=a(474),c=a(5050);var d=l((function(r){return p(s(r,1,c,true))}));r.exports=d},4015:(r,i,a)=>{ + */function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var i,s;if(isObject(r)===false)return false;i=r.constructor;if(i===undefined)return true;s=i.prototype;if(isObject(s)===false)return false;if(s.hasOwnProperty("isPrototypeOf")===false){return false}return true}i.isPlainObject=isPlainObject},16070:r=>{"use strict";const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},45062:r=>{var i={}.toString;r.exports=Array.isArray||function(r){return i.call(r)=="[object Array]"}},41003:r=>{"use strict";function e(r){this.message=r}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var i=String(r).replace(/=+$/,"");if(i.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var s,a,l=0,c=0,p="";a=i.charAt(c++);~a&&(s=l%4?64*s+a:a,l++%4)?p+=String.fromCharCode(255&s>>(-2*l&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return p};function t(r){var s=r.replace(/-/g,"+").replace(/_/g,"/");switch(s.length%4){case 0:break;case 2:s+="==";break;case 3:s+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(i(r).replace(/(.)/g,(function(r,i){var s=i.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s})))}(s)}catch(r){return i(s)}}function n(r){this.message=r}function o(r,i){if("string"!=typeof r)throw new n("Invalid token specified");var s=!0===(i=i||{}).header?0:1;try{return JSON.parse(t(r.split(".")[s]))}catch(r){throw new n("Invalid token specified: "+r.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const s=o;s.default=o,s.InvalidTokenError=n,r.exports=s},92707:(r,i,s)=>{var a=s(73837);var l=s(83775);r.exports={Readable:Readable,Writable:Writable};a.inherits(Readable,l);a.inherits(Writable,l);function beforeFirstCall(r,i,s){r[i]=function(){delete r[i];s.apply(this,arguments);return this[i].apply(this,arguments)}}function Readable(r,i){if(!(this instanceof Readable))return new Readable(r,i);l.call(this,i);beforeFirstCall(this,"_read",(function(){var s=r.call(this,i);var a=this.emit.bind(this,"error");s.on("error",a);s.pipe(this)}));this.emit("readable")}function Writable(r,i){if(!(this instanceof Writable))return new Writable(r,i);l.call(this,i);beforeFirstCall(this,"_write",(function(){var s=r.call(this,i);var a=this.emit.bind(this,"error");s.on("error",a);this.pipe(s)}));this.emit("writable")}},35635:(r,i,s)=>{var a=s(5274),l=s(62809),c=s(57903),p=s(95907),d=s(47639);function Hash(r){var i=-1,s=r==null?0:r.length;this.clear();while(++i{var a=s(31896),l=s(76812),c=s(86403),p=s(35544),d=s(94006);function ListCache(r){var i=-1,s=r==null?0:r.length;this.clear();while(++i{var a=s(97489),l=s(24645);var c=a(l,"Map");r.exports=c},21305:(r,i,s)=>{var a=s(61161),l=s(11586),c=s(9264),p=s(67644),d=s(9866);function MapCache(r){var i=-1,s=r==null?0:r.length;this.clear();while(++i{var a=s(97489),l=s(24645);var c=a(l,"Set");r.exports=c},79893:(r,i,s)=>{var a=s(21305),l=s(40156),c=s(2791);function SetCache(r){var i=-1,s=r==null?0:r.length;this.__data__=new a;while(++i{var a=s(24645);var l=a.Symbol;r.exports=l},33691:r=>{function apply(r,i,s){switch(s.length){case 0:return r.call(i);case 1:return r.call(i,s[0]);case 2:return r.call(i,s[0],s[1]);case 3:return r.call(i,s[0],s[1],s[2])}return r.apply(i,s)}r.exports=apply},80804:(r,i,s)=>{var a=s(78235);function arrayIncludes(r,i){var s=r==null?0:r.length;return!!s&&a(r,i,0)>-1}r.exports=arrayIncludes},7290:r=>{function arrayIncludesWith(r,i,s){var a=-1,l=r==null?0:r.length;while(++a{var a=s(57730),l=s(85223),c=s(45249),p=s(24095),d=s(42873),u=s(27772);var A=Object.prototype;var h=A.hasOwnProperty;function arrayLikeKeys(r,i){var s=c(r),A=!s&&l(r),g=!s&&!A&&p(r),y=!s&&!A&&!g&&u(r),b=s||A||g||y,C=b?a(r.length,String):[],v=C.length;for(var B in r){if((i||h.call(r,B))&&!(b&&(B=="length"||g&&(B=="offset"||B=="parent")||y&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||d(B,v)))){C.push(B)}}return C}r.exports=arrayLikeKeys},35348:r=>{function arrayMap(r,i){var s=-1,a=r==null?0:r.length,l=Array(a);while(++s{function arrayPush(r,i){var s=-1,a=i.length,l=r.length;while(++s{var a=s(8752);function assocIndexOf(r,i){var s=r.length;while(s--){if(a(r[s][0],i)){return s}}return-1}r.exports=assocIndexOf},88589:(r,i,s)=>{var a=s(79893),l=s(80804),c=s(7290),p=s(35348),d=s(61310),u=s(27417);var A=200;function baseDifference(r,i,s,h){var g=-1,y=l,b=true,C=r.length,v=[],B=i.length;if(!C){return v}if(s){i=p(i,d(s))}if(h){y=c;b=false}else if(i.length>=A){y=u;b=false;i=new a(i)}e:while(++g{function baseFindIndex(r,i,s,a){var l=r.length,c=s+(a?1:-1);while(a?c--:++c{var a=s(7067),l=s(89309);function baseFlatten(r,i,s,c,p){var d=-1,u=r.length;s||(s=l);p||(p=[]);while(++d0&&s(A)){if(i>1){baseFlatten(A,i-1,s,c,p)}else{a(p,A)}}else if(!c){p[p.length]=A}}return p}r.exports=baseFlatten},21675:(r,i,s)=>{var a=s(10209),l=s(59305),c=s(15707);var p="[object Null]",d="[object Undefined]";var u=a?a.toStringTag:undefined;function baseGetTag(r){if(r==null){return r===undefined?d:p}return u&&u in Object(r)?l(r):c(r)}r.exports=baseGetTag},78235:(r,i,s)=>{var a=s(1042),l=s(72131),c=s(32215);function baseIndexOf(r,i,s){return i===i?c(r,i,s):a(r,l,s)}r.exports=baseIndexOf},75119:(r,i,s)=>{var a=s(21675),l=s(28671);var c="[object Arguments]";function baseIsArguments(r){return l(r)&&a(r)==c}r.exports=baseIsArguments},72131:r=>{function baseIsNaN(r){return r!==r}r.exports=baseIsNaN},90038:(r,i,s)=>{var a=s(96223),l=s(23258),c=s(19959),p=s(69318);var d=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var A=Function.prototype,h=Object.prototype;var g=A.toString;var y=h.hasOwnProperty;var b=RegExp("^"+g.call(y).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(r){if(!c(r)||l(r)){return false}var i=a(r)?b:u;return i.test(p(r))}r.exports=baseIsNative},50031:(r,i,s)=>{var a=s(21675),l=s(73914),c=s(28671);var p="[object Arguments]",d="[object Array]",u="[object Boolean]",A="[object Date]",h="[object Error]",g="[object Function]",y="[object Map]",b="[object Number]",C="[object Object]",v="[object RegExp]",B="[object Set]",w="[object String]",I="[object WeakMap]";var S="[object ArrayBuffer]",Q="[object DataView]",x="[object Float32Array]",N="[object Float64Array]",R="[object Int8Array]",T="[object Int16Array]",D="[object Int32Array]",_="[object Uint8Array]",k="[object Uint8ClampedArray]",P="[object Uint16Array]",O="[object Uint32Array]";var L={};L[x]=L[N]=L[R]=L[T]=L[D]=L[_]=L[k]=L[P]=L[O]=true;L[p]=L[d]=L[S]=L[u]=L[Q]=L[A]=L[h]=L[g]=L[y]=L[b]=L[C]=L[v]=L[B]=L[w]=L[I]=false;function baseIsTypedArray(r){return c(r)&&l(r.length)&&!!L[a(r)]}r.exports=baseIsTypedArray},47995:(r,i,s)=>{var a=s(19959),l=s(19275),c=s(91395);var p=Object.prototype;var d=p.hasOwnProperty;function baseKeysIn(r){if(!a(r)){return c(r)}var i=l(r),s=[];for(var p in r){if(!(p=="constructor"&&(i||!d.call(r,p)))){s.push(p)}}return s}r.exports=baseKeysIn},22593:(r,i,s)=>{var a=s(16730),l=s(89605),c=s(59674);function baseRest(r,i){return c(l(r,i,a),r+"")}r.exports=baseRest},92515:(r,i,s)=>{var a=s(91391),l=s(10874),c=s(16730);var p=!l?c:function(r,i){return l(r,"toString",{configurable:true,enumerable:false,value:a(i),writable:true})};r.exports=p},57730:r=>{function baseTimes(r,i){var s=-1,a=Array(r);while(++s{function baseUnary(r){return function(i){return r(i)}}r.exports=baseUnary},60474:(r,i,s)=>{var a=s(79893),l=s(80804),c=s(7290),p=s(27417),d=s(68048),u=s(45766);var A=200;function baseUniq(r,i,s){var h=-1,g=l,y=r.length,b=true,C=[],v=C;if(s){b=false;g=c}else if(y>=A){var B=i?null:d(r);if(B){return u(B)}b=false;g=p;v=new a}else{v=i?[]:C}e:while(++h{function cacheHas(r,i){return r.has(i)}r.exports=cacheHas},92486:(r,i,s)=>{var a=s(24645);var l=a["__core-js_shared__"];r.exports=l},68048:(r,i,s)=>{var a=s(33517),l=s(61099),c=s(45766);var p=1/0;var d=!(a&&1/c(new a([,-0]))[1]==p)?l:function(r){return new a(r)};r.exports=d},10874:(r,i,s)=>{var a=s(97489);var l=function(){try{var r=a(Object,"defineProperty");r({},"",{});return r}catch(r){}}();r.exports=l},19912:r=>{var i=typeof global=="object"&&global&&global.Object===Object&&global;r.exports=i},93711:(r,i,s)=>{var a=s(57630);function getMapData(r,i){var s=r.__data__;return a(i)?s[typeof i=="string"?"string":"hash"]:s.map}r.exports=getMapData},97489:(r,i,s)=>{var a=s(90038),l=s(76759);function getNative(r,i){var s=l(r,i);return a(s)?s:undefined}r.exports=getNative},11961:(r,i,s)=>{var a=s(16462);var l=a(Object.getPrototypeOf,Object);r.exports=l},59305:(r,i,s)=>{var a=s(10209);var l=Object.prototype;var c=l.hasOwnProperty;var p=l.toString;var d=a?a.toStringTag:undefined;function getRawTag(r){var i=c.call(r,d),s=r[d];try{r[d]=undefined;var a=true}catch(r){}var l=p.call(r);if(a){if(i){r[d]=s}else{delete r[d]}}return l}r.exports=getRawTag},76759:r=>{function getValue(r,i){return r==null?undefined:r[i]}r.exports=getValue},5274:(r,i,s)=>{var a=s(19807);function hashClear(){this.__data__=a?a(null):{};this.size=0}r.exports=hashClear},62809:r=>{function hashDelete(r){var i=this.has(r)&&delete this.__data__[r];this.size-=i?1:0;return i}r.exports=hashDelete},57903:(r,i,s)=>{var a=s(19807);var l="__lodash_hash_undefined__";var c=Object.prototype;var p=c.hasOwnProperty;function hashGet(r){var i=this.__data__;if(a){var s=i[r];return s===l?undefined:s}return p.call(i,r)?i[r]:undefined}r.exports=hashGet},95907:(r,i,s)=>{var a=s(19807);var l=Object.prototype;var c=l.hasOwnProperty;function hashHas(r){var i=this.__data__;return a?i[r]!==undefined:c.call(i,r)}r.exports=hashHas},47639:(r,i,s)=>{var a=s(19807);var l="__lodash_hash_undefined__";function hashSet(r,i){var s=this.__data__;this.size+=this.has(r)?0:1;s[r]=a&&i===undefined?l:i;return this}r.exports=hashSet},89309:(r,i,s)=>{var a=s(10209),l=s(85223),c=s(45249);var p=a?a.isConcatSpreadable:undefined;function isFlattenable(r){return c(r)||l(r)||!!(p&&r&&r[p])}r.exports=isFlattenable},42873:r=>{var i=9007199254740991;var s=/^(?:0|[1-9]\d*)$/;function isIndex(r,a){var l=typeof r;a=a==null?i:a;return!!a&&(l=="number"||l!="symbol"&&s.test(r))&&(r>-1&&r%1==0&&r{var a=s(8752),l=s(89615),c=s(42873),p=s(19959);function isIterateeCall(r,i,s){if(!p(s)){return false}var d=typeof i;if(d=="number"?l(s)&&c(i,s.length):d=="string"&&i in s){return a(s[i],r)}return false}r.exports=isIterateeCall},57630:r=>{function isKeyable(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}r.exports=isKeyable},23258:(r,i,s)=>{var a=s(92486);var l=function(){var r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function isMasked(r){return!!l&&l in r}r.exports=isMasked},19275:r=>{var i=Object.prototype;function isPrototype(r){var s=r&&r.constructor,a=typeof s=="function"&&s.prototype||i;return r===a}r.exports=isPrototype},31896:r=>{function listCacheClear(){this.__data__=[];this.size=0}r.exports=listCacheClear},76812:(r,i,s)=>{var a=s(5e3);var l=Array.prototype;var c=l.splice;function listCacheDelete(r){var i=this.__data__,s=a(i,r);if(s<0){return false}var l=i.length-1;if(s==l){i.pop()}else{c.call(i,s,1)}--this.size;return true}r.exports=listCacheDelete},86403:(r,i,s)=>{var a=s(5e3);function listCacheGet(r){var i=this.__data__,s=a(i,r);return s<0?undefined:i[s][1]}r.exports=listCacheGet},35544:(r,i,s)=>{var a=s(5e3);function listCacheHas(r){return a(this.__data__,r)>-1}r.exports=listCacheHas},94006:(r,i,s)=>{var a=s(5e3);function listCacheSet(r,i){var s=this.__data__,l=a(s,r);if(l<0){++this.size;s.push([r,i])}else{s[l][1]=i}return this}r.exports=listCacheSet},61161:(r,i,s)=>{var a=s(35635),l=s(16270),c=s(91759);function mapCacheClear(){this.size=0;this.__data__={hash:new a,map:new(c||l),string:new a}}r.exports=mapCacheClear},11586:(r,i,s)=>{var a=s(93711);function mapCacheDelete(r){var i=a(this,r)["delete"](r);this.size-=i?1:0;return i}r.exports=mapCacheDelete},9264:(r,i,s)=>{var a=s(93711);function mapCacheGet(r){return a(this,r).get(r)}r.exports=mapCacheGet},67644:(r,i,s)=>{var a=s(93711);function mapCacheHas(r){return a(this,r).has(r)}r.exports=mapCacheHas},9866:(r,i,s)=>{var a=s(93711);function mapCacheSet(r,i){var s=a(this,r),l=s.size;s.set(r,i);this.size+=s.size==l?0:1;return this}r.exports=mapCacheSet},19807:(r,i,s)=>{var a=s(97489);var l=a(Object,"create");r.exports=l},91395:r=>{function nativeKeysIn(r){var i=[];if(r!=null){for(var s in Object(r)){i.push(s)}}return i}r.exports=nativeKeysIn},83375:(r,i,s)=>{r=s.nmd(r);var a=s(19912);var l=true&&i&&!i.nodeType&&i;var c=l&&"object"=="object"&&r&&!r.nodeType&&r;var p=c&&c.exports===l;var d=p&&a.process;var u=function(){try{var r=c&&c.require&&c.require("util").types;if(r){return r}return d&&d.binding&&d.binding("util")}catch(r){}}();r.exports=u},15707:r=>{var i=Object.prototype;var s=i.toString;function objectToString(r){return s.call(r)}r.exports=objectToString},16462:r=>{function overArg(r,i){return function(s){return r(i(s))}}r.exports=overArg},89605:(r,i,s)=>{var a=s(33691);var l=Math.max;function overRest(r,i,s){i=l(i===undefined?r.length-1:i,0);return function(){var c=arguments,p=-1,d=l(c.length-i,0),u=Array(d);while(++p{var a=s(19912);var l=typeof self=="object"&&self&&self.Object===Object&&self;var c=a||l||Function("return this")();r.exports=c},40156:r=>{var i="__lodash_hash_undefined__";function setCacheAdd(r){this.__data__.set(r,i);return this}r.exports=setCacheAdd},2791:r=>{function setCacheHas(r){return this.__data__.has(r)}r.exports=setCacheHas},45766:r=>{function setToArray(r){var i=-1,s=Array(r.size);r.forEach((function(r){s[++i]=r}));return s}r.exports=setToArray},59674:(r,i,s)=>{var a=s(92515),l=s(22545);var c=l(a);r.exports=c},22545:r=>{var i=800,s=16;var a=Date.now;function shortOut(r){var l=0,c=0;return function(){var p=a(),d=s-(p-c);c=p;if(d>0){if(++l>=i){return arguments[0]}}else{l=0}return r.apply(undefined,arguments)}}r.exports=shortOut},32215:r=>{function strictIndexOf(r,i,s){var a=s-1,l=r.length;while(++a{var i=Function.prototype;var s=i.toString;function toSource(r){if(r!=null){try{return s.call(r)}catch(r){}try{return r+""}catch(r){}}return""}r.exports=toSource},91391:r=>{function constant(r){return function(){return r}}r.exports=constant},69689:(r,i,s)=>{var a=s(22593),l=s(8752),c=s(20441),p=s(87393);var d=Object.prototype;var u=d.hasOwnProperty;var A=a((function(r,i){r=Object(r);var s=-1;var a=i.length;var A=a>2?i[2]:undefined;if(A&&c(i[0],i[1],A)){a=1}while(++s{var a=s(88589),l=s(46239),c=s(22593),p=s(85050);var d=c((function(r,i){return p(r)?a(r,l(i,1,p,true)):[]}));r.exports=d},8752:r=>{function eq(r,i){return r===i||r!==r&&i!==i}r.exports=eq},13138:(r,i,s)=>{var a=s(46239);function flatten(r){var i=r==null?0:r.length;return i?a(r,1):[]}r.exports=flatten},16730:r=>{function identity(r){return r}r.exports=identity},85223:(r,i,s)=>{var a=s(75119),l=s(28671);var c=Object.prototype;var p=c.hasOwnProperty;var d=c.propertyIsEnumerable;var u=a(function(){return arguments}())?a:function(r){return l(r)&&p.call(r,"callee")&&!d.call(r,"callee")};r.exports=u},45249:r=>{var i=Array.isArray;r.exports=i},89615:(r,i,s)=>{var a=s(96223),l=s(73914);function isArrayLike(r){return r!=null&&l(r.length)&&!a(r)}r.exports=isArrayLike},85050:(r,i,s)=>{var a=s(89615),l=s(28671);function isArrayLikeObject(r){return l(r)&&a(r)}r.exports=isArrayLikeObject},24095:(r,i,s)=>{r=s.nmd(r);var a=s(24645),l=s(30911);var c=true&&i&&!i.nodeType&&i;var p=c&&"object"=="object"&&r&&!r.nodeType&&r;var d=p&&p.exports===c;var u=d?a.Buffer:undefined;var A=u?u.isBuffer:undefined;var h=A||l;r.exports=h},96223:(r,i,s)=>{var a=s(21675),l=s(19959);var c="[object AsyncFunction]",p="[object Function]",d="[object GeneratorFunction]",u="[object Proxy]";function isFunction(r){if(!l(r)){return false}var i=a(r);return i==p||i==d||i==c||i==u}r.exports=isFunction},73914:r=>{var i=9007199254740991;function isLength(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=i}r.exports=isLength},19959:r=>{function isObject(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}r.exports=isObject},28671:r=>{function isObjectLike(r){return r!=null&&typeof r=="object"}r.exports=isObjectLike},60256:(r,i,s)=>{var a=s(21675),l=s(11961),c=s(28671);var p="[object Object]";var d=Function.prototype,u=Object.prototype;var A=d.toString;var h=u.hasOwnProperty;var g=A.call(Object);function isPlainObject(r){if(!c(r)||a(r)!=p){return false}var i=l(r);if(i===null){return true}var s=h.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&A.call(s)==g}r.exports=isPlainObject},27772:(r,i,s)=>{var a=s(50031),l=s(61310),c=s(83375);var p=c&&c.isTypedArray;var d=p?l(p):a;r.exports=d},87393:(r,i,s)=>{var a=s(63410),l=s(47995),c=s(89615);function keysIn(r){return c(r)?a(r,true):l(r)}r.exports=keysIn},61099:r=>{function noop(){}r.exports=noop},30911:r=>{function stubFalse(){return false}r.exports=stubFalse},94909:(r,i,s)=>{var a=s(46239),l=s(22593),c=s(60474),p=s(85050);var d=l((function(r){return c(a(r,1,p,true))}));r.exports=d},97310:(r,i,s)=>{ /*! * mime-db * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed */ -r.exports=a(4558)},3739:(r,i,a)=>{"use strict"; +r.exports=s(54558)},53739:(r,i,s)=>{"use strict"; /*! * mime-types * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */var s=a(4015);var l=a(1017).extname;var p=/^\s*([^;\s]*)(?:;|\s|$)/;var c=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);function charset(r){if(!r||typeof r!=="string"){return false}var i=p.exec(r);var a=i&&s[i[1].toLowerCase()];if(a&&a.charset){return a.charset}if(i&&c.test(i[1])){return"UTF-8"}return false}function contentType(r){if(!r||typeof r!=="string"){return false}var a=r.indexOf("/")===-1?i.lookup(r):r;if(!a){return false}if(a.indexOf("charset")===-1){var s=i.charset(a);if(s)a+="; charset="+s.toLowerCase()}return a}function extension(r){if(!r||typeof r!=="string"){return false}var a=p.exec(r);var s=a&&i.extensions[a[1].toLowerCase()];if(!s||!s.length){return false}return s[0]}function lookup(r){if(!r||typeof r!=="string"){return false}var a=l("x."+r).toLowerCase().substr(1);if(!a){return false}return i.types[a]||false}function populateMaps(r,i){var a=["nginx","apache",undefined,"iana"];Object.keys(s).forEach((function forEachMimeType(l){var p=s[l];var c=p.extensions;if(!c||!c.length){return}r[l]=c;for(var d=0;dg||h===g&&i[u].substr(0,12)==="application/")){continue}}i[u]=l}}))}},844:r=>{const i=typeof process==="object"&&process&&process.platform==="win32";r.exports=i?{sep:"\\"}:{sep:"/"}},1659:(r,i,a)=>{const s=r.exports=(r,i,a={})=>{assertValidPattern(i);if(!a.nocomment&&i.charAt(0)==="#"){return false}return new Minimatch(i,a).match(r)};r.exports=s;const l=a(844);s.sep=l.sep;const p=Symbol("globstar **");s.GLOBSTAR=p;const c=a(1981);const d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const u="[^/]";const h=u+"*?";const g="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const y="(?:(?!(?:\\/|^)\\.).)*?";const charSet=r=>r.split("").reduce(((r,i)=>{r[i]=true;return r}),{});const b=charSet("().*{}+?[]^$\\!");const v=charSet("[.(");const w=/\/+/;s.filter=(r,i={})=>(a,l,p)=>s(a,r,i);const ext=(r,i={})=>{const a={};Object.keys(r).forEach((i=>a[i]=r[i]));Object.keys(i).forEach((r=>a[r]=i[r]));return a};s.defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return s}const i=s;const m=(a,s,l)=>i(a,s,ext(r,l));m.Minimatch=class Minimatch extends i.Minimatch{constructor(i,a){super(i,ext(r,a))}};m.Minimatch.defaults=a=>i.defaults(ext(r,a)).Minimatch;m.filter=(a,s)=>i.filter(a,ext(r,s));m.defaults=a=>i.defaults(ext(r,a));m.makeRe=(a,s)=>i.makeRe(a,ext(r,s));m.braceExpand=(a,s)=>i.braceExpand(a,ext(r,s));m.match=(a,s,l)=>i.match(a,s,ext(r,l));return m};s.braceExpand=(r,i)=>braceExpand(r,i);const braceExpand=(r,i={})=>{assertValidPattern(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return c(r)};const x=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>x){throw new TypeError("pattern is too long")}};const S=Symbol("subparse");s.makeRe=(r,i)=>new Minimatch(r,i||{}).makeRe();s.match=(r,i,a={})=>{const s=new Minimatch(i,a);r=r.filter((r=>s.match(r)));if(s.options.nonull&&!r.length){r.push(i)}return r};const globUnescape=r=>r.replace(/\\(.)/g,"$1");const charUnescape=r=>r.replace(/\\([^-\]])/g,"$1");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=r=>r.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(r,i){assertValidPattern(r);if(!i)i={};this.options=i;this.set=[];this.pattern=r;this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!i.partial;this.make()}debug(){}make(){const r=this.pattern;const i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();let a=this.globSet=this.braceExpand();if(i.debug)this.debug=(...r)=>console.error(...r);this.debug(this.pattern,a);a=this.globParts=a.map((r=>r.split(w)));this.debug(this.pattern,a);a=a.map(((r,i,a)=>r.map(this.parse,this)));this.debug(this.pattern,a);a=a.filter((r=>r.indexOf(false)===-1));this.debug(this.pattern,a);this.set=a}parseNegate(){if(this.options.nonegate)return;const r=this.pattern;let i=false;let a=0;for(let s=0;s>> no match, partial?",r,y,i,b);if(y===d)return true}return false}var w;if(typeof h==="string"){w=g===h;this.debug("string match",h,g,w)}else{w=g.match(h);this.debug("pattern match",h,g,w)}if(!w)return false}if(l===d&&c===u){return true}else if(l===d){return a}else if(c===u){return l===d-1&&r[l]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(r,i){assertValidPattern(r);const a=this.options;if(r==="**"){if(!a.noglobstar)return p;else r="*"}if(r==="")return"";let s="";let l=false;let c=false;const g=[];const y=[];let w;let x=false;let _=-1;let T=-1;let N;let P;let O;let R=r.charAt(0)===".";let C=a.dot||R;const patternStart=()=>R?"":C?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=r=>r.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(w){switch(w){case"*":s+=h;l=true;break;case"?":s+=u;l=true;break;default:s+="\\"+w;break}this.debug("clearStateChar %j %j",w,s);w=false}};for(let i=0,p;i{if(!a){a="\\"}return i+i+a+"|"}));this.debug("tail=%j\n %s",r,r,P,s);const i=P.type==="*"?h:P.type==="?"?u:"\\"+P.type;l=true;s=s.slice(0,P.reStart)+i+"\\("+r}clearStateChar();if(c){s+="\\\\"}const k=v[s.charAt(0)];for(let r=y.length-1;r>-1;r--){const a=y[r];const l=s.slice(0,a.reStart);const p=s.slice(a.reStart,a.reEnd-8);let c=s.slice(a.reEnd);const d=s.slice(a.reEnd-8,a.reEnd)+c;const u=l.split(")").length;const h=l.split("(").length-u;let g=c;for(let r=0;r{r=r.map((r=>typeof r==="string"?regExpEscape(r):r===p?p:r._src)).reduce(((r,i)=>{if(!(r[r.length-1]===p&&i===p)){r.push(i)}return r}),[]);r.forEach(((i,s)=>{if(i!==p||r[s-1]===p){return}if(s===0){if(r.length>1){r[s+1]="(?:\\/|"+a+"\\/)?"+r[s+1]}else{r[s]=a}}else if(s===r.length-1){r[s-1]+="(?:\\/|"+a+")?"}else{r[s-1]+="(?:\\/|\\/"+a+"\\/)"+r[s+1];r[s+1]=p}}));return r.filter((r=>r!==p)).join("/")})).join("|");l="^(?:"+l+")$";if(this.negate)l="^(?!"+l+").*$";try{this.regexp=new RegExp(l,s)}catch(r){this.regexp=false}return this.regexp}match(r,i=this.partial){this.debug("match",r,this.pattern);if(this.comment)return false;if(this.empty)return r==="";if(r==="/"&&i)return true;const a=this.options;if(l.sep!=="/"){r=r.split(l.sep).join("/")}r=r.split(w);this.debug(this.pattern,"split",r);const s=this.set;this.debug(this.pattern,"set",s);let p;for(let i=r.length-1;i>=0;i--){p=r[i];if(p)break}for(let l=0;l{var s=a(1017);var l=a(7147);var p=parseInt("0777",8);r.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(r,i,a,c){if(typeof i==="function"){a=i;i={}}else if(!i||typeof i!=="object"){i={mode:i}}var d=i.mode;var u=i.fs||l;if(d===undefined){d=p}if(!c)c=null;var h=a||function(){};r=s.resolve(r);u.mkdir(r,d,(function(a){if(!a){c=c||r;return h(null,c)}switch(a.code){case"ENOENT":if(s.dirname(r)===r)return h(a);mkdirP(s.dirname(r),i,(function(a,s){if(a)h(a,s);else mkdirP(r,i,h,s)}));break;default:u.stat(r,(function(r,i){if(r||!i.isDirectory())h(a,c);else h(null,c)}));break}}))}mkdirP.sync=function sync(r,i,a){if(!i||typeof i!=="object"){i={mode:i}}var c=i.mode;var d=i.fs||l;if(c===undefined){c=p}if(!a)a=null;r=s.resolve(r);try{d.mkdirSync(r,c);a=a||r}catch(l){switch(l.code){case"ENOENT":a=sync(s.dirname(r),i,a);sync(r,i,a);break;default:var u;try{u=d.statSync(r)}catch(r){throw l}if(!u.isDirectory())throw l;break}}return a}},8761:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var s=_interopDefault(a(2781));var l=_interopDefault(a(3685));var p=_interopDefault(a(7310));var c=_interopDefault(a(872));var d=_interopDefault(a(5687));var u=_interopDefault(a(9796));const h=s.Readable;const g=Symbol("buffer");const y=Symbol("type");class Blob{constructor(){this[y]="";const r=arguments[0];const i=arguments[1];const a=[];let s=0;if(r){const i=r;const l=Number(i.length);for(let r=0;r1&&arguments[1]!==undefined?arguments[1]:{},l=a.size;let p=l===undefined?0:l;var c=a.timeout;let d=c===undefined?0:c;if(r==null){r=null}else if(isURLSearchParams(r)){r=Buffer.from(r.toString())}else if(isBlob(r));else if(Buffer.isBuffer(r));else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){r=Buffer.from(r)}else if(ArrayBuffer.isView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(r instanceof s);else{r=Buffer.from(String(r))}this[v]={body:r,disturbed:false,error:null};this.size=p;this.timeout=d;if(r instanceof s){r.on("error",(function(r){const a=r.name==="AbortError"?r:new FetchError(`Invalid response body while trying to fetch ${i.url}: ${r.message}`,"system",r);i[v].error=a}))}}Body.prototype={get body(){return this[v].body},get bodyUsed(){return this[v].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(r){return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}))},blob(){let r=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(i){return Object.assign(new Blob([],{type:r.toLowerCase()}),{[g]:i})}))},json(){var r=this;return consumeBody.call(this).then((function(i){try{return JSON.parse(i.toString())}catch(i){return Body.Promise.reject(new FetchError(`invalid json response body at ${r.url} reason: ${i.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(r){return r.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var r=this;return consumeBody.call(this).then((function(i){return convertBody(i,r.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(r){for(const i of Object.getOwnPropertyNames(Body.prototype)){if(!(i in r)){const a=Object.getOwnPropertyDescriptor(Body.prototype,i);Object.defineProperty(r,i,a)}}};function consumeBody(){var r=this;if(this[v].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[v].disturbed=true;if(this[v].error){return Body.Promise.reject(this[v].error)}let i=this.body;if(i===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(i)){i=i.stream()}if(Buffer.isBuffer(i)){return Body.Promise.resolve(i)}if(!(i instanceof s)){return Body.Promise.resolve(Buffer.alloc(0))}let a=[];let l=0;let p=false;return new Body.Promise((function(s,c){let d;if(r.timeout){d=setTimeout((function(){p=true;c(new FetchError(`Response timeout while trying to fetch ${r.url} (over ${r.timeout}ms)`,"body-timeout"))}),r.timeout)}i.on("error",(function(i){if(i.name==="AbortError"){p=true;c(i)}else{c(new FetchError(`Invalid response body while trying to fetch ${r.url}: ${i.message}`,"system",i))}}));i.on("data",(function(i){if(p||i===null){return}if(r.size&&l+i.length>r.size){p=true;c(new FetchError(`content size at ${r.url} over limit: ${r.size}`,"max-size"));return}l+=i.length;a.push(i)}));i.on("end",(function(){if(p){return}clearTimeout(d);try{s(Buffer.concat(a,l))}catch(i){c(new FetchError(`Could not create Buffer from response body for ${r.url}: ${i.message}`,"system",i))}}))}))}function convertBody(r,i){if(typeof b!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const a=i.get("content-type");let s="utf-8";let l,p;if(a){l=/charset=([^;]*)/i.exec(a)}p=r.slice(0,1024).toString();if(!l&&p){l=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[_]=Object.create(null);if(r instanceof Headers){const i=r.raw();const a=Object.keys(i);for(const r of a){for(const a of i[r]){this.append(r,a)}}return}if(r==null);else if(typeof r==="object"){const i=r[Symbol.iterator];if(i!=null){if(typeof i!=="function"){throw new TypeError("Header pairs must be iterable")}const a=[];for(const i of r){if(typeof i!=="object"||typeof i[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}a.push(Array.from(i))}for(const r of a){if(r.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(r[0],r[1])}}else{for(const i of Object.keys(r)){const a=r[i];this.append(i,a)}}}else{throw new TypeError("Provided initializer must be an object")}}get(r){r=`${r}`;validateName(r);const i=find(this[_],r);if(i===undefined){return null}return this[_][i].join(", ")}forEach(r){let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let a=getHeaders(this);let s=0;while(s1&&arguments[1]!==undefined?arguments[1]:"key+value";const a=Object.keys(r[_]).sort();return a.map(i==="key"?function(r){return r.toLowerCase()}:i==="value"?function(i){return r[_][i].join(", ")}:function(i){return[i.toLowerCase(),r[_][i].join(", ")]})}const T=Symbol("internal");function createHeadersIterator(r,i){const a=Object.create(N);a[T]={target:r,kind:i,index:0};return a}const N=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==N){throw new TypeError("Value of `this` is not a HeadersIterator")}var r=this[T];const i=r.target,a=r.kind,s=r.index;const l=getHeaders(i,a);const p=l.length;if(s>=p){return{value:undefined,done:true}}this[T].index=s+1;return{value:l[s],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(N,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(r){const i=Object.assign({__proto__:null},r[_]);const a=find(r[_],"Host");if(a!==undefined){i[a]=i[a][0]}return i}function createHeadersLenient(r){const i=new Headers;for(const a of Object.keys(r)){if(x.test(a)){continue}if(Array.isArray(r[a])){for(const s of r[a]){if(S.test(s)){continue}if(i[_][a]===undefined){i[_][a]=[s]}else{i[_][a].push(s)}}}else if(!S.test(r[a])){i[_][a]=[r[a]]}}return i}const P=Symbol("Response internals");const O=l.STATUS_CODES;class Response{constructor(){let r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,r,i);const a=i.status||200;const s=new Headers(i.headers);if(r!=null&&!s.has("Content-Type")){const i=extractContentType(r);if(i){s.append("Content-Type",i)}}this[P]={url:i.url,status:a,statusText:i.statusText||O[a],headers:s,counter:i.counter}}get url(){return this[P].url||""}get status(){return this[P].status}get ok(){return this[P].status>=200&&this[P].status<300}get redirected(){return this[P].counter>0}get statusText(){return this[P].statusText}get headers(){return this[P].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const R=Symbol("Request internals");const C=p.URL||c.URL;const k=p.parse;const A=p.format;function parseURL(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(r)){r=new C(r).toString()}return k(r)}const D="destroy"in s.Readable.prototype;function isRequest(r){return typeof r==="object"&&typeof r[R]==="object"}function isAbortSignal(r){const i=r&&typeof r==="object"&&Object.getPrototypeOf(r);return!!(i&&i.constructor.name==="AbortSignal")}class Request{constructor(r){let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let a;if(!isRequest(r)){if(r&&r.href){a=parseURL(r.href)}else{a=parseURL(`${r}`)}r={}}else{a=parseURL(r.url)}let s=i.method||r.method||"GET";s=s.toUpperCase();if((i.body!=null||isRequest(r)&&r.body!==null)&&(s==="GET"||s==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let l=i.body!=null?i.body:isRequest(r)&&r.body!==null?clone(r):null;Body.call(this,l,{timeout:i.timeout||r.timeout||0,size:i.size||r.size||0});const p=new Headers(i.headers||r.headers||{});if(l!=null&&!p.has("Content-Type")){const r=extractContentType(l);if(r){p.append("Content-Type",r)}}let c=isRequest(r)?r.signal:null;if("signal"in i)c=i.signal;if(c!=null&&!isAbortSignal(c)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[R]={method:s,redirect:i.redirect||r.redirect||"follow",headers:p,parsedURL:a,signal:c};this.follow=i.follow!==undefined?i.follow:r.follow!==undefined?r.follow:20;this.compress=i.compress!==undefined?i.compress:r.compress!==undefined?r.compress:true;this.counter=i.counter||r.counter||0;this.agent=i.agent||r.agent}get method(){return this[R].method}get url(){return A(this[R].parsedURL)}get headers(){return this[R].headers}get redirect(){return this[R].redirect}get signal(){return this[R].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(r){const i=r[R].parsedURL;const a=new Headers(r[R].headers);if(!a.has("Accept")){a.set("Accept","*/*")}if(!i.protocol||!i.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(i.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(r.signal&&r.body instanceof s.Readable&&!D){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let l=null;if(r.body==null&&/^(POST|PUT)$/i.test(r.method)){l="0"}if(r.body!=null){const i=getTotalBytes(r);if(typeof i==="number"){l=String(i)}}if(l){a.set("Content-Length",l)}if(!a.has("User-Agent")){a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(r.compress&&!a.has("Accept-Encoding")){a.set("Accept-Encoding","gzip,deflate")}let p=r.agent;if(typeof p==="function"){p=p(i)}return Object.assign({},i,{method:r.method,headers:exportNodeCompatibleHeaders(a),agent:p})}function AbortError(r){Error.call(this,r);this.type="aborted";this.message=r;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const I=p.URL||c.URL;const L=s.PassThrough;const B=function isDomainOrSubdomain(r,i){const a=new I(i).hostname;const s=new I(r).hostname;return a===s||a[a.length-s.length-1]==="."&&a.endsWith(s)};const M=function isSameProtocol(r,i){const a=new I(i).protocol;const s=new I(r).protocol;return a===s};function fetch(r,i){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(a,p){const c=new Request(r,i);const h=getNodeRequestOptions(c);const g=(h.protocol==="https:"?d:l).request;const y=c.signal;let b=null;const v=function abort(){let r=new AbortError("The user aborted a request.");p(r);if(c.body&&c.body instanceof s.Readable){destroyStream(c.body,r)}if(!b||!b.body)return;b.body.emit("error",r)};if(y&&y.aborted){v();return}const w=function abortAndFinalize(){v();finalize()};const x=g(h);let S;if(y){y.addEventListener("abort",w)}function finalize(){x.abort();if(y)y.removeEventListener("abort",w);clearTimeout(S)}if(c.timeout){x.once("socket",(function(r){S=setTimeout((function(){p(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}x.on("error",(function(r){p(new FetchError(`request to ${c.url} failed, reason: ${r.message}`,"system",r));if(b&&b.body){destroyStream(b.body,r)}finalize()}));fixResponseChunkedTransferBadEnding(x,(function(r){if(y&&y.aborted){return}if(b&&b.body){destroyStream(b.body,r)}}));if(parseInt(process.version.substring(1))<14){x.on("socket",(function(r){r.addListener("close",(function(i){const a=r.listenerCount("data")>0;if(b&&a&&!i&&!(y&&y.aborted)){const r=new Error("Premature close");r.code="ERR_STREAM_PREMATURE_CLOSE";b.body.emit("error",r)}}))}))}x.on("response",(function(r){clearTimeout(S);const i=createHeadersLenient(r.headers);if(fetch.isRedirect(r.statusCode)){const s=i.get("Location");let l=null;try{l=s===null?null:new I(s,c.url).toString()}catch(r){if(c.redirect!=="manual"){p(new FetchError(`uri requested responds with an invalid redirect URL: ${s}`,"invalid-redirect"));finalize();return}}switch(c.redirect){case"error":p(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(l!==null){try{i.set("Location",l)}catch(r){p(r)}}break;case"follow":if(l===null){break}if(c.counter>=c.follow){p(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const s={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(!B(c.url,l)||!M(c.url,l)){for(const r of["authorization","www-authenticate","cookie","cookie2"]){s.headers.delete(r)}}if(r.statusCode!==303&&c.body&&getTotalBytes(c)===null){p(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(r.statusCode===303||(r.statusCode===301||r.statusCode===302)&&c.method==="POST"){s.method="GET";s.body=undefined;s.headers.delete("content-length")}a(fetch(new Request(l,s)));finalize();return}}r.once("end",(function(){if(y)y.removeEventListener("abort",w)}));let s=r.pipe(new L);const l={url:c.url,status:r.statusCode,statusText:r.statusMessage,headers:i,size:c.size,timeout:c.timeout,counter:c.counter};const d=i.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||d===null||r.statusCode===204||r.statusCode===304){b=new Response(s,l);a(b);return}const h={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(d=="gzip"||d=="x-gzip"){s=s.pipe(u.createGunzip(h));b=new Response(s,l);a(b);return}if(d=="deflate"||d=="x-deflate"){const i=r.pipe(new L);i.once("data",(function(r){if((r[0]&15)===8){s=s.pipe(u.createInflate())}else{s=s.pipe(u.createInflateRaw())}b=new Response(s,l);a(b)}));i.on("end",(function(){if(!b){b=new Response(s,l);a(b)}}));return}if(d=="br"&&typeof u.createBrotliDecompress==="function"){s=s.pipe(u.createBrotliDecompress());b=new Response(s,l);a(b);return}b=new Response(s,l);a(b)}));writeToStream(x,c)}))}function fixResponseChunkedTransferBadEnding(r,i){let a;r.on("socket",(function(r){a=r}));r.on("response",(function(r){const s=r.headers;if(s["transfer-encoding"]==="chunked"&&!s["content-length"]){r.once("close",(function(r){const s=a&&a.listenerCount("data")>0;if(s&&!r){const r=new Error("Premature close");r.code="ERR_STREAM_PREMATURE_CLOSE";i(r)}}))}}))}function destroyStream(r,i){if(r.destroy){r.destroy(i)}else{r.emit("error",i);r.end()}}fetch.isRedirect=function(r){return r===301||r===302||r===303||r===307||r===308};fetch.Promise=global.Promise;r.exports=i=fetch;Object.defineProperty(i,"__esModule",{value:true});i["default"]=i;i.Headers=Headers;i.Request=Request;i.Response=Response;i.FetchError=FetchError;i.AbortError=AbortError},7674:r=>{ + */var a=s(97310);var l=s(71017).extname;var c=/^\s*([^;\s]*)(?:;|\s|$)/;var p=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);function charset(r){if(!r||typeof r!=="string"){return false}var i=c.exec(r);var s=i&&a[i[1].toLowerCase()];if(s&&s.charset){return s.charset}if(i&&p.test(i[1])){return"UTF-8"}return false}function contentType(r){if(!r||typeof r!=="string"){return false}var s=r.indexOf("/")===-1?i.lookup(r):r;if(!s){return false}if(s.indexOf("charset")===-1){var a=i.charset(s);if(a)s+="; charset="+a.toLowerCase()}return s}function extension(r){if(!r||typeof r!=="string"){return false}var s=c.exec(r);var a=s&&i.extensions[s[1].toLowerCase()];if(!a||!a.length){return false}return a[0]}function lookup(r){if(!r||typeof r!=="string"){return false}var s=l("x."+r).toLowerCase().substr(1);if(!s){return false}return i.types[s]||false}function populateMaps(r,i){var s=["nginx","apache",undefined,"iana"];Object.keys(a).forEach((function forEachMimeType(l){var c=a[l];var p=c.extensions;if(!p||!p.length){return}r[l]=p;for(var d=0;dh||A===h&&i[u].substr(0,12)==="application/")){continue}}i[u]=l}}))}},30844:r=>{const i=typeof process==="object"&&process&&process.platform==="win32";r.exports=i?{sep:"\\"}:{sep:"/"}},31659:(r,i,s)=>{const a=r.exports=(r,i,s={})=>{assertValidPattern(i);if(!s.nocomment&&i.charAt(0)==="#"){return false}return new Minimatch(i,s).match(r)};r.exports=a;const l=s(30844);a.sep=l.sep;const c=Symbol("globstar **");a.GLOBSTAR=c;const p=s(21981);const d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const u="[^/]";const A=u+"*?";const h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const g="(?:(?!(?:\\/|^)\\.).)*?";const charSet=r=>r.split("").reduce(((r,i)=>{r[i]=true;return r}),{});const y=charSet("().*{}+?[]^$\\!");const b=charSet("[.(");const C=/\/+/;a.filter=(r,i={})=>(s,l,c)=>a(s,r,i);const ext=(r,i={})=>{const s={};Object.keys(r).forEach((i=>s[i]=r[i]));Object.keys(i).forEach((r=>s[r]=i[r]));return s};a.defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return a}const i=a;const m=(s,a,l)=>i(s,a,ext(r,l));m.Minimatch=class Minimatch extends i.Minimatch{constructor(i,s){super(i,ext(r,s))}};m.Minimatch.defaults=s=>i.defaults(ext(r,s)).Minimatch;m.filter=(s,a)=>i.filter(s,ext(r,a));m.defaults=s=>i.defaults(ext(r,s));m.makeRe=(s,a)=>i.makeRe(s,ext(r,a));m.braceExpand=(s,a)=>i.braceExpand(s,ext(r,a));m.match=(s,a,l)=>i.match(s,a,ext(r,l));return m};a.braceExpand=(r,i)=>braceExpand(r,i);const braceExpand=(r,i={})=>{assertValidPattern(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return p(r)};const v=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>v){throw new TypeError("pattern is too long")}};const B=Symbol("subparse");a.makeRe=(r,i)=>new Minimatch(r,i||{}).makeRe();a.match=(r,i,s={})=>{const a=new Minimatch(i,s);r=r.filter((r=>a.match(r)));if(a.options.nonull&&!r.length){r.push(i)}return r};const globUnescape=r=>r.replace(/\\(.)/g,"$1");const charUnescape=r=>r.replace(/\\([^-\]])/g,"$1");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=r=>r.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(r,i){assertValidPattern(r);if(!i)i={};this.options=i;this.set=[];this.pattern=r;this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!i.partial;this.make()}debug(){}make(){const r=this.pattern;const i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();let s=this.globSet=this.braceExpand();if(i.debug)this.debug=(...r)=>console.error(...r);this.debug(this.pattern,s);s=this.globParts=s.map((r=>r.split(C)));this.debug(this.pattern,s);s=s.map(((r,i,s)=>r.map(this.parse,this)));this.debug(this.pattern,s);s=s.filter((r=>r.indexOf(false)===-1));this.debug(this.pattern,s);this.set=s}parseNegate(){if(this.options.nonegate)return;const r=this.pattern;let i=false;let s=0;for(let a=0;a>> no match, partial?",r,g,i,y);if(g===d)return true}return false}var C;if(typeof A==="string"){C=h===A;this.debug("string match",A,h,C)}else{C=h.match(A);this.debug("pattern match",A,h,C)}if(!C)return false}if(l===d&&p===u){return true}else if(l===d){return s}else if(p===u){return l===d-1&&r[l]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(r,i){assertValidPattern(r);const s=this.options;if(r==="**"){if(!s.noglobstar)return c;else r="*"}if(r==="")return"";let a="";let l=false;let p=false;const h=[];const g=[];let C;let v=false;let w=-1;let I=-1;let S;let Q;let x;let N=r.charAt(0)===".";let R=s.dot||N;const patternStart=()=>N?"":R?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=r=>r.charAt(0)==="."?"":s.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(C){switch(C){case"*":a+=A;l=true;break;case"?":a+=u;l=true;break;default:a+="\\"+C;break}this.debug("clearStateChar %j %j",C,a);C=false}};for(let i=0,c;i{if(!s){s="\\"}return i+i+s+"|"}));this.debug("tail=%j\n %s",r,r,Q,a);const i=Q.type==="*"?A:Q.type==="?"?u:"\\"+Q.type;l=true;a=a.slice(0,Q.reStart)+i+"\\("+r}clearStateChar();if(p){a+="\\\\"}const T=b[a.charAt(0)];for(let r=g.length-1;r>-1;r--){const s=g[r];const l=a.slice(0,s.reStart);const c=a.slice(s.reStart,s.reEnd-8);let p=a.slice(s.reEnd);const d=a.slice(s.reEnd-8,s.reEnd)+p;const u=l.split(")").length;const A=l.split("(").length-u;let h=p;for(let r=0;r{r=r.map((r=>typeof r==="string"?regExpEscape(r):r===c?c:r._src)).reduce(((r,i)=>{if(!(r[r.length-1]===c&&i===c)){r.push(i)}return r}),[]);r.forEach(((i,a)=>{if(i!==c||r[a-1]===c){return}if(a===0){if(r.length>1){r[a+1]="(?:\\/|"+s+"\\/)?"+r[a+1]}else{r[a]=s}}else if(a===r.length-1){r[a-1]+="(?:\\/|"+s+")?"}else{r[a-1]+="(?:\\/|\\/"+s+"\\/)"+r[a+1];r[a+1]=c}}));return r.filter((r=>r!==c)).join("/")})).join("|");l="^(?:"+l+")$";if(this.negate)l="^(?!"+l+").*$";try{this.regexp=new RegExp(l,a)}catch(r){this.regexp=false}return this.regexp}match(r,i=this.partial){this.debug("match",r,this.pattern);if(this.comment)return false;if(this.empty)return r==="";if(r==="/"&&i)return true;const s=this.options;if(l.sep!=="/"){r=r.split(l.sep).join("/")}r=r.split(C);this.debug(this.pattern,"split",r);const a=this.set;this.debug(this.pattern,"set",a);let c;for(let i=r.length-1;i>=0;i--){c=r[i];if(c)break}for(let l=0;l{var a=s(71017);var l=s(57147);var c=parseInt("0777",8);r.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(r,i,s,p){if(typeof i==="function"){s=i;i={}}else if(!i||typeof i!=="object"){i={mode:i}}var d=i.mode;var u=i.fs||l;if(d===undefined){d=c}if(!p)p=null;var A=s||function(){};r=a.resolve(r);u.mkdir(r,d,(function(s){if(!s){p=p||r;return A(null,p)}switch(s.code){case"ENOENT":if(a.dirname(r)===r)return A(s);mkdirP(a.dirname(r),i,(function(s,a){if(s)A(s,a);else mkdirP(r,i,A,a)}));break;default:u.stat(r,(function(r,i){if(r||!i.isDirectory())A(s,p);else A(null,p)}));break}}))}mkdirP.sync=function sync(r,i,s){if(!i||typeof i!=="object"){i={mode:i}}var p=i.mode;var d=i.fs||l;if(p===undefined){p=c}if(!s)s=null;r=a.resolve(r);try{d.mkdirSync(r,p);s=s||r}catch(l){switch(l.code){case"ENOENT":s=sync(a.dirname(r),i,s);sync(r,i,s);break;default:var u;try{u=d.statSync(r)}catch(r){throw l}if(!u.isDirectory())throw l;break}}return s}},88761:(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=_interopDefault(s(12781));var l=_interopDefault(s(13685));var c=_interopDefault(s(57310));var p=_interopDefault(s(70872));var d=_interopDefault(s(95687));var u=_interopDefault(s(59796));const A=a.Readable;const h=Symbol("buffer");const g=Symbol("type");class Blob{constructor(){this[g]="";const r=arguments[0];const i=arguments[1];const s=[];let a=0;if(r){const i=r;const l=Number(i.length);for(let r=0;r1&&arguments[1]!==undefined?arguments[1]:{},l=s.size;let c=l===undefined?0:l;var p=s.timeout;let d=p===undefined?0:p;if(r==null){r=null}else if(isURLSearchParams(r)){r=Buffer.from(r.toString())}else if(isBlob(r));else if(Buffer.isBuffer(r));else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){r=Buffer.from(r)}else if(ArrayBuffer.isView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(r instanceof a);else{r=Buffer.from(String(r))}this[b]={body:r,disturbed:false,error:null};this.size=c;this.timeout=d;if(r instanceof a){r.on("error",(function(r){const s=r.name==="AbortError"?r:new FetchError(`Invalid response body while trying to fetch ${i.url}: ${r.message}`,"system",r);i[b].error=s}))}}Body.prototype={get body(){return this[b].body},get bodyUsed(){return this[b].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(r){return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}))},blob(){let r=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(i){return Object.assign(new Blob([],{type:r.toLowerCase()}),{[h]:i})}))},json(){var r=this;return consumeBody.call(this).then((function(i){try{return JSON.parse(i.toString())}catch(i){return Body.Promise.reject(new FetchError(`invalid json response body at ${r.url} reason: ${i.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(r){return r.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var r=this;return consumeBody.call(this).then((function(i){return convertBody(i,r.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(r){for(const i of Object.getOwnPropertyNames(Body.prototype)){if(!(i in r)){const s=Object.getOwnPropertyDescriptor(Body.prototype,i);Object.defineProperty(r,i,s)}}};function consumeBody(){var r=this;if(this[b].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[b].disturbed=true;if(this[b].error){return Body.Promise.reject(this[b].error)}let i=this.body;if(i===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(i)){i=i.stream()}if(Buffer.isBuffer(i)){return Body.Promise.resolve(i)}if(!(i instanceof a)){return Body.Promise.resolve(Buffer.alloc(0))}let s=[];let l=0;let c=false;return new Body.Promise((function(a,p){let d;if(r.timeout){d=setTimeout((function(){c=true;p(new FetchError(`Response timeout while trying to fetch ${r.url} (over ${r.timeout}ms)`,"body-timeout"))}),r.timeout)}i.on("error",(function(i){if(i.name==="AbortError"){c=true;p(i)}else{p(new FetchError(`Invalid response body while trying to fetch ${r.url}: ${i.message}`,"system",i))}}));i.on("data",(function(i){if(c||i===null){return}if(r.size&&l+i.length>r.size){c=true;p(new FetchError(`content size at ${r.url} over limit: ${r.size}`,"max-size"));return}l+=i.length;s.push(i)}));i.on("end",(function(){if(c){return}clearTimeout(d);try{a(Buffer.concat(s,l))}catch(i){p(new FetchError(`Could not create Buffer from response body for ${r.url}: ${i.message}`,"system",i))}}))}))}function convertBody(r,i){if(typeof y!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const s=i.get("content-type");let a="utf-8";let l,c;if(s){l=/charset=([^;]*)/i.exec(s)}c=r.slice(0,1024).toString();if(!l&&c){l=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[w]=Object.create(null);if(r instanceof Headers){const i=r.raw();const s=Object.keys(i);for(const r of s){for(const s of i[r]){this.append(r,s)}}return}if(r==null);else if(typeof r==="object"){const i=r[Symbol.iterator];if(i!=null){if(typeof i!=="function"){throw new TypeError("Header pairs must be iterable")}const s=[];for(const i of r){if(typeof i!=="object"||typeof i[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}s.push(Array.from(i))}for(const r of s){if(r.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(r[0],r[1])}}else{for(const i of Object.keys(r)){const s=r[i];this.append(i,s)}}}else{throw new TypeError("Provided initializer must be an object")}}get(r){r=`${r}`;validateName(r);const i=find(this[w],r);if(i===undefined){return null}return this[w][i].join(", ")}forEach(r){let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let s=getHeaders(this);let a=0;while(a1&&arguments[1]!==undefined?arguments[1]:"key+value";const s=Object.keys(r[w]).sort();return s.map(i==="key"?function(r){return r.toLowerCase()}:i==="value"?function(i){return r[w][i].join(", ")}:function(i){return[i.toLowerCase(),r[w][i].join(", ")]})}const I=Symbol("internal");function createHeadersIterator(r,i){const s=Object.create(S);s[I]={target:r,kind:i,index:0};return s}const S=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==S){throw new TypeError("Value of `this` is not a HeadersIterator")}var r=this[I];const i=r.target,s=r.kind,a=r.index;const l=getHeaders(i,s);const c=l.length;if(a>=c){return{value:undefined,done:true}}this[I].index=a+1;return{value:l[a],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(S,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(r){const i=Object.assign({__proto__:null},r[w]);const s=find(r[w],"Host");if(s!==undefined){i[s]=i[s][0]}return i}function createHeadersLenient(r){const i=new Headers;for(const s of Object.keys(r)){if(v.test(s)){continue}if(Array.isArray(r[s])){for(const a of r[s]){if(B.test(a)){continue}if(i[w][s]===undefined){i[w][s]=[a]}else{i[w][s].push(a)}}}else if(!B.test(r[s])){i[w][s]=[r[s]]}}return i}const Q=Symbol("Response internals");const x=l.STATUS_CODES;class Response{constructor(){let r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,r,i);const s=i.status||200;const a=new Headers(i.headers);if(r!=null&&!a.has("Content-Type")){const i=extractContentType(r);if(i){a.append("Content-Type",i)}}this[Q]={url:i.url,status:s,statusText:i.statusText||x[s],headers:a,counter:i.counter}}get url(){return this[Q].url||""}get status(){return this[Q].status}get ok(){return this[Q].status>=200&&this[Q].status<300}get redirected(){return this[Q].counter>0}get statusText(){return this[Q].statusText}get headers(){return this[Q].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const N=Symbol("Request internals");const R=c.URL||p.URL;const T=c.parse;const D=c.format;function parseURL(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(r)){r=new R(r).toString()}return T(r)}const _="destroy"in a.Readable.prototype;function isRequest(r){return typeof r==="object"&&typeof r[N]==="object"}function isAbortSignal(r){const i=r&&typeof r==="object"&&Object.getPrototypeOf(r);return!!(i&&i.constructor.name==="AbortSignal")}class Request{constructor(r){let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let s;if(!isRequest(r)){if(r&&r.href){s=parseURL(r.href)}else{s=parseURL(`${r}`)}r={}}else{s=parseURL(r.url)}let a=i.method||r.method||"GET";a=a.toUpperCase();if((i.body!=null||isRequest(r)&&r.body!==null)&&(a==="GET"||a==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let l=i.body!=null?i.body:isRequest(r)&&r.body!==null?clone(r):null;Body.call(this,l,{timeout:i.timeout||r.timeout||0,size:i.size||r.size||0});const c=new Headers(i.headers||r.headers||{});if(l!=null&&!c.has("Content-Type")){const r=extractContentType(l);if(r){c.append("Content-Type",r)}}let p=isRequest(r)?r.signal:null;if("signal"in i)p=i.signal;if(p!=null&&!isAbortSignal(p)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[N]={method:a,redirect:i.redirect||r.redirect||"follow",headers:c,parsedURL:s,signal:p};this.follow=i.follow!==undefined?i.follow:r.follow!==undefined?r.follow:20;this.compress=i.compress!==undefined?i.compress:r.compress!==undefined?r.compress:true;this.counter=i.counter||r.counter||0;this.agent=i.agent||r.agent}get method(){return this[N].method}get url(){return D(this[N].parsedURL)}get headers(){return this[N].headers}get redirect(){return this[N].redirect}get signal(){return this[N].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(r){const i=r[N].parsedURL;const s=new Headers(r[N].headers);if(!s.has("Accept")){s.set("Accept","*/*")}if(!i.protocol||!i.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(i.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(r.signal&&r.body instanceof a.Readable&&!_){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let l=null;if(r.body==null&&/^(POST|PUT)$/i.test(r.method)){l="0"}if(r.body!=null){const i=getTotalBytes(r);if(typeof i==="number"){l=String(i)}}if(l){s.set("Content-Length",l)}if(!s.has("User-Agent")){s.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(r.compress&&!s.has("Accept-Encoding")){s.set("Accept-Encoding","gzip,deflate")}let c=r.agent;if(typeof c==="function"){c=c(i)}return Object.assign({},i,{method:r.method,headers:exportNodeCompatibleHeaders(s),agent:c})}function AbortError(r){Error.call(this,r);this.type="aborted";this.message=r;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const k=c.URL||p.URL;const P=a.PassThrough;const O=function isDomainOrSubdomain(r,i){const s=new k(i).hostname;const a=new k(r).hostname;return s===a||s[s.length-a.length-1]==="."&&s.endsWith(a)};const L=function isSameProtocol(r,i){const s=new k(i).protocol;const a=new k(r).protocol;return s===a};function fetch(r,i){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(s,c){const p=new Request(r,i);const A=getNodeRequestOptions(p);const h=(A.protocol==="https:"?d:l).request;const g=p.signal;let y=null;const b=function abort(){let r=new AbortError("The user aborted a request.");c(r);if(p.body&&p.body instanceof a.Readable){destroyStream(p.body,r)}if(!y||!y.body)return;y.body.emit("error",r)};if(g&&g.aborted){b();return}const C=function abortAndFinalize(){b();finalize()};const v=h(A);let B;if(g){g.addEventListener("abort",C)}function finalize(){v.abort();if(g)g.removeEventListener("abort",C);clearTimeout(B)}if(p.timeout){v.once("socket",(function(r){B=setTimeout((function(){c(new FetchError(`network timeout at: ${p.url}`,"request-timeout"));finalize()}),p.timeout)}))}v.on("error",(function(r){c(new FetchError(`request to ${p.url} failed, reason: ${r.message}`,"system",r));if(y&&y.body){destroyStream(y.body,r)}finalize()}));fixResponseChunkedTransferBadEnding(v,(function(r){if(g&&g.aborted){return}if(y&&y.body){destroyStream(y.body,r)}}));if(parseInt(process.version.substring(1))<14){v.on("socket",(function(r){r.addListener("close",(function(i){const s=r.listenerCount("data")>0;if(y&&s&&!i&&!(g&&g.aborted)){const r=new Error("Premature close");r.code="ERR_STREAM_PREMATURE_CLOSE";y.body.emit("error",r)}}))}))}v.on("response",(function(r){clearTimeout(B);const i=createHeadersLenient(r.headers);if(fetch.isRedirect(r.statusCode)){const a=i.get("Location");let l=null;try{l=a===null?null:new k(a,p.url).toString()}catch(r){if(p.redirect!=="manual"){c(new FetchError(`uri requested responds with an invalid redirect URL: ${a}`,"invalid-redirect"));finalize();return}}switch(p.redirect){case"error":c(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${p.url}`,"no-redirect"));finalize();return;case"manual":if(l!==null){try{i.set("Location",l)}catch(r){c(r)}}break;case"follow":if(l===null){break}if(p.counter>=p.follow){c(new FetchError(`maximum redirect reached at: ${p.url}`,"max-redirect"));finalize();return}const a={headers:new Headers(p.headers),follow:p.follow,counter:p.counter+1,agent:p.agent,compress:p.compress,method:p.method,body:p.body,signal:p.signal,timeout:p.timeout,size:p.size};if(!O(p.url,l)||!L(p.url,l)){for(const r of["authorization","www-authenticate","cookie","cookie2"]){a.headers.delete(r)}}if(r.statusCode!==303&&p.body&&getTotalBytes(p)===null){c(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(r.statusCode===303||(r.statusCode===301||r.statusCode===302)&&p.method==="POST"){a.method="GET";a.body=undefined;a.headers.delete("content-length")}s(fetch(new Request(l,a)));finalize();return}}r.once("end",(function(){if(g)g.removeEventListener("abort",C)}));let a=r.pipe(new P);const l={url:p.url,status:r.statusCode,statusText:r.statusMessage,headers:i,size:p.size,timeout:p.timeout,counter:p.counter};const d=i.get("Content-Encoding");if(!p.compress||p.method==="HEAD"||d===null||r.statusCode===204||r.statusCode===304){y=new Response(a,l);s(y);return}const A={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(d=="gzip"||d=="x-gzip"){a=a.pipe(u.createGunzip(A));y=new Response(a,l);s(y);return}if(d=="deflate"||d=="x-deflate"){const i=r.pipe(new P);i.once("data",(function(r){if((r[0]&15)===8){a=a.pipe(u.createInflate())}else{a=a.pipe(u.createInflateRaw())}y=new Response(a,l);s(y)}));i.on("end",(function(){if(!y){y=new Response(a,l);s(y)}}));return}if(d=="br"&&typeof u.createBrotliDecompress==="function"){a=a.pipe(u.createBrotliDecompress());y=new Response(a,l);s(y);return}y=new Response(a,l);s(y)}));writeToStream(v,p)}))}function fixResponseChunkedTransferBadEnding(r,i){let s;r.on("socket",(function(r){s=r}));r.on("response",(function(r){const a=r.headers;if(a["transfer-encoding"]==="chunked"&&!a["content-length"]){r.once("close",(function(r){const a=s&&s.listenerCount("data")>0;if(a&&!r){const r=new Error("Premature close");r.code="ERR_STREAM_PREMATURE_CLOSE";i(r)}}))}}))}function destroyStream(r,i){if(r.destroy){r.destroy(i)}else{r.emit("error",i);r.end()}}fetch.isRedirect=function(r){return r===301||r===302||r===303||r===307||r===308};fetch.Promise=global.Promise;r.exports=i=fetch;Object.defineProperty(i,"__esModule",{value:true});i["default"]=i;i.Headers=Headers;i.Request=Request;i.Response=Response;i.FetchError=FetchError;i.AbortError=AbortError},7674:r=>{ /*! * normalize-path * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. */ -r.exports=function(r,i){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var a=r.length;if(a<=1)return r;var s="";if(a>4&&r[3]==="\\"){var l=r[2];if((l==="?"||l===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);s="//"}}var p=r.split(/[/\\]+/);if(i!==false&&p[p.length-1]===""){p.pop()}return s+p.join("/")}},9472:(r,i,a)=>{var s=a(666);r.exports=s(once);r.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var i=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;return f}},1238:r=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,i,a,s){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var l=arguments.length;var p,c;switch(l){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,i)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,i,a)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,i,a,s)}));default:p=new Array(l-1);c=0;while(c{r.exports=global.process},4282:(r,i,a)=>{r.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):a(4522)},4522:r=>{r.exports=typeof queueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},135:(r,i,a)=>{"use strict";var s=a(1238);var l=Object.keys||function(r){var i=[];for(var a in r){i.push(a)}return i};r.exports=Duplex;var p=Object.create(a(326));p.inherits=a(2713);var c=a(3616);var d=a(8509);p.inherits(Duplex,c);{var u=l(d.prototype);for(var h=0;h{"use strict";r.exports=PassThrough;var s=a(9001);var l=Object.create(a(326));l.inherits=a(2713);l.inherits(PassThrough,s);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);s.call(this,r)}PassThrough.prototype._transform=function(r,i,a){a(null,r)}},3616:(r,i,a)=>{"use strict";var s=a(1238);r.exports=Readable;var l=a(5062);var p;Readable.ReadableState=ReadableState;var c=a(2361).EventEmitter;var EElistenerCount=function(r,i){return r.listeners(i).length};var d=a(5098);var u=a(7289).Buffer;var h=(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 h}var g=Object.create(a(326));g.inherits=a(2713);var y=a(3837);var b=void 0;if(y&&y.debuglog){b=y.debuglog("stream")}else{b=function(){}}var v=a(2595);var w=a(4334);var x;g.inherits(Readable,d);var S=["error","close","destroy","pause","resume"];function prependListener(r,i,a){if(typeof r.prependListener==="function")return r.prependListener(i,a);if(!r._events||!r._events[i])r.on(i,a);else if(l(r._events[i]))r._events[i].unshift(a);else r._events[i]=[a,r._events[i]]}function ReadableState(r,i){p=p||a(135);r=r||{};var s=i instanceof p;this.objectMode=!!r.objectMode;if(s)this.objectMode=this.objectMode||!!r.readableObjectMode;var l=r.highWaterMark;var c=r.readableHighWaterMark;var d=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(s&&(c||c===0))this.highWaterMark=c;else this.highWaterMark=d;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new v;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(!x)x=a(6492).s;this.decoder=new x(r.encoding);this.encoding=r.encoding}}function Readable(r){p=p||a(135);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=w.destroy;Readable.prototype._undestroy=w.undestroy;Readable.prototype._destroy=function(r,i){this.push(null);i(r)};Readable.prototype.push=function(r,i){var a=this._readableState;var s;if(!a.objectMode){if(typeof r==="string"){i=i||a.defaultEncoding;if(i!==a.encoding){r=u.from(r,i);i=""}s=true}}else{s=true}return readableAddChunk(this,r,i,false,s)};Readable.prototype.unshift=function(r){return readableAddChunk(this,r,null,true,false)};function readableAddChunk(r,i,a,s,l){var p=r._readableState;if(i===null){p.reading=false;onEofChunk(r,p)}else{var c;if(!l)c=chunkInvalid(p,i);if(c){r.emit("error",c)}else if(p.objectMode||i&&i.length>0){if(typeof i!=="string"&&!p.objectMode&&Object.getPrototypeOf(i)!==u.prototype){i=_uint8ArrayToBuffer(i)}if(s){if(p.endEmitted)r.emit("error",new Error("stream.unshift() after end event"));else addChunk(r,p,i,true)}else if(p.ended){r.emit("error",new Error("stream.push() after EOF"))}else{p.reading=false;if(p.decoder&&!a){i=p.decoder.write(i);if(p.objectMode||i.length!==0)addChunk(r,p,i,false);else maybeReadMore(r,p)}else{addChunk(r,p,i,false)}}}else if(!s){p.reading=false}}return needMoreData(p)}function addChunk(r,i,a,s){if(i.flowing&&i.length===0&&!i.sync){r.emit("data",a);r.read(0)}else{i.length+=i.objectMode?1:a.length;if(s)i.buffer.unshift(a);else i.buffer.push(a);if(i.needReadable)emitReadable(r)}maybeReadMore(r,i)}function chunkInvalid(r,i){var a;if(!_isUint8Array(i)&&typeof i!=="string"&&i!==undefined&&!r.objectMode){a=new TypeError("Invalid non-string/buffer chunk")}return a}function needMoreData(r){return!r.ended&&(r.needReadable||r.length=_){r=_}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){b("read",r);r=parseInt(r,10);var i=this._readableState;var a=r;if(r!==0)i.emittedReadable=false;if(r===0&&i.needReadable&&(i.length>=i.highWaterMark||i.ended)){b("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 s=i.needReadable;b("need readable",s);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(a!==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 a=i.decoder.end();if(a&&a.length){i.buffer.push(a);i.length+=i.objectMode?1:a.length}}i.ended=true;emitReadable(r)}function emitReadable(r){var i=r._readableState;i.needReadable=false;if(!i.emittedReadable){b("emitReadable",i.flowing);i.emittedReadable=true;if(i.sync)s.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){b("emit readable");r.emit("readable");flow(r)}function maybeReadMore(r,i){if(!i.readingMore){i.readingMore=true;s.nextTick(maybeReadMore_,r,i)}}function maybeReadMore_(r,i){var a=i.length;while(!i.reading&&!i.flowing&&!i.ended&&i.length1&&indexOf(l.pipes,r)!==-1)&&!u){b("false write response, pause",l.awaitDrain);l.awaitDrain++;h=true}a.pause()}}function onerror(i){b("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(){b("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){b("unpipe");a.unpipe(r)}r.emit("pipe",a);if(!l.flowing){b("pipe resume");a.resume()}return r};function pipeOnDrain(r){return function(){var i=r._readableState;b("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 a={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,a);return this}if(!r){var s=i.pipes;var l=i.pipesCount;i.pipes=null;i.pipesCount=0;i.flowing=false;for(var p=0;p=i.length){if(i.decoder)a=i.buffer.join("");else if(i.buffer.length===1)a=i.buffer.head.data;else a=i.buffer.concat(i.length);i.buffer.clear()}else{a=fromListPartial(r,i.buffer,i.decoder)}return a}function fromListPartial(r,i,a){var s;if(rp.length?p.length:r;if(c===p.length)l+=p;else l+=p.slice(0,r);r-=c;if(r===0){if(c===p.length){++s;if(a.next)i.head=a.next;else i.head=i.tail=null}else{i.head=a;a.data=p.slice(c)}break}++s}i.length-=s;return l}function copyFromBuffer(r,i){var a=u.allocUnsafe(r);var s=i.head;var l=1;s.data.copy(a);r-=s.data.length;while(s=s.next){var p=s.data;var c=r>p.length?p.length:r;p.copy(a,a.length-r,0,c);r-=c;if(r===0){if(c===p.length){++l;if(s.next)i.head=s.next;else i.head=i.tail=null}else{i.head=s;s.data=p.slice(c)}break}++l}i.length-=l;return a}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;s.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 a=0,s=r.length;a{"use strict";r.exports=Transform;var s=a(135);var l=Object.create(a(326));l.inherits=a(2713);l.inherits(Transform,s);function afterTransform(r,i){var a=this._transformState;a.transforming=false;var s=a.writecb;if(!s){return this.emit("error",new Error("write callback called multiple times"))}a.writechunk=null;a.writecb=null;if(i!=null)this.push(i);s(r);var l=this._readableState;l.reading=false;if(l.needReadable||l.length{"use strict";var s=a(1238);r.exports=Writable;function WriteReq(r,i,a){this.chunk=r;this.encoding=i;this.callback=a;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:s.nextTick;var p;Writable.WritableState=WritableState;var c=Object.create(a(326));c.inherits=a(2713);var d={deprecate:a(2151)};var u=a(5098);var h=a(7289).Buffer;var g=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return h.from(r)}function _isUint8Array(r){return h.isBuffer(r)||r instanceof g}var y=a(4334);c.inherits(Writable,u);function nop(){}function WritableState(r,i){p=p||a(135);r=r||{};var s=i instanceof p;this.objectMode=!!r.objectMode;if(s)this.objectMode=this.objectMode||!!r.writableObjectMode;var l=r.highWaterMark;var c=r.writableHighWaterMark;var d=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(s&&(c||c===0))this.highWaterMark=c;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 b;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){b=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(b.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{b=function(r){return r instanceof this}}function Writable(r){p=p||a(135);if(!b.call(Writable,this)&&!(this instanceof p)){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 a=new Error("write after end");r.emit("error",a);s.nextTick(i,a)}function validChunk(r,i,a,l){var p=true;var c=false;if(a===null){c=new TypeError("May not write null values to stream")}else if(typeof a!=="string"&&a!==undefined&&!i.objectMode){c=new TypeError("Invalid non-string/buffer chunk")}if(c){r.emit("error",c);s.nextTick(l,c);p=false}return p}Writable.prototype.write=function(r,i,a){var s=this._writableState;var l=false;var p=!s.objectMode&&_isUint8Array(r);if(p&&!h.isBuffer(r)){r=_uint8ArrayToBuffer(r)}if(typeof i==="function"){a=i;i=null}if(p)i="buffer";else if(!i)i=s.defaultEncoding;if(typeof a!=="function")a=nop;if(s.ended)writeAfterEnd(this,a);else if(p||validChunk(this,s,r,a)){s.pendingcb++;l=writeOrBuffer(this,s,p,r,i,a)}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,a){if(!r.objectMode&&r.decodeStrings!==false&&typeof i==="string"){i=h.from(i,a)}return i}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(r,i,a,s,l,p){if(!a){var c=decodeChunk(i,s,l);if(s!==c){a=true;l="buffer";s=c}}var d=i.objectMode?1:s.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 s=a(7289).Buffer;var l=a(3837);function copyBuffer(r,i,a){r.copy(i,a)}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 a=""+i.data;while(i=i.next){a+=r+i.data}return a};BufferList.prototype.concat=function concat(r){if(this.length===0)return s.alloc(0);var i=s.allocUnsafe(r>>>0);var a=this.head;var l=0;while(a){copyBuffer(a.data,i,l);l+=a.data.length;a=a.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}}},4334:(r,i,a)=>{"use strict";var s=a(1238);function destroy(r,i){var a=this;var l=this._readableState&&this._readableState.destroyed;var p=this._writableState&&this._writableState.destroyed;if(l||p){if(i){i(r)}else if(r){if(!this._writableState){s.nextTick(emitErrorNT,this,r)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;s.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(!a._writableState){s.nextTick(emitErrorNT,a,r)}else if(!a._writableState.errorEmitted){a._writableState.errorEmitted=true;s.nextTick(emitErrorNT,a,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}},5098:(r,i,a)=>{r.exports=a(2781)},3775:(r,i,a)=>{r.exports=a(3636).PassThrough},3636:(r,i,a)=>{var s=a(2781);if(process.env.READABLE_STREAM==="disable"&&s){r.exports=s;i=r.exports=s.Readable;i.Readable=s.Readable;i.Writable=s.Writable;i.Duplex=s.Duplex;i.Transform=s.Transform;i.PassThrough=s.PassThrough;i.Stream=s}else{i=r.exports=a(3616);i.Stream=s||i;i.Readable=i;i.Writable=a(8509);i.Duplex=a(135);i.Transform=a(9001);i.PassThrough=a(7264)}},5154:(r,i,a)=>{"use strict";const{SymbolDispose:s}=a(9097);const{AbortError:l,codes:p}=a(2752);const{isNodeStream:c,isWebStream:d,kControllerErrorFunction:u}=a(3583);const h=a(1830);const{ERR_INVALID_ARG_TYPE:g}=p;let y;const validateAbortSignal=(r,i)=>{if(typeof r!=="object"||!("aborted"in r)){throw new g(i,"AbortSignal",r)}};r.exports.addAbortSignal=function addAbortSignal(i,a){validateAbortSignal(i,"signal");if(!c(a)&&!d(a)){throw new g("stream",["ReadableStream","WritableStream","Stream"],a)}return r.exports.addAbortSignalNoValidate(i,a)};r.exports.addAbortSignalNoValidate=function(r,i){if(typeof r!=="object"||!("aborted"in r)){return i}const p=c(i)?()=>{i.destroy(new l(undefined,{cause:r.reason}))}:()=>{i[u](new l(undefined,{cause:r.reason}))};if(r.aborted){p()}else{y=y||a(4004).addAbortListener;const l=y(r,p);h(i,l[s])}return i}},3039:(r,i,a)=>{"use strict";const{StringPrototypeSlice:s,SymbolIterator:l,TypedArrayPrototypeSet:p,Uint8Array:c}=a(9097);const{Buffer:d}=a(4300);const{inspect:u}=a(4004);r.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(r){const i={data:r,next:null};if(this.length>0)this.tail.next=i;else this.head=i;this.tail=i;++this.length}unshift(r){const i={data:r,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length}shift(){if(this.length===0)return;const r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r}clear(){this.head=this.tail=null;this.length=0}join(r){if(this.length===0)return"";let i=this.head;let a=""+i.data;while((i=i.next)!==null)a+=r+i.data;return a}concat(r){if(this.length===0)return d.alloc(0);const i=d.allocUnsafe(r>>>0);let a=this.head;let s=0;while(a){p(i,a.data,s);s+=a.data.length;a=a.next}return i}consume(r,i){const a=this.head.data;if(rp.length){i+=p;r-=p.length}else{if(r===p.length){i+=p;++l;if(a.next)this.head=a.next;else this.head=this.tail=null}else{i+=s(p,0,r);this.head=a;a.data=s(p,r)}break}++l}while((a=a.next)!==null);this.length-=l;return i}_getBuffer(r){const i=d.allocUnsafe(r);const a=r;let s=this.head;let l=0;do{const d=s.data;if(r>d.length){p(i,d,a-r);r-=d.length}else{if(r===d.length){p(i,d,a-r);++l;if(s.next)this.head=s.next;else this.head=this.tail=null}else{p(i,new c(d.buffer,d.byteOffset,r),a-r);this.head=s;s.data=d.slice(r)}break}++l}while((s=s.next)!==null);this.length-=l;return i}[Symbol.for("nodejs.util.inspect.custom")](r,i){return u(this,{...i,depth:0,customInspect:false})}}},30:(r,i,a)=>{"use strict";const{pipeline:s}=a(6438);const l=a(2999);const{destroyer:p}=a(6150);const{isNodeStream:c,isReadable:d,isWritable:u,isWebStream:h,isTransformStream:g,isWritableStream:y,isReadableStream:b}=a(3583);const{AbortError:v,codes:{ERR_INVALID_ARG_VALUE:w,ERR_MISSING_ARGS:x}}=a(2752);const S=a(1830);r.exports=function compose(...r){if(r.length===0){throw new x("streams")}if(r.length===1){return l.from(r[0])}const i=[...r];if(typeof r[0]==="function"){r[0]=l.from(r[0])}if(typeof r[r.length-1]==="function"){const i=r.length-1;r[i]=l.from(r[i])}for(let a=0;a0&&!(u(r[a])||y(r[a])||g(r[a]))){throw new w(`streams[${a}]`,i[a],"must be writable")}}let a;let _;let T;let N;let P;function onfinished(r){const i=N;N=null;if(i){i(r)}else if(r){P.destroy(r)}else if(!k&&!C){P.destroy()}}const O=r[0];const R=s(r,onfinished);const C=!!(u(O)||y(O)||g(O));const k=!!(d(R)||b(R)||g(R));P=new l({writableObjectMode:!!(O!==null&&O!==undefined&&O.writableObjectMode),readableObjectMode:!!(R!==null&&R!==undefined&&R.readableObjectMode),writable:C,readable:k});if(C){if(c(O)){P._write=function(r,i,s){if(O.write(r,i)){s()}else{a=s}};P._final=function(r){O.end();_=r};O.on("drain",(function(){if(a){const r=a;a=null;r()}}))}else if(h(O)){const r=g(O)?O.writable:O;const i=r.getWriter();P._write=async function(r,a,s){try{await i.ready;i.write(r).catch((()=>{}));s()}catch(r){s(r)}};P._final=async function(r){try{await i.ready;i.close().catch((()=>{}));_=r}catch(i){r(i)}}}const r=g(R)?R.readable:R;S(r,(()=>{if(_){const r=_;_=null;r()}}))}if(k){if(c(R)){R.on("readable",(function(){if(T){const r=T;T=null;r()}}));R.on("end",(function(){P.push(null)}));P._read=function(){while(true){const r=R.read();if(r===null){T=P._read;return}if(!P.push(r)){return}}}}else if(h(R)){const r=g(R)?R.readable:R;const i=r.getReader();P._read=async function(){while(true){try{const{value:r,done:a}=await i.read();if(!P.push(r)){return}if(a){P.push(null);return}}catch{return}}}}}P._destroy=function(r,i){if(!r&&N!==null){r=new v}T=null;a=null;_=null;if(N===null){i(r)}else{N=i;if(c(R)){p(R,r)}}};return P}},6150:(r,i,a)=>{"use strict";const s=a(1524);const{aggregateTwoErrors:l,codes:{ERR_MULTIPLE_CALLBACK:p},AbortError:c}=a(2752);const{Symbol:d}=a(9097);const{kIsDestroyed:u,isDestroyed:h,isFinished:g,isServerRequest:y}=a(3583);const b=d("kDestroy");const v=d("kConstruct");function checkError(r,i,a){if(r){r.stack;if(i&&!i.errored){i.errored=r}if(a&&!a.errored){a.errored=r}}}function destroy(r,i){const a=this._readableState;const s=this._writableState;const p=s||a;if(s!==null&&s!==undefined&&s.destroyed||a!==null&&a!==undefined&&a.destroyed){if(typeof i==="function"){i()}return this}checkError(r,s,a);if(s){s.destroyed=true}if(a){a.destroyed=true}if(!p.constructed){this.once(b,(function(a){_destroy(this,l(a,r),i)}))}else{_destroy(this,r,i)}return this}function _destroy(r,i,a){let l=false;function onDestroy(i){if(l){return}l=true;const p=r._readableState;const c=r._writableState;checkError(i,c,p);if(c){c.closed=true}if(p){p.closed=true}if(typeof a==="function"){a(i)}if(i){s.nextTick(emitErrorCloseNT,r,i)}else{s.nextTick(emitCloseNT,r)}}try{r._destroy(i||null,onDestroy)}catch(i){onDestroy(i)}}function emitErrorCloseNT(r,i){emitErrorNT(r,i);emitCloseNT(r)}function emitCloseNT(r){const i=r._readableState;const a=r._writableState;if(a){a.closeEmitted=true}if(i){i.closeEmitted=true}if(a!==null&&a!==undefined&&a.emitClose||i!==null&&i!==undefined&&i.emitClose){r.emit("close")}}function emitErrorNT(r,i){const a=r._readableState;const s=r._writableState;if(s!==null&&s!==undefined&&s.errorEmitted||a!==null&&a!==undefined&&a.errorEmitted){return}if(s){s.errorEmitted=true}if(a){a.errorEmitted=true}r.emit("error",i)}function undestroy(){const r=this._readableState;const i=this._writableState;if(r){r.constructed=true;r.closed=false;r.closeEmitted=false;r.destroyed=false;r.errored=null;r.errorEmitted=false;r.reading=false;r.ended=r.readable===false;r.endEmitted=r.readable===false}if(i){i.constructed=true;i.destroyed=false;i.closed=false;i.closeEmitted=false;i.errored=null;i.errorEmitted=false;i.finalCalled=false;i.prefinished=false;i.ended=i.writable===false;i.ending=i.writable===false;i.finished=i.writable===false}}function errorOrDestroy(r,i,a){const l=r._readableState;const p=r._writableState;if(p!==null&&p!==undefined&&p.destroyed||l!==null&&l!==undefined&&l.destroyed){return this}if(l!==null&&l!==undefined&&l.autoDestroy||p!==null&&p!==undefined&&p.autoDestroy)r.destroy(i);else if(i){i.stack;if(p&&!p.errored){p.errored=i}if(l&&!l.errored){l.errored=i}if(a){s.nextTick(emitErrorNT,r,i)}else{emitErrorNT(r,i)}}}function construct(r,i){if(typeof r._construct!=="function"){return}const a=r._readableState;const l=r._writableState;if(a){a.constructed=false}if(l){l.constructed=false}r.once(v,i);if(r.listenerCount(v)>1){return}s.nextTick(constructNT,r)}function constructNT(r){let i=false;function onConstruct(a){if(i){errorOrDestroy(r,a!==null&&a!==undefined?a:new p);return}i=true;const l=r._readableState;const c=r._writableState;const d=c||l;if(l){l.constructed=true}if(c){c.constructed=true}if(d.destroyed){r.emit(b,a)}else if(a){errorOrDestroy(r,a,true)}else{s.nextTick(emitConstructNT,r)}}try{r._construct((r=>{s.nextTick(onConstruct,r)}))}catch(r){s.nextTick(onConstruct,r)}}function emitConstructNT(r){r.emit(v)}function isRequest(r){return(r===null||r===undefined?undefined:r.setHeader)&&typeof r.abort==="function"}function emitCloseLegacy(r){r.emit("close")}function emitErrorCloseLegacy(r,i){r.emit("error",i);s.nextTick(emitCloseLegacy,r)}function destroyer(r,i){if(!r||h(r)){return}if(!i&&!g(r)){i=new c}if(y(r)){r.socket=null;r.destroy(i)}else if(isRequest(r)){r.abort()}else if(isRequest(r.req)){r.req.abort()}else if(typeof r.destroy==="function"){r.destroy(i)}else if(typeof r.close==="function"){r.close()}else if(i){s.nextTick(emitErrorCloseLegacy,r,i)}else{s.nextTick(emitCloseLegacy,r)}if(!r.destroyed){r[u]=true}}r.exports={construct:construct,destroyer:destroyer,destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},2999:(r,i,a)=>{"use strict";const{ObjectDefineProperties:s,ObjectGetOwnPropertyDescriptor:l,ObjectKeys:p,ObjectSetPrototypeOf:c}=a(9097);r.exports=Duplex;const d=a(9961);const u=a(2536);c(Duplex.prototype,d.prototype);c(Duplex,d);{const r=p(u.prototype);for(let i=0;i{const s=a(1524);"use strict";const l=a(4300);const{isReadable:p,isWritable:c,isIterable:d,isNodeStream:u,isReadableNodeStream:h,isWritableNodeStream:g,isDuplexNodeStream:y,isReadableStream:b,isWritableStream:v}=a(3583);const w=a(1830);const{AbortError:x,codes:{ERR_INVALID_ARG_TYPE:S,ERR_INVALID_RETURN_VALUE:_}}=a(2752);const{destroyer:T}=a(6150);const N=a(2999);const P=a(9961);const O=a(2536);const{createDeferredPromise:R}=a(4004);const C=a(202);const k=globalThis.Blob||l.Blob;const A=typeof k!=="undefined"?function isBlob(r){return r instanceof k}:function isBlob(r){return false};const D=globalThis.AbortController||a(7428).AbortController;const{FunctionPrototypeCall:I}=a(9097);class Duplexify extends N{constructor(r){super(r);if((r===null||r===undefined?undefined:r.readable)===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if((r===null||r===undefined?undefined:r.writable)===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}}r.exports=function duplexify(r,i){if(y(r)){return r}if(h(r)){return _duplexify({readable:r})}if(g(r)){return _duplexify({writable:r})}if(u(r)){return _duplexify({writable:false,readable:false})}if(b(r)){return _duplexify({readable:P.fromWeb(r)})}if(v(r)){return _duplexify({writable:O.fromWeb(r)})}if(typeof r==="function"){const{value:a,write:l,final:p,destroy:c}=fromAsyncGen(r);if(d(a)){return C(Duplexify,a,{objectMode:true,write:l,final:p,destroy:c})}const u=a===null||a===undefined?undefined:a.then;if(typeof u==="function"){let r;const i=I(u,a,(r=>{if(r!=null){throw new _("nully","body",r)}}),(i=>{T(r,i)}));return r=new Duplexify({objectMode:true,readable:false,write:l,final(r){p((async()=>{try{await i;s.nextTick(r,null)}catch(i){s.nextTick(r,i)}}))},destroy:c})}throw new _("Iterable, AsyncIterable or AsyncFunction",i,a)}if(A(r)){return duplexify(r.arrayBuffer())}if(d(r)){return C(Duplexify,r,{objectMode:true,writable:false})}if(b(r===null||r===undefined?undefined:r.readable)&&v(r===null||r===undefined?undefined:r.writable)){return Duplexify.fromWeb(r)}if(typeof(r===null||r===undefined?undefined:r.writable)==="object"||typeof(r===null||r===undefined?undefined:r.readable)==="object"){const i=r!==null&&r!==undefined&&r.readable?h(r===null||r===undefined?undefined:r.readable)?r===null||r===undefined?undefined:r.readable:duplexify(r.readable):undefined;const a=r!==null&&r!==undefined&&r.writable?g(r===null||r===undefined?undefined:r.writable)?r===null||r===undefined?undefined:r.writable:duplexify(r.writable):undefined;return _duplexify({readable:i,writable:a})}const a=r===null||r===undefined?undefined:r.then;if(typeof a==="function"){let i;I(a,r,(r=>{if(r!=null){i.push(r)}i.push(null)}),(r=>{T(i,r)}));return i=new Duplexify({objectMode:true,writable:false,read(){}})}throw new S(i,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],r)};function fromAsyncGen(r){let{promise:i,resolve:a}=R();const l=new D;const p=l.signal;const c=r(async function*(){while(true){const r=i;i=null;const{chunk:l,done:c,cb:d}=await r;s.nextTick(d);if(c)return;if(p.aborted)throw new x(undefined,{cause:p.reason});({promise:i,resolve:a}=R());yield l}}(),{signal:p});return{value:c,write(r,i,s){const l=a;a=null;l({chunk:r,done:false,cb:s})},final(r){const i=a;a=null;i({done:true,cb:r})},destroy(r,i){l.abort();i(r)}}}function _duplexify(r){const i=r.readable&&typeof r.readable.read!=="function"?P.wrap(r.readable):r.readable;const a=r.writable;let s=!!p(i);let l=!!c(a);let d;let u;let h;let g;let y;function onfinished(r){const i=g;g=null;if(i){i(r)}else if(r){y.destroy(r)}}y=new Duplexify({readableObjectMode:!!(i!==null&&i!==undefined&&i.readableObjectMode),writableObjectMode:!!(a!==null&&a!==undefined&&a.writableObjectMode),readable:s,writable:l});if(l){w(a,(r=>{l=false;if(r){T(i,r)}onfinished(r)}));y._write=function(r,i,s){if(a.write(r,i)){s()}else{d=s}};y._final=function(r){a.end();u=r};a.on("drain",(function(){if(d){const r=d;d=null;r()}}));a.on("finish",(function(){if(u){const r=u;u=null;r()}}))}if(s){w(i,(r=>{s=false;if(r){T(i,r)}onfinished(r)}));i.on("readable",(function(){if(h){const r=h;h=null;r()}}));i.on("end",(function(){y.push(null)}));y._read=function(){while(true){const r=i.read();if(r===null){h=y._read;return}if(!y.push(r)){return}}}}y._destroy=function(r,s){if(!r&&g!==null){r=new x}h=null;d=null;u=null;if(g===null){s(r)}else{g=s;T(a,r);T(i,r)}};return y}},1830:(r,i,a)=>{const s=a(1524);"use strict";const{AbortError:l,codes:p}=a(2752);const{ERR_INVALID_ARG_TYPE:c,ERR_STREAM_PREMATURE_CLOSE:d}=p;const{kEmptyObject:u,once:h}=a(4004);const{validateAbortSignal:g,validateFunction:y,validateObject:b,validateBoolean:v}=a(1640);const{Promise:w,PromisePrototypeThen:x,SymbolDispose:S}=a(9097);const{isClosed:_,isReadable:T,isReadableNodeStream:N,isReadableStream:P,isReadableFinished:O,isReadableErrored:R,isWritable:C,isWritableNodeStream:k,isWritableStream:A,isWritableFinished:D,isWritableErrored:I,isNodeStream:L,willEmitClose:B,kIsClosedPromise:M}=a(3583);let j;function isRequest(r){return r.setHeader&&typeof r.abort==="function"}const nop=()=>{};function eos(r,i,p){var v,w;if(arguments.length===2){p=i;i=u}else if(i==null){i=u}else{b(i,"options")}y(p,"callback");g(i.signal,"options.signal");p=h(p);if(P(r)||A(r)){return eosWeb(r,i,p)}if(!L(r)){throw new c("stream",["ReadableStream","WritableStream","Stream"],r)}const x=(v=i.readable)!==null&&v!==undefined?v:N(r);const M=(w=i.writable)!==null&&w!==undefined?w:k(r);const z=r._writableState;const U=r._readableState;const onlegacyfinish=()=>{if(!r.writable){onfinish()}};let q=B(r)&&N(r)===x&&k(r)===M;let H=D(r,false);const onfinish=()=>{H=true;if(r.destroyed){q=false}if(q&&(!r.readable||x)){return}if(!x||V){p.call(r)}};let V=O(r,false);const onend=()=>{V=true;if(r.destroyed){q=false}if(q&&(!r.writable||M)){return}if(!M||H){p.call(r)}};const onerror=i=>{p.call(r,i)};let G=_(r);const onclose=()=>{G=true;const i=I(r)||R(r);if(i&&typeof i!=="boolean"){return p.call(r,i)}if(x&&!V&&N(r,true)){if(!O(r,false))return p.call(r,new d)}if(M&&!H){if(!D(r,false))return p.call(r,new d)}p.call(r)};const onclosed=()=>{G=true;const i=I(r)||R(r);if(i&&typeof i!=="boolean"){return p.call(r,i)}p.call(r)};const onrequest=()=>{r.req.on("finish",onfinish)};if(isRequest(r)){r.on("complete",onfinish);if(!q){r.on("abort",onclose)}if(r.req){onrequest()}else{r.on("request",onrequest)}}else if(M&&!z){r.on("end",onlegacyfinish);r.on("close",onlegacyfinish)}if(!q&&typeof r.aborted==="boolean"){r.on("aborted",onclose)}r.on("end",onend);r.on("finish",onfinish);if(i.error!==false){r.on("error",onerror)}r.on("close",onclose);if(G){s.nextTick(onclose)}else if(z!==null&&z!==undefined&&z.errorEmitted||U!==null&&U!==undefined&&U.errorEmitted){if(!q){s.nextTick(onclosed)}}else if(!x&&(!q||T(r))&&(H||C(r)===false)){s.nextTick(onclosed)}else if(!M&&(!q||C(r))&&(V||T(r)===false)){s.nextTick(onclosed)}else if(U&&r.req&&r.aborted){s.nextTick(onclosed)}const cleanup=()=>{p=nop;r.removeListener("aborted",onclose);r.removeListener("complete",onfinish);r.removeListener("abort",onclose);r.removeListener("request",onrequest);if(r.req)r.req.removeListener("finish",onfinish);r.removeListener("end",onlegacyfinish);r.removeListener("close",onlegacyfinish);r.removeListener("finish",onfinish);r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("close",onclose)};if(i.signal&&!G){const abort=()=>{const a=p;cleanup();a.call(r,new l(undefined,{cause:i.signal.reason}))};if(i.signal.aborted){s.nextTick(abort)}else{j=j||a(4004).addAbortListener;const s=j(i.signal,abort);const l=p;p=h(((...i)=>{s[S]();l.apply(r,i)}))}}return cleanup}function eosWeb(r,i,p){let c=false;let d=nop;if(i.signal){d=()=>{c=true;p.call(r,new l(undefined,{cause:i.signal.reason}))};if(i.signal.aborted){s.nextTick(d)}else{j=j||a(4004).addAbortListener;const s=j(i.signal,d);const l=p;p=h(((...i)=>{s[S]();l.apply(r,i)}))}}const resolverFn=(...i)=>{if(!c){s.nextTick((()=>p.apply(r,i)))}};x(r[M].promise,resolverFn,resolverFn);return nop}function finished(r,i){var a;let s=false;if(i===null){i=u}if((a=i)!==null&&a!==undefined&&a.cleanup){v(i.cleanup,"cleanup");s=i.cleanup}return new w(((a,l)=>{const p=eos(r,i,(r=>{if(s){p()}if(r){l(r)}else{a()}}))}))}r.exports=eos;r.exports.finished=finished},202:(r,i,a)=>{"use strict";const s=a(1524);const{PromisePrototypeThen:l,SymbolAsyncIterator:p,SymbolIterator:c}=a(9097);const{Buffer:d}=a(4300);const{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:h}=a(2752).codes;function from(r,i,a){let g;if(typeof i==="string"||i instanceof d){return new r({objectMode:true,...a,read(){this.push(i);this.push(null)}})}let y;if(i&&i[p]){y=true;g=i[p]()}else if(i&&i[c]){y=false;g=i[c]()}else{throw new u("iterable",["Iterable"],i)}const b=new r({objectMode:true,highWaterMark:1,...a});let v=false;b._read=function(){if(!v){v=true;next()}};b._destroy=function(r,i){l(close(r),(()=>s.nextTick(i,r)),(a=>s.nextTick(i,a||r)))};async function close(r){const i=r!==undefined&&r!==null;const a=typeof g.throw==="function";if(i&&a){const{value:i,done:a}=await g.throw(r);await i;if(a){return}}if(typeof g.return==="function"){const{value:r}=await g.return();await r}}async function next(){for(;;){try{const{value:r,done:i}=y?await g.next():g.next();if(i){b.push(null)}else{const i=r&&typeof r.then==="function"?await r:r;if(i===null){v=false;throw new h}else if(b.push(i)){continue}else{v=false}}}catch(r){b.destroy(r)}break}}return b}r.exports=from},3221:(r,i,a)=>{"use strict";const{ArrayIsArray:s,ObjectSetPrototypeOf:l}=a(9097);const{EventEmitter:p}=a(2361);function Stream(r){p.call(this,r)}l(Stream.prototype,p.prototype);l(Stream,p);Stream.prototype.pipe=function(r,i){const a=this;function ondata(i){if(r.writable&&r.write(i)===false&&a.pause){a.pause()}}a.on("data",ondata);function ondrain(){if(a.readable&&a.resume){a.resume()}}r.on("drain",ondrain);if(!r._isStdio&&(!i||i.end!==false)){a.on("end",onend);a.on("close",onclose)}let s=false;function onend(){if(s)return;s=true;r.end()}function onclose(){if(s)return;s=true;if(typeof r.destroy==="function")r.destroy()}function onerror(r){cleanup();if(p.listenerCount(this,"error")===0){this.emit("error",r)}}prependListener(a,"error",onerror);prependListener(r,"error",onerror);function cleanup(){a.removeListener("data",ondata);r.removeListener("drain",ondrain);a.removeListener("end",onend);a.removeListener("close",onclose);a.removeListener("error",onerror);r.removeListener("error",onerror);a.removeListener("end",cleanup);a.removeListener("close",cleanup);r.removeListener("close",cleanup)}a.on("end",cleanup);a.on("close",cleanup);r.on("close",cleanup);r.emit("pipe",a);return r};function prependListener(r,i,a){if(typeof r.prependListener==="function")return r.prependListener(i,a);if(!r._events||!r._events[i])r.on(i,a);else if(s(r._events[i]))r._events[i].unshift(a);else r._events[i]=[a,r._events[i]]}r.exports={Stream:Stream,prependListener:prependListener}},7503:(r,i,a)=>{"use strict";const s=globalThis.AbortController||a(7428).AbortController;const{codes:{ERR_INVALID_ARG_VALUE:l,ERR_INVALID_ARG_TYPE:p,ERR_MISSING_ARGS:c,ERR_OUT_OF_RANGE:d},AbortError:u}=a(2752);const{validateAbortSignal:h,validateInteger:g,validateObject:y}=a(1640);const b=a(9097).Symbol("kWeak");const v=a(9097).Symbol("kResistStopPropagation");const{finished:w}=a(1830);const x=a(30);const{addAbortSignalNoValidate:S}=a(5154);const{isWritable:_,isNodeStream:T}=a(3583);const{deprecate:N}=a(4004);const{ArrayPrototypePush:P,Boolean:O,MathFloor:R,Number:C,NumberIsNaN:k,Promise:A,PromiseReject:D,PromiseResolve:I,PromisePrototypeThen:L,Symbol:B}=a(9097);const M=B("kEmpty");const j=B("kEof");function compose(r,i){if(i!=null){y(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){h(i.signal,"options.signal")}if(T(r)&&!_(r)){throw new l("stream",r,"must be writable")}const a=x(this,r);if(i!==null&&i!==undefined&&i.signal){S(i.signal,a)}return a}function map(r,i){if(typeof r!=="function"){throw new p("fn",["Function","AsyncFunction"],r)}if(i!=null){y(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){h(i.signal,"options.signal")}let s=1;if((i===null||i===undefined?undefined:i.concurrency)!=null){s=R(i.concurrency)}let l=s-1;if((i===null||i===undefined?undefined:i.highWaterMark)!=null){l=R(i.highWaterMark)}g(s,"options.concurrency",1);g(l,"options.highWaterMark",0);l+=s;return async function*map(){const p=a(4004).AbortSignalAny([i===null||i===undefined?undefined:i.signal].filter(O));const c=this;const d=[];const h={signal:p};let g;let y;let b=false;let v=0;function onCatch(){b=true;afterItemProcessed()}function afterItemProcessed(){v-=1;maybeResume()}function maybeResume(){if(y&&!b&&v=l||v>=s)){await new A((r=>{y=r}))}}d.push(j)}catch(r){const i=D(r);L(i,afterItemProcessed,onCatch);d.push(i)}finally{b=true;if(g){g();g=null}}}pump();try{while(true){while(d.length>0){const r=await d[0];if(r===j){return}if(p.aborted){throw new u}if(r!==M){yield r}d.shift();maybeResume()}await new A((r=>{g=r}))}}finally{b=true;if(y){y();y=null}}}.call(this)}function asIndexedPairs(r=undefined){if(r!=null){y(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){h(r.signal,"options.signal")}return async function*asIndexedPairs(){let i=0;for await(const s of this){var a;if(r!==null&&r!==undefined&&(a=r.signal)!==null&&a!==undefined&&a.aborted){throw new u({cause:r.signal.reason})}yield[i++,s]}}.call(this)}async function some(r,i=undefined){for await(const a of filter.call(this,r,i)){return true}return false}async function every(r,i=undefined){if(typeof r!=="function"){throw new p("fn",["Function","AsyncFunction"],r)}return!await some.call(this,(async(...i)=>!await r(...i)),i)}async function find(r,i){for await(const a of filter.call(this,r,i)){return a}return undefined}async function forEach(r,i){if(typeof r!=="function"){throw new p("fn",["Function","AsyncFunction"],r)}async function forEachFn(i,a){await r(i,a);return M}for await(const r of map.call(this,forEachFn,i));}function filter(r,i){if(typeof r!=="function"){throw new p("fn",["Function","AsyncFunction"],r)}async function filterFn(i,a){if(await r(i,a)){return i}return M}return map.call(this,filterFn,i)}class ReduceAwareErrMissingArgs extends c{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function reduce(r,i,a){var l;if(typeof r!=="function"){throw new p("reducer",["Function","AsyncFunction"],r)}if(a!=null){y(a,"options")}if((a===null||a===undefined?undefined:a.signal)!=null){h(a.signal,"options.signal")}let c=arguments.length>1;if(a!==null&&a!==undefined&&(l=a.signal)!==null&&l!==undefined&&l.aborted){const r=new u(undefined,{cause:a.signal.reason});this.once("error",(()=>{}));await w(this.destroy(r));throw r}const d=new s;const g=d.signal;if(a!==null&&a!==undefined&&a.signal){const r={once:true,[b]:this,[v]:true};a.signal.addEventListener("abort",(()=>d.abort()),r)}let x=false;try{for await(const s of this){var S;x=true;if(a!==null&&a!==undefined&&(S=a.signal)!==null&&S!==undefined&&S.aborted){throw new u}if(!c){i=s;c=true}else{i=await r(i,s,{signal:g})}}if(!x&&!c){throw new ReduceAwareErrMissingArgs}}finally{d.abort()}return i}async function toArray(r){if(r!=null){y(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){h(r.signal,"options.signal")}const i=[];for await(const s of this){var a;if(r!==null&&r!==undefined&&(a=r.signal)!==null&&a!==undefined&&a.aborted){throw new u(undefined,{cause:r.signal.reason})}P(i,s)}return i}function flatMap(r,i){const a=map.call(this,r,i);return async function*flatMap(){for await(const r of a){yield*r}}.call(this)}function toIntegerOrInfinity(r){r=C(r);if(k(r)){return 0}if(r<0){throw new d("number",">= 0",r)}return r}function drop(r,i=undefined){if(i!=null){y(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){h(i.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*drop(){var a;if(i!==null&&i!==undefined&&(a=i.signal)!==null&&a!==undefined&&a.aborted){throw new u}for await(const a of this){var s;if(i!==null&&i!==undefined&&(s=i.signal)!==null&&s!==undefined&&s.aborted){throw new u}if(r--<=0){yield a}}}.call(this)}function take(r,i=undefined){if(i!=null){y(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){h(i.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*take(){var a;if(i!==null&&i!==undefined&&(a=i.signal)!==null&&a!==undefined&&a.aborted){throw new u}for await(const a of this){var s;if(i!==null&&i!==undefined&&(s=i.signal)!==null&&s!==undefined&&s.aborted){throw new u}if(r-- >0){yield a}if(r<=0){return}}}.call(this)}r.exports.streamReturningOperators={asIndexedPairs:N(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop:drop,filter:filter,flatMap:flatMap,map:map,take:take,compose:compose};r.exports.promiseReturningOperators={every:every,forEach:forEach,reduce:reduce,toArray:toArray,some:some,find:find}},4227:(r,i,a)=>{"use strict";const{ObjectSetPrototypeOf:s}=a(9097);r.exports=PassThrough;const l=a(737);s(PassThrough.prototype,l.prototype);s(PassThrough,l);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);l.call(this,r)}PassThrough.prototype._transform=function(r,i,a){a(null,r)}},6438:(r,i,a)=>{const s=a(1524);"use strict";const{ArrayIsArray:l,Promise:p,SymbolAsyncIterator:c,SymbolDispose:d}=a(9097);const u=a(1830);const{once:h}=a(4004);const g=a(6150);const y=a(2999);const{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:v,ERR_INVALID_RETURN_VALUE:w,ERR_MISSING_ARGS:x,ERR_STREAM_DESTROYED:S,ERR_STREAM_PREMATURE_CLOSE:_},AbortError:T}=a(2752);const{validateFunction:N,validateAbortSignal:P}=a(1640);const{isIterable:O,isReadable:R,isReadableNodeStream:C,isNodeStream:k,isTransformStream:A,isWebStream:D,isReadableStream:I,isReadableFinished:L}=a(3583);const B=globalThis.AbortController||a(7428).AbortController;let M;let j;let z;function destroyer(r,i,a){let s=false;r.on("close",(()=>{s=true}));const l=u(r,{readable:i,writable:a},(r=>{s=!r}));return{destroy:i=>{if(s)return;s=true;g.destroyer(r,i||new S("pipe"))},cleanup:l}}function popCallback(r){N(r[r.length-1],"streams[stream.length - 1]");return r.pop()}function makeAsyncIterable(r){if(O(r)){return r}else if(C(r)){return fromReadable(r)}throw new v("val",["Readable","Iterable","AsyncIterable"],r)}async function*fromReadable(r){if(!j){j=a(9961)}yield*j.prototype[c].call(r)}async function pumpToNode(r,i,a,{end:s}){let l;let c=null;const resume=r=>{if(r){l=r}if(c){const r=c;c=null;r()}};const wait=()=>new p(((r,i)=>{if(l){i(l)}else{c=()=>{if(l){i(l)}else{r()}}}}));i.on("drain",resume);const d=u(i,{readable:false},resume);try{if(i.writableNeedDrain){await wait()}for await(const a of r){if(!i.write(a)){await wait()}}if(s){i.end();await wait()}a()}catch(r){a(l!==r?b(l,r):r)}finally{d();i.off("drain",resume)}}async function pumpToWeb(r,i,a,{end:s}){if(A(i)){i=i.writable}const l=i.getWriter();try{for await(const i of r){await l.ready;l.write(i).catch((()=>{}))}await l.ready;if(s){await l.close()}a()}catch(r){try{await l.abort(r);a(r)}catch(r){a(r)}}}function pipeline(...r){return pipelineImpl(r,h(popCallback(r)))}function pipelineImpl(r,i,p){if(r.length===1&&l(r[0])){r=r[0]}if(r.length<2){throw new x("streams")}const c=new B;const u=c.signal;const h=p===null||p===undefined?undefined:p.signal;const g=[];P(h,"options.signal");function abort(){finishImpl(new T)}z=z||a(4004).addAbortListener;let b;if(h){b=z(h,abort)}let S;let _;const N=[];let L=0;function finish(r){finishImpl(r,--L===0)}function finishImpl(r,a){var l;if(r&&(!S||S.code==="ERR_STREAM_PREMATURE_CLOSE")){S=r}if(!S&&!a){return}while(N.length){N.shift()(S)}(l=b)===null||l===undefined?undefined:l[d]();c.abort();if(a){if(!S){g.forEach((r=>r()))}s.nextTick(i,S,_)}}let j;for(let H=0;H0;const $=G||(p===null||p===undefined?undefined:p.end)!==false;const X=H===r.length-1;if(k(V)){if($){const{destroy:K,cleanup:J}=destroyer(V,G,W);N.push(K);if(R(V)&&X){g.push(J)}}function onError(r){if(r&&r.name!=="AbortError"&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"){finish(r)}}V.on("error",onError);if(R(V)&&X){g.push((()=>{V.removeListener("error",onError)}))}}if(H===0){if(typeof V==="function"){j=V({signal:u});if(!O(j)){throw new w("Iterable, AsyncIterable or Stream","source",j)}}else if(O(V)||C(V)||A(V)){j=V}else{j=y.from(V)}}else if(typeof V==="function"){if(A(j)){var U;j=makeAsyncIterable((U=j)===null||U===undefined?undefined:U.readable)}else{j=makeAsyncIterable(j)}j=V(j,{signal:u});if(G){if(!O(j,true)){throw new w("AsyncIterable",`transform[${H-1}]`,j)}}else{var q;if(!M){M=a(4227)}const Q=new M({objectMode:true});const Y=(q=j)===null||q===undefined?undefined:q.then;if(typeof Y==="function"){L++;Y.call(j,(r=>{_=r;if(r!=null){Q.write(r)}if($){Q.end()}s.nextTick(finish)}),(r=>{Q.destroy(r);s.nextTick(finish,r)}))}else if(O(j,true)){L++;pumpToNode(j,Q,finish,{end:$})}else if(I(j)||A(j)){const te=j.readable||j;L++;pumpToNode(te,Q,finish,{end:$})}else{throw new w("AsyncIterable or Promise","destination",j)}j=Q;const{destroy:Z,cleanup:ee}=destroyer(j,false,true);N.push(Z);if(X){g.push(ee)}}}else if(k(V)){if(C(j)){L+=2;const re=pipe(j,V,finish,{end:$});if(R(V)&&X){g.push(re)}}else if(A(j)||I(j)){const ie=j.readable||j;L++;pumpToNode(ie,V,finish,{end:$})}else if(O(j)){L++;pumpToNode(j,V,finish,{end:$})}else{throw new v("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],j)}j=V}else if(D(V)){if(C(j)){L++;pumpToWeb(makeAsyncIterable(j),V,finish,{end:$})}else if(I(j)||O(j)){L++;pumpToWeb(j,V,finish,{end:$})}else if(A(j)){L++;pumpToWeb(j.readable,V,finish,{end:$})}else{throw new v("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],j)}j=V}else{j=y.from(V)}}if(u!==null&&u!==undefined&&u.aborted||h!==null&&h!==undefined&&h.aborted){s.nextTick(abort)}return j}function pipe(r,i,a,{end:l}){let p=false;i.on("close",(()=>{if(!p){a(new _)}}));r.pipe(i,{end:false});if(l){function endFn(){p=true;i.end()}if(L(r)){s.nextTick(endFn)}else{r.once("end",endFn)}}else{a()}u(r,{readable:true,writable:false},(i=>{const s=r._readableState;if(i&&i.code==="ERR_STREAM_PREMATURE_CLOSE"&&s&&s.ended&&!s.errored&&!s.errorEmitted){r.once("end",a).once("error",a)}else{a(i)}}));return u(i,{readable:false,writable:true},a)}r.exports={pipelineImpl:pipelineImpl,pipeline:pipeline}},9961:(r,i,a)=>{const s=a(1524);"use strict";const{ArrayPrototypeIndexOf:l,NumberIsInteger:p,NumberIsNaN:c,NumberParseInt:d,ObjectDefineProperties:u,ObjectKeys:h,ObjectSetPrototypeOf:g,Promise:y,SafeSet:b,SymbolAsyncDispose:v,SymbolAsyncIterator:w,Symbol:x}=a(9097);r.exports=Readable;Readable.ReadableState=ReadableState;const{EventEmitter:S}=a(2361);const{Stream:_,prependListener:T}=a(3221);const{Buffer:N}=a(4300);const{addAbortSignal:P}=a(5154);const O=a(1830);let R=a(4004).debuglog("stream",(r=>{R=r}));const C=a(3039);const k=a(6150);const{getHighWaterMark:A,getDefaultHighWaterMark:D}=a(2864);const{aggregateTwoErrors:I,codes:{ERR_INVALID_ARG_TYPE:L,ERR_METHOD_NOT_IMPLEMENTED:B,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:j,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:z},AbortError:U}=a(2752);const{validateObject:q}=a(1640);const H=x("kPaused");const{StringDecoder:V}=a(1576);const G=a(202);g(Readable.prototype,_.prototype);g(Readable,_);const nop=()=>{};const{errorOrDestroy:W}=k;const $=1<<0;const X=1<<1;const K=1<<2;const J=1<<3;const Q=1<<4;const Y=1<<5;const Z=1<<6;const ee=1<<7;const te=1<<8;const re=1<<9;const ie=1<<10;const ne=1<<11;const ae=1<<12;const se=1<<13;const oe=1<<14;const le=1<<15;const pe=1<<16;const ce=1<<17;const de=1<<18;function makeBitMapDescriptor(r){return{enumerable:false,get(){return(this.state&r)!==0},set(i){if(i)this.state|=r;else this.state&=~r}}}u(ReadableState.prototype,{objectMode:makeBitMapDescriptor($),ended:makeBitMapDescriptor(X),endEmitted:makeBitMapDescriptor(K),reading:makeBitMapDescriptor(J),constructed:makeBitMapDescriptor(Q),sync:makeBitMapDescriptor(Y),needReadable:makeBitMapDescriptor(Z),emittedReadable:makeBitMapDescriptor(ee),readableListening:makeBitMapDescriptor(te),resumeScheduled:makeBitMapDescriptor(re),errorEmitted:makeBitMapDescriptor(ie),emitClose:makeBitMapDescriptor(ne),autoDestroy:makeBitMapDescriptor(ae),destroyed:makeBitMapDescriptor(se),closed:makeBitMapDescriptor(oe),closeEmitted:makeBitMapDescriptor(le),multiAwaitDrain:makeBitMapDescriptor(pe),readingMore:makeBitMapDescriptor(ce),dataEmitted:makeBitMapDescriptor(de)});function ReadableState(r,i,s){if(typeof s!=="boolean")s=i instanceof a(2999);this.state=ne|ae|Q|Y;if(r&&r.objectMode)this.state|=$;if(s&&r&&r.readableObjectMode)this.state|=$;this.highWaterMark=r?A(this,r,"readableHighWaterMark",s):D(false);this.buffer=new C;this.length=0;this.pipes=[];this.flowing=null;this[H]=null;if(r&&r.emitClose===false)this.state&=~ne;if(r&&r.autoDestroy===false)this.state&=~ae;this.errored=null;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.awaitDrainWriters=null;this.decoder=null;this.encoding=null;if(r&&r.encoding){this.decoder=new V(r.encoding);this.encoding=r.encoding}}function Readable(r){if(!(this instanceof Readable))return new Readable(r);const i=this instanceof a(2999);this._readableState=new ReadableState(r,this,i);if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal&&!i)P(r.signal,this)}_.call(this,r);k.construct(this,(()=>{if(this._readableState.needReadable){maybeReadMore(this,this._readableState)}}))}Readable.prototype.destroy=k.destroy;Readable.prototype._undestroy=k.undestroy;Readable.prototype._destroy=function(r,i){i(r)};Readable.prototype[S.captureRejectionSymbol]=function(r){this.destroy(r)};Readable.prototype[v]=function(){let r;if(!this.destroyed){r=this.readableEnded?null:new U;this.destroy(r)}return new y(((i,a)=>O(this,(s=>s&&s!==r?a(s):i(null)))))};Readable.prototype.push=function(r,i){return readableAddChunk(this,r,i,false)};Readable.prototype.unshift=function(r,i){return readableAddChunk(this,r,i,true)};function readableAddChunk(r,i,a,s){R("readableAddChunk",i);const l=r._readableState;let p;if((l.state&$)===0){if(typeof i==="string"){a=a||l.defaultEncoding;if(l.encoding!==a){if(s&&l.encoding){i=N.from(i,a).toString(l.encoding)}else{i=N.from(i,a);a=""}}}else if(i instanceof N){a=""}else if(_._isUint8Array(i)){i=_._uint8ArrayToBuffer(i);a=""}else if(i!=null){p=new L("chunk",["string","Buffer","Uint8Array"],i)}}if(p){W(r,p)}else if(i===null){l.state&=~J;onEofChunk(r,l)}else if((l.state&$)!==0||i&&i.length>0){if(s){if((l.state&K)!==0)W(r,new z);else if(l.destroyed||l.errored)return false;else addChunk(r,l,i,true)}else if(l.ended){W(r,new j)}else if(l.destroyed||l.errored){return false}else{l.state&=~J;if(l.decoder&&!a){i=l.decoder.write(i);if(l.objectMode||i.length!==0)addChunk(r,l,i,false);else maybeReadMore(r,l)}else{addChunk(r,l,i,false)}}}else if(!s){l.state&=~J;maybeReadMore(r,l)}return!l.ended&&(l.length0){if((i.state&pe)!==0){i.awaitDrainWriters.clear()}else{i.awaitDrainWriters=null}i.dataEmitted=true;r.emit("data",a)}else{i.length+=i.objectMode?1:a.length;if(s)i.buffer.unshift(a);else i.buffer.push(a);if((i.state&Z)!==0)emitReadable(r)}maybeReadMore(r,i)}Readable.prototype.isPaused=function(){const r=this._readableState;return r[H]===true||r.flowing===false};Readable.prototype.setEncoding=function(r){const i=new V(r);this._readableState.decoder=i;this._readableState.encoding=this._readableState.decoder.encoding;const a=this._readableState.buffer;let s="";for(const r of a){s+=i.write(r)}a.clear();if(s!=="")a.push(s);this._readableState.length=s.length;return this};const ue=1073741824;function computeNewHighWaterMark(r){if(r>ue){throw new M("size","<= 1GiB",r)}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.state&$)!==0)return 1;if(c(r)){if(i.flowing&&i.length)return i.buffer.first().length;return i.length}if(r<=i.length)return r;return i.ended?i.length:0}Readable.prototype.read=function(r){R("read",r);if(r===undefined){r=NaN}else if(!p(r)){r=d(r,10)}const i=this._readableState;const a=r;if(r>i.highWaterMark)i.highWaterMark=computeNewHighWaterMark(r);if(r!==0)i.state&=~ee;if(r===0&&i.needReadable&&((i.highWaterMark!==0?i.length>=i.highWaterMark:i.length>0)||i.ended)){R("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}let s=(i.state&Z)!==0;R("need readable",s);if(i.length===0||i.length-r0)l=fromList(r,i);else l=null;if(l===null){i.needReadable=i.length<=i.highWaterMark;r=0}else{i.length-=r;if(i.multiAwaitDrain){i.awaitDrainWriters.clear()}else{i.awaitDrainWriters=null}}if(i.length===0){if(!i.ended)i.needReadable=true;if(a!==r&&i.ended)endReadable(this)}if(l!==null&&!i.errorEmitted&&!i.closeEmitted){i.dataEmitted=true;this.emit("data",l)}return l};function onEofChunk(r,i){R("onEofChunk");if(i.ended)return;if(i.decoder){const r=i.decoder.end();if(r&&r.length){i.buffer.push(r);i.length+=i.objectMode?1:r.length}}i.ended=true;if(i.sync){emitReadable(r)}else{i.needReadable=false;i.emittedReadable=true;emitReadable_(r)}}function emitReadable(r){const i=r._readableState;R("emitReadable",i.needReadable,i.emittedReadable);i.needReadable=false;if(!i.emittedReadable){R("emitReadable",i.flowing);i.emittedReadable=true;s.nextTick(emitReadable_,r)}}function emitReadable_(r){const i=r._readableState;R("emitReadable_",i.destroyed,i.length,i.ended);if(!i.destroyed&&!i.errored&&(i.length||i.ended)){r.emit("readable");i.emittedReadable=false}i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark;flow(r)}function maybeReadMore(r,i){if(!i.readingMore&&i.constructed){i.readingMore=true;s.nextTick(maybeReadMore_,r,i)}}function maybeReadMore_(r,i){while(!i.reading&&!i.ended&&(i.length1&&l.pipes.includes(r)){R("false write response, pause",l.awaitDrainWriters.size);l.awaitDrainWriters.add(r)}a.pause()}if(!d){d=pipeOnDrain(a,r);r.on("drain",d)}}a.on("data",ondata);function ondata(i){R("ondata");const a=r.write(i);R("dest.write",a);if(a===false){pause()}}function onerror(i){R("onerror",i);unpipe();r.removeListener("error",onerror);if(r.listenerCount("error")===0){const a=r._writableState||r._readableState;if(a&&!a.errorEmitted){W(r,i)}else{r.emit("error",i)}}}T(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){R("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){R("unpipe");a.unpipe(r)}r.emit("pipe",a);if(r.writableNeedDrain===true){pause()}else if(!l.flowing){R("pipe resume");a.resume()}return r};function pipeOnDrain(r,i){return function pipeOnDrainFunctionResult(){const a=r._readableState;if(a.awaitDrainWriters===i){R("pipeOnDrain",1);a.awaitDrainWriters=null}else if(a.multiAwaitDrain){R("pipeOnDrain",a.awaitDrainWriters.size);a.awaitDrainWriters.delete(i)}if((!a.awaitDrainWriters||a.awaitDrainWriters.size===0)&&r.listenerCount("data")){r.resume()}}}Readable.prototype.unpipe=function(r){const i=this._readableState;const a={hasUnpiped:false};if(i.pipes.length===0)return this;if(!r){const r=i.pipes;i.pipes=[];this.pause();for(let i=0;i0;if(l.flowing!==false)this.resume()}else if(r==="readable"){if(!l.endEmitted&&!l.readableListening){l.readableListening=l.needReadable=true;l.flowing=false;l.emittedReadable=false;R("on readable",l.length,l.reading);if(l.length){emitReadable(this)}else if(!l.reading){s.nextTick(nReadingNextTick,this)}}}return a};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(r,i){const a=_.prototype.removeListener.call(this,r,i);if(r==="readable"){s.nextTick(updateReadableListening,this)}return a};Readable.prototype.off=Readable.prototype.removeListener;Readable.prototype.removeAllListeners=function(r){const i=_.prototype.removeAllListeners.apply(this,arguments);if(r==="readable"||r===undefined){s.nextTick(updateReadableListening,this)}return i};function updateReadableListening(r){const i=r._readableState;i.readableListening=r.listenerCount("readable")>0;if(i.resumeScheduled&&i[H]===false){i.flowing=true}else if(r.listenerCount("data")>0){r.resume()}else if(!i.readableListening){i.flowing=null}}function nReadingNextTick(r){R("readable nexttick read 0");r.read(0)}Readable.prototype.resume=function(){const r=this._readableState;if(!r.flowing){R("resume");r.flowing=!r.readableListening;resume(this,r)}r[H]=false;return this};function resume(r,i){if(!i.resumeScheduled){i.resumeScheduled=true;s.nextTick(resume_,r,i)}}function resume_(r,i){R("resume",i.reading);if(!i.reading){r.read(0)}i.resumeScheduled=false;r.emit("resume");flow(r);if(i.flowing&&!i.reading)r.read(0)}Readable.prototype.pause=function(){R("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){R("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState[H]=true;return this};function flow(r){const i=r._readableState;R("flow",i.flowing);while(i.flowing&&r.read()!==null);}Readable.prototype.wrap=function(r){let i=false;r.on("data",(a=>{if(!this.push(a)&&r.pause){i=true;r.pause()}}));r.on("end",(()=>{this.push(null)}));r.on("error",(r=>{W(this,r)}));r.on("close",(()=>{this.destroy()}));r.on("destroy",(()=>{this.destroy()}));this._read=()=>{if(i&&r.resume){i=false;r.resume()}};const a=h(r);for(let i=1;i{s=r?I(s,r):null;a();a=nop}));try{while(true){const i=r.destroyed?null:r.read();if(i!==null){yield i}else if(s){throw s}else if(s===null){return}else{await new y(next)}}}catch(r){s=I(s,r);throw s}finally{if((s||(i===null||i===undefined?undefined:i.destroyOnReturn)!==false)&&(s===undefined||r._readableState.autoDestroy)){k.destroyer(r,null)}else{r.off("readable",next);l()}}}u(Readable.prototype,{readable:{__proto__:null,get(){const r=this._readableState;return!!r&&r.readable!==false&&!r.destroyed&&!r.errorEmitted&&!r.endEmitted},set(r){if(this._readableState){this._readableState.readable=!!r}}},readableDidRead:{__proto__:null,enumerable:false,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._readableState.readable!==false&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:false,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:false,get:function(){return this._readableState.flowing},set:function(r){if(this._readableState){this._readableState.flowing=r}}},readableLength:{__proto__:null,enumerable:false,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.objectMode:false}},readableEncoding:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:false}},destroyed:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.destroyed:false},set(r){if(!this._readableState){return}this._readableState.destroyed=r}},readableEnded:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.endEmitted:false}}});u(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[H]!==false},set(r){this[H]=!!r}}});Readable._fromList=fromList;function fromList(r,i){if(i.length===0)return null;let a;if(i.objectMode)a=i.buffer.shift();else if(!r||r>=i.length){if(i.decoder)a=i.buffer.join("");else if(i.buffer.length===1)a=i.buffer.first();else a=i.buffer.concat(i.length);i.buffer.clear()}else{a=i.buffer.consume(r,i.decoder)}return a}function endReadable(r){const i=r._readableState;R("endReadable",i.endEmitted);if(!i.endEmitted){i.ended=true;s.nextTick(endReadableNT,i,r)}}function endReadableNT(r,i){R("endReadableNT",r.endEmitted,r.length);if(!r.errored&&!r.closeEmitted&&!r.endEmitted&&r.length===0){r.endEmitted=true;i.emit("end");if(i.writable&&i.allowHalfOpen===false){s.nextTick(endWritableNT,i)}else if(r.autoDestroy){const r=i._writableState;const a=!r||r.autoDestroy&&(r.finished||r.writable===false);if(a){i.destroy()}}}}function endWritableNT(r){const i=r.writable&&!r.writableEnded&&!r.destroyed;if(i){r.end()}}Readable.from=function(r,i){return G(Readable,r,i)};let me;function lazyWebStreams(){if(me===undefined)me={};return me}Readable.fromWeb=function(r,i){return lazyWebStreams().newStreamReadableFromReadableStream(r,i)};Readable.toWeb=function(r,i){return lazyWebStreams().newReadableStreamFromStreamReadable(r,i)};Readable.wrap=function(r,i){var a,s;return new Readable({objectMode:(a=(s=r.readableObjectMode)!==null&&s!==undefined?s:r.objectMode)!==null&&a!==undefined?a:true,...i,destroy(i,a){k.destroyer(r,i);a(i)}}).wrap(r)}},2864:(r,i,a)=>{"use strict";const{MathFloor:s,NumberIsInteger:l}=a(9097);const{validateInteger:p}=a(1640);const{ERR_INVALID_ARG_VALUE:c}=a(2752).codes;let d=16*1024;let u=16;function highWaterMarkFrom(r,i,a){return r.highWaterMark!=null?r.highWaterMark:i?r[a]:null}function getDefaultHighWaterMark(r){return r?u:d}function setDefaultHighWaterMark(r,i){p(i,"value",0);if(r){u=i}else{d=i}}function getHighWaterMark(r,i,a,p){const d=highWaterMarkFrom(i,p,a);if(d!=null){if(!l(d)||d<0){const r=p?`options.${a}`:"options.highWaterMark";throw new c(r,d)}return s(d)}return getDefaultHighWaterMark(r.objectMode)}r.exports={getHighWaterMark:getHighWaterMark,getDefaultHighWaterMark:getDefaultHighWaterMark,setDefaultHighWaterMark:setDefaultHighWaterMark}},737:(r,i,a)=>{"use strict";const{ObjectSetPrototypeOf:s,Symbol:l}=a(9097);r.exports=Transform;const{ERR_METHOD_NOT_IMPLEMENTED:p}=a(2752).codes;const c=a(2999);const{getHighWaterMark:d}=a(2864);s(Transform.prototype,c.prototype);s(Transform,c);const u=l("kCallback");function Transform(r){if(!(this instanceof Transform))return new Transform(r);const i=r?d(this,r,"readableHighWaterMark",true):null;if(i===0){r={...r,highWaterMark:null,readableHighWaterMark:i,writableHighWaterMark:r.writableHighWaterMark||0}}c.call(this,r);this._readableState.sync=false;this[u]=null;if(r){if(typeof r.transform==="function")this._transform=r.transform;if(typeof r.flush==="function")this._flush=r.flush}this.on("prefinish",prefinish)}function final(r){if(typeof this._flush==="function"&&!this.destroyed){this._flush(((i,a)=>{if(i){if(r){r(i)}else{this.destroy(i)}return}if(a!=null){this.push(a)}this.push(null);if(r){r()}}))}else{this.push(null);if(r){r()}}}function prefinish(){if(this._final!==final){final.call(this)}}Transform.prototype._final=final;Transform.prototype._transform=function(r,i,a){throw new p("_transform()")};Transform.prototype._write=function(r,i,a){const s=this._readableState;const l=this._writableState;const p=s.length;this._transform(r,i,((r,i)=>{if(r){a(r);return}if(i!=null){this.push(i)}if(l.ended||p===s.length||s.length{"use strict";const{SymbolAsyncIterator:s,SymbolIterator:l,SymbolFor:p}=a(9097);const c=p("nodejs.stream.destroyed");const d=p("nodejs.stream.errored");const u=p("nodejs.stream.readable");const h=p("nodejs.stream.writable");const g=p("nodejs.stream.disturbed");const y=p("nodejs.webstream.isClosedPromise");const b=p("nodejs.webstream.controllerErrorFunction");function isReadableNodeStream(r,i=false){var a;return!!(r&&typeof r.pipe==="function"&&typeof r.on==="function"&&(!i||typeof r.pause==="function"&&typeof r.resume==="function")&&(!r._writableState||((a=r._readableState)===null||a===undefined?undefined:a.readable)!==false)&&(!r._writableState||r._readableState))}function isWritableNodeStream(r){var i;return!!(r&&typeof r.write==="function"&&typeof r.on==="function"&&(!r._readableState||((i=r._writableState)===null||i===undefined?undefined:i.writable)!==false))}function isDuplexNodeStream(r){return!!(r&&typeof r.pipe==="function"&&r._readableState&&typeof r.on==="function"&&typeof r.write==="function")}function isNodeStream(r){return r&&(r._readableState||r._writableState||typeof r.write==="function"&&typeof r.on==="function"||typeof r.pipe==="function"&&typeof r.on==="function")}function isReadableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.pipeThrough==="function"&&typeof r.getReader==="function"&&typeof r.cancel==="function")}function isWritableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.getWriter==="function"&&typeof r.abort==="function")}function isTransformStream(r){return!!(r&&!isNodeStream(r)&&typeof r.readable==="object"&&typeof r.writable==="object")}function isWebStream(r){return isReadableStream(r)||isWritableStream(r)||isTransformStream(r)}function isIterable(r,i){if(r==null)return false;if(i===true)return typeof r[s]==="function";if(i===false)return typeof r[l]==="function";return typeof r[s]==="function"||typeof r[l]==="function"}function isDestroyed(r){if(!isNodeStream(r))return null;const i=r._writableState;const a=r._readableState;const s=i||a;return!!(r.destroyed||r[c]||s!==null&&s!==undefined&&s.destroyed)}function isWritableEnded(r){if(!isWritableNodeStream(r))return null;if(r.writableEnded===true)return true;const i=r._writableState;if(i!==null&&i!==undefined&&i.errored)return false;if(typeof(i===null||i===undefined?undefined:i.ended)!=="boolean")return null;return i.ended}function isWritableFinished(r,i){if(!isWritableNodeStream(r))return null;if(r.writableFinished===true)return true;const a=r._writableState;if(a!==null&&a!==undefined&&a.errored)return false;if(typeof(a===null||a===undefined?undefined:a.finished)!=="boolean")return null;return!!(a.finished||i===false&&a.ended===true&&a.length===0)}function isReadableEnded(r){if(!isReadableNodeStream(r))return null;if(r.readableEnded===true)return true;const i=r._readableState;if(!i||i.errored)return false;if(typeof(i===null||i===undefined?undefined:i.ended)!=="boolean")return null;return i.ended}function isReadableFinished(r,i){if(!isReadableNodeStream(r))return null;const a=r._readableState;if(a!==null&&a!==undefined&&a.errored)return false;if(typeof(a===null||a===undefined?undefined:a.endEmitted)!=="boolean")return null;return!!(a.endEmitted||i===false&&a.ended===true&&a.length===0)}function isReadable(r){if(r&&r[u]!=null)return r[u];if(typeof(r===null||r===undefined?undefined:r.readable)!=="boolean")return null;if(isDestroyed(r))return false;return isReadableNodeStream(r)&&r.readable&&!isReadableFinished(r)}function isWritable(r){if(r&&r[h]!=null)return r[h];if(typeof(r===null||r===undefined?undefined:r.writable)!=="boolean")return null;if(isDestroyed(r))return false;return isWritableNodeStream(r)&&r.writable&&!isWritableEnded(r)}function isFinished(r,i){if(!isNodeStream(r)){return null}if(isDestroyed(r)){return true}if((i===null||i===undefined?undefined:i.readable)!==false&&isReadable(r)){return false}if((i===null||i===undefined?undefined:i.writable)!==false&&isWritable(r)){return false}return true}function isWritableErrored(r){var i,a;if(!isNodeStream(r)){return null}if(r.writableErrored){return r.writableErrored}return(i=(a=r._writableState)===null||a===undefined?undefined:a.errored)!==null&&i!==undefined?i:null}function isReadableErrored(r){var i,a;if(!isNodeStream(r)){return null}if(r.readableErrored){return r.readableErrored}return(i=(a=r._readableState)===null||a===undefined?undefined:a.errored)!==null&&i!==undefined?i:null}function isClosed(r){if(!isNodeStream(r)){return null}if(typeof r.closed==="boolean"){return r.closed}const i=r._writableState;const a=r._readableState;if(typeof(i===null||i===undefined?undefined:i.closed)==="boolean"||typeof(a===null||a===undefined?undefined:a.closed)==="boolean"){return(i===null||i===undefined?undefined:i.closed)||(a===null||a===undefined?undefined:a.closed)}if(typeof r._closed==="boolean"&&isOutgoingMessage(r)){return r._closed}return null}function isOutgoingMessage(r){return typeof r._closed==="boolean"&&typeof r._defaultKeepAlive==="boolean"&&typeof r._removedConnection==="boolean"&&typeof r._removedContLen==="boolean"}function isServerResponse(r){return typeof r._sent100==="boolean"&&isOutgoingMessage(r)}function isServerRequest(r){var i;return typeof r._consuming==="boolean"&&typeof r._dumped==="boolean"&&((i=r.req)===null||i===undefined?undefined:i.upgradeOrConnect)===undefined}function willEmitClose(r){if(!isNodeStream(r))return null;const i=r._writableState;const a=r._readableState;const s=i||a;return!s&&isServerResponse(r)||!!(s&&s.autoDestroy&&s.emitClose&&s.closed===false)}function isDisturbed(r){var i;return!!(r&&((i=r[g])!==null&&i!==undefined?i:r.readableDidRead||r.readableAborted))}function isErrored(r){var i,a,s,l,p,c,u,h,g,y;return!!(r&&((i=(a=(s=(l=(p=(c=r[d])!==null&&c!==undefined?c:r.readableErrored)!==null&&p!==undefined?p:r.writableErrored)!==null&&l!==undefined?l:(u=r._readableState)===null||u===undefined?undefined:u.errorEmitted)!==null&&s!==undefined?s:(h=r._writableState)===null||h===undefined?undefined:h.errorEmitted)!==null&&a!==undefined?a:(g=r._readableState)===null||g===undefined?undefined:g.errored)!==null&&i!==undefined?i:(y=r._writableState)===null||y===undefined?undefined:y.errored))}r.exports={isDestroyed:isDestroyed,kIsDestroyed:c,isDisturbed:isDisturbed,kIsDisturbed:g,isErrored:isErrored,kIsErrored:d,isReadable:isReadable,kIsReadable:u,kIsClosedPromise:y,kControllerErrorFunction:b,kIsWritable:h,isClosed:isClosed,isDuplexNodeStream:isDuplexNodeStream,isFinished:isFinished,isIterable:isIterable,isReadableNodeStream:isReadableNodeStream,isReadableStream:isReadableStream,isReadableEnded:isReadableEnded,isReadableFinished:isReadableFinished,isReadableErrored:isReadableErrored,isNodeStream:isNodeStream,isWebStream:isWebStream,isWritable:isWritable,isWritableNodeStream:isWritableNodeStream,isWritableStream:isWritableStream,isWritableEnded:isWritableEnded,isWritableFinished:isWritableFinished,isWritableErrored:isWritableErrored,isServerRequest:isServerRequest,isServerResponse:isServerResponse,willEmitClose:willEmitClose,isTransformStream:isTransformStream}},2536:(r,i,a)=>{const s=a(1524);"use strict";const{ArrayPrototypeSlice:l,Error:p,FunctionPrototypeSymbolHasInstance:c,ObjectDefineProperty:d,ObjectDefineProperties:u,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:g,Symbol:y,SymbolHasInstance:b}=a(9097);r.exports=Writable;Writable.WritableState=WritableState;const{EventEmitter:v}=a(2361);const w=a(3221).Stream;const{Buffer:x}=a(4300);const S=a(6150);const{addAbortSignal:_}=a(5154);const{getHighWaterMark:T,getDefaultHighWaterMark:N}=a(2864);const{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_MULTIPLE_CALLBACK:R,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:k,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:D,ERR_STREAM_WRITE_AFTER_END:I,ERR_UNKNOWN_ENCODING:L}=a(2752).codes;const{errorOrDestroy:B}=S;h(Writable.prototype,w.prototype);h(Writable,w);function nop(){}const M=y("kOnFinished");function WritableState(r,i,s){if(typeof s!=="boolean")s=i instanceof a(2999);this.objectMode=!!(r&&r.objectMode);if(s)this.objectMode=this.objectMode||!!(r&&r.writableObjectMode);this.highWaterMark=r?T(this,r,"writableHighWaterMark",s):N(false);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;const l=!!(r&&r.decodeStrings===false);this.decodeStrings=!l;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=onwrite.bind(undefined,i);this.writecb=null;this.writelen=0;this.afterWriteTickInfo=null;resetBuffer(this);this.pendingcb=0;this.constructed=true;this.prefinished=false;this.errorEmitted=false;this.emitClose=!r||r.emitClose!==false;this.autoDestroy=!r||r.autoDestroy!==false;this.errored=null;this.closed=false;this.closeEmitted=false;this[M]=[]}function resetBuffer(r){r.buffered=[];r.bufferedIndex=0;r.allBuffers=true;r.allNoop=true}WritableState.prototype.getBuffer=function getBuffer(){return l(this.buffered,this.bufferedIndex)};d(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Writable(r){const i=this instanceof a(2999);if(!i&&!c(Writable,this))return new Writable(r);this._writableState=new WritableState(r,this,i);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;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal)_(r.signal,this)}w.call(this,r);S.construct(this,(()=>{const r=this._writableState;if(!r.writing){clearBuffer(this,r)}finishMaybe(this,r)}))}d(Writable,b,{__proto__:null,value:function(r){if(c(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}});Writable.prototype.pipe=function(){B(this,new C)};function _write(r,i,a,l){const p=r._writableState;if(typeof a==="function"){l=a;a=p.defaultEncoding}else{if(!a)a=p.defaultEncoding;else if(a!=="buffer"&&!x.isEncoding(a))throw new L(a);if(typeof l!=="function")l=nop}if(i===null){throw new D}else if(!p.objectMode){if(typeof i==="string"){if(p.decodeStrings!==false){i=x.from(i,a);a="buffer"}}else if(i instanceof x){a="buffer"}else if(w._isUint8Array(i)){i=w._uint8ArrayToBuffer(i);a="buffer"}else{throw new P("chunk",["string","Buffer","Uint8Array"],i)}}let c;if(p.ending){c=new I}else if(p.destroyed){c=new k("write")}if(c){s.nextTick(l,c);B(r,c,true);return c}p.pendingcb++;return writeOrBuffer(r,p,i,a,l)}Writable.prototype.write=function(r,i,a){return _write(this,r,i,a)===true};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){const r=this._writableState;if(r.corked){r.corked--;if(!r.writing)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=g(r);if(!x.isEncoding(r))throw new L(r);this._writableState.defaultEncoding=r;return this};function writeOrBuffer(r,i,a,s,l){const p=i.objectMode?1:a.length;i.length+=p;const c=i.lengtha.bufferedIndex){clearBuffer(r,a)}if(l){if(a.afterWriteTickInfo!==null&&a.afterWriteTickInfo.cb===p){a.afterWriteTickInfo.count++}else{a.afterWriteTickInfo={count:1,cb:p,stream:r,state:a};s.nextTick(afterWriteTick,a.afterWriteTickInfo)}}else{afterWrite(r,a,1,p)}}}function afterWriteTick({stream:r,state:i,count:a,cb:s}){i.afterWriteTickInfo=null;return afterWrite(r,i,a,s)}function afterWrite(r,i,a,s){const l=!i.ending&&!r.destroyed&&i.length===0&&i.needDrain;if(l){i.needDrain=false;r.emit("drain")}while(a-- >0){i.pendingcb--;s()}if(i.destroyed){errorBuffer(i)}finishMaybe(r,i)}function errorBuffer(r){if(r.writing){return}for(let a=r.bufferedIndex;a1&&r._writev){i.pendingcb-=c-1;const s=i.allNoop?nop:r=>{for(let i=d;i256){a.splice(0,d);i.bufferedIndex=0}else{i.bufferedIndex=d}}i.bufferProcessing=false}Writable.prototype._write=function(r,i,a){if(this._writev){this._writev([{chunk:r,encoding:i}],a)}else{throw new O("_write()")}};Writable.prototype._writev=null;Writable.prototype.end=function(r,i,a){const l=this._writableState;if(typeof r==="function"){a=r;r=null;i=null}else if(typeof i==="function"){a=i;i=null}let c;if(r!==null&&r!==undefined){const a=_write(this,r,i);if(a instanceof p){c=a}}if(l.corked){l.corked=1;this.uncork()}if(c){}else if(!l.errored&&!l.ending){l.ending=true;finishMaybe(this,l,true);l.ended=true}else if(l.finished){c=new A("end")}else if(l.destroyed){c=new k("end")}if(typeof a==="function"){if(c||l.finished){s.nextTick(a,c)}else{l[M].push(a)}}return this};function needFinish(r){return r.ending&&!r.destroyed&&r.constructed&&r.length===0&&!r.errored&&r.buffered.length===0&&!r.finished&&!r.writing&&!r.errorEmitted&&!r.closeEmitted}function callFinal(r,i){let a=false;function onFinish(l){if(a){B(r,l!==null&&l!==undefined?l:R());return}a=true;i.pendingcb--;if(l){const a=i[M].splice(0);for(let r=0;r{if(needFinish(i)){finish(r,i)}else{i.pendingcb--}}),r,i)}else if(needFinish(i)){i.pendingcb++;finish(r,i)}}}}function finish(r,i){i.pendingcb--;i.finished=true;const a=i[M].splice(0);for(let r=0;r{"use strict";const{ArrayIsArray:s,ArrayPrototypeIncludes:l,ArrayPrototypeJoin:p,ArrayPrototypeMap:c,NumberIsInteger:d,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:h,NumberMIN_SAFE_INTEGER:g,NumberParseInt:y,ObjectPrototypeHasOwnProperty:b,RegExpPrototypeExec:v,String:w,StringPrototypeToUpperCase:x,StringPrototypeTrim:S}=a(9097);const{hideStackFrames:_,codes:{ERR_SOCKET_BAD_PORT:T,ERR_INVALID_ARG_TYPE:N,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:O,ERR_UNKNOWN_SIGNAL:R}}=a(2752);const{normalizeEncoding:C}=a(4004);const{isAsyncFunction:k,isArrayBufferView:A}=a(4004).types;const D={};function isInt32(r){return r===(r|0)}function isUint32(r){return r===r>>>0}const I=/^[0-7]+$/;const L="must be a 32-bit unsigned integer or an octal string";function parseFileMode(r,i,a){if(typeof r==="undefined"){r=a}if(typeof r==="string"){if(v(I,r)===null){throw new P(i,r,L)}r=y(r,8)}j(r,i);return r}const B=_(((r,i,a=g,s=h)=>{if(typeof r!=="number")throw new N(i,"number",r);if(!d(r))throw new O(i,"an integer",r);if(rs)throw new O(i,`>= ${a} && <= ${s}`,r)}));const M=_(((r,i,a=-2147483648,s=2147483647)=>{if(typeof r!=="number"){throw new N(i,"number",r)}if(!d(r)){throw new O(i,"an integer",r)}if(rs){throw new O(i,`>= ${a} && <= ${s}`,r)}}));const j=_(((r,i,a=false)=>{if(typeof r!=="number"){throw new N(i,"number",r)}if(!d(r)){throw new O(i,"an integer",r)}const s=a?1:0;const l=4294967295;if(rl){throw new O(i,`>= ${s} && <= ${l}`,r)}}));function validateString(r,i){if(typeof r!=="string")throw new N(i,"string",r)}function validateNumber(r,i,a=undefined,s){if(typeof r!=="number")throw new N(i,"number",r);if(a!=null&&rs||(a!=null||s!=null)&&u(r)){throw new O(i,`${a!=null?`>= ${a}`:""}${a!=null&&s!=null?" && ":""}${s!=null?`<= ${s}`:""}`,r)}}const z=_(((r,i,a)=>{if(!l(a,r)){const s=p(c(a,(r=>typeof r==="string"?`'${r}'`:w(r))),", ");const l="must be one of: "+s;throw new P(i,r,l)}}));function validateBoolean(r,i){if(typeof r!=="boolean")throw new N(i,"boolean",r)}function getOwnPropertyValueOrDefault(r,i,a){return r==null||!b(r,i)?a:r[i]}const U=_(((r,i,a=null)=>{const l=getOwnPropertyValueOrDefault(a,"allowArray",false);const p=getOwnPropertyValueOrDefault(a,"allowFunction",false);const c=getOwnPropertyValueOrDefault(a,"nullable",false);if(!c&&r===null||!l&&s(r)||typeof r!=="object"&&(!p||typeof r!=="function")){throw new N(i,"Object",r)}}));const q=_(((r,i)=>{if(r!=null&&typeof r!=="object"&&typeof r!=="function"){throw new N(i,"a dictionary",r)}}));const H=_(((r,i,a=0)=>{if(!s(r)){throw new N(i,"Array",r)}if(r.length{if(!A(r)){throw new N(i,["Buffer","TypedArray","DataView"],r)}}));function validateEncoding(r,i){const a=C(i);const s=r.length;if(a==="hex"&&s%2!==0){throw new P("encoding",i,`is invalid for data of length ${s}`)}}function validatePort(r,i="Port",a=true){if(typeof r!=="number"&&typeof r!=="string"||typeof r==="string"&&S(r).length===0||+r!==+r>>>0||r>65535||r===0&&!a){throw new T(i,r,a)}return r|0}const G=_(((r,i)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new N(i,"AbortSignal",r)}}));const W=_(((r,i)=>{if(typeof r!=="function")throw new N(i,"Function",r)}));const $=_(((r,i)=>{if(typeof r!=="function"||k(r))throw new N(i,"Function",r)}));const X=_(((r,i)=>{if(r!==undefined)throw new N(i,"undefined",r)}));function validateUnion(r,i,a){if(!l(a,r)){throw new N(i,`('${p(a,"|")}')`,r)}}const K=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(r,i){if(typeof r==="undefined"||!v(K,r)){throw new P(i,r,'must be an array or string of format "; rel=preload; as=style"')}}function validateLinkHeaderValue(r){if(typeof r==="string"){validateLinkHeaderFormat(r,"hints");return r}else if(s(r)){const i=r.length;let a="";if(i===0){return a}for(let s=0;s; rel=preload; as=style"')}r.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:H,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:V,validateDictionary:q,validateEncoding:validateEncoding,validateFunction:W,validateInt32:M,validateInteger:B,validateNumber:validateNumber,validateObject:U,validateOneOf:z,validatePlainFunction:$,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:j,validateUndefined:X,validateUnion:validateUnion,validateAbortSignal:G,validateLinkHeaderValue:validateLinkHeaderValue}},2752:(r,i,a)=>{"use strict";const{format:s,inspect:l,AggregateError:p}=a(4004);const c=globalThis.AggregateError||p;const d=Symbol("kIsNodeError");const u=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const h=/^([A-Z][a-z0-9]*)+$/;const g="__node_internal_";const y={};function assert(r,i){if(!r){throw new y.ERR_INTERNAL_ASSERTION(i)}}function addNumericalSeparator(r){let i="";let a=r.length;const s=r[0]==="-"?1:0;for(;a>=s+4;a-=3){i=`_${r.slice(a-3,a)}${i}`}return`${r.slice(0,a)}${i}`}function getMessage(r,i,a){if(typeof i==="function"){assert(i.length<=a.length,`Code: ${r}; The provided arguments length (${a.length}) does not match the required ones (${i.length}).`);return i(...a)}const l=(i.match(/%[dfijoOs]/g)||[]).length;assert(l===a.length,`Code: ${r}; The provided arguments length (${a.length}) does not match the required ones (${l}).`);if(a.length===0){return i}return s(i,...a)}function E(r,i,a){if(!a){a=Error}class NodeError extends a{constructor(...a){super(getMessage(r,i,a))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:a.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=r;NodeError.prototype[d]=true;y[r]=NodeError}function hideStackFrames(r){const i=g+r.name;Object.defineProperty(r,"name",{value:i});return r}function aggregateTwoErrors(r,i){if(r&&i&&r!==i){if(Array.isArray(i.errors)){i.errors.push(r);return i}const a=new c([i,r],i.message);a.code=i.code;return a}return r||i}class AbortError extends Error{constructor(r="The operation was aborted",i=undefined){if(i!==undefined&&typeof i!=="object"){throw new y.ERR_INVALID_ARG_TYPE("options","Object",i)}super(r,i);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((r,i,a)=>{assert(typeof r==="string","'name' must be a string");if(!Array.isArray(i)){i=[i]}let s="The ";if(r.endsWith(" argument")){s+=`${r} `}else{s+=`"${r}" ${r.includes(".")?"property":"argument"} `}s+="must be ";const p=[];const c=[];const d=[];for(const r of i){assert(typeof r==="string","All expected entries have to be of type string");if(u.includes(r)){p.push(r.toLowerCase())}else if(h.test(r)){c.push(r)}else{assert(r!=="object",'The value "object" should be written as "Object"');d.push(r)}}if(c.length>0){const r=p.indexOf("object");if(r!==-1){p.splice(p,r,1);c.push("Object")}}if(p.length>0){switch(p.length){case 1:s+=`of type ${p[0]}`;break;case 2:s+=`one of type ${p[0]} or ${p[1]}`;break;default:{const r=p.pop();s+=`one of type ${p.join(", ")}, or ${r}`}}if(c.length>0||d.length>0){s+=" or "}}if(c.length>0){switch(c.length){case 1:s+=`an instance of ${c[0]}`;break;case 2:s+=`an instance of ${c[0]} or ${c[1]}`;break;default:{const r=c.pop();s+=`an instance of ${c.join(", ")}, or ${r}`}}if(d.length>0){s+=" or "}}switch(d.length){case 0:break;case 1:if(d[0].toLowerCase()!==d[0]){s+="an "}s+=`${d[0]}`;break;case 2:s+=`one of ${d[0]} or ${d[1]}`;break;default:{const r=d.pop();s+=`one of ${d.join(", ")}, or ${r}`}}if(a==null){s+=`. Received ${a}`}else if(typeof a==="function"&&a.name){s+=`. Received function ${a.name}`}else if(typeof a==="object"){var g;if((g=a.constructor)!==null&&g!==undefined&&g.name){s+=`. Received an instance of ${a.constructor.name}`}else{const r=l(a,{depth:-1});s+=`. Received ${r}`}}else{let r=l(a,{colors:false});if(r.length>25){r=`${r.slice(0,25)}...`}s+=`. Received type ${typeof a} (${r})`}return s}),TypeError);E("ERR_INVALID_ARG_VALUE",((r,i,a="is invalid")=>{let s=l(i);if(s.length>128){s=s.slice(0,128)+"..."}const p=r.includes(".")?"property":"argument";return`The ${p} '${r}' ${a}. Received ${s}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((r,i,a)=>{var s;const l=a!==null&&a!==undefined&&(s=a.constructor)!==null&&s!==undefined&&s.name?`instance of ${a.constructor.name}`:`type ${typeof a}`;return`Expected ${r} to be returned from the "${i}"`+` function but got ${l}.`}),TypeError);E("ERR_MISSING_ARGS",((...r)=>{assert(r.length>0,"At least one arg needs to be specified");let i;const a=r.length;r=(Array.isArray(r)?r:[r]).map((r=>`"${r}"`)).join(" or ");switch(a){case 1:i+=`The ${r[0]} argument`;break;case 2:i+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const a=r.pop();i+=`The ${r.join(", ")}, and ${a} arguments`}break}return`${i} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((r,i,a)=>{assert(i,'Missing "range" argument');let s;if(Number.isInteger(a)&&Math.abs(a)>2**32){s=addNumericalSeparator(String(a))}else if(typeof a==="bigint"){s=String(a);if(a>2n**32n||a<-(2n**32n)){s=addNumericalSeparator(s)}s+="n"}else{s=l(a)}return`The value of "${r}" is out of range. It must be ${i}. Received ${s}`}),RangeError);E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);E("ERR_STREAM_WRITE_AFTER_END","write after end",Error);E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);r.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:y}},388:(r,i,a)=>{"use strict";const s=a(2781);if(s&&process.env.READABLE_STREAM==="disable"){const i=s.promises;r.exports._uint8ArrayToBuffer=s._uint8ArrayToBuffer;r.exports._isUint8Array=s._isUint8Array;r.exports.isDisturbed=s.isDisturbed;r.exports.isErrored=s.isErrored;r.exports.isReadable=s.isReadable;r.exports.Readable=s.Readable;r.exports.Writable=s.Writable;r.exports.Duplex=s.Duplex;r.exports.Transform=s.Transform;r.exports.PassThrough=s.PassThrough;r.exports.addAbortSignal=s.addAbortSignal;r.exports.finished=s.finished;r.exports.destroy=s.destroy;r.exports.pipeline=s.pipeline;r.exports.compose=s.compose;Object.defineProperty(s,"promises",{configurable:true,enumerable:true,get(){return i}});r.exports.Stream=s.Stream}else{const i=a(3637);const s=a(4280);const l=i.Readable.destroy;r.exports=i.Readable;r.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer;r.exports._isUint8Array=i._isUint8Array;r.exports.isDisturbed=i.isDisturbed;r.exports.isErrored=i.isErrored;r.exports.isReadable=i.isReadable;r.exports.Readable=i.Readable;r.exports.Writable=i.Writable;r.exports.Duplex=i.Duplex;r.exports.Transform=i.Transform;r.exports.PassThrough=i.PassThrough;r.exports.addAbortSignal=i.addAbortSignal;r.exports.finished=i.finished;r.exports.destroy=i.destroy;r.exports.destroy=l;r.exports.pipeline=i.pipeline;r.exports.compose=i.compose;Object.defineProperty(i,"promises",{configurable:true,enumerable:true,get(){return s}});r.exports.Stream=i.Stream}r.exports["default"]=r.exports},9097:r=>{"use strict";r.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,i){return r.includes(i)},ArrayPrototypeIndexOf(r,i){return r.indexOf(i)},ArrayPrototypeJoin(r,i){return r.join(i)},ArrayPrototypeMap(r,i){return r.map(i)},ArrayPrototypePop(r,i){return r.pop(i)},ArrayPrototypePush(r,i){return r.push(i)},ArrayPrototypeSlice(r,i,a){return r.slice(i,a)},Error:Error,FunctionPrototypeCall(r,i,...a){return r.call(i,...a)},FunctionPrototypeSymbolHasInstance(r,i){return Function.prototype[Symbol.hasInstance].call(r,i)},MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(r,i){return Object.defineProperties(r,i)},ObjectDefineProperty(r,i,a){return Object.defineProperty(r,i,a)},ObjectGetOwnPropertyDescriptor(r,i){return Object.getOwnPropertyDescriptor(r,i)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,i){return Object.setPrototypeOf(r,i)},Promise:Promise,PromisePrototypeCatch(r,i){return r.catch(i)},PromisePrototypeThen(r,i,a){return r.then(i,a)},PromiseReject(r){return Promise.reject(r)},PromiseResolve(r){return Promise.resolve(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,i){return r.test(i)},SafeSet:Set,String:String,StringPrototypeSlice(r,i,a){return r.slice(i,a)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(r,i,a){return r.set(i,a)},Boolean:Boolean,Uint8Array:Uint8Array}},4004:(r,i,a)=>{"use strict";const s=a(4300);const{kResistStopPropagation:l,SymbolDispose:p}=a(9097);const c=globalThis.AbortSignal||a(7428).AbortSignal;const d=globalThis.AbortController||a(7428).AbortController;const u=Object.getPrototypeOf((async function(){})).constructor;const h=globalThis.Blob||s.Blob;const g=typeof h!=="undefined"?function isBlob(r){return r instanceof h}:function isBlob(r){return false};const validateAbortSignal=(r,i)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new ERR_INVALID_ARG_TYPE(i,"AbortSignal",r)}};const validateFunction=(r,i)=>{if(typeof r!=="function")throw new ERR_INVALID_ARG_TYPE(i,"Function",r)};class AggregateError extends Error{constructor(r){if(!Array.isArray(r)){throw new TypeError(`Expected input to be an Array, got ${typeof r}`)}let i="";for(let a=0;a{r=a;i=s}));return{promise:a,resolve:r,reject:i}},promisify(r){return new Promise(((i,a)=>{r(((r,...s)=>{if(r){return a(r)}return i(...s)}))}))},debuglog(){return function(){}},format(r,...i){return r.replace(/%([sdifj])/g,(function(...[r,a]){const s=i.shift();if(a==="f"){return s.toFixed(6)}else if(a==="j"){return JSON.stringify(s)}else if(a==="s"&&typeof s==="object"){const r=s.constructor!==Object?s.constructor.name:"";return`${r} {}`.trim()}else{return s.toString()}}))},inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"')){return`"${r}"`}else if(!r.includes("`")&&!r.includes("${")){return`\`${r}\``}}return`'${r}'`;case"number":if(isNaN(r)){return"NaN"}else if(Object.is(r,-0)){return String(r)}return r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}},types:{isAsyncFunction(r){return r instanceof u},isArrayBufferView(r){return ArrayBuffer.isView(r)}},isBlob:g,deprecate(r,i){return r},addAbortListener:a(2361).addAbortListener||function addAbortListener(r,i){if(r===undefined){throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",r)}validateAbortSignal(r,"signal");validateFunction(i,"listener");let a;if(r.aborted){queueMicrotask((()=>i()))}else{r.addEventListener("abort",i,{__proto__:null,once:true,[l]:true});a=()=>{r.removeEventListener("abort",i)}}return{__proto__:null,[p](){var r;(r=a)===null||r===undefined?undefined:r()}}},AbortSignalAny:c.any||function AbortSignalAny(r){if(r.length===1){return r[0]}const i=new d;const abort=()=>i.abort();r.forEach((r=>{validateAbortSignal(r,"signals");r.addEventListener("abort",abort,{once:true})}));i.signal.addEventListener("abort",(()=>{r.forEach((r=>r.removeEventListener("abort",abort)))}),{once:true});return i.signal}};r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},3637:(r,i,a)=>{const{Buffer:s}=a(4300);"use strict";const{ObjectDefineProperty:l,ObjectKeys:p,ReflectApply:c}=a(9097);const{promisify:{custom:d}}=a(4004);const{streamReturningOperators:u,promiseReturningOperators:h}=a(7503);const{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=a(2752);const y=a(30);const{setDefaultHighWaterMark:b,getDefaultHighWaterMark:v}=a(2864);const{pipeline:w}=a(6438);const{destroyer:x}=a(6150);const S=a(1830);const _={};const T=a(4280);const N=a(3583);const P=r.exports=a(3221).Stream;P.isDestroyed=N.isDestroyed;P.isDisturbed=N.isDisturbed;P.isErrored=N.isErrored;P.isReadable=N.isReadable;P.isWritable=N.isWritable;P.Readable=a(9961);for(const R of p(u)){const C=u[R];function fn(...r){if(new.target){throw g()}return P.Readable.from(c(C,this,r))}l(fn,"name",{__proto__:null,value:C.name});l(fn,"length",{__proto__:null,value:C.length});l(P.Readable.prototype,R,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}for(const k of p(h)){const A=h[k];function fn(...r){if(new.target){throw g()}return c(A,this,r)}l(fn,"name",{__proto__:null,value:A.name});l(fn,"length",{__proto__:null,value:A.length});l(P.Readable.prototype,k,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}P.Writable=a(2536);P.Duplex=a(2999);P.Transform=a(737);P.PassThrough=a(4227);P.pipeline=w;const{addAbortSignal:O}=a(5154);P.addAbortSignal=O;P.finished=S;P.destroy=x;P.compose=y;P.setDefaultHighWaterMark=b;P.getDefaultHighWaterMark=v;l(P,"promises",{__proto__:null,configurable:true,enumerable:true,get(){return T}});l(w,d,{__proto__:null,enumerable:true,get(){return T.pipeline}});l(S,d,{__proto__:null,enumerable:true,get(){return T.finished}});P.Stream=P;P._isUint8Array=function isUint8Array(r){return r instanceof Uint8Array};P._uint8ArrayToBuffer=function _uint8ArrayToBuffer(r){return s.from(r.buffer,r.byteOffset,r.byteLength)}},4280:(r,i,a)=>{"use strict";const{ArrayPrototypePop:s,Promise:l}=a(9097);const{isIterable:p,isNodeStream:c,isWebStream:d}=a(3583);const{pipelineImpl:u}=a(6438);const{finished:h}=a(1830);a(3637);function pipeline(...r){return new l(((i,a)=>{let l;let h;const g=r[r.length-1];if(g&&typeof g==="object"&&!c(g)&&!p(g)&&!d(g)){const i=s(r);l=i.signal;h=i.end}u(r,((r,s)=>{if(r){a(r)}else{i(s)}}),{signal:l,end:h})}))}r.exports={finished:h,pipeline:pipeline}},8555:(r,i,a)=>{r.exports=readdirGlob;const s=a(7147);const{EventEmitter:l}=a(2361);const{Minimatch:p}=a(1659);const{resolve:c}=a(1017);function readdir(r,i){return new Promise(((a,l)=>{s.readdir(r,{withFileTypes:true},((r,s)=>{if(r){switch(r.code){case"ENOTDIR":if(i){l(r)}else{a([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":a([]);break;case"ELOOP":default:l(r);break}}else{a(s)}}))}))}function stat(r,i){return new Promise(((a,l)=>{const p=i?s.stat:s.lstat;p(r,((s,l)=>{if(s){switch(s.code){case"ENOENT":if(i){a(stat(r,false))}else{a(null)}break;default:a(null);break}}else{a(l)}}))}))}async function*exploreWalkAsync(r,i,a,s,l,p){let c=await readdir(i+r,p);for(const p of c){let c=p.name;if(c===undefined){c=p;s=true}const d=r+"/"+c;const u=d.slice(1);const h=i+"/"+u;let g=null;if(s||a){g=await stat(h,a)}if(!g&&p.name!==undefined){g=p}if(g===null){g={isDirectory:()=>false}}if(g.isDirectory()){if(!l(u)){yield{relative:u,absolute:h,stats:g};yield*exploreWalkAsync(d,i,a,s,l,false)}}else{yield{relative:u,absolute:h,stats:g}}}}async function*explore(r,i,a,s){yield*exploreWalkAsync("",r,i,a,s,true)}function readOptions(r){return{pattern:r.pattern,dot:!!r.dot,noglobstar:!!r.noglobstar,matchBase:!!r.matchBase,nocase:!!r.nocase,ignore:r.ignore,skip:r.skip,follow:!!r.follow,stat:!!r.stat,nodir:!!r.nodir,mark:!!r.mark,silent:!!r.silent,absolute:!!r.absolute}}class ReaddirGlob extends l{constructor(r,i,a){super();if(typeof i==="function"){a=i;i=null}this.options=readOptions(i||{});this.matchers=[];if(this.options.pattern){const r=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=r.map((r=>new p(r,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const r=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=r.map((r=>new p(r,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const r=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=r.map((r=>new p(r,{dot:true})))}this.iterator=explore(c(r||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(a){this._matches=[];this.on("match",(r=>this._matches.push(this.options.absolute?r.absolute:r.relative)));this.on("error",(r=>a(r)));this.on("end",(()=>a(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(r){return this.skipMatchers.some((i=>i.match(r)))}_fileMatches(r,i){const a=r+(i?"/":"");return(this.matchers.length===0||this.matchers.some((r=>r.match(a))))&&!this.ignoreMatchers.some((r=>r.match(a)))&&(!this.options.nodir||!i)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((r=>{if(!r.done){const i=r.value.stats.isDirectory();if(this._fileMatches(r.value.relative,i)){let a=r.value.relative;let s=r.value.absolute;if(this.options.mark&&i){a+="/";s+="/"}if(this.options.stat){this.emit("match",{relative:a,absolute:s,stat:r.value.stats})}else{this.emit("match",{relative:a,absolute:s})}}this._next(this.iterator)}else{this.emit("end")}})).catch((r=>{this.abort();this.emit("error",r);if(!r.code&&!this.options.silent){console.error(r)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(r,i,a){return new ReaddirGlob(r,i,a)}readdirGlob.ReaddirGlob=ReaddirGlob},7289:(r,i,a)=>{var s=a(4300);var l=s.Buffer;function copyProps(r,i){for(var a in r){i[a]=r[a]}}if(l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow){r.exports=s}else{copyProps(s,i);i.Buffer=SafeBuffer}function SafeBuffer(r,i,a){return l(r,i,a)}copyProps(l,SafeBuffer);SafeBuffer.from=function(r,i,a){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return l(r,i,a)};SafeBuffer.alloc=function(r,i,a){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var s=l(r);if(i!==undefined){if(typeof a==="string"){s.fill(i,a)}else{s.fill(i)}}else{s.fill(0)}return s};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 s.SlowBuffer(r)}},1538:(r,i,a)=>{(function(r){r.parser=function(r,i){return new SAXParser(r,i)};r.SAXParser=SAXParser;r.SAXStream=SAXStream;r.createStream=createStream;r.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(i,a){if(!(this instanceof SAXParser)){return new SAXParser(i,a)}var s=this;clearBuffers(s);s.q=s.c="";s.bufferCheckPosition=r.MAX_BUFFER_LENGTH;s.opt=a||{};s.opt.lowercase=s.opt.lowercase||s.opt.lowercasetags;s.looseCase=s.opt.lowercase?"toLowerCase":"toUpperCase";s.tags=[];s.closed=s.closedRoot=s.sawRoot=false;s.tag=s.error=null;s.strict=!!i;s.noscript=!!(i||s.opt.noscript);s.state=w.BEGIN;s.strictEntities=s.opt.strictEntities;s.ENTITIES=s.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES);s.attribList=[];if(s.opt.xmlns){s.ns=Object.create(h)}s.trackPosition=s.opt.position!==false;if(s.trackPosition){s.position=s.line=s.column=0}emit(s,"onready")}if(!Object.create){Object.create=function(r){function F(){}F.prototype=r;var i=new F;return i}}if(!Object.keys){Object.keys=function(r){var i=[];for(var a in r)if(r.hasOwnProperty(a))i.push(a);return i}}function checkBufferLength(a){var s=Math.max(r.MAX_BUFFER_LENGTH,10);var l=0;for(var p=0,c=i.length;ps){switch(i[p]){case"textNode":closeText(a);break;case"cdata":emitNode(a,"oncdata",a.cdata);a.cdata="";break;case"script":emitNode(a,"onscript",a.script);a.script="";break;default:error(a,"Max buffer length exceeded: "+i[p])}}l=Math.max(l,d)}var u=r.MAX_BUFFER_LENGTH-l;a.bufferCheckPosition=u+a.position}function clearBuffers(r){for(var a=0,s=i.length;a"||isWhitespace(r)}function isMatch(r,i){return r.test(i)}function notMatch(r,i){return!isMatch(r,i)}var w=0;r.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++};r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(r.ENTITIES).forEach((function(i){var a=r.ENTITIES[i];var s=typeof a==="number"?String.fromCharCode(a):a;r.ENTITIES[i]=s}));for(var x in r.STATE){r.STATE[r.STATE[x]]=x}w=r.STATE;function emit(r,i,a){r[i]&&r[i](a)}function emitNode(r,i,a){if(r.textNode)closeText(r);emit(r,i,a)}function closeText(r){r.textNode=textopts(r.opt,r.textNode);if(r.textNode)emit(r,"ontext",r.textNode);r.textNode=""}function textopts(r,i){if(r.trim)i=i.trim();if(r.normalize)i=i.replace(/\s+/g," ");return i}function error(r,i){closeText(r);if(r.trackPosition){i+="\nLine: "+r.line+"\nColumn: "+r.column+"\nChar: "+r.c}i=new Error(i);r.error=i;emit(r,"onerror",i);return r}function end(r){if(r.sawRoot&&!r.closedRoot)strictFail(r,"Unclosed root tag");if(r.state!==w.BEGIN&&r.state!==w.BEGIN_WHITESPACE&&r.state!==w.TEXT){error(r,"Unexpected end")}closeText(r);r.c="";r.closed=true;emit(r,"onend");SAXParser.call(r,r.strict,r.opt);return r}function strictFail(r,i){if(typeof r!=="object"||!(r instanceof SAXParser)){throw new Error("bad call to strictFail")}if(r.strict){error(r,i)}}function newTag(r){if(!r.strict)r.tagName=r.tagName[r.looseCase]();var i=r.tags[r.tags.length-1]||r;var a=r.tag={name:r.tagName,attributes:{}};if(r.opt.xmlns){a.ns=i.ns}r.attribList.length=0;emitNode(r,"onopentagstart",a)}function qname(r,i){var a=r.indexOf(":");var s=a<0?["",r]:r.split(":");var l=s[0];var p=s[1];if(i&&r==="xmlns"){l="xmlns";p=""}return{prefix:l,local:p}}function attrib(r){if(!r.strict){r.attribName=r.attribName[r.looseCase]()}if(r.attribList.indexOf(r.attribName)!==-1||r.tag.attributes.hasOwnProperty(r.attribName)){r.attribName=r.attribValue="";return}if(r.opt.xmlns){var i=qname(r.attribName,true);var a=i.prefix;var s=i.local;if(a==="xmlns"){if(s==="xml"&&r.attribValue!==d){strictFail(r,"xml: prefix must be bound to "+d+"\n"+"Actual: "+r.attribValue)}else if(s==="xmlns"&&r.attribValue!==u){strictFail(r,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+r.attribValue)}else{var l=r.tag;var p=r.tags[r.tags.length-1]||r;if(l.ns===p.ns){l.ns=Object.create(p.ns)}l.ns[s]=r.attribValue}}r.attribList.push([r.attribName,r.attribValue])}else{r.tag.attributes[r.attribName]=r.attribValue;emitNode(r,"onattribute",{name:r.attribName,value:r.attribValue})}r.attribName=r.attribValue=""}function openTag(r,i){if(r.opt.xmlns){var a=r.tag;var s=qname(r.tagName);a.prefix=s.prefix;a.local=s.local;a.uri=a.ns[s.prefix]||"";if(a.prefix&&!a.uri){strictFail(r,"Unbound namespace prefix: "+JSON.stringify(r.tagName));a.uri=s.prefix}var l=r.tags[r.tags.length-1]||r;if(a.ns&&l.ns!==a.ns){Object.keys(a.ns).forEach((function(i){emitNode(r,"onopennamespace",{prefix:i,uri:a.ns[i]})}))}for(var p=0,c=r.attribList.length;p";r.tagName="";r.state=w.SCRIPT;return}emitNode(r,"onscript",r.script);r.script=""}var i=r.tags.length;var a=r.tagName;if(!r.strict){a=a[r.looseCase]()}var s=a;while(i--){var l=r.tags[i];if(l.name!==s){strictFail(r,"Unexpected close tag")}else{break}}if(i<0){strictFail(r,"Unmatched closing tag: "+r.tagName);r.textNode+="";r.state=w.TEXT;return}r.tagName=a;var p=r.tags.length;while(p-- >i){var c=r.tag=r.tags.pop();r.tagName=r.tag.name;emitNode(r,"onclosetag",r.tagName);var d={};for(var u in c.ns){d[u]=c.ns[u]}var h=r.tags[r.tags.length-1]||r;if(r.opt.xmlns&&c.ns!==h.ns){Object.keys(c.ns).forEach((function(i){var a=c.ns[i];emitNode(r,"onclosenamespace",{prefix:i,uri:a})}))}}if(i===0)r.closedRoot=true;r.tagName=r.attribValue=r.attribName="";r.attribList.length=0;r.state=w.TEXT}function parseEntity(r){var i=r.entity;var a=i.toLowerCase();var s;var l="";if(r.ENTITIES[i]){return r.ENTITIES[i]}if(r.ENTITIES[a]){return r.ENTITIES[a]}i=a;if(i.charAt(0)==="#"){if(i.charAt(1)==="x"){i=i.slice(2);s=parseInt(i,16);l=s.toString(16)}else{i=i.slice(1);s=parseInt(i,10);l=s.toString(10)}}i=i.replace(/^0+/,"");if(isNaN(s)||l.toLowerCase()!==i){strictFail(r,"Invalid character entity");return"&"+r.entity+";"}return String.fromCodePoint(s)}function beginWhiteSpace(r,i){if(i==="<"){r.state=w.OPEN_WAKA;r.startTagPosition=r.position}else if(!isWhitespace(i)){strictFail(r,"Non-whitespace before first tag.");r.textNode=i;r.state=w.TEXT}}function charAt(r,i){var a="";if(i"){emitNode(i,"onsgmldeclaration",i.sgmlDecl);i.sgmlDecl="";i.state=w.TEXT}else if(isQuote(s)){i.state=w.SGML_DECL_QUOTED;i.sgmlDecl+=s}else{i.sgmlDecl+=s}continue;case w.SGML_DECL_QUOTED:if(s===i.q){i.state=w.SGML_DECL;i.q=""}i.sgmlDecl+=s;continue;case w.DOCTYPE:if(s===">"){i.state=w.TEXT;emitNode(i,"ondoctype",i.doctype);i.doctype=true}else{i.doctype+=s;if(s==="["){i.state=w.DOCTYPE_DTD}else if(isQuote(s)){i.state=w.DOCTYPE_QUOTED;i.q=s}}continue;case w.DOCTYPE_QUOTED:i.doctype+=s;if(s===i.q){i.q="";i.state=w.DOCTYPE}continue;case w.DOCTYPE_DTD:i.doctype+=s;if(s==="]"){i.state=w.DOCTYPE}else if(isQuote(s)){i.state=w.DOCTYPE_DTD_QUOTED;i.q=s}continue;case w.DOCTYPE_DTD_QUOTED:i.doctype+=s;if(s===i.q){i.state=w.DOCTYPE_DTD;i.q=""}continue;case w.COMMENT:if(s==="-"){i.state=w.COMMENT_ENDING}else{i.comment+=s}continue;case w.COMMENT_ENDING:if(s==="-"){i.state=w.COMMENT_ENDED;i.comment=textopts(i.opt,i.comment);if(i.comment){emitNode(i,"oncomment",i.comment)}i.comment=""}else{i.comment+="-"+s;i.state=w.COMMENT}continue;case w.COMMENT_ENDED:if(s!==">"){strictFail(i,"Malformed comment");i.comment+="--"+s;i.state=w.COMMENT}else{i.state=w.TEXT}continue;case w.CDATA:if(s==="]"){i.state=w.CDATA_ENDING}else{i.cdata+=s}continue;case w.CDATA_ENDING:if(s==="]"){i.state=w.CDATA_ENDING_2}else{i.cdata+="]"+s;i.state=w.CDATA}continue;case w.CDATA_ENDING_2:if(s===">"){if(i.cdata){emitNode(i,"oncdata",i.cdata)}emitNode(i,"onclosecdata");i.cdata="";i.state=w.TEXT}else if(s==="]"){i.cdata+="]"}else{i.cdata+="]]"+s;i.state=w.CDATA}continue;case w.PROC_INST:if(s==="?"){i.state=w.PROC_INST_ENDING}else if(isWhitespace(s)){i.state=w.PROC_INST_BODY}else{i.procInstName+=s}continue;case w.PROC_INST_BODY:if(!i.procInstBody&&isWhitespace(s)){continue}else if(s==="?"){i.state=w.PROC_INST_ENDING}else{i.procInstBody+=s}continue;case w.PROC_INST_ENDING:if(s===">"){emitNode(i,"onprocessinginstruction",{name:i.procInstName,body:i.procInstBody});i.procInstName=i.procInstBody="";i.state=w.TEXT}else{i.procInstBody+="?"+s;i.state=w.PROC_INST_BODY}continue;case w.OPEN_TAG:if(isMatch(y,s)){i.tagName+=s}else{newTag(i);if(s===">"){openTag(i)}else if(s==="/"){i.state=w.OPEN_TAG_SLASH}else{if(!isWhitespace(s)){strictFail(i,"Invalid character in tag name")}i.state=w.ATTRIB}}continue;case w.OPEN_TAG_SLASH:if(s===">"){openTag(i,true);closeTag(i)}else{strictFail(i,"Forward-slash in opening tag not followed by >");i.state=w.ATTRIB}continue;case w.ATTRIB:if(isWhitespace(s)){continue}else if(s===">"){openTag(i)}else if(s==="/"){i.state=w.OPEN_TAG_SLASH}else if(isMatch(g,s)){i.attribName=s;i.attribValue="";i.state=w.ATTRIB_NAME}else{strictFail(i,"Invalid attribute name")}continue;case w.ATTRIB_NAME:if(s==="="){i.state=w.ATTRIB_VALUE}else if(s===">"){strictFail(i,"Attribute without value");i.attribValue=i.attribName;attrib(i);openTag(i)}else if(isWhitespace(s)){i.state=w.ATTRIB_NAME_SAW_WHITE}else if(isMatch(y,s)){i.attribName+=s}else{strictFail(i,"Invalid attribute name")}continue;case w.ATTRIB_NAME_SAW_WHITE:if(s==="="){i.state=w.ATTRIB_VALUE}else if(isWhitespace(s)){continue}else{strictFail(i,"Attribute without value");i.tag.attributes[i.attribName]="";i.attribValue="";emitNode(i,"onattribute",{name:i.attribName,value:""});i.attribName="";if(s===">"){openTag(i)}else if(isMatch(g,s)){i.attribName=s;i.state=w.ATTRIB_NAME}else{strictFail(i,"Invalid attribute name");i.state=w.ATTRIB}}continue;case w.ATTRIB_VALUE:if(isWhitespace(s)){continue}else if(isQuote(s)){i.q=s;i.state=w.ATTRIB_VALUE_QUOTED}else{strictFail(i,"Unquoted attribute value");i.state=w.ATTRIB_VALUE_UNQUOTED;i.attribValue=s}continue;case w.ATTRIB_VALUE_QUOTED:if(s!==i.q){if(s==="&"){i.state=w.ATTRIB_VALUE_ENTITY_Q}else{i.attribValue+=s}continue}attrib(i);i.q="";i.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:if(isWhitespace(s)){i.state=w.ATTRIB}else if(s===">"){openTag(i)}else if(s==="/"){i.state=w.OPEN_TAG_SLASH}else if(isMatch(g,s)){strictFail(i,"No whitespace between attributes");i.attribName=s;i.attribValue="";i.state=w.ATTRIB_NAME}else{strictFail(i,"Invalid attribute name")}continue;case w.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(s)){if(s==="&"){i.state=w.ATTRIB_VALUE_ENTITY_U}else{i.attribValue+=s}continue}attrib(i);if(s===">"){openTag(i)}else{i.state=w.ATTRIB}continue;case w.CLOSE_TAG:if(!i.tagName){if(isWhitespace(s)){continue}else if(notMatch(g,s)){if(i.script){i.script+=""){closeTag(i)}else if(isMatch(y,s)){i.tagName+=s}else if(i.script){i.script+=""){closeTag(i)}else{strictFail(i,"Invalid characters in closing tag")}continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:var u;var h;switch(i.state){case w.TEXT_ENTITY:u=w.TEXT;h="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:u=w.ATTRIB_VALUE_QUOTED;h="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:u=w.ATTRIB_VALUE_UNQUOTED;h="attribValue";break}if(s===";"){if(i.opt.unparsedEntities){var x=parseEntity(i);i.entity="";i.state=u;i.write(x)}else{i[h]+=parseEntity(i);i.entity="";i.state=u}}else if(isMatch(i.entity.length?v:b,s)){i.entity+=s}else{strictFail(i,"Invalid character in entity name");i[h]+="&"+i.entity+s;i.entity="";i.state=u}continue;default:{throw new Error(i,"Unknown state: "+i.state)}}}if(i.position>=i.bufferCheckPosition){checkBufferLength(i)}return i} -/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var i=Math.floor;var fromCodePoint=function(){var a=16384;var s=[];var l;var p;var c=-1;var d=arguments.length;if(!d){return""}var u="";while(++c1114111||i(h)!==h){throw RangeError("Invalid code point: "+h)}if(h<=65535){s.push(h)}else{h-=65536;l=(h>>10)+55296;p=h%1024+56320;s.push(l,p)}if(c+1===d||s.length>a){u+=r.apply(null,s);s.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},5413:(r,i,a)=>{const{EventEmitter:s}=a(2361);const l=new Error("Stream was destroyed");const p=new Error("Premature close");const c=a(4282);const d=a(9003);const u=(1<<28)-1;const h=1;const g=2;const y=4;const b=8;const v=u^h;const w=u^g;const x=1<<4;const S=2<<4;const _=4<<4;const T=8<<4;const N=16<<4;const P=32<<4;const O=64<<4;const R=128<<4;const C=256<<4;const k=512<<4;const A=1024<<4;const D=2048<<4;const I=4096<<4;const L=8192<<4;const B=N|P;const M=x|I;const j=_|x;const z=C|T;const U=N|L;const q=u^x;const H=u^_;const V=u^(_|I);const G=u^I;const W=u^N;const $=u^(T|k);const X=u^O;const K=u^B;const J=u^D;const Q=u^S;const Y=u^L;const Z=u^U;const ee=1<<18;const te=2<<18;const re=4<<18;const ie=8<<18;const ne=16<<18;const ae=32<<18;const se=64<<18;const oe=128<<18;const le=256<<18;const pe=512<<18;const ce=u^(ee|le);const de=u^re;const ue=u^pe;const me=u^ne;const fe=u^ie;const he=u^oe;const ge=u^te;const ye=x|ee;const be=u^ye;const ve=A|ae;const we=y|b|g;const xe=we|h;const Se=we|ve;const _e=de&H;const Ee=oe|D;const Te=Ee&be;const Ne=xe|Te;const Pe=xe|O|A;const Oe=xe|A|T;const Re=xe|O|T;const Ce=xe|C|T|k;const ke=xe|x|O|A|I|L;const Ae=we|O|A;const De=S|xe|D|_;const Ie=xe|pe|ae;const Le=ie|ne;const Be=ie|ee;const Me=ie|ne|xe|ee;const je=xe|ee|ie;const ze=re|ee;const Fe=ee|le;const Ue=xe|pe|Be|ae;const qe=ne|we|pe|ae;const He=te|xe|oe|re;const Ve=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(r,{highWaterMark:i=16384,map:a=null,mapWritable:s,byteLength:l,byteLengthWritable:p}={}){this.stream=r;this.queue=new d;this.highWaterMark=i;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=p||l||defaultByteLength;this.map=s||a;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&ae)!==0}push(r){if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);if(this.buffered0;this.error=null;this.pipeline=null;this.byteLength=p||l||defaultByteLength;this.map=s||a;this.pipeTo=null;this.afterRead=afterRead.bind(this);this.afterUpdateNextTick=updateReadNT.bind(this)}get ended(){return(this.stream._duplexState&A)!==0}pipe(r,i){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof i!=="function")i=null;this.stream._duplexState|=P;this.pipeTo=r;this.pipeline=new Pipeline(this.stream,r,i);if(i)this.stream.on("error",noop);if(isStreamx(r)){r._writableState.pipeline=this.pipeline;if(i)r.on("error",noop);r.on("finish",this.pipeline.finished.bind(this.pipeline))}else{const i=this.pipeline.done.bind(this.pipeline,r);const a=this.pipeline.done.bind(this.pipeline,r,null);r.on("error",i);r.on("close",a);r.on("finish",this.pipeline.finished.bind(this.pipeline))}r.on("drain",afterDrain.bind(this));this.stream.emit("piping",r);r.emit("pipe",this.stream)}push(r){const i=this.stream;if(r===null){this.highWaterMark=0;i._duplexState=(i._duplexState|O)&V;return false}if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);i._duplexState=(i._duplexState|T)&G;return this.buffered0)i.push(this.shift());for(let r=0;r0)s.drains.shift().resolve(false);if(s.pipeline!==null)s.pipeline.done(i,r)}}function afterWrite(r){const i=this.stream;if(r)i.destroy(r);i._duplexState&=ce;if(this.drains!==null)tickDrains(this.drains);if((i._duplexState&Me)===ne){i._duplexState&=me;if((i._duplexState&se)===se){i.emit("drain")}}this.updateCallback()}function afterRead(r){if(r)this.stream.destroy(r);this.stream._duplexState&=q;if(this.readAhead===false&&(this.stream._duplexState&N)===0)this.stream._duplexState&=Y;this.updateCallback()}function updateReadNT(){if((this.stream._duplexState&S)===0){this.stream._duplexState&=J;this.update()}}function updateWriteNT(){if((this.stream._duplexState&te)===0){this.stream._duplexState&=he;this.update()}}function tickDrains(r){for(let i=0;i=r._readableState.highWaterMark}static isPaused(r){return(r._duplexState&N)===0}[Ve](){const r=this;let i=null;let a=null;let s=null;this.on("error",(r=>{i=r}));this.on("readable",onreadable);this.on("close",onclose);return{[Ve](){return this},next(){return new Promise((function(i,l){a=i;s=l;const p=r.read();if(p!==null)ondata(p);else if((r._duplexState&b)!==0)ondata(null)}))},return(){return destroy(null)},throw(r){return destroy(r)}};function onreadable(){if(a!==null)ondata(r.read())}function onclose(){if(a!==null)ondata(null)}function ondata(p){if(s===null)return;if(i)s(i);else if(p===null&&(r._duplexState&A)===0)s(l);else a({value:p,done:p===null});s=a=null}function destroy(i){r.destroy(i);return new Promise(((a,s)=>{if(r._duplexState&b)return a({value:undefined,done:true});r.once("close",(function(){if(i)s(i);else a({value:undefined,done:true})}))}))}}}class Writable extends Stream{constructor(r){super(r);this._duplexState|=h|A;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final;if(r.eagerOpen)this._writableState.updateNextTick()}}_writev(r,i){i(null)}_write(r,i){this._writableState.autoBatch(r,i)}_final(r){r(null)}static isBackpressured(r){return(r._duplexState&qe)!==0}static drained(r){if(r.destroyed)return Promise.resolve(false);const i=r._writableState;const a=isWritev(r)?Math.min(1,i.queue.length):i.queue.length;const s=a+(r._duplexState&le?1:0);if(s===0)return Promise.resolve(true);if(i.drains===null)i.drains=[];return new Promise((r=>{i.drains.push({writes:s,resolve:r})}))}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Duplex extends Readable{constructor(r){super(r);this._duplexState=h|this._duplexState&L;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final}}_writev(r,i){i(null)}_write(r,i){this._writableState.autoBatch(r,i)}_final(r){r(null)}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Transform extends Duplex{constructor(r){super(r);this._transformState=new TransformState(this);if(r){if(r.transform)this._transform=r.transform;if(r.flush)this._flush=r.flush}}_write(r,i){if(this._readableState.buffered>=this._readableState.highWaterMark){this._transformState.data=r}else{this._transform(r,this._transformState.afterTransform)}}_read(r){if(this._transformState.data!==null){const i=this._transformState.data;this._transformState.data=null;r(null);this._transform(i,this._transformState.afterTransform)}else{r(null)}}destroy(r){super.destroy(r);if(this._transformState.data!==null){this._transformState.data=null;this._transformState.afterTransform()}}_transform(r,i){i(null,r)}_flush(r){r(null)}_final(r){this._transformState.afterFinal=r;this._flush(transformAfterFlush.bind(this))}}class PassThrough extends Transform{}function transformAfterFlush(r,i){const a=this._transformState.afterFinal;if(r)return a(r);if(i!==null&&i!==undefined)this.push(i);this.push(null);a(null)}function pipelinePromise(...r){return new Promise(((i,a)=>pipeline(...r,(r=>{if(r)return a(r);i()}))))}function pipeline(r,...i){const a=Array.isArray(r)?[...r,...i]:[r,...i];const s=a.length&&typeof a[a.length-1]==="function"?a.pop():null;if(a.length<2)throw new Error("Pipeline requires at least 2 streams");let l=a[0];let c=null;let d=null;for(let r=1;r1,onerror);l.pipe(c)}l=c}if(s){let r=false;const i=isStreamx(c)||!!(c._writableState&&c._writableState.autoDestroy);c.on("error",(r=>{if(d===null)d=r}));c.on("finish",(()=>{r=true;if(!i)s(d)}));if(i){c.on("close",(()=>s(d||(r?null:p))))}}return c;function errorHandle(r,i,a,s){r.on("error",s);r.on("close",onclose);function onclose(){if(i&&r._readableState&&!r._readableState.ended)return s(p);if(a&&r._writableState&&!r._writableState.ended)return s(p)}}function onerror(r){if(!r||d)return;d=r;for(const i of a){i.destroy(r)}}}function isStream(r){return!!r._readableState||!!r._writableState}function isStreamx(r){return typeof r._duplexState==="number"&&isStream(r)}function getStreamError(r){const i=r._readableState&&r._readableState.error||r._writableState&&r._writableState.error;return i===l?null:i}function isReadStreamx(r){return isStreamx(r)&&r.readable}function isTypedArray(r){return typeof r==="object"&&r!==null&&typeof r.byteLength==="number"}function defaultByteLength(r){return isTypedArray(r)?r.byteLength:1024}function noop(){}function abort(){this.destroy(new Error("Stream aborted."))}function isWritev(r){return r._writev!==Writable.prototype._writev&&r._writev!==Duplex.prototype._writev}r.exports={pipeline:pipeline,pipelinePromise:pipelinePromise,isStream:isStream,isStreamx:isStreamx,getStreamError:getStreamError,Stream:Stream,Writable:Writable,Readable:Readable,Duplex:Duplex,Transform:Transform,PassThrough:PassThrough}},6492:(r,i,a)=>{"use strict";var s=a(7289).Buffer;var l=s.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"&&(s.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=s.allocUnsafe(i)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var i;var a;if(this.lastNeed){i=this.fillLast(r);if(i===undefined)return"";a=this.lastNeed;this.lastNeed=0}else{a=0}if(a>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,a){var s=i.length-1;if(s=0){if(l>0)r.lastNeed=l-1;return l}if(--s=0){if(l>0)r.lastNeed=l-2;return l}if(--s=0){if(l>0){if(l===2)l=0;else r.lastNeed=l-3}return l}return 0}function utf8CheckExtraBytes(r,i,a){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 a=utf8CheckExtraBytes(this,r,i);if(a!==undefined)return a;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 a=utf8CheckIncomplete(this,r,i);if(!this.lastNeed)return r.toString("utf8",i);this.lastTotal=a;var s=r.length-(a-this.lastNeed);r.copy(this.lastChar,0,s);return r.toString("utf8",i,s)}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 a=r.toString("utf16le",i);if(a){var s=a.charCodeAt(a.length-1);if(s>=55296&&s<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return a.slice(0,-1)}}return a}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 a=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,a)}return i}function base64Text(r,i){var a=(r.length-i)%3;if(a===0)return r.toString("base64",i);this.lastNeed=3-a;this.lastTotal=3;if(a===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-a)}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):""}},1405:(r,i,a)=>{const s={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{r.exports=a(7147).constants||s}catch{r.exports=s}},4125:(r,i,a)=>{const{Writable:s,Readable:l,getStreamError:p}=a(5413);const c=a(9003);const d=a(4785);const u=a(4633);const h=d.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new c;this._offset=0}push(r){this.buffered+=r.byteLength;this.queue.push(r)}shiftFirst(r){return this._buffered===0?null:this._next(r)}shift(r){if(r>this.buffered)return null;if(r===0)return h;let i=this._next(r);if(r===i.byteLength)return i;const a=[i];while((r-=i.byteLength)>0){i=this._next(r);a.push(i)}return d.concat(a)}_next(r){const i=this.queue.peek();const a=i.byteLength-this._offset;if(r>=a){const r=this._offset?i.subarray(this._offset,i.byteLength):i;this.queue.shift();this._offset=0;this.buffered-=a;this.shifted+=a;return r}this.buffered-=r;this.shifted+=r;return i.subarray(this._offset,this._offset+=r)}}class Source extends l{constructor(r,i,a){super();this.header=i;this.offset=a;this._parent=r}_read(r){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}r(null)}_predestroy(){this._parent.destroy(p(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(r){this._detach();r(null)}}class Extract extends s{constructor(r){super(r);if(!r)r={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=r.filenameEncoding||"utf-8";this._allowUnknownFormat=!!r.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(r){this._locked=false;if(r){this.destroy(r);this._continueWrite(r);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=u.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(r){this._continueWrite(r);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(r){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=u.decodeLongPath(r,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=u.decodeLongPath(r,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=u.decodePax(r);break;case"pax-header":this._pax=this._paxGlobal===null?u.decodePax(r):Object.assign({},this._paxGlobal,u.decodePax(r));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const r=this._buffer.shift(this._header.size);try{this._decodeLongHeader(r)}catch(r){this._continueWrite(r);return false}return true}_consumeStream(){const r=this._buffer.shiftFirst(this._missing);if(r===null)return false;this._missing-=r.byteLength;const i=this._stream.push(r);if(this._missing===0){this._stream.push(null);if(i)this._stream._detach();return i&&this._locked===false}return i}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const r=this._buffer.shiftFirst(this._missing);if(r!==null)this._missing-=r.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(r){const i=this._callback;this._callback=noop;i(r)}_write(r,i){this._callback=i;this._buffer.push(r);this._update()}_final(r){this._finished=this._missing===0&&this._buffer.buffered===0;r(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(r){if(this._stream)this._stream.destroy(p(this));r(null)}[Symbol.asyncIterator](){let r=null;let i=null;let a=null;let s=null;let l=null;const p=this;this.on("entry",onentry);this.on("error",(i=>{r=i}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(r){return destroy(r)}};function consumeCallback(r){if(!l)return;const i=l;l=null;i(r)}function onnext(l,c){if(r){return c(r)}if(s){l({value:s,done:false});s=null;return}i=l;a=c;consumeCallback(null);if(p._finished&&i){i({value:undefined,done:true});i=a=null}}function onentry(r,p,c){l=c;p.on("error",noop);if(i){i({value:p,done:false});i=a=null}else{s=p}}function onclose(){consumeCallback(r);if(!i)return;if(r)a(r);else i({value:undefined,done:true});i=a=null}function destroy(r){p.destroy(r);consumeCallback(r);return new Promise(((i,a)=>{if(p.destroyed)return i({value:undefined,done:true});p.once("close",(function(){if(r)a(r);else i({value:undefined,done:true})}))}))}}}r.exports=function extract(r){return new Extract(r)};function noop(){}function overflow(r){r&=511;return r&&512-r}},4633:(r,i,a)=>{const s=a(4785);const l="0000000000000000000";const p="7777777777777777777";const c="0".charCodeAt(0);const d=s.from([117,115,116,97,114,0]);const u=s.from([c,c]);const h=s.from([117,115,116,97,114,32]);const g=s.from([32,0]);const y=4095;const b=257;const v=263;i.decodeLongPath=function decodeLongPath(r,i){return decodeStr(r,0,r.length,i)};i.encodePax=function encodePax(r){let i="";if(r.name)i+=addLength(" path="+r.name+"\n");if(r.linkname)i+=addLength(" linkpath="+r.linkname+"\n");const a=r.pax;if(a){for(const r in a){i+=addLength(" "+r+"="+a[r]+"\n")}}return s.from(i)};i.decodePax=function decodePax(r){const i={};while(r.length){let a=0;while(a100){const r=a.indexOf("/");if(r===-1)return null;l+=l?"/"+a.slice(0,r):a.slice(0,r);a=a.slice(r+1)}if(s.byteLength(a)>100||s.byteLength(l)>155)return null;if(r.linkname&&s.byteLength(r.linkname)>100)return null;s.write(i,a);s.write(i,encodeOct(r.mode&y,6),100);s.write(i,encodeOct(r.uid,6),108);s.write(i,encodeOct(r.gid,6),116);encodeSize(r.size,i,124);s.write(i,encodeOct(r.mtime.getTime()/1e3|0,11),136);i[156]=c+toTypeflag(r.type);if(r.linkname)s.write(i,r.linkname,157);s.copy(d,i,b);s.copy(u,i,v);if(r.uname)s.write(i,r.uname,265);if(r.gname)s.write(i,r.gname,297);s.write(i,encodeOct(r.devmajor||0,6),329);s.write(i,encodeOct(r.devminor||0,6),337);if(l)s.write(i,l,345);s.write(i,encodeOct(cksum(i),6),148);return i};i.decode=function decode(r,i,a){let s=r[156]===0?0:r[156]-c;let l=decodeStr(r,0,100,i);const p=decodeOct(r,100,8);const d=decodeOct(r,108,8);const u=decodeOct(r,116,8);const h=decodeOct(r,124,12);const g=decodeOct(r,136,12);const y=toType(s);const b=r[157]===0?null:decodeStr(r,157,100,i);const v=decodeStr(r,265,32);const w=decodeStr(r,297,32);const x=decodeOct(r,329,8);const S=decodeOct(r,337,8);const _=cksum(r);if(_===8*32)return null;if(_!==decodeOct(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(r)){if(r[345])l=decodeStr(r,345,155,i)+"/"+l}else if(isGNU(r)){}else{if(!a){throw new Error("Invalid tar header: unknown format.")}}if(s===0&&l&&l[l.length-1]==="/")s=5;return{name:l,mode:p,uid:d,gid:u,size:h,mtime:new Date(1e3*g),type:y,linkname:b,uname:v,gname:w,devmajor:x,devminor:S,pax:null}};function isUSTAR(r){return s.equals(d,r.subarray(b,b+6))}function isGNU(r){return s.equals(h,r.subarray(b,b+6))&&s.equals(g,r.subarray(v,v+2))}function clamp(r,i,a){if(typeof r!=="number")return a;r=~~r;if(r>=i)return i;if(r>=0)return r;r+=i;if(r>=0)return r;return 0}function toType(r){switch(r){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function toTypeflag(r){switch(r){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function indexOf(r,i,a,s){for(;ai)return p.slice(0,i)+" ";return l.slice(0,i-r.length)+r+" "}function encodeSizeBin(r,i,a){i[a]=128;for(let s=11;s>0;s--){i[a+s]=r&255;r=Math.floor(r/256)}}function encodeSize(r,i,a){if(r.toString(8).length>11){encodeSizeBin(r,i,a)}else{s.write(i,encodeOct(r,11),a)}}function parse256(r){let i;if(r[0]===128)i=true;else if(r[0]===255)i=false;else return null;const a=[];let s;for(s=r.length-1;s>0;s--){const l=r[s];if(i)a.push(l);else a.push(255-l)}let l=0;const p=a.length;for(s=0;s=Math.pow(10,a))a++;return i+a+r}},8156:(r,i,a)=>{i.extract=a(4125);i.pack=a(8845)},8845:(r,i,a)=>{const{Readable:s,Writable:l,getStreamError:p}=a(5413);const c=a(4785);const d=a(1405);const u=a(4633);const h=493;const g=420;const y=c.alloc(1024);class Sink extends l{constructor(r,i,a){super({mapWritable:mapWritable,eagerOpen:true});this.written=0;this.header=i;this._callback=a;this._linkname=null;this._isLinkname=i.type==="symlink"&&!i.linkname;this._isVoid=i.type!=="file"&&i.type!=="contiguous-file";this._finished=false;this._pack=r;this._openCallback=null;if(this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(r){this._openCallback=r;if(this._pack._stream===this)this._continueOpen()}_continuePack(r){if(this._callback===null)return;const i=this._callback;this._callback=null;i(r)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;const r=this._openCallback;this._openCallback=null;if(r===null)return;if(this._pack.destroying)return r(new Error("pack stream destroyed"));if(this._pack._finalized)return r(new Error("pack stream is already finalized"));this._pack._stream=this;if(!this._isLinkname){this._pack._encode(this.header)}if(this._isVoid){this._finish();this._continuePack(null)}r(null)}_write(r,i){if(this._isLinkname){this._linkname=this._linkname?c.concat([this._linkname,r]):r;return i(null)}if(this._isVoid){if(r.byteLength>0){return i(new Error("No body allowed for this entry"))}return i()}this.written+=r.byteLength;if(this._pack.push(r))return i();this._pack._drain=i}_finish(){if(this._finished)return;this._finished=true;if(this._isLinkname){this.header.linkname=this._linkname?c.toString(this._linkname,"utf-8"):"";this._pack._encode(this.header)}overflow(this._pack,this.header.size);this._pack._done(this)}_final(r){if(this.written!==this.header.size){return r(new Error("Size mismatch"))}this._finish();r(null)}_getError(){return p(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(r){this._pack._done(this);this._continuePack(this._finished?null:this._getError());r()}}class Pack extends s{constructor(r){super(r);this._drain=noop;this._finalized=false;this._finalizing=false;this._pending=[];this._stream=null}entry(r,i,a){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");if(typeof i==="function"){a=i;i=null}if(!a)a=noop;if(!r.size||r.type==="symlink")r.size=0;if(!r.type)r.type=modeToType(r.mode);if(!r.mode)r.mode=r.type==="directory"?h:g;if(!r.uid)r.uid=0;if(!r.gid)r.gid=0;if(!r.mtime)r.mtime=new Date;if(typeof i==="string")i=c.from(i);const s=new Sink(this,r,a);if(c.isBuffer(i)){r.size=i.byteLength;s.write(i);s.end();return s}if(s._isVoid){return s}return s}finalize(){if(this._stream||this._pending.length>0){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(y);this.push(null)}_done(r){if(r!==this._stream)return;this._stream=null;if(this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(r){if(!r.pax){const i=u.encode(r);if(i){this.push(i);return}}this._encodePax(r)}_encodePax(r){const i=u.encodePax({name:r.name,linkname:r.linkname,pax:r.pax});const a={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:i.byteLength,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(u.encode(a));this.push(i);overflow(this,i.byteLength);a.size=r.size;a.type=r.type;this.push(u.encode(a))}_doDrain(){const r=this._drain;this._drain=noop;r()}_predestroy(){const r=p(this);if(this._stream)this._stream.destroy(r);while(this._pending.length){const i=this._pending.shift();i.destroy(r);i._continueOpen()}this._doDrain()}_read(r){this._doDrain();r()}}r.exports=function pack(r){return new Pack(r)};function modeToType(r){switch(r&d.S_IFMT){case d.S_IFBLK:return"block-device";case d.S_IFCHR:return"character-device";case d.S_IFDIR:return"directory";case d.S_IFIFO:return"fifo";case d.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(r,i){i&=511;if(i)r.push(y.subarray(0,512-i))}function mapWritable(r){return c.isBuffer(r)?r:c.from(r)}},6372:(r,i,a)=>{"use strict";var s=a(5477);var l=a(1229);var p={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(r){return r.split("\0").map((function(r){return r.normalize("NFC")})).join("\0")}function findStatus(r){var i=0;var a=l.length-1;while(i<=a){var s=Math.floor((i+a)/2);var p=l[s];if(p[0][0]<=r&&p[0][1]>=r){return p}else if(p[0][0]>r){a=s-1}else{i=s+1}}return null}var c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(r){return r.replace(c,"_").length}function mapChars(r,i,a){var s=false;var l="";var c=countSymbols(r);for(var d=0;d253||d.length===0){p.error=true}for(var u=0;u63||c.length===0){p.error=true;break}}}if(p.error)return null;return c.join(".")};r.exports.toUnicode=function(r,i){var a=processing(r,i,p.NONTRANSITIONAL);return{domain:a.string,error:a.error}};r.exports.PROCESSING_OPTIONS=p},8717:r=>{r.exports=Traverse;function Traverse(r){if(!(this instanceof Traverse))return new Traverse(r);this.value=r}Traverse.prototype.get=function(r){var i=this.value;for(var a=0;a{var i;var a;var s;var l;var p;var c;var d;var u;var h;var g;var y;var b;var v;var w;var x;var S;var _;var T;var N;var P;var O;var R;var C;var k;var A;var D;var I;var L;var B;var M;var j;(function(i){var a=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(r){i(createExporter(a,createExporter(r)))}))}else if(true&&typeof r.exports==="object"){i(createExporter(a,createExporter(r.exports)))}else{i(createExporter(a))}function createExporter(r,i){if(r!==a){if(typeof Object.create==="function"){Object.defineProperty(r,"__esModule",{value:true})}else{r.__esModule=true}}return function(a,s){return r[a]=i?i(a,s):s}}})((function(r){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a))r[a]=i[a]};i=function(r,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");z(r,i);function __(){this.constructor=r}r.prototype=i===null?Object.create(i):(__.prototype=i.prototype,new __)};a=Object.assign||function(r){for(var i,a=1,s=arguments.length;a=0;d--)if(c=r[d])p=(l<3?c(p):l>3?c(i,a,p):c(i,a))||p;return l>3&&p&&Object.defineProperty(i,a,p),p};p=function(r,i){return function(a,s){i(a,s,r)}};c=function(r,i,a,s,l,p){function accept(r){if(r!==void 0&&typeof r!=="function")throw new TypeError("Function expected");return r}var c=s.kind,d=c==="getter"?"get":c==="setter"?"set":"value";var u=!i&&r?s["static"]?r:r.prototype:null;var h=i||(u?Object.getOwnPropertyDescriptor(u,s.name):{});var g,y=false;for(var b=a.length-1;b>=0;b--){var v={};for(var w in s)v[w]=w==="access"?{}:s[w];for(var w in s.access)v.access[w]=s.access[w];v.addInitializer=function(r){if(y)throw new TypeError("Cannot add initializers after decoration has completed");p.push(accept(r||null))};var x=(0,a[b])(c==="accessor"?{get:h.get,set:h.set}:h[d],v);if(c==="accessor"){if(x===void 0)continue;if(x===null||typeof x!=="object")throw new TypeError("Object expected");if(g=accept(x.get))h.get=g;if(g=accept(x.set))h.set=g;if(g=accept(x.init))l.unshift(g)}else if(g=accept(x)){if(c==="field")l.unshift(g);else h[d]=g}}if(u)Object.defineProperty(u,s.name,h);y=true};d=function(r,i,a){var s=arguments.length>2;for(var l=0;l0&&p[p.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!p||d[1]>p[0]&&d[1]=r.length)r=void 0;return{value:r&&r[s++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};x=function(r,i){var a=typeof Symbol==="function"&&r[Symbol.iterator];if(!a)return r;var s=a.call(r),l,p=[],c;try{while((i===void 0||i-- >0)&&!(l=s.next()).done)p.push(l.value)}catch(r){c={error:r}}finally{try{if(l&&!l.done&&(a=s["return"]))a.call(s)}finally{if(c)throw c.error}}return p};S=function(){for(var r=[],i=0;i1||resume(r,i)}))}}function resume(r,i){try{step(s[r](i))}catch(r){settle(p[0][3],r)}}function step(r){r.value instanceof N?Promise.resolve(r.value.v).then(fulfill,reject):settle(p[0][2],r)}function fulfill(r){resume("next",r)}function reject(r){resume("throw",r)}function settle(r,i){if(r(i),p.shift(),p.length)resume(p[0][0],p[0][1])}};O=function(r){var i,a;return i={},verb("next"),verb("throw",(function(r){throw r})),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(s,l){i[s]=r[s]?function(i){return(a=!a)?{value:N(r[s](i)),done:false}:l?l(i):i}:l}};R=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],a;return i?i.call(r):(r=typeof w==="function"?w(r):r[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(i){a[i]=r[i]&&function(a){return new Promise((function(s,l){a=r[i](a),settle(s,l,a.done,a.value)}))}}function settle(r,i,a,s){Promise.resolve(s).then((function(i){r({value:i,done:a})}),i)}};C=function(r,i){if(Object.defineProperty){Object.defineProperty(r,"raw",{value:i})}else{r.raw=i}return r};var U=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i};k=function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))B(i,r,a);U(i,r);return i};A=function(r){return r&&r.__esModule?r:{default:r}};D=function(r,i,a,s){if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof i==="function"?r!==i||!s:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?s:a==="a"?s.call(r):s?s.value:i.get(r)};I=function(r,i,a,s,l){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof i==="function"?r!==i||!l:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?l.call(r,a):l?l.value=a:i.set(r,a),a};L=function(r,i){if(i===null||typeof i!=="object"&&typeof i!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r==="function"?i===r:r.has(i)};M=function(r,i,a){if(i!==null&&i!==void 0){if(typeof i!=="object"&&typeof i!=="function")throw new TypeError("Object expected.");var s;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");s=i[Symbol.asyncDispose]}if(s===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");s=i[Symbol.dispose]}if(typeof s!=="function")throw new TypeError("Object not disposable.");r.stack.push({value:i,dispose:s,async:a})}else if(a){r.stack.push({async:true})}return i};var q=typeof SuppressedError==="function"?SuppressedError:function(r,i,a){var s=new Error(a);return s.name="SuppressedError",s.error=r,s.suppressed=i,s};j=function(r){function fail(i){r.error=r.hasError?new q(i,r.error,"An error was suppressed during disposal."):i;r.hasError=true}function next(){while(r.stack.length){var i=r.stack.pop();try{var a=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(a).then(next,(function(r){fail(r);return next()}))}catch(r){fail(r)}}if(r.hasError)throw r.error}return next()};r("__extends",i);r("__assign",a);r("__rest",s);r("__decorate",l);r("__param",p);r("__esDecorate",c);r("__runInitializers",d);r("__propKey",u);r("__setFunctionName",h);r("__metadata",g);r("__awaiter",y);r("__generator",b);r("__exportStar",v);r("__createBinding",B);r("__values",w);r("__read",x);r("__spread",S);r("__spreadArrays",_);r("__spreadArray",T);r("__await",N);r("__asyncGenerator",P);r("__asyncDelegator",O);r("__asyncValues",R);r("__makeTemplateObject",C);r("__importStar",k);r("__importDefault",A);r("__classPrivateFieldGet",D);r("__classPrivateFieldSet",I);r("__classPrivateFieldIn",L);r("__addDisposableResource",M);r("__disposeResources",j)}))},4225:(r,i,a)=>{r.exports=a(4030)},4030:(r,i,a)=>{"use strict";var s=a(1808);var l=a(4404);var p=a(3685);var c=a(5687);var d=a(2361);var u=a(9491);var h=a(3837);i.httpOverHttp=httpOverHttp;i.httpsOverHttp=httpsOverHttp;i.httpOverHttps=httpOverHttps;i.httpsOverHttps=httpsOverHttps;function httpOverHttp(r){var i=new TunnelingAgent(r);i.request=p.request;return i}function httpsOverHttp(r){var i=new TunnelingAgent(r);i.request=p.request;i.createSocket=createSecureSocket;i.defaultPort=443;return i}function httpOverHttps(r){var i=new TunnelingAgent(r);i.request=c.request;return i}function httpsOverHttps(r){var i=new TunnelingAgent(r);i.request=c.request;i.createSocket=createSecureSocket;i.defaultPort=443;return i}function TunnelingAgent(r){var i=this;i.options=r||{};i.proxyOptions=i.options.proxy||{};i.maxSockets=i.options.maxSockets||p.Agent.defaultMaxSockets;i.requests=[];i.sockets=[];i.on("free",(function onFree(r,a,s,l){var p=toOptions(a,s,l);for(var c=0,d=i.requests.length;c=this.maxSockets){l.requests.push(p);return}l.createSocket(p,(function(i){i.on("free",onFree);i.on("close",onCloseOrRemove);i.on("agentRemove",onCloseOrRemove);r.onSocket(i);function onFree(){l.emit("free",i,p)}function onCloseOrRemove(r){l.removeSocket(i);i.removeListener("free",onFree);i.removeListener("close",onCloseOrRemove);i.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(r,i){var a=this;var s={};a.sockets.push(s);var l=mergeOptions({},a.proxyOptions,{method:"CONNECT",path:r.host+":"+r.port,agent:false,headers:{host:r.host+":"+r.port}});if(r.localAddress){l.localAddress=r.localAddress}if(l.proxyAuth){l.headers=l.headers||{};l.headers["Proxy-Authorization"]="Basic "+new Buffer(l.proxyAuth).toString("base64")}g("making CONNECT request");var p=a.request(l);p.useChunkedEncodingByDefault=false;p.once("response",onResponse);p.once("upgrade",onUpgrade);p.once("connect",onConnect);p.once("error",onError);p.end();function onResponse(r){r.upgrade=true}function onUpgrade(r,i,a){process.nextTick((function(){onConnect(r,i,a)}))}function onConnect(l,c,d){p.removeAllListeners();c.removeAllListeners();if(l.statusCode!==200){g("tunneling socket could not be established, statusCode=%d",l.statusCode);c.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+l.statusCode);u.code="ECONNRESET";r.request.emit("error",u);a.removeSocket(s);return}if(d.length>0){g("got illegal response body from proxy");c.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";r.request.emit("error",u);a.removeSocket(s);return}g("tunneling connection has established");a.sockets[a.sockets.indexOf(s)]=c;return i(c)}function onError(i){p.removeAllListeners();g("tunneling socket could not be established, cause=%s\n",i.message,i.stack);var l=new Error("tunneling socket could not be established, "+"cause="+i.message);l.code="ECONNRESET";r.request.emit("error",l);a.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(r){var i=this.sockets.indexOf(r);if(i===-1){return}this.sockets.splice(i,1);var a=this.requests.shift();if(a){this.createSocket(a,(function(r){a.request.onSocket(r)}))}};function createSecureSocket(r,i){var a=this;TunnelingAgent.prototype.createSocket.call(a,r,(function(s){var p=r.request.getHeader("host");var c=mergeOptions({},a.options,{socket:s,servername:p?p.replace(/:.*$/,""):r.host});var d=l.connect(0,c);a.sockets[a.sockets.indexOf(s)]=d;i(d)}))}function toOptions(r,i,a){if(typeof r==="string"){return{host:r,port:i,localAddress:a}}return r}function mergeOptions(r){for(var i=1,a=arguments.length;i{"use strict";Object.defineProperty(i,"__esModule",{value:true})},942:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isValidErrorCode=i.httpStatusFromErrorCode=i.TwirpErrorCode=i.BadRouteError=i.InternalServerErrorWith=i.InternalServerError=i.RequiredArgumentError=i.InvalidArgumentError=i.NotFoundError=i.TwirpError=void 0;class TwirpError extends Error{constructor(r,i){super(i);this.code=a.Internal;this.meta={};this.code=r;this.msg=i;Object.setPrototypeOf(this,TwirpError.prototype)}withMeta(r,i){this.meta[r]=i;return this}getMeta(r){return this.meta[r]||""}withCause(r,i=false){this._originalCause=r;if(i){this.withMeta("cause",r.message)}return this}cause(){return this._originalCause}toJSON(){try{return JSON.stringify({code:this.code,msg:this.msg,meta:this.meta})}catch(r){return`{"code": "internal", "msg": "There was an error but it could not be serialized into JSON"}`}}static fromObject(r){const i=r["code"]||a.Unknown;const s=r["msg"]||"unknown";const l=new TwirpError(i,s);if(r["meta"]){Object.keys(r["meta"]).forEach((i=>{l.withMeta(i,r["meta"][i])}))}return l}}i.TwirpError=TwirpError;class NotFoundError extends TwirpError{constructor(r){super(a.NotFound,r)}}i.NotFoundError=NotFoundError;class InvalidArgumentError extends TwirpError{constructor(r,i){super(a.InvalidArgument,r+" "+i);this.withMeta("argument",r)}}i.InvalidArgumentError=InvalidArgumentError;class RequiredArgumentError extends InvalidArgumentError{constructor(r){super(r,"is required")}}i.RequiredArgumentError=RequiredArgumentError;class InternalServerError extends TwirpError{constructor(r){super(a.Internal,r)}}i.InternalServerError=InternalServerError;class InternalServerErrorWith extends InternalServerError{constructor(r){super(r.message);this.withMeta("cause",r.name);this.withCause(r)}}i.InternalServerErrorWith=InternalServerErrorWith;class BadRouteError extends TwirpError{constructor(r,i,s){super(a.BadRoute,r);this.withMeta("twirp_invalid_route",i+" "+s)}}i.BadRouteError=BadRouteError;var a;(function(r){r["Canceled"]="canceled";r["Unknown"]="unknown";r["InvalidArgument"]="invalid_argument";r["Malformed"]="malformed";r["DeadlineExceeded"]="deadline_exceeded";r["NotFound"]="not_found";r["BadRoute"]="bad_route";r["AlreadyExists"]="already_exists";r["PermissionDenied"]="permission_denied";r["Unauthenticated"]="unauthenticated";r["ResourceExhausted"]="resource_exhausted";r["FailedPrecondition"]="failed_precondition";r["Aborted"]="aborted";r["OutOfRange"]="out_of_range";r["Unimplemented"]="unimplemented";r["Internal"]="internal";r["Unavailable"]="unavailable";r["DataLoss"]="data_loss"})(a=i.TwirpErrorCode||(i.TwirpErrorCode={}));function httpStatusFromErrorCode(r){switch(r){case a.Canceled:return 408;case a.Unknown:return 500;case a.InvalidArgument:return 400;case a.Malformed:return 400;case a.DeadlineExceeded:return 408;case a.NotFound:return 404;case a.BadRoute:return 404;case a.AlreadyExists:return 409;case a.PermissionDenied:return 403;case a.Unauthenticated:return 401;case a.ResourceExhausted:return 429;case a.FailedPrecondition:return 412;case a.Aborted:return 409;case a.OutOfRange:return 400;case a.Unimplemented:return 501;case a.Internal:return 500;case a.Unavailable:return 503;case a.DataLoss:return 500;default:return 0}}i.httpStatusFromErrorCode=httpStatusFromErrorCode;function isValidErrorCode(r){return httpStatusFromErrorCode(r)!=0}i.isValidErrorCode=isValidErrorCode},4493:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};var d=this&&this.__rest||function(r,i){var a={};for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&i.indexOf(s)<0)a[s]=r[s];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var l=0,s=Object.getOwnPropertySymbols(r);l{this.rewrite(i,a,r).then((()=>s())).catch((r=>{if(r instanceof y.TwirpError){if(r.code!==y.TwirpErrorCode.NotFound){v.writeError(a,r)}else{s()}}}))}}rewrite(r,i,a="/twirp"){return c(this,void 0,void 0,(function*(){const[s,l]=this.matchRoute(r);const p=yield this.prepareTwirpBody(r,s,l);const c=`${a}/${l.packageName}.${l.serviceName}/${l.methodName}`;r.url=c;r.originalUrl=c;r.method="POST";r.headers["content-type"]="application/json";r.rawBody=Buffer.from(JSON.stringify(p));if(l.responseBodyKey){const r=i.end.bind(i);i.end=function(a){if(i.statusCode===200){r(`{ "${l.responseBodyKey}": ${a} }`)}else{r(a)}}}}))}reverseProxy(r){const i=b.NodeHttpRPC(r);return(r,a)=>c(this,void 0,void 0,(function*(){try{const[s,l]=this.matchRoute(r);const p=yield this.prepareTwirpBody(r,s,l);const c=yield i.request(`${l.packageName}.${l.serviceName}`,l.methodName,"application/json",p);a.statusCode=200;a.setHeader("content-type","application/json");let d;if(l.responseBodyKey){d=JSON.stringify({[l.responseBodyKey]:c})}else{d=JSON.stringify(c)}a.end(d)}catch(r){v.writeError(a,r)}}))}prepareTwirpBody(r,i,a){return c(this,void 0,void 0,(function*(){const s=i.params,{query_string:l}=s,p=d(s,["query_string"]);let c=Object.assign({},p);if(l&&a.bodyKey!=="*"){const r=this.parseQueryString(l);c=Object.assign(Object.assign({},r),c)}let u={};if(a.bodyKey){const i=yield g.getRequestData(r);try{const r=JSON.parse(i.toString()||"{}");if(a.bodyKey==="*"){u=r}else{u[a.bodyKey]=r}}catch(r){const i="the json request could not be decoded";throw new y.TwirpError(y.TwirpErrorCode.Malformed,i).withCause(r,true)}}return Object.assign(Object.assign({},u),c)}))}matchRoute(r){var i;const a=(i=r.method)===null||i===void 0?void 0:i.toLowerCase();if(!a){throw new y.BadRouteError(`method not allowed`,r.method||"",r.url||"")}const s=this.routes[a];for(const i of s){const a=i.matcher(r.url||"/");if(a){return[a,i]}}throw new y.NotFoundError(`url ${r.url} not found`)}parseQueryString(r){const i=u.parse(r.replace("?",""));return h.object(i)}}i.Gateway=Gateway},7443:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.isHook=i.chainHooks=void 0;function chainHooks(...r){if(r.length===0){return null}if(r.length===1){return r[0]}const i={requestReceived(i){return a(this,void 0,void 0,(function*(){for(const a of r){if(!a.requestReceived){continue}yield a.requestReceived(i)}}))},requestPrepared(i){return a(this,void 0,void 0,(function*(){for(const a of r){if(!a.requestPrepared){continue}console.warn("hook requestPrepared is deprecated and will be removed in the next release. "+"Please use responsePrepared instead.");yield a.requestPrepared(i)}}))},responsePrepared(i){return a(this,void 0,void 0,(function*(){for(const a of r){if(!a.responsePrepared){continue}yield a.responsePrepared(i)}}))},requestSent(i){return a(this,void 0,void 0,(function*(){for(const a of r){if(!a.requestSent){continue}console.warn("hook requestSent is deprecated and will be removed in the next release. "+"Please use responseSent instead.");yield a.requestSent(i)}}))},responseSent(i){return a(this,void 0,void 0,(function*(){for(const a of r){if(!a.responseSent){continue}yield a.responseSent(i)}}))},requestRouted(i){return a(this,void 0,void 0,(function*(){for(const a of r){if(!a.requestRouted){continue}yield a.requestRouted(i)}}))},error(i,s){return a(this,void 0,void 0,(function*(){for(const a of r){if(!a.error){continue}yield a.error(i,s)}}))}};return i}i.chainHooks=chainHooks;function isHook(r){return"requestReceived"in r||"requestPrepared"in r||"requestSent"in r||"requestRouted"in r||"responsePrepared"in r||"responseSent"in r||"error"in r}i.isHook=isHook},5879:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.FetchRPC=i.wrapErrorResponseToTwirpError=i.NodeHttpRPC=void 0;const d=p(a(3685));const u=p(a(5687));const h=a(7310);const g=a(942);const NodeHttpRPC=r=>({request(i,a,s,l){let p;return new Promise(((c,g)=>{const y=[];const b=s==="application/protobuf"?Buffer.from(l):JSON.stringify(l);const v=new h.URL(r.baseUrl);const w=v.protocol==="https:";if(w){p=u}else{p=d}const x=v.pathname!=="/"?v.pathname:"";const S=p.request(Object.assign(Object.assign({},r?r:{}),{method:"POST",protocol:v.protocol,host:v.hostname,port:v.port?v.port:w?443:80,path:`${x}/${i}/${a}`,headers:Object.assign(Object.assign({},r.headers?r.headers:{}),{"Content-Type":s,"Content-Length":s==="application/protobuf"?Buffer.byteLength(b):Buffer.from(b).byteLength})}),(r=>{r.on("data",(r=>y.push(r)));r.on("end",(()=>{const i=Buffer.concat(y);if(r.statusCode!=200){g(wrapErrorResponseToTwirpError(i.toString()))}else{if(s==="application/json"){c(JSON.parse(i.toString()))}else{c(i)}}}));r.on("error",(r=>{g(r)}))})).on("error",(r=>{g(r)}));S.end(b)}))}});i.NodeHttpRPC=NodeHttpRPC;function wrapErrorResponseToTwirpError(r){return g.TwirpError.fromObject(JSON.parse(r))}i.wrapErrorResponseToTwirpError=wrapErrorResponseToTwirpError;const FetchRPC=r=>({request(i,a,s,l){return c(this,void 0,void 0,(function*(){const p=new Headers(r.headers);p.set("content-type",s);const c=yield fetch(`${r.baseUrl}/${i}/${a}`,Object.assign(Object.assign({},r),{method:"POST",headers:p,body:l instanceof Uint8Array?l:JSON.stringify(l)}));if(c.status===200){if(s==="application/json"){return yield c.json()}return new Uint8Array(yield c.arrayBuffer())}throw g.TwirpError.fromObject(yield c.json())}))}});i.FetchRPC=FetchRPC},7536:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var l=this&&this.__exportStar||function(r,i){for(var a in r)if(a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a))s(i,r,a)};Object.defineProperty(i,"__esModule",{value:true});i.TwirpContentType=void 0;l(a(875),i);l(a(775),i);l(a(1111),i);l(a(7443),i);l(a(942),i);l(a(4493),i);l(a(5879),i);var p=a(7009);Object.defineProperty(i,"TwirpContentType",{enumerable:true,get:function(){return p.TwirpContentType}})},1111:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.chainInterceptors=void 0;function chainInterceptors(...r){if(r.length===0){return}if(r.length===1){return r[0]}const i=r[0];return(s,l,p)=>a(this,void 0,void 0,(function*(){let a=p;for(let i=r.length-1;i>0;i--){a=(a=>(s,l)=>r[i](s,l,a))(a)}return i(s,l,a)}))}i.chainInterceptors=chainInterceptors},7009:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.parseTwirpPath=i.getRequestData=i.validateRequest=i.getContentType=i.TwirpContentType=void 0;const l=a(942);var p;(function(r){r[r["Protobuf"]=0]="Protobuf";r[r["JSON"]=1]="JSON";r[r["Unknown"]=2]="Unknown"})(p=i.TwirpContentType||(i.TwirpContentType={}));function getContentType(r){switch(r){case"application/protobuf":return p.Protobuf;case"application/json":return p.JSON;default:return p.Unknown}}i.getContentType=getContentType;function validateRequest(r,i,a){if(i.method!=="POST"){const r=`unsupported method ${i.method} (only POST is allowed)`;throw new l.BadRouteError(r,i.method||"",i.url||"")}const s=parseTwirpPath(i.url||"");if(s.pkgService!==(r.packageName?r.packageName+".":"")+r.serviceName){const r=`no handler for path ${i.url}`;throw new l.BadRouteError(r,i.method||"",i.url||"")}if(s.prefix!==a){const r=`invalid path prefix ${s.prefix}, expected ${a}, on path ${i.url}`;throw new l.BadRouteError(r,i.method||"",i.url||"")}const c=i.headers["content-type"]||"";if(r.contentType===p.Unknown){const r=`unexpected Content-Type: ${i.headers["content-type"]}`;throw new l.BadRouteError(r,i.method||"",i.url||"")}return Object.assign(Object.assign({},s),{mimeContentType:c,contentType:r.contentType})}i.validateRequest=validateRequest;function getRequestData(r){return new Promise(((i,a)=>{const p=r;if(p.rawBody instanceof Buffer){i(p.rawBody);return}const c=[];r.on("data",(r=>c.push(r)));r.on("end",(()=>s(this,void 0,void 0,(function*(){const r=Buffer.concat(c);i(r)}))));r.on("error",(i=>{if(r.aborted){a(new l.TwirpError(l.TwirpErrorCode.DeadlineExceeded,"failed to read request: deadline exceeded"))}else{a(new l.TwirpError(l.TwirpErrorCode.Malformed,i.message).withCause(i))}}));r.on("close",(()=>{a(new l.TwirpError(l.TwirpErrorCode.Canceled,"failed to read request: context canceled"))}))}))}i.getRequestData=getRequestData;function parseTwirpPath(r){const i=r.split("/");if(i.length<2){return{pkgService:"",method:"",prefix:""}}return{method:i[i.length-1],pkgService:i[i.length-2],prefix:i.slice(0,i.length-2).join("/")}}i.parseTwirpPath=parseTwirpPath},775:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,l){function fulfilled(r){try{step(s.next(r))}catch(r){l(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){l(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.writeError=i.TwirpServer=void 0;const l=a(7443);const p=a(7009);const c=a(942);class TwirpServer{constructor(r){this.pathPrefix="/twirp";this.hooks=[];this.interceptors=[];this.packageName=r.packageName;this.serviceName=r.serviceName;this.methodList=r.methodList;this.matchRoute=r.matchRoute;this.service=r.service}get prefix(){return this.pathPrefix}httpHandler(r){return(i,a)=>{if((r===null||r===void 0?void 0:r.prefix)!==undefined){this.withPrefix(r.prefix)}return this._httpHandler(i,a)}}use(...r){r.forEach((r=>{if(l.isHook(r)){this.hooks.push(r);return this}this.interceptors.push(r)}));return this}withPrefix(r){if(r===false){this.pathPrefix=""}else{this.pathPrefix=r}return this}matchingPath(){const r=this.baseURI().replace(/\./g,"\\.");return new RegExp(`${r}/(${this.methodList.join("|")})`)}baseURI(){return`${this.pathPrefix}/${this.packageName?this.packageName+".":""}${this.serviceName}`}createContext(r,i){return{packageName:this.packageName,serviceName:this.serviceName,methodName:"",contentType:p.getContentType(r.headers["content-type"]),req:r,res:i}}_httpHandler(r,i){return s(this,void 0,void 0,(function*(){const a=this.createContext(r,i);try{yield this.invokeHook("requestReceived",a);const{method:s,mimeContentType:l}=p.validateRequest(a,r,this.pathPrefix||"");const d=this.matchRoute(s,{onMatch:r=>this.invokeHook("requestRouted",r),onNotFound:()=>{const i=`no handler for path ${r.url}`;throw new c.BadRouteError(i,r.method||"",r.url||"")}});const u=yield p.getRequestData(r);const h=yield d(a,this.service,u,this.interceptors);yield Promise.all([this.invokeHook("responsePrepared",a),this.invokeHook("requestPrepared",a)]);i.statusCode=200;i.setHeader("Content-Type",l);i.end(h)}catch(r){yield this.invokeHook("error",a,mustBeTwirpError(r));if(!i.headersSent){writeError(i,r)}}finally{yield Promise.all([this.invokeHook("responseSent",a),this.invokeHook("requestSent",a)])}}))}invokeHook(r,i,a){return s(this,void 0,void 0,(function*(){if(this.hooks.length===0){return}const s=l.chainHooks(...this.hooks);const p=s===null||s===void 0?void 0:s[r];if(p){yield p(i,a||new c.InternalServerError("internal server error"))}}))}}i.TwirpServer=TwirpServer;function writeError(r,i){const a=mustBeTwirpError(i);r.setHeader("Content-Type","application/json");r.statusCode=c.httpStatusFromErrorCode(a.code);r.end(a.toJSON())}i.writeError=writeError;function mustBeTwirpError(r){if(r instanceof c.TwirpError){return r}return new c.InternalServerErrorWith(r)}},5592:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}i.getUserAgent=getUserAgent},7361:(r,i,a)=>{"use strict";var s=a(2781);var l=a(3837).inherits;function Entry(){if(!(this instanceof Entry)){return new Entry}s.PassThrough.call(this);this.path=null;this.type=null;this.isDirectory=false}l(Entry,s.PassThrough);Entry.prototype.autodrain=function(){return this.pipe(new s.Transform({transform:function(r,i,a){a()}}))};r.exports=Entry},5244:(r,i,a)=>{var s=a(7147);var l=a(1017);var p=a(3837);var c=a(8159);var d=a(2781).Transform;var u=a(354);function Extract(r){if(!(this instanceof Extract))return new Extract(r);d.call(this);this.opts=r||{};this.unzipStream=new u(this.opts);this.unfinishedEntries=0;this.afterFlushWait=false;this.createdDirectories={};var i=this;this.unzipStream.on("entry",this._processEntry.bind(this));this.unzipStream.on("error",(function(r){i.emit("error",r)}))}p.inherits(Extract,d);Extract.prototype._transform=function(r,i,a){this.unzipStream.write(r,i,a)};Extract.prototype._flush=function(r){var i=this;var allDone=function(){process.nextTick((function(){i.emit("close")}));r()};this.unzipStream.end((function(){if(i.unfinishedEntries>0){i.afterFlushWait=true;return i.on("await-finished",allDone)}allDone()}))};Extract.prototype._processEntry=function(r){var i=this;var a=l.join(this.opts.path,r.path);var p=r.isDirectory?a:l.dirname(a);this.unfinishedEntries++;var writeFileFn=function(){var l=s.createWriteStream(a);l.on("close",(function(){i.unfinishedEntries--;i._notifyAwaiter()}));l.on("error",(function(r){i.emit("error",r)}));r.pipe(l)};if(this.createdDirectories[p]||p==="."){return writeFileFn()}c(p,(function(a){if(a)return i.emit("error",a);i.createdDirectories[p]=true;if(r.isDirectory){i.unfinishedEntries--;i._notifyAwaiter();return}writeFileFn()}))};Extract.prototype._notifyAwaiter=function(){if(this.afterFlushWait&&this.unfinishedEntries===0){this.emit("await-finished");this.afterFlushWait=false}};r.exports=Extract},4934:(r,i,a)=>{var s=a(2781).Transform;var l=a(3837);function MatcherStream(r,i){if(!(this instanceof MatcherStream)){return new MatcherStream}s.call(this);var a=typeof r==="object"?r.pattern:r;this.pattern=Buffer.isBuffer(a)?a:Buffer.from(a);this.requiredLength=this.pattern.length;if(r.requiredExtraSize)this.requiredLength+=r.requiredExtraSize;this.data=new Buffer("");this.bytesSoFar=0;this.matchFn=i}l.inherits(MatcherStream,s);MatcherStream.prototype.checkDataChunk=function(r){var i=this.data.length>=this.requiredLength;if(!i){return}var a=this.data.indexOf(this.pattern,r?1:0);if(a>=0&&a+this.requiredLength>this.data.length){if(a>0){var s=this.data.slice(0,a);this.push(s);this.bytesSoFar+=a;this.data=this.data.slice(a)}return}if(a===-1){var l=this.data.length-this.requiredLength+1;var s=this.data.slice(0,l);this.push(s);this.bytesSoFar+=l;this.data=this.data.slice(l);return}if(a>0){var s=this.data.slice(0,a);this.data=this.data.slice(a);this.push(s);this.bytesSoFar+=a}var p=this.matchFn?this.matchFn(this.data,this.bytesSoFar):true;if(p){this.data=new Buffer("");return}return true};MatcherStream.prototype._transform=function(r,i,a){this.data=Buffer.concat([this.data,r]);var s=true;while(this.checkDataChunk(!s)){s=false}a()};MatcherStream.prototype._flush=function(r){if(this.data.length>0){var i=true;while(this.checkDataChunk(!i)){i=false}}if(this.data.length>0){this.push(this.data);this.data=null}r()};r.exports=MatcherStream},7450:(r,i,a)=>{var s=a(2781).Transform;var l=a(3837);var p=a(354);function ParserStream(r){if(!(this instanceof ParserStream)){return new ParserStream(r)}var i=r||{};s.call(this,{readableObjectMode:true});this.opts=r||{};this.unzipStream=new p(this.opts);var a=this;this.unzipStream.on("entry",(function(r){a.push(r)}));this.unzipStream.on("error",(function(r){a.emit("error",r)}))}l.inherits(ParserStream,s);ParserStream.prototype._transform=function(r,i,a){this.unzipStream.write(r,i,a)};ParserStream.prototype._flush=function(r){var i=this;this.unzipStream.end((function(){process.nextTick((function(){i.emit("close")}));r()}))};ParserStream.prototype.on=function(r,i){if(r==="entry"){return s.prototype.on.call(this,"data",i)}return s.prototype.on.call(this,r,i)};ParserStream.prototype.drainAll=function(){this.unzipStream.drainAll();return this.pipe(new s({objectMode:true,transform:function(r,i,a){a()}}))};r.exports=ParserStream},354:(r,i,a)=>{"use strict";var s=a(84);var l=a(2781);var p=a(3837);var c=a(9796);var d=a(4934);var u=a(7361);const h={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99};const g=4294967296;const y=67324752;const b=134695760;const v=33639248;const w=101075792;const x=117853008;const S=101010256;function UnzipStream(r){if(!(this instanceof UnzipStream)){return new UnzipStream(r)}l.Transform.call(this);this.options=r||{};this.data=new Buffer("");this.state=h.STREAM_START;this.skippedBytes=0;this.parsedEntity=null;this.outStreamInfo={}}p.inherits(UnzipStream,l.Transform);UnzipStream.prototype.processDataChunk=function(r){var i;switch(this.state){case h.STREAM_START:case h.START:i=4;break;case h.LOCAL_FILE_HEADER:i=26;break;case h.LOCAL_FILE_HEADER_SUFFIX:i=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case h.DATA_DESCRIPTOR:i=12;break;case h.CENTRAL_DIRECTORY_FILE_HEADER:i=42;break;case h.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:i=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case h.CDIR64_END:i=52;break;case h.CDIR64_END_DATA_SECTOR:i=this.parsedEntity.centralDirectoryRecordSize-44;break;case h.CDIR64_LOCATOR:i=16;break;case h.CENTRAL_DIRECTORY_END:i=18;break;case h.CENTRAL_DIRECTORY_END_COMMENT:i=this.parsedEntity.commentLength;break;case h.FILE_DATA:return 0;case h.FILE_DATA_END:return 0;case h.TRAILING_JUNK:if(this.options.debug)console.log("found",r.length,"bytes of TRAILING_JUNK");return r.length;default:return r.length}var a=r.length;if(a>>8;if((p&255)===80){c=d;break}}this.skippedBytes+=c;if(this.options.debug)console.log("Skipped",this.skippedBytes,"bytes");return c}this.state=h.ERROR;var b=l?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var _=r.readUInt32LE(0);var T;try{T=r.slice(0,4).toString()}catch(r){}console.log("Unexpected signature in zip file: 0x"+_.toString(16),'"'+T+'", skipped',this.skippedBytes,"bytes")}this.emit("error",new Error(b));return r.length}this.skippedBytes=0;return i;case h.LOCAL_FILE_HEADER:this.parsedEntity=this._readFile(r);this.state=h.LOCAL_FILE_HEADER_SUFFIX;return i;case h.LOCAL_FILE_HEADER_SUFFIX:var N=new u;var P=(this.parsedEntity.flags&2048)!==0;N.path=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),P);var O=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var R=this._readExtraFields(O);if(R&&R.parsed){if(R.parsed.path&&!P){N.path=R.parsed.path}if(Number.isFinite(R.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===g-1){this.parsedEntity.uncompressedSize=R.parsed.uncompressedSize}if(Number.isFinite(R.parsed.compressedSize)&&this.parsedEntity.compressedSize===g-1){this.parsedEntity.compressedSize=R.parsed.compressedSize}}this.parsedEntity.extra=R.parsed||{};if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:N.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:R&&R.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(r,null,2))}this._prepareOutStream(this.parsedEntity,N);this.emit("entry",N);this.state=h.FILE_DATA;return i;case h.CENTRAL_DIRECTORY_FILE_HEADER:this.parsedEntity=this._readCentralDirectoryEntry(r);this.state=h.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX;return i;case h.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var P=(this.parsedEntity.flags&2048)!==0;var C=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),P);var O=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var R=this._readExtraFields(O);if(R&&R.parsed&&R.parsed.path&&!P){C=R.parsed.path}this.parsedEntity.extra=R.parsed;var k=(this.parsedEntity.versionMadeBy&65280)>>8===3;var A,D;if(k){A=this.parsedEntity.externalFileAttributes>>>16;var I=A>>>12;D=(I&10)===10}if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:C,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:A&&"0"+A.toString(8),isSymlink:D,extraFields:R.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(r,null,2))}this.state=h.START;return i;case h.CDIR64_END:this.parsedEntity=this._readEndOfCentralDirectory64(r);if(this.options.debug){console.log("decoded CDIR64_END_RECORD:",this.parsedEntity)}this.state=h.CDIR64_END_DATA_SECTOR;return i;case h.CDIR64_END_DATA_SECTOR:this.state=h.START;return i;case h.CDIR64_LOCATOR:this.state=h.START;return i;case h.CENTRAL_DIRECTORY_END:this.parsedEntity=this._readEndOfCentralDirectory(r);if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity)}this.state=h.CENTRAL_DIRECTORY_END_COMMENT;return i;case h.CENTRAL_DIRECTORY_END_COMMENT:if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",r.slice(0,i).toString())}this.state=h.TRAILING_JUNK;return i;case h.ERROR:return r.length;default:console.log("didn't handle state #",this.state,"discarding");return r.length}};UnzipStream.prototype._prepareOutStream=function(r,i){var a=this;var s=r.uncompressedSize===0&&/[\/\\]$/.test(i.path);i.path=i.path.replace(/^([/\\]*[.]+[/\\]+)*[/\\]*/,"");i.type=s?"Directory":"File";i.isDirectory=s;var p=!(r.flags&8);if(p){i.size=r.uncompressedSize}var y=r.versionsNeededToExtract<=45;this.outStreamInfo={stream:null,limit:p?r.compressedSize:-1,written:0};if(!p){var v=new Buffer(4);v.writeUInt32LE(b,0);var w=r.extra.zip64Mode;var x=w?20:12;var S={pattern:v,requiredExtraSize:x};var _=new d(S,(function(r,i){var s=a._readDataDescriptor(r,w);var l=s.compressedSize===i;if(!w&&!l&&i>=g){var p=i-g;while(p>=0){l=s.compressedSize===p;if(l)break;p-=g}}if(!l){return}a.state=h.FILE_DATA_END;var c=w?24:16;if(a.data.length>0){a.data=Buffer.concat([r.slice(c),a.data])}else{a.data=r.slice(c)}return true}));this.outStreamInfo.stream=_}else{this.outStreamInfo.stream=new l.PassThrough}var T=r.flags&1||r.flags&64;if(T||!y){var N=T?"Encrypted files are not supported!":"Zip version "+Math.floor(r.versionsNeededToExtract/10)+"."+r.versionsNeededToExtract%10+" is not supported";i.skip=true;setImmediate((()=>{i.emit("error",new Error(N))}));this.outStreamInfo.stream.pipe((new u).autodrain());return}var P=r.compressionMethod>0;if(P){var O=c.createInflateRaw();O.on("error",(function(r){a.state=h.ERROR;a.emit("error",r)}));this.outStreamInfo.stream.pipe(O).pipe(i)}else{this.outStreamInfo.stream.pipe(i)}if(this._drainAllEntries){i.autodrain()}};UnzipStream.prototype._readFile=function(r){var i=s.parse(r).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return i};UnzipStream.prototype._readExtraFields=function(r){var i={};var a={parsed:i};if(this.options.debug){a.debug=[]}var l=0;while(l=h+4&&u&1){i.mtime=new Date(r.readUInt32LE(l+h)*1e3);h+=4}if(p.extraSize>=h+4&&u&2){i.atime=new Date(r.readUInt32LE(l+h)*1e3);h+=4}if(p.extraSize>=h+4&&u&4){i.ctime=new Date(r.readUInt32LE(l+h)*1e3)}break;case 28789:c="Info-ZIP Unicode Path Extra Field";var g=r.readUInt8(l);if(g===1){var h=1;var y=r.readUInt32LE(l+h);h+=4;var b=r.slice(l+h);i.path=b.toString()}break;case 13:case 22613:c=p.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var h=0;if(p.extraSize>=8){var v=new Date(r.readUInt32LE(l+h)*1e3);h+=4;var w=new Date(r.readUInt32LE(l+h)*1e3);h+=4;i.atime=v;i.mtime=w;if(p.extraSize>=12){var x=r.readUInt16LE(l+h);h+=2;var S=r.readUInt16LE(l+h);h+=2;i.uid=x;i.gid=S}}break;case 30805:c="Info-ZIP UNIX (type 2)";var h=0;if(p.extraSize>=4){var x=r.readUInt16LE(l+h);h+=2;var S=r.readUInt16LE(l+h);h+=2;i.uid=x;i.gid=S}break;case 30837:c="Info-ZIP New Unix";var h=0;var _=r.readUInt8(l);h+=1;if(_===1){var T=r.readUInt8(l+h);h+=1;if(T<=6){i.uid=r.readUIntLE(l+h,T)}h+=T;var N=r.readUInt8(l+h);h+=1;if(N<=6){i.gid=r.readUIntLE(l+h,N)}}break;case 30062:c="ASi Unix";var h=0;if(p.extraSize>=14){var P=r.readUInt32LE(l+h);h+=4;var O=r.readUInt16LE(l+h);h+=2;var R=r.readUInt32LE(l+h);h+=4;var x=r.readUInt16LE(l+h);h+=2;var S=r.readUInt16LE(l+h);h+=2;i.mode=O;i.uid=x;i.gid=S;if(p.extraSize>14){var C=l+h;var k=l+p.extraSize-14;var A=this._decodeString(r.slice(C,k));i.symlink=A}}break}if(this.options.debug){a.debug.push({extraId:"0x"+p.extraId.toString(16),description:c,data:r.slice(l,l+p.extraSize).inspect()})}l+=p.extraSize}return a};UnzipStream.prototype._readDataDescriptor=function(r,i){if(i){var a=s.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return a}var a=s.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return a};UnzipStream.prototype._readCentralDirectoryEntry=function(r){var i=s.parse(r).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return i};UnzipStream.prototype._readEndOfCentralDirectory64=function(r){var i=s.parse(r).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return i};UnzipStream.prototype._readEndOfCentralDirectory=function(r){var i=s.parse(r).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return i};const _="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";UnzipStream.prototype._decodeString=function(r,i){if(i){return r.toString("utf8")}if(this.options.decodeString){return this.options.decodeString(r)}let a="";for(var s=0;s0){this.data=this.data.slice(a);if(this.data.length===0)break}if(this.state===h.FILE_DATA){if(this.outStreamInfo.limit>=0){var s=this.outStreamInfo.limit-this.outStreamInfo.written;var l;if(s{if(this.state===h.FILE_DATA_END){this.state=h.START;return p.end(i)}i()}))}return}i()};UnzipStream.prototype.drainAll=function(){this._drainAllEntries=true};UnzipStream.prototype._transform=function(r,i,a){var s=this;if(s.data.length>0){s.data=Buffer.concat([s.data,r])}else{s.data=r}var l=s.data.length;var done=function(){if(s.data.length>0&&s.data.length0){i._parseOrOutput("buffer",(function(){if(i.data.length>0)return setImmediate((function(){i._flush(r)}));r()}));return}if(i.state===h.FILE_DATA){return r(new Error("Stream finished in an invalid state, uncompression failed"))}setImmediate(r)};r.exports=UnzipStream},8851:(r,i,a)=>{"use strict";i.Parse=a(7450);i.Extract=a(5244)},2151:(r,i,a)=>{r.exports=a(3837).deprecate},7338:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});Object.defineProperty(i,"v1",{enumerable:true,get:function(){return s.default}});Object.defineProperty(i,"v3",{enumerable:true,get:function(){return l.default}});Object.defineProperty(i,"v4",{enumerable:true,get:function(){return p.default}});Object.defineProperty(i,"v5",{enumerable:true,get:function(){return c.default}});Object.defineProperty(i,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(i,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(i,"validate",{enumerable:true,get:function(){return h.default}});Object.defineProperty(i,"stringify",{enumerable:true,get:function(){return g.default}});Object.defineProperty(i,"parse",{enumerable:true,get:function(){return y.default}});var s=_interopRequireDefault(a(6101));var l=_interopRequireDefault(a(9456));var p=_interopRequireDefault(a(1071));var c=_interopRequireDefault(a(8057));var d=_interopRequireDefault(a(7448));var u=_interopRequireDefault(a(5530));var h=_interopRequireDefault(a(324));var g=_interopRequireDefault(a(5284));var y=_interopRequireDefault(a(6067));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},8612:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return s.default.createHash("md5").update(r).digest()}var l=md5;i["default"]=l},7448:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a="00000000-0000-0000-0000-000000000000";i["default"]=a},6067:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(324));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,s.default)(r)){throw TypeError("Invalid UUID")}let i;const a=new Uint8Array(16);a[0]=(i=parseInt(r.slice(0,8),16))>>>24;a[1]=i>>>16&255;a[2]=i>>>8&255;a[3]=i&255;a[4]=(i=parseInt(r.slice(9,13),16))>>>8;a[5]=i&255;a[6]=(i=parseInt(r.slice(14,18),16))>>>8;a[7]=i&255;a[8]=(i=parseInt(r.slice(19,23),16))>>>8;a[9]=i&255;a[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255;a[11]=i/4294967296&255;a[12]=i>>>24&255;a[13]=i>>>16&255;a[14]=i>>>8&255;a[15]=i&255;return a}var l=parse;i["default"]=l},7610:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i["default"]=a},6750:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=rng;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=new Uint8Array(256);let p=l.length;function rng(){if(p>l.length-16){s.default.randomFillSync(l);p=0}return l.slice(p,p+=16)}},4920:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return s.default.createHash("sha1").update(r).digest()}var l=sha1;i["default"]=l},5284:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(324));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 a=(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,s.default)(a)){throw TypeError("Stringified UUID is invalid")}return a}var p=stringify;i["default"]=p},6101:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6750));var l=_interopRequireDefault(a(5284));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let p;let c;let d=0;let u=0;function v1(r,i,a){let h=i&&a||0;const g=i||new Array(16);r=r||{};let y=r.node||p;let b=r.clockseq!==undefined?r.clockseq:c;if(y==null||b==null){const i=r.random||(r.rng||s.default)();if(y==null){y=p=[i[0]|1,i[1],i[2],i[3],i[4],i[5]]}if(b==null){b=c=(i[6]<<8|i[7])&16383}}let v=r.msecs!==undefined?r.msecs:Date.now();let w=r.nsecs!==undefined?r.nsecs:u+1;const x=v-d+(w-u)/1e4;if(x<0&&r.clockseq===undefined){b=b+1&16383}if((x<0||v>d)&&r.nsecs===undefined){w=0}if(w>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=v;u=w;c=b;v+=122192928e5;const S=((v&268435455)*1e4+w)%4294967296;g[h++]=S>>>24&255;g[h++]=S>>>16&255;g[h++]=S>>>8&255;g[h++]=S&255;const _=v/4294967296*1e4&268435455;g[h++]=_>>>8&255;g[h++]=_&255;g[h++]=_>>>24&15|16;g[h++]=_>>>16&255;g[h++]=b>>>8|128;g[h++]=b&255;for(let r=0;r<6;++r){g[h+r]=y[r]}return i||(0,l.default)(g)}var h=v1;i["default"]=h},9456:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(9390));var l=_interopRequireDefault(a(8612));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const p=(0,s.default)("v3",48,l.default);var c=p;i["default"]=c},9390:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var s=_interopRequireDefault(a(5284));var l=_interopRequireDefault(a(6067));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const i=[];for(let a=0;a{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6750));var l=_interopRequireDefault(a(5284));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function v4(r,i,a){r=r||{};const p=r.random||(r.rng||s.default)();p[6]=p[6]&15|64;p[8]=p[8]&63|128;if(i){a=a||0;for(let r=0;r<16;++r){i[a+r]=p[r]}return i}return(0,l.default)(p)}var p=v4;i["default"]=p},8057:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(9390));var l=_interopRequireDefault(a(4920));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const p=(0,s.default)("v5",80,l.default);var c=p;i["default"]=c},324:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(7610));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function validate(r){return typeof r==="string"&&s.default.test(r)}var l=validate;i["default"]=l},5530:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(324));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function version(r){if(!(0,s.default)(r)){throw TypeError("Invalid UUID")}return parseInt(r.substr(14,1),16)}var l=version;i["default"]=l},369:r=>{"use strict";var i={};r.exports=i;function sign(r){return r<0?-1:1}function evenRound(r){if(r%1===.5&&(r&1)===0){return Math.floor(r)}else{return Math.round(r)}}function createNumberConversion(r,i){if(!i.unsigned){--r}const a=i.unsigned?0:-Math.pow(2,r);const s=Math.pow(2,r)-1;const l=i.moduloBitLength?Math.pow(2,i.moduloBitLength):Math.pow(2,r);const p=i.moduloBitLength?Math.pow(2,i.moduloBitLength-1):Math.pow(2,r-1);return function(r,c){if(!c)c={};let d=+r;if(c.enforceRange){if(!Number.isFinite(d)){throw new TypeError("Argument is not a finite number")}d=sign(d)*Math.floor(Math.abs(d));if(ds){throw new TypeError("Argument is not in byte range")}return d}if(!isNaN(d)&&c.clamp){d=evenRound(d);if(ds)d=s;return d}if(!Number.isFinite(d)||d===0){return 0}d=sign(d)*Math.floor(Math.abs(d));d=d%l;if(!i.unsigned&&d>=p){return d-l}else if(i.unsigned){if(d<0){d+=l}else if(d===-0){return 0}}return d}}i["void"]=function(){return undefined};i["boolean"]=function(r){return!!r};i["byte"]=createNumberConversion(8,{unsigned:false});i["octet"]=createNumberConversion(8,{unsigned:true});i["short"]=createNumberConversion(16,{unsigned:false});i["unsigned short"]=createNumberConversion(16,{unsigned:true});i["long"]=createNumberConversion(32,{unsigned:false});i["unsigned long"]=createNumberConversion(32,{unsigned:true});i["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});i["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});i["double"]=function(r){const i=+r;if(!Number.isFinite(i)){throw new TypeError("Argument is not a finite floating-point value")}return i};i["unrestricted double"]=function(r){const i=+r;if(isNaN(i)){throw new TypeError("Argument is NaN")}return i};i["float"]=i["double"];i["unrestricted float"]=i["unrestricted double"];i["DOMString"]=function(r,i){if(!i)i={};if(i.treatNullAsEmptyString&&r===null){return""}return String(r)};i["ByteString"]=function(r,i){const a=String(r);let s=undefined;for(let r=0;(s=a.codePointAt(r))!==undefined;++r){if(s>255){throw new TypeError("Argument is not a valid bytestring")}}return a};i["USVString"]=function(r){const i=String(r);const a=i.length;const s=[];for(let r=0;r57343){s.push(String.fromCodePoint(l))}else if(56320<=l&&l<=57343){s.push(String.fromCodePoint(65533))}else{if(r===a-1){s.push(String.fromCodePoint(65533))}else{const a=i.charCodeAt(r+1);if(56320<=a&&a<=57343){const i=l&1023;const p=a&1023;s.push(String.fromCodePoint((2<<15)+(2<<9)*i+p));++r}else{s.push(String.fromCodePoint(65533))}}}}return s.join("")};i["Date"]=function(r,i){if(!(r instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(r)){return undefined}return r};i["RegExp"]=function(r,i){if(!(r instanceof RegExp)){r=new RegExp(r)}return r}},3086:(r,i,a)=>{"use strict";const s=a(5934);i.implementation=class URLImpl{constructor(r){const i=r[0];const a=r[1];let l=null;if(a!==undefined){l=s.basicURLParse(a);if(l==="failure"){throw new TypeError("Invalid base URL")}}const p=s.basicURLParse(i,{baseURL:l});if(p==="failure"){throw new TypeError("Invalid URL")}this._url=p}get href(){return s.serializeURL(this._url)}set href(r){const i=s.basicURLParse(r);if(i==="failure"){throw new TypeError("Invalid URL")}this._url=i}get origin(){return s.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(r){s.basicURLParse(r+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(r){if(s.cannotHaveAUsernamePasswordPort(this._url)){return}s.setTheUsername(this._url,r)}get password(){return this._url.password}set password(r){if(s.cannotHaveAUsernamePasswordPort(this._url)){return}s.setThePassword(this._url,r)}get host(){const r=this._url;if(r.host===null){return""}if(r.port===null){return s.serializeHost(r.host)}return s.serializeHost(r.host)+":"+s.serializeInteger(r.port)}set host(r){if(this._url.cannotBeABaseURL){return}s.basicURLParse(r,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return s.serializeHost(this._url.host)}set hostname(r){if(this._url.cannotBeABaseURL){return}s.basicURLParse(r,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return s.serializeInteger(this._url.port)}set port(r){if(s.cannotHaveAUsernamePasswordPort(this._url)){return}if(r===""){this._url.port=null}else{s.basicURLParse(r,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(r){if(this._url.cannotBeABaseURL){return}this._url.path=[];s.basicURLParse(r,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(r){const i=this._url;if(r===""){i.query=null;return}const a=r[0]==="?"?r.substring(1):r;i.query="";s.basicURLParse(a,{url:i,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(r){if(r===""){this._url.fragment=null;return}const i=r[0]==="#"?r.substring(1):r;this._url.fragment="";s.basicURLParse(i,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},4724:(r,i,a)=>{"use strict";const s=a(369);const l=a(724);const p=a(3086);const c=l.implSymbol;function URL(i){if(!this||this[c]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const a=[];for(let r=0;r{"use strict";i.URL=a(4724)["interface"];i.serializeURL=a(5934).serializeURL;i.serializeURLOrigin=a(5934).serializeURLOrigin;i.basicURLParse=a(5934).basicURLParse;i.setTheUsername=a(5934).setTheUsername;i.setThePassword=a(5934).setThePassword;i.serializeHost=a(5934).serializeHost;i.serializeInteger=a(5934).serializeInteger;i.parseURL=a(5934).parseURL},5934:(r,i,a)=>{"use strict";const s=a(5477);const l=a(6372);const p={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const c=Symbol("failure");function countSymbols(r){return s.ucs2.decode(r).length}function at(r,i){const a=r[i];return isNaN(a)?undefined:String.fromCodePoint(a)}function isASCIIDigit(r){return r>=48&&r<=57}function isASCIIAlpha(r){return r>=65&&r<=90||r>=97&&r<=122}function isASCIIAlphanumeric(r){return isASCIIAlpha(r)||isASCIIDigit(r)}function isASCIIHex(r){return isASCIIDigit(r)||r>=65&&r<=70||r>=97&&r<=102}function isSingleDot(r){return r==="."||r.toLowerCase()==="%2e"}function isDoubleDot(r){r=r.toLowerCase();return r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"}function isWindowsDriveLetterCodePoints(r,i){return isASCIIAlpha(r)&&(i===58||i===124)}function isWindowsDriveLetterString(r){return r.length===2&&isASCIIAlpha(r.codePointAt(0))&&(r[1]===":"||r[1]==="|")}function isNormalizedWindowsDriveLetterString(r){return r.length===2&&isASCIIAlpha(r.codePointAt(0))&&r[1]===":"}function containsForbiddenHostCodePoint(r){return r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(r){return r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(r){return p[r]!==undefined}function isSpecial(r){return isSpecialScheme(r.scheme)}function defaultPort(r){return p[r]}function percentEncode(r){let i=r.toString(16).toUpperCase();if(i.length===1){i="0"+i}return"%"+i}function utf8PercentEncode(r){const i=new Buffer(r);let a="";for(let r=0;r126}const d=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(r){return isC0ControlPercentEncode(r)||d.has(r)}const u=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(r){return isPathPercentEncode(r)||u.has(r)}function percentEncodeChar(r,i){const a=String.fromCodePoint(r);if(i(r)){return utf8PercentEncode(a)}return a}function parseIPv4Number(r){let i=10;if(r.length>=2&&r.charAt(0)==="0"&&r.charAt(1).toLowerCase()==="x"){r=r.substring(2);i=16}else if(r.length>=2&&r.charAt(0)==="0"){r=r.substring(1);i=8}if(r===""){return 0}const a=i===10?/[^0-9]/:i===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(a.test(r)){return c}return parseInt(r,i)}function parseIPv4(r){const i=r.split(".");if(i[i.length-1]===""){if(i.length>1){i.pop()}}if(i.length>4){return r}const a=[];for(const s of i){if(s===""){return r}const i=parseIPv4Number(s);if(i===c){return r}a.push(i)}for(let r=0;r255){return c}}if(a[a.length-1]>=Math.pow(256,5-a.length)){return c}let s=a.pop();let l=0;for(const r of a){s+=r*Math.pow(256,3-l);++l}return s}function serializeIPv4(r){let i="";let a=r;for(let r=1;r<=4;++r){i=String(a%256)+i;if(r!==4){i="."+i}a=Math.floor(a/256)}return i}function parseIPv6(r){const i=[0,0,0,0,0,0,0,0];let a=0;let l=null;let p=0;r=s.ucs2.decode(r);if(r[p]===58){if(r[p+1]!==58){return c}p+=2;++a;l=a}while(p6){return c}let s=0;while(r[p]!==undefined){let l=null;if(s>0){if(r[p]===46&&s<4){++p}else{return c}}if(!isASCIIDigit(r[p])){return c}while(isASCIIDigit(r[p])){const i=parseInt(at(r,p));if(l===null){l=i}else if(l===0){return c}else{l=l*10+i}if(l>255){return c}++p}i[a]=i[a]*256+l;++s;if(s===2||s===4){++a}}if(s!==4){return c}break}else if(r[p]===58){++p;if(r[p]===undefined){return c}}else if(r[p]!==undefined){return c}i[a]=s;++a}if(l!==null){let r=a-l;a=7;while(a!==0&&r>0){const s=i[l+r-1];i[l+r-1]=i[a];i[a]=s;--a;--r}}else if(l===null&&a!==8){return c}return i}function serializeIPv6(r){let i="";const a=findLongestZeroSequence(r);const s=a.idx;let l=false;for(let a=0;a<=7;++a){if(l&&r[a]===0){continue}else if(l){l=false}if(s===a){const r=a===0?"::":":";i+=r;l=true;continue}i+=r[a].toString(16);if(a!==7){i+=":"}}return i}function parseHost(r,i){if(r[0]==="["){if(r[r.length-1]!=="]"){return c}return parseIPv6(r.substring(1,r.length-1))}if(!i){return parseOpaqueHost(r)}const a=utf8PercentDecode(r);const s=l.toASCII(a,false,l.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(s===null){return c}if(containsForbiddenHostCodePoint(s)){return c}const p=parseIPv4(s);if(typeof p==="number"||p===c){return p}return s}function parseOpaqueHost(r){if(containsForbiddenHostCodePointExcludingPercent(r)){return c}let i="";const a=s.ucs2.decode(r);for(let r=0;ra){i=s;a=l}s=null;l=0}else{if(s===null){s=p}++l}}if(l>a){i=s;a=l}return{idx:i,len:a}}function serializeHost(r){if(typeof r==="number"){return serializeIPv4(r)}if(r instanceof Array){return"["+serializeIPv6(r)+"]"}return r}function trimControlChars(r){return r.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(r){return r.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(r){const i=r.path;if(i.length===0){return}if(r.scheme==="file"&&i.length===1&&isNormalizedWindowsDriveLetter(i[0])){return}i.pop()}function includesCredentials(r){return r.username!==""||r.password!==""}function cannotHaveAUsernamePasswordPort(r){return r.host===null||r.host===""||r.cannotBeABaseURL||r.scheme==="file"}function isNormalizedWindowsDriveLetter(r){return/^[A-Za-z]:$/.test(r)}function URLStateMachine(r,i,a,l,p){this.pointer=0;this.input=r;this.base=i||null;this.encodingOverride=a||"utf-8";this.stateOverride=p;this.url=l;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const r=trimControlChars(this.input);if(r!==this.input){this.parseError=true}this.input=r}const d=trimTabAndNewline(this.input);if(d!==this.input){this.parseError=true}this.input=d;this.state=p||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=s.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const r=this.input[this.pointer];const i=isNaN(r)?undefined:String.fromCodePoint(r);const a=this["parse "+this.state](r,i);if(!a){break}else if(a===c){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(r,i){if(isASCIIAlpha(r)){this.buffer+=i.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return c}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(r,i){if(isASCIIAlphanumeric(r)||r===43||r===45||r===46){this.buffer+=i.toLowerCase()}else if(r===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return c}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(r){if(this.base===null||this.base.cannotBeABaseURL&&r!==35){return c}else if(this.base.cannotBeABaseURL&&r===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(r){if(r===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(r){if(r===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(r){this.url.scheme=this.base.scheme;if(isNaN(r)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(r===47){this.state="relative slash"}else if(r===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(r===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&r===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(r){if(isSpecial(this.url)&&(r===47||r===92)){if(r===92){this.parseError=true}this.state="special authority ignore slashes"}else if(r===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(r){if(r===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(r){if(r!==47&&r!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(r,i){if(r===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const r=countSymbols(this.buffer);for(let i=0;iMath.pow(2,16)-1){this.parseError=true;return c}this.url.port=r===defaultPort(this.url.scheme)?null:r;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return c}return true};const h=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(r){this.url.scheme="file";if(r===47||r===92){if(r===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(r)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(r===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(r===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(r,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!h.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(r){if(r===47||r===92){if(r===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(r,i){if(isNaN(r)||r===47||r===92||r===63||r===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let r=parseHost(this.buffer,isSpecial(this.url));if(r===c){return c}if(r==="localhost"){r=""}this.url.host=r;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=i}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(r){if(isSpecial(this.url)){if(r===92){this.parseError=true}this.state="path";if(r!==47&&r!==92){--this.pointer}}else if(!this.stateOverride&&r===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&r===35){this.url.fragment="";this.state="fragment"}else if(r!==undefined){this.state="path";if(r!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(r){if(isNaN(r)||r===47||isSpecial(this.url)&&r===92||!this.stateOverride&&(r===63||r===35)){if(isSpecial(this.url)&&r===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(r!==47&&!(isSpecial(this.url)&&r===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&r!==47&&!(isSpecial(this.url)&&r===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(r===undefined||r===63||r===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(r===63){this.url.query="";this.state="query"}if(r===35){this.url.fragment="";this.state="fragment"}}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(r,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(r){if(r===63){this.url.query="";this.state="query"}else if(r===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(r)&&r!==37){this.parseError=true}if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(r)){this.url.path[0]=this.url.path[0]+percentEncodeChar(r,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(r,i){if(isNaN(r)||!this.stateOverride&&r===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const i=new Buffer(this.buffer);for(let r=0;r126||i[r]===34||i[r]===35||i[r]===60||i[r]===62){this.url.query+=percentEncode(i[r])}else{this.url.query+=String.fromCodePoint(i[r])}}this.buffer="";if(r===35){this.url.fragment="";this.state="fragment"}}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=i}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(r){if(isNaN(r)){}else if(r===0){this.parseError=true}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(r,isC0ControlPercentEncode)}return true};function serializeURL(r,i){let a=r.scheme+":";if(r.host!==null){a+="//";if(r.username!==""||r.password!==""){a+=r.username;if(r.password!==""){a+=":"+r.password}a+="@"}a+=serializeHost(r.host);if(r.port!==null){a+=":"+r.port}}else if(r.host===null&&r.scheme==="file"){a+="//"}if(r.cannotBeABaseURL){a+=r.path[0]}else{for(const i of r.path){a+="/"+i}}if(r.query!==null){a+="?"+r.query}if(!i&&r.fragment!==null){a+="#"+r.fragment}return a}function serializeOrigin(r){let i=r.scheme+"://";i+=serializeHost(r.host);if(r.port!==null){i+=":"+r.port}return i}r.exports.serializeURL=serializeURL;r.exports.serializeURLOrigin=function(i){switch(i.scheme){case"blob":try{return r.exports.serializeURLOrigin(r.exports.parseURL(i.path[0]))}catch(r){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:i.scheme,host:i.host,port:i.port});case"file":return"file://";default:return"null"}};r.exports.basicURLParse=function(r,i){if(i===undefined){i={}}const a=new URLStateMachine(r,i.baseURL,i.encodingOverride,i.url,i.stateOverride);if(a.failure){return"failure"}return a.url};r.exports.setTheUsername=function(r,i){r.username="";const a=s.ucs2.decode(i);for(let i=0;i{"use strict";r.exports.mixin=function mixin(r,i){const a=Object.getOwnPropertyNames(i);for(let s=0;s{r.exports=wrappy;function wrappy(r,i){if(r&&i)return wrappy(r)(i);if(typeof r!=="function")throw new TypeError("need wrapper function");Object.keys(r).forEach((function(i){wrapper[i]=r[i]}));return wrapper;function wrapper(){var i=new Array(arguments.length);for(var a=0;a=0||r.indexOf(">")>=0||r.indexOf("<")>=0)};c=function(r){return""};l=function(r){return r.replace("]]>","]]]]>")};i.Builder=function(){function Builder(r){var i,a,l;this.options={};a=s["0.2"];for(i in a){if(!d.call(a,i))continue;l=a[i];this.options[i]=l}for(i in r){if(!d.call(r,i))continue;l=r[i];this.options[i]=l}}Builder.prototype.buildObject=function(i){var a,l,u,h,g;a=this.options.attrkey;l=this.options.charkey;if(Object.keys(i).length===1&&this.options.rootName===s["0.2"].rootName){g=Object.keys(i)[0];i=i[g]}else{g=this.options.rootName}u=function(r){return function(i,s){var h,g,y,b,v,w;if(typeof s!=="object"){if(r.options.cdata&&p(s)){i.raw(c(s))}else{i.txt(s)}}else if(Array.isArray(s)){for(b in s){if(!d.call(s,b))continue;g=s[b];for(v in g){y=g[v];i=u(i.ele(v),y).up()}}}else{for(v in s){if(!d.call(s,v))continue;g=s[v];if(v===a){if(typeof g==="object"){for(h in g){w=g[h];i=i.att(h,w)}}}else if(v===l){if(r.options.cdata&&p(g)){i=i.raw(c(g))}else{i=i.txt(g)}}else if(Array.isArray(g)){for(b in g){if(!d.call(g,b))continue;y=g[b];if(typeof y==="string"){if(r.options.cdata&&p(y)){i=i.ele(v).raw(c(y)).up()}else{i=i.ele(v,y).up()}}else{i=u(i.ele(v),y).up()}}}else if(typeof g==="object"){i=u(i.ele(v),g).up()}else{if(typeof g==="string"&&r.options.cdata&&p(g)){i=i.ele(v).raw(c(g)).up()}else{if(g==null){g=""}i=i.ele(v,g.toString()).up()}}}}return i}}(this);h=r.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(h,i).end(this.options.renderOpts)};return Builder}()}).call(this)},4617:function(r,i){(function(){i.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},2711:function(r,i,a){(function(){"use strict";var r,s,l,p,c,d,u,h,bind=function(r,i){return function(){return r.apply(i,arguments)}},extend=function(r,i){for(var a in i){if(g.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},g={}.hasOwnProperty;u=a(1538);l=a(2361);r=a(1304);d=a(5771);h=a(9512).setImmediate;s=a(4617).defaults;p=function(r){return typeof r==="object"&&r!=null&&Object.keys(r).length===0};c=function(r,i,a){var s,l,p;for(s=0,l=r.length;s0){u[r.options.childkey]=y}y=u}else if(w){w[r.options.childkey]=w[r.options.childkey]||[];b=Object.create(null);for(d in y){if(!g.call(y,d))continue;b[d]=y[d]}w[r.options.childkey].push(b);delete y["#name"];if(Object.keys(y).length===1&&i in y&&!r.EXPLICIT_CHARKEY){y=y[i]}}}if(s.length>0){return r.assignOrPush(w,h,y)}else{if(r.options.explicitRoot){v=y;y=Object.create(null);y[h]=v}r.resultObject=y;r.saxParser.ended=true;return r.emit("end",r.resultObject)}}}(this);a=function(r){return function(a){var l,p;p=s[s.length-1];if(p){p[i]+=a;if(r.options.explicitChildren&&r.options.preserveChildrenOrder&&r.options.charsAsChildren&&(r.options.includeWhiteChars||a.replace(/\\n/g,"").trim()!=="")){p[r.options.childkey]=p[r.options.childkey]||[];l={"#name":"__text__"};l[i]=a;if(r.options.normalize){l[i]=l[i].replace(/\s{2,}/g," ").trim()}p[r.options.childkey].push(l)}return p}}}(this);this.saxParser.ontext=a;return this.saxParser.oncdata=function(r){return function(r){var i;i=a(r);if(i){return i.cdata=true}}}(this)};Parser.prototype.parseString=function(i,a){var s;if(a!=null&&typeof a==="function"){this.on("end",(function(r){this.reset();return a(null,r)}));this.on("error",(function(r){this.reset();return a(r)}))}try{i=i.toString();if(i.trim()===""){this.emit("end",null);return true}i=r.stripBOM(i);if(this.options.async){this.remaining=i;h(this.processAsync);return this.saxParser}return this.saxParser.write(i).close()}catch(r){s=r;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",s);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw s}}};Parser.prototype.parseStringPromise=function(r){return new Promise(function(i){return function(a,s){return i.parseString(r,(function(r,i){if(r){return s(r)}else{return a(i)}}))}}(this))};return Parser}(l);i.parseString=function(r,a,s){var l,p,c;if(s!=null){if(typeof s==="function"){l=s}if(typeof a==="object"){p=a}}else{if(typeof a==="function"){l=a}p={}}c=new i.Parser(p);return c.parseString(r,l)};i.parseStringPromise=function(r,a){var s,l;if(typeof a==="object"){s=a}l=new i.Parser(s);return l.parseStringPromise(r)}}).call(this)},5771:function(r,i){(function(){"use strict";var r;r=new RegExp(/(?!xmlns)^.*:/);i.normalize=function(r){return r.toLowerCase()};i.firstCharLowerCase=function(r){return r.charAt(0).toLowerCase()+r.slice(1)};i.stripPrefix=function(i){return i.replace(r,"")};i.parseNumbers=function(r){if(!isNaN(r)){r=r%1===0?parseInt(r,10):parseFloat(r)}return r};i.parseBooleans=function(r){if(/^(?:true|false)$/i.test(r)){r=r.toLowerCase()==="true"}return r}}).call(this)},1136:function(r,i,a){(function(){"use strict";var r,s,l,p,extend=function(r,i){for(var a in i){if(c.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;s=a(4617);r=a(2338);l=a(2711);p=a(5771);i.defaults=s.defaults;i.processors=p;i.ValidationError=function(r){extend(ValidationError,r);function ValidationError(r){this.message=r}return ValidationError}(Error);i.Builder=r.Builder;i.Parser=l.Parser;i.parseString=l.parseString;i.parseStringPromise=l.parseStringPromise}).call(this)},4038:function(r){(function(){r.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},686:function(r){(function(){r.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},3208:function(r){(function(){var i,a,s,l,p,c,d,u=[].slice,h={}.hasOwnProperty;i=function(){var r,i,a,s,l,c;c=arguments[0],l=2<=arguments.length?u.call(arguments,1):[];if(p(Object.assign)){Object.assign.apply(null,arguments)}else{for(r=0,a=l.length;r"}else{return"attribute: {"+r+"}, parent: <"+this.parent.name+">"}};XMLAttribute.prototype.isEqualNode=function(r){if(r.namespaceURI!==this.namespaceURI){return false}if(r.prefix!==this.prefix){return false}if(r.localName!==this.localName){return false}if(r.value!==this.value){return false}return true};return XMLAttribute}()}).call(this)},7723:function(r,i,a){(function(){var i,s,l,extend=function(r,i){for(var a in i){if(p.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;i=a(686);l=a(8130);r.exports=s=function(r){extend(XMLCData,r);function XMLCData(r,a){XMLCData.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=i.CData;this.value=this.stringify.cdata(a)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))};return XMLCData}(l)}).call(this)},8130:function(r,i,a){(function(){var i,s,extend=function(r,i){for(var a in i){if(l.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},l={}.hasOwnProperty;s=a(596);r.exports=i=function(r){extend(XMLCharacterData,r);function XMLCharacterData(r){XMLCharacterData.__super__.constructor.call(this,r);this.value=""}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}});XMLCharacterData.prototype.clone=function(){return Object.create(this)};XMLCharacterData.prototype.substringData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.insertData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.deleteData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.replaceData=function(r,i,a){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.isEqualNode=function(r){if(!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)){return false}if(r.data!==this.data){return false}return true};return XMLCharacterData}(s)}).call(this)},746:function(r,i,a){(function(){var i,s,l,extend=function(r,i){for(var a in i){if(p.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;i=a(686);s=a(8130);r.exports=l=function(r){extend(XMLComment,r);function XMLComment(r,a){XMLComment.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=i.Comment;this.value=this.stringify.comment(a)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))};return XMLComment}(s)}).call(this)},5511:function(r,i,a){(function(){var i,s,l;s=a(1721);l=a(149);r.exports=i=function(){function XMLDOMConfiguration(){var r;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new s,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=r=Object.create(this.defaultParams)}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new l(Object.keys(this.defaultParams))}});XMLDOMConfiguration.prototype.getParameter=function(r){if(this.params.hasOwnProperty(r)){return this.params[r]}else{return null}};XMLDOMConfiguration.prototype.canSetParameter=function(r,i){return true};XMLDOMConfiguration.prototype.setParameter=function(r,i){if(i!=null){return this.params[r]=i}else{return delete this.params[r]}};return XMLDOMConfiguration}()}).call(this)},1721:function(r){(function(){var i;r.exports=i=function(){function XMLDOMErrorHandler(){}XMLDOMErrorHandler.prototype.handleError=function(r){throw new Error(r)};return XMLDOMErrorHandler}()}).call(this)},4400:function(r){(function(){var i;r.exports=i=function(){function XMLDOMImplementation(){}XMLDOMImplementation.prototype.hasFeature=function(r,i){return true};XMLDOMImplementation.prototype.createDocumentType=function(r,i,a){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createDocument=function(r,i,a){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createHTMLDocument=function(r){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.getFeature=function(r,i){throw new Error("This DOM method is not implemented.")};return XMLDOMImplementation}()}).call(this)},149:function(r){(function(){var i;r.exports=i=function(){function XMLDOMStringList(r){this.arr=r||[]}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});XMLDOMStringList.prototype.item=function(r){return this.arr[r]||null};XMLDOMStringList.prototype.contains=function(r){return this.arr.indexOf(r)!==-1};return XMLDOMStringList}()}).call(this)},1325:function(r,i,a){(function(){var i,s,l,extend=function(r,i){for(var a in i){if(p.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;l=a(596);i=a(686);r.exports=s=function(r){extend(XMLDTDAttList,r);function XMLDTDAttList(r,a,s,l,p,c){XMLDTDAttList.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(s==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(a))}if(!l){throw new Error("Missing DTD attribute type. "+this.debugInfo(a))}if(!p){throw new Error("Missing DTD attribute default. "+this.debugInfo(a))}if(p.indexOf("#")!==0){p="#"+p}if(!p.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a))}if(c&&!p.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a))}this.elementName=this.stringify.name(a);this.type=i.AttributeDeclaration;this.attributeName=this.stringify.name(s);this.attributeType=this.stringify.dtdAttType(l);if(c){this.defaultValue=this.stringify.dtdAttDefault(c)}this.defaultValueType=p}XMLDTDAttList.prototype.toString=function(r){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(r))};return XMLDTDAttList}(l)}).call(this)},6017:function(r,i,a){(function(){var i,s,l,extend=function(r,i){for(var a in i){if(p.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;l=a(596);i=a(686);r.exports=s=function(r){extend(XMLDTDElement,r);function XMLDTDElement(r,a,s){XMLDTDElement.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!s){s="(#PCDATA)"}if(Array.isArray(s)){s="("+s.join(",")+")"}this.name=this.stringify.name(a);this.type=i.ElementDeclaration;this.value=this.stringify.dtdElementValue(s)}XMLDTDElement.prototype.toString=function(r){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(r))};return XMLDTDElement}(l)}).call(this)},7969:function(r,i,a){(function(){var i,s,l,p,extend=function(r,i){for(var a in i){if(c.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;p=a(3208).isObject;l=a(596);i=a(686);r.exports=s=function(r){extend(XMLDTDEntity,r);function XMLDTDEntity(r,a,s,l){XMLDTDEntity.__super__.constructor.call(this,r);if(s==null){throw new Error("Missing DTD entity name. "+this.debugInfo(s))}if(l==null){throw new Error("Missing DTD entity value. "+this.debugInfo(s))}this.pe=!!a;this.name=this.stringify.name(s);this.type=i.EntityDeclaration;if(!p(l)){this.value=this.stringify.dtdEntityValue(l);this.internal=true}else{if(!l.pubID&&!l.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(s))}if(l.pubID&&!l.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(s))}this.internal=false;if(l.pubID!=null){this.pubID=this.stringify.dtdPubID(l.pubID)}if(l.sysID!=null){this.sysID=this.stringify.dtdSysID(l.sysID)}if(l.nData!=null){this.nData=this.stringify.dtdNData(l.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(s))}}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});XMLDTDEntity.prototype.toString=function(r){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(r))};return XMLDTDEntity}(l)}).call(this)},7944:function(r,i,a){(function(){var i,s,l,extend=function(r,i){for(var a in i){if(p.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;l=a(596);i=a(686);r.exports=s=function(r){extend(XMLDTDNotation,r);function XMLDTDNotation(r,a,s){XMLDTDNotation.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing DTD notation name. "+this.debugInfo(a))}if(!s.pubID&&!s.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a))}this.name=this.stringify.name(a);this.type=i.NotationDeclaration;if(s.pubID!=null){this.pubID=this.stringify.dtdPubID(s.pubID)}if(s.sysID!=null){this.sysID=this.stringify.dtdSysID(s.sysID)}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});XMLDTDNotation.prototype.toString=function(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))};return XMLDTDNotation}(l)}).call(this)},6318:function(r,i,a){(function(){var i,s,l,p,extend=function(r,i){for(var a in i){if(c.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;p=a(3208).isObject;l=a(596);i=a(686);r.exports=s=function(r){extend(XMLDeclaration,r);function XMLDeclaration(r,a,s,l){var c;XMLDeclaration.__super__.constructor.call(this,r);if(p(a)){c=a,a=c.version,s=c.encoding,l=c.standalone}if(!a){a="1.0"}this.type=i.Declaration;this.version=this.stringify.xmlVersion(a);if(s!=null){this.encoding=this.stringify.xmlEncoding(s)}if(l!=null){this.standalone=this.stringify.xmlStandalone(l)}}XMLDeclaration.prototype.toString=function(r){return this.options.writer.declaration(this,this.options.writer.filterOptions(r))};return XMLDeclaration}(l)}).call(this)},3808:function(r,i,a){(function(){var i,s,l,p,c,d,u,h,g,extend=function(r,i){for(var a in i){if(y.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},y={}.hasOwnProperty;g=a(3208).isObject;h=a(596);i=a(686);s=a(1325);p=a(7969);l=a(6017);c=a(7944);u=a(1933);r.exports=d=function(r){extend(XMLDocType,r);function XMLDocType(r,a,s){var l,p,c,d,u,h;XMLDocType.__super__.constructor.call(this,r);this.type=i.DocType;if(r.children){d=r.children;for(p=0,c=d.length;p=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(r){var a,l,p,c;if(!r.isOpen){if(!this.root&&this.currentLevel===0&&r.type===i.Element){this.root=r}l="";if(r.type===i.Element){this.writerOptions.state=s.OpenTag;l=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<"+r.name;c=r.attribs;for(p in c){if(!D.call(c,p))continue;a=c[p];l+=this.writer.attribute(a,this.writerOptions,this.currentLevel)}l+=(r.children?">":"/>")+this.writer.endline(r,this.writerOptions,this.currentLevel);this.writerOptions.state=s.InsideTag}else{this.writerOptions.state=s.OpenTag;l=this.writer.indent(r,this.writerOptions,this.currentLevel)+""}l+=this.writer.endline(r,this.writerOptions,this.currentLevel)}this.onData(l,this.currentLevel);return r.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(r){var a;if(!r.isClosed){a="";this.writerOptions.state=s.CloseTag;if(r.type===i.Element){a=this.writer.indent(r,this.writerOptions,this.currentLevel)+""+this.writer.endline(r,this.writerOptions,this.currentLevel)}else{a=this.writer.indent(r,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(r,this.writerOptions,this.currentLevel)}this.writerOptions.state=s.None;this.onData(a,this.currentLevel);return r.isClosed=true}};XMLDocumentCB.prototype.onData=function(r,i){this.documentStarted=true;return this.onDataCallback(r,i+1)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.debugInfo=function(r){if(r==null){return""}else{return"node: <"+r+">"}};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(r,i,a){return this.node(r,i,a)};XMLDocumentCB.prototype.txt=function(r){return this.text(r)};XMLDocumentCB.prototype.dat=function(r){return this.cdata(r)};XMLDocumentCB.prototype.com=function(r){return this.comment(r)};XMLDocumentCB.prototype.ins=function(r,i){return this.instruction(r,i)};XMLDocumentCB.prototype.dec=function(r,i,a){return this.declaration(r,i,a)};XMLDocumentCB.prototype.dtd=function(r,i,a){return this.doctype(r,i,a)};XMLDocumentCB.prototype.e=function(r,i,a){return this.element(r,i,a)};XMLDocumentCB.prototype.n=function(r,i,a){return this.node(r,i,a)};XMLDocumentCB.prototype.t=function(r){return this.text(r)};XMLDocumentCB.prototype.d=function(r){return this.cdata(r)};XMLDocumentCB.prototype.c=function(r){return this.comment(r)};XMLDocumentCB.prototype.r=function(r){return this.raw(r)};XMLDocumentCB.prototype.i=function(r,i){return this.instruction(r,i)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode.type===i.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode.type===i.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(r,i){return this.entity(r,i)};XMLDocumentCB.prototype.pent=function(r,i){return this.pEntity(r,i)};XMLDocumentCB.prototype.not=function(r,i){return this.notation(r,i)};return XMLDocumentCB}()}).call(this)},447:function(r,i,a){(function(){var i,s,l,extend=function(r,i){for(var a in i){if(p.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;l=a(596);i=a(686);r.exports=s=function(r){extend(XMLDummy,r);function XMLDummy(r){XMLDummy.__super__.constructor.call(this,r);this.type=i.Dummy}XMLDummy.prototype.clone=function(){return Object.create(this)};XMLDummy.prototype.toString=function(r){return""};return XMLDummy}(l)}).call(this)},4791:function(r,i,a){(function(){var i,s,l,p,c,d,u,h,g,extend=function(r,i){for(var a in i){if(y.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},y={}.hasOwnProperty;g=a(3208),h=g.isObject,u=g.isFunction,d=g.getValue;c=a(596);i=a(686);s=a(4294);p=a(1933);r.exports=l=function(r){extend(XMLElement,r);function XMLElement(r,a,s){var l,p,c,d;XMLElement.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(a);this.type=i.Element;this.attribs={};this.schemaTypeInfo=null;if(s!=null){this.attribute(s)}if(r.type===i.Document){this.isRoot=true;this.documentObject=r;r.rootObject=this;if(r.children){d=r.children;for(p=0,c=d.length;p=s;i=0<=s?++a:--a){if(!this.attribs[i].isEqualNode(r.attribs[i])){return false}}return true};return XMLElement}(c)}).call(this)},1933:function(r){(function(){var i;r.exports=i=function(){function XMLNamedNodeMap(r){this.nodes=r}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null};XMLNamedNodeMap.prototype.getNamedItem=function(r){return this.nodes[r]};XMLNamedNodeMap.prototype.setNamedItem=function(r){var i;i=this.nodes[r.nodeName];this.nodes[r.nodeName]=r;return i||null};XMLNamedNodeMap.prototype.removeNamedItem=function(r){var i;i=this.nodes[r];delete this.nodes[r];return i||null};XMLNamedNodeMap.prototype.item=function(r){return this.nodes[Object.keys(this.nodes)[r]]||null};XMLNamedNodeMap.prototype.getNamedItemNS=function(r,i){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.setNamedItemNS=function(r){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.removeNamedItemNS=function(r,i){throw new Error("This DOM method is not implemented.")};return XMLNamedNodeMap}()}).call(this)},596:function(r,i,a){(function(){var i,s,l,p,c,d,u,h,g,y,b,v,w,x,S,_,T,N,P,O={}.hasOwnProperty;P=a(3208),N=P.isObject,T=P.isFunction,_=P.isEmpty,S=P.getValue;h=null;l=null;p=null;c=null;d=null;w=null;x=null;v=null;u=null;s=null;b=null;g=null;i=null;r.exports=y=function(){function XMLNode(r){this.parent=r;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!h){h=a(4791);l=a(7723);p=a(746);c=a(6318);d=a(3808);w=a(1285);x=a(9209);v=a(4655);u=a(447);s=a(686);b=a(2131);g=a(1933);i=a(4038)}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new b(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var r;r=this.parent.children.indexOf(this);return this.parent.children[r-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var r;r=this.parent.children.indexOf(this);return this.parent.children[r+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var r,i,a,l,p;if(this.nodeType===s.Element||this.nodeType===s.DocumentFragment){p="";l=this.children;for(i=0,a=l.length;i"}else if(!((a=this.parent)!=null?a.name:void 0)){return"node: <"+r+">"}else{return"node: <"+r+">, parent: <"+this.parent.name+">"}};XMLNode.prototype.ele=function(r,i,a){return this.element(r,i,a)};XMLNode.prototype.nod=function(r,i,a){return this.node(r,i,a)};XMLNode.prototype.txt=function(r){return this.text(r)};XMLNode.prototype.dat=function(r){return this.cdata(r)};XMLNode.prototype.com=function(r){return this.comment(r)};XMLNode.prototype.ins=function(r,i){return this.instruction(r,i)};XMLNode.prototype.doc=function(){return this.document()};XMLNode.prototype.dec=function(r,i,a){return this.declaration(r,i,a)};XMLNode.prototype.e=function(r,i,a){return this.element(r,i,a)};XMLNode.prototype.n=function(r,i,a){return this.node(r,i,a)};XMLNode.prototype.t=function(r){return this.text(r)};XMLNode.prototype.d=function(r){return this.cdata(r)};XMLNode.prototype.c=function(r){return this.comment(r)};XMLNode.prototype.r=function(r){return this.raw(r)};XMLNode.prototype.i=function(r,i){return this.instruction(r,i)};XMLNode.prototype.u=function(){return this.up()};XMLNode.prototype.importXMLBuilder=function(r){return this.importDocument(r)};XMLNode.prototype.replaceChild=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.removeChild=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.appendChild=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.hasChildNodes=function(){return this.children.length!==0};XMLNode.prototype.cloneNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isSupported=function(r,i){return true};XMLNode.prototype.hasAttributes=function(){return this.attribs.length!==0};XMLNode.prototype.compareDocumentPosition=function(r){var a,s;a=this;if(a===r){return 0}else if(this.document()!==r.document()){s=i.Disconnected|i.ImplementationSpecific;if(Math.random()<.5){s|=i.Preceding}else{s|=i.Following}return s}else if(a.isAncestor(r)){return i.Contains|i.Preceding}else if(a.isDescendant(r)){return i.Contains|i.Following}else if(a.isPreceding(r)){return i.Preceding}else{return i.Following}};XMLNode.prototype.isSameNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupPrefix=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isDefaultNamespace=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupNamespaceURI=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isEqualNode=function(r){var i,a,s;if(r.nodeType!==this.nodeType){return false}if(r.children.length!==this.children.length){return false}for(i=a=0,s=this.children.length-1;0<=s?a<=s:a>=s;i=0<=s?++a:--a){if(!this.children[i].isEqualNode(r.children[i])){return false}}return true};XMLNode.prototype.getFeature=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.setUserData=function(r,i,a){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.getUserData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.contains=function(r){if(!r){return false}return r===this||this.isDescendant(r)};XMLNode.prototype.isDescendant=function(r){var i,a,s,l,p;p=this.children;for(s=0,l=p.length;sa}};XMLNode.prototype.treePosition=function(r){var i,a;a=0;i=false;this.foreachTreeNode(this.document(),(function(s){a++;if(!i&&s===r){return i=true}}));if(i){return a}else{return-1}};XMLNode.prototype.foreachTreeNode=function(r,i){var a,s,l,p,c;r||(r=this.document());p=r.children;for(s=0,l=p.length;s0){this.stream.write(" [");this.stream.write(this.endline(r,i,a));i.state=s.InsideTag;d=r.children;for(p=0,c=d.length;p");this.stream.write(this.endline(r,i,a));i.state=s.None;return this.closeNode(r,i,a)};XMLStreamWriter.prototype.element=function(r,a,l){var p,d,u,h,g,y,b,v,w,x;l||(l=0);this.openNode(r,a,l);a.state=s.OpenTag;this.stream.write(this.indent(r,a,l)+"<"+r.name);w=r.attribs;for(b in w){if(!c.call(w,b))continue;p=w[b];this.attribute(p,a,l)}u=r.children.length;h=u===0?null:r.children[0];if(u===0||r.children.every((function(r){return(r.type===i.Text||r.type===i.Raw)&&r.value===""}))){if(a.allowEmpty){this.stream.write(">");a.state=s.CloseTag;this.stream.write("")}else{a.state=s.CloseTag;this.stream.write(a.spaceBeforeSlash+"/>")}}else if(a.pretty&&u===1&&(h.type===i.Text||h.type===i.Raw)&&h.value!=null){this.stream.write(">");a.state=s.InsideTag;a.suppressPrettyCount++;v=true;this.writeChildNode(h,a,l+1);a.suppressPrettyCount--;v=false;a.state=s.CloseTag;this.stream.write("")}else{this.stream.write(">"+this.endline(r,a,l));a.state=s.InsideTag;x=r.children;for(g=0,y=x.length;g")}this.stream.write(this.endline(r,a,l));a.state=s.None;return this.closeNode(r,a,l)};XMLStreamWriter.prototype.processingInstruction=function(r,i,a){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,r,i,a))};XMLStreamWriter.prototype.raw=function(r,i,a){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,r,i,a))};XMLStreamWriter.prototype.text=function(r,i,a){return this.stream.write(XMLStreamWriter.__super__.text.call(this,r,i,a))};XMLStreamWriter.prototype.dtdAttList=function(r,i,a){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,r,i,a))};XMLStreamWriter.prototype.dtdElement=function(r,i,a){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,r,i,a))};XMLStreamWriter.prototype.dtdEntity=function(r,i,a){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,r,i,a))};XMLStreamWriter.prototype.dtdNotation=function(r,i,a){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,r,i,a))};return XMLStreamWriter}(p)}).call(this)},5134:function(r,i,a){(function(){var i,s,extend=function(r,i){for(var a in i){if(l.call(i,a))r[a]=i[a]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},l={}.hasOwnProperty;s=a(8480);r.exports=i=function(r){extend(XMLStringWriter,r);function XMLStringWriter(r){XMLStringWriter.__super__.constructor.call(this,r)}XMLStringWriter.prototype.document=function(r,i){var a,s,l,p,c;i=this.filterOptions(i);p="";c=r.children;for(s=0,l=c.length;s","]]]]>");return this.assertLegalChar(r)};XMLStringifier.prototype.comment=function(r){if(this.options.noValidation){return r}r=""+r||"";if(r.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.raw=function(r){if(this.options.noValidation){return r}return""+r||""};XMLStringifier.prototype.attValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(this.attEscape(r=""+r||""))};XMLStringifier.prototype.insTarget=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.insValue=function(r){if(this.options.noValidation){return r}r=""+r||"";if(r.match(/\?>/)){throw new Error("Invalid processing instruction value: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.xmlVersion=function(r){if(this.options.noValidation){return r}r=""+r||"";if(!r.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+r)}return r};XMLStringifier.prototype.xmlEncoding=function(r){if(this.options.noValidation){return r}r=""+r||"";if(!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.xmlStandalone=function(r){if(this.options.noValidation){return r}if(r){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdSysID=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdElementValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdAttType=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdAttDefault=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdEntityValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdNData=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(r){var i,a;if(this.options.noValidation){return r}i="";if(this.options.version==="1.0"){i=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(a=r.match(i)){throw new Error("Invalid character in string: "+r+" at index "+a.index)}}else if(this.options.version==="1.1"){i=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(a=r.match(i)){throw new Error("Invalid character in string: "+r+" at index "+a.index)}}return r};XMLStringifier.prototype.assertLegalName=function(r){var i;if(this.options.noValidation){return r}this.assertLegalChar(r);i=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!r.match(i)){throw new Error("Invalid character in name")}return r};XMLStringifier.prototype.textEscape=function(r){var i;if(this.options.noValidation){return r}i=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return r.replace(i,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(r){var i;if(this.options.noValidation){return r}i=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return r.replace(i,"&").replace(/0){return new Array(s).join(i.indent)}}return""};XMLWriterBase.prototype.endline=function(r,i,a){if(!i.pretty||i.suppressPrettyCount){return""}else{return i.newline}};XMLWriterBase.prototype.attribute=function(r,i,a){var s;this.openAttribute(r,i,a);s=" "+r.name+'="'+r.value+'"';this.closeAttribute(r,i,a);return s};XMLWriterBase.prototype.cdata=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+""+this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.comment=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+"\x3c!-- ";i.state=s.InsideTag;l+=r.value;i.state=s.CloseTag;l+=" --\x3e"+this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.declaration=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+"";l+=this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.docType=function(r,i,a){var l,p,c,d,u;a||(a=0);this.openNode(r,i,a);i.state=s.OpenTag;d=this.indent(r,i,a);d+="0){d+=" [";d+=this.endline(r,i,a);i.state=s.InsideTag;u=r.children;for(p=0,c=u.length;p";d+=this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return d};XMLWriterBase.prototype.element=function(r,a,l){var p,c,d,u,h,g,y,b,v,w,x,S,_,T;l||(l=0);w=false;x="";this.openNode(r,a,l);a.state=s.OpenTag;x+=this.indent(r,a,l)+"<"+r.name;S=r.attribs;for(v in S){if(!N.call(S,v))continue;p=S[v];x+=this.attribute(p,a,l)}d=r.children.length;u=d===0?null:r.children[0];if(d===0||r.children.every((function(r){return(r.type===i.Text||r.type===i.Raw)&&r.value===""}))){if(a.allowEmpty){x+=">";a.state=s.CloseTag;x+=""+this.endline(r,a,l)}else{a.state=s.CloseTag;x+=a.spaceBeforeSlash+"/>"+this.endline(r,a,l)}}else if(a.pretty&&d===1&&(u.type===i.Text||u.type===i.Raw)&&u.value!=null){x+=">";a.state=s.InsideTag;a.suppressPrettyCount++;w=true;x+=this.writeChildNode(u,a,l+1);a.suppressPrettyCount--;w=false;a.state=s.CloseTag;x+=""+this.endline(r,a,l)}else{if(a.dontPrettyTextNodes){_=r.children;for(h=0,y=_.length;h"+this.endline(r,a,l);a.state=s.InsideTag;T=r.children;for(g=0,b=T.length;g";if(w){a.suppressPrettyCount--}x+=this.endline(r,a,l);a.state=s.None}this.closeNode(r,a,l);return x};XMLWriterBase.prototype.writeChildNode=function(r,a,s){switch(r.type){case i.CData:return this.cdata(r,a,s);case i.Comment:return this.comment(r,a,s);case i.Element:return this.element(r,a,s);case i.Raw:return this.raw(r,a,s);case i.Text:return this.text(r,a,s);case i.ProcessingInstruction:return this.processingInstruction(r,a,s);case i.Dummy:return"";case i.Declaration:return this.declaration(r,a,s);case i.DocType:return this.docType(r,a,s);case i.AttributeDeclaration:return this.dtdAttList(r,a,s);case i.ElementDeclaration:return this.dtdElement(r,a,s);case i.EntityDeclaration:return this.dtdEntity(r,a,s);case i.NotationDeclaration:return this.dtdNotation(r,a,s);default:throw new Error("Unknown XML node type: "+r.constructor.name)}};XMLWriterBase.prototype.processingInstruction=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+"";l+=this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.raw=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a);i.state=s.InsideTag;l+=r.value;i.state=s.CloseTag;l+=this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.text=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a);i.state=s.InsideTag;l+=r.value;i.state=s.CloseTag;l+=this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.dtdAttList=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+""+this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.dtdElement=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+""+this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.dtdEntity=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+""+this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.dtdNotation=function(r,i,a){var l;this.openNode(r,i,a);i.state=s.OpenTag;l=this.indent(r,i,a)+""+this.endline(r,i,a);i.state=s.None;this.closeNode(r,i,a);return l};XMLWriterBase.prototype.openNode=function(r,i,a){};XMLWriterBase.prototype.closeNode=function(r,i,a){};XMLWriterBase.prototype.openAttribute=function(r,i,a){};XMLWriterBase.prototype.closeAttribute=function(r,i,a){};return XMLWriterBase}()}).call(this)},3595:function(r,i,a){(function(){var i,s,l,p,c,d,u,h,g,y;y=a(3208),h=y.assign,g=y.isFunction;l=a(4400);p=a(803);c=a(6064);u=a(5134);d=a(5126);i=a(686);s=a(4955);r.exports.create=function(r,i,a,s){var l,c;if(r==null){throw new Error("Root element needs a name.")}s=h({},i,a,s);l=new p(s);c=l.element(r);if(!s.headless){l.declaration(s);if(s.pubID!=null||s.sysID!=null){l.dtd(s)}}return c};r.exports.begin=function(r,i,a){var s;if(g(r)){s=[r,i],i=s[0],a=s[1];r={}}if(i){return new c(r,i,a)}else{return new p(r)}};r.exports.stringWriter=function(r){return new u(r)};r.exports.streamWriter=function(r,i){return new d(r,i)};r.exports.implementation=new l;r.exports.nodeType=i;r.exports.writerState=s}).call(this)},6060:(r,i,a)=>{ +r.exports=function(r,i){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var s=r.length;if(s<=1)return r;var a="";if(s>4&&r[3]==="\\"){var l=r[2];if((l==="?"||l===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}var c=r.split(/[/\\]+/);if(i!==false&&c[c.length-1]===""){c.pop()}return a+c.join("/")}},39472:(r,i,s)=>{var a=s(90666);r.exports=a(once);r.exports.strict=a(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var i=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;return f}},1238:r=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,i,s,a){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var l=arguments.length;var c,p;switch(l){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,i)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,i,s)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,i,s,a)}));default:c=new Array(l-1);p=0;while(p{r.exports=global.process},94282:(r,i,s)=>{r.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):s(4522)},4522:r=>{r.exports=typeof queueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},60135:(r,i,s)=>{"use strict";var a=s(1238);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(70326));c.inherits=s(52713);var p=s(13616);var d=s(38509);c.inherits(Duplex,p);{var u=l(d.prototype);for(var A=0;A{"use strict";r.exports=PassThrough;var a=s(89001);var l=Object.create(s(70326));l.inherits=s(52713);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)}},13616:(r,i,s)=>{"use strict";var a=s(1238);r.exports=Readable;var l=s(45062);var c;Readable.ReadableState=ReadableState;var p=s(82361).EventEmitter;var EElistenerCount=function(r,i){return r.listeners(i).length};var d=s(35098);var u=s(17289).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(70326));h.inherits=s(52713);var g=s(73837);var y=void 0;if(g&&g.debuglog){y=g.debuglog("stream")}else{y=function(){}}var b=s(92595);var C=s(94334);var v;h.inherits(Readable,d);var B=["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(60135);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 b;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(!v)v=s(46492).s;this.decoder=new v(r.encoding);this.encoding=r.encoding}}function Readable(r){c=c||s(60135);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=C.destroy;Readable.prototype._undestroy=C.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){y("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)){y("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;y("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){y("emitReadable",i.flowing);i.emittedReadable=true;if(i.sync)a.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){y("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){y("false write response, pause",l.awaitDrain);l.awaitDrain++;A=true}s.pause()}}function onerror(i){y("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(){y("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){y("unpipe");s.unpipe(r)}r.emit("pipe",s);if(!l.flowing){y("pipe resume");s.resume()}return r};function pipeOnDrain(r){return function(){var i=r._readableState;y("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(60135);var l=Object.create(s(70326));l.inherits=s(52713);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(1238);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(70326));p.inherits=s(52713);var d={deprecate:s(32151)};var u=s(35098);var A=s(17289).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(94334);p.inherits(Writable,u);function nop(){}function WritableState(r,i){c=c||s(60135);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 y;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){y=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(y.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{y=function(r){return r instanceof this}}function Writable(r){c=c||s(60135);if(!y.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(17289).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}}},94334:(r,i,s)=>{"use strict";var a=s(1238);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}},35098:(r,i,s)=>{r.exports=s(12781)},83775:(r,i,s)=>{r.exports=s(53636).PassThrough},53636:(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(13616);i.Stream=a||i;i.Readable=i;i.Writable=s(38509);i.Duplex=s(60135);i.Transform=s(89001);i.PassThrough=s(17264)}},65154:(r,i,s)=>{"use strict";const{SymbolDispose:a}=s(29097);const{AbortError:l,codes:c}=s(12752);const{isNodeStream:p,isWebStream:d,kControllerErrorFunction:u}=s(53583);const A=s(91830);const{ERR_INVALID_ARG_TYPE:h}=c;let g;const validateAbortSignal=(r,i)=>{if(typeof r!=="object"||!("aborted"in r)){throw new h(i,"AbortSignal",r)}};r.exports.addAbortSignal=function addAbortSignal(i,s){validateAbortSignal(i,"signal");if(!p(s)&&!d(s)){throw new h("stream",["ReadableStream","WritableStream","Stream"],s)}return r.exports.addAbortSignalNoValidate(i,s)};r.exports.addAbortSignalNoValidate=function(r,i){if(typeof r!=="object"||!("aborted"in r)){return i}const c=p(i)?()=>{i.destroy(new l(undefined,{cause:r.reason}))}:()=>{i[u](new l(undefined,{cause:r.reason}))};if(r.aborted){c()}else{g=g||s(14004).addAbortListener;const l=g(r,c);A(i,l[a])}return i}},13039:(r,i,s)=>{"use strict";const{StringPrototypeSlice:a,SymbolIterator:l,TypedArrayPrototypeSet:c,Uint8Array:p}=s(29097);const{Buffer:d}=s(14300);const{inspect:u}=s(14004);r.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(r){const i={data:r,next:null};if(this.length>0)this.tail.next=i;else this.head=i;this.tail=i;++this.length}unshift(r){const i={data:r,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length}shift(){if(this.length===0)return;const r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r}clear(){this.head=this.tail=null;this.length=0}join(r){if(this.length===0)return"";let i=this.head;let s=""+i.data;while((i=i.next)!==null)s+=r+i.data;return s}concat(r){if(this.length===0)return d.alloc(0);const i=d.allocUnsafe(r>>>0);let s=this.head;let a=0;while(s){c(i,s.data,a);a+=s.data.length;s=s.next}return i}consume(r,i){const s=this.head.data;if(rc.length){i+=c;r-=c.length}else{if(r===c.length){i+=c;++l;if(s.next)this.head=s.next;else this.head=this.tail=null}else{i+=a(c,0,r);this.head=s;s.data=a(c,r)}break}++l}while((s=s.next)!==null);this.length-=l;return i}_getBuffer(r){const i=d.allocUnsafe(r);const s=r;let a=this.head;let l=0;do{const d=a.data;if(r>d.length){c(i,d,s-r);r-=d.length}else{if(r===d.length){c(i,d,s-r);++l;if(a.next)this.head=a.next;else this.head=this.tail=null}else{c(i,new p(d.buffer,d.byteOffset,r),s-r);this.head=a;a.data=d.slice(r)}break}++l}while((a=a.next)!==null);this.length-=l;return i}[Symbol.for("nodejs.util.inspect.custom")](r,i){return u(this,{...i,depth:0,customInspect:false})}}},30:(r,i,s)=>{"use strict";const{pipeline:a}=s(6438);const l=s(92999);const{destroyer:c}=s(46150);const{isNodeStream:p,isReadable:d,isWritable:u,isWebStream:A,isTransformStream:h,isWritableStream:g,isReadableStream:y}=s(53583);const{AbortError:b,codes:{ERR_INVALID_ARG_VALUE:C,ERR_MISSING_ARGS:v}}=s(12752);const B=s(91830);r.exports=function compose(...r){if(r.length===0){throw new v("streams")}if(r.length===1){return l.from(r[0])}const i=[...r];if(typeof r[0]==="function"){r[0]=l.from(r[0])}if(typeof r[r.length-1]==="function"){const i=r.length-1;r[i]=l.from(r[i])}for(let s=0;s0&&!(u(r[s])||g(r[s])||h(r[s]))){throw new C(`streams[${s}]`,i[s],"must be writable")}}let s;let w;let I;let S;let Q;function onfinished(r){const i=S;S=null;if(i){i(r)}else if(r){Q.destroy(r)}else if(!T&&!R){Q.destroy()}}const x=r[0];const N=a(r,onfinished);const R=!!(u(x)||g(x)||h(x));const T=!!(d(N)||y(N)||h(N));Q=new l({writableObjectMode:!!(x!==null&&x!==undefined&&x.writableObjectMode),readableObjectMode:!!(N!==null&&N!==undefined&&N.readableObjectMode),writable:R,readable:T});if(R){if(p(x)){Q._write=function(r,i,a){if(x.write(r,i)){a()}else{s=a}};Q._final=function(r){x.end();w=r};x.on("drain",(function(){if(s){const r=s;s=null;r()}}))}else if(A(x)){const r=h(x)?x.writable:x;const i=r.getWriter();Q._write=async function(r,s,a){try{await i.ready;i.write(r).catch((()=>{}));a()}catch(r){a(r)}};Q._final=async function(r){try{await i.ready;i.close().catch((()=>{}));w=r}catch(i){r(i)}}}const r=h(N)?N.readable:N;B(r,(()=>{if(w){const r=w;w=null;r()}}))}if(T){if(p(N)){N.on("readable",(function(){if(I){const r=I;I=null;r()}}));N.on("end",(function(){Q.push(null)}));Q._read=function(){while(true){const r=N.read();if(r===null){I=Q._read;return}if(!Q.push(r)){return}}}}else if(A(N)){const r=h(N)?N.readable:N;const i=r.getReader();Q._read=async function(){while(true){try{const{value:r,done:s}=await i.read();if(!Q.push(r)){return}if(s){Q.push(null);return}}catch{return}}}}}Q._destroy=function(r,i){if(!r&&S!==null){r=new b}I=null;s=null;w=null;if(S===null){i(r)}else{S=i;if(p(N)){c(N,r)}}};return Q}},46150:(r,i,s)=>{"use strict";const a=s(91524);const{aggregateTwoErrors:l,codes:{ERR_MULTIPLE_CALLBACK:c},AbortError:p}=s(12752);const{Symbol:d}=s(29097);const{kIsDestroyed:u,isDestroyed:A,isFinished:h,isServerRequest:g}=s(53583);const y=d("kDestroy");const b=d("kConstruct");function checkError(r,i,s){if(r){r.stack;if(i&&!i.errored){i.errored=r}if(s&&!s.errored){s.errored=r}}}function destroy(r,i){const s=this._readableState;const a=this._writableState;const c=a||s;if(a!==null&&a!==undefined&&a.destroyed||s!==null&&s!==undefined&&s.destroyed){if(typeof i==="function"){i()}return this}checkError(r,a,s);if(a){a.destroyed=true}if(s){s.destroyed=true}if(!c.constructed){this.once(y,(function(s){_destroy(this,l(s,r),i)}))}else{_destroy(this,r,i)}return this}function _destroy(r,i,s){let l=false;function onDestroy(i){if(l){return}l=true;const c=r._readableState;const p=r._writableState;checkError(i,p,c);if(p){p.closed=true}if(c){c.closed=true}if(typeof s==="function"){s(i)}if(i){a.nextTick(emitErrorCloseNT,r,i)}else{a.nextTick(emitCloseNT,r)}}try{r._destroy(i||null,onDestroy)}catch(i){onDestroy(i)}}function emitErrorCloseNT(r,i){emitErrorNT(r,i);emitCloseNT(r)}function emitCloseNT(r){const i=r._readableState;const s=r._writableState;if(s){s.closeEmitted=true}if(i){i.closeEmitted=true}if(s!==null&&s!==undefined&&s.emitClose||i!==null&&i!==undefined&&i.emitClose){r.emit("close")}}function emitErrorNT(r,i){const s=r._readableState;const a=r._writableState;if(a!==null&&a!==undefined&&a.errorEmitted||s!==null&&s!==undefined&&s.errorEmitted){return}if(a){a.errorEmitted=true}if(s){s.errorEmitted=true}r.emit("error",i)}function undestroy(){const r=this._readableState;const i=this._writableState;if(r){r.constructed=true;r.closed=false;r.closeEmitted=false;r.destroyed=false;r.errored=null;r.errorEmitted=false;r.reading=false;r.ended=r.readable===false;r.endEmitted=r.readable===false}if(i){i.constructed=true;i.destroyed=false;i.closed=false;i.closeEmitted=false;i.errored=null;i.errorEmitted=false;i.finalCalled=false;i.prefinished=false;i.ended=i.writable===false;i.ending=i.writable===false;i.finished=i.writable===false}}function errorOrDestroy(r,i,s){const l=r._readableState;const c=r._writableState;if(c!==null&&c!==undefined&&c.destroyed||l!==null&&l!==undefined&&l.destroyed){return this}if(l!==null&&l!==undefined&&l.autoDestroy||c!==null&&c!==undefined&&c.autoDestroy)r.destroy(i);else if(i){i.stack;if(c&&!c.errored){c.errored=i}if(l&&!l.errored){l.errored=i}if(s){a.nextTick(emitErrorNT,r,i)}else{emitErrorNT(r,i)}}}function construct(r,i){if(typeof r._construct!=="function"){return}const s=r._readableState;const l=r._writableState;if(s){s.constructed=false}if(l){l.constructed=false}r.once(b,i);if(r.listenerCount(b)>1){return}a.nextTick(constructNT,r)}function constructNT(r){let i=false;function onConstruct(s){if(i){errorOrDestroy(r,s!==null&&s!==undefined?s:new c);return}i=true;const l=r._readableState;const p=r._writableState;const d=p||l;if(l){l.constructed=true}if(p){p.constructed=true}if(d.destroyed){r.emit(y,s)}else if(s){errorOrDestroy(r,s,true)}else{a.nextTick(emitConstructNT,r)}}try{r._construct((r=>{a.nextTick(onConstruct,r)}))}catch(r){a.nextTick(onConstruct,r)}}function emitConstructNT(r){r.emit(b)}function isRequest(r){return(r===null||r===undefined?undefined:r.setHeader)&&typeof r.abort==="function"}function emitCloseLegacy(r){r.emit("close")}function emitErrorCloseLegacy(r,i){r.emit("error",i);a.nextTick(emitCloseLegacy,r)}function destroyer(r,i){if(!r||A(r)){return}if(!i&&!h(r)){i=new p}if(g(r)){r.socket=null;r.destroy(i)}else if(isRequest(r)){r.abort()}else if(isRequest(r.req)){r.req.abort()}else if(typeof r.destroy==="function"){r.destroy(i)}else if(typeof r.close==="function"){r.close()}else if(i){a.nextTick(emitErrorCloseLegacy,r,i)}else{a.nextTick(emitCloseLegacy,r)}if(!r.destroyed){r[u]=true}}r.exports={construct:construct,destroyer:destroyer,destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},92999:(r,i,s)=>{"use strict";const{ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:l,ObjectKeys:c,ObjectSetPrototypeOf:p}=s(29097);r.exports=Duplex;const d=s(39961);const u=s(62536);p(Duplex.prototype,d.prototype);p(Duplex,d);{const r=c(u.prototype);for(let i=0;i{const a=s(91524);"use strict";const l=s(14300);const{isReadable:c,isWritable:p,isIterable:d,isNodeStream:u,isReadableNodeStream:A,isWritableNodeStream:h,isDuplexNodeStream:g,isReadableStream:y,isWritableStream:b}=s(53583);const C=s(91830);const{AbortError:v,codes:{ERR_INVALID_ARG_TYPE:B,ERR_INVALID_RETURN_VALUE:w}}=s(12752);const{destroyer:I}=s(46150);const S=s(92999);const Q=s(39961);const x=s(62536);const{createDeferredPromise:N}=s(14004);const R=s(20202);const T=globalThis.Blob||l.Blob;const D=typeof T!=="undefined"?function isBlob(r){return r instanceof T}:function isBlob(r){return false};const _=globalThis.AbortController||s(37428).AbortController;const{FunctionPrototypeCall:k}=s(29097);class Duplexify extends S{constructor(r){super(r);if((r===null||r===undefined?undefined:r.readable)===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if((r===null||r===undefined?undefined:r.writable)===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}}r.exports=function duplexify(r,i){if(g(r)){return r}if(A(r)){return _duplexify({readable:r})}if(h(r)){return _duplexify({writable:r})}if(u(r)){return _duplexify({writable:false,readable:false})}if(y(r)){return _duplexify({readable:Q.fromWeb(r)})}if(b(r)){return _duplexify({writable:x.fromWeb(r)})}if(typeof r==="function"){const{value:s,write:l,final:c,destroy:p}=fromAsyncGen(r);if(d(s)){return R(Duplexify,s,{objectMode:true,write:l,final:c,destroy:p})}const u=s===null||s===undefined?undefined:s.then;if(typeof u==="function"){let r;const i=k(u,s,(r=>{if(r!=null){throw new w("nully","body",r)}}),(i=>{I(r,i)}));return r=new Duplexify({objectMode:true,readable:false,write:l,final(r){c((async()=>{try{await i;a.nextTick(r,null)}catch(i){a.nextTick(r,i)}}))},destroy:p})}throw new w("Iterable, AsyncIterable or AsyncFunction",i,s)}if(D(r)){return duplexify(r.arrayBuffer())}if(d(r)){return R(Duplexify,r,{objectMode:true,writable:false})}if(y(r===null||r===undefined?undefined:r.readable)&&b(r===null||r===undefined?undefined:r.writable)){return Duplexify.fromWeb(r)}if(typeof(r===null||r===undefined?undefined:r.writable)==="object"||typeof(r===null||r===undefined?undefined:r.readable)==="object"){const i=r!==null&&r!==undefined&&r.readable?A(r===null||r===undefined?undefined:r.readable)?r===null||r===undefined?undefined:r.readable:duplexify(r.readable):undefined;const s=r!==null&&r!==undefined&&r.writable?h(r===null||r===undefined?undefined:r.writable)?r===null||r===undefined?undefined:r.writable:duplexify(r.writable):undefined;return _duplexify({readable:i,writable:s})}const s=r===null||r===undefined?undefined:r.then;if(typeof s==="function"){let i;k(s,r,(r=>{if(r!=null){i.push(r)}i.push(null)}),(r=>{I(i,r)}));return i=new Duplexify({objectMode:true,writable:false,read(){}})}throw new B(i,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],r)};function fromAsyncGen(r){let{promise:i,resolve:s}=N();const l=new _;const c=l.signal;const p=r(async function*(){while(true){const r=i;i=null;const{chunk:l,done:p,cb:d}=await r;a.nextTick(d);if(p)return;if(c.aborted)throw new v(undefined,{cause:c.reason});({promise:i,resolve:s}=N());yield l}}(),{signal:c});return{value:p,write(r,i,a){const l=s;s=null;l({chunk:r,done:false,cb:a})},final(r){const i=s;s=null;i({done:true,cb:r})},destroy(r,i){l.abort();i(r)}}}function _duplexify(r){const i=r.readable&&typeof r.readable.read!=="function"?Q.wrap(r.readable):r.readable;const s=r.writable;let a=!!c(i);let l=!!p(s);let d;let u;let A;let h;let g;function onfinished(r){const i=h;h=null;if(i){i(r)}else if(r){g.destroy(r)}}g=new Duplexify({readableObjectMode:!!(i!==null&&i!==undefined&&i.readableObjectMode),writableObjectMode:!!(s!==null&&s!==undefined&&s.writableObjectMode),readable:a,writable:l});if(l){C(s,(r=>{l=false;if(r){I(i,r)}onfinished(r)}));g._write=function(r,i,a){if(s.write(r,i)){a()}else{d=a}};g._final=function(r){s.end();u=r};s.on("drain",(function(){if(d){const r=d;d=null;r()}}));s.on("finish",(function(){if(u){const r=u;u=null;r()}}))}if(a){C(i,(r=>{a=false;if(r){I(i,r)}onfinished(r)}));i.on("readable",(function(){if(A){const r=A;A=null;r()}}));i.on("end",(function(){g.push(null)}));g._read=function(){while(true){const r=i.read();if(r===null){A=g._read;return}if(!g.push(r)){return}}}}g._destroy=function(r,a){if(!r&&h!==null){r=new v}A=null;d=null;u=null;if(h===null){a(r)}else{h=a;I(s,r);I(i,r)}};return g}},91830:(r,i,s)=>{const a=s(91524);"use strict";const{AbortError:l,codes:c}=s(12752);const{ERR_INVALID_ARG_TYPE:p,ERR_STREAM_PREMATURE_CLOSE:d}=c;const{kEmptyObject:u,once:A}=s(14004);const{validateAbortSignal:h,validateFunction:g,validateObject:y,validateBoolean:b}=s(51640);const{Promise:C,PromisePrototypeThen:v,SymbolDispose:B}=s(29097);const{isClosed:w,isReadable:I,isReadableNodeStream:S,isReadableStream:Q,isReadableFinished:x,isReadableErrored:N,isWritable:R,isWritableNodeStream:T,isWritableStream:D,isWritableFinished:_,isWritableErrored:k,isNodeStream:P,willEmitClose:O,kIsClosedPromise:L}=s(53583);let M;function isRequest(r){return r.setHeader&&typeof r.abort==="function"}const nop=()=>{};function eos(r,i,c){var b,C;if(arguments.length===2){c=i;i=u}else if(i==null){i=u}else{y(i,"options")}g(c,"callback");h(i.signal,"options.signal");c=A(c);if(Q(r)||D(r)){return eosWeb(r,i,c)}if(!P(r)){throw new p("stream",["ReadableStream","WritableStream","Stream"],r)}const v=(b=i.readable)!==null&&b!==undefined?b:S(r);const L=(C=i.writable)!==null&&C!==undefined?C:T(r);const U=r._writableState;const H=r._readableState;const onlegacyfinish=()=>{if(!r.writable){onfinish()}};let j=O(r)&&S(r)===v&&T(r)===L;let q=_(r,false);const onfinish=()=>{q=true;if(r.destroyed){j=false}if(j&&(!r.readable||v)){return}if(!v||G){c.call(r)}};let G=x(r,false);const onend=()=>{G=true;if(r.destroyed){j=false}if(j&&(!r.writable||L)){return}if(!L||q){c.call(r)}};const onerror=i=>{c.call(r,i)};let z=w(r);const onclose=()=>{z=true;const i=k(r)||N(r);if(i&&typeof i!=="boolean"){return c.call(r,i)}if(v&&!G&&S(r,true)){if(!x(r,false))return c.call(r,new d)}if(L&&!q){if(!_(r,false))return c.call(r,new d)}c.call(r)};const onclosed=()=>{z=true;const i=k(r)||N(r);if(i&&typeof i!=="boolean"){return c.call(r,i)}c.call(r)};const onrequest=()=>{r.req.on("finish",onfinish)};if(isRequest(r)){r.on("complete",onfinish);if(!j){r.on("abort",onclose)}if(r.req){onrequest()}else{r.on("request",onrequest)}}else if(L&&!U){r.on("end",onlegacyfinish);r.on("close",onlegacyfinish)}if(!j&&typeof r.aborted==="boolean"){r.on("aborted",onclose)}r.on("end",onend);r.on("finish",onfinish);if(i.error!==false){r.on("error",onerror)}r.on("close",onclose);if(z){a.nextTick(onclose)}else if(U!==null&&U!==undefined&&U.errorEmitted||H!==null&&H!==undefined&&H.errorEmitted){if(!j){a.nextTick(onclosed)}}else if(!v&&(!j||I(r))&&(q||R(r)===false)){a.nextTick(onclosed)}else if(!L&&(!j||R(r))&&(G||I(r)===false)){a.nextTick(onclosed)}else if(H&&r.req&&r.aborted){a.nextTick(onclosed)}const cleanup=()=>{c=nop;r.removeListener("aborted",onclose);r.removeListener("complete",onfinish);r.removeListener("abort",onclose);r.removeListener("request",onrequest);if(r.req)r.req.removeListener("finish",onfinish);r.removeListener("end",onlegacyfinish);r.removeListener("close",onlegacyfinish);r.removeListener("finish",onfinish);r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("close",onclose)};if(i.signal&&!z){const abort=()=>{const s=c;cleanup();s.call(r,new l(undefined,{cause:i.signal.reason}))};if(i.signal.aborted){a.nextTick(abort)}else{M=M||s(14004).addAbortListener;const a=M(i.signal,abort);const l=c;c=A(((...i)=>{a[B]();l.apply(r,i)}))}}return cleanup}function eosWeb(r,i,c){let p=false;let d=nop;if(i.signal){d=()=>{p=true;c.call(r,new l(undefined,{cause:i.signal.reason}))};if(i.signal.aborted){a.nextTick(d)}else{M=M||s(14004).addAbortListener;const a=M(i.signal,d);const l=c;c=A(((...i)=>{a[B]();l.apply(r,i)}))}}const resolverFn=(...i)=>{if(!p){a.nextTick((()=>c.apply(r,i)))}};v(r[L].promise,resolverFn,resolverFn);return nop}function finished(r,i){var s;let a=false;if(i===null){i=u}if((s=i)!==null&&s!==undefined&&s.cleanup){b(i.cleanup,"cleanup");a=i.cleanup}return new C(((s,l)=>{const c=eos(r,i,(r=>{if(a){c()}if(r){l(r)}else{s()}}))}))}r.exports=eos;r.exports.finished=finished},20202:(r,i,s)=>{"use strict";const a=s(91524);const{PromisePrototypeThen:l,SymbolAsyncIterator:c,SymbolIterator:p}=s(29097);const{Buffer:d}=s(14300);const{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:A}=s(12752).codes;function from(r,i,s){let h;if(typeof i==="string"||i instanceof d){return new r({objectMode:true,...s,read(){this.push(i);this.push(null)}})}let g;if(i&&i[c]){g=true;h=i[c]()}else if(i&&i[p]){g=false;h=i[p]()}else{throw new u("iterable",["Iterable"],i)}const y=new r({objectMode:true,highWaterMark:1,...s});let b=false;y._read=function(){if(!b){b=true;next()}};y._destroy=function(r,i){l(close(r),(()=>a.nextTick(i,r)),(s=>a.nextTick(i,s||r)))};async function close(r){const i=r!==undefined&&r!==null;const s=typeof h.throw==="function";if(i&&s){const{value:i,done:s}=await h.throw(r);await i;if(s){return}}if(typeof h.return==="function"){const{value:r}=await h.return();await r}}async function next(){for(;;){try{const{value:r,done:i}=g?await h.next():h.next();if(i){y.push(null)}else{const i=r&&typeof r.then==="function"?await r:r;if(i===null){b=false;throw new A}else if(y.push(i)){continue}else{b=false}}}catch(r){y.destroy(r)}break}}return y}r.exports=from},63221:(r,i,s)=>{"use strict";const{ArrayIsArray:a,ObjectSetPrototypeOf:l}=s(29097);const{EventEmitter:c}=s(82361);function Stream(r){c.call(this,r)}l(Stream.prototype,c.prototype);l(Stream,c);Stream.prototype.pipe=function(r,i){const s=this;function ondata(i){if(r.writable&&r.write(i)===false&&s.pause){s.pause()}}s.on("data",ondata);function ondrain(){if(s.readable&&s.resume){s.resume()}}r.on("drain",ondrain);if(!r._isStdio&&(!i||i.end!==false)){s.on("end",onend);s.on("close",onclose)}let a=false;function onend(){if(a)return;a=true;r.end()}function onclose(){if(a)return;a=true;if(typeof r.destroy==="function")r.destroy()}function onerror(r){cleanup();if(c.listenerCount(this,"error")===0){this.emit("error",r)}}prependListener(s,"error",onerror);prependListener(r,"error",onerror);function cleanup(){s.removeListener("data",ondata);r.removeListener("drain",ondrain);s.removeListener("end",onend);s.removeListener("close",onclose);s.removeListener("error",onerror);r.removeListener("error",onerror);s.removeListener("end",cleanup);s.removeListener("close",cleanup);r.removeListener("close",cleanup)}s.on("end",cleanup);s.on("close",cleanup);r.on("close",cleanup);r.emit("pipe",s);return r};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(a(r._events[i]))r._events[i].unshift(s);else r._events[i]=[s,r._events[i]]}r.exports={Stream:Stream,prependListener:prependListener}},67503:(r,i,s)=>{"use strict";const a=globalThis.AbortController||s(37428).AbortController;const{codes:{ERR_INVALID_ARG_VALUE:l,ERR_INVALID_ARG_TYPE:c,ERR_MISSING_ARGS:p,ERR_OUT_OF_RANGE:d},AbortError:u}=s(12752);const{validateAbortSignal:A,validateInteger:h,validateObject:g}=s(51640);const y=s(29097).Symbol("kWeak");const b=s(29097).Symbol("kResistStopPropagation");const{finished:C}=s(91830);const v=s(30);const{addAbortSignalNoValidate:B}=s(65154);const{isWritable:w,isNodeStream:I}=s(53583);const{deprecate:S}=s(14004);const{ArrayPrototypePush:Q,Boolean:x,MathFloor:N,Number:R,NumberIsNaN:T,Promise:D,PromiseReject:_,PromiseResolve:k,PromisePrototypeThen:P,Symbol:O}=s(29097);const L=O("kEmpty");const M=O("kEof");function compose(r,i){if(i!=null){g(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){A(i.signal,"options.signal")}if(I(r)&&!w(r)){throw new l("stream",r,"must be writable")}const s=v(this,r);if(i!==null&&i!==undefined&&i.signal){B(i.signal,s)}return s}function map(r,i){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}if(i!=null){g(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){A(i.signal,"options.signal")}let a=1;if((i===null||i===undefined?undefined:i.concurrency)!=null){a=N(i.concurrency)}let l=a-1;if((i===null||i===undefined?undefined:i.highWaterMark)!=null){l=N(i.highWaterMark)}h(a,"options.concurrency",1);h(l,"options.highWaterMark",0);l+=a;return async function*map(){const c=s(14004).AbortSignalAny([i===null||i===undefined?undefined:i.signal].filter(x));const p=this;const d=[];const A={signal:c};let h;let g;let y=false;let b=0;function onCatch(){y=true;afterItemProcessed()}function afterItemProcessed(){b-=1;maybeResume()}function maybeResume(){if(g&&!y&&b=l||b>=a)){await new D((r=>{g=r}))}}d.push(M)}catch(r){const i=_(r);P(i,afterItemProcessed,onCatch);d.push(i)}finally{y=true;if(h){h();h=null}}}pump();try{while(true){while(d.length>0){const r=await d[0];if(r===M){return}if(c.aborted){throw new u}if(r!==L){yield r}d.shift();maybeResume()}await new D((r=>{h=r}))}}finally{y=true;if(g){g();g=null}}}.call(this)}function asIndexedPairs(r=undefined){if(r!=null){g(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){A(r.signal,"options.signal")}return async function*asIndexedPairs(){let i=0;for await(const a of this){var s;if(r!==null&&r!==undefined&&(s=r.signal)!==null&&s!==undefined&&s.aborted){throw new u({cause:r.signal.reason})}yield[i++,a]}}.call(this)}async function some(r,i=undefined){for await(const s of filter.call(this,r,i)){return true}return false}async function every(r,i=undefined){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}return!await some.call(this,(async(...i)=>!await r(...i)),i)}async function find(r,i){for await(const s of filter.call(this,r,i)){return s}return undefined}async function forEach(r,i){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}async function forEachFn(i,s){await r(i,s);return L}for await(const r of map.call(this,forEachFn,i));}function filter(r,i){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}async function filterFn(i,s){if(await r(i,s)){return i}return L}return map.call(this,filterFn,i)}class ReduceAwareErrMissingArgs extends p{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function reduce(r,i,s){var l;if(typeof r!=="function"){throw new c("reducer",["Function","AsyncFunction"],r)}if(s!=null){g(s,"options")}if((s===null||s===undefined?undefined:s.signal)!=null){A(s.signal,"options.signal")}let p=arguments.length>1;if(s!==null&&s!==undefined&&(l=s.signal)!==null&&l!==undefined&&l.aborted){const r=new u(undefined,{cause:s.signal.reason});this.once("error",(()=>{}));await C(this.destroy(r));throw r}const d=new a;const h=d.signal;if(s!==null&&s!==undefined&&s.signal){const r={once:true,[y]:this,[b]:true};s.signal.addEventListener("abort",(()=>d.abort()),r)}let v=false;try{for await(const a of this){var B;v=true;if(s!==null&&s!==undefined&&(B=s.signal)!==null&&B!==undefined&&B.aborted){throw new u}if(!p){i=a;p=true}else{i=await r(i,a,{signal:h})}}if(!v&&!p){throw new ReduceAwareErrMissingArgs}}finally{d.abort()}return i}async function toArray(r){if(r!=null){g(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){A(r.signal,"options.signal")}const i=[];for await(const a of this){var s;if(r!==null&&r!==undefined&&(s=r.signal)!==null&&s!==undefined&&s.aborted){throw new u(undefined,{cause:r.signal.reason})}Q(i,a)}return i}function flatMap(r,i){const s=map.call(this,r,i);return async function*flatMap(){for await(const r of s){yield*r}}.call(this)}function toIntegerOrInfinity(r){r=R(r);if(T(r)){return 0}if(r<0){throw new d("number",">= 0",r)}return r}function drop(r,i=undefined){if(i!=null){g(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){A(i.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*drop(){var s;if(i!==null&&i!==undefined&&(s=i.signal)!==null&&s!==undefined&&s.aborted){throw new u}for await(const s of this){var a;if(i!==null&&i!==undefined&&(a=i.signal)!==null&&a!==undefined&&a.aborted){throw new u}if(r--<=0){yield s}}}.call(this)}function take(r,i=undefined){if(i!=null){g(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){A(i.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*take(){var s;if(i!==null&&i!==undefined&&(s=i.signal)!==null&&s!==undefined&&s.aborted){throw new u}for await(const s of this){var a;if(i!==null&&i!==undefined&&(a=i.signal)!==null&&a!==undefined&&a.aborted){throw new u}if(r-- >0){yield s}if(r<=0){return}}}.call(this)}r.exports.streamReturningOperators={asIndexedPairs:S(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop:drop,filter:filter,flatMap:flatMap,map:map,take:take,compose:compose};r.exports.promiseReturningOperators={every:every,forEach:forEach,reduce:reduce,toArray:toArray,some:some,find:find}},34227:(r,i,s)=>{"use strict";const{ObjectSetPrototypeOf:a}=s(29097);r.exports=PassThrough;const l=s(10737);a(PassThrough.prototype,l.prototype);a(PassThrough,l);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);l.call(this,r)}PassThrough.prototype._transform=function(r,i,s){s(null,r)}},6438:(r,i,s)=>{const a=s(91524);"use strict";const{ArrayIsArray:l,Promise:c,SymbolAsyncIterator:p,SymbolDispose:d}=s(29097);const u=s(91830);const{once:A}=s(14004);const h=s(46150);const g=s(92999);const{aggregateTwoErrors:y,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:C,ERR_MISSING_ARGS:v,ERR_STREAM_DESTROYED:B,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:I}=s(12752);const{validateFunction:S,validateAbortSignal:Q}=s(51640);const{isIterable:x,isReadable:N,isReadableNodeStream:R,isNodeStream:T,isTransformStream:D,isWebStream:_,isReadableStream:k,isReadableFinished:P}=s(53583);const O=globalThis.AbortController||s(37428).AbortController;let L;let M;let U;function destroyer(r,i,s){let a=false;r.on("close",(()=>{a=true}));const l=u(r,{readable:i,writable:s},(r=>{a=!r}));return{destroy:i=>{if(a)return;a=true;h.destroyer(r,i||new B("pipe"))},cleanup:l}}function popCallback(r){S(r[r.length-1],"streams[stream.length - 1]");return r.pop()}function makeAsyncIterable(r){if(x(r)){return r}else if(R(r)){return fromReadable(r)}throw new b("val",["Readable","Iterable","AsyncIterable"],r)}async function*fromReadable(r){if(!M){M=s(39961)}yield*M.prototype[p].call(r)}async function pumpToNode(r,i,s,{end:a}){let l;let p=null;const resume=r=>{if(r){l=r}if(p){const r=p;p=null;r()}};const wait=()=>new c(((r,i)=>{if(l){i(l)}else{p=()=>{if(l){i(l)}else{r()}}}}));i.on("drain",resume);const d=u(i,{readable:false},resume);try{if(i.writableNeedDrain){await wait()}for await(const s of r){if(!i.write(s)){await wait()}}if(a){i.end();await wait()}s()}catch(r){s(l!==r?y(l,r):r)}finally{d();i.off("drain",resume)}}async function pumpToWeb(r,i,s,{end:a}){if(D(i)){i=i.writable}const l=i.getWriter();try{for await(const i of r){await l.ready;l.write(i).catch((()=>{}))}await l.ready;if(a){await l.close()}s()}catch(r){try{await l.abort(r);s(r)}catch(r){s(r)}}}function pipeline(...r){return pipelineImpl(r,A(popCallback(r)))}function pipelineImpl(r,i,c){if(r.length===1&&l(r[0])){r=r[0]}if(r.length<2){throw new v("streams")}const p=new O;const u=p.signal;const A=c===null||c===undefined?undefined:c.signal;const h=[];Q(A,"options.signal");function abort(){finishImpl(new I)}U=U||s(14004).addAbortListener;let y;if(A){y=U(A,abort)}let B;let w;const S=[];let P=0;function finish(r){finishImpl(r,--P===0)}function finishImpl(r,s){var l;if(r&&(!B||B.code==="ERR_STREAM_PREMATURE_CLOSE")){B=r}if(!B&&!s){return}while(S.length){S.shift()(B)}(l=y)===null||l===undefined?undefined:l[d]();p.abort();if(s){if(!B){h.forEach((r=>r()))}a.nextTick(i,B,w)}}let M;for(let q=0;q0;const W=z||(c===null||c===undefined?undefined:c.end)!==false;const Y=q===r.length-1;if(T(G)){if(W){const{destroy:J,cleanup:X}=destroyer(G,z,V);S.push(J);if(N(G)&&Y){h.push(X)}}function onError(r){if(r&&r.name!=="AbortError"&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"){finish(r)}}G.on("error",onError);if(N(G)&&Y){h.push((()=>{G.removeListener("error",onError)}))}}if(q===0){if(typeof G==="function"){M=G({signal:u});if(!x(M)){throw new C("Iterable, AsyncIterable or Stream","source",M)}}else if(x(G)||R(G)||D(G)){M=G}else{M=g.from(G)}}else if(typeof G==="function"){if(D(M)){var H;M=makeAsyncIterable((H=M)===null||H===undefined?undefined:H.readable)}else{M=makeAsyncIterable(M)}M=G(M,{signal:u});if(z){if(!x(M,true)){throw new C("AsyncIterable",`transform[${q-1}]`,M)}}else{var j;if(!L){L=s(34227)}const K=new L({objectMode:true});const $=(j=M)===null||j===undefined?undefined:j.then;if(typeof $==="function"){P++;$.call(M,(r=>{w=r;if(r!=null){K.write(r)}if(W){K.end()}a.nextTick(finish)}),(r=>{K.destroy(r);a.nextTick(finish,r)}))}else if(x(M,true)){P++;pumpToNode(M,K,finish,{end:W})}else if(k(M)||D(M)){const te=M.readable||M;P++;pumpToNode(te,K,finish,{end:W})}else{throw new C("AsyncIterable or Promise","destination",M)}M=K;const{destroy:Z,cleanup:ee}=destroyer(M,false,true);S.push(Z);if(Y){h.push(ee)}}}else if(T(G)){if(R(M)){P+=2;const re=pipe(M,G,finish,{end:W});if(N(G)&&Y){h.push(re)}}else if(D(M)||k(M)){const ie=M.readable||M;P++;pumpToNode(ie,G,finish,{end:W})}else if(x(M)){P++;pumpToNode(M,G,finish,{end:W})}else{throw new b("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=G}else if(_(G)){if(R(M)){P++;pumpToWeb(makeAsyncIterable(M),G,finish,{end:W})}else if(k(M)||x(M)){P++;pumpToWeb(M,G,finish,{end:W})}else if(D(M)){P++;pumpToWeb(M.readable,G,finish,{end:W})}else{throw new b("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=G}else{M=g.from(G)}}if(u!==null&&u!==undefined&&u.aborted||A!==null&&A!==undefined&&A.aborted){a.nextTick(abort)}return M}function pipe(r,i,s,{end:l}){let c=false;i.on("close",(()=>{if(!c){s(new w)}}));r.pipe(i,{end:false});if(l){function endFn(){c=true;i.end()}if(P(r)){a.nextTick(endFn)}else{r.once("end",endFn)}}else{s()}u(r,{readable:true,writable:false},(i=>{const a=r._readableState;if(i&&i.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted){r.once("end",s).once("error",s)}else{s(i)}}));return u(i,{readable:false,writable:true},s)}r.exports={pipelineImpl:pipelineImpl,pipeline:pipeline}},39961:(r,i,s)=>{const a=s(91524);"use strict";const{ArrayPrototypeIndexOf:l,NumberIsInteger:c,NumberIsNaN:p,NumberParseInt:d,ObjectDefineProperties:u,ObjectKeys:A,ObjectSetPrototypeOf:h,Promise:g,SafeSet:y,SymbolAsyncDispose:b,SymbolAsyncIterator:C,Symbol:v}=s(29097);r.exports=Readable;Readable.ReadableState=ReadableState;const{EventEmitter:B}=s(82361);const{Stream:w,prependListener:I}=s(63221);const{Buffer:S}=s(14300);const{addAbortSignal:Q}=s(65154);const x=s(91830);let N=s(14004).debuglog("stream",(r=>{N=r}));const R=s(13039);const T=s(46150);const{getHighWaterMark:D,getDefaultHighWaterMark:_}=s(32864);const{aggregateTwoErrors:k,codes:{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:L,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:H}=s(12752);const{validateObject:j}=s(51640);const q=v("kPaused");const{StringDecoder:G}=s(71576);const z=s(20202);h(Readable.prototype,w.prototype);h(Readable,w);const nop=()=>{};const{errorOrDestroy:V}=T;const W=1<<0;const Y=1<<1;const J=1<<2;const X=1<<3;const K=1<<4;const $=1<<5;const Z=1<<6;const ee=1<<7;const te=1<<8;const re=1<<9;const ie=1<<10;const ne=1<<11;const se=1<<12;const ae=1<<13;const oe=1<<14;const le=1<<15;const ce=1<<16;const pe=1<<17;const de=1<<18;function makeBitMapDescriptor(r){return{enumerable:false,get(){return(this.state&r)!==0},set(i){if(i)this.state|=r;else this.state&=~r}}}u(ReadableState.prototype,{objectMode:makeBitMapDescriptor(W),ended:makeBitMapDescriptor(Y),endEmitted:makeBitMapDescriptor(J),reading:makeBitMapDescriptor(X),constructed:makeBitMapDescriptor(K),sync:makeBitMapDescriptor($),needReadable:makeBitMapDescriptor(Z),emittedReadable:makeBitMapDescriptor(ee),readableListening:makeBitMapDescriptor(te),resumeScheduled:makeBitMapDescriptor(re),errorEmitted:makeBitMapDescriptor(ie),emitClose:makeBitMapDescriptor(ne),autoDestroy:makeBitMapDescriptor(se),destroyed:makeBitMapDescriptor(ae),closed:makeBitMapDescriptor(oe),closeEmitted:makeBitMapDescriptor(le),multiAwaitDrain:makeBitMapDescriptor(ce),readingMore:makeBitMapDescriptor(pe),dataEmitted:makeBitMapDescriptor(de)});function ReadableState(r,i,a){if(typeof a!=="boolean")a=i instanceof s(92999);this.state=ne|se|K|$;if(r&&r.objectMode)this.state|=W;if(a&&r&&r.readableObjectMode)this.state|=W;this.highWaterMark=r?D(this,r,"readableHighWaterMark",a):_(false);this.buffer=new R;this.length=0;this.pipes=[];this.flowing=null;this[q]=null;if(r&&r.emitClose===false)this.state&=~ne;if(r&&r.autoDestroy===false)this.state&=~se;this.errored=null;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.awaitDrainWriters=null;this.decoder=null;this.encoding=null;if(r&&r.encoding){this.decoder=new G(r.encoding);this.encoding=r.encoding}}function Readable(r){if(!(this instanceof Readable))return new Readable(r);const i=this instanceof s(92999);this._readableState=new ReadableState(r,this,i);if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal&&!i)Q(r.signal,this)}w.call(this,r);T.construct(this,(()=>{if(this._readableState.needReadable){maybeReadMore(this,this._readableState)}}))}Readable.prototype.destroy=T.destroy;Readable.prototype._undestroy=T.undestroy;Readable.prototype._destroy=function(r,i){i(r)};Readable.prototype[B.captureRejectionSymbol]=function(r){this.destroy(r)};Readable.prototype[b]=function(){let r;if(!this.destroyed){r=this.readableEnded?null:new H;this.destroy(r)}return new g(((i,s)=>x(this,(a=>a&&a!==r?s(a):i(null)))))};Readable.prototype.push=function(r,i){return readableAddChunk(this,r,i,false)};Readable.prototype.unshift=function(r,i){return readableAddChunk(this,r,i,true)};function readableAddChunk(r,i,s,a){N("readableAddChunk",i);const l=r._readableState;let c;if((l.state&W)===0){if(typeof i==="string"){s=s||l.defaultEncoding;if(l.encoding!==s){if(a&&l.encoding){i=S.from(i,s).toString(l.encoding)}else{i=S.from(i,s);s=""}}}else if(i instanceof S){s=""}else if(w._isUint8Array(i)){i=w._uint8ArrayToBuffer(i);s=""}else if(i!=null){c=new P("chunk",["string","Buffer","Uint8Array"],i)}}if(c){V(r,c)}else if(i===null){l.state&=~X;onEofChunk(r,l)}else if((l.state&W)!==0||i&&i.length>0){if(a){if((l.state&J)!==0)V(r,new U);else if(l.destroyed||l.errored)return false;else addChunk(r,l,i,true)}else if(l.ended){V(r,new M)}else if(l.destroyed||l.errored){return false}else{l.state&=~X;if(l.decoder&&!s){i=l.decoder.write(i);if(l.objectMode||i.length!==0)addChunk(r,l,i,false);else maybeReadMore(r,l)}else{addChunk(r,l,i,false)}}}else if(!a){l.state&=~X;maybeReadMore(r,l)}return!l.ended&&(l.length0){if((i.state&ce)!==0){i.awaitDrainWriters.clear()}else{i.awaitDrainWriters=null}i.dataEmitted=true;r.emit("data",s)}else{i.length+=i.objectMode?1:s.length;if(a)i.buffer.unshift(s);else i.buffer.push(s);if((i.state&Z)!==0)emitReadable(r)}maybeReadMore(r,i)}Readable.prototype.isPaused=function(){const r=this._readableState;return r[q]===true||r.flowing===false};Readable.prototype.setEncoding=function(r){const i=new G(r);this._readableState.decoder=i;this._readableState.encoding=this._readableState.decoder.encoding;const s=this._readableState.buffer;let a="";for(const r of s){a+=i.write(r)}s.clear();if(a!=="")s.push(a);this._readableState.length=a.length;return this};const ue=1073741824;function computeNewHighWaterMark(r){if(r>ue){throw new L("size","<= 1GiB",r)}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.state&W)!==0)return 1;if(p(r)){if(i.flowing&&i.length)return i.buffer.first().length;return i.length}if(r<=i.length)return r;return i.ended?i.length:0}Readable.prototype.read=function(r){N("read",r);if(r===undefined){r=NaN}else if(!c(r)){r=d(r,10)}const i=this._readableState;const s=r;if(r>i.highWaterMark)i.highWaterMark=computeNewHighWaterMark(r);if(r!==0)i.state&=~ee;if(r===0&&i.needReadable&&((i.highWaterMark!==0?i.length>=i.highWaterMark:i.length>0)||i.ended)){N("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}let a=(i.state&Z)!==0;N("need readable",a);if(i.length===0||i.length-r0)l=fromList(r,i);else l=null;if(l===null){i.needReadable=i.length<=i.highWaterMark;r=0}else{i.length-=r;if(i.multiAwaitDrain){i.awaitDrainWriters.clear()}else{i.awaitDrainWriters=null}}if(i.length===0){if(!i.ended)i.needReadable=true;if(s!==r&&i.ended)endReadable(this)}if(l!==null&&!i.errorEmitted&&!i.closeEmitted){i.dataEmitted=true;this.emit("data",l)}return l};function onEofChunk(r,i){N("onEofChunk");if(i.ended)return;if(i.decoder){const r=i.decoder.end();if(r&&r.length){i.buffer.push(r);i.length+=i.objectMode?1:r.length}}i.ended=true;if(i.sync){emitReadable(r)}else{i.needReadable=false;i.emittedReadable=true;emitReadable_(r)}}function emitReadable(r){const i=r._readableState;N("emitReadable",i.needReadable,i.emittedReadable);i.needReadable=false;if(!i.emittedReadable){N("emitReadable",i.flowing);i.emittedReadable=true;a.nextTick(emitReadable_,r)}}function emitReadable_(r){const i=r._readableState;N("emitReadable_",i.destroyed,i.length,i.ended);if(!i.destroyed&&!i.errored&&(i.length||i.ended)){r.emit("readable");i.emittedReadable=false}i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark;flow(r)}function maybeReadMore(r,i){if(!i.readingMore&&i.constructed){i.readingMore=true;a.nextTick(maybeReadMore_,r,i)}}function maybeReadMore_(r,i){while(!i.reading&&!i.ended&&(i.length1&&l.pipes.includes(r)){N("false write response, pause",l.awaitDrainWriters.size);l.awaitDrainWriters.add(r)}s.pause()}if(!d){d=pipeOnDrain(s,r);r.on("drain",d)}}s.on("data",ondata);function ondata(i){N("ondata");const s=r.write(i);N("dest.write",s);if(s===false){pause()}}function onerror(i){N("onerror",i);unpipe();r.removeListener("error",onerror);if(r.listenerCount("error")===0){const s=r._writableState||r._readableState;if(s&&!s.errorEmitted){V(r,i)}else{r.emit("error",i)}}}I(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){N("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){N("unpipe");s.unpipe(r)}r.emit("pipe",s);if(r.writableNeedDrain===true){pause()}else if(!l.flowing){N("pipe resume");s.resume()}return r};function pipeOnDrain(r,i){return function pipeOnDrainFunctionResult(){const s=r._readableState;if(s.awaitDrainWriters===i){N("pipeOnDrain",1);s.awaitDrainWriters=null}else if(s.multiAwaitDrain){N("pipeOnDrain",s.awaitDrainWriters.size);s.awaitDrainWriters.delete(i)}if((!s.awaitDrainWriters||s.awaitDrainWriters.size===0)&&r.listenerCount("data")){r.resume()}}}Readable.prototype.unpipe=function(r){const i=this._readableState;const s={hasUnpiped:false};if(i.pipes.length===0)return this;if(!r){const r=i.pipes;i.pipes=[];this.pause();for(let i=0;i0;if(l.flowing!==false)this.resume()}else if(r==="readable"){if(!l.endEmitted&&!l.readableListening){l.readableListening=l.needReadable=true;l.flowing=false;l.emittedReadable=false;N("on readable",l.length,l.reading);if(l.length){emitReadable(this)}else if(!l.reading){a.nextTick(nReadingNextTick,this)}}}return s};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(r,i){const s=w.prototype.removeListener.call(this,r,i);if(r==="readable"){a.nextTick(updateReadableListening,this)}return s};Readable.prototype.off=Readable.prototype.removeListener;Readable.prototype.removeAllListeners=function(r){const i=w.prototype.removeAllListeners.apply(this,arguments);if(r==="readable"||r===undefined){a.nextTick(updateReadableListening,this)}return i};function updateReadableListening(r){const i=r._readableState;i.readableListening=r.listenerCount("readable")>0;if(i.resumeScheduled&&i[q]===false){i.flowing=true}else if(r.listenerCount("data")>0){r.resume()}else if(!i.readableListening){i.flowing=null}}function nReadingNextTick(r){N("readable nexttick read 0");r.read(0)}Readable.prototype.resume=function(){const r=this._readableState;if(!r.flowing){N("resume");r.flowing=!r.readableListening;resume(this,r)}r[q]=false;return this};function resume(r,i){if(!i.resumeScheduled){i.resumeScheduled=true;a.nextTick(resume_,r,i)}}function resume_(r,i){N("resume",i.reading);if(!i.reading){r.read(0)}i.resumeScheduled=false;r.emit("resume");flow(r);if(i.flowing&&!i.reading)r.read(0)}Readable.prototype.pause=function(){N("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){N("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState[q]=true;return this};function flow(r){const i=r._readableState;N("flow",i.flowing);while(i.flowing&&r.read()!==null);}Readable.prototype.wrap=function(r){let i=false;r.on("data",(s=>{if(!this.push(s)&&r.pause){i=true;r.pause()}}));r.on("end",(()=>{this.push(null)}));r.on("error",(r=>{V(this,r)}));r.on("close",(()=>{this.destroy()}));r.on("destroy",(()=>{this.destroy()}));this._read=()=>{if(i&&r.resume){i=false;r.resume()}};const s=A(r);for(let i=1;i{a=r?k(a,r):null;s();s=nop}));try{while(true){const i=r.destroyed?null:r.read();if(i!==null){yield i}else if(a){throw a}else if(a===null){return}else{await new g(next)}}}catch(r){a=k(a,r);throw a}finally{if((a||(i===null||i===undefined?undefined:i.destroyOnReturn)!==false)&&(a===undefined||r._readableState.autoDestroy)){T.destroyer(r,null)}else{r.off("readable",next);l()}}}u(Readable.prototype,{readable:{__proto__:null,get(){const r=this._readableState;return!!r&&r.readable!==false&&!r.destroyed&&!r.errorEmitted&&!r.endEmitted},set(r){if(this._readableState){this._readableState.readable=!!r}}},readableDidRead:{__proto__:null,enumerable:false,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._readableState.readable!==false&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:false,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:false,get:function(){return this._readableState.flowing},set:function(r){if(this._readableState){this._readableState.flowing=r}}},readableLength:{__proto__:null,enumerable:false,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.objectMode:false}},readableEncoding:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:false}},destroyed:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.destroyed:false},set(r){if(!this._readableState){return}this._readableState.destroyed=r}},readableEnded:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.endEmitted:false}}});u(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[q]!==false},set(r){this[q]=!!r}}});Readable._fromList=fromList;function fromList(r,i){if(i.length===0)return null;let s;if(i.objectMode)s=i.buffer.shift();else if(!r||r>=i.length){if(i.decoder)s=i.buffer.join("");else if(i.buffer.length===1)s=i.buffer.first();else s=i.buffer.concat(i.length);i.buffer.clear()}else{s=i.buffer.consume(r,i.decoder)}return s}function endReadable(r){const i=r._readableState;N("endReadable",i.endEmitted);if(!i.endEmitted){i.ended=true;a.nextTick(endReadableNT,i,r)}}function endReadableNT(r,i){N("endReadableNT",r.endEmitted,r.length);if(!r.errored&&!r.closeEmitted&&!r.endEmitted&&r.length===0){r.endEmitted=true;i.emit("end");if(i.writable&&i.allowHalfOpen===false){a.nextTick(endWritableNT,i)}else if(r.autoDestroy){const r=i._writableState;const s=!r||r.autoDestroy&&(r.finished||r.writable===false);if(s){i.destroy()}}}}function endWritableNT(r){const i=r.writable&&!r.writableEnded&&!r.destroyed;if(i){r.end()}}Readable.from=function(r,i){return z(Readable,r,i)};let Ae;function lazyWebStreams(){if(Ae===undefined)Ae={};return Ae}Readable.fromWeb=function(r,i){return lazyWebStreams().newStreamReadableFromReadableStream(r,i)};Readable.toWeb=function(r,i){return lazyWebStreams().newReadableStreamFromStreamReadable(r,i)};Readable.wrap=function(r,i){var s,a;return new Readable({objectMode:(s=(a=r.readableObjectMode)!==null&&a!==undefined?a:r.objectMode)!==null&&s!==undefined?s:true,...i,destroy(i,s){T.destroyer(r,i);s(i)}}).wrap(r)}},32864:(r,i,s)=>{"use strict";const{MathFloor:a,NumberIsInteger:l}=s(29097);const{validateInteger:c}=s(51640);const{ERR_INVALID_ARG_VALUE:p}=s(12752).codes;let d=16*1024;let u=16;function highWaterMarkFrom(r,i,s){return r.highWaterMark!=null?r.highWaterMark:i?r[s]:null}function getDefaultHighWaterMark(r){return r?u:d}function setDefaultHighWaterMark(r,i){c(i,"value",0);if(r){u=i}else{d=i}}function getHighWaterMark(r,i,s,c){const d=highWaterMarkFrom(i,c,s);if(d!=null){if(!l(d)||d<0){const r=c?`options.${s}`:"options.highWaterMark";throw new p(r,d)}return a(d)}return getDefaultHighWaterMark(r.objectMode)}r.exports={getHighWaterMark:getHighWaterMark,getDefaultHighWaterMark:getDefaultHighWaterMark,setDefaultHighWaterMark:setDefaultHighWaterMark}},10737:(r,i,s)=>{"use strict";const{ObjectSetPrototypeOf:a,Symbol:l}=s(29097);r.exports=Transform;const{ERR_METHOD_NOT_IMPLEMENTED:c}=s(12752).codes;const p=s(92999);const{getHighWaterMark:d}=s(32864);a(Transform.prototype,p.prototype);a(Transform,p);const u=l("kCallback");function Transform(r){if(!(this instanceof Transform))return new Transform(r);const i=r?d(this,r,"readableHighWaterMark",true):null;if(i===0){r={...r,highWaterMark:null,readableHighWaterMark:i,writableHighWaterMark:r.writableHighWaterMark||0}}p.call(this,r);this._readableState.sync=false;this[u]=null;if(r){if(typeof r.transform==="function")this._transform=r.transform;if(typeof r.flush==="function")this._flush=r.flush}this.on("prefinish",prefinish)}function final(r){if(typeof this._flush==="function"&&!this.destroyed){this._flush(((i,s)=>{if(i){if(r){r(i)}else{this.destroy(i)}return}if(s!=null){this.push(s)}this.push(null);if(r){r()}}))}else{this.push(null);if(r){r()}}}function prefinish(){if(this._final!==final){final.call(this)}}Transform.prototype._final=final;Transform.prototype._transform=function(r,i,s){throw new c("_transform()")};Transform.prototype._write=function(r,i,s){const a=this._readableState;const l=this._writableState;const c=a.length;this._transform(r,i,((r,i)=>{if(r){s(r);return}if(i!=null){this.push(i)}if(l.ended||c===a.length||a.length{"use strict";const{SymbolAsyncIterator:a,SymbolIterator:l,SymbolFor:c}=s(29097);const p=c("nodejs.stream.destroyed");const d=c("nodejs.stream.errored");const u=c("nodejs.stream.readable");const A=c("nodejs.stream.writable");const h=c("nodejs.stream.disturbed");const g=c("nodejs.webstream.isClosedPromise");const y=c("nodejs.webstream.controllerErrorFunction");function isReadableNodeStream(r,i=false){var s;return!!(r&&typeof r.pipe==="function"&&typeof r.on==="function"&&(!i||typeof r.pause==="function"&&typeof r.resume==="function")&&(!r._writableState||((s=r._readableState)===null||s===undefined?undefined:s.readable)!==false)&&(!r._writableState||r._readableState))}function isWritableNodeStream(r){var i;return!!(r&&typeof r.write==="function"&&typeof r.on==="function"&&(!r._readableState||((i=r._writableState)===null||i===undefined?undefined:i.writable)!==false))}function isDuplexNodeStream(r){return!!(r&&typeof r.pipe==="function"&&r._readableState&&typeof r.on==="function"&&typeof r.write==="function")}function isNodeStream(r){return r&&(r._readableState||r._writableState||typeof r.write==="function"&&typeof r.on==="function"||typeof r.pipe==="function"&&typeof r.on==="function")}function isReadableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.pipeThrough==="function"&&typeof r.getReader==="function"&&typeof r.cancel==="function")}function isWritableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.getWriter==="function"&&typeof r.abort==="function")}function isTransformStream(r){return!!(r&&!isNodeStream(r)&&typeof r.readable==="object"&&typeof r.writable==="object")}function isWebStream(r){return isReadableStream(r)||isWritableStream(r)||isTransformStream(r)}function isIterable(r,i){if(r==null)return false;if(i===true)return typeof r[a]==="function";if(i===false)return typeof r[l]==="function";return typeof r[a]==="function"||typeof r[l]==="function"}function isDestroyed(r){if(!isNodeStream(r))return null;const i=r._writableState;const s=r._readableState;const a=i||s;return!!(r.destroyed||r[p]||a!==null&&a!==undefined&&a.destroyed)}function isWritableEnded(r){if(!isWritableNodeStream(r))return null;if(r.writableEnded===true)return true;const i=r._writableState;if(i!==null&&i!==undefined&&i.errored)return false;if(typeof(i===null||i===undefined?undefined:i.ended)!=="boolean")return null;return i.ended}function isWritableFinished(r,i){if(!isWritableNodeStream(r))return null;if(r.writableFinished===true)return true;const s=r._writableState;if(s!==null&&s!==undefined&&s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.finished)!=="boolean")return null;return!!(s.finished||i===false&&s.ended===true&&s.length===0)}function isReadableEnded(r){if(!isReadableNodeStream(r))return null;if(r.readableEnded===true)return true;const i=r._readableState;if(!i||i.errored)return false;if(typeof(i===null||i===undefined?undefined:i.ended)!=="boolean")return null;return i.ended}function isReadableFinished(r,i){if(!isReadableNodeStream(r))return null;const s=r._readableState;if(s!==null&&s!==undefined&&s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.endEmitted)!=="boolean")return null;return!!(s.endEmitted||i===false&&s.ended===true&&s.length===0)}function isReadable(r){if(r&&r[u]!=null)return r[u];if(typeof(r===null||r===undefined?undefined:r.readable)!=="boolean")return null;if(isDestroyed(r))return false;return isReadableNodeStream(r)&&r.readable&&!isReadableFinished(r)}function isWritable(r){if(r&&r[A]!=null)return r[A];if(typeof(r===null||r===undefined?undefined:r.writable)!=="boolean")return null;if(isDestroyed(r))return false;return isWritableNodeStream(r)&&r.writable&&!isWritableEnded(r)}function isFinished(r,i){if(!isNodeStream(r)){return null}if(isDestroyed(r)){return true}if((i===null||i===undefined?undefined:i.readable)!==false&&isReadable(r)){return false}if((i===null||i===undefined?undefined:i.writable)!==false&&isWritable(r)){return false}return true}function isWritableErrored(r){var i,s;if(!isNodeStream(r)){return null}if(r.writableErrored){return r.writableErrored}return(i=(s=r._writableState)===null||s===undefined?undefined:s.errored)!==null&&i!==undefined?i:null}function isReadableErrored(r){var i,s;if(!isNodeStream(r)){return null}if(r.readableErrored){return r.readableErrored}return(i=(s=r._readableState)===null||s===undefined?undefined:s.errored)!==null&&i!==undefined?i:null}function isClosed(r){if(!isNodeStream(r)){return null}if(typeof r.closed==="boolean"){return r.closed}const i=r._writableState;const s=r._readableState;if(typeof(i===null||i===undefined?undefined:i.closed)==="boolean"||typeof(s===null||s===undefined?undefined:s.closed)==="boolean"){return(i===null||i===undefined?undefined:i.closed)||(s===null||s===undefined?undefined:s.closed)}if(typeof r._closed==="boolean"&&isOutgoingMessage(r)){return r._closed}return null}function isOutgoingMessage(r){return typeof r._closed==="boolean"&&typeof r._defaultKeepAlive==="boolean"&&typeof r._removedConnection==="boolean"&&typeof r._removedContLen==="boolean"}function isServerResponse(r){return typeof r._sent100==="boolean"&&isOutgoingMessage(r)}function isServerRequest(r){var i;return typeof r._consuming==="boolean"&&typeof r._dumped==="boolean"&&((i=r.req)===null||i===undefined?undefined:i.upgradeOrConnect)===undefined}function willEmitClose(r){if(!isNodeStream(r))return null;const i=r._writableState;const s=r._readableState;const a=i||s;return!a&&isServerResponse(r)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===false)}function isDisturbed(r){var i;return!!(r&&((i=r[h])!==null&&i!==undefined?i:r.readableDidRead||r.readableAborted))}function isErrored(r){var i,s,a,l,c,p,u,A,h,g;return!!(r&&((i=(s=(a=(l=(c=(p=r[d])!==null&&p!==undefined?p:r.readableErrored)!==null&&c!==undefined?c:r.writableErrored)!==null&&l!==undefined?l:(u=r._readableState)===null||u===undefined?undefined:u.errorEmitted)!==null&&a!==undefined?a:(A=r._writableState)===null||A===undefined?undefined:A.errorEmitted)!==null&&s!==undefined?s:(h=r._readableState)===null||h===undefined?undefined:h.errored)!==null&&i!==undefined?i:(g=r._writableState)===null||g===undefined?undefined:g.errored))}r.exports={isDestroyed:isDestroyed,kIsDestroyed:p,isDisturbed:isDisturbed,kIsDisturbed:h,isErrored:isErrored,kIsErrored:d,isReadable:isReadable,kIsReadable:u,kIsClosedPromise:g,kControllerErrorFunction:y,kIsWritable:A,isClosed:isClosed,isDuplexNodeStream:isDuplexNodeStream,isFinished:isFinished,isIterable:isIterable,isReadableNodeStream:isReadableNodeStream,isReadableStream:isReadableStream,isReadableEnded:isReadableEnded,isReadableFinished:isReadableFinished,isReadableErrored:isReadableErrored,isNodeStream:isNodeStream,isWebStream:isWebStream,isWritable:isWritable,isWritableNodeStream:isWritableNodeStream,isWritableStream:isWritableStream,isWritableEnded:isWritableEnded,isWritableFinished:isWritableFinished,isWritableErrored:isWritableErrored,isServerRequest:isServerRequest,isServerResponse:isServerResponse,willEmitClose:willEmitClose,isTransformStream:isTransformStream}},62536:(r,i,s)=>{const a=s(91524);"use strict";const{ArrayPrototypeSlice:l,Error:c,FunctionPrototypeSymbolHasInstance:p,ObjectDefineProperty:d,ObjectDefineProperties:u,ObjectSetPrototypeOf:A,StringPrototypeToLowerCase:h,Symbol:g,SymbolHasInstance:y}=s(29097);r.exports=Writable;Writable.WritableState=WritableState;const{EventEmitter:b}=s(82361);const C=s(63221).Stream;const{Buffer:v}=s(14300);const B=s(46150);const{addAbortSignal:w}=s(65154);const{getHighWaterMark:I,getDefaultHighWaterMark:S}=s(32864);const{ERR_INVALID_ARG_TYPE:Q,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_MULTIPLE_CALLBACK:N,ERR_STREAM_CANNOT_PIPE:R,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:D,ERR_STREAM_NULL_VALUES:_,ERR_STREAM_WRITE_AFTER_END:k,ERR_UNKNOWN_ENCODING:P}=s(12752).codes;const{errorOrDestroy:O}=B;A(Writable.prototype,C.prototype);A(Writable,C);function nop(){}const L=g("kOnFinished");function WritableState(r,i,a){if(typeof a!=="boolean")a=i instanceof s(92999);this.objectMode=!!(r&&r.objectMode);if(a)this.objectMode=this.objectMode||!!(r&&r.writableObjectMode);this.highWaterMark=r?I(this,r,"writableHighWaterMark",a):S(false);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;const l=!!(r&&r.decodeStrings===false);this.decodeStrings=!l;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=onwrite.bind(undefined,i);this.writecb=null;this.writelen=0;this.afterWriteTickInfo=null;resetBuffer(this);this.pendingcb=0;this.constructed=true;this.prefinished=false;this.errorEmitted=false;this.emitClose=!r||r.emitClose!==false;this.autoDestroy=!r||r.autoDestroy!==false;this.errored=null;this.closed=false;this.closeEmitted=false;this[L]=[]}function resetBuffer(r){r.buffered=[];r.bufferedIndex=0;r.allBuffers=true;r.allNoop=true}WritableState.prototype.getBuffer=function getBuffer(){return l(this.buffered,this.bufferedIndex)};d(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Writable(r){const i=this instanceof s(92999);if(!i&&!p(Writable,this))return new Writable(r);this._writableState=new WritableState(r,this,i);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;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal)w(r.signal,this)}C.call(this,r);B.construct(this,(()=>{const r=this._writableState;if(!r.writing){clearBuffer(this,r)}finishMaybe(this,r)}))}d(Writable,y,{__proto__:null,value:function(r){if(p(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}});Writable.prototype.pipe=function(){O(this,new R)};function _write(r,i,s,l){const c=r._writableState;if(typeof s==="function"){l=s;s=c.defaultEncoding}else{if(!s)s=c.defaultEncoding;else if(s!=="buffer"&&!v.isEncoding(s))throw new P(s);if(typeof l!=="function")l=nop}if(i===null){throw new _}else if(!c.objectMode){if(typeof i==="string"){if(c.decodeStrings!==false){i=v.from(i,s);s="buffer"}}else if(i instanceof v){s="buffer"}else if(C._isUint8Array(i)){i=C._uint8ArrayToBuffer(i);s="buffer"}else{throw new Q("chunk",["string","Buffer","Uint8Array"],i)}}let p;if(c.ending){p=new k}else if(c.destroyed){p=new T("write")}if(p){a.nextTick(l,p);O(r,p,true);return p}c.pendingcb++;return writeOrBuffer(r,c,i,s,l)}Writable.prototype.write=function(r,i,s){return _write(this,r,i,s)===true};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){const r=this._writableState;if(r.corked){r.corked--;if(!r.writing)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=h(r);if(!v.isEncoding(r))throw new P(r);this._writableState.defaultEncoding=r;return this};function writeOrBuffer(r,i,s,a,l){const c=i.objectMode?1:s.length;i.length+=c;const p=i.lengths.bufferedIndex){clearBuffer(r,s)}if(l){if(s.afterWriteTickInfo!==null&&s.afterWriteTickInfo.cb===c){s.afterWriteTickInfo.count++}else{s.afterWriteTickInfo={count:1,cb:c,stream:r,state:s};a.nextTick(afterWriteTick,s.afterWriteTickInfo)}}else{afterWrite(r,s,1,c)}}}function afterWriteTick({stream:r,state:i,count:s,cb:a}){i.afterWriteTickInfo=null;return afterWrite(r,i,s,a)}function afterWrite(r,i,s,a){const l=!i.ending&&!r.destroyed&&i.length===0&&i.needDrain;if(l){i.needDrain=false;r.emit("drain")}while(s-- >0){i.pendingcb--;a()}if(i.destroyed){errorBuffer(i)}finishMaybe(r,i)}function errorBuffer(r){if(r.writing){return}for(let s=r.bufferedIndex;s1&&r._writev){i.pendingcb-=p-1;const a=i.allNoop?nop:r=>{for(let i=d;i256){s.splice(0,d);i.bufferedIndex=0}else{i.bufferedIndex=d}}i.bufferProcessing=false}Writable.prototype._write=function(r,i,s){if(this._writev){this._writev([{chunk:r,encoding:i}],s)}else{throw new x("_write()")}};Writable.prototype._writev=null;Writable.prototype.end=function(r,i,s){const l=this._writableState;if(typeof r==="function"){s=r;r=null;i=null}else if(typeof i==="function"){s=i;i=null}let p;if(r!==null&&r!==undefined){const s=_write(this,r,i);if(s instanceof c){p=s}}if(l.corked){l.corked=1;this.uncork()}if(p){}else if(!l.errored&&!l.ending){l.ending=true;finishMaybe(this,l,true);l.ended=true}else if(l.finished){p=new D("end")}else if(l.destroyed){p=new T("end")}if(typeof s==="function"){if(p||l.finished){a.nextTick(s,p)}else{l[L].push(s)}}return this};function needFinish(r){return r.ending&&!r.destroyed&&r.constructed&&r.length===0&&!r.errored&&r.buffered.length===0&&!r.finished&&!r.writing&&!r.errorEmitted&&!r.closeEmitted}function callFinal(r,i){let s=false;function onFinish(l){if(s){O(r,l!==null&&l!==undefined?l:N());return}s=true;i.pendingcb--;if(l){const s=i[L].splice(0);for(let r=0;r{if(needFinish(i)){finish(r,i)}else{i.pendingcb--}}),r,i)}else if(needFinish(i)){i.pendingcb++;finish(r,i)}}}}function finish(r,i){i.pendingcb--;i.finished=true;const s=i[L].splice(0);for(let r=0;r{"use strict";const{ArrayIsArray:a,ArrayPrototypeIncludes:l,ArrayPrototypeJoin:c,ArrayPrototypeMap:p,NumberIsInteger:d,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:A,NumberMIN_SAFE_INTEGER:h,NumberParseInt:g,ObjectPrototypeHasOwnProperty:y,RegExpPrototypeExec:b,String:C,StringPrototypeToUpperCase:v,StringPrototypeTrim:B}=s(29097);const{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:I,ERR_INVALID_ARG_TYPE:S,ERR_INVALID_ARG_VALUE:Q,ERR_OUT_OF_RANGE:x,ERR_UNKNOWN_SIGNAL:N}}=s(12752);const{normalizeEncoding:R}=s(14004);const{isAsyncFunction:T,isArrayBufferView:D}=s(14004).types;const _={};function isInt32(r){return r===(r|0)}function isUint32(r){return r===r>>>0}const k=/^[0-7]+$/;const P="must be a 32-bit unsigned integer or an octal string";function parseFileMode(r,i,s){if(typeof r==="undefined"){r=s}if(typeof r==="string"){if(b(k,r)===null){throw new Q(i,r,P)}r=g(r,8)}M(r,i);return r}const O=w(((r,i,s=h,a=A)=>{if(typeof r!=="number")throw new S(i,"number",r);if(!d(r))throw new x(i,"an integer",r);if(ra)throw new x(i,`>= ${s} && <= ${a}`,r)}));const L=w(((r,i,s=-2147483648,a=2147483647)=>{if(typeof r!=="number"){throw new S(i,"number",r)}if(!d(r)){throw new x(i,"an integer",r)}if(ra){throw new x(i,`>= ${s} && <= ${a}`,r)}}));const M=w(((r,i,s=false)=>{if(typeof r!=="number"){throw new S(i,"number",r)}if(!d(r)){throw new x(i,"an integer",r)}const a=s?1:0;const l=4294967295;if(rl){throw new x(i,`>= ${a} && <= ${l}`,r)}}));function validateString(r,i){if(typeof r!=="string")throw new S(i,"string",r)}function validateNumber(r,i,s=undefined,a){if(typeof r!=="number")throw new S(i,"number",r);if(s!=null&&ra||(s!=null||a!=null)&&u(r)){throw new x(i,`${s!=null?`>= ${s}`:""}${s!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,r)}}const U=w(((r,i,s)=>{if(!l(s,r)){const a=c(p(s,(r=>typeof r==="string"?`'${r}'`:C(r))),", ");const l="must be one of: "+a;throw new Q(i,r,l)}}));function validateBoolean(r,i){if(typeof r!=="boolean")throw new S(i,"boolean",r)}function getOwnPropertyValueOrDefault(r,i,s){return r==null||!y(r,i)?s:r[i]}const H=w(((r,i,s=null)=>{const l=getOwnPropertyValueOrDefault(s,"allowArray",false);const c=getOwnPropertyValueOrDefault(s,"allowFunction",false);const p=getOwnPropertyValueOrDefault(s,"nullable",false);if(!p&&r===null||!l&&a(r)||typeof r!=="object"&&(!c||typeof r!=="function")){throw new S(i,"Object",r)}}));const j=w(((r,i)=>{if(r!=null&&typeof r!=="object"&&typeof r!=="function"){throw new S(i,"a dictionary",r)}}));const q=w(((r,i,s=0)=>{if(!a(r)){throw new S(i,"Array",r)}if(r.length{if(!D(r)){throw new S(i,["Buffer","TypedArray","DataView"],r)}}));function validateEncoding(r,i){const s=R(i);const a=r.length;if(s==="hex"&&a%2!==0){throw new Q("encoding",i,`is invalid for data of length ${a}`)}}function validatePort(r,i="Port",s=true){if(typeof r!=="number"&&typeof r!=="string"||typeof r==="string"&&B(r).length===0||+r!==+r>>>0||r>65535||r===0&&!s){throw new I(i,r,s)}return r|0}const z=w(((r,i)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new S(i,"AbortSignal",r)}}));const V=w(((r,i)=>{if(typeof r!=="function")throw new S(i,"Function",r)}));const W=w(((r,i)=>{if(typeof r!=="function"||T(r))throw new S(i,"Function",r)}));const Y=w(((r,i)=>{if(r!==undefined)throw new S(i,"undefined",r)}));function validateUnion(r,i,s){if(!l(s,r)){throw new S(i,`('${c(s,"|")}')`,r)}}const J=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(r,i){if(typeof r==="undefined"||!b(J,r)){throw new Q(i,r,'must be an array or string of format "; rel=preload; as=style"')}}function validateLinkHeaderValue(r){if(typeof r==="string"){validateLinkHeaderFormat(r,"hints");return r}else if(a(r)){const i=r.length;let s="";if(i===0){return s}for(let a=0;a; rel=preload; as=style"')}r.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:q,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:G,validateDictionary:j,validateEncoding:validateEncoding,validateFunction:V,validateInt32:L,validateInteger:O,validateNumber:validateNumber,validateObject:H,validateOneOf:U,validatePlainFunction:W,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:M,validateUndefined:Y,validateUnion:validateUnion,validateAbortSignal:z,validateLinkHeaderValue:validateLinkHeaderValue}},12752:(r,i,s)=>{"use strict";const{format:a,inspect:l,AggregateError:c}=s(14004);const p=globalThis.AggregateError||c;const d=Symbol("kIsNodeError");const u=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const A=/^([A-Z][a-z0-9]*)+$/;const h="__node_internal_";const g={};function assert(r,i){if(!r){throw new g.ERR_INTERNAL_ASSERTION(i)}}function addNumericalSeparator(r){let i="";let s=r.length;const a=r[0]==="-"?1:0;for(;s>=a+4;s-=3){i=`_${r.slice(s-3,s)}${i}`}return`${r.slice(0,s)}${i}`}function getMessage(r,i,s){if(typeof i==="function"){assert(i.length<=s.length,`Code: ${r}; The provided arguments length (${s.length}) does not match the required ones (${i.length}).`);return i(...s)}const l=(i.match(/%[dfijoOs]/g)||[]).length;assert(l===s.length,`Code: ${r}; The provided arguments length (${s.length}) does not match the required ones (${l}).`);if(s.length===0){return i}return a(i,...s)}function E(r,i,s){if(!s){s=Error}class NodeError extends s{constructor(...s){super(getMessage(r,i,s))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:s.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=r;NodeError.prototype[d]=true;g[r]=NodeError}function hideStackFrames(r){const i=h+r.name;Object.defineProperty(r,"name",{value:i});return r}function aggregateTwoErrors(r,i){if(r&&i&&r!==i){if(Array.isArray(i.errors)){i.errors.push(r);return i}const s=new p([i,r],i.message);s.code=i.code;return s}return r||i}class AbortError extends Error{constructor(r="The operation was aborted",i=undefined){if(i!==undefined&&typeof i!=="object"){throw new g.ERR_INVALID_ARG_TYPE("options","Object",i)}super(r,i);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((r,i,s)=>{assert(typeof r==="string","'name' must be a string");if(!Array.isArray(i)){i=[i]}let a="The ";if(r.endsWith(" argument")){a+=`${r} `}else{a+=`"${r}" ${r.includes(".")?"property":"argument"} `}a+="must be ";const c=[];const p=[];const d=[];for(const r of i){assert(typeof r==="string","All expected entries have to be of type string");if(u.includes(r)){c.push(r.toLowerCase())}else if(A.test(r)){p.push(r)}else{assert(r!=="object",'The value "object" should be written as "Object"');d.push(r)}}if(p.length>0){const r=c.indexOf("object");if(r!==-1){c.splice(c,r,1);p.push("Object")}}if(c.length>0){switch(c.length){case 1:a+=`of type ${c[0]}`;break;case 2:a+=`one of type ${c[0]} or ${c[1]}`;break;default:{const r=c.pop();a+=`one of type ${c.join(", ")}, or ${r}`}}if(p.length>0||d.length>0){a+=" or "}}if(p.length>0){switch(p.length){case 1:a+=`an instance of ${p[0]}`;break;case 2:a+=`an instance of ${p[0]} or ${p[1]}`;break;default:{const r=p.pop();a+=`an instance of ${p.join(", ")}, or ${r}`}}if(d.length>0){a+=" or "}}switch(d.length){case 0:break;case 1:if(d[0].toLowerCase()!==d[0]){a+="an "}a+=`${d[0]}`;break;case 2:a+=`one of ${d[0]} or ${d[1]}`;break;default:{const r=d.pop();a+=`one of ${d.join(", ")}, or ${r}`}}if(s==null){a+=`. Received ${s}`}else if(typeof s==="function"&&s.name){a+=`. Received function ${s.name}`}else if(typeof s==="object"){var h;if((h=s.constructor)!==null&&h!==undefined&&h.name){a+=`. Received an instance of ${s.constructor.name}`}else{const r=l(s,{depth:-1});a+=`. Received ${r}`}}else{let r=l(s,{colors:false});if(r.length>25){r=`${r.slice(0,25)}...`}a+=`. Received type ${typeof s} (${r})`}return a}),TypeError);E("ERR_INVALID_ARG_VALUE",((r,i,s="is invalid")=>{let a=l(i);if(a.length>128){a=a.slice(0,128)+"..."}const c=r.includes(".")?"property":"argument";return`The ${c} '${r}' ${s}. Received ${a}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((r,i,s)=>{var a;const l=s!==null&&s!==undefined&&(a=s.constructor)!==null&&a!==undefined&&a.name?`instance of ${s.constructor.name}`:`type ${typeof s}`;return`Expected ${r} to be returned from the "${i}"`+` function but got ${l}.`}),TypeError);E("ERR_MISSING_ARGS",((...r)=>{assert(r.length>0,"At least one arg needs to be specified");let i;const s=r.length;r=(Array.isArray(r)?r:[r]).map((r=>`"${r}"`)).join(" or ");switch(s){case 1:i+=`The ${r[0]} argument`;break;case 2:i+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const s=r.pop();i+=`The ${r.join(", ")}, and ${s} arguments`}break}return`${i} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((r,i,s)=>{assert(i,'Missing "range" argument');let a;if(Number.isInteger(s)&&Math.abs(s)>2**32){a=addNumericalSeparator(String(s))}else if(typeof s==="bigint"){a=String(s);if(s>2n**32n||s<-(2n**32n)){a=addNumericalSeparator(a)}a+="n"}else{a=l(s)}return`The value of "${r}" is out of range. It must be ${i}. Received ${a}`}),RangeError);E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);E("ERR_STREAM_WRITE_AFTER_END","write after end",Error);E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);r.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:g}},10388:(r,i,s)=>{"use strict";const a=s(12781);if(a&&process.env.READABLE_STREAM==="disable"){const i=a.promises;r.exports._uint8ArrayToBuffer=a._uint8ArrayToBuffer;r.exports._isUint8Array=a._isUint8Array;r.exports.isDisturbed=a.isDisturbed;r.exports.isErrored=a.isErrored;r.exports.isReadable=a.isReadable;r.exports.Readable=a.Readable;r.exports.Writable=a.Writable;r.exports.Duplex=a.Duplex;r.exports.Transform=a.Transform;r.exports.PassThrough=a.PassThrough;r.exports.addAbortSignal=a.addAbortSignal;r.exports.finished=a.finished;r.exports.destroy=a.destroy;r.exports.pipeline=a.pipeline;r.exports.compose=a.compose;Object.defineProperty(a,"promises",{configurable:true,enumerable:true,get(){return i}});r.exports.Stream=a.Stream}else{const i=s(33637);const a=s(54280);const l=i.Readable.destroy;r.exports=i.Readable;r.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer;r.exports._isUint8Array=i._isUint8Array;r.exports.isDisturbed=i.isDisturbed;r.exports.isErrored=i.isErrored;r.exports.isReadable=i.isReadable;r.exports.Readable=i.Readable;r.exports.Writable=i.Writable;r.exports.Duplex=i.Duplex;r.exports.Transform=i.Transform;r.exports.PassThrough=i.PassThrough;r.exports.addAbortSignal=i.addAbortSignal;r.exports.finished=i.finished;r.exports.destroy=i.destroy;r.exports.destroy=l;r.exports.pipeline=i.pipeline;r.exports.compose=i.compose;Object.defineProperty(i,"promises",{configurable:true,enumerable:true,get(){return a}});r.exports.Stream=i.Stream}r.exports["default"]=r.exports},29097:r=>{"use strict";r.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,i){return r.includes(i)},ArrayPrototypeIndexOf(r,i){return r.indexOf(i)},ArrayPrototypeJoin(r,i){return r.join(i)},ArrayPrototypeMap(r,i){return r.map(i)},ArrayPrototypePop(r,i){return r.pop(i)},ArrayPrototypePush(r,i){return r.push(i)},ArrayPrototypeSlice(r,i,s){return r.slice(i,s)},Error:Error,FunctionPrototypeCall(r,i,...s){return r.call(i,...s)},FunctionPrototypeSymbolHasInstance(r,i){return Function.prototype[Symbol.hasInstance].call(r,i)},MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(r,i){return Object.defineProperties(r,i)},ObjectDefineProperty(r,i,s){return Object.defineProperty(r,i,s)},ObjectGetOwnPropertyDescriptor(r,i){return Object.getOwnPropertyDescriptor(r,i)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,i){return Object.setPrototypeOf(r,i)},Promise:Promise,PromisePrototypeCatch(r,i){return r.catch(i)},PromisePrototypeThen(r,i,s){return r.then(i,s)},PromiseReject(r){return Promise.reject(r)},PromiseResolve(r){return Promise.resolve(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,i){return r.test(i)},SafeSet:Set,String:String,StringPrototypeSlice(r,i,s){return r.slice(i,s)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(r,i,s){return r.set(i,s)},Boolean:Boolean,Uint8Array:Uint8Array}},14004:(r,i,s)=>{"use strict";const a=s(14300);const{kResistStopPropagation:l,SymbolDispose:c}=s(29097);const p=globalThis.AbortSignal||s(37428).AbortSignal;const d=globalThis.AbortController||s(37428).AbortController;const u=Object.getPrototypeOf((async function(){})).constructor;const A=globalThis.Blob||a.Blob;const h=typeof A!=="undefined"?function isBlob(r){return r instanceof A}:function isBlob(r){return false};const validateAbortSignal=(r,i)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new ERR_INVALID_ARG_TYPE(i,"AbortSignal",r)}};const validateFunction=(r,i)=>{if(typeof r!=="function")throw new ERR_INVALID_ARG_TYPE(i,"Function",r)};class AggregateError extends Error{constructor(r){if(!Array.isArray(r)){throw new TypeError(`Expected input to be an Array, got ${typeof r}`)}let i="";for(let s=0;s{r=s;i=a}));return{promise:s,resolve:r,reject:i}},promisify(r){return new Promise(((i,s)=>{r(((r,...a)=>{if(r){return s(r)}return i(...a)}))}))},debuglog(){return function(){}},format(r,...i){return r.replace(/%([sdifj])/g,(function(...[r,s]){const a=i.shift();if(s==="f"){return a.toFixed(6)}else if(s==="j"){return JSON.stringify(a)}else if(s==="s"&&typeof a==="object"){const r=a.constructor!==Object?a.constructor.name:"";return`${r} {}`.trim()}else{return a.toString()}}))},inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"')){return`"${r}"`}else if(!r.includes("`")&&!r.includes("${")){return`\`${r}\``}}return`'${r}'`;case"number":if(isNaN(r)){return"NaN"}else if(Object.is(r,-0)){return String(r)}return r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}},types:{isAsyncFunction(r){return r instanceof u},isArrayBufferView(r){return ArrayBuffer.isView(r)}},isBlob:h,deprecate(r,i){return r},addAbortListener:s(82361).addAbortListener||function addAbortListener(r,i){if(r===undefined){throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",r)}validateAbortSignal(r,"signal");validateFunction(i,"listener");let s;if(r.aborted){queueMicrotask((()=>i()))}else{r.addEventListener("abort",i,{__proto__:null,once:true,[l]:true});s=()=>{r.removeEventListener("abort",i)}}return{__proto__:null,[c](){var r;(r=s)===null||r===undefined?undefined:r()}}},AbortSignalAny:p.any||function AbortSignalAny(r){if(r.length===1){return r[0]}const i=new d;const abort=()=>i.abort();r.forEach((r=>{validateAbortSignal(r,"signals");r.addEventListener("abort",abort,{once:true})}));i.signal.addEventListener("abort",(()=>{r.forEach((r=>r.removeEventListener("abort",abort)))}),{once:true});return i.signal}};r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},33637:(r,i,s)=>{const{Buffer:a}=s(14300);"use strict";const{ObjectDefineProperty:l,ObjectKeys:c,ReflectApply:p}=s(29097);const{promisify:{custom:d}}=s(14004);const{streamReturningOperators:u,promiseReturningOperators:A}=s(67503);const{codes:{ERR_ILLEGAL_CONSTRUCTOR:h}}=s(12752);const g=s(30);const{setDefaultHighWaterMark:y,getDefaultHighWaterMark:b}=s(32864);const{pipeline:C}=s(6438);const{destroyer:v}=s(46150);const B=s(91830);const w={};const I=s(54280);const S=s(53583);const Q=r.exports=s(63221).Stream;Q.isDestroyed=S.isDestroyed;Q.isDisturbed=S.isDisturbed;Q.isErrored=S.isErrored;Q.isReadable=S.isReadable;Q.isWritable=S.isWritable;Q.Readable=s(39961);for(const N of c(u)){const R=u[N];function fn(...r){if(new.target){throw h()}return Q.Readable.from(p(R,this,r))}l(fn,"name",{__proto__:null,value:R.name});l(fn,"length",{__proto__:null,value:R.length});l(Q.Readable.prototype,N,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}for(const T of c(A)){const D=A[T];function fn(...r){if(new.target){throw h()}return p(D,this,r)}l(fn,"name",{__proto__:null,value:D.name});l(fn,"length",{__proto__:null,value:D.length});l(Q.Readable.prototype,T,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}Q.Writable=s(62536);Q.Duplex=s(92999);Q.Transform=s(10737);Q.PassThrough=s(34227);Q.pipeline=C;const{addAbortSignal:x}=s(65154);Q.addAbortSignal=x;Q.finished=B;Q.destroy=v;Q.compose=g;Q.setDefaultHighWaterMark=y;Q.getDefaultHighWaterMark=b;l(Q,"promises",{__proto__:null,configurable:true,enumerable:true,get(){return I}});l(C,d,{__proto__:null,enumerable:true,get(){return I.pipeline}});l(B,d,{__proto__:null,enumerable:true,get(){return I.finished}});Q.Stream=Q;Q._isUint8Array=function isUint8Array(r){return r instanceof Uint8Array};Q._uint8ArrayToBuffer=function _uint8ArrayToBuffer(r){return a.from(r.buffer,r.byteOffset,r.byteLength)}},54280:(r,i,s)=>{"use strict";const{ArrayPrototypePop:a,Promise:l}=s(29097);const{isIterable:c,isNodeStream:p,isWebStream:d}=s(53583);const{pipelineImpl:u}=s(6438);const{finished:A}=s(91830);s(33637);function pipeline(...r){return new l(((i,s)=>{let l;let A;const h=r[r.length-1];if(h&&typeof h==="object"&&!p(h)&&!c(h)&&!d(h)){const i=a(r);l=i.signal;A=i.end}u(r,((r,a)=>{if(r){s(r)}else{i(a)}}),{signal:l,end:A})}))}r.exports={finished:A,pipeline:pipeline}},78555:(r,i,s)=>{r.exports=readdirGlob;const a=s(57147);const{EventEmitter:l}=s(82361);const{Minimatch:c}=s(31659);const{resolve:p}=s(71017);function readdir(r,i){return new Promise(((s,l)=>{a.readdir(r,{withFileTypes:true},((r,a)=>{if(r){switch(r.code){case"ENOTDIR":if(i){l(r)}else{s([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":s([]);break;case"ELOOP":default:l(r);break}}else{s(a)}}))}))}function stat(r,i){return new Promise(((s,l)=>{const c=i?a.stat:a.lstat;c(r,((a,l)=>{if(a){switch(a.code){case"ENOENT":if(i){s(stat(r,false))}else{s(null)}break;default:s(null);break}}else{s(l)}}))}))}async function*exploreWalkAsync(r,i,s,a,l,c){let p=await readdir(i+r,c);for(const c of p){let p=c.name;if(p===undefined){p=c;a=true}const d=r+"/"+p;const u=d.slice(1);const A=i+"/"+u;let h=null;if(a||s){h=await stat(A,s)}if(!h&&c.name!==undefined){h=c}if(h===null){h={isDirectory:()=>false}}if(h.isDirectory()){if(!l(u)){yield{relative:u,absolute:A,stats:h};yield*exploreWalkAsync(d,i,s,a,l,false)}}else{yield{relative:u,absolute:A,stats:h}}}}async function*explore(r,i,s,a){yield*exploreWalkAsync("",r,i,s,a,true)}function readOptions(r){return{pattern:r.pattern,dot:!!r.dot,noglobstar:!!r.noglobstar,matchBase:!!r.matchBase,nocase:!!r.nocase,ignore:r.ignore,skip:r.skip,follow:!!r.follow,stat:!!r.stat,nodir:!!r.nodir,mark:!!r.mark,silent:!!r.silent,absolute:!!r.absolute}}class ReaddirGlob extends l{constructor(r,i,s){super();if(typeof i==="function"){s=i;i=null}this.options=readOptions(i||{});this.matchers=[];if(this.options.pattern){const r=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=r.map((r=>new c(r,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const r=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=r.map((r=>new c(r,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const r=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=r.map((r=>new c(r,{dot:true})))}this.iterator=explore(p(r||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(s){this._matches=[];this.on("match",(r=>this._matches.push(this.options.absolute?r.absolute:r.relative)));this.on("error",(r=>s(r)));this.on("end",(()=>s(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(r){return this.skipMatchers.some((i=>i.match(r)))}_fileMatches(r,i){const s=r+(i?"/":"");return(this.matchers.length===0||this.matchers.some((r=>r.match(s))))&&!this.ignoreMatchers.some((r=>r.match(s)))&&(!this.options.nodir||!i)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((r=>{if(!r.done){const i=r.value.stats.isDirectory();if(this._fileMatches(r.value.relative,i)){let s=r.value.relative;let a=r.value.absolute;if(this.options.mark&&i){s+="/";a+="/"}if(this.options.stat){this.emit("match",{relative:s,absolute:a,stat:r.value.stats})}else{this.emit("match",{relative:s,absolute:a})}}this._next(this.iterator)}else{this.emit("end")}})).catch((r=>{this.abort();this.emit("error",r);if(!r.code&&!this.options.silent){console.error(r)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(r,i,s){return new ReaddirGlob(r,i,s)}readdirGlob.ReaddirGlob=ReaddirGlob},17289:(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)}},34438:(r,i,s)=>{(function(r){r.parser=function(r,i){return new SAXParser(r,i)};r.SAXParser=SAXParser;r.SAXStream=SAXStream;r.createStream=createStream;r.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(i,s){if(!(this instanceof SAXParser)){return new SAXParser(i,s)}var a=this;clearBuffers(a);a.q=a.c="";a.bufferCheckPosition=r.MAX_BUFFER_LENGTH;a.opt=s||{};a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags;a.looseCase=a.opt.lowercase?"toLowerCase":"toUpperCase";a.tags=[];a.closed=a.closedRoot=a.sawRoot=false;a.tag=a.error=null;a.strict=!!i;a.noscript=!!(i||a.opt.noscript);a.state=C.BEGIN;a.strictEntities=a.opt.strictEntities;a.ENTITIES=a.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES);a.attribList=[];if(a.opt.xmlns){a.ns=Object.create(A)}if(a.opt.unquotedAttributeValues===undefined){a.opt.unquotedAttributeValues=!i}a.trackPosition=a.opt.position!==false;if(a.trackPosition){a.position=a.line=a.column=0}emit(a,"onready")}if(!Object.create){Object.create=function(r){function F(){}F.prototype=r;var i=new F;return i}}if(!Object.keys){Object.keys=function(r){var i=[];for(var s in r)if(r.hasOwnProperty(s))i.push(s);return i}}function checkBufferLength(s){var a=Math.max(r.MAX_BUFFER_LENGTH,10);var l=0;for(var c=0,p=i.length;ca){switch(i[c]){case"textNode":closeText(s);break;case"cdata":emitNode(s,"oncdata",s.cdata);s.cdata="";break;case"script":emitNode(s,"onscript",s.script);s.script="";break;default:error(s,"Max buffer length exceeded: "+i[c])}}l=Math.max(l,d)}var u=r.MAX_BUFFER_LENGTH-l;s.bufferCheckPosition=u+s.position}function clearBuffers(r){for(var s=0,a=i.length;s"||isWhitespace(r)}function isMatch(r,i){return r.test(i)}function notMatch(r,i){return!isMatch(r,i)}var C=0;r.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++};r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(r.ENTITIES).forEach((function(i){var s=r.ENTITIES[i];var a=typeof s==="number"?String.fromCharCode(s):s;r.ENTITIES[i]=a}));for(var v in r.STATE){r.STATE[r.STATE[v]]=v}C=r.STATE;function emit(r,i,s){r[i]&&r[i](s)}function emitNode(r,i,s){if(r.textNode)closeText(r);emit(r,i,s)}function closeText(r){r.textNode=textopts(r.opt,r.textNode);if(r.textNode)emit(r,"ontext",r.textNode);r.textNode=""}function textopts(r,i){if(r.trim)i=i.trim();if(r.normalize)i=i.replace(/\s+/g," ");return i}function error(r,i){closeText(r);if(r.trackPosition){i+="\nLine: "+r.line+"\nColumn: "+r.column+"\nChar: "+r.c}i=new Error(i);r.error=i;emit(r,"onerror",i);return r}function end(r){if(r.sawRoot&&!r.closedRoot)strictFail(r,"Unclosed root tag");if(r.state!==C.BEGIN&&r.state!==C.BEGIN_WHITESPACE&&r.state!==C.TEXT){error(r,"Unexpected end")}closeText(r);r.c="";r.closed=true;emit(r,"onend");SAXParser.call(r,r.strict,r.opt);return r}function strictFail(r,i){if(typeof r!=="object"||!(r instanceof SAXParser)){throw new Error("bad call to strictFail")}if(r.strict){error(r,i)}}function newTag(r){if(!r.strict)r.tagName=r.tagName[r.looseCase]();var i=r.tags[r.tags.length-1]||r;var s=r.tag={name:r.tagName,attributes:{}};if(r.opt.xmlns){s.ns=i.ns}r.attribList.length=0;emitNode(r,"onopentagstart",s)}function qname(r,i){var s=r.indexOf(":");var a=s<0?["",r]:r.split(":");var l=a[0];var c=a[1];if(i&&r==="xmlns"){l="xmlns";c=""}return{prefix:l,local:c}}function attrib(r){if(!r.strict){r.attribName=r.attribName[r.looseCase]()}if(r.attribList.indexOf(r.attribName)!==-1||r.tag.attributes.hasOwnProperty(r.attribName)){r.attribName=r.attribValue="";return}if(r.opt.xmlns){var i=qname(r.attribName,true);var s=i.prefix;var a=i.local;if(s==="xmlns"){if(a==="xml"&&r.attribValue!==d){strictFail(r,"xml: prefix must be bound to "+d+"\n"+"Actual: "+r.attribValue)}else if(a==="xmlns"&&r.attribValue!==u){strictFail(r,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+r.attribValue)}else{var l=r.tag;var c=r.tags[r.tags.length-1]||r;if(l.ns===c.ns){l.ns=Object.create(c.ns)}l.ns[a]=r.attribValue}}r.attribList.push([r.attribName,r.attribValue])}else{r.tag.attributes[r.attribName]=r.attribValue;emitNode(r,"onattribute",{name:r.attribName,value:r.attribValue})}r.attribName=r.attribValue=""}function openTag(r,i){if(r.opt.xmlns){var s=r.tag;var a=qname(r.tagName);s.prefix=a.prefix;s.local=a.local;s.uri=s.ns[a.prefix]||"";if(s.prefix&&!s.uri){strictFail(r,"Unbound namespace prefix: "+JSON.stringify(r.tagName));s.uri=a.prefix}var l=r.tags[r.tags.length-1]||r;if(s.ns&&l.ns!==s.ns){Object.keys(s.ns).forEach((function(i){emitNode(r,"onopennamespace",{prefix:i,uri:s.ns[i]})}))}for(var c=0,p=r.attribList.length;c";r.tagName="";r.state=C.SCRIPT;return}emitNode(r,"onscript",r.script);r.script=""}var i=r.tags.length;var s=r.tagName;if(!r.strict){s=s[r.looseCase]()}var a=s;while(i--){var l=r.tags[i];if(l.name!==a){strictFail(r,"Unexpected close tag")}else{break}}if(i<0){strictFail(r,"Unmatched closing tag: "+r.tagName);r.textNode+="";r.state=C.TEXT;return}r.tagName=s;var c=r.tags.length;while(c-- >i){var p=r.tag=r.tags.pop();r.tagName=r.tag.name;emitNode(r,"onclosetag",r.tagName);var d={};for(var u in p.ns){d[u]=p.ns[u]}var A=r.tags[r.tags.length-1]||r;if(r.opt.xmlns&&p.ns!==A.ns){Object.keys(p.ns).forEach((function(i){var s=p.ns[i];emitNode(r,"onclosenamespace",{prefix:i,uri:s})}))}}if(i===0)r.closedRoot=true;r.tagName=r.attribValue=r.attribName="";r.attribList.length=0;r.state=C.TEXT}function parseEntity(r){var i=r.entity;var s=i.toLowerCase();var a;var l="";if(r.ENTITIES[i]){return r.ENTITIES[i]}if(r.ENTITIES[s]){return r.ENTITIES[s]}i=s;if(i.charAt(0)==="#"){if(i.charAt(1)==="x"){i=i.slice(2);a=parseInt(i,16);l=a.toString(16)}else{i=i.slice(1);a=parseInt(i,10);l=a.toString(10)}}i=i.replace(/^0+/,"");if(isNaN(a)||l.toLowerCase()!==i){strictFail(r,"Invalid character entity");return"&"+r.entity+";"}return String.fromCodePoint(a)}function beginWhiteSpace(r,i){if(i==="<"){r.state=C.OPEN_WAKA;r.startTagPosition=r.position}else if(!isWhitespace(i)){strictFail(r,"Non-whitespace before first tag.");r.textNode=i;r.state=C.TEXT}}function charAt(r,i){var s="";if(i"){emitNode(s,"onsgmldeclaration",s.sgmlDecl);s.sgmlDecl="";s.state=C.TEXT}else if(isQuote(l)){s.state=C.SGML_DECL_QUOTED;s.sgmlDecl+=l}else{s.sgmlDecl+=l}continue;case C.SGML_DECL_QUOTED:if(l===s.q){s.state=C.SGML_DECL;s.q=""}s.sgmlDecl+=l;continue;case C.DOCTYPE:if(l===">"){s.state=C.TEXT;emitNode(s,"ondoctype",s.doctype);s.doctype=true}else{s.doctype+=l;if(l==="["){s.state=C.DOCTYPE_DTD}else if(isQuote(l)){s.state=C.DOCTYPE_QUOTED;s.q=l}}continue;case C.DOCTYPE_QUOTED:s.doctype+=l;if(l===s.q){s.q="";s.state=C.DOCTYPE}continue;case C.DOCTYPE_DTD:if(l==="]"){s.doctype+=l;s.state=C.DOCTYPE}else if(l==="<"){s.state=C.OPEN_WAKA;s.startTagPosition=s.position}else if(isQuote(l)){s.doctype+=l;s.state=C.DOCTYPE_DTD_QUOTED;s.q=l}else{s.doctype+=l}continue;case C.DOCTYPE_DTD_QUOTED:s.doctype+=l;if(l===s.q){s.state=C.DOCTYPE_DTD;s.q=""}continue;case C.COMMENT:if(l==="-"){s.state=C.COMMENT_ENDING}else{s.comment+=l}continue;case C.COMMENT_ENDING:if(l==="-"){s.state=C.COMMENT_ENDED;s.comment=textopts(s.opt,s.comment);if(s.comment){emitNode(s,"oncomment",s.comment)}s.comment=""}else{s.comment+="-"+l;s.state=C.COMMENT}continue;case C.COMMENT_ENDED:if(l!==">"){strictFail(s,"Malformed comment");s.comment+="--"+l;s.state=C.COMMENT}else if(s.doctype&&s.doctype!==true){s.state=C.DOCTYPE_DTD}else{s.state=C.TEXT}continue;case C.CDATA:if(l==="]"){s.state=C.CDATA_ENDING}else{s.cdata+=l}continue;case C.CDATA_ENDING:if(l==="]"){s.state=C.CDATA_ENDING_2}else{s.cdata+="]"+l;s.state=C.CDATA}continue;case C.CDATA_ENDING_2:if(l===">"){if(s.cdata){emitNode(s,"oncdata",s.cdata)}emitNode(s,"onclosecdata");s.cdata="";s.state=C.TEXT}else if(l==="]"){s.cdata+="]"}else{s.cdata+="]]"+l;s.state=C.CDATA}continue;case C.PROC_INST:if(l==="?"){s.state=C.PROC_INST_ENDING}else if(isWhitespace(l)){s.state=C.PROC_INST_BODY}else{s.procInstName+=l}continue;case C.PROC_INST_BODY:if(!s.procInstBody&&isWhitespace(l)){continue}else if(l==="?"){s.state=C.PROC_INST_ENDING}else{s.procInstBody+=l}continue;case C.PROC_INST_ENDING:if(l===">"){emitNode(s,"onprocessinginstruction",{name:s.procInstName,body:s.procInstBody});s.procInstName=s.procInstBody="";s.state=C.TEXT}else{s.procInstBody+="?"+l;s.state=C.PROC_INST_BODY}continue;case C.OPEN_TAG:if(isMatch(g,l)){s.tagName+=l}else{newTag(s);if(l===">"){openTag(s)}else if(l==="/"){s.state=C.OPEN_TAG_SLASH}else{if(!isWhitespace(l)){strictFail(s,"Invalid character in tag name")}s.state=C.ATTRIB}}continue;case C.OPEN_TAG_SLASH:if(l===">"){openTag(s,true);closeTag(s)}else{strictFail(s,"Forward-slash in opening tag not followed by >");s.state=C.ATTRIB}continue;case C.ATTRIB:if(isWhitespace(l)){continue}else if(l===">"){openTag(s)}else if(l==="/"){s.state=C.OPEN_TAG_SLASH}else if(isMatch(h,l)){s.attribName=l;s.attribValue="";s.state=C.ATTRIB_NAME}else{strictFail(s,"Invalid attribute name")}continue;case C.ATTRIB_NAME:if(l==="="){s.state=C.ATTRIB_VALUE}else if(l===">"){strictFail(s,"Attribute without value");s.attribValue=s.attribName;attrib(s);openTag(s)}else if(isWhitespace(l)){s.state=C.ATTRIB_NAME_SAW_WHITE}else if(isMatch(g,l)){s.attribName+=l}else{strictFail(s,"Invalid attribute name")}continue;case C.ATTRIB_NAME_SAW_WHITE:if(l==="="){s.state=C.ATTRIB_VALUE}else if(isWhitespace(l)){continue}else{strictFail(s,"Attribute without value");s.tag.attributes[s.attribName]="";s.attribValue="";emitNode(s,"onattribute",{name:s.attribName,value:""});s.attribName="";if(l===">"){openTag(s)}else if(isMatch(h,l)){s.attribName=l;s.state=C.ATTRIB_NAME}else{strictFail(s,"Invalid attribute name");s.state=C.ATTRIB}}continue;case C.ATTRIB_VALUE:if(isWhitespace(l)){continue}else if(isQuote(l)){s.q=l;s.state=C.ATTRIB_VALUE_QUOTED}else{if(!s.opt.unquotedAttributeValues){error(s,"Unquoted attribute value")}s.state=C.ATTRIB_VALUE_UNQUOTED;s.attribValue=l}continue;case C.ATTRIB_VALUE_QUOTED:if(l!==s.q){if(l==="&"){s.state=C.ATTRIB_VALUE_ENTITY_Q}else{s.attribValue+=l}continue}attrib(s);s.q="";s.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:if(isWhitespace(l)){s.state=C.ATTRIB}else if(l===">"){openTag(s)}else if(l==="/"){s.state=C.OPEN_TAG_SLASH}else if(isMatch(h,l)){strictFail(s,"No whitespace between attributes");s.attribName=l;s.attribValue="";s.state=C.ATTRIB_NAME}else{strictFail(s,"Invalid attribute name")}continue;case C.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(l)){if(l==="&"){s.state=C.ATTRIB_VALUE_ENTITY_U}else{s.attribValue+=l}continue}attrib(s);if(l===">"){openTag(s)}else{s.state=C.ATTRIB}continue;case C.CLOSE_TAG:if(!s.tagName){if(isWhitespace(l)){continue}else if(notMatch(h,l)){if(s.script){s.script+=""){closeTag(s)}else if(isMatch(g,l)){s.tagName+=l}else if(s.script){s.script+=""){closeTag(s)}else{strictFail(s,"Invalid characters in closing tag")}continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var A;var v;switch(s.state){case C.TEXT_ENTITY:A=C.TEXT;v="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:A=C.ATTRIB_VALUE_QUOTED;v="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:A=C.ATTRIB_VALUE_UNQUOTED;v="attribValue";break}if(l===";"){var B=parseEntity(s);if(s.opt.unparsedEntities&&!Object.values(r.XML_ENTITIES).includes(B)){s.entity="";s.state=A;s.write(B)}else{s[v]+=B;s.entity="";s.state=A}}else if(isMatch(s.entity.length?b:y,l)){s.entity+=l}else{strictFail(s,"Invalid character in entity name");s[v]+="&"+s.entity+l;s.entity="";s.state=A}continue;default:{throw new Error(s,"Unknown state: "+s.state)}}}if(s.position>=s.bufferCheckPosition){checkBufferLength(s)}return s} +/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var i=Math.floor;var fromCodePoint=function(){var s=16384;var a=[];var l;var c;var p=-1;var d=arguments.length;if(!d){return""}var u="";while(++p1114111||i(A)!==A){throw RangeError("Invalid code point: "+A)}if(A<=65535){a.push(A)}else{A-=65536;l=(A>>10)+55296;c=A%1024+56320;a.push(l,c)}if(p+1===d||a.length>s){u+=r.apply(null,a);a.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},82454:(r,i,s)=>{const{EventEmitter:a}=s(82361);const l=new Error("Stream was destroyed");const c=new Error("Premature close");const p=s(94282);const d=s(9003);const u=s(33169);const A=(1<<29)-1;const h=1;const g=2;const y=4;const b=8;const C=A^h;const v=A^g;const B=1<<4;const w=2<<4;const I=4<<4;const S=8<<4;const Q=16<<4;const x=32<<4;const N=64<<4;const R=128<<4;const T=256<<4;const D=512<<4;const _=1024<<4;const k=2048<<4;const P=4096<<4;const O=8192<<4;const L=Q|x;const M=B|P;const U=I|B;const H=T|S;const j=Q|O;const q=A^B;const G=A^I;const z=A^(I|P);const V=A^P;const W=A^Q;const Y=A^(S|D);const J=A^N;const X=A^L;const K=A^k;const $=A^w;const Z=A^O;const ee=A^j;const te=1<<18;const re=2<<18;const ie=4<<18;const ne=8<<18;const se=16<<18;const ae=32<<18;const oe=64<<18;const le=128<<18;const ce=256<<18;const pe=512<<18;const de=1024<<18;const ue=A^(te|ce);const Ae=A^ie;const me=A^pe;const he=A^se;const fe=A^ne;const ge=A^le;const ye=A^re;const Ee=A^de;const be=B|te;const Ce=A^be;const ve=_|ae;const Be=y|b|g;const we=Be|h;const Ie=Be|ve;const Se=Ae&G;const Qe=le|k;const xe=Qe&Ce;const Ne=we|xe;const Re=we|N|_;const Te=we|_|S;const De=we|N|S;const _e=we|T|S|D;const ke=we|B|N|_|P|O;const Pe=Be|N|_;const Oe=w|we|k|I;const Le=we|pe|ae;const Me=ne|se;const Fe=ne|te;const Ue=ne|se|we|te;const He=we|te|ne|de;const je=ie|te;const qe=te|ce;const Ge=we|pe|Fe|ae;const ze=se|Be|pe|ae;const Ve=re|we|le|ie;const We=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(r,{highWaterMark:i=16384,map:s=null,mapWritable:a,byteLength:l,byteLengthWritable:c}={}){this.stream=r;this.queue=new d;this.highWaterMark=i;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=c||l||defaultByteLength;this.map=a||s;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&ae)!==0}push(r){if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);if(this.buffered0;this.error=null;this.pipeline=null;this.byteLength=c||l||defaultByteLength;this.map=a||s;this.pipeTo=null;this.afterRead=afterRead.bind(this);this.afterUpdateNextTick=updateReadNT.bind(this)}get ended(){return(this.stream._duplexState&_)!==0}pipe(r,i){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof i!=="function")i=null;this.stream._duplexState|=x;this.pipeTo=r;this.pipeline=new Pipeline(this.stream,r,i);if(i)this.stream.on("error",noop);if(isStreamx(r)){r._writableState.pipeline=this.pipeline;if(i)r.on("error",noop);r.on("finish",this.pipeline.finished.bind(this.pipeline))}else{const i=this.pipeline.done.bind(this.pipeline,r);const s=this.pipeline.done.bind(this.pipeline,r,null);r.on("error",i);r.on("close",s);r.on("finish",this.pipeline.finished.bind(this.pipeline))}r.on("drain",afterDrain.bind(this));this.stream.emit("piping",r);r.emit("pipe",this.stream)}push(r){const i=this.stream;if(r===null){this.highWaterMark=0;i._duplexState=(i._duplexState|N)&z;return false}if(this.map!==null){r=this.map(r);if(r===null)return this.buffered0)i.push(this.shift());for(let r=0;r0)a.drains.shift().resolve(false);if(a.pipeline!==null)a.pipeline.done(i,r)}}function afterWrite(r){const i=this.stream;if(r)i.destroy(r);i._duplexState&=ue;if(this.drains!==null)tickDrains(this.drains);if((i._duplexState&Ue)===se){i._duplexState&=he;if((i._duplexState&oe)===oe){i.emit("drain")}}this.updateCallback()}function afterRead(r){if(r)this.stream.destroy(r);this.stream._duplexState&=q;if(this.readAhead===false&&(this.stream._duplexState&Q)===0)this.stream._duplexState&=Z;this.updateCallback()}function updateReadNT(){if((this.stream._duplexState&w)===0){this.stream._duplexState&=K;this.update()}}function updateWriteNT(){if((this.stream._duplexState&re)===0){this.stream._duplexState&=ge;this.update()}}function tickDrains(r){for(let i=0;i=r._readableState.highWaterMark}static isPaused(r){return(r._duplexState&Q)===0}[We](){const r=this;let i=null;let s=null;let a=null;this.on("error",(r=>{i=r}));this.on("readable",onreadable);this.on("close",onclose);return{[We](){return this},next(){return new Promise((function(i,l){s=i;a=l;const c=r.read();if(c!==null)ondata(c);else if((r._duplexState&b)!==0)ondata(null)}))},return(){return destroy(null)},throw(r){return destroy(r)}};function onreadable(){if(s!==null)ondata(r.read())}function onclose(){if(s!==null)ondata(null)}function ondata(c){if(a===null)return;if(i)a(i);else if(c===null&&(r._duplexState&_)===0)a(l);else s({value:c,done:c===null});a=s=null}function destroy(i){r.destroy(i);return new Promise(((s,a)=>{if(r._duplexState&b)return s({value:undefined,done:true});r.once("close",(function(){if(i)a(i);else s({value:undefined,done:true})}))}))}}}class Writable extends Stream{constructor(r){super(r);this._duplexState|=h|_;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final;if(r.eagerOpen)this._writableState.updateNextTick()}}cork(){this._duplexState|=de}uncork(){this._duplexState&=Ee;this._writableState.updateNextTick()}_writev(r,i){i(null)}_write(r,i){this._writableState.autoBatch(r,i)}_final(r){r(null)}static isBackpressured(r){return(r._duplexState&ze)!==0}static drained(r){if(r.destroyed)return Promise.resolve(false);const i=r._writableState;const s=isWritev(r)?Math.min(1,i.queue.length):i.queue.length;const a=s+(r._duplexState&ce?1:0);if(a===0)return Promise.resolve(true);if(i.drains===null)i.drains=[];return new Promise((r=>{i.drains.push({writes:a,resolve:r})}))}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Duplex extends Readable{constructor(r){super(r);this._duplexState=h|this._duplexState&O;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final}}cork(){this._duplexState|=de}uncork(){this._duplexState&=Ee;this._writableState.updateNextTick()}_writev(r,i){i(null)}_write(r,i){this._writableState.autoBatch(r,i)}_final(r){r(null)}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Transform extends Duplex{constructor(r){super(r);this._transformState=new TransformState(this);if(r){if(r.transform)this._transform=r.transform;if(r.flush)this._flush=r.flush}}_write(r,i){if(this._readableState.buffered>=this._readableState.highWaterMark){this._transformState.data=r}else{this._transform(r,this._transformState.afterTransform)}}_read(r){if(this._transformState.data!==null){const i=this._transformState.data;this._transformState.data=null;r(null);this._transform(i,this._transformState.afterTransform)}else{r(null)}}destroy(r){super.destroy(r);if(this._transformState.data!==null){this._transformState.data=null;this._transformState.afterTransform()}}_transform(r,i){i(null,r)}_flush(r){r(null)}_final(r){this._transformState.afterFinal=r;this._flush(transformAfterFlush.bind(this))}}class PassThrough extends Transform{}function transformAfterFlush(r,i){const s=this._transformState.afterFinal;if(r)return s(r);if(i!==null&&i!==undefined)this.push(i);this.push(null);s(null)}function pipelinePromise(...r){return new Promise(((i,s)=>pipeline(...r,(r=>{if(r)return s(r);i()}))))}function pipeline(r,...i){const s=Array.isArray(r)?[...r,...i]:[r,...i];const a=s.length&&typeof s[s.length-1]==="function"?s.pop():null;if(s.length<2)throw new Error("Pipeline requires at least 2 streams");let l=s[0];let p=null;let d=null;for(let r=1;r1,onerror);l.pipe(p)}l=p}if(a){let r=false;const i=isStreamx(p)||!!(p._writableState&&p._writableState.autoDestroy);p.on("error",(r=>{if(d===null)d=r}));p.on("finish",(()=>{r=true;if(!i)a(d)}));if(i){p.on("close",(()=>a(d||(r?null:c))))}}return p;function errorHandle(r,i,s,a){r.on("error",a);r.on("close",onclose);function onclose(){if(i&&r._readableState&&!r._readableState.ended)return a(c);if(s&&r._writableState&&!r._writableState.ended)return a(c)}}function onerror(r){if(!r||d)return;d=r;for(const i of s){i.destroy(r)}}}function echo(r){return r}function isStream(r){return!!r._readableState||!!r._writableState}function isStreamx(r){return typeof r._duplexState==="number"&&isStream(r)}function getStreamError(r){const i=r._readableState&&r._readableState.error||r._writableState&&r._writableState.error;return i===l?null:i}function isReadStreamx(r){return isStreamx(r)&&r.readable}function isTypedArray(r){return typeof r==="object"&&r!==null&&typeof r.byteLength==="number"}function defaultByteLength(r){return isTypedArray(r)?r.byteLength:1024}function noop(){}function abort(){this.destroy(new Error("Stream aborted."))}function isWritev(r){return r._writev!==Writable.prototype._writev&&r._writev!==Duplex.prototype._writev}r.exports={pipeline:pipeline,pipelinePromise:pipelinePromise,isStream:isStream,isStreamx:isStreamx,getStreamError:getStreamError,Stream:Stream,Writable:Writable,Readable:Readable,Duplex:Duplex,Transform:Transform,PassThrough:PassThrough}},46492:(r,i,s)=>{"use strict";var a=s(17289).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):""}},11405:(r,i,s)=>{const a={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{r.exports=s(57147).constants||a}catch{r.exports=a}},14125:(r,i,s)=>{const{Writable:a,Readable:l,getStreamError:c}=s(82454);const p=s(9003);const d=s(84785);const u=s(44633);const A=d.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new p;this._offset=0}push(r){this.buffered+=r.byteLength;this.queue.push(r)}shiftFirst(r){return this._buffered===0?null:this._next(r)}shift(r){if(r>this.buffered)return null;if(r===0)return A;let i=this._next(r);if(r===i.byteLength)return i;const s=[i];while((r-=i.byteLength)>0){i=this._next(r);s.push(i)}return d.concat(s)}_next(r){const i=this.queue.peek();const s=i.byteLength-this._offset;if(r>=s){const r=this._offset?i.subarray(this._offset,i.byteLength):i;this.queue.shift();this._offset=0;this.buffered-=s;this.shifted+=s;return r}this.buffered-=r;this.shifted+=r;return i.subarray(this._offset,this._offset+=r)}}class Source extends l{constructor(r,i,s){super();this.header=i;this.offset=s;this._parent=r}_read(r){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}r(null)}_predestroy(){this._parent.destroy(c(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(r){this._detach();r(null)}}class Extract extends a{constructor(r){super(r);if(!r)r={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=r.filenameEncoding||"utf-8";this._allowUnknownFormat=!!r.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(r){this._locked=false;if(r){this.destroy(r);this._continueWrite(r);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=u.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(r){this._continueWrite(r);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(r){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=u.decodeLongPath(r,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=u.decodeLongPath(r,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=u.decodePax(r);break;case"pax-header":this._pax=this._paxGlobal===null?u.decodePax(r):Object.assign({},this._paxGlobal,u.decodePax(r));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const r=this._buffer.shift(this._header.size);try{this._decodeLongHeader(r)}catch(r){this._continueWrite(r);return false}return true}_consumeStream(){const r=this._buffer.shiftFirst(this._missing);if(r===null)return false;this._missing-=r.byteLength;const i=this._stream.push(r);if(this._missing===0){this._stream.push(null);if(i)this._stream._detach();return i&&this._locked===false}return i}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const r=this._buffer.shiftFirst(this._missing);if(r!==null)this._missing-=r.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(r){const i=this._callback;this._callback=noop;i(r)}_write(r,i){this._callback=i;this._buffer.push(r);this._update()}_final(r){this._finished=this._missing===0&&this._buffer.buffered===0;r(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(r){if(this._stream)this._stream.destroy(c(this));r(null)}[Symbol.asyncIterator](){let r=null;let i=null;let s=null;let a=null;let l=null;const c=this;this.on("entry",onentry);this.on("error",(i=>{r=i}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(r){return destroy(r)}};function consumeCallback(r){if(!l)return;const i=l;l=null;i(r)}function onnext(l,p){if(r){return p(r)}if(a){l({value:a,done:false});a=null;return}i=l;s=p;consumeCallback(null);if(c._finished&&i){i({value:undefined,done:true});i=s=null}}function onentry(r,c,p){l=p;c.on("error",noop);if(i){i({value:c,done:false});i=s=null}else{a=c}}function onclose(){consumeCallback(r);if(!i)return;if(r)s(r);else i({value:undefined,done:true});i=s=null}function destroy(r){c.destroy(r);consumeCallback(r);return new Promise(((i,s)=>{if(c.destroyed)return i({value:undefined,done:true});c.once("close",(function(){if(r)s(r);else i({value:undefined,done:true})}))}))}}}r.exports=function extract(r){return new Extract(r)};function noop(){}function overflow(r){r&=511;return r&&512-r}},44633:(r,i,s)=>{const a=s(84785);const l="0000000000000000000";const c="7777777777777777777";const p="0".charCodeAt(0);const d=a.from([117,115,116,97,114,0]);const u=a.from([p,p]);const A=a.from([117,115,116,97,114,32]);const h=a.from([32,0]);const g=4095;const y=257;const b=263;i.decodeLongPath=function decodeLongPath(r,i){return decodeStr(r,0,r.length,i)};i.encodePax=function encodePax(r){let i="";if(r.name)i+=addLength(" path="+r.name+"\n");if(r.linkname)i+=addLength(" linkpath="+r.linkname+"\n");const s=r.pax;if(s){for(const r in s){i+=addLength(" "+r+"="+s[r]+"\n")}}return a.from(i)};i.decodePax=function decodePax(r){const i={};while(r.length){let s=0;while(s100){const r=s.indexOf("/");if(r===-1)return null;l+=l?"/"+s.slice(0,r):s.slice(0,r);s=s.slice(r+1)}if(a.byteLength(s)>100||a.byteLength(l)>155)return null;if(r.linkname&&a.byteLength(r.linkname)>100)return null;a.write(i,s);a.write(i,encodeOct(r.mode&g,6),100);a.write(i,encodeOct(r.uid,6),108);a.write(i,encodeOct(r.gid,6),116);encodeSize(r.size,i,124);a.write(i,encodeOct(r.mtime.getTime()/1e3|0,11),136);i[156]=p+toTypeflag(r.type);if(r.linkname)a.write(i,r.linkname,157);a.copy(d,i,y);a.copy(u,i,b);if(r.uname)a.write(i,r.uname,265);if(r.gname)a.write(i,r.gname,297);a.write(i,encodeOct(r.devmajor||0,6),329);a.write(i,encodeOct(r.devminor||0,6),337);if(l)a.write(i,l,345);a.write(i,encodeOct(cksum(i),6),148);return i};i.decode=function decode(r,i,s){let a=r[156]===0?0:r[156]-p;let l=decodeStr(r,0,100,i);const c=decodeOct(r,100,8);const d=decodeOct(r,108,8);const u=decodeOct(r,116,8);const A=decodeOct(r,124,12);const h=decodeOct(r,136,12);const g=toType(a);const y=r[157]===0?null:decodeStr(r,157,100,i);const b=decodeStr(r,265,32);const C=decodeStr(r,297,32);const v=decodeOct(r,329,8);const B=decodeOct(r,337,8);const w=cksum(r);if(w===8*32)return null;if(w!==decodeOct(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(r)){if(r[345])l=decodeStr(r,345,155,i)+"/"+l}else if(isGNU(r)){}else{if(!s){throw new Error("Invalid tar header: unknown format.")}}if(a===0&&l&&l[l.length-1]==="/")a=5;return{name:l,mode:c,uid:d,gid:u,size:A,mtime:new Date(1e3*h),type:g,linkname:y,uname:b,gname:C,devmajor:v,devminor:B,pax:null}};function isUSTAR(r){return a.equals(d,r.subarray(y,y+6))}function isGNU(r){return a.equals(A,r.subarray(y,y+6))&&a.equals(h,r.subarray(b,b+2))}function clamp(r,i,s){if(typeof r!=="number")return s;r=~~r;if(r>=i)return i;if(r>=0)return r;r+=i;if(r>=0)return r;return 0}function toType(r){switch(r){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function toTypeflag(r){switch(r){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function indexOf(r,i,s,a){for(;si)return c.slice(0,i)+" ";return l.slice(0,i-r.length)+r+" "}function encodeSizeBin(r,i,s){i[s]=128;for(let a=11;a>0;a--){i[s+a]=r&255;r=Math.floor(r/256)}}function encodeSize(r,i,s){if(r.toString(8).length>11){encodeSizeBin(r,i,s)}else{a.write(i,encodeOct(r,11),s)}}function parse256(r){let i;if(r[0]===128)i=true;else if(r[0]===255)i=false;else return null;const s=[];let a;for(a=r.length-1;a>0;a--){const l=r[a];if(i)s.push(l);else s.push(255-l)}let l=0;const c=s.length;for(a=0;a=Math.pow(10,s))s++;return i+s+r}},8156:(r,i,s)=>{i.extract=s(14125);i.pack=s(38845)},38845:(r,i,s)=>{const{Readable:a,Writable:l,getStreamError:c}=s(82454);const p=s(84785);const d=s(11405);const u=s(44633);const A=493;const h=420;const g=p.alloc(1024);class Sink extends l{constructor(r,i,s){super({mapWritable:mapWritable,eagerOpen:true});this.written=0;this.header=i;this._callback=s;this._linkname=null;this._isLinkname=i.type==="symlink"&&!i.linkname;this._isVoid=i.type!=="file"&&i.type!=="contiguous-file";this._finished=false;this._pack=r;this._openCallback=null;if(this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(r){this._openCallback=r;if(this._pack._stream===this)this._continueOpen()}_continuePack(r){if(this._callback===null)return;const i=this._callback;this._callback=null;i(r)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;const r=this._openCallback;this._openCallback=null;if(r===null)return;if(this._pack.destroying)return r(new Error("pack stream destroyed"));if(this._pack._finalized)return r(new Error("pack stream is already finalized"));this._pack._stream=this;if(!this._isLinkname){this._pack._encode(this.header)}if(this._isVoid){this._finish();this._continuePack(null)}r(null)}_write(r,i){if(this._isLinkname){this._linkname=this._linkname?p.concat([this._linkname,r]):r;return i(null)}if(this._isVoid){if(r.byteLength>0){return i(new Error("No body allowed for this entry"))}return i()}this.written+=r.byteLength;if(this._pack.push(r))return i();this._pack._drain=i}_finish(){if(this._finished)return;this._finished=true;if(this._isLinkname){this.header.linkname=this._linkname?p.toString(this._linkname,"utf-8"):"";this._pack._encode(this.header)}overflow(this._pack,this.header.size);this._pack._done(this)}_final(r){if(this.written!==this.header.size){return r(new Error("Size mismatch"))}this._finish();r(null)}_getError(){return c(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(r){this._pack._done(this);this._continuePack(this._finished?null:this._getError());r()}}class Pack extends a{constructor(r){super(r);this._drain=noop;this._finalized=false;this._finalizing=false;this._pending=[];this._stream=null}entry(r,i,s){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");if(typeof i==="function"){s=i;i=null}if(!s)s=noop;if(!r.size||r.type==="symlink")r.size=0;if(!r.type)r.type=modeToType(r.mode);if(!r.mode)r.mode=r.type==="directory"?A:h;if(!r.uid)r.uid=0;if(!r.gid)r.gid=0;if(!r.mtime)r.mtime=new Date;if(typeof i==="string")i=p.from(i);const a=new Sink(this,r,s);if(p.isBuffer(i)){r.size=i.byteLength;a.write(i);a.end();return a}if(a._isVoid){return a}return a}finalize(){if(this._stream||this._pending.length>0){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(g);this.push(null)}_done(r){if(r!==this._stream)return;this._stream=null;if(this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(r){if(!r.pax){const i=u.encode(r);if(i){this.push(i);return}}this._encodePax(r)}_encodePax(r){const i=u.encodePax({name:r.name,linkname:r.linkname,pax:r.pax});const s={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:i.byteLength,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(u.encode(s));this.push(i);overflow(this,i.byteLength);s.size=r.size;s.type=r.type;this.push(u.encode(s))}_doDrain(){const r=this._drain;this._drain=noop;r()}_predestroy(){const r=c(this);if(this._stream)this._stream.destroy(r);while(this._pending.length){const i=this._pending.shift();i.destroy(r);i._continueOpen()}this._doDrain()}_read(r){this._doDrain();r()}}r.exports=function pack(r){return new Pack(r)};function modeToType(r){switch(r&d.S_IFMT){case d.S_IFBLK:return"block-device";case d.S_IFCHR:return"character-device";case d.S_IFDIR:return"directory";case d.S_IFIFO:return"fifo";case d.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(r,i){i&=511;if(i)r.push(g.subarray(0,512-i))}function mapWritable(r){return p.isBuffer(r)?r:p.from(r)}},33169:(r,i,s)=>{const a=s(80752);const l=s(62243);r.exports=class TextDecoder{constructor(r="utf8"){this.encoding=normalizeEncoding(r);switch(this.encoding){case"utf8":this.decoder=new l;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new a(this.encoding)}}push(r){if(typeof r==="string")return r;return this.decoder.decode(r)}write(r){return this.push(r)}end(r){let i="";if(r)i=this.push(r);i+=this.decoder.flush();return i}};function normalizeEncoding(r){r=r.toLowerCase();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:throw new Error("Unknown encoding: "+r)}}},80752:(r,i,s)=>{const a=s(84785);r.exports=class PassThroughDecoder{constructor(r){this.encoding=r}decode(r){return a.toString(r,this.encoding)}flush(){return""}}},62243:(r,i,s)=>{const a=s(84785);r.exports=class UTF8Decoder{constructor(){this.codePoint=0;this.bytesSeen=0;this.bytesNeeded=0;this.lowerBoundary=128;this.upperBoundary=191}decode(r){if(this.bytesNeeded===0){let i=true;for(let s=Math.max(0,r.byteLength-4),a=r.byteLength;s=194&&a<=223){this.bytesNeeded=1;this.codePoint=a&31}else if(a>=224&&a<=239){if(a===224)this.lowerBoundary=160;else if(a===237)this.upperBoundary=159;this.bytesNeeded=2;this.codePoint=a&15}else if(a>=240&&a<=244){if(a===240)this.lowerBoundary=144;if(a===244)this.upperBoundary=143;this.bytesNeeded=3;this.codePoint=a&7}else{i+="�"}continue}if(athis.upperBoundary){this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191;i+="�";continue}this.lowerBoundary=128;this.upperBoundary=191;this.codePoint=this.codePoint<<6|a&63;this.bytesSeen++;if(this.bytesSeen!==this.bytesNeeded)continue;i+=String.fromCodePoint(this.codePoint);this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0}return i}flush(){const r=this.bytesNeeded>0?"�":"";this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191;return r}}},36372:(r,i,s)=>{"use strict";var a=s(85477);var l=s(31229);var c={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(r){return r.split("\0").map((function(r){return r.normalize("NFC")})).join("\0")}function findStatus(r){var i=0;var s=l.length-1;while(i<=s){var a=Math.floor((i+s)/2);var c=l[a];if(c[0][0]<=r&&c[0][1]>=r){return c}else if(c[0][0]>r){s=a-1}else{i=a+1}}return null}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(r){return r.replace(p,"_").length}function mapChars(r,i,s){var a=false;var l="";var p=countSymbols(r);for(var d=0;d253||d.length===0){c.error=true}for(var u=0;u63||p.length===0){c.error=true;break}}}if(c.error)return null;return p.join(".")};r.exports.toUnicode=function(r,i){var s=processing(r,i,c.NONTRANSITIONAL);return{domain:s.string,error:s.error}};r.exports.PROCESSING_OPTIONS=c},98717:r=>{r.exports=Traverse;function Traverse(r){if(!(this instanceof Traverse))return new Traverse(r);this.value=r}Traverse.prototype.get=function(r){var i=this.value;for(var s=0;s{var i;var s;var a;var l;var c;var p;var d;var u;var A;var h;var g;var y;var b;var C;var v;var B;var w;var I;var S;var Q;var x;var N;var R;var T;var D;var _;var k;var P;var O;var L;var M;(function(i){var s=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(r){i(createExporter(s,createExporter(r)))}))}else if(true&&typeof r.exports==="object"){i(createExporter(s,createExporter(r.exports)))}else{i(createExporter(s))}function createExporter(r,i){if(r!==s){if(typeof Object.create==="function"){Object.defineProperty(r,"__esModule",{value:true})}else{r.__esModule=true}}return function(s,a){return r[s]=i?i(s,a):a}}})((function(r){var U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s))r[s]=i[s]};i=function(r,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");U(r,i);function __(){this.constructor=r}r.prototype=i===null?Object.create(i):(__.prototype=i.prototype,new __)};s=Object.assign||function(r){for(var i,s=1,a=arguments.length;s=0;d--)if(p=r[d])c=(l<3?p(c):l>3?p(i,s,c):p(i,s))||c;return l>3&&c&&Object.defineProperty(i,s,c),c};c=function(r,i){return function(s,a){i(s,a,r)}};p=function(r,i,s,a,l,c){function accept(r){if(r!==void 0&&typeof r!=="function")throw new TypeError("Function expected");return r}var p=a.kind,d=p==="getter"?"get":p==="setter"?"set":"value";var u=!i&&r?a["static"]?r:r.prototype:null;var A=i||(u?Object.getOwnPropertyDescriptor(u,a.name):{});var h,g=false;for(var y=s.length-1;y>=0;y--){var b={};for(var C in a)b[C]=C==="access"?{}:a[C];for(var C in a.access)b.access[C]=a.access[C];b.addInitializer=function(r){if(g)throw new TypeError("Cannot add initializers after decoration has completed");c.push(accept(r||null))};var v=(0,s[y])(p==="accessor"?{get:A.get,set:A.set}:A[d],b);if(p==="accessor"){if(v===void 0)continue;if(v===null||typeof v!=="object")throw new TypeError("Object expected");if(h=accept(v.get))A.get=h;if(h=accept(v.set))A.set=h;if(h=accept(v.init))l.unshift(h)}else if(h=accept(v)){if(p==="field")l.unshift(h);else A[d]=h}}if(u)Object.defineProperty(u,a.name,A);g=true};d=function(r,i,s){var a=arguments.length>2;for(var l=0;l0&&c[c.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!c||d[1]>c[0]&&d[1]=r.length)r=void 0;return{value:r&&r[a++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};v=function(r,i){var s=typeof Symbol==="function"&&r[Symbol.iterator];if(!s)return r;var a=s.call(r),l,c=[],p;try{while((i===void 0||i-- >0)&&!(l=a.next()).done)c.push(l.value)}catch(r){p={error:r}}finally{try{if(l&&!l.done&&(s=a["return"]))s.call(a)}finally{if(p)throw p.error}}return c};B=function(){for(var r=[],i=0;i1||resume(r,i)}))}}function resume(r,i){try{step(a[r](i))}catch(r){settle(c[0][3],r)}}function step(r){r.value instanceof S?Promise.resolve(r.value.v).then(fulfill,reject):settle(c[0][2],r)}function fulfill(r){resume("next",r)}function reject(r){resume("throw",r)}function settle(r,i){if(r(i),c.shift(),c.length)resume(c[0][0],c[0][1])}};x=function(r){var i,s;return i={},verb("next"),verb("throw",(function(r){throw r})),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(a,l){i[a]=r[a]?function(i){return(s=!s)?{value:S(r[a](i)),done:false}:l?l(i):i}:l}};N=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],s;return i?i.call(r):(r=typeof C==="function"?C(r):r[Symbol.iterator](),s={},verb("next"),verb("throw"),verb("return"),s[Symbol.asyncIterator]=function(){return this},s);function verb(i){s[i]=r[i]&&function(s){return new Promise((function(a,l){s=r[i](s),settle(a,l,s.done,s.value)}))}}function settle(r,i,s,a){Promise.resolve(a).then((function(i){r({value:i,done:s})}),i)}};R=function(r,i){if(Object.defineProperty){Object.defineProperty(r,"raw",{value:i})}else{r.raw=i}return r};var H=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i};T=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))O(i,r,s);H(i,r);return i};D=function(r){return r&&r.__esModule?r:{default:r}};_=function(r,i,s,a){if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof i==="function"?r!==i||!a:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?a:s==="a"?a.call(r):a?a.value:i.get(r)};k=function(r,i,s,a,l){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof i==="function"?r!==i||!l:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?l.call(r,s):l?l.value=s:i.set(r,s),s};P=function(r,i){if(i===null||typeof i!=="object"&&typeof i!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r==="function"?i===r:r.has(i)};L=function(r,i,s){if(i!==null&&i!==void 0){if(typeof i!=="object"&&typeof i!=="function")throw new TypeError("Object expected.");var a;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=i[Symbol.asyncDispose]}if(a===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=i[Symbol.dispose]}if(typeof a!=="function")throw new TypeError("Object not disposable.");r.stack.push({value:i,dispose:a,async:s})}else if(s){r.stack.push({async:true})}return i};var j=typeof SuppressedError==="function"?SuppressedError:function(r,i,s){var a=new Error(s);return a.name="SuppressedError",a.error=r,a.suppressed=i,a};M=function(r){function fail(i){r.error=r.hasError?new j(i,r.error,"An error was suppressed during disposal."):i;r.hasError=true}function next(){while(r.stack.length){var i=r.stack.pop();try{var s=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(s).then(next,(function(r){fail(r);return next()}))}catch(r){fail(r)}}if(r.hasError)throw r.error}return next()};r("__extends",i);r("__assign",s);r("__rest",a);r("__decorate",l);r("__param",c);r("__esDecorate",p);r("__runInitializers",d);r("__propKey",u);r("__setFunctionName",A);r("__metadata",h);r("__awaiter",g);r("__generator",y);r("__exportStar",b);r("__createBinding",O);r("__values",C);r("__read",v);r("__spread",B);r("__spreadArrays",w);r("__spreadArray",I);r("__await",S);r("__asyncGenerator",Q);r("__asyncDelegator",x);r("__asyncValues",N);r("__makeTemplateObject",R);r("__importStar",T);r("__importDefault",D);r("__classPrivateFieldGet",_);r("__classPrivateFieldSet",k);r("__classPrivateFieldIn",P);r("__addDisposableResource",L);r("__disposeResources",M)}))},94225:(r,i,s)=>{r.exports=s(64030)},64030:(r,i,s)=>{"use strict";var a=s(41808);var l=s(24404);var c=s(13685);var p=s(95687);var d=s(82361);var u=s(39491);var A=s(73837);i.httpOverHttp=httpOverHttp;i.httpsOverHttp=httpsOverHttp;i.httpOverHttps=httpOverHttps;i.httpsOverHttps=httpsOverHttps;function httpOverHttp(r){var i=new TunnelingAgent(r);i.request=c.request;return i}function httpsOverHttp(r){var i=new TunnelingAgent(r);i.request=c.request;i.createSocket=createSecureSocket;i.defaultPort=443;return i}function httpOverHttps(r){var i=new TunnelingAgent(r);i.request=p.request;return i}function httpsOverHttps(r){var i=new TunnelingAgent(r);i.request=p.request;i.createSocket=createSecureSocket;i.defaultPort=443;return i}function TunnelingAgent(r){var i=this;i.options=r||{};i.proxyOptions=i.options.proxy||{};i.maxSockets=i.options.maxSockets||c.Agent.defaultMaxSockets;i.requests=[];i.sockets=[];i.on("free",(function onFree(r,s,a,l){var c=toOptions(s,a,l);for(var p=0,d=i.requests.length;p=this.maxSockets){l.requests.push(c);return}l.createSocket(c,(function(i){i.on("free",onFree);i.on("close",onCloseOrRemove);i.on("agentRemove",onCloseOrRemove);r.onSocket(i);function onFree(){l.emit("free",i,c)}function onCloseOrRemove(r){l.removeSocket(i);i.removeListener("free",onFree);i.removeListener("close",onCloseOrRemove);i.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(r,i){var s=this;var a={};s.sockets.push(a);var l=mergeOptions({},s.proxyOptions,{method:"CONNECT",path:r.host+":"+r.port,agent:false,headers:{host:r.host+":"+r.port}});if(r.localAddress){l.localAddress=r.localAddress}if(l.proxyAuth){l.headers=l.headers||{};l.headers["Proxy-Authorization"]="Basic "+new Buffer(l.proxyAuth).toString("base64")}h("making CONNECT request");var c=s.request(l);c.useChunkedEncodingByDefault=false;c.once("response",onResponse);c.once("upgrade",onUpgrade);c.once("connect",onConnect);c.once("error",onError);c.end();function onResponse(r){r.upgrade=true}function onUpgrade(r,i,s){process.nextTick((function(){onConnect(r,i,s)}))}function onConnect(l,p,d){c.removeAllListeners();p.removeAllListeners();if(l.statusCode!==200){h("tunneling socket could not be established, statusCode=%d",l.statusCode);p.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+l.statusCode);u.code="ECONNRESET";r.request.emit("error",u);s.removeSocket(a);return}if(d.length>0){h("got illegal response body from proxy");p.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";r.request.emit("error",u);s.removeSocket(a);return}h("tunneling connection has established");s.sockets[s.sockets.indexOf(a)]=p;return i(p)}function onError(i){c.removeAllListeners();h("tunneling socket could not be established, cause=%s\n",i.message,i.stack);var l=new Error("tunneling socket could not be established, "+"cause="+i.message);l.code="ECONNRESET";r.request.emit("error",l);s.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(r){var i=this.sockets.indexOf(r);if(i===-1){return}this.sockets.splice(i,1);var s=this.requests.shift();if(s){this.createSocket(s,(function(r){s.request.onSocket(r)}))}};function createSecureSocket(r,i){var s=this;TunnelingAgent.prototype.createSocket.call(s,r,(function(a){var c=r.request.getHeader("host");var p=mergeOptions({},s.options,{socket:a,servername:c?c.replace(/:.*$/,""):r.host});var d=l.connect(0,p);s.sockets[s.sockets.indexOf(a)]=d;i(d)}))}function toOptions(r,i,s){if(typeof r==="string"){return{host:r,port:i,localAddress:s}}return r}function mergeOptions(r){for(var i=1,s=arguments.length;i{"use strict";Object.defineProperty(i,"__esModule",{value:true})},43330:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isValidErrorCode=i.httpStatusFromErrorCode=i.TwirpErrorCode=i.BadRouteError=i.InternalServerErrorWith=i.InternalServerError=i.RequiredArgumentError=i.InvalidArgumentError=i.NotFoundError=i.TwirpError=void 0;class TwirpError extends Error{constructor(r,i){super(i);this.code=s.Internal;this.meta={};this.code=r;this.msg=i;Object.setPrototypeOf(this,TwirpError.prototype)}withMeta(r,i){this.meta[r]=i;return this}getMeta(r){return this.meta[r]||""}withCause(r,i=false){this._originalCause=r;if(i){this.withMeta("cause",r.message)}return this}cause(){return this._originalCause}toJSON(){try{return JSON.stringify({code:this.code,msg:this.msg,meta:this.meta})}catch(r){return`{"code": "internal", "msg": "There was an error but it could not be serialized into JSON"}`}}static fromObject(r){const i=r["code"]||s.Unknown;const a=r["msg"]||"unknown";const l=new TwirpError(i,a);if(r["meta"]){Object.keys(r["meta"]).forEach((i=>{l.withMeta(i,r["meta"][i])}))}return l}}i.TwirpError=TwirpError;class NotFoundError extends TwirpError{constructor(r){super(s.NotFound,r)}}i.NotFoundError=NotFoundError;class InvalidArgumentError extends TwirpError{constructor(r,i){super(s.InvalidArgument,r+" "+i);this.withMeta("argument",r)}}i.InvalidArgumentError=InvalidArgumentError;class RequiredArgumentError extends InvalidArgumentError{constructor(r){super(r,"is required")}}i.RequiredArgumentError=RequiredArgumentError;class InternalServerError extends TwirpError{constructor(r){super(s.Internal,r)}}i.InternalServerError=InternalServerError;class InternalServerErrorWith extends InternalServerError{constructor(r){super(r.message);this.withMeta("cause",r.name);this.withCause(r)}}i.InternalServerErrorWith=InternalServerErrorWith;class BadRouteError extends TwirpError{constructor(r,i,a){super(s.BadRoute,r);this.withMeta("twirp_invalid_route",i+" "+a)}}i.BadRouteError=BadRouteError;var s;(function(r){r["Canceled"]="canceled";r["Unknown"]="unknown";r["InvalidArgument"]="invalid_argument";r["Malformed"]="malformed";r["DeadlineExceeded"]="deadline_exceeded";r["NotFound"]="not_found";r["BadRoute"]="bad_route";r["AlreadyExists"]="already_exists";r["PermissionDenied"]="permission_denied";r["Unauthenticated"]="unauthenticated";r["ResourceExhausted"]="resource_exhausted";r["FailedPrecondition"]="failed_precondition";r["Aborted"]="aborted";r["OutOfRange"]="out_of_range";r["Unimplemented"]="unimplemented";r["Internal"]="internal";r["Unavailable"]="unavailable";r["DataLoss"]="data_loss"})(s=i.TwirpErrorCode||(i.TwirpErrorCode={}));function httpStatusFromErrorCode(r){switch(r){case s.Canceled:return 408;case s.Unknown:return 500;case s.InvalidArgument:return 400;case s.Malformed:return 400;case s.DeadlineExceeded:return 408;case s.NotFound:return 404;case s.BadRoute:return 404;case s.AlreadyExists:return 409;case s.PermissionDenied:return 403;case s.Unauthenticated:return 401;case s.ResourceExhausted:return 429;case s.FailedPrecondition:return 412;case s.Aborted:return 409;case s.OutOfRange:return 400;case s.Unimplemented:return 501;case s.Internal:return 500;case s.Unavailable:return 503;case s.DataLoss:return 500;default:return 0}}i.httpStatusFromErrorCode=httpStatusFromErrorCode;function isValidErrorCode(r){return httpStatusFromErrorCode(r)!=0}i.isValidErrorCode=isValidErrorCode},81345: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.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())}))};var d=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{this.rewrite(i,s,r).then((()=>a())).catch((r=>{if(r instanceof g.TwirpError){if(r.code!==g.TwirpErrorCode.NotFound){b.writeError(s,r)}else{a()}}}))}}rewrite(r,i,s="/twirp"){return p(this,void 0,void 0,(function*(){const[a,l]=this.matchRoute(r);const c=yield this.prepareTwirpBody(r,a,l);const p=`${s}/${l.packageName}.${l.serviceName}/${l.methodName}`;r.url=p;r.originalUrl=p;r.method="POST";r.headers["content-type"]="application/json";r.rawBody=Buffer.from(JSON.stringify(c));if(l.responseBodyKey){const r=i.end.bind(i);i.end=function(s){if(i.statusCode===200){r(`{ "${l.responseBodyKey}": ${s} }`)}else{r(s)}}}}))}reverseProxy(r){const i=y.NodeHttpRPC(r);return(r,s)=>p(this,void 0,void 0,(function*(){try{const[a,l]=this.matchRoute(r);const c=yield this.prepareTwirpBody(r,a,l);const p=yield i.request(`${l.packageName}.${l.serviceName}`,l.methodName,"application/json",c);s.statusCode=200;s.setHeader("content-type","application/json");let d;if(l.responseBodyKey){d=JSON.stringify({[l.responseBodyKey]:p})}else{d=JSON.stringify(p)}s.end(d)}catch(r){b.writeError(s,r)}}))}prepareTwirpBody(r,i,s){return p(this,void 0,void 0,(function*(){const a=i.params,{query_string:l}=a,c=d(a,["query_string"]);let p=Object.assign({},c);if(l&&s.bodyKey!=="*"){const r=this.parseQueryString(l);p=Object.assign(Object.assign({},r),p)}let u={};if(s.bodyKey){const i=yield h.getRequestData(r);try{const r=JSON.parse(i.toString()||"{}");if(s.bodyKey==="*"){u=r}else{u[s.bodyKey]=r}}catch(r){const i="the json request could not be decoded";throw new g.TwirpError(g.TwirpErrorCode.Malformed,i).withCause(r,true)}}return Object.assign(Object.assign({},u),p)}))}matchRoute(r){var i;const s=(i=r.method)===null||i===void 0?void 0:i.toLowerCase();if(!s){throw new g.BadRouteError(`method not allowed`,r.method||"",r.url||"")}const a=this.routes[s];for(const i of a){const s=i.matcher(r.url||"/");if(s){return[s,i]}}throw new g.NotFoundError(`url ${r.url} not found`)}parseQueryString(r){const i=u.parse(r.replace("?",""));return A.object(i)}}i.Gateway=Gateway},72965: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.isHook=i.chainHooks=void 0;function chainHooks(...r){if(r.length===0){return null}if(r.length===1){return r[0]}const i={requestReceived(i){return s(this,void 0,void 0,(function*(){for(const s of r){if(!s.requestReceived){continue}yield s.requestReceived(i)}}))},requestPrepared(i){return s(this,void 0,void 0,(function*(){for(const s of r){if(!s.requestPrepared){continue}console.warn("hook requestPrepared is deprecated and will be removed in the next release. "+"Please use responsePrepared instead.");yield s.requestPrepared(i)}}))},responsePrepared(i){return s(this,void 0,void 0,(function*(){for(const s of r){if(!s.responsePrepared){continue}yield s.responsePrepared(i)}}))},requestSent(i){return s(this,void 0,void 0,(function*(){for(const s of r){if(!s.requestSent){continue}console.warn("hook requestSent is deprecated and will be removed in the next release. "+"Please use responseSent instead.");yield s.requestSent(i)}}))},responseSent(i){return s(this,void 0,void 0,(function*(){for(const s of r){if(!s.responseSent){continue}yield s.responseSent(i)}}))},requestRouted(i){return s(this,void 0,void 0,(function*(){for(const s of r){if(!s.requestRouted){continue}yield s.requestRouted(i)}}))},error(i,a){return s(this,void 0,void 0,(function*(){for(const s of r){if(!s.error){continue}yield s.error(i,a)}}))}};return i}i.chainHooks=chainHooks;function isHook(r){return"requestReceived"in r||"requestPrepared"in r||"requestSent"in r||"requestRouted"in r||"responsePrepared"in r||"responseSent"in r||"error"in r}i.isHook=isHook},35412: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.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.FetchRPC=i.wrapErrorResponseToTwirpError=i.NodeHttpRPC=void 0;const d=c(s(13685));const u=c(s(95687));const A=s(57310);const h=s(43330);const NodeHttpRPC=r=>({request(i,s,a,l){let c;return new Promise(((p,h)=>{const g=[];const y=a==="application/protobuf"?Buffer.from(l):JSON.stringify(l);const b=new A.URL(r.baseUrl);const C=b.protocol==="https:";if(C){c=u}else{c=d}const v=b.pathname!=="/"?b.pathname:"";const B=c.request(Object.assign(Object.assign({},r?r:{}),{method:"POST",protocol:b.protocol,host:b.hostname,port:b.port?b.port:C?443:80,path:`${v}/${i}/${s}`,headers:Object.assign(Object.assign({},r.headers?r.headers:{}),{"Content-Type":a,"Content-Length":a==="application/protobuf"?Buffer.byteLength(y):Buffer.from(y).byteLength})}),(r=>{r.on("data",(r=>g.push(r)));r.on("end",(()=>{const i=Buffer.concat(g);if(r.statusCode!=200){h(wrapErrorResponseToTwirpError(i.toString()))}else{if(a==="application/json"){p(JSON.parse(i.toString()))}else{p(i)}}}));r.on("error",(r=>{h(r)}))})).on("error",(r=>{h(r)}));B.end(y)}))}});i.NodeHttpRPC=NodeHttpRPC;function wrapErrorResponseToTwirpError(r){return h.TwirpError.fromObject(JSON.parse(r))}i.wrapErrorResponseToTwirpError=wrapErrorResponseToTwirpError;const FetchRPC=r=>({request(i,s,a,l){return p(this,void 0,void 0,(function*(){const c=new Headers(r.headers);c.set("content-type",a);const p=yield fetch(`${r.baseUrl}/${i}/${s}`,Object.assign(Object.assign({},r),{method:"POST",headers:c,body:l instanceof Uint8Array?l:JSON.stringify(l)}));if(p.status===200){if(a==="application/json"){return yield p.json()}return new Uint8Array(yield p.arrayBuffer())}throw h.TwirpError.fromObject(yield p.json())}))}});i.FetchRPC=FetchRPC},10194: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});i.TwirpContentType=void 0;l(s(7308),i);l(s(8862),i);l(s(40346),i);l(s(72965),i);l(s(43330),i);l(s(81345),i);l(s(35412),i);var c=s(85905);Object.defineProperty(i,"TwirpContentType",{enumerable:true,get:function(){return c.TwirpContentType}})},40346: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.chainInterceptors=void 0;function chainInterceptors(...r){if(r.length===0){return}if(r.length===1){return r[0]}const i=r[0];return(a,l,c)=>s(this,void 0,void 0,(function*(){let s=c;for(let i=r.length-1;i>0;i--){s=(s=>(a,l)=>r[i](a,l,s))(s)}return i(a,l,s)}))}i.chainInterceptors=chainInterceptors},85905: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.parseTwirpPath=i.getRequestData=i.validateRequest=i.getContentType=i.TwirpContentType=void 0;const l=s(43330);var c;(function(r){r[r["Protobuf"]=0]="Protobuf";r[r["JSON"]=1]="JSON";r[r["Unknown"]=2]="Unknown"})(c=i.TwirpContentType||(i.TwirpContentType={}));function getContentType(r){switch(r){case"application/protobuf":return c.Protobuf;case"application/json":return c.JSON;default:return c.Unknown}}i.getContentType=getContentType;function validateRequest(r,i,s){if(i.method!=="POST"){const r=`unsupported method ${i.method} (only POST is allowed)`;throw new l.BadRouteError(r,i.method||"",i.url||"")}const a=parseTwirpPath(i.url||"");if(a.pkgService!==(r.packageName?r.packageName+".":"")+r.serviceName){const r=`no handler for path ${i.url}`;throw new l.BadRouteError(r,i.method||"",i.url||"")}if(a.prefix!==s){const r=`invalid path prefix ${a.prefix}, expected ${s}, on path ${i.url}`;throw new l.BadRouteError(r,i.method||"",i.url||"")}const p=i.headers["content-type"]||"";if(r.contentType===c.Unknown){const r=`unexpected Content-Type: ${i.headers["content-type"]}`;throw new l.BadRouteError(r,i.method||"",i.url||"")}return Object.assign(Object.assign({},a),{mimeContentType:p,contentType:r.contentType})}i.validateRequest=validateRequest;function getRequestData(r){return new Promise(((i,s)=>{const c=r;if(c.rawBody instanceof Buffer){i(c.rawBody);return}const p=[];r.on("data",(r=>p.push(r)));r.on("end",(()=>a(this,void 0,void 0,(function*(){const r=Buffer.concat(p);i(r)}))));r.on("error",(i=>{if(r.aborted){s(new l.TwirpError(l.TwirpErrorCode.DeadlineExceeded,"failed to read request: deadline exceeded"))}else{s(new l.TwirpError(l.TwirpErrorCode.Malformed,i.message).withCause(i))}}));r.on("close",(()=>{s(new l.TwirpError(l.TwirpErrorCode.Canceled,"failed to read request: context canceled"))}))}))}i.getRequestData=getRequestData;function parseTwirpPath(r){const i=r.split("/");if(i.length<2){return{pkgService:"",method:"",prefix:""}}return{method:i[i.length-1],pkgService:i[i.length-2],prefix:i.slice(0,i.length-2).join("/")}}i.parseTwirpPath=parseTwirpPath},8862: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.writeError=i.TwirpServer=void 0;const l=s(72965);const c=s(85905);const p=s(43330);class TwirpServer{constructor(r){this.pathPrefix="/twirp";this.hooks=[];this.interceptors=[];this.packageName=r.packageName;this.serviceName=r.serviceName;this.methodList=r.methodList;this.matchRoute=r.matchRoute;this.service=r.service}get prefix(){return this.pathPrefix}httpHandler(r){return(i,s)=>{if((r===null||r===void 0?void 0:r.prefix)!==undefined){this.withPrefix(r.prefix)}return this._httpHandler(i,s)}}use(...r){r.forEach((r=>{if(l.isHook(r)){this.hooks.push(r);return this}this.interceptors.push(r)}));return this}withPrefix(r){if(r===false){this.pathPrefix=""}else{this.pathPrefix=r}return this}matchingPath(){const r=this.baseURI().replace(/\./g,"\\.");return new RegExp(`${r}/(${this.methodList.join("|")})`)}baseURI(){return`${this.pathPrefix}/${this.packageName?this.packageName+".":""}${this.serviceName}`}createContext(r,i){return{packageName:this.packageName,serviceName:this.serviceName,methodName:"",contentType:c.getContentType(r.headers["content-type"]),req:r,res:i}}_httpHandler(r,i){return a(this,void 0,void 0,(function*(){const s=this.createContext(r,i);try{yield this.invokeHook("requestReceived",s);const{method:a,mimeContentType:l}=c.validateRequest(s,r,this.pathPrefix||"");const d=this.matchRoute(a,{onMatch:r=>this.invokeHook("requestRouted",r),onNotFound:()=>{const i=`no handler for path ${r.url}`;throw new p.BadRouteError(i,r.method||"",r.url||"")}});const u=yield c.getRequestData(r);const A=yield d(s,this.service,u,this.interceptors);yield Promise.all([this.invokeHook("responsePrepared",s),this.invokeHook("requestPrepared",s)]);i.statusCode=200;i.setHeader("Content-Type",l);i.end(A)}catch(r){yield this.invokeHook("error",s,mustBeTwirpError(r));if(!i.headersSent){writeError(i,r)}}finally{yield Promise.all([this.invokeHook("responseSent",s),this.invokeHook("requestSent",s)])}}))}invokeHook(r,i,s){return a(this,void 0,void 0,(function*(){if(this.hooks.length===0){return}const a=l.chainHooks(...this.hooks);const c=a===null||a===void 0?void 0:a[r];if(c){yield c(i,s||new p.InternalServerError("internal server error"))}}))}}i.TwirpServer=TwirpServer;function writeError(r,i){const s=mustBeTwirpError(i);r.setHeader("Content-Type","application/json");r.statusCode=p.httpStatusFromErrorCode(s.code);r.end(s.toJSON())}i.writeError=writeError;function mustBeTwirpError(r){if(r instanceof p.TwirpError){return r}return new p.InternalServerErrorWith(r)}},37181:(r,i,s)=>{"use strict";const a=s(48352);const l=s(93954);const c=s(83501);const p=s(29859);const d=s(71579);const u=s(38551);const A=s(9647);const{InvalidArgumentError:h}=c;const g=s(17750);const y=s(56840);const b=s(89103);const C=s(21045);const v=s(71153);const B=s(5458);const w=s(77929);const I=s(16734);const{getGlobalDispatcher:S,setGlobalDispatcher:Q}=s(35683);const x=s(73563);const N=s(36086);const R=s(23163);let T;try{s(6113);T=true}catch{T=false}Object.assign(l.prototype,g);r.exports.Dispatcher=l;r.exports.Client=a;r.exports.Pool=p;r.exports.BalancedPool=d;r.exports.Agent=u;r.exports.ProxyAgent=w;r.exports.RetryHandler=I;r.exports.DecoratorHandler=x;r.exports.RedirectHandler=N;r.exports.createRedirectInterceptor=R;r.exports.buildConnector=y;r.exports.errors=c;function makeDispatcher(r){return(i,s,a)=>{if(typeof s==="function"){a=s;s=null}if(!i||typeof i!=="string"&&typeof i!=="object"&&!(i instanceof URL)){throw new h("invalid url")}if(s!=null&&typeof s!=="object"){throw new h("invalid opts")}if(s&&s.path!=null){if(typeof s.path!=="string"){throw new h("invalid opts.path")}let r=s.path;if(!s.path.startsWith("/")){r=`/${r}`}i=new URL(A.parseOrigin(i).origin+r)}else{if(!s){s=typeof i==="object"?i:{}}i=A.parseURL(i)}const{agent:l,dispatcher:c=S()}=s;if(l){throw new h("unsupported opts.agent. Did you mean opts.client?")}return r.call(c,{...s,origin:i.origin,path:i.search?`${i.pathname}${i.search}`:i.pathname,method:s.method||(s.body?"PUT":"GET")},a)}}r.exports.setGlobalDispatcher=Q;r.exports.getGlobalDispatcher=S;if(A.nodeMajor>16||A.nodeMajor===16&&A.nodeMinor>=8){let i=null;r.exports.fetch=async function fetch(r){if(!i){i=s(63254).fetch}try{return await i(...arguments)}catch(r){if(typeof r==="object"){Error.captureStackTrace(r,this)}throw r}};r.exports.Headers=s(26909).Headers;r.exports.Response=s(36913).Response;r.exports.Request=s(9787).Request;r.exports.FormData=s(48076).FormData;r.exports.File=s(71575).File;r.exports.FileReader=s(46528).FileReader;const{setGlobalOrigin:a,getGlobalOrigin:l}=s(128);r.exports.setGlobalOrigin=a;r.exports.getGlobalOrigin=l;const{CacheStorage:c}=s(83187);const{kConstruct:p}=s(32994);r.exports.caches=new c(p)}if(A.nodeMajor>=16){const{deleteCookie:i,getCookies:a,getSetCookies:l,setCookie:c}=s(9351);r.exports.deleteCookie=i;r.exports.getCookies=a;r.exports.getSetCookies=l;r.exports.setCookie=c;const{parseMIMEType:p,serializeAMimeType:d}=s(6932);r.exports.parseMIMEType=p;r.exports.serializeAMimeType=d}if(A.nodeMajor>=18&&T){const{WebSocket:i}=s(10553);r.exports.WebSocket=i}r.exports.request=makeDispatcher(g.request);r.exports.stream=makeDispatcher(g.stream);r.exports.pipeline=makeDispatcher(g.pipeline);r.exports.connect=makeDispatcher(g.connect);r.exports.upgrade=makeDispatcher(g.upgrade);r.exports.MockClient=b;r.exports.MockPool=v;r.exports.MockAgent=C;r.exports.mockErrors=B},38551:(r,i,s)=>{"use strict";const{InvalidArgumentError:a}=s(83501);const{kClients:l,kRunning:c,kClose:p,kDestroy:d,kDispatch:u,kInterceptors:A}=s(97621);const h=s(56775);const g=s(29859);const y=s(48352);const b=s(9647);const C=s(23163);const{WeakRef:v,FinalizationRegistry:B}=s(79374)();const w=Symbol("onConnect");const I=Symbol("onDisconnect");const S=Symbol("onConnectionError");const Q=Symbol("maxRedirections");const x=Symbol("onDrain");const N=Symbol("factory");const R=Symbol("finalizer");const T=Symbol("options");function defaultFactory(r,i){return i&&i.connections===1?new y(r,i):new g(r,i)}class Agent extends h{constructor({factory:r=defaultFactory,maxRedirections:i=0,connect:s,...c}={}){super();if(typeof r!=="function"){throw new a("factory must be a function.")}if(s!=null&&typeof s!=="function"&&typeof s!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(i)||i<0){throw new a("maxRedirections must be a positive number")}if(s&&typeof s!=="function"){s={...s}}this[A]=c.interceptors&&c.interceptors.Agent&&Array.isArray(c.interceptors.Agent)?c.interceptors.Agent:[C({maxRedirections:i})];this[T]={...b.deepClone(c),connect:s};this[T].interceptors=c.interceptors?{...c.interceptors}:undefined;this[Q]=i;this[N]=r;this[l]=new Map;this[R]=new B((r=>{const i=this[l].get(r);if(i!==undefined&&i.deref()===undefined){this[l].delete(r)}}));const p=this;this[x]=(r,i)=>{p.emit("drain",r,[p,...i])};this[w]=(r,i)=>{p.emit("connect",r,[p,...i])};this[I]=(r,i,s)=>{p.emit("disconnect",r,[p,...i],s)};this[S]=(r,i,s)=>{p.emit("connectionError",r,[p,...i],s)}}get[c](){let r=0;for(const i of this[l].values()){const s=i.deref();if(s){r+=s[c]}}return r}[u](r,i){let s;if(r.origin&&(typeof r.origin==="string"||r.origin instanceof URL)){s=String(r.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}const c=this[l].get(s);let p=c?c.deref():null;if(!p){p=this[N](r.origin,this[T]).on("drain",this[x]).on("connect",this[w]).on("disconnect",this[I]).on("connectionError",this[S]);this[l].set(s,new v(p));this[R].register(p,s)}return p.dispatch(r,i)}async[p](){const r=[];for(const i of this[l].values()){const s=i.deref();if(s){r.push(s.close())}}await Promise.all(r)}async[d](r){const i=[];for(const s of this[l].values()){const a=s.deref();if(a){i.push(a.destroy(r))}}await Promise.all(i)}}r.exports=Agent},34125:(r,i,s)=>{const{addAbortListener:a}=s(9647);const{RequestAbortedError:l}=s(83501);const c=Symbol("kListener");const p=Symbol("kSignal");function abort(r){if(r.abort){r.abort()}else{r.onError(new l)}}function addSignal(r,i){r[p]=null;r[c]=null;if(!i){return}if(i.aborted){abort(r);return}r[p]=i;r[c]=()=>{abort(r)};a(r[p],r[c])}function removeSignal(r){if(!r[p]){return}if("removeEventListener"in r[p]){r[p].removeEventListener("abort",r[c])}else{r[p].removeListener("abort",r[c])}r[p]=null;r[c]=null}r.exports={addSignal:addSignal,removeSignal:removeSignal}},22745:(r,i,s)=>{"use strict";const{AsyncResource:a}=s(50852);const{InvalidArgumentError:l,RequestAbortedError:c,SocketError:p}=s(83501);const d=s(9647);const{addSignal:u,removeSignal:A}=s(34125);class ConnectHandler extends a{constructor(r,i){if(!r||typeof r!=="object"){throw new l("invalid opts")}if(typeof i!=="function"){throw new l("invalid callback")}const{signal:s,opaque:a,responseHeaders:c}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=c||null;this.callback=i;this.abort=null;u(this,s)}onConnect(r,i){if(!this.callback){throw new c}this.abort=r;this.context=i}onHeaders(){throw new p("bad connect",null)}onUpgrade(r,i,s){const{callback:a,opaque:l,context:c}=this;A(this);this.callback=null;let p=i;if(p!=null){p=this.responseHeaders==="raw"?d.parseRawHeaders(i):d.parseHeaders(i)}this.runInAsyncScope(a,null,null,{statusCode:r,headers:p,socket:s,opaque:l,context:c})}onError(r){const{callback:i,opaque:s}=this;A(this);if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:s})}))}}}function connect(r,i){if(i===undefined){return new Promise(((i,s)=>{connect.call(this,r,((r,a)=>r?s(r):i(a)))}))}try{const s=new ConnectHandler(r,i);this.dispatch({...r,method:"CONNECT"},s)}catch(s){if(typeof i!=="function"){throw s}const a=r&&r.opaque;queueMicrotask((()=>i(s,{opaque:a})))}}r.exports=connect},21747:(r,i,s)=>{"use strict";const{Readable:a,Duplex:l,PassThrough:c}=s(12781);const{InvalidArgumentError:p,InvalidReturnValueError:d,RequestAbortedError:u}=s(83501);const A=s(9647);const{AsyncResource:h}=s(50852);const{addSignal:g,removeSignal:y}=s(34125);const b=s(39491);const C=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[C]=null}_read(){const{[C]:r}=this;if(r){this[C]=null;r()}}_destroy(r,i){this._read();i(r)}}class PipelineResponse extends a{constructor(r){super({autoDestroy:true});this[C]=r}_read(){this[C]()}_destroy(r,i){if(!r&&!this._readableState.endEmitted){r=new u}i(r)}}class PipelineHandler extends h{constructor(r,i){if(!r||typeof r!=="object"){throw new p("invalid opts")}if(typeof i!=="function"){throw new p("invalid handler")}const{signal:s,method:a,opaque:c,onInfo:d,responseHeaders:h}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new p("invalid method")}if(d&&typeof d!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=c||null;this.responseHeaders=h||null;this.handler=i;this.abort=null;this.context=null;this.onInfo=d||null;this.req=(new PipelineRequest).on("error",A.nop);this.ret=new l({readableObjectMode:r.objectMode,autoDestroy:true,read:()=>{const{body:r}=this;if(r&&r.resume){r.resume()}},write:(r,i,s)=>{const{req:a}=this;if(a.push(r,i)||a._readableState.destroyed){s()}else{a[C]=s}},destroy:(r,i)=>{const{body:s,req:a,res:l,ret:c,abort:p}=this;if(!r&&!c._readableState.endEmitted){r=new u}if(p&&r){p()}A.destroy(s,r);A.destroy(a,r);A.destroy(l,r);y(this);i(r)}}).on("prefinish",(()=>{const{req:r}=this;r.push(null)}));this.res=null;g(this,s)}onConnect(r,i){const{ret:s,res:a}=this;b(!a,"pipeline cannot be retried");if(s.destroyed){throw new u}this.abort=r;this.context=i}onHeaders(r,i,s){const{opaque:a,handler:l,context:c}=this;if(r<200){if(this.onInfo){const s=this.responseHeaders==="raw"?A.parseRawHeaders(i):A.parseHeaders(i);this.onInfo({statusCode:r,headers:s})}return}this.res=new PipelineResponse(s);let p;try{this.handler=null;const s=this.responseHeaders==="raw"?A.parseRawHeaders(i):A.parseHeaders(i);p=this.runInAsyncScope(l,null,{statusCode:r,headers:s,opaque:a,body:this.res,context:c})}catch(r){this.res.on("error",A.nop);throw r}if(!p||typeof p.on!=="function"){throw new d("expected Readable")}p.on("data",(r=>{const{ret:i,body:s}=this;if(!i.push(r)&&s.pause){s.pause()}})).on("error",(r=>{const{ret:i}=this;A.destroy(i,r)})).on("end",(()=>{const{ret:r}=this;r.push(null)})).on("close",(()=>{const{ret:r}=this;if(!r._readableState.ended){A.destroy(r,new u)}}));this.body=p}onData(r){const{res:i}=this;return i.push(r)}onComplete(r){const{res:i}=this;i.push(null)}onError(r){const{ret:i}=this;this.handler=null;A.destroy(i,r)}}function pipeline(r,i){try{const s=new PipelineHandler(r,i);this.dispatch({...r,body:s.req},s);return s.ret}catch(r){return(new c).destroy(r)}}r.exports=pipeline},70414:(r,i,s)=>{"use strict";const a=s(97040);const{InvalidArgumentError:l,RequestAbortedError:c}=s(83501);const p=s(9647);const{getResolveErrorBodyCallback:d}=s(57323);const{AsyncResource:u}=s(50852);const{addSignal:A,removeSignal:h}=s(34125);class RequestHandler extends u{constructor(r,i){if(!r||typeof r!=="object"){throw new l("invalid opts")}const{signal:s,method:a,opaque:c,body:d,onInfo:u,responseHeaders:h,throwOnError:g,highWaterMark:y}=r;try{if(typeof i!=="function"){throw new l("invalid callback")}if(y&&(typeof y!=="number"||y<0)){throw new l("invalid highWaterMark")}if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new l("invalid method")}if(u&&typeof u!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(r){if(p.isStream(d)){p.destroy(d.on("error",p.nop),r)}throw r}this.responseHeaders=h||null;this.opaque=c||null;this.callback=i;this.res=null;this.abort=null;this.body=d;this.trailers={};this.context=null;this.onInfo=u||null;this.throwOnError=g;this.highWaterMark=y;if(p.isStream(d)){d.on("error",(r=>{this.onError(r)}))}A(this,s)}onConnect(r,i){if(!this.callback){throw new c}this.abort=r;this.context=i}onHeaders(r,i,s,l){const{callback:c,opaque:u,abort:A,context:h,responseHeaders:g,highWaterMark:y}=this;const b=g==="raw"?p.parseRawHeaders(i):p.parseHeaders(i);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:b})}return}const C=g==="raw"?p.parseHeaders(i):b;const v=C["content-type"];const B=new a({resume:s,abort:A,contentType:v,highWaterMark:y});this.callback=null;this.res=B;if(c!==null){if(this.throwOnError&&r>=400){this.runInAsyncScope(d,null,{callback:c,body:B,contentType:v,statusCode:r,statusMessage:l,headers:b})}else{this.runInAsyncScope(c,null,null,{statusCode:r,headers:b,trailers:this.trailers,opaque:u,body:B,context:h})}}}onData(r){const{res:i}=this;return i.push(r)}onComplete(r){const{res:i}=this;h(this);p.parseHeaders(r,this.trailers);i.push(null)}onError(r){const{res:i,callback:s,body:a,opaque:l}=this;h(this);if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:l})}))}if(i){this.res=null;queueMicrotask((()=>{p.destroy(i,r)}))}if(a){this.body=null;p.destroy(a,r)}}}function request(r,i){if(i===undefined){return new Promise(((i,s)=>{request.call(this,r,((r,a)=>r?s(r):i(a)))}))}try{this.dispatch(r,new RequestHandler(r,i))}catch(s){if(typeof i!=="function"){throw s}const a=r&&r.opaque;queueMicrotask((()=>i(s,{opaque:a})))}}r.exports=request;r.exports.RequestHandler=RequestHandler},77835:(r,i,s)=>{"use strict";const{finished:a,PassThrough:l}=s(12781);const{InvalidArgumentError:c,InvalidReturnValueError:p,RequestAbortedError:d}=s(83501);const u=s(9647);const{getResolveErrorBodyCallback:A}=s(57323);const{AsyncResource:h}=s(50852);const{addSignal:g,removeSignal:y}=s(34125);class StreamHandler extends h{constructor(r,i,s){if(!r||typeof r!=="object"){throw new c("invalid opts")}const{signal:a,method:l,opaque:p,body:d,onInfo:A,responseHeaders:h,throwOnError:y}=r;try{if(typeof s!=="function"){throw new c("invalid callback")}if(typeof i!=="function"){throw new c("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(l==="CONNECT"){throw new c("invalid method")}if(A&&typeof A!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_STREAM")}catch(r){if(u.isStream(d)){u.destroy(d.on("error",u.nop),r)}throw r}this.responseHeaders=h||null;this.opaque=p||null;this.factory=i;this.callback=s;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=d;this.onInfo=A||null;this.throwOnError=y||false;if(u.isStream(d)){d.on("error",(r=>{this.onError(r)}))}g(this,a)}onConnect(r,i){if(!this.callback){throw new d}this.abort=r;this.context=i}onHeaders(r,i,s,c){const{factory:d,opaque:h,context:g,callback:y,responseHeaders:b}=this;const C=b==="raw"?u.parseRawHeaders(i):u.parseHeaders(i);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:C})}return}this.factory=null;let v;if(this.throwOnError&&r>=400){const s=b==="raw"?u.parseHeaders(i):C;const a=s["content-type"];v=new l;this.callback=null;this.runInAsyncScope(A,null,{callback:y,body:v,contentType:a,statusCode:r,statusMessage:c,headers:C})}else{if(d===null){return}v=this.runInAsyncScope(d,null,{statusCode:r,headers:C,opaque:h,context:g});if(!v||typeof v.write!=="function"||typeof v.end!=="function"||typeof v.on!=="function"){throw new p("expected Writable")}a(v,{readable:false},(r=>{const{callback:i,res:s,opaque:a,trailers:l,abort:c}=this;this.res=null;if(r||!s.readable){u.destroy(s,r)}this.callback=null;this.runInAsyncScope(i,null,r||null,{opaque:a,trailers:l});if(r){c()}}))}v.on("drain",s);this.res=v;const B=v.writableNeedDrain!==undefined?v.writableNeedDrain:v._writableState&&v._writableState.needDrain;return B!==true}onData(r){const{res:i}=this;return i?i.write(r):true}onComplete(r){const{res:i}=this;y(this);if(!i){return}this.trailers=u.parseHeaders(r);i.end()}onError(r){const{res:i,callback:s,opaque:a,body:l}=this;y(this);this.factory=null;if(i){this.res=null;u.destroy(i,r)}else if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:a})}))}if(l){this.body=null;u.destroy(l,r)}}}function stream(r,i,s){if(s===undefined){return new Promise(((s,a)=>{stream.call(this,r,i,((r,i)=>r?a(r):s(i)))}))}try{this.dispatch(r,new StreamHandler(r,i,s))}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=stream},69706:(r,i,s)=>{"use strict";const{InvalidArgumentError:a,RequestAbortedError:l,SocketError:c}=s(83501);const{AsyncResource:p}=s(50852);const d=s(9647);const{addSignal:u,removeSignal:A}=s(34125);const h=s(39491);class UpgradeHandler extends p{constructor(r,i){if(!r||typeof r!=="object"){throw new a("invalid opts")}if(typeof i!=="function"){throw new a("invalid callback")}const{signal:s,opaque:l,responseHeaders:c}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=c||null;this.opaque=l||null;this.callback=i;this.abort=null;this.context=null;u(this,s)}onConnect(r,i){if(!this.callback){throw new l}this.abort=r;this.context=null}onHeaders(){throw new c("bad upgrade",null)}onUpgrade(r,i,s){const{callback:a,opaque:l,context:c}=this;h.strictEqual(r,101);A(this);this.callback=null;const p=this.responseHeaders==="raw"?d.parseRawHeaders(i):d.parseHeaders(i);this.runInAsyncScope(a,null,null,{headers:p,socket:s,opaque:l,context:c})}onError(r){const{callback:i,opaque:s}=this;A(this);if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:s})}))}}}function upgrade(r,i){if(i===undefined){return new Promise(((i,s)=>{upgrade.call(this,r,((r,a)=>r?s(r):i(a)))}))}try{const s=new UpgradeHandler(r,i);this.dispatch({...r,method:r.method||"GET",upgrade:r.protocol||"Websocket"},s)}catch(s){if(typeof i!=="function"){throw s}const a=r&&r.opaque;queueMicrotask((()=>i(s,{opaque:a})))}}r.exports=upgrade},17750:(r,i,s)=>{"use strict";r.exports.request=s(70414);r.exports.stream=s(77835);r.exports.pipeline=s(21747);r.exports.upgrade=s(69706);r.exports.connect=s(22745)},97040:(r,i,s)=>{"use strict";const a=s(39491);const{Readable:l}=s(12781);const{RequestAbortedError:c,NotSupportedError:p,InvalidArgumentError:d}=s(83501);const u=s(9647);const{ReadableStreamFrom:A,toUSVString:h}=s(9647);let g;const y=Symbol("kConsume");const b=Symbol("kReading");const C=Symbol("kBody");const v=Symbol("abort");const B=Symbol("kContentType");const noop=()=>{};r.exports=class BodyReadable extends l{constructor({resume:r,abort:i,contentType:s="",highWaterMark:a=64*1024}){super({autoDestroy:true,read:r,highWaterMark:a});this._readableState.dataEmitted=false;this[v]=i;this[y]=null;this[C]=null;this[B]=s;this[b]=false}destroy(r){if(this.destroyed){return this}if(!r&&!this._readableState.endEmitted){r=new c}if(r){this[v]()}return super.destroy(r)}emit(r,...i){if(r==="data"){this._readableState.dataEmitted=true}else if(r==="error"){this._readableState.errorEmitted=true}return super.emit(r,...i)}on(r,...i){if(r==="data"||r==="readable"){this[b]=true}return super.on(r,...i)}addListener(r,...i){return this.on(r,...i)}off(r,...i){const s=super.off(r,...i);if(r==="data"||r==="readable"){this[b]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return s}removeListener(r,...i){return this.off(r,...i)}push(r){if(this[y]&&r!==null&&this.readableLength===0){consumePush(this[y],r);return this[b]?super.push(r):true}return super.push(r)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new p}get bodyUsed(){return u.isDisturbed(this)}get body(){if(!this[C]){this[C]=A(this);if(this[y]){this[C].getReader();a(this[C].locked)}}return this[C]}dump(r){let i=r&&Number.isFinite(r.limit)?r.limit:262144;const s=r&&r.signal;if(s){try{if(typeof s!=="object"||!("aborted"in s)){throw new d("signal must be an AbortSignal")}u.throwIfAborted(s)}catch(r){return Promise.reject(r)}}if(this.closed){return Promise.resolve(null)}return new Promise(((r,a)=>{const l=s?u.addAbortListener(s,(()=>{this.destroy()})):noop;this.on("close",(function(){l();if(s&&s.aborted){a(s.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{r(null)}})).on("error",noop).on("data",(function(r){i-=r.length;if(i<=0){this.destroy()}})).resume()}))}};function isLocked(r){return r[C]&&r[C].locked===true||r[y]}function isUnusable(r){return u.isDisturbed(r)||isLocked(r)}async function consume(r,i){if(isUnusable(r)){throw new TypeError("unusable")}a(!r[y]);return new Promise(((s,a)=>{r[y]={type:i,stream:r,resolve:s,reject:a,length:0,body:[]};r.on("error",(function(r){consumeFinish(this[y],r)})).on("close",(function(){if(this[y].body!==null){consumeFinish(this[y],new c)}}));process.nextTick(consumeStart,r[y])}))}function consumeStart(r){if(r.body===null){return}const{_readableState:i}=r.stream;for(const s of i.buffer){consumePush(r,s)}if(i.endEmitted){consumeEnd(this[y])}else{r.stream.on("end",(function(){consumeEnd(this[y])}))}r.stream.resume();while(r.stream.read()!=null){}}function consumeEnd(r){const{type:i,body:a,resolve:l,stream:c,length:p}=r;try{if(i==="text"){l(h(Buffer.concat(a)))}else if(i==="json"){l(JSON.parse(Buffer.concat(a)))}else if(i==="arrayBuffer"){const r=new Uint8Array(p);let i=0;for(const s of a){r.set(s,i);i+=s.byteLength}l(r.buffer)}else if(i==="blob"){if(!g){g=s(14300).Blob}l(new g(a,{type:c[B]}))}consumeFinish(r)}catch(r){c.destroy(r)}}function consumePush(r,i){r.length+=i.length;r.body.push(i)}function consumeFinish(r,i){if(r.body===null){return}if(i){r.reject(i)}else{r.resolve()}r.type=null;r.stream=null;r.resolve=null;r.reject=null;r.length=0;r.body=null}},57323:(r,i,s)=>{const a=s(39491);const{ResponseStatusCodeError:l}=s(83501);const{toUSVString:c}=s(9647);async function getResolveErrorBodyCallback({callback:r,body:i,contentType:s,statusCode:p,statusMessage:d,headers:u}){a(i);let A=[];let h=0;for await(const r of i){A.push(r);h+=r.length;if(h>128*1024){A=null;break}}if(p===204||!s||!A){process.nextTick(r,new l(`Response status code ${p}${d?`: ${d}`:""}`,p,u));return}try{if(s.startsWith("application/json")){const i=JSON.parse(c(Buffer.concat(A)));process.nextTick(r,new l(`Response status code ${p}${d?`: ${d}`:""}`,p,u,i));return}if(s.startsWith("text/")){const i=c(Buffer.concat(A));process.nextTick(r,new l(`Response status code ${p}${d?`: ${d}`:""}`,p,u,i));return}}catch(r){}process.nextTick(r,new l(`Response status code ${p}${d?`: ${d}`:""}`,p,u))}r.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},71579:(r,i,s)=>{"use strict";const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:l}=s(83501);const{PoolBase:c,kClients:p,kNeedDrain:d,kAddClient:u,kRemoveClient:A,kGetDispatcher:h}=s(25411);const g=s(29859);const{kUrl:y,kInterceptors:b}=s(97621);const{parseOrigin:C}=s(9647);const v=Symbol("factory");const B=Symbol("options");const w=Symbol("kGreatestCommonDivisor");const I=Symbol("kCurrentWeight");const S=Symbol("kIndex");const Q=Symbol("kWeight");const x=Symbol("kMaxWeightPerServer");const N=Symbol("kErrorPenalty");function getGreatestCommonDivisor(r,i){if(i===0)return r;return getGreatestCommonDivisor(i,r%i)}function defaultFactory(r,i){return new g(r,i)}class BalancedPool extends c{constructor(r=[],{factory:i=defaultFactory,...s}={}){super();this[B]=s;this[S]=-1;this[I]=0;this[x]=this[B].maxWeightPerServer||100;this[N]=this[B].errorPenalty||15;if(!Array.isArray(r)){r=[r]}if(typeof i!=="function"){throw new l("factory must be a function.")}this[b]=s.interceptors&&s.interceptors.BalancedPool&&Array.isArray(s.interceptors.BalancedPool)?s.interceptors.BalancedPool:[];this[v]=i;for(const i of r){this.addUpstream(i)}this._updateBalancedPoolStats()}addUpstream(r){const i=C(r).origin;if(this[p].find((r=>r[y].origin===i&&r.closed!==true&&r.destroyed!==true))){return this}const s=this[v](i,Object.assign({},this[B]));this[u](s);s.on("connect",(()=>{s[Q]=Math.min(this[x],s[Q]+this[N])}));s.on("connectionError",(()=>{s[Q]=Math.max(1,s[Q]-this[N]);this._updateBalancedPoolStats()}));s.on("disconnect",((...r)=>{const i=r[2];if(i&&i.code==="UND_ERR_SOCKET"){s[Q]=Math.max(1,s[Q]-this[N]);this._updateBalancedPoolStats()}}));for(const r of this[p]){r[Q]=this[x]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[w]=this[p].map((r=>r[Q])).reduce(getGreatestCommonDivisor,0)}removeUpstream(r){const i=C(r).origin;const s=this[p].find((r=>r[y].origin===i&&r.closed!==true&&r.destroyed!==true));if(s){this[A](s)}return this}get upstreams(){return this[p].filter((r=>r.closed!==true&&r.destroyed!==true)).map((r=>r[y].origin))}[h](){if(this[p].length===0){throw new a}const r=this[p].find((r=>!r[d]&&r.closed!==true&&r.destroyed!==true));if(!r){return}const i=this[p].map((r=>r[d])).reduce(((r,i)=>r&&i),true);if(i){return}let s=0;let l=this[p].findIndex((r=>!r[d]));while(s++this[p][l][Q]&&!r[d]){l=this[S]}if(this[S]===0){this[I]=this[I]-this[w];if(this[I]<=0){this[I]=this[x]}}if(r[Q]>=this[I]&&!r[d]){return r}}this[I]=this[p][l][Q];this[S]=l;return this[p][l]}}r.exports=BalancedPool},25075:(r,i,s)=>{"use strict";const{kConstruct:a}=s(32994);const{urlEquals:l,fieldValues:c}=s(68826);const{kEnumerableProperty:p,isDisturbed:d}=s(9647);const{kHeadersList:u}=s(97621);const{webidl:A}=s(73721);const{Response:h,cloneResponse:g}=s(36913);const{Request:y}=s(9787);const{kState:b,kHeaders:C,kGuard:v,kRealm:B}=s(73386);const{fetching:w}=s(63254);const{urlIsHttpHttpsScheme:I,createDeferredPromise:S,readAllBytes:Q}=s(16860);const x=s(39491);const{getGlobalDispatcher:N}=s(35683);class Cache{#e;constructor(){if(arguments[0]!==a){A.illegalConstructor()}this.#e=arguments[1]}async match(r,i={}){A.brandCheck(this,Cache);A.argumentLengthCheck(arguments,1,{header:"Cache.match"});r=A.converters.RequestInfo(r);i=A.converters.CacheQueryOptions(i);const s=await this.matchAll(r,i);if(s.length===0){return}return s[0]}async matchAll(r=undefined,i={}){A.brandCheck(this,Cache);if(r!==undefined)r=A.converters.RequestInfo(r);i=A.converters.CacheQueryOptions(i);let s=null;if(r!==undefined){if(r instanceof y){s=r[b];if(s.method!=="GET"&&!i.ignoreMethod){return[]}}else if(typeof r==="string"){s=new y(r)[b]}}const a=[];if(r===undefined){for(const r of this.#e){a.push(r[1])}}else{const r=this.#t(s,i);for(const i of r){a.push(i[1])}}const l=[];for(const r of a){const i=new h(r.body?.source??null);const s=i[b].body;i[b]=r;i[b].body=s;i[C][u]=r.headersList;i[C][v]="immutable";l.push(i)}return Object.freeze(l)}async add(r){A.brandCheck(this,Cache);A.argumentLengthCheck(arguments,1,{header:"Cache.add"});r=A.converters.RequestInfo(r);const i=[r];const s=this.addAll(i);return await s}async addAll(r){A.brandCheck(this,Cache);A.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});r=A.converters["sequence"](r);const i=[];const s=[];for(const i of r){if(typeof i==="string"){continue}const r=i[b];if(!I(r.url)||r.method!=="GET"){throw A.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const a=[];for(const l of r){const r=new y(l)[b];if(!I(r.url)){throw A.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}r.initiator="fetch";r.destination="subresource";s.push(r);const p=S();a.push(w({request:r,dispatcher:N(),processResponse(r){if(r.type==="error"||r.status===206||r.status<200||r.status>299){p.reject(A.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(r.headersList.contains("vary")){const i=c(r.headersList.get("vary"));for(const r of i){if(r==="*"){p.reject(A.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const r of a){r.abort()}return}}}},processResponseEndOfBody(r){if(r.aborted){p.reject(new DOMException("aborted","AbortError"));return}p.resolve(r)}}));i.push(p.promise)}const l=Promise.all(i);const p=await l;const d=[];let u=0;for(const r of p){const i={type:"put",request:s[u],response:r};d.push(i);u++}const h=S();let g=null;try{this.#r(d)}catch(r){g=r}queueMicrotask((()=>{if(g===null){h.resolve(undefined)}else{h.reject(g)}}));return h.promise}async put(r,i){A.brandCheck(this,Cache);A.argumentLengthCheck(arguments,2,{header:"Cache.put"});r=A.converters.RequestInfo(r);i=A.converters.Response(i);let s=null;if(r instanceof y){s=r[b]}else{s=new y(r)[b]}if(!I(s.url)||s.method!=="GET"){throw A.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const a=i[b];if(a.status===206){throw A.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(a.headersList.contains("vary")){const r=c(a.headersList.get("vary"));for(const i of r){if(i==="*"){throw A.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(a.body&&(d(a.body.stream)||a.body.stream.locked)){throw A.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const l=g(a);const p=S();if(a.body!=null){const r=a.body.stream;const i=r.getReader();Q(i).then(p.resolve,p.reject)}else{p.resolve(undefined)}const u=[];const h={type:"put",request:s,response:l};u.push(h);const C=await p.promise;if(l.body!=null){l.body.source=C}const v=S();let B=null;try{this.#r(u)}catch(r){B=r}queueMicrotask((()=>{if(B===null){v.resolve()}else{v.reject(B)}}));return v.promise}async delete(r,i={}){A.brandCheck(this,Cache);A.argumentLengthCheck(arguments,1,{header:"Cache.delete"});r=A.converters.RequestInfo(r);i=A.converters.CacheQueryOptions(i);let s=null;if(r instanceof y){s=r[b];if(s.method!=="GET"&&!i.ignoreMethod){return false}}else{x(typeof r==="string");s=new y(r)[b]}const a=[];const l={type:"delete",request:s,options:i};a.push(l);const c=S();let p=null;let d;try{d=this.#r(a)}catch(r){p=r}queueMicrotask((()=>{if(p===null){c.resolve(!!d?.length)}else{c.reject(p)}}));return c.promise}async keys(r=undefined,i={}){A.brandCheck(this,Cache);if(r!==undefined)r=A.converters.RequestInfo(r);i=A.converters.CacheQueryOptions(i);let s=null;if(r!==undefined){if(r instanceof y){s=r[b];if(s.method!=="GET"&&!i.ignoreMethod){return[]}}else if(typeof r==="string"){s=new y(r)[b]}}const a=S();const l=[];if(r===undefined){for(const r of this.#e){l.push(r[0])}}else{const r=this.#t(s,i);for(const i of r){l.push(i[0])}}queueMicrotask((()=>{const r=[];for(const i of l){const s=new y("https://a");s[b]=i;s[C][u]=i.headersList;s[C][v]="immutable";s[B]=i.client;r.push(s)}a.resolve(Object.freeze(r))}));return a.promise}#r(r){const i=this.#e;const s=[...i];const a=[];const l=[];try{for(const s of r){if(s.type!=="delete"&&s.type!=="put"){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(s.type==="delete"&&s.response!=null){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(s.request,s.options,a).length){throw new DOMException("???","InvalidStateError")}let r;if(s.type==="delete"){r=this.#t(s.request,s.options);if(r.length===0){return[]}for(const s of r){const r=i.indexOf(s);x(r!==-1);i.splice(r,1)}}else if(s.type==="put"){if(s.response==null){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const l=s.request;if(!I(l.url)){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(l.method!=="GET"){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(s.options!=null){throw A.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}r=this.#t(s.request);for(const s of r){const r=i.indexOf(s);x(r!==-1);i.splice(r,1)}i.push([s.request,s.response]);a.push([s.request,s.response])}l.push([s.request,s.response])}return l}catch(r){this.#e.length=0;this.#e=s;throw r}}#t(r,i,s){const a=[];const l=s??this.#e;for(const s of l){const[l,c]=s;if(this.#i(r,l,c,i)){a.push(s)}}return a}#i(r,i,s=null,a){const p=new URL(r.url);const d=new URL(i.url);if(a?.ignoreSearch){d.search="";p.search=""}if(!l(p,d,true)){return false}if(s==null||a?.ignoreVary||!s.headersList.contains("vary")){return true}const u=c(s.headersList.get("vary"));for(const s of u){if(s==="*"){return false}const a=i.headersList.get(s);const l=r.headersList.get(s);if(a!==l){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:p,matchAll:p,add:p,addAll:p,put:p,delete:p,keys:p});const R=[{key:"ignoreSearch",converter:A.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:A.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:A.converters.boolean,defaultValue:false}];A.converters.CacheQueryOptions=A.dictionaryConverter(R);A.converters.MultiCacheQueryOptions=A.dictionaryConverter([...R,{key:"cacheName",converter:A.converters.DOMString}]);A.converters.Response=A.interfaceConverter(h);A.converters["sequence"]=A.sequenceConverter(A.converters.RequestInfo);r.exports={Cache:Cache}},83187:(r,i,s)=>{"use strict";const{kConstruct:a}=s(32994);const{Cache:l}=s(25075);const{webidl:c}=s(73721);const{kEnumerableProperty:p}=s(9647);class CacheStorage{#n=new Map;constructor(){if(arguments[0]!==a){c.illegalConstructor()}}async match(r,i={}){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});r=c.converters.RequestInfo(r);i=c.converters.MultiCacheQueryOptions(i);if(i.cacheName!=null){if(this.#n.has(i.cacheName)){const s=this.#n.get(i.cacheName);const c=new l(a,s);return await c.match(r,i)}}else{for(const s of this.#n.values()){const c=new l(a,s);const p=await c.match(r,i);if(p!==undefined){return p}}}}async has(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});r=c.converters.DOMString(r);return this.#n.has(r)}async open(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});r=c.converters.DOMString(r);if(this.#n.has(r)){const i=this.#n.get(r);return new l(a,i)}const i=[];this.#n.set(r,i);return new l(a,i)}async delete(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});r=c.converters.DOMString(r);return this.#n.delete(r)}async keys(){c.brandCheck(this,CacheStorage);const r=this.#n.keys();return[...r]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:p,has:p,open:p,delete:p,keys:p});r.exports={CacheStorage:CacheStorage}},32994:(r,i,s)=>{"use strict";r.exports={kConstruct:s(97621).kConstruct}},68826:(r,i,s)=>{"use strict";const a=s(39491);const{URLSerializer:l}=s(6932);const{isValidHeaderName:c}=s(16860);function urlEquals(r,i,s=false){const a=l(r,s);const c=l(i,s);return a===c}function fieldValues(r){a(r!==null);const i=[];for(let s of r.split(",")){s=s.trim();if(!s.length){continue}else if(!c(s)){continue}i.push(s)}return i}r.exports={urlEquals:urlEquals,fieldValues:fieldValues}},48352:(r,i,s)=>{"use strict";const a=s(39491);const l=s(41808);const c=s(13685);const{pipeline:p}=s(12781);const d=s(9647);const u=s(98748);const A=s(42619);const h=s(56775);const{RequestContentLengthMismatchError:g,ResponseContentLengthMismatchError:y,InvalidArgumentError:b,RequestAbortedError:C,HeadersTimeoutError:v,HeadersOverflowError:B,SocketError:w,InformationalError:I,BodyTimeoutError:S,HTTPParserError:Q,ResponseExceededMaxSizeError:x,ClientDestroyedError:N}=s(83501);const R=s(56840);const{kUrl:T,kReset:D,kServerName:_,kClient:k,kBusy:P,kParser:O,kConnect:L,kBlocking:M,kResuming:U,kRunning:H,kPending:j,kSize:q,kWriting:G,kQueue:z,kConnected:V,kConnecting:W,kNeedDrain:Y,kNoRef:J,kKeepAliveDefaultTimeout:X,kHostHeader:K,kPendingIdx:$,kRunningIdx:Z,kError:ee,kPipelining:te,kSocket:re,kKeepAliveTimeoutValue:ie,kMaxHeadersSize:ne,kKeepAliveMaxTimeout:se,kKeepAliveTimeoutThreshold:ae,kHeadersTimeout:oe,kBodyTimeout:le,kStrictContentLength:ce,kConnector:pe,kMaxRedirections:de,kMaxRequests:ue,kCounter:Ae,kClose:me,kDestroy:he,kDispatch:fe,kInterceptors:ge,kLocalAddress:ye,kMaxResponseSize:Ee,kHTTPConnVersion:be,kHost:Ce,kHTTP2Session:ve,kHTTP2SessionState:Be,kHTTP2BuildRequest:we,kHTTP2CopyHeaders:Ie,kHTTP1BuildRequest:Se}=s(97621);let Qe;try{Qe=s(85158)}catch{Qe={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:xe,HTTP2_HEADER_METHOD:Ne,HTTP2_HEADER_PATH:Re,HTTP2_HEADER_SCHEME:Te,HTTP2_HEADER_CONTENT_LENGTH:De,HTTP2_HEADER_EXPECT:_e,HTTP2_HEADER_STATUS:ke}}=Qe;let Pe=false;const Oe=Buffer[Symbol.species];const Le=Symbol("kClosedResolve");const Me={};try{const r=s(67643);Me.sendHeaders=r.channel("undici:client:sendHeaders");Me.beforeConnect=r.channel("undici:client:beforeConnect");Me.connectError=r.channel("undici:client:connectError");Me.connected=r.channel("undici:client:connected")}catch{Me.sendHeaders={hasSubscribers:false};Me.beforeConnect={hasSubscribers:false};Me.connectError={hasSubscribers:false};Me.connected={hasSubscribers:false}}class Client extends h{constructor(r,{interceptors:i,maxHeaderSize:s,headersTimeout:a,socketTimeout:p,requestTimeout:u,connectTimeout:A,bodyTimeout:h,idleTimeout:g,keepAlive:y,keepAliveTimeout:C,maxKeepAliveTimeout:v,keepAliveMaxTimeout:B,keepAliveTimeoutThreshold:w,socketPath:I,pipelining:S,tls:Q,strictContentLength:x,maxCachedSessions:N,maxRedirections:D,connect:k,maxRequestsPerClient:P,localAddress:O,maxResponseSize:L,autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H,allowH2:j,maxConcurrentStreams:q}={}){super();if(y!==undefined){throw new b("unsupported keepAlive, use pipelining=0 instead")}if(p!==undefined){throw new b("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(u!==undefined){throw new b("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(g!==undefined){throw new b("unsupported idleTimeout, use keepAliveTimeout instead")}if(v!==undefined){throw new b("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(s!=null&&!Number.isFinite(s)){throw new b("invalid maxHeaderSize")}if(I!=null&&typeof I!=="string"){throw new b("invalid socketPath")}if(A!=null&&(!Number.isFinite(A)||A<0)){throw new b("invalid connectTimeout")}if(C!=null&&(!Number.isFinite(C)||C<=0)){throw new b("invalid keepAliveTimeout")}if(B!=null&&(!Number.isFinite(B)||B<=0)){throw new b("invalid keepAliveMaxTimeout")}if(w!=null&&!Number.isFinite(w)){throw new b("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new b("headersTimeout must be a positive integer or zero")}if(h!=null&&(!Number.isInteger(h)||h<0)){throw new b("bodyTimeout must be a positive integer or zero")}if(k!=null&&typeof k!=="function"&&typeof k!=="object"){throw new b("connect must be a function or an object")}if(D!=null&&(!Number.isInteger(D)||D<0)){throw new b("maxRedirections must be a positive number")}if(P!=null&&(!Number.isInteger(P)||P<0)){throw new b("maxRequestsPerClient must be a positive number")}if(O!=null&&(typeof O!=="string"||l.isIP(O)===0)){throw new b("localAddress must be valid string IP address")}if(L!=null&&(!Number.isInteger(L)||L<-1)){throw new b("maxResponseSize must be a positive number")}if(H!=null&&(!Number.isInteger(H)||H<-1)){throw new b("autoSelectFamilyAttemptTimeout must be a positive number")}if(j!=null&&typeof j!=="boolean"){throw new b("allowH2 must be a valid boolean value")}if(q!=null&&(typeof q!=="number"||q<1)){throw new b("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof k!=="function"){k=R({...Q,maxCachedSessions:N,allowH2:j,socketPath:I,timeout:A,...d.nodeHasAutoSelectFamily&&M?{autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H}:undefined,...k})}this[ge]=i&&i.Client&&Array.isArray(i.Client)?i.Client:[Ue({maxRedirections:D})];this[T]=d.parseOrigin(r);this[pe]=k;this[re]=null;this[te]=S!=null?S:1;this[ne]=s||c.maxHeaderSize;this[X]=C==null?4e3:C;this[se]=B==null?6e5:B;this[ae]=w==null?1e3:w;this[ie]=this[X];this[_]=null;this[ye]=O!=null?O:null;this[U]=0;this[Y]=0;this[K]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[le]=h!=null?h:3e5;this[oe]=a!=null?a:3e5;this[ce]=x==null?true:x;this[de]=D;this[ue]=P;this[Le]=null;this[Ee]=L>-1?L:-1;this[be]="h1";this[ve]=null;this[Be]=!j?null:{openStreams:0,maxConcurrentStreams:q!=null?q:100};this[Ce]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[z]=[];this[Z]=0;this[$]=0}get pipelining(){return this[te]}set pipelining(r){this[te]=r;resume(this,true)}get[j](){return this[z].length-this[$]}get[H](){return this[$]-this[Z]}get[q](){return this[z].length-this[Z]}get[V](){return!!this[re]&&!this[W]&&!this[re].destroyed}get[P](){const r=this[re];return r&&(r[D]||r[G]||r[M])||this[q]>=(this[te]||1)||this[j]>0}[L](r){connect(this);this.once("connect",r)}[fe](r,i){const s=r.origin||this[T].origin;const a=this[be]==="h2"?A[we](s,r,i):A[Se](s,r,i);this[z].push(a);if(this[U]){}else if(d.bodyLength(a.body)==null&&d.isIterable(a.body)){this[U]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[U]&&this[Y]!==2&&this[P]){this[Y]=2}return this[Y]<2}async[me](){return new Promise((r=>{if(!this[q]){r(null)}else{this[Le]=r}}))}async[he](r){return new Promise((i=>{const s=this[z].splice(this[$]);for(let i=0;i{if(this[Le]){this[Le]();this[Le]=null}i()};if(this[ve]!=null){d.destroy(this[ve],r);this[ve]=null;this[Be]=null}if(!this[re]){queueMicrotask(callback)}else{d.destroy(this[re].on("close",callback),r)}resume(this)}))}}function onHttp2SessionError(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[re][ee]=r;onError(this[k],r)}function onHttp2FrameError(r,i,s){const a=new I(`HTTP/2: "frameError" received - type ${r}, code ${i}`);if(s===0){this[re][ee]=a;onError(this[k],a)}}function onHttp2SessionEnd(){d.destroy(this,new w("other side closed"));d.destroy(this[re],new w("other side closed"))}function onHTTP2GoAway(r){const i=this[k];const s=new I(`HTTP/2: "GOAWAY" frame received with code ${r}`);i[re]=null;i[ve]=null;if(i.destroyed){a(this[j]===0);const r=i[z].splice(i[Z]);for(let i=0;i0){const r=i[z][i[Z]];i[z][i[Z]++]=null;errorRequest(i,r,s)}i[$]=i[Z];a(i[H]===0);i.emit("disconnect",i[T],[i],s);resume(i)}const Fe=s(50446);const Ue=s(23163);const He=Buffer.alloc(0);async function lazyllhttp(){const r=process.env.JEST_WORKER_ID?s(92959):undefined;let i;try{i=await WebAssembly.compile(Buffer.from(s(75674),"base64"))}catch(a){i=await WebAssembly.compile(Buffer.from(r||s(92959),"base64"))}return await WebAssembly.instantiate(i,{env:{wasm_on_url:(r,i,s)=>0,wasm_on_status:(r,i,s)=>{a.strictEqual(Ge.ptr,r);const l=i-We+ze.byteOffset;return Ge.onStatus(new Oe(ze.buffer,l,s))||0},wasm_on_message_begin:r=>{a.strictEqual(Ge.ptr,r);return Ge.onMessageBegin()||0},wasm_on_header_field:(r,i,s)=>{a.strictEqual(Ge.ptr,r);const l=i-We+ze.byteOffset;return Ge.onHeaderField(new Oe(ze.buffer,l,s))||0},wasm_on_header_value:(r,i,s)=>{a.strictEqual(Ge.ptr,r);const l=i-We+ze.byteOffset;return Ge.onHeaderValue(new Oe(ze.buffer,l,s))||0},wasm_on_headers_complete:(r,i,s,l)=>{a.strictEqual(Ge.ptr,r);return Ge.onHeadersComplete(i,Boolean(s),Boolean(l))||0},wasm_on_body:(r,i,s)=>{a.strictEqual(Ge.ptr,r);const l=i-We+ze.byteOffset;return Ge.onBody(new Oe(ze.buffer,l,s))||0},wasm_on_message_complete:r=>{a.strictEqual(Ge.ptr,r);return Ge.onMessageComplete()||0}}})}let je=null;let qe=lazyllhttp();qe.catch();let Ge=null;let ze=null;let Ve=0;let We=null;const Ye=1;const Je=2;const Xe=3;class Parser{constructor(r,i,{exports:s}){a(Number.isFinite(r[ne])&&r[ne]>0);this.llhttp=s;this.ptr=this.llhttp.llhttp_alloc(Fe.TYPE.RESPONSE);this.client=r;this.socket=i;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=r[ne];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=r[Ee]}setTimeout(r,i){this.timeoutType=i;if(r!==this.timeoutValue){u.clearTimeout(this.timeout);if(r){this.timeout=u.setTimeout(onParserTimeout,r,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=r}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(Ge==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===Je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||He);this.readMore()}readMore(){while(!this.paused&&this.ptr){const r=this.socket.read();if(r===null){break}this.execute(r)}}execute(r){a(this.ptr!=null);a(Ge==null);a(!this.paused);const{socket:i,llhttp:s}=this;if(r.length>Ve){if(We){s.free(We)}Ve=Math.ceil(r.length/4096)*4096;We=s.malloc(Ve)}new Uint8Array(s.memory.buffer,We,Ve).set(r);try{let a;try{ze=r;Ge=this;a=s.llhttp_execute(this.ptr,We,r.length)}catch(r){throw r}finally{Ge=null;ze=null}const l=s.llhttp_get_error_pos(this.ptr)-We;if(a===Fe.ERROR.PAUSED_UPGRADE){this.onUpgrade(r.slice(l))}else if(a===Fe.ERROR.PAUSED){this.paused=true;i.unshift(r.slice(l))}else if(a!==Fe.ERROR.OK){const i=s.llhttp_get_error_reason(this.ptr);let c="";if(i){const r=new Uint8Array(s.memory.buffer,i).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(s.memory.buffer,i,r).toString()+")"}throw new Q(c,Fe.ERROR[a],r.slice(l))}}catch(r){d.destroy(i,r)}}destroy(){a(this.ptr!=null);a(Ge==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;u.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(r){this.statusText=r.toString()}onMessageBegin(){const{socket:r,client:i}=this;if(r.destroyed){return-1}const s=i[z][i[Z]];if(!s){return-1}}onHeaderField(r){const i=this.headers.length;if((i&1)===0){this.headers.push(r)}else{this.headers[i-1]=Buffer.concat([this.headers[i-1],r])}this.trackHeader(r.length)}onHeaderValue(r){let i=this.headers.length;if((i&1)===1){this.headers.push(r);i+=1}else{this.headers[i-1]=Buffer.concat([this.headers[i-1],r])}const s=this.headers[i-2];if(s.length===10&&s.toString().toLowerCase()==="keep-alive"){this.keepAlive+=r.toString()}else if(s.length===10&&s.toString().toLowerCase()==="connection"){this.connection+=r.toString()}else if(s.length===14&&s.toString().toLowerCase()==="content-length"){this.contentLength+=r.toString()}this.trackHeader(r.length)}trackHeader(r){this.headersSize+=r;if(this.headersSize>=this.headersMaxSize){d.destroy(this.socket,new B)}}onUpgrade(r){const{upgrade:i,client:s,socket:l,headers:c,statusCode:p}=this;a(i);const u=s[z][s[Z]];a(u);a(!l.destroyed);a(l===s[re]);a(!this.paused);a(u.upgrade||u.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;a(this.headers.length%2===0);this.headers=[];this.headersSize=0;l.unshift(r);l[O].destroy();l[O]=null;l[k]=null;l[ee]=null;l.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);s[re]=null;s[z][s[Z]++]=null;s.emit("disconnect",s[T],[s],new I("upgrade"));try{u.onUpgrade(p,c,l)}catch(r){d.destroy(l,r)}resume(s)}onHeadersComplete(r,i,s){const{client:l,socket:c,headers:p,statusText:u}=this;if(c.destroyed){return-1}const A=l[z][l[Z]];if(!A){return-1}a(!this.upgrade);a(this.statusCode<200);if(r===100){d.destroy(c,new w("bad response",d.getSocketInfo(c)));return-1}if(i&&!A.upgrade){d.destroy(c,new w("bad upgrade",d.getSocketInfo(c)));return-1}a.strictEqual(this.timeoutType,Ye);this.statusCode=r;this.shouldKeepAlive=s||A.method==="HEAD"&&!c[D]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const r=A.bodyTimeout!=null?A.bodyTimeout:l[le];this.setTimeout(r,Je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(A.method==="CONNECT"){a(l[H]===1);this.upgrade=true;return 2}if(i){a(l[H]===1);this.upgrade=true;return 2}a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&l[te]){const r=this.keepAlive?d.parseKeepAliveTimeout(this.keepAlive):null;if(r!=null){const i=Math.min(r-l[ae],l[se]);if(i<=0){c[D]=true}else{l[ie]=i}}else{l[ie]=l[X]}}else{c[D]=true}const h=A.onHeaders(r,p,this.resume,u)===false;if(A.aborted){return-1}if(A.method==="HEAD"){return 1}if(r<200){return 1}if(c[M]){c[M]=false;resume(l)}return h?Fe.ERROR.PAUSED:0}onBody(r){const{client:i,socket:s,statusCode:l,maxResponseSize:c}=this;if(s.destroyed){return-1}const p=i[z][i[Z]];a(p);a.strictEqual(this.timeoutType,Je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(l>=200);if(c>-1&&this.bytesRead+r.length>c){d.destroy(s,new x);return-1}this.bytesRead+=r.length;if(p.onData(r)===false){return Fe.ERROR.PAUSED}}onMessageComplete(){const{client:r,socket:i,statusCode:s,upgrade:l,headers:c,contentLength:p,bytesRead:u,shouldKeepAlive:A}=this;if(i.destroyed&&(!s||A)){return-1}if(l){return}const h=r[z][r[Z]];a(h);a(s>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(s<200){return}if(h.method!=="HEAD"&&p&&u!==parseInt(p,10)){d.destroy(i,new y);return-1}h.onComplete(c);r[z][r[Z]++]=null;if(i[G]){a.strictEqual(r[H],0);d.destroy(i,new I("reset"));return Fe.ERROR.PAUSED}else if(!A){d.destroy(i,new I("reset"));return Fe.ERROR.PAUSED}else if(i[D]&&r[H]===0){d.destroy(i,new I("reset"));return Fe.ERROR.PAUSED}else if(r[te]===1){setImmediate(resume,r)}else{resume(r)}}}function onParserTimeout(r){const{socket:i,timeoutType:s,client:l}=r;if(s===Ye){if(!i[G]||i.writableNeedDrain||l[H]>1){a(!r.paused,"cannot be paused while waiting for headers");d.destroy(i,new v)}}else if(s===Je){if(!r.paused){d.destroy(i,new S)}}else if(s===Xe){a(l[H]===0&&l[ie]);d.destroy(i,new I("socket idle timeout"))}}function onSocketReadable(){const{[O]:r}=this;if(r){r.readMore()}}function onSocketError(r){const{[k]:i,[O]:s}=this;a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(i[be]!=="h2"){if(r.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){s.onMessageComplete();return}}this[ee]=r;onError(this[k],r)}function onError(r,i){if(r[H]===0&&i.code!=="UND_ERR_INFO"&&i.code!=="UND_ERR_SOCKET"){a(r[$]===r[Z]);const s=r[z].splice(r[Z]);for(let a=0;a0&&s.code!=="UND_ERR_INFO"){const i=r[z][r[Z]];r[z][r[Z]++]=null;errorRequest(r,i,s)}r[$]=r[Z];a(r[H]===0);r.emit("disconnect",r[T],[r],s);resume(r)}async function connect(r){a(!r[W]);a(!r[re]);let{host:i,hostname:s,protocol:c,port:p}=r[T];if(s[0]==="["){const r=s.indexOf("]");a(r!==-1);const i=s.substring(1,r);a(l.isIP(i));s=i}r[W]=true;if(Me.beforeConnect.hasSubscribers){Me.beforeConnect.publish({connectParams:{host:i,hostname:s,protocol:c,port:p,servername:r[_],localAddress:r[ye]},connector:r[pe]})}try{const l=await new Promise(((a,l)=>{r[pe]({host:i,hostname:s,protocol:c,port:p,servername:r[_],localAddress:r[ye]},((r,i)=>{if(r){l(r)}else{a(i)}}))}));if(r.destroyed){d.destroy(l.on("error",(()=>{})),new N);return}r[W]=false;a(l);const u=l.alpnProtocol==="h2";if(u){if(!Pe){Pe=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const i=Qe.connect(r[T],{createConnection:()=>l,peerMaxConcurrentStreams:r[Be].maxConcurrentStreams});r[be]="h2";i[k]=r;i[re]=l;i.on("error",onHttp2SessionError);i.on("frameError",onHttp2FrameError);i.on("end",onHttp2SessionEnd);i.on("goaway",onHTTP2GoAway);i.on("close",onSocketClose);i.unref();r[ve]=i;l[ve]=i}else{if(!je){je=await qe;qe=null}l[J]=false;l[G]=false;l[D]=false;l[M]=false;l[O]=new Parser(r,l,je)}l[Ae]=0;l[ue]=r[ue];l[k]=r;l[ee]=null;l.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);r[re]=l;if(Me.connected.hasSubscribers){Me.connected.publish({connectParams:{host:i,hostname:s,protocol:c,port:p,servername:r[_],localAddress:r[ye]},connector:r[pe],socket:l})}r.emit("connect",r[T],[r])}catch(l){if(r.destroyed){return}r[W]=false;if(Me.connectError.hasSubscribers){Me.connectError.publish({connectParams:{host:i,hostname:s,protocol:c,port:p,servername:r[_],localAddress:r[ye]},connector:r[pe],error:l})}if(l.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(r[H]===0);while(r[j]>0&&r[z][r[$]].servername===r[_]){const i=r[z][r[$]++];errorRequest(r,i,l)}}else{onError(r,l)}r.emit("connectionError",r[T],[r],l)}resume(r)}function emitDrain(r){r[Y]=0;r.emit("drain",r[T],[r])}function resume(r,i){if(r[U]===2){return}r[U]=2;_resume(r,i);r[U]=0;if(r[Z]>256){r[z].splice(0,r[Z]);r[$]-=r[Z];r[Z]=0}}function _resume(r,i){while(true){if(r.destroyed){a(r[j]===0);return}if(r[Le]&&!r[q]){r[Le]();r[Le]=null;return}const s=r[re];if(s&&!s.destroyed&&s.alpnProtocol!=="h2"){if(r[q]===0){if(!s[J]&&s.unref){s.unref();s[J]=true}}else if(s[J]&&s.ref){s.ref();s[J]=false}if(r[q]===0){if(s[O].timeoutType!==Xe){s[O].setTimeout(r[ie],Xe)}}else if(r[H]>0&&s[O].statusCode<200){if(s[O].timeoutType!==Ye){const i=r[z][r[Z]];const a=i.headersTimeout!=null?i.headersTimeout:r[oe];s[O].setTimeout(a,Ye)}}}if(r[P]){r[Y]=2}else if(r[Y]===2){if(i){r[Y]=1;process.nextTick(emitDrain,r)}else{emitDrain(r)}continue}if(r[j]===0){return}if(r[H]>=(r[te]||1)){return}const l=r[z][r[$]];if(r[T].protocol==="https:"&&r[_]!==l.servername){if(r[H]>0){return}r[_]=l.servername;if(s&&s.servername!==l.servername){d.destroy(s,new I("servername changed"));return}}if(r[W]){return}if(!s&&!r[ve]){connect(r);return}if(s.destroyed||s[G]||s[D]||s[M]){return}if(r[H]>0&&!l.idempotent){return}if(r[H]>0&&(l.upgrade||l.method==="CONNECT")){return}if(r[H]>0&&d.bodyLength(l.body)!==0&&(d.isStream(l.body)||d.isAsyncIterable(l.body))){return}if(!l.aborted&&write(r,l)){r[$]++}else{r[z].splice(r[$],1)}}}function shouldSendContentLength(r){return r!=="GET"&&r!=="HEAD"&&r!=="OPTIONS"&&r!=="TRACE"&&r!=="CONNECT"}function write(r,i){if(r[be]==="h2"){writeH2(r,r[ve],i);return}const{body:s,method:l,path:c,host:p,upgrade:u,headers:A,blocking:h,reset:y}=i;const b=l==="PUT"||l==="POST"||l==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}const v=d.bodyLength(s);let B=v;if(B===null){B=i.contentLength}if(B===0&&!b){B=null}if(shouldSendContentLength(l)&&B>0&&i.contentLength!==null&&i.contentLength!==B){if(r[ce]){errorRequest(r,i,new g);return false}process.emitWarning(new g)}const w=r[re];try{i.onConnect((s=>{if(i.aborted||i.completed){return}errorRequest(r,i,s||new C);d.destroy(w,new I("aborted"))}))}catch(s){errorRequest(r,i,s)}if(i.aborted){return false}if(l==="HEAD"){w[D]=true}if(u||l==="CONNECT"){w[D]=true}if(y!=null){w[D]=y}if(r[ue]&&w[Ae]++>=r[ue]){w[D]=true}if(h){w[M]=true}let S=`${l} ${c} HTTP/1.1\r\n`;if(typeof p==="string"){S+=`host: ${p}\r\n`}else{S+=r[K]}if(u){S+=`connection: upgrade\r\nupgrade: ${u}\r\n`}else if(r[te]&&!w[D]){S+="connection: keep-alive\r\n"}else{S+="connection: close\r\n"}if(A){S+=A}if(Me.sendHeaders.hasSubscribers){Me.sendHeaders.publish({request:i,headers:S,socket:w})}if(!s||v===0){if(B===0){w.write(`${S}content-length: 0\r\n\r\n`,"latin1")}else{a(B===null,"no body must not have content length");w.write(`${S}\r\n`,"latin1")}i.onRequestSent()}else if(d.isBuffer(s)){a(B===s.byteLength,"buffer body must have content length");w.cork();w.write(`${S}content-length: ${B}\r\n\r\n`,"latin1");w.write(s);w.uncork();i.onBodySent(s);i.onRequestSent();if(!b){w[D]=true}}else if(d.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({body:s.stream(),client:r,request:i,socket:w,contentLength:B,header:S,expectsPayload:b})}else{writeBlob({body:s,client:r,request:i,socket:w,contentLength:B,header:S,expectsPayload:b})}}else if(d.isStream(s)){writeStream({body:s,client:r,request:i,socket:w,contentLength:B,header:S,expectsPayload:b})}else if(d.isIterable(s)){writeIterable({body:s,client:r,request:i,socket:w,contentLength:B,header:S,expectsPayload:b})}else{a(false)}return true}function writeH2(r,i,s){const{body:l,method:c,path:p,host:u,upgrade:h,expectContinue:y,signal:b,headers:v}=s;let B;if(typeof v==="string")B=A[Ie](v.trim());else B=v;if(h){errorRequest(r,s,new Error("Upgrade not supported for H2"));return false}try{s.onConnect((i=>{if(s.aborted||s.completed){return}errorRequest(r,s,i||new C)}))}catch(i){errorRequest(r,s,i)}if(s.aborted){return false}let w;const S=r[Be];B[xe]=u||r[Ce];B[Ne]=c;if(c==="CONNECT"){i.ref();w=i.request(B,{endStream:false,signal:b});if(w.id&&!w.pending){s.onUpgrade(null,null,w);++S.openStreams}else{w.once("ready",(()=>{s.onUpgrade(null,null,w);++S.openStreams}))}w.once("close",(()=>{S.openStreams-=1;if(S.openStreams===0)i.unref()}));return true}B[Re]=p;B[Te]="https";const Q=c==="PUT"||c==="POST"||c==="PATCH";if(l&&typeof l.read==="function"){l.read(0)}let x=d.bodyLength(l);if(x==null){x=s.contentLength}if(x===0||!Q){x=null}if(shouldSendContentLength(c)&&x>0&&s.contentLength!=null&&s.contentLength!==x){if(r[ce]){errorRequest(r,s,new g);return false}process.emitWarning(new g)}if(x!=null){a(l,"no body must not have content length");B[De]=`${x}`}i.ref();const N=c==="GET"||c==="HEAD";if(y){B[_e]="100-continue";w=i.request(B,{endStream:N,signal:b});w.once("continue",writeBodyH2)}else{w=i.request(B,{endStream:N,signal:b});writeBodyH2()}++S.openStreams;w.once("response",(r=>{const{[ke]:i,...a}=r;if(s.onHeaders(Number(i),a,w.resume.bind(w),"")===false){w.pause()}}));w.once("end",(()=>{s.onComplete([])}));w.on("data",(r=>{if(s.onData(r)===false){w.pause()}}));w.once("close",(()=>{S.openStreams-=1;if(S.openStreams===0){i.unref()}}));w.once("error",(function(i){if(r[ve]&&!r[ve].destroyed&&!this.closed&&!this.destroyed){S.streams-=1;d.destroy(w,i)}}));w.once("frameError",((i,a)=>{const l=new I(`HTTP/2: "frameError" received - type ${i}, code ${a}`);errorRequest(r,s,l);if(r[ve]&&!r[ve].destroyed&&!this.closed&&!this.destroyed){S.streams-=1;d.destroy(w,l)}}));return true;function writeBodyH2(){if(!l){s.onRequestSent()}else if(d.isBuffer(l)){a(x===l.byteLength,"buffer body must have content length");w.cork();w.write(l);w.uncork();w.end();s.onBodySent(l);s.onRequestSent()}else if(d.isBlobLike(l)){if(typeof l.stream==="function"){writeIterable({client:r,request:s,contentLength:x,h2stream:w,expectsPayload:Q,body:l.stream(),socket:r[re],header:""})}else{writeBlob({body:l,client:r,request:s,contentLength:x,expectsPayload:Q,h2stream:w,header:"",socket:r[re]})}}else if(d.isStream(l)){writeStream({body:l,client:r,request:s,contentLength:x,expectsPayload:Q,socket:r[re],h2stream:w,header:""})}else if(d.isIterable(l)){writeIterable({body:l,client:r,request:s,contentLength:x,expectsPayload:Q,header:"",h2stream:w,socket:r[re]})}else{a(false)}}}function writeStream({h2stream:r,body:i,client:s,request:l,socket:c,contentLength:u,header:A,expectsPayload:h}){a(u!==0||s[H]===0,"stream body cannot be pipelined");if(s[be]==="h2"){const b=p(i,r,(s=>{if(s){d.destroy(i,s);d.destroy(r,s)}else{l.onRequestSent()}}));b.on("data",onPipeData);b.once("end",(()=>{b.removeListener("data",onPipeData);d.destroy(b)}));function onPipeData(r){l.onBodySent(r)}return}let g=false;const y=new AsyncWriter({socket:c,request:l,contentLength:u,client:s,expectsPayload:h,header:A});const onData=function(r){if(g){return}try{if(!y.write(r)&&this.pause){this.pause()}}catch(r){d.destroy(this,r)}};const onDrain=function(){if(g){return}if(i.resume){i.resume()}};const onAbort=function(){if(g){return}const r=new C;queueMicrotask((()=>onFinished(r)))};const onFinished=function(r){if(g){return}g=true;a(c.destroyed||c[G]&&s[H]<=1);c.off("drain",onDrain).off("error",onFinished);i.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!r){try{y.end()}catch(i){r=i}}y.destroy(r);if(r&&(r.code!=="UND_ERR_INFO"||r.message!=="reset")){d.destroy(i,r)}else{d.destroy(i)}};i.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(i.resume){i.resume()}c.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:r,body:i,client:s,request:l,socket:c,contentLength:p,header:u,expectsPayload:A}){a(p===i.size,"blob body must have content length");const h=s[be]==="h2";try{if(p!=null&&p!==i.size){throw new g}const a=Buffer.from(await i.arrayBuffer());if(h){r.cork();r.write(a);r.uncork()}else{c.cork();c.write(`${u}content-length: ${p}\r\n\r\n`,"latin1");c.write(a);c.uncork()}l.onBodySent(a);l.onRequestSent();if(!A){c[D]=true}resume(s)}catch(i){d.destroy(h?r:c,i)}}async function writeIterable({h2stream:r,body:i,client:s,request:l,socket:c,contentLength:p,header:d,expectsPayload:u}){a(p!==0||s[H]===0,"iterator body cannot be pipelined");let A=null;function onDrain(){if(A){const r=A;A=null;r()}}const waitForDrain=()=>new Promise(((r,i)=>{a(A===null);if(c[ee]){i(c[ee])}else{A=r}}));if(s[be]==="h2"){r.on("close",onDrain).on("drain",onDrain);try{for await(const s of i){if(c[ee]){throw c[ee]}const i=r.write(s);l.onBodySent(s);if(!i){await waitForDrain()}}}catch(i){r.destroy(i)}finally{l.onRequestSent();r.end();r.off("close",onDrain).off("drain",onDrain)}return}c.on("close",onDrain).on("drain",onDrain);const h=new AsyncWriter({socket:c,request:l,contentLength:p,client:s,expectsPayload:u,header:d});try{for await(const r of i){if(c[ee]){throw c[ee]}if(!h.write(r)){await waitForDrain()}}h.end()}catch(r){h.destroy(r)}finally{c.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:r,request:i,contentLength:s,client:a,expectsPayload:l,header:c}){this.socket=r;this.request=i;this.contentLength=s;this.client=a;this.bytesWritten=0;this.expectsPayload=l;this.header=c;r[G]=true}write(r){const{socket:i,request:s,contentLength:a,client:l,bytesWritten:c,expectsPayload:p,header:d}=this;if(i[ee]){throw i[ee]}if(i.destroyed){return false}const u=Buffer.byteLength(r);if(!u){return true}if(a!==null&&c+u>a){if(l[ce]){throw new g}process.emitWarning(new g)}i.cork();if(c===0){if(!p){i[D]=true}if(a===null){i.write(`${d}transfer-encoding: chunked\r\n`,"latin1")}else{i.write(`${d}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){i.write(`\r\n${u.toString(16)}\r\n`,"latin1")}this.bytesWritten+=u;const A=i.write(r);i.uncork();s.onBodySent(r);if(!A){if(i[O].timeout&&i[O].timeoutType===Ye){if(i[O].timeout.refresh){i[O].timeout.refresh()}}}return A}end(){const{socket:r,contentLength:i,client:s,bytesWritten:a,expectsPayload:l,header:c,request:p}=this;p.onRequestSent();r[G]=false;if(r[ee]){throw r[ee]}if(r.destroyed){return}if(a===0){if(l){r.write(`${c}content-length: 0\r\n\r\n`,"latin1")}else{r.write(`${c}\r\n`,"latin1")}}else if(i===null){r.write("\r\n0\r\n\r\n","latin1")}if(i!==null&&a!==i){if(s[ce]){throw new g}else{process.emitWarning(new g)}}if(r[O].timeout&&r[O].timeoutType===Ye){if(r[O].timeout.refresh){r[O].timeout.refresh()}}resume(s)}destroy(r){const{socket:i,client:s}=this;i[G]=false;if(r){a(s[H]<=1,"pipeline should only contain this request");d.destroy(i,r)}}}function errorRequest(r,i,s){try{i.onError(s);a(i.aborted)}catch(s){r.emit("error",s)}}r.exports=Client},79374:(r,i,s)=>{"use strict";const{kConnected:a,kSize:l}=s(97621);class CompatWeakRef{constructor(r){this.value=r}deref(){return this.value[a]===0&&this.value[l]===0?undefined:this.value}}class CompatFinalizer{constructor(r){this.finalizer=r}register(r,i){if(r.on){r.on("disconnect",(()=>{if(r[a]===0&&r[l]===0){this.finalizer(i)}}))}}}r.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},84791:r=>{"use strict";const i=1024;const s=4096;r.exports={maxAttributeValueSize:i,maxNameValuePairSize:s}},9351:(r,i,s)=>{"use strict";const{parseSetCookie:a}=s(12805);const{stringify:l,getHeadersList:c}=s(73319);const{webidl:p}=s(73721);const{Headers:d}=s(26909);function getCookies(r){p.argumentLengthCheck(arguments,1,{header:"getCookies"});p.brandCheck(r,d,{strict:false});const i=r.get("cookie");const s={};if(!i){return s}for(const r of i.split(";")){const[i,...a]=r.split("=");s[i.trim()]=a.join("=")}return s}function deleteCookie(r,i,s){p.argumentLengthCheck(arguments,2,{header:"deleteCookie"});p.brandCheck(r,d,{strict:false});i=p.converters.DOMString(i);s=p.converters.DeleteCookieAttributes(s);setCookie(r,{name:i,value:"",expires:new Date(0),...s})}function getSetCookies(r){p.argumentLengthCheck(arguments,1,{header:"getSetCookies"});p.brandCheck(r,d,{strict:false});const i=c(r).cookies;if(!i){return[]}return i.map((r=>a(Array.isArray(r)?r[1]:r)))}function setCookie(r,i){p.argumentLengthCheck(arguments,2,{header:"setCookie"});p.brandCheck(r,d,{strict:false});i=p.converters.Cookie(i);const s=l(i);if(s){r.append("Set-Cookie",l(i))}}p.converters.DeleteCookieAttributes=p.dictionaryConverter([{converter:p.nullableConverter(p.converters.DOMString),key:"path",defaultValue:null},{converter:p.nullableConverter(p.converters.DOMString),key:"domain",defaultValue:null}]);p.converters.Cookie=p.dictionaryConverter([{converter:p.converters.DOMString,key:"name"},{converter:p.converters.DOMString,key:"value"},{converter:p.nullableConverter((r=>{if(typeof r==="number"){return p.converters["unsigned long long"](r)}return new Date(r)})),key:"expires",defaultValue:null},{converter:p.nullableConverter(p.converters["long long"]),key:"maxAge",defaultValue:null},{converter:p.nullableConverter(p.converters.DOMString),key:"domain",defaultValue:null},{converter:p.nullableConverter(p.converters.DOMString),key:"path",defaultValue:null},{converter:p.nullableConverter(p.converters.boolean),key:"secure",defaultValue:null},{converter:p.nullableConverter(p.converters.boolean),key:"httpOnly",defaultValue:null},{converter:p.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:p.sequenceConverter(p.converters.DOMString),key:"unparsed",defaultValue:[]}]);r.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},12805:(r,i,s)=>{"use strict";const{maxNameValuePairSize:a,maxAttributeValueSize:l}=s(84791);const{isCTLExcludingHtab:c}=s(73319);const{collectASequenceOfCodePointsFast:p}=s(6932);const d=s(39491);function parseSetCookie(r){if(c(r)){return null}let i="";let s="";let l="";let d="";if(r.includes(";")){const a={position:0};i=p(";",r,a);s=r.slice(a.position)}else{i=r}if(!i.includes("=")){d=i}else{const r={position:0};l=p("=",i,r);d=i.slice(r.position+1)}l=l.trim();d=d.trim();if(l.length+d.length>a){return null}return{name:l,value:d,...parseUnparsedAttributes(s)}}function parseUnparsedAttributes(r,i={}){if(r.length===0){return i}d(r[0]===";");r=r.slice(1);let s="";if(r.includes(";")){s=p(";",r,{position:0});r=r.slice(s.length)}else{s=r;r=""}let a="";let c="";if(s.includes("=")){const r={position:0};a=p("=",s,r);c=s.slice(r.position+1)}else{a=s}a=a.trim();c=c.trim();if(c.length>l){return parseUnparsedAttributes(r,i)}const u=a.toLowerCase();if(u==="expires"){const r=new Date(c);i.expires=r}else if(u==="max-age"){const s=c.charCodeAt(0);if((s<48||s>57)&&c[0]!=="-"){return parseUnparsedAttributes(r,i)}if(!/^\d+$/.test(c)){return parseUnparsedAttributes(r,i)}const a=Number(c);i.maxAge=a}else if(u==="domain"){let r=c;if(r[0]==="."){r=r.slice(1)}r=r.toLowerCase();i.domain=r}else if(u==="path"){let r="";if(c.length===0||c[0]!=="/"){r="/"}else{r=c}i.path=r}else if(u==="secure"){i.secure=true}else if(u==="httponly"){i.httpOnly=true}else if(u==="samesite"){let r="Default";const s=c.toLowerCase();if(s.includes("none")){r="None"}if(s.includes("strict")){r="Strict"}if(s.includes("lax")){r="Lax"}i.sameSite=r}else{i.unparsed??=[];i.unparsed.push(`${a}=${c}`)}return parseUnparsedAttributes(r,i)}r.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},73319:(r,i,s)=>{"use strict";const a=s(39491);const{kHeadersList:l}=s(97621);function isCTLExcludingHtab(r){if(r.length===0){return false}for(const i of r){const r=i.charCodeAt(0);if(r>=0||r<=8||(r>=10||r<=31)||r===127){return false}}}function validateCookieName(r){for(const i of r){const r=i.charCodeAt(0);if(r<=32||r>127||i==="("||i===")"||i===">"||i==="<"||i==="@"||i===","||i===";"||i===":"||i==="\\"||i==='"'||i==="/"||i==="["||i==="]"||i==="?"||i==="="||i==="{"||i==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(r){for(const i of r){const r=i.charCodeAt(0);if(r<33||r===34||r===44||r===59||r===92||r>126){throw new Error("Invalid header value")}}}function validateCookiePath(r){for(const i of r){const r=i.charCodeAt(0);if(r<33||i===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(r){if(r.startsWith("-")||r.endsWith(".")||r.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(r){if(typeof r==="number"){r=new Date(r)}const i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const a=i[r.getUTCDay()];const l=r.getUTCDate().toString().padStart(2,"0");const c=s[r.getUTCMonth()];const p=r.getUTCFullYear();const d=r.getUTCHours().toString().padStart(2,"0");const u=r.getUTCMinutes().toString().padStart(2,"0");const A=r.getUTCSeconds().toString().padStart(2,"0");return`${a}, ${l} ${c} ${p} ${d}:${u}:${A} GMT`}function validateCookieMaxAge(r){if(r<0){throw new Error("Invalid cookie max-age")}}function stringify(r){if(r.name.length===0){return null}validateCookieName(r.name);validateCookieValue(r.value);const i=[`${r.name}=${r.value}`];if(r.name.startsWith("__Secure-")){r.secure=true}if(r.name.startsWith("__Host-")){r.secure=true;r.domain=null;r.path="/"}if(r.secure){i.push("Secure")}if(r.httpOnly){i.push("HttpOnly")}if(typeof r.maxAge==="number"){validateCookieMaxAge(r.maxAge);i.push(`Max-Age=${r.maxAge}`)}if(r.domain){validateCookieDomain(r.domain);i.push(`Domain=${r.domain}`)}if(r.path){validateCookiePath(r.path);i.push(`Path=${r.path}`)}if(r.expires&&r.expires.toString()!=="Invalid Date"){i.push(`Expires=${toIMFDate(r.expires)}`)}if(r.sameSite){i.push(`SameSite=${r.sameSite}`)}for(const s of r.unparsed){if(!s.includes("=")){throw new Error("Invalid unparsed")}const[r,...a]=s.split("=");i.push(`${r.trim()}=${a.join("=")}`)}return i.join("; ")}let c;function getHeadersList(r){if(r[l]){return r[l]}if(!c){c=Object.getOwnPropertySymbols(r).find((r=>r.description==="headers list"));a(c,"Headers cannot be parsed")}const i=r[c];a(i);return i}r.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},56840:(r,i,s)=>{"use strict";const a=s(41808);const l=s(39491);const c=s(9647);const{InvalidArgumentError:p,ConnectTimeoutError:d}=s(83501);let u;let A;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){A=class WeakSessionCache{constructor(r){this._maxCachedSessions=r;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((r=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(r,i)}}}function buildConnector({allowH2:r,maxCachedSessions:i,socketPath:d,timeout:h,...g}){if(i!=null&&(!Number.isInteger(i)||i<0)){throw new p("maxCachedSessions must be a positive integer or zero")}const y={path:d,...g};const b=new A(i==null?100:i);h=h==null?1e4:h;r=r!=null?r:false;return function connect({hostname:i,host:p,protocol:d,port:A,servername:g,localAddress:C,httpSocket:v},B){let w;if(d==="https:"){if(!u){u=s(24404)}g=g||y.servername||c.getServerName(p)||null;const a=g||i;const d=b.get(a)||null;l(a);w=u.connect({highWaterMark:16384,...y,servername:g,session:d,localAddress:C,ALPNProtocols:r?["http/1.1","h2"]:["http/1.1"],socket:v,port:A||443,host:i});w.on("session",(function(r){b.set(a,r)}))}else{l(!v,"httpSocket can only be sent on TLS update");w=a.connect({highWaterMark:64*1024,...y,localAddress:C,port:A||80,host:i})}if(y.keepAlive==null||y.keepAlive){const r=y.keepAliveInitialDelay===undefined?6e4:y.keepAliveInitialDelay;w.setKeepAlive(true,r)}const I=setupTimeout((()=>onConnectTimeout(w)),h);w.setNoDelay(true).once(d==="https:"?"secureConnect":"connect",(function(){I();if(B){const r=B;B=null;r(null,this)}})).on("error",(function(r){I();if(B){const i=B;B=null;i(r)}}));return w}}function setupTimeout(r,i){if(!i){return()=>{}}let s=null;let a=null;const l=setTimeout((()=>{s=setImmediate((()=>{if(process.platform==="win32"){a=setImmediate((()=>r()))}else{r()}}))}),i);return()=>{clearTimeout(l);clearImmediate(s);clearImmediate(a)}}function onConnectTimeout(r){c.destroy(r,new d)}r.exports=buildConnector},52306:r=>{"use strict";const i={};const s=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","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","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let r=0;r{"use strict";class UndiciError extends Error{constructor(r){super(r);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=r||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=r||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=r||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=r||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(r,i,s,a){super(r);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=r||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=i;this.statusCode=i;this.headers=s}}class InvalidArgumentError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=r||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=r||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=r||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=r||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=r||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=r||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=r||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=r||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(r,i){super(r);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=r||"Socket error";this.code="UND_ERR_SOCKET";this.socket=i}}class NotSupportedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=r||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=r||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(r,i,s){super(r);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=i?`HPE_${i}`:undefined;this.data=s?s.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=r||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(r,i,{headers:s,data:a}){super(r);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=r||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=i;this.data=a;this.headers=s}}r.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},42619:(r,i,s)=>{"use strict";const{InvalidArgumentError:a,NotSupportedError:l}=s(83501);const c=s(39491);const{kHTTP2BuildRequest:p,kHTTP2CopyHeaders:d,kHTTP1BuildRequest:u}=s(97621);const A=s(9647);const h=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const g=/[^\t\x20-\x7e\x80-\xff]/;const y=/[^\u0021-\u00ff]/;const b=Symbol("handler");const C={};let v;try{const r=s(67643);C.create=r.channel("undici:request:create");C.bodySent=r.channel("undici:request:bodySent");C.headers=r.channel("undici:request:headers");C.trailers=r.channel("undici:request:trailers");C.error=r.channel("undici:request:error")}catch{C.create={hasSubscribers:false};C.bodySent={hasSubscribers:false};C.headers={hasSubscribers:false};C.trailers={hasSubscribers:false};C.error={hasSubscribers:false}}class Request{constructor(r,{path:i,method:l,body:c,headers:p,query:d,idempotent:u,blocking:g,upgrade:B,headersTimeout:w,bodyTimeout:I,reset:S,throwOnError:Q,expectContinue:x},N){if(typeof i!=="string"){throw new a("path must be a string")}else if(i[0]!=="/"&&!(i.startsWith("http://")||i.startsWith("https://"))&&l!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(y.exec(i)!==null){throw new a("invalid request path")}if(typeof l!=="string"){throw new a("method must be a string")}else if(h.exec(l)===null){throw new a("invalid request method")}if(B&&typeof B!=="string"){throw new a("upgrade must be a string")}if(w!=null&&(!Number.isFinite(w)||w<0)){throw new a("invalid headersTimeout")}if(I!=null&&(!Number.isFinite(I)||I<0)){throw new a("invalid bodyTimeout")}if(S!=null&&typeof S!=="boolean"){throw new a("invalid reset")}if(x!=null&&typeof x!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=w;this.bodyTimeout=I;this.throwOnError=Q===true;this.method=l;this.abort=null;if(c==null){this.body=null}else if(A.isStream(c)){this.body=c;const r=this.body._readableState;if(!r||!r.autoDestroy){this.endHandler=function autoDestroy(){A.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=r=>{if(this.abort){this.abort(r)}else{this.error=r}};this.body.on("error",this.errorHandler)}else if(A.isBuffer(c)){this.body=c.byteLength?c:null}else if(ArrayBuffer.isView(c)){this.body=c.buffer.byteLength?Buffer.from(c.buffer,c.byteOffset,c.byteLength):null}else if(c instanceof ArrayBuffer){this.body=c.byteLength?Buffer.from(c):null}else if(typeof c==="string"){this.body=c.length?Buffer.from(c):null}else if(A.isFormDataLike(c)||A.isIterable(c)||A.isBlobLike(c)){this.body=c}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=B||null;this.path=d?A.buildURL(i,d):i;this.origin=r;this.idempotent=u==null?l==="HEAD"||l==="GET":u;this.blocking=g==null?false:g;this.reset=S==null?null:S;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=x!=null?x:false;if(Array.isArray(p)){if(p.length%2!==0){throw new a("headers array must be even")}for(let r=0;r{r.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},9647:(r,i,s)=>{"use strict";const a=s(39491);const{kDestroyed:l,kBodyUsed:c}=s(97621);const{IncomingMessage:p}=s(13685);const d=s(12781);const u=s(41808);const{InvalidArgumentError:A}=s(83501);const{Blob:h}=s(14300);const g=s(73837);const{stringify:y}=s(63477);const{headerNameLowerCasedRecord:b}=s(52306);const[C,v]=process.versions.node.split(".").map((r=>Number(r)));function nop(){}function isStream(r){return r&&typeof r==="object"&&typeof r.pipe==="function"&&typeof r.on==="function"}function isBlobLike(r){return h&&r instanceof h||r&&typeof r==="object"&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&/^(Blob|File)$/.test(r[Symbol.toStringTag])}function buildURL(r,i){if(r.includes("?")||r.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const s=y(i);if(s){r+="?"+s}return r}function parseURL(r){if(typeof r==="string"){r=new URL(r);if(!/^https?:/.test(r.origin||r.protocol)){throw new A("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}if(!r||typeof r!=="object"){throw new A("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(r.origin||r.protocol)){throw new A("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(r instanceof URL)){if(r.port!=null&&r.port!==""&&!Number.isFinite(parseInt(r.port))){throw new A("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(r.path!=null&&typeof r.path!=="string"){throw new A("Invalid URL path: the path must be a string or null/undefined.")}if(r.pathname!=null&&typeof r.pathname!=="string"){throw new A("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(r.hostname!=null&&typeof r.hostname!=="string"){throw new A("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(r.origin!=null&&typeof r.origin!=="string"){throw new A("Invalid URL origin: the origin must be a string or null/undefined.")}const i=r.port!=null?r.port:r.protocol==="https:"?443:80;let s=r.origin!=null?r.origin:`${r.protocol}//${r.hostname}:${i}`;let a=r.path!=null?r.path:`${r.pathname||""}${r.search||""}`;if(s.endsWith("/")){s=s.substring(0,s.length-1)}if(a&&!a.startsWith("/")){a=`/${a}`}r=new URL(s+a)}return r}function parseOrigin(r){r=parseURL(r);if(r.pathname!=="/"||r.search||r.hash){throw new A("invalid url")}return r}function getHostname(r){if(r[0]==="["){const i=r.indexOf("]");a(i!==-1);return r.substring(1,i)}const i=r.indexOf(":");if(i===-1)return r;return r.substring(0,i)}function getServerName(r){if(!r){return null}a.strictEqual(typeof r,"string");const i=getHostname(r);if(u.isIP(i)){return""}return i}function deepClone(r){return JSON.parse(JSON.stringify(r))}function isAsyncIterable(r){return!!(r!=null&&typeof r[Symbol.asyncIterator]==="function")}function isIterable(r){return!!(r!=null&&(typeof r[Symbol.iterator]==="function"||typeof r[Symbol.asyncIterator]==="function"))}function bodyLength(r){if(r==null){return 0}else if(isStream(r)){const i=r._readableState;return i&&i.objectMode===false&&i.ended===true&&Number.isFinite(i.length)?i.length:null}else if(isBlobLike(r)){return r.size!=null?r.size:null}else if(isBuffer(r)){return r.byteLength}return null}function isDestroyed(r){return!r||!!(r.destroyed||r[l])}function isReadableAborted(r){const i=r&&r._readableState;return isDestroyed(r)&&i&&!i.endEmitted}function destroy(r,i){if(r==null||!isStream(r)||isDestroyed(r)){return}if(typeof r.destroy==="function"){if(Object.getPrototypeOf(r).constructor===p){r.socket=null}r.destroy(i)}else if(i){process.nextTick(((r,i)=>{r.emit("error",i)}),r,i)}if(r.destroyed!==true){r[l]=true}}const B=/timeout=(\d+)/;function parseKeepAliveTimeout(r){const i=r.toString().match(B);return i?parseInt(i[1],10)*1e3:null}function headerNameToString(r){return b[r]||r.toLowerCase()}function parseHeaders(r,i={}){if(!Array.isArray(r))return r;for(let s=0;sr.toString("utf8")))}else{i[a]=r[s+1].toString("utf8")}}else{if(!Array.isArray(l)){l=[l];i[a]=l}l.push(r[s+1].toString("utf8"))}}if("content-length"in i&&"content-disposition"in i){i["content-disposition"]=Buffer.from(i["content-disposition"]).toString("latin1")}return i}function parseRawHeaders(r){const i=[];let s=false;let a=-1;for(let l=0;l{r.close()}))}else{const i=Buffer.isBuffer(a)?a:Buffer.from(a);r.enqueue(new Uint8Array(i))}return r.desiredSize>0},async cancel(r){await i.return()}},0)}function isFormDataLike(r){return r&&typeof r==="object"&&typeof r.append==="function"&&typeof r.delete==="function"&&typeof r.get==="function"&&typeof r.getAll==="function"&&typeof r.has==="function"&&typeof r.set==="function"&&r[Symbol.toStringTag]==="FormData"}function throwIfAborted(r){if(!r){return}if(typeof r.throwIfAborted==="function"){r.throwIfAborted()}else{if(r.aborted){const r=new Error("The operation was aborted");r.name="AbortError";throw r}}}function addAbortListener(r,i){if("addEventListener"in r){r.addEventListener("abort",i,{once:true});return()=>r.removeEventListener("abort",i)}r.addListener("abort",i);return()=>r.removeListener("abort",i)}const I=!!String.prototype.toWellFormed;function toUSVString(r){if(I){return`${r}`.toWellFormed()}else if(g.toUSVString){return g.toUSVString(r)}return`${r}`}function parseRangeHeader(r){if(r==null||r==="")return{start:0,end:null,size:null};const i=r?r.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return i?{start:parseInt(i[1]),end:i[2]?parseInt(i[2]):null,size:i[3]?parseInt(i[3]):null}:null}const S=Object.create(null);S.enumerable=true;r.exports={kEnumerableProperty:S,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:C,nodeMinor:v,nodeHasAutoSelectFamily:C>18||C===18&&v>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},56775:(r,i,s)=>{"use strict";const a=s(93954);const{ClientDestroyedError:l,ClientClosedError:c,InvalidArgumentError:p}=s(83501);const{kDestroy:d,kClose:u,kDispatch:A,kInterceptors:h}=s(97621);const g=Symbol("destroyed");const y=Symbol("closed");const b=Symbol("onDestroyed");const C=Symbol("onClosed");const v=Symbol("Intercepted Dispatch");class DispatcherBase extends a{constructor(){super();this[g]=false;this[b]=null;this[y]=false;this[C]=[]}get destroyed(){return this[g]}get closed(){return this[y]}get interceptors(){return this[h]}set interceptors(r){if(r){for(let i=r.length-1;i>=0;i--){const r=this[h][i];if(typeof r!=="function"){throw new p("interceptor must be an function")}}}this[h]=r}close(r){if(r===undefined){return new Promise(((r,i)=>{this.close(((s,a)=>s?i(s):r(a)))}))}if(typeof r!=="function"){throw new p("invalid callback")}if(this[g]){queueMicrotask((()=>r(new l,null)));return}if(this[y]){if(this[C]){this[C].push(r)}else{queueMicrotask((()=>r(null,null)))}return}this[y]=true;this[C].push(r);const onClosed=()=>{const r=this[C];this[C]=null;for(let i=0;ithis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(r,i){if(typeof r==="function"){i=r;r=null}if(i===undefined){return new Promise(((i,s)=>{this.destroy(r,((r,a)=>r?s(r):i(a)))}))}if(typeof i!=="function"){throw new p("invalid callback")}if(this[g]){if(this[b]){this[b].push(i)}else{queueMicrotask((()=>i(null,null)))}return}if(!r){r=new l}this[g]=true;this[b]=this[b]||[];this[b].push(i);const onDestroyed=()=>{const r=this[b];this[b]=null;for(let i=0;i{queueMicrotask(onDestroyed)}))}[v](r,i){if(!this[h]||this[h].length===0){this[v]=this[A];return this[A](r,i)}let s=this[A].bind(this);for(let r=this[h].length-1;r>=0;r--){s=this[h][r](s)}this[v]=s;return s(r,i)}dispatch(r,i){if(!i||typeof i!=="object"){throw new p("handler must be an object")}try{if(!r||typeof r!=="object"){throw new p("opts must be an object.")}if(this[g]||this[b]){throw new l}if(this[y]){throw new c}return this[v](r,i)}catch(r){if(typeof i.onError!=="function"){throw new p("invalid onError method")}i.onError(r);return false}}}r.exports=DispatcherBase},93954:(r,i,s)=>{"use strict";const a=s(82361);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}r.exports=Dispatcher},36477:(r,i,s)=>{"use strict";const a=s(86954);const l=s(9647);const{ReadableStreamFrom:c,isBlobLike:p,isReadableStreamLike:d,readableStreamClose:u,createDeferredPromise:A,fullyReadBody:h}=s(16860);const{FormData:g}=s(48076);const{kState:y}=s(73386);const{webidl:b}=s(73721);const{DOMException:C,structuredClone:v}=s(80756);const{Blob:B,File:w}=s(14300);const{kBodyUsed:I}=s(97621);const S=s(39491);const{isErrored:Q}=s(9647);const{isUint8Array:x,isArrayBuffer:N}=s(29830);const{File:R}=s(71575);const{parseMIMEType:T,serializeAMimeType:D}=s(6932);let _=globalThis.ReadableStream;const k=w??R;const P=new TextEncoder;const O=new TextDecoder;function extractBody(r,i=false){if(!_){_=s(35356).ReadableStream}let a=null;if(r instanceof _){a=r}else if(p(r)){a=r.stream()}else{a=new _({async pull(r){r.enqueue(typeof h==="string"?P.encode(h):h);queueMicrotask((()=>u(r)))},start(){},type:undefined})}S(d(a));let A=null;let h=null;let g=null;let y=null;if(typeof r==="string"){h=r;y="text/plain;charset=UTF-8"}else if(r instanceof URLSearchParams){h=r.toString();y="application/x-www-form-urlencoded;charset=UTF-8"}else if(N(r)){h=new Uint8Array(r.slice())}else if(ArrayBuffer.isView(r)){h=new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength))}else if(l.isFormDataLike(r)){const i=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const s=`--${i}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const l=new Uint8Array([13,10]);g=0;let c=false;for(const[i,p]of r){if(typeof p==="string"){const r=P.encode(s+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(p)}\r\n`);a.push(r);g+=r.byteLength}else{const r=P.encode(`${s}; name="${escape(normalizeLinefeeds(i))}"`+(p.name?`; filename="${escape(p.name)}"`:"")+"\r\n"+`Content-Type: ${p.type||"application/octet-stream"}\r\n\r\n`);a.push(r,p,l);if(typeof p.size==="number"){g+=r.byteLength+p.size+l.byteLength}else{c=true}}}const p=P.encode(`--${i}--`);a.push(p);g+=p.byteLength;if(c){g=null}h=r;A=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};y="multipart/form-data; boundary="+i}else if(p(r)){h=r;g=r.size;if(r.type){y=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(l.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof _?r:c(r)}if(typeof h==="string"||l.isBuffer(h)){g=Buffer.byteLength(h)}if(A!=null){let i;a=new _({async start(){i=A(r)[Symbol.asyncIterator]()},async pull(r){const{value:s,done:l}=await i.next();if(l){queueMicrotask((()=>{r.close()}))}else{if(!Q(a)){r.enqueue(new Uint8Array(s))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const b={stream:a,source:h,length:g};return[b,y]}function safelyExtractBody(r,i=false){if(!_){_=s(35356).ReadableStream}if(r instanceof _){S(!l.isDisturbed(r),"The body has already been consumed.");S(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,s]=r.stream.tee();const a=v(s,{transfer:[s]});const[,l]=a.tee();r.stream=i;return{stream:l,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(x(r)){yield r}else{const i=r.stream;if(l.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[I]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new C("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=D(i)}return new B([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){b.brandCheck(this,r);throwIfAborted(this[y]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,s]of this.headers)r[i.toLowerCase()]=s;const i=new g;let s;try{s=new a({headers:r,preservePath:true})}catch(r){throw new C(`${r}`,"AbortError")}s.on("field",((r,s)=>{i.append(r,s)}));s.on("file",((r,s,a,l,c)=>{const p=[];if(l==="base64"||l.toLowerCase()==="base64"){let l="";s.on("data",(r=>{l+=r.toString().replace(/[\r\n]/gm,"");const i=l.length-l.length%4;p.push(Buffer.from(l.slice(0,i),"base64"));l=l.slice(i)}));s.on("end",(()=>{p.push(Buffer.from(l,"base64"));i.append(r,new k(p,a,{type:c}))}))}else{s.on("data",(r=>{p.push(r)}));s.on("end",(()=>{i.append(r,new k(p,a,{type:c}))}))}}));const l=new Promise(((r,i)=>{s.on("finish",r);s.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[y].body))s.write(r);s.end();await l;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const s=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[y].body)){if(!x(r)){throw new TypeError("Expected Uint8Array chunk")}i+=s.decode(r,{stream:true})}i+=s.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new g;for(const[s,a]of r){i.append(s,a)}return i}else{await Promise.resolve();throwIfAborted(this[y]);throw b.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,s){b.brandCheck(r,s);throwIfAborted(r[y]);if(bodyUnusable(r[y].body)){throw new TypeError("Body is unusable")}const a=A();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[y].body==null){successSteps(new Uint8Array);return a.promise}await h(r[y].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||l.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=O.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[y];const s=i.get("content-type");if(s===null){return"failure"}return T(s)}r.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},80756:(r,i,s)=>{"use strict";const{MessageChannel:a,receiveMessageOnPort:l}=s(71267);const c=["GET","HEAD","POST"];const p=new Set(c);const d=[101,204,205,304];const u=[301,302,303,307,308];const A=new Set(u);const h=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const g=new Set(h);const y=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const b=new Set(y);const C=["follow","manual","error"];const v=["GET","HEAD","OPTIONS","TRACE"];const B=new Set(v);const w=["navigate","same-origin","no-cors","cors"];const I=["omit","same-origin","include"];const S=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const Q=["content-encoding","content-language","content-location","content-type","content-length"];const x=["half"];const N=["CONNECT","TRACE","TRACK"];const R=new Set(N);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const D=new Set(T);const _=globalThis.DOMException??(()=>{try{atob("~")}catch(r){return Object.getPrototypeOf(r).constructor}})();let k;const P=globalThis.structuredClone??function structuredClone(r,i=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!k){k=new a}k.port1.unref();k.port2.unref();k.port1.postMessage(r,i?.transfer);return l(k.port2).message};r.exports={DOMException:_,structuredClone:P,subresource:T,forbiddenMethods:N,requestBodyHeader:Q,referrerPolicy:y,requestRedirect:C,requestMode:w,requestCredentials:I,requestCache:S,redirectStatus:u,corsSafeListedMethods:c,nullBodyStatus:d,safeMethods:v,badPorts:h,requestDuplex:x,subresourceSet:D,badPortsSet:g,redirectStatusSet:A,corsSafeListedMethodsSet:p,safeMethodsSet:B,forbiddenMethodsSet:R,referrerPolicySet:b}},6932:(r,i,s)=>{const a=s(39491);const{atob:l}=s(14300);const{isomorphicDecode:c}=s(16860);const p=new TextEncoder;const d=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const u=/(\u000A|\u000D|\u0009|\u0020)/;const A=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(r){a(r.protocol==="data:");let i=URLSerializer(r,true);i=i.slice(5);const s={position:0};let l=collectASequenceOfCodePointsFast(",",i,s);const p=l.length;l=removeASCIIWhitespace(l,true,true);if(s.position>=i.length){return"failure"}s.position++;const d=i.slice(p+1);let u=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(l)){const r=c(u);u=forgivingBase64(r);if(u==="failure"){return"failure"}l=l.slice(0,-6);l=l.replace(/(\u0020)+$/,"");l=l.slice(0,-1)}if(l.startsWith(";")){l="text/plain"+l}let A=parseMIMEType(l);if(A==="failure"){A=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:A,body:u}}function URLSerializer(r,i=false){if(!i){return r.href}const s=r.href;const a=r.hash.length;return a===0?s:s.substring(0,s.length-a)}function collectASequenceOfCodePoints(r,i,s){let a="";while(s.positionr.length){return"failure"}i.position++;let a=collectASequenceOfCodePointsFast(";",r,i);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!d.test(a)){return"failure"}const l=s.toLowerCase();const c=a.toLowerCase();const p={type:l,subtype:c,parameters:new Map,essence:`${l}/${c}`};while(i.positionu.test(r)),r,i);let s=collectASequenceOfCodePoints((r=>r!==";"&&r!=="="),r,i);s=s.toLowerCase();if(i.positionr.length){break}let a=null;if(r[i.position]==='"'){a=collectAnHTTPQuotedString(r,i,true);collectASequenceOfCodePointsFast(";",r,i)}else{a=collectASequenceOfCodePointsFast(";",r,i);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(s.length!==0&&d.test(s)&&(a.length===0||A.test(a))&&!p.parameters.has(s)){p.parameters.set(s,a)}}return p}function forgivingBase64(r){r=r.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(r.length%4===0){r=r.replace(/=?=$/,"")}if(r.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(r)){return"failure"}const i=l(r);const s=new Uint8Array(i.length);for(let r=0;rr!=='"'&&r!=="\\"),r,i);if(i.position>=r.length){break}const s=r[i.position];i.position++;if(s==="\\"){if(i.position>=r.length){c+="\\";break}c+=r[i.position];i.position++}else{a(s==='"');break}}if(s){return c}return r.slice(l,i.position)}function serializeAMimeType(r){a(r!=="failure");const{parameters:i,essence:s}=r;let l=s;for(let[r,s]of i.entries()){l+=";";l+=r;l+="=";if(!d.test(s)){s=s.replace(/(\\|")/g,"\\$1");s='"'+s;s+='"'}l+=s}return l}function isHTTPWhiteSpace(r){return r==="\r"||r==="\n"||r==="\t"||r===" "}function removeHTTPWhitespace(r,i=true,s=true){let a=0;let l=r.length-1;if(i){for(;a0&&isHTTPWhiteSpace(r[l]);l--);}return r.slice(a,l+1)}function isASCIIWhitespace(r){return r==="\r"||r==="\n"||r==="\t"||r==="\f"||r===" "}function removeASCIIWhitespace(r,i=true,s=true){let a=0;let l=r.length-1;if(i){for(;a0&&isASCIIWhitespace(r[l]);l--);}return r.slice(a,l+1)}r.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},71575:(r,i,s)=>{"use strict";const{Blob:a,File:l}=s(14300);const{types:c}=s(73837);const{kState:p}=s(73386);const{isBlobLike:d}=s(16860);const{webidl:u}=s(73721);const{parseMIMEType:A,serializeAMimeType:h}=s(6932);const{kEnumerableProperty:g}=s(9647);const y=new TextEncoder;class File extends a{constructor(r,i,s={}){u.argumentLengthCheck(arguments,2,{header:"File constructor"});r=u.converters["sequence"](r);i=u.converters.USVString(i);s=u.converters.FilePropertyBag(s);const a=i;let l=s.type;let c;e:{if(l){l=A(l);if(l==="failure"){l="";break e}l=h(l).toLowerCase()}c=s.lastModified}super(processBlobParts(r,s),{type:l});this[p]={name:a,lastModified:c,type:l}}get name(){u.brandCheck(this,File);return this[p].name}get lastModified(){u.brandCheck(this,File);return this[p].lastModified}get type(){u.brandCheck(this,File);return this[p].type}}class FileLike{constructor(r,i,s={}){const a=i;const l=s.type;const c=s.lastModified??Date.now();this[p]={blobLike:r,name:a,type:l,lastModified:c}}stream(...r){u.brandCheck(this,FileLike);return this[p].blobLike.stream(...r)}arrayBuffer(...r){u.brandCheck(this,FileLike);return this[p].blobLike.arrayBuffer(...r)}slice(...r){u.brandCheck(this,FileLike);return this[p].blobLike.slice(...r)}text(...r){u.brandCheck(this,FileLike);return this[p].blobLike.text(...r)}get size(){u.brandCheck(this,FileLike);return this[p].blobLike.size}get type(){u.brandCheck(this,FileLike);return this[p].blobLike.type}get name(){u.brandCheck(this,FileLike);return this[p].name}get lastModified(){u.brandCheck(this,FileLike);return this[p].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:g,lastModified:g});u.converters.Blob=u.interfaceConverter(a);u.converters.BlobPart=function(r,i){if(u.util.Type(r)==="Object"){if(d(r)){return u.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||c.isAnyArrayBuffer(r)){return u.converters.BufferSource(r,i)}}return u.converters.USVString(r,i)};u.converters["sequence"]=u.sequenceConverter(u.converters.BlobPart);u.converters.FilePropertyBag=u.dictionaryConverter([{key:"lastModified",converter:u.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:u.converters.DOMString,defaultValue:""},{key:"endings",converter:r=>{r=u.converters.DOMString(r);r=r.toLowerCase();if(r!=="native"){r="transparent"}return r},defaultValue:"transparent"}]);function processBlobParts(r,i){const s=[];for(const a of r){if(typeof a==="string"){let r=a;if(i.endings==="native"){r=convertLineEndingsNative(r)}s.push(y.encode(r))}else if(c.isAnyArrayBuffer(a)||c.isTypedArray(a)){if(!a.buffer){s.push(new Uint8Array(a))}else{s.push(new Uint8Array(a.buffer,a.byteOffset,a.byteLength))}}else if(d(a)){s.push(a)}}return s}function convertLineEndingsNative(r){let i="\n";if(process.platform==="win32"){i="\r\n"}return r.replace(/\r?\n/g,i)}function isFileLike(r){return l&&r instanceof l||r instanceof File||r&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&r[Symbol.toStringTag]==="File"}r.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},48076:(r,i,s)=>{"use strict";const{isBlobLike:a,toUSVString:l,makeIterator:c}=s(16860);const{kState:p}=s(73386);const{File:d,FileLike:u,isFileLike:A}=s(71575);const{webidl:h}=s(73721);const{Blob:g,File:y}=s(14300);const b=y??d;class FormData{constructor(r){if(r!==undefined){throw h.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[p]=[]}append(r,i,s=undefined){h.brandCheck(this,FormData);h.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!a(i)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}r=h.converters.USVString(r);i=a(i)?h.converters.Blob(i,{strict:false}):h.converters.USVString(i);s=arguments.length===3?h.converters.USVString(s):undefined;const l=makeEntry(r,i,s);this[p].push(l)}delete(r){h.brandCheck(this,FormData);h.argumentLengthCheck(arguments,1,{header:"FormData.delete"});r=h.converters.USVString(r);this[p]=this[p].filter((i=>i.name!==r))}get(r){h.brandCheck(this,FormData);h.argumentLengthCheck(arguments,1,{header:"FormData.get"});r=h.converters.USVString(r);const i=this[p].findIndex((i=>i.name===r));if(i===-1){return null}return this[p][i].value}getAll(r){h.brandCheck(this,FormData);h.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});r=h.converters.USVString(r);return this[p].filter((i=>i.name===r)).map((r=>r.value))}has(r){h.brandCheck(this,FormData);h.argumentLengthCheck(arguments,1,{header:"FormData.has"});r=h.converters.USVString(r);return this[p].findIndex((i=>i.name===r))!==-1}set(r,i,s=undefined){h.brandCheck(this,FormData);h.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!a(i)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}r=h.converters.USVString(r);i=a(i)?h.converters.Blob(i,{strict:false}):h.converters.USVString(i);s=arguments.length===3?l(s):undefined;const c=makeEntry(r,i,s);const d=this[p].findIndex((i=>i.name===r));if(d!==-1){this[p]=[...this[p].slice(0,d),c,...this[p].slice(d+1).filter((i=>i.name!==r))]}else{this[p].push(c)}}entries(){h.brandCheck(this,FormData);return c((()=>this[p].map((r=>[r.name,r.value]))),"FormData","key+value")}keys(){h.brandCheck(this,FormData);return c((()=>this[p].map((r=>[r.name,r.value]))),"FormData","key")}values(){h.brandCheck(this,FormData);return c((()=>this[p].map((r=>[r.name,r.value]))),"FormData","value")}forEach(r,i=globalThis){h.brandCheck(this,FormData);h.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[s,a]of this){r.apply(i,[a,s,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(r,i,s){r=Buffer.from(r).toString("utf8");if(typeof i==="string"){i=Buffer.from(i).toString("utf8")}else{if(!A(i)){i=i instanceof g?new b([i],"blob",{type:i.type}):new u(i,"blob",{type:i.type})}if(s!==undefined){const r={type:i.type,lastModified:i.lastModified};i=y&&i instanceof y||i instanceof d?new b([i],s,r):new u(i,s,r)}}return{name:r,value:i}}r.exports={FormData:FormData}},128:r=>{"use strict";const i=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[i]}function setGlobalOrigin(r){if(r===undefined){Object.defineProperty(globalThis,i,{value:undefined,writable:true,enumerable:false,configurable:false});return}const s=new URL(r);if(s.protocol!=="http:"&&s.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${s.protocol}`)}Object.defineProperty(globalThis,i,{value:s,writable:true,enumerable:false,configurable:false})}r.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26909:(r,i,s)=>{"use strict";const{kHeadersList:a,kConstruct:l}=s(97621);const{kGuard:c}=s(73386);const{kEnumerableProperty:p}=s(9647);const{makeIterator:d,isValidHeaderName:u,isValidHeaderValue:A}=s(16860);const{webidl:h}=s(73721);const g=s(39491);const y=Symbol("headers map");const b=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(r){return r===10||r===13||r===9||r===32}function headerValueNormalize(r){let i=0;let s=r.length;while(s>i&&isHTTPWhiteSpaceCharCode(r.charCodeAt(s-1)))--s;while(s>i&&isHTTPWhiteSpaceCharCode(r.charCodeAt(i)))++i;return i===0&&s===r.length?r:r.substring(i,s)}function fill(r,i){if(Array.isArray(i)){for(let s=0;s>","record"]})}}function appendHeader(r,i,s){s=headerValueNormalize(s);if(!u(i)){throw h.errors.invalidArgument({prefix:"Headers.append",value:i,type:"header name"})}else if(!A(s)){throw h.errors.invalidArgument({prefix:"Headers.append",value:s,type:"header value"})}if(r[c]==="immutable"){throw new TypeError("immutable")}else if(r[c]==="request-no-cors"){}return r[a].append(i,s)}class HeadersList{cookies=null;constructor(r){if(r instanceof HeadersList){this[y]=new Map(r[y]);this[b]=r[b];this.cookies=r.cookies===null?null:[...r.cookies]}else{this[y]=new Map(r);this[b]=null}}contains(r){r=r.toLowerCase();return this[y].has(r)}clear(){this[y].clear();this[b]=null;this.cookies=null}append(r,i){this[b]=null;const s=r.toLowerCase();const a=this[y].get(s);if(a){const r=s==="cookie"?"; ":", ";this[y].set(s,{name:a.name,value:`${a.value}${r}${i}`})}else{this[y].set(s,{name:r,value:i})}if(s==="set-cookie"){this.cookies??=[];this.cookies.push(i)}}set(r,i){this[b]=null;const s=r.toLowerCase();if(s==="set-cookie"){this.cookies=[i]}this[y].set(s,{name:r,value:i})}delete(r){this[b]=null;r=r.toLowerCase();if(r==="set-cookie"){this.cookies=null}this[y].delete(r)}get(r){const i=this[y].get(r.toLowerCase());return i===undefined?null:i.value}*[Symbol.iterator](){for(const[r,{value:i}]of this[y]){yield[r,i]}}get entries(){const r={};if(this[y].size){for(const{name:i,value:s}of this[y].values()){r[i]=s}}return r}}class Headers{constructor(r=undefined){if(r===l){return}this[a]=new HeadersList;this[c]="none";if(r!==undefined){r=h.converters.HeadersInit(r);fill(this,r)}}append(r,i){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,{header:"Headers.append"});r=h.converters.ByteString(r);i=h.converters.ByteString(i);return appendHeader(this,r,i)}delete(r){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.delete"});r=h.converters.ByteString(r);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.delete",value:r,type:"header name"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}if(!this[a].contains(r)){return}this[a].delete(r)}get(r){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.get"});r=h.converters.ByteString(r);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.get",value:r,type:"header name"})}return this[a].get(r)}has(r){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.has"});r=h.converters.ByteString(r);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.has",value:r,type:"header name"})}return this[a].contains(r)}set(r,i){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,{header:"Headers.set"});r=h.converters.ByteString(r);i=h.converters.ByteString(i);i=headerValueNormalize(i);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.set",value:r,type:"header name"})}else if(!A(i)){throw h.errors.invalidArgument({prefix:"Headers.set",value:i,type:"header value"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}this[a].set(r,i)}getSetCookie(){h.brandCheck(this,Headers);const r=this[a].cookies;if(r){return[...r]}return[]}get[b](){if(this[a][b]){return this[a][b]}const r=[];const i=[...this[a]].sort(((r,i)=>r[0]r),"Headers","key")}return d((()=>[...this[b].values()]),"Headers","key")}values(){h.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[b];return d((()=>r),"Headers","value")}return d((()=>[...this[b].values()]),"Headers","value")}entries(){h.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[b];return d((()=>r),"Headers","key+value")}return d((()=>[...this[b].values()]),"Headers","key+value")}forEach(r,i=globalThis){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[s,a]of this){r.apply(i,[a,s,this])}}[Symbol.for("nodejs.util.inspect.custom")](){h.brandCheck(this,Headers);return this[a]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:p,delete:p,get:p,has:p,set:p,getSetCookie:p,keys:p,values:p,entries:p,forEach:p,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});h.converters.HeadersInit=function(r){if(h.util.Type(r)==="Object"){if(r[Symbol.iterator]){return h.converters["sequence>"](r)}return h.converters["record"](r)}throw h.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};r.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},63254:(r,i,s)=>{"use strict";const{Response:a,makeNetworkError:l,makeAppropriateNetworkError:c,filterResponse:p,makeResponse:d}=s(36913);const{Headers:u}=s(26909);const{Request:A,makeRequest:h}=s(9787);const g=s(59796);const{bytesMatch:y,makePolicyContainer:b,clonePolicyContainer:C,requestBadPort:v,TAOCheck:B,appendRequestOriginHeader:w,responseLocationURL:I,requestCurrentURL:S,setRequestReferrerPolicyOnRedirect:Q,tryUpgradeRequestToAPotentiallyTrustworthyURL:x,createOpaqueTimingInfo:N,appendFetchMetadata:R,corsCheck:T,crossOriginResourcePolicyCheck:D,determineRequestsReferrer:_,coarsenedSharedCurrentTime:k,createDeferredPromise:P,isBlobLike:O,sameOrigin:L,isCancelled:M,isAborted:U,isErrorLike:H,fullyReadBody:j,readableStreamClose:q,isomorphicEncode:G,urlIsLocal:z,urlIsHttpHttpsScheme:V,urlHasHttpsScheme:W}=s(16860);const{kState:Y,kHeaders:J,kGuard:X,kRealm:K}=s(73386);const $=s(39491);const{safelyExtractBody:Z}=s(36477);const{redirectStatusSet:ee,nullBodyStatus:te,safeMethodsSet:re,requestBodyHeader:ie,subresourceSet:ne,DOMException:se}=s(80756);const{kHeadersList:ae}=s(97621);const oe=s(82361);const{Readable:le,pipeline:ce}=s(12781);const{addAbortListener:pe,isErrored:de,isReadable:ue,nodeMajor:Ae,nodeMinor:me}=s(9647);const{dataURLProcessor:he,serializeAMimeType:fe}=s(6932);const{TransformStream:ge}=s(35356);const{getGlobalDispatcher:ye}=s(35683);const{webidl:Ee}=s(73721);const{STATUS_CODES:be}=s(13685);const Ce=["GET","HEAD"];let ve;let Be=globalThis.ReadableStream;class Fetch extends oe{constructor(r){super();this.dispatcher=r;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(r){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(r);this.emit("terminated",r)}abort(r){if(this.state!=="ongoing"){return}this.state="aborted";if(!r){r=new se("The operation was aborted.","AbortError")}this.serializedAbortReason=r;this.connection?.destroy(r);this.emit("terminated",r)}}function fetch(r,i={}){Ee.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const s=P();let l;try{l=new A(r,i)}catch(r){s.reject(r);return s.promise}const c=l[Y];if(l.signal.aborted){abortFetch(s,c,null,l.signal.reason);return s.promise}const p=c.client.globalObject;if(p?.constructor?.name==="ServiceWorkerGlobalScope"){c.serviceWorkers="none"}let d=null;const u=null;let h=false;let g=null;pe(l.signal,(()=>{h=true;$(g!=null);g.abort(l.signal.reason);abortFetch(s,c,d,l.signal.reason)}));const handleFetchDone=r=>finalizeAndReportTiming(r,"fetch");const processResponse=r=>{if(h){return Promise.resolve()}if(r.aborted){abortFetch(s,c,d,g.serializedAbortReason);return Promise.resolve()}if(r.type==="error"){s.reject(Object.assign(new TypeError("fetch failed"),{cause:r.error}));return Promise.resolve()}d=new a;d[Y]=r;d[K]=u;d[J][ae]=r.headersList;d[J][X]="immutable";d[J][K]=u;s.resolve(d)};g=fetching({request:c,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:i.dispatcher??ye()});return s.promise}function finalizeAndReportTiming(r,i="other"){if(r.type==="error"&&r.aborted){return}if(!r.urlList?.length){return}const s=r.urlList[0];let a=r.timingInfo;let l=r.cacheState;if(!V(s)){return}if(a===null){return}if(!r.timingAllowPassed){a=N({startTime:a.startTime});l=""}a.endTime=k();r.timingInfo=a;markResourceTiming(a,s,i,globalThis,l)}function markResourceTiming(r,i,s,a,l){if(Ae>18||Ae===18&&me>=2){performance.markResourceTiming(r,i.href,s,a,l)}}function abortFetch(r,i,s,a){if(!a){a=new se("The operation was aborted.","AbortError")}r.reject(a);if(i.body!=null&&ue(i.body?.stream)){i.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}if(s==null){return}const l=s[Y];if(l.body!=null&&ue(l.body?.stream)){l.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}}function fetching({request:r,processRequestBodyChunkLength:i,processRequestEndOfBody:s,processResponse:a,processResponseEndOfBody:l,processResponseConsumeBody:c,useParallelQueue:p=false,dispatcher:d}){let u=null;let A=false;if(r.client!=null){u=r.client.globalObject;A=r.client.crossOriginIsolatedCapability}const h=k(A);const g=N({startTime:h});const y={controller:new Fetch(d),request:r,timingInfo:g,processRequestBodyChunkLength:i,processRequestEndOfBody:s,processResponse:a,processResponseConsumeBody:c,processResponseEndOfBody:l,taskDestination:u,crossOriginIsolatedCapability:A};$(!r.body||r.body.stream);if(r.window==="client"){r.window=r.client?.globalObject?.constructor?.name==="Window"?r.client:"no-window"}if(r.origin==="client"){r.origin=r.client?.origin}if(r.policyContainer==="client"){if(r.client!=null){r.policyContainer=C(r.client.policyContainer)}else{r.policyContainer=b()}}if(!r.headersList.contains("accept")){const i="*/*";r.headersList.append("accept",i)}if(!r.headersList.contains("accept-language")){r.headersList.append("accept-language","*")}if(r.priority===null){}if(ne.has(r.destination)){}mainFetch(y).catch((r=>{y.controller.terminate(r)}));return y.controller}async function mainFetch(r,i=false){const s=r.request;let a=null;if(s.localURLsOnly&&!z(S(s))){a=l("local URLs only")}x(s);if(v(s)==="blocked"){a=l("bad port")}if(s.referrerPolicy===""){s.referrerPolicy=s.policyContainer.referrerPolicy}if(s.referrer!=="no-referrer"){s.referrer=_(s)}if(a===null){a=await(async()=>{const i=S(s);if(L(i,s.url)&&s.responseTainting==="basic"||i.protocol==="data:"||(s.mode==="navigate"||s.mode==="websocket")){s.responseTainting="basic";return await schemeFetch(r)}if(s.mode==="same-origin"){return l('request mode cannot be "same-origin"')}if(s.mode==="no-cors"){if(s.redirect!=="follow"){return l('redirect mode cannot be "follow" for "no-cors" request')}s.responseTainting="opaque";return await schemeFetch(r)}if(!V(S(s))){return l("URL scheme must be a HTTP(S) scheme")}s.responseTainting="cors";return await httpFetch(r)})()}if(i){return a}if(a.status!==0&&!a.internalResponse){if(s.responseTainting==="cors"){}if(s.responseTainting==="basic"){a=p(a,"basic")}else if(s.responseTainting==="cors"){a=p(a,"cors")}else if(s.responseTainting==="opaque"){a=p(a,"opaque")}else{$(false)}}let c=a.status===0?a:a.internalResponse;if(c.urlList.length===0){c.urlList.push(...s.urlList)}if(!s.timingAllowFailed){a.timingAllowPassed=true}if(a.type==="opaque"&&c.status===206&&c.rangeRequested&&!s.headers.contains("range")){a=c=l()}if(a.status!==0&&(s.method==="HEAD"||s.method==="CONNECT"||te.includes(c.status))){c.body=null;r.controller.dump=true}if(s.integrity){const processBodyError=i=>fetchFinale(r,l(i));if(s.responseTainting==="opaque"||a.body==null){processBodyError(a.error);return}const processBody=i=>{if(!y(i,s.integrity)){processBodyError("integrity mismatch");return}a.body=Z(i)[0];fetchFinale(r,a)};await j(a.body,processBody,processBodyError)}else{fetchFinale(r,a)}}function schemeFetch(r){if(M(r)&&r.request.redirectCount===0){return Promise.resolve(c(r))}const{request:i}=r;const{protocol:a}=S(i);switch(a){case"about:":{return Promise.resolve(l("about scheme is not supported"))}case"blob:":{if(!ve){ve=s(14300).resolveObjectURL}const r=S(i);if(r.search.length!==0){return Promise.resolve(l("NetworkError when attempting to fetch resource."))}const a=ve(r.toString());if(i.method!=="GET"||!O(a)){return Promise.resolve(l("invalid method"))}const c=Z(a);const p=c[0];const u=G(`${p.length}`);const A=c[1]??"";const h=d({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:u}],["content-type",{name:"Content-Type",value:A}]]});h.body=p;return Promise.resolve(h)}case"data:":{const r=S(i);const s=he(r);if(s==="failure"){return Promise.resolve(l("failed to fetch the data URL"))}const a=fe(s.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:a}]],body:Z(s.body)[0]}))}case"file:":{return Promise.resolve(l("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(r).catch((r=>l(r)))}default:{return Promise.resolve(l("unknown scheme"))}}}function finalizeResponse(r,i){r.request.done=true;if(r.processResponseDone!=null){queueMicrotask((()=>r.processResponseDone(i)))}}function fetchFinale(r,i){if(i.type==="error"){i.urlList=[r.request.urlList[0]];i.timingInfo=N({startTime:r.timingInfo.startTime})}const processResponseEndOfBody=()=>{r.request.done=true;if(r.processResponseEndOfBody!=null){queueMicrotask((()=>r.processResponseEndOfBody(i)))}};if(r.processResponse!=null){queueMicrotask((()=>r.processResponse(i)))}if(i.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(r,i)=>{i.enqueue(r)};const r=new ge({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});i.body={stream:i.body.stream.pipeThrough(r)}}if(r.processResponseConsumeBody!=null){const processBody=s=>r.processResponseConsumeBody(i,s);const processBodyError=s=>r.processResponseConsumeBody(i,s);if(i.body==null){queueMicrotask((()=>processBody(null)))}else{return j(i.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(r){const i=r.request;let s=null;let a=null;const c=r.timingInfo;if(i.serviceWorkers==="all"){}if(s===null){if(i.redirect==="follow"){i.serviceWorkers="none"}a=s=await httpNetworkOrCacheFetch(r);if(i.responseTainting==="cors"&&T(i,s)==="failure"){return l("cors failure")}if(B(i,s)==="failure"){i.timingAllowFailed=true}}if((i.responseTainting==="opaque"||s.type==="opaque")&&D(i.origin,i.client,i.destination,a)==="blocked"){return l("blocked")}if(ee.has(a.status)){if(i.redirect!=="manual"){r.controller.connection.destroy()}if(i.redirect==="error"){s=l("unexpected redirect")}else if(i.redirect==="manual"){s=a}else if(i.redirect==="follow"){s=await httpRedirectFetch(r,s)}else{$(false)}}s.timingInfo=c;return s}function httpRedirectFetch(r,i){const s=r.request;const a=i.internalResponse?i.internalResponse:i;let c;try{c=I(a,S(s).hash);if(c==null){return i}}catch(r){return Promise.resolve(l(r))}if(!V(c)){return Promise.resolve(l("URL scheme must be a HTTP(S) scheme"))}if(s.redirectCount===20){return Promise.resolve(l("redirect count exceeded"))}s.redirectCount+=1;if(s.mode==="cors"&&(c.username||c.password)&&!L(s,c)){return Promise.resolve(l('cross origin not allowed for request mode "cors"'))}if(s.responseTainting==="cors"&&(c.username||c.password)){return Promise.resolve(l('URL cannot contain credentials for request mode "cors"'))}if(a.status!==303&&s.body!=null&&s.body.source==null){return Promise.resolve(l())}if([301,302].includes(a.status)&&s.method==="POST"||a.status===303&&!Ce.includes(s.method)){s.method="GET";s.body=null;for(const r of ie){s.headersList.delete(r)}}if(!L(S(s),c)){s.headersList.delete("authorization");s.headersList.delete("proxy-authorization",true);s.headersList.delete("cookie");s.headersList.delete("host")}if(s.body!=null){$(s.body.source!=null);s.body=Z(s.body.source)[0]}const p=r.timingInfo;p.redirectEndTime=p.postRedirectStartTime=k(r.crossOriginIsolatedCapability);if(p.redirectStartTime===0){p.redirectStartTime=p.startTime}s.urlList.push(c);Q(s,a);return mainFetch(r,true)}async function httpNetworkOrCacheFetch(r,i=false,s=false){const a=r.request;let p=null;let d=null;let u=null;const A=null;const g=false;if(a.window==="no-window"&&a.redirect==="error"){p=r;d=a}else{d=h(a);p={...r};p.request=d}const y=a.credentials==="include"||a.credentials==="same-origin"&&a.responseTainting==="basic";const b=d.body?d.body.length:null;let C=null;if(d.body==null&&["POST","PUT"].includes(d.method)){C="0"}if(b!=null){C=G(`${b}`)}if(C!=null){d.headersList.append("content-length",C)}if(b!=null&&d.keepalive){}if(d.referrer instanceof URL){d.headersList.append("referer",G(d.referrer.href))}w(d);R(d);if(!d.headersList.contains("user-agent")){d.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(d.cache==="default"&&(d.headersList.contains("if-modified-since")||d.headersList.contains("if-none-match")||d.headersList.contains("if-unmodified-since")||d.headersList.contains("if-match")||d.headersList.contains("if-range"))){d.cache="no-store"}if(d.cache==="no-cache"&&!d.preventNoCacheCacheControlHeaderModification&&!d.headersList.contains("cache-control")){d.headersList.append("cache-control","max-age=0")}if(d.cache==="no-store"||d.cache==="reload"){if(!d.headersList.contains("pragma")){d.headersList.append("pragma","no-cache")}if(!d.headersList.contains("cache-control")){d.headersList.append("cache-control","no-cache")}}if(d.headersList.contains("range")){d.headersList.append("accept-encoding","identity")}if(!d.headersList.contains("accept-encoding")){if(W(S(d))){d.headersList.append("accept-encoding","br, gzip, deflate")}else{d.headersList.append("accept-encoding","gzip, deflate")}}d.headersList.delete("host");if(y){}if(A==null){d.cache="no-store"}if(d.mode!=="no-store"&&d.mode!=="reload"){}if(u==null){if(d.mode==="only-if-cached"){return l("only if cached")}const r=await httpNetworkFetch(p,y,s);if(!re.has(d.method)&&r.status>=200&&r.status<=399){}if(g&&r.status===304){}if(u==null){u=r}}u.urlList=[...d.urlList];if(d.headersList.contains("range")){u.rangeRequested=true}u.requestIncludesCredentials=y;if(u.status===407){if(a.window==="no-window"){return l()}if(M(r)){return c(r)}return l("proxy authentication required")}if(u.status===421&&!s&&(a.body==null||a.body.source!=null)){if(M(r)){return c(r)}r.controller.connection.destroy();u=await httpNetworkOrCacheFetch(r,i,true)}if(i){}return u}async function httpNetworkFetch(r,i=false,a=false){$(!r.controller.connection||r.controller.connection.destroyed);r.controller.connection={abort:null,destroyed:false,destroy(r){if(!this.destroyed){this.destroyed=true;this.abort?.(r??new se("The operation was aborted.","AbortError"))}}};const p=r.request;let A=null;const h=r.timingInfo;const y=null;if(y==null){p.cache="no-store"}const b=a?"yes":"no";if(p.mode==="websocket"){}else{}let C=null;if(p.body==null&&r.processRequestEndOfBody){queueMicrotask((()=>r.processRequestEndOfBody()))}else if(p.body!=null){const processBodyChunk=async function*(i){if(M(r)){return}yield i;r.processRequestBodyChunkLength?.(i.byteLength)};const processEndOfBody=()=>{if(M(r)){return}if(r.processRequestEndOfBody){r.processRequestEndOfBody()}};const processBodyError=i=>{if(M(r)){return}if(i.name==="AbortError"){r.controller.abort()}else{r.controller.terminate(i)}};C=async function*(){try{for await(const r of p.body.stream){yield*processBodyChunk(r)}processEndOfBody()}catch(r){processBodyError(r)}}()}try{const{body:i,status:s,statusText:a,headersList:l,socket:c}=await dispatch({body:C});if(c){A=d({status:s,statusText:a,headersList:l,socket:c})}else{const c=i[Symbol.asyncIterator]();r.controller.next=()=>c.next();A=d({status:s,statusText:a,headersList:l})}}catch(i){if(i.name==="AbortError"){r.controller.connection.destroy();return c(r,i)}return l(i)}const pullAlgorithm=()=>{r.controller.resume()};const cancelAlgorithm=i=>{r.controller.abort(i)};if(!Be){Be=s(35356).ReadableStream}const v=new Be({async start(i){r.controller.controller=i},async pull(r){await pullAlgorithm(r)},async cancel(r){await cancelAlgorithm(r)}},{highWaterMark:0,size(){return 1}});A.body={stream:v};r.controller.on("terminated",onAborted);r.controller.resume=async()=>{while(true){let i;let s;try{const{done:s,value:a}=await r.controller.next();if(U(r)){break}i=s?undefined:a}catch(a){if(r.controller.ended&&!h.encodedBodySize){i=undefined}else{i=a;s=true}}if(i===undefined){q(r.controller.controller);finalizeResponse(r,A);return}h.decodedBodySize+=i?.byteLength??0;if(s){r.controller.terminate(i);return}r.controller.controller.enqueue(new Uint8Array(i));if(de(v)){r.controller.terminate();return}if(!r.controller.controller.desiredSize){return}}};function onAborted(i){if(U(r)){A.aborted=true;if(ue(v)){r.controller.controller.error(r.controller.serializedAbortReason)}}else{if(ue(v)){r.controller.controller.error(new TypeError("terminated",{cause:H(i)?i:undefined}))}}r.controller.connection.destroy()}return A;async function dispatch({body:i}){const s=S(p);const a=r.controller.dispatcher;return new Promise(((l,c)=>a.dispatch({path:s.pathname+s.search,origin:s.origin,method:p.method,body:r.controller.dispatcher.isMockActive?p.body&&(p.body.source||p.body.stream):i,headers:p.headersList.entries,maxRedirections:0,upgrade:p.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(i){const{connection:s}=r.controller;if(s.destroyed){i(new se("The operation was aborted.","AbortError"))}else{r.controller.on("terminated",i);this.abort=s.abort=i}},onHeaders(r,i,s,a){if(r<200){return}let c=[];let d="";const A=new u;if(Array.isArray(i)){for(let r=0;rr.trim()))}else if(s.toLowerCase()==="location"){d=a}A[ae].append(s,a)}}else{const r=Object.keys(i);for(const s of r){const r=i[s];if(s.toLowerCase()==="content-encoding"){c=r.toLowerCase().split(",").map((r=>r.trim())).reverse()}else if(s.toLowerCase()==="location"){d=r}A[ae].append(s,r)}}this.body=new le({read:s});const h=[];const y=p.redirect==="follow"&&d&&ee.has(r);if(p.method!=="HEAD"&&p.method!=="CONNECT"&&!te.includes(r)&&!y){for(const r of c){if(r==="x-gzip"||r==="gzip"){h.push(g.createGunzip({flush:g.constants.Z_SYNC_FLUSH,finishFlush:g.constants.Z_SYNC_FLUSH}))}else if(r==="deflate"){h.push(g.createInflate())}else if(r==="br"){h.push(g.createBrotliDecompress())}else{h.length=0;break}}}l({status:r,statusText:a,headersList:A[ae],body:h.length?ce(this.body,...h,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(i){if(r.controller.dump){return}const s=i;h.encodedBodySize+=s.byteLength;return this.body.push(s)},onComplete(){if(this.abort){r.controller.off("terminated",this.abort)}r.controller.ended=true;this.body.push(null)},onError(i){if(this.abort){r.controller.off("terminated",this.abort)}this.body?.destroy(i);r.controller.terminate(i);c(i)},onUpgrade(r,i,s){if(r!==101){return}const a=new u;for(let r=0;r{"use strict";const{extractBody:a,mixinBody:l,cloneBody:c}=s(36477);const{Headers:p,fill:d,HeadersList:u}=s(26909);const{FinalizationRegistry:A}=s(79374)();const h=s(9647);const{isValidHTTPToken:g,sameOrigin:y,normalizeMethod:b,makePolicyContainer:C,normalizeMethodRecord:v}=s(16860);const{forbiddenMethodsSet:B,corsSafeListedMethodsSet:w,referrerPolicy:I,requestRedirect:S,requestMode:Q,requestCredentials:x,requestCache:N,requestDuplex:R}=s(80756);const{kEnumerableProperty:T}=h;const{kHeaders:D,kSignal:_,kState:k,kGuard:P,kRealm:O}=s(73386);const{webidl:L}=s(73721);const{getGlobalOrigin:M}=s(128);const{URLSerializer:U}=s(6932);const{kHeadersList:H,kConstruct:j}=s(97621);const q=s(39491);const{getMaxListeners:G,setMaxListeners:z,getEventListeners:V,defaultMaxListeners:W}=s(82361);let Y=globalThis.TransformStream;const J=Symbol("abortController");const X=new A((({signal:r,abort:i})=>{r.removeEventListener("abort",i)}));class Request{constructor(r,i={}){if(r===j){return}L.argumentLengthCheck(arguments,1,{header:"Request constructor"});r=L.converters.RequestInfo(r);i=L.converters.RequestInit(i);this[O]={settingsObject:{baseUrl:M(),get origin(){return this.baseUrl?.origin},policyContainer:C()}};let l=null;let c=null;const A=this[O].settingsObject.baseUrl;let I=null;if(typeof r==="string"){let i;try{i=new URL(r,A)}catch(i){throw new TypeError("Failed to parse URL from "+r,{cause:i})}if(i.username||i.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+r)}l=makeRequest({urlList:[i]});c="cors"}else{q(r instanceof Request);l=r[k];I=r[_]}const S=this[O].settingsObject.origin;let Q="client";if(l.window?.constructor?.name==="EnvironmentSettingsObject"&&y(l.window,S)){Q=l.window}if(i.window!=null){throw new TypeError(`'window' option '${Q}' must be null`)}if("window"in i){Q="no-window"}l=makeRequest({method:l.method,headersList:l.headersList,unsafeRequest:l.unsafeRequest,client:this[O].settingsObject,window:Q,priority:l.priority,origin:l.origin,referrer:l.referrer,referrerPolicy:l.referrerPolicy,mode:l.mode,credentials:l.credentials,cache:l.cache,redirect:l.redirect,integrity:l.integrity,keepalive:l.keepalive,reloadNavigation:l.reloadNavigation,historyNavigation:l.historyNavigation,urlList:[...l.urlList]});const x=Object.keys(i).length!==0;if(x){if(l.mode==="navigate"){l.mode="same-origin"}l.reloadNavigation=false;l.historyNavigation=false;l.origin="client";l.referrer="client";l.referrerPolicy="";l.url=l.urlList[l.urlList.length-1];l.urlList=[l.url]}if(i.referrer!==undefined){const r=i.referrer;if(r===""){l.referrer="no-referrer"}else{let i;try{i=new URL(r,A)}catch(i){throw new TypeError(`Referrer "${r}" is not a valid URL.`,{cause:i})}if(i.protocol==="about:"&&i.hostname==="client"||S&&!y(i,this[O].settingsObject.baseUrl)){l.referrer="client"}else{l.referrer=i}}}if(i.referrerPolicy!==undefined){l.referrerPolicy=i.referrerPolicy}let N;if(i.mode!==undefined){N=i.mode}else{N=c}if(N==="navigate"){throw L.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(N!=null){l.mode=N}if(i.credentials!==undefined){l.credentials=i.credentials}if(i.cache!==undefined){l.cache=i.cache}if(l.cache==="only-if-cached"&&l.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(i.redirect!==undefined){l.redirect=i.redirect}if(i.integrity!=null){l.integrity=String(i.integrity)}if(i.keepalive!==undefined){l.keepalive=Boolean(i.keepalive)}if(i.method!==undefined){let r=i.method;if(!g(r)){throw new TypeError(`'${r}' is not a valid HTTP method.`)}if(B.has(r.toUpperCase())){throw new TypeError(`'${r}' HTTP method is unsupported.`)}r=v[r]??b(r);l.method=r}if(i.signal!==undefined){I=i.signal}this[k]=l;const R=new AbortController;this[_]=R.signal;this[_][O]=this[O];if(I!=null){if(!I||typeof I.aborted!=="boolean"||typeof I.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(I.aborted){R.abort(I.reason)}else{this[J]=R;const r=new WeakRef(R);const abort=function(){const i=r.deref();if(i!==undefined){i.abort(this.reason)}};try{if(typeof G==="function"&&G(I)===W){z(100,I)}else if(V(I,"abort").length>=W){z(100,I)}}catch{}h.addAbortListener(I,abort);X.register(R,{signal:I,abort:abort})}}this[D]=new p(j);this[D][H]=l.headersList;this[D][P]="request";this[D][O]=this[O];if(N==="no-cors"){if(!w.has(l.method)){throw new TypeError(`'${l.method} is unsupported in no-cors mode.`)}this[D][P]="request-no-cors"}if(x){const r=this[D][H];const s=i.headers!==undefined?i.headers:new u(r);r.clear();if(s instanceof u){for(const[i,a]of s){r.append(i,a)}r.cookies=s.cookies}else{d(this[D],s)}}const T=r instanceof Request?r[k].body:null;if((i.body!=null||T!=null)&&(l.method==="GET"||l.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let U=null;if(i.body!=null){const[r,s]=a(i.body,l.keepalive);U=r;if(s&&!this[D][H].contains("content-type")){this[D].append("content-type",s)}}const K=U??T;if(K!=null&&K.source==null){if(U!=null&&i.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(l.mode!=="same-origin"&&l.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}l.useCORSPreflightFlag=true}let $=K;if(U==null&&T!=null){if(h.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!Y){Y=s(35356).TransformStream}const r=new Y;T.stream.pipeThrough(r);$={source:T.source,length:T.length,stream:r.readable}}this[k].body=$}get method(){L.brandCheck(this,Request);return this[k].method}get url(){L.brandCheck(this,Request);return U(this[k].url)}get headers(){L.brandCheck(this,Request);return this[D]}get destination(){L.brandCheck(this,Request);return this[k].destination}get referrer(){L.brandCheck(this,Request);if(this[k].referrer==="no-referrer"){return""}if(this[k].referrer==="client"){return"about:client"}return this[k].referrer.toString()}get referrerPolicy(){L.brandCheck(this,Request);return this[k].referrerPolicy}get mode(){L.brandCheck(this,Request);return this[k].mode}get credentials(){return this[k].credentials}get cache(){L.brandCheck(this,Request);return this[k].cache}get redirect(){L.brandCheck(this,Request);return this[k].redirect}get integrity(){L.brandCheck(this,Request);return this[k].integrity}get keepalive(){L.brandCheck(this,Request);return this[k].keepalive}get isReloadNavigation(){L.brandCheck(this,Request);return this[k].reloadNavigation}get isHistoryNavigation(){L.brandCheck(this,Request);return this[k].historyNavigation}get signal(){L.brandCheck(this,Request);return this[_]}get body(){L.brandCheck(this,Request);return this[k].body?this[k].body.stream:null}get bodyUsed(){L.brandCheck(this,Request);return!!this[k].body&&h.isDisturbed(this[k].body.stream)}get duplex(){L.brandCheck(this,Request);return"half"}clone(){L.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const r=cloneRequest(this[k]);const i=new Request(j);i[k]=r;i[O]=this[O];i[D]=new p(j);i[D][H]=r.headersList;i[D][P]=this[D][P];i[D][O]=this[D][O];const s=new AbortController;if(this.signal.aborted){s.abort(this.signal.reason)}else{h.addAbortListener(this.signal,(()=>{s.abort(this.signal.reason)}))}i[_]=s.signal;return i}}l(Request);function makeRequest(r){const i={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...r,headersList:r.headersList?new u(r.headersList):new u};i.url=i.urlList[0];return i}function cloneRequest(r){const i=makeRequest({...r,body:null});if(r.body!=null){i.body=c(r.body)}return i}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});L.converters.Request=L.interfaceConverter(Request);L.converters.RequestInfo=function(r){if(typeof r==="string"){return L.converters.USVString(r)}if(r instanceof Request){return L.converters.Request(r)}return L.converters.USVString(r)};L.converters.AbortSignal=L.interfaceConverter(AbortSignal);L.converters.RequestInit=L.dictionaryConverter([{key:"method",converter:L.converters.ByteString},{key:"headers",converter:L.converters.HeadersInit},{key:"body",converter:L.nullableConverter(L.converters.BodyInit)},{key:"referrer",converter:L.converters.USVString},{key:"referrerPolicy",converter:L.converters.DOMString,allowedValues:I},{key:"mode",converter:L.converters.DOMString,allowedValues:Q},{key:"credentials",converter:L.converters.DOMString,allowedValues:x},{key:"cache",converter:L.converters.DOMString,allowedValues:N},{key:"redirect",converter:L.converters.DOMString,allowedValues:S},{key:"integrity",converter:L.converters.DOMString},{key:"keepalive",converter:L.converters.boolean},{key:"signal",converter:L.nullableConverter((r=>L.converters.AbortSignal(r,{strict:false})))},{key:"window",converter:L.converters.any},{key:"duplex",converter:L.converters.DOMString,allowedValues:R}]);r.exports={Request:Request,makeRequest:makeRequest}},36913:(r,i,s)=>{"use strict";const{Headers:a,HeadersList:l,fill:c}=s(26909);const{extractBody:p,cloneBody:d,mixinBody:u}=s(36477);const A=s(9647);const{kEnumerableProperty:h}=A;const{isValidReasonPhrase:g,isCancelled:y,isAborted:b,isBlobLike:C,serializeJavascriptValueToJSONString:v,isErrorLike:B,isomorphicEncode:w}=s(16860);const{redirectStatusSet:I,nullBodyStatus:S,DOMException:Q}=s(80756);const{kState:x,kHeaders:N,kGuard:R,kRealm:T}=s(73386);const{webidl:D}=s(73721);const{FormData:_}=s(48076);const{getGlobalOrigin:k}=s(128);const{URLSerializer:P}=s(6932);const{kHeadersList:O,kConstruct:L}=s(97621);const M=s(39491);const{types:U}=s(73837);const H=globalThis.ReadableStream||s(35356).ReadableStream;const j=new TextEncoder("utf-8");class Response{static error(){const r={settingsObject:{}};const i=new Response;i[x]=makeNetworkError();i[T]=r;i[N][O]=i[x].headersList;i[N][R]="immutable";i[N][T]=r;return i}static json(r,i={}){D.argumentLengthCheck(arguments,1,{header:"Response.json"});if(i!==null){i=D.converters.ResponseInit(i)}const s=j.encode(v(r));const a=p(s);const l={settingsObject:{}};const c=new Response;c[T]=l;c[N][R]="response";c[N][T]=l;initializeResponse(c,i,{body:a[0],type:"application/json"});return c}static redirect(r,i=302){const s={settingsObject:{}};D.argumentLengthCheck(arguments,1,{header:"Response.redirect"});r=D.converters.USVString(r);i=D.converters["unsigned short"](i);let a;try{a=new URL(r,k())}catch(i){throw Object.assign(new TypeError("Failed to parse URL from "+r),{cause:i})}if(!I.has(i)){throw new RangeError("Invalid status code "+i)}const l=new Response;l[T]=s;l[N][R]="immutable";l[N][T]=s;l[x].status=i;const c=w(P(a));l[x].headersList.append("location",c);return l}constructor(r=null,i={}){if(r!==null){r=D.converters.BodyInit(r)}i=D.converters.ResponseInit(i);this[T]={settingsObject:{}};this[x]=makeResponse({});this[N]=new a(L);this[N][R]="response";this[N][O]=this[x].headersList;this[N][T]=this[T];let s=null;if(r!=null){const[i,a]=p(r);s={body:i,type:a}}initializeResponse(this,i,s)}get type(){D.brandCheck(this,Response);return this[x].type}get url(){D.brandCheck(this,Response);const r=this[x].urlList;const i=r[r.length-1]??null;if(i===null){return""}return P(i,true)}get redirected(){D.brandCheck(this,Response);return this[x].urlList.length>1}get status(){D.brandCheck(this,Response);return this[x].status}get ok(){D.brandCheck(this,Response);return this[x].status>=200&&this[x].status<=299}get statusText(){D.brandCheck(this,Response);return this[x].statusText}get headers(){D.brandCheck(this,Response);return this[N]}get body(){D.brandCheck(this,Response);return this[x].body?this[x].body.stream:null}get bodyUsed(){D.brandCheck(this,Response);return!!this[x].body&&A.isDisturbed(this[x].body.stream)}clone(){D.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw D.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const r=cloneResponse(this[x]);const i=new Response;i[x]=r;i[T]=this[T];i[N][O]=r.headersList;i[N][R]=this[N][R];i[N][T]=this[N][T];return i}}u(Response);Object.defineProperties(Response.prototype,{type:h,url:h,status:h,ok:h,redirected:h,statusText:h,headers:h,clone:h,body:h,bodyUsed:h,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:h,redirect:h,error:h});function cloneResponse(r){if(r.internalResponse){return filterResponse(cloneResponse(r.internalResponse),r.type)}const i=makeResponse({...r,body:null});if(r.body!=null){i.body=d(r.body)}return i}function makeResponse(r){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...r,headersList:r.headersList?new l(r.headersList):new l,urlList:r.urlList?[...r.urlList]:[]}}function makeNetworkError(r){const i=B(r);return makeResponse({type:"error",status:0,error:i?r:new Error(r?String(r):r),aborted:r&&r.name==="AbortError"})}function makeFilteredResponse(r,i){i={internalResponse:r,...i};return new Proxy(r,{get(r,s){return s in i?i[s]:r[s]},set(r,s,a){M(!(s in i));r[s]=a;return true}})}function filterResponse(r,i){if(i==="basic"){return makeFilteredResponse(r,{type:"basic",headersList:r.headersList})}else if(i==="cors"){return makeFilteredResponse(r,{type:"cors",headersList:r.headersList})}else if(i==="opaque"){return makeFilteredResponse(r,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(i==="opaqueredirect"){return makeFilteredResponse(r,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{M(false)}}function makeAppropriateNetworkError(r,i=null){M(y(r));return b(r)?makeNetworkError(Object.assign(new Q("The operation was aborted.","AbortError"),{cause:i})):makeNetworkError(Object.assign(new Q("Request was cancelled."),{cause:i}))}function initializeResponse(r,i,s){if(i.status!==null&&(i.status<200||i.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in i&&i.statusText!=null){if(!g(String(i.statusText))){throw new TypeError("Invalid statusText")}}if("status"in i&&i.status!=null){r[x].status=i.status}if("statusText"in i&&i.statusText!=null){r[x].statusText=i.statusText}if("headers"in i&&i.headers!=null){c(r[N],i.headers)}if(s){if(S.includes(r.status)){throw D.errors.exception({header:"Response constructor",message:"Invalid response status code "+r.status})}r[x].body=s.body;if(s.type!=null&&!r[x].headersList.contains("Content-Type")){r[x].headersList.append("content-type",s.type)}}}D.converters.ReadableStream=D.interfaceConverter(H);D.converters.FormData=D.interfaceConverter(_);D.converters.URLSearchParams=D.interfaceConverter(URLSearchParams);D.converters.XMLHttpRequestBodyInit=function(r){if(typeof r==="string"){return D.converters.USVString(r)}if(C(r)){return D.converters.Blob(r,{strict:false})}if(U.isArrayBuffer(r)||U.isTypedArray(r)||U.isDataView(r)){return D.converters.BufferSource(r)}if(A.isFormDataLike(r)){return D.converters.FormData(r,{strict:false})}if(r instanceof URLSearchParams){return D.converters.URLSearchParams(r)}return D.converters.DOMString(r)};D.converters.BodyInit=function(r){if(r instanceof H){return D.converters.ReadableStream(r)}if(r?.[Symbol.asyncIterator]){return r}return D.converters.XMLHttpRequestBodyInit(r)};D.converters.ResponseInit=D.dictionaryConverter([{key:"status",converter:D.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:D.converters.ByteString,defaultValue:""},{key:"headers",converter:D.converters.HeadersInit}]);r.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},73386:r=>{"use strict";r.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},16860:(r,i,s)=>{"use strict";const{redirectStatusSet:a,referrerPolicySet:l,badPortsSet:c}=s(80756);const{getGlobalOrigin:p}=s(128);const{performance:d}=s(4074);const{isBlobLike:u,toUSVString:A,ReadableStreamFrom:h}=s(9647);const g=s(39491);const{isUint8Array:y}=s(29830);let b=[];let C;try{C=s(6113);const r=["sha256","sha384","sha512"];b=C.getHashes().filter((i=>r.includes(i)))}catch{}function responseURL(r){const i=r.urlList;const s=i.length;return s===0?null:i[s-1].toString()}function responseLocationURL(r,i){if(!a.has(r.status)){return null}let s=r.headersList.get("location");if(s!==null&&isValidHeaderValue(s)){s=new URL(s,responseURL(r))}if(s&&!s.hash){s.hash=i}return s}function requestCurrentURL(r){return r.urlList[r.urlList.length-1]}function requestBadPort(r){const i=requestCurrentURL(r);if(urlIsHttpHttpsScheme(i)&&c.has(i.port)){return"blocked"}return"allowed"}function isErrorLike(r){return r instanceof Error||(r?.constructor?.name==="Error"||r?.constructor?.name==="DOMException")}function isValidReasonPhrase(r){for(let i=0;i=32&&s<=126||s>=128&&s<=255)){return false}}return true}function isTokenCharCode(r){switch(r){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return r>=33&&r<=126}}function isValidHTTPToken(r){if(r.length===0){return false}for(let i=0;i0){for(let r=a.length;r!==0;r--){const i=a[r-1].trim();if(l.has(i)){c=i;break}}}if(c!==""){r.referrerPolicy=c}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(r){let i=null;i=r.mode;r.headersList.set("sec-fetch-mode",i)}function appendRequestOriginHeader(r){let i=r.origin;if(r.responseTainting==="cors"||r.mode==="websocket"){if(i){r.headersList.append("origin",i)}}else if(r.method!=="GET"&&r.method!=="HEAD"){switch(r.referrerPolicy){case"no-referrer":i=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(r.origin&&urlHasHttpsScheme(r.origin)&&!urlHasHttpsScheme(requestCurrentURL(r))){i=null}break;case"same-origin":if(!sameOrigin(r,requestCurrentURL(r))){i=null}break;default:}if(i){r.headersList.append("origin",i)}}}function coarsenedSharedCurrentTime(r){return d.now()}function createOpaqueTimingInfo(r){return{startTime:r.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:r.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(r){return{referrerPolicy:r.referrerPolicy}}function determineRequestsReferrer(r){const i=r.referrerPolicy;g(i);let s=null;if(r.referrer==="client"){const r=p();if(!r||r.origin==="null"){return"no-referrer"}s=new URL(r)}else if(r.referrer instanceof URL){s=r.referrer}let a=stripURLForReferrer(s);const l=stripURLForReferrer(s,true);if(a.toString().length>4096){a=l}const c=sameOrigin(r,a);const d=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(r.url);switch(i){case"origin":return l!=null?l:stripURLForReferrer(s,true);case"unsafe-url":return a;case"same-origin":return c?l:"no-referrer";case"origin-when-cross-origin":return c?a:l;case"strict-origin-when-cross-origin":{const i=requestCurrentURL(r);if(sameOrigin(a,i)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(i)){return"no-referrer"}return l}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":l}}function stripURLForReferrer(r,i){g(r instanceof URL);if(r.protocol==="file:"||r.protocol==="about:"||r.protocol==="blank:"){return"no-referrer"}r.username="";r.password="";r.hash="";if(i){r.pathname="";r.search=""}return r}function isURLPotentiallyTrustworthy(r){if(!(r instanceof URL)){return false}if(r.href==="about:blank"||r.href==="about:srcdoc"){return true}if(r.protocol==="data:")return true;if(r.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(r.origin);function isOriginPotentiallyTrustworthy(r){if(r==null||r==="null")return false;const i=new URL(r);if(i.protocol==="https:"||i.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||(i.hostname==="localhost"||i.hostname.includes("localhost."))||i.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(r,i){if(C===undefined){return true}const s=parseMetadata(i);if(s==="no metadata"){return true}if(s.length===0){return true}const a=getStrongestMetadata(s);const l=filterMetadataListByAlgorithm(s,a);for(const i of l){const s=i.algo;const a=i.hash;let l=C.createHash(s).update(r).digest("base64");if(l[l.length-1]==="="){if(l[l.length-2]==="="){l=l.slice(0,-2)}else{l=l.slice(0,-1)}}if(compareBase64Mixed(l,a)){return true}}return false}const v=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(r){const i=[];let s=true;for(const a of r.split(" ")){s=false;const r=v.exec(a);if(r===null||r.groups===undefined||r.groups.algo===undefined){continue}const l=r.groups.algo.toLowerCase();if(b.includes(l)){i.push(r.groups)}}if(s===true){return"no metadata"}return i}function getStrongestMetadata(r){let i=r[0].algo;if(i[3]==="5"){return i}for(let s=1;s{r=s;i=a}));return{promise:s,resolve:r,reject:i}}function isAborted(r){return r.controller.state==="aborted"}function isCancelled(r){return r.controller.state==="aborted"||r.controller.state==="terminated"}const B={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(B,null);function normalizeMethod(r){return B[r.toLowerCase()]??r}function serializeJavascriptValueToJSONString(r){const i=JSON.stringify(r);if(i===undefined){throw new TypeError("Value is not JSON serializable")}g(typeof i==="string");return i}const w=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(r,i,s){const a={index:0,kind:s,target:r};const l={next(){if(Object.getPrototypeOf(this)!==l){throw new TypeError(`'next' called on an object that does not implement interface ${i} Iterator.`)}const{index:r,kind:s,target:c}=a;const p=c();const d=p.length;if(r>=d){return{value:undefined,done:true}}const u=p[r];a.index=r+1;return iteratorResult(u,s)},[Symbol.toStringTag]:`${i} Iterator`};Object.setPrototypeOf(l,w);return Object.setPrototypeOf({},l)}function iteratorResult(r,i){let s;switch(i){case"key":{s=r[0];break}case"value":{s=r[1];break}case"key+value":{s=r;break}}return{value:s,done:false}}async function fullyReadBody(r,i,s){const a=i;const l=s;let c;try{c=r.stream.getReader()}catch(r){l(r);return}try{const r=await readAllBytes(c);a(r)}catch(r){l(r)}}let I=globalThis.ReadableStream;function isReadableStreamLike(r){if(!I){I=s(35356).ReadableStream}return r instanceof I||r[Symbol.toStringTag]==="ReadableStream"&&typeof r.tee==="function"}const S=65535;function isomorphicDecode(r){if(r.lengthr+String.fromCharCode(i)),"")}function readableStreamClose(r){try{r.close()}catch(r){if(!r.message.includes("Controller is already closed")){throw r}}}function isomorphicEncode(r){for(let i=0;iObject.prototype.hasOwnProperty.call(r,i));r.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:h,toUSVString:A,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:u,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:Q,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:B,parseMetadata:parseMetadata}},73721:(r,i,s)=>{"use strict";const{types:a}=s(73837);const{hasOwn:l,toUSVString:c}=s(16860);const p={};p.converters={};p.util={};p.errors={};p.errors.exception=function(r){return new TypeError(`${r.header}: ${r.message}`)};p.errors.conversionFailed=function(r){const i=r.types.length===1?"":" one of";const s=`${r.argument} could not be converted to`+`${i}: ${r.types.join(", ")}.`;return p.errors.exception({header:r.prefix,message:s})};p.errors.invalidArgument=function(r){return p.errors.exception({header:r.prefix,message:`"${r.value}" is an invalid ${r.type}.`})};p.brandCheck=function(r,i,s=undefined){if(s?.strict!==false&&!(r instanceof i)){throw new TypeError("Illegal invocation")}else{return r?.[Symbol.toStringTag]===i.prototype[Symbol.toStringTag]}};p.argumentLengthCheck=function({length:r},i,s){if(rl){throw p.errors.exception({header:"Integer conversion",message:`Value must be between ${c}-${l}, got ${d}.`})}return d}if(!Number.isNaN(d)&&a.clamp===true){d=Math.min(Math.max(d,c),l);if(Math.floor(d)%2===0){d=Math.floor(d)}else{d=Math.ceil(d)}return d}if(Number.isNaN(d)||d===0&&Object.is(0,d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){return 0}d=p.util.IntegerPart(d);d=d%Math.pow(2,i);if(s==="signed"&&d>=Math.pow(2,i)-1){return d-Math.pow(2,i)}return d};p.util.IntegerPart=function(r){const i=Math.floor(Math.abs(r));if(r<0){return-1*i}return i};p.sequenceConverter=function(r){return i=>{if(p.util.Type(i)!=="Object"){throw p.errors.exception({header:"Sequence",message:`Value of type ${p.util.Type(i)} is not an Object.`})}const s=i?.[Symbol.iterator]?.();const a=[];if(s===undefined||typeof s.next!=="function"){throw p.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:i,value:l}=s.next();if(i){break}a.push(r(l))}return a}};p.recordConverter=function(r,i){return s=>{if(p.util.Type(s)!=="Object"){throw p.errors.exception({header:"Record",message:`Value of type ${p.util.Type(s)} is not an Object.`})}const l={};if(!a.isProxy(s)){const a=Object.keys(s);for(const c of a){const a=r(c);const p=i(s[c]);l[a]=p}return l}const c=Reflect.ownKeys(s);for(const a of c){const c=Reflect.getOwnPropertyDescriptor(s,a);if(c?.enumerable){const c=r(a);const p=i(s[a]);l[c]=p}}return l}};p.interfaceConverter=function(r){return(i,s={})=>{if(s.strict!==false&&!(i instanceof r)){throw p.errors.exception({header:r.name,message:`Expected ${i} to be an instance of ${r.name}.`})}return i}};p.dictionaryConverter=function(r){return i=>{const s=p.util.Type(i);const a={};if(s==="Null"||s==="Undefined"){return a}else if(s!=="Object"){throw p.errors.exception({header:"Dictionary",message:`Expected ${i} to be one of: Null, Undefined, Object.`})}for(const s of r){const{key:r,defaultValue:c,required:d,converter:u}=s;if(d===true){if(!l(i,r)){throw p.errors.exception({header:"Dictionary",message:`Missing required key "${r}".`})}}let A=i[r];const h=l(s,"defaultValue");if(h&&A!==null){A=A??c}if(d||h||A!==undefined){A=u(A);if(s.allowedValues&&!s.allowedValues.includes(A)){throw p.errors.exception({header:"Dictionary",message:`${A} is not an accepted type. Expected one of ${s.allowedValues.join(", ")}.`})}a[r]=A}}return a}};p.nullableConverter=function(r){return i=>{if(i===null){return i}return r(i)}};p.converters.DOMString=function(r,i={}){if(r===null&&i.legacyNullToEmptyString){return""}if(typeof r==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(r)};p.converters.ByteString=function(r){const i=p.converters.DOMString(r);for(let r=0;r255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${r} has a value of ${i.charCodeAt(r)} which is greater than 255.`)}}return i};p.converters.USVString=c;p.converters.boolean=function(r){const i=Boolean(r);return i};p.converters.any=function(r){return r};p.converters["long long"]=function(r){const i=p.util.ConvertToInt(r,64,"signed");return i};p.converters["unsigned long long"]=function(r){const i=p.util.ConvertToInt(r,64,"unsigned");return i};p.converters["unsigned long"]=function(r){const i=p.util.ConvertToInt(r,32,"unsigned");return i};p.converters["unsigned short"]=function(r,i){const s=p.util.ConvertToInt(r,16,"unsigned",i);return s};p.converters.ArrayBuffer=function(r,i={}){if(p.util.Type(r)!=="Object"||!a.isAnyArrayBuffer(r)){throw p.errors.conversionFailed({prefix:`${r}`,argument:`${r}`,types:["ArrayBuffer"]})}if(i.allowShared===false&&a.isSharedArrayBuffer(r)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};p.converters.TypedArray=function(r,i,s={}){if(p.util.Type(r)!=="Object"||!a.isTypedArray(r)||r.constructor.name!==i.name){throw p.errors.conversionFailed({prefix:`${i.name}`,argument:`${r}`,types:[i.name]})}if(s.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};p.converters.DataView=function(r,i={}){if(p.util.Type(r)!=="Object"||!a.isDataView(r)){throw p.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(i.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};p.converters.BufferSource=function(r,i={}){if(a.isAnyArrayBuffer(r)){return p.converters.ArrayBuffer(r,i)}if(a.isTypedArray(r)){return p.converters.TypedArray(r,r.constructor)}if(a.isDataView(r)){return p.converters.DataView(r,i)}throw new TypeError(`Could not convert ${r} to a BufferSource.`)};p.converters["sequence"]=p.sequenceConverter(p.converters.ByteString);p.converters["sequence>"]=p.sequenceConverter(p.converters["sequence"]);p.converters["record"]=p.recordConverter(p.converters.ByteString,p.converters.ByteString);r.exports={webidl:p}},72444:r=>{"use strict";function getEncoding(r){if(!r){return"failure"}switch(r.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}r.exports={getEncoding:getEncoding}},46528:(r,i,s)=>{"use strict";const{staticPropertyDescriptors:a,readOperation:l,fireAProgressEvent:c}=s(92882);const{kState:p,kError:d,kResult:u,kEvents:A,kAborted:h}=s(13738);const{webidl:g}=s(73721);const{kEnumerableProperty:y}=s(9647);class FileReader extends EventTarget{constructor(){super();this[p]="empty";this[u]=null;this[d]=null;this[A]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(r){g.brandCheck(this,FileReader);g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});r=g.converters.Blob(r,{strict:false});l(this,r,"ArrayBuffer")}readAsBinaryString(r){g.brandCheck(this,FileReader);g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});r=g.converters.Blob(r,{strict:false});l(this,r,"BinaryString")}readAsText(r,i=undefined){g.brandCheck(this,FileReader);g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});r=g.converters.Blob(r,{strict:false});if(i!==undefined){i=g.converters.DOMString(i)}l(this,r,"Text",i)}readAsDataURL(r){g.brandCheck(this,FileReader);g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});r=g.converters.Blob(r,{strict:false});l(this,r,"DataURL")}abort(){if(this[p]==="empty"||this[p]==="done"){this[u]=null;return}if(this[p]==="loading"){this[p]="done";this[u]=null}this[h]=true;c("abort",this);if(this[p]!=="loading"){c("loadend",this)}}get readyState(){g.brandCheck(this,FileReader);switch(this[p]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){g.brandCheck(this,FileReader);return this[u]}get error(){g.brandCheck(this,FileReader);return this[d]}get onloadend(){g.brandCheck(this,FileReader);return this[A].loadend}set onloadend(r){g.brandCheck(this,FileReader);if(this[A].loadend){this.removeEventListener("loadend",this[A].loadend)}if(typeof r==="function"){this[A].loadend=r;this.addEventListener("loadend",r)}else{this[A].loadend=null}}get onerror(){g.brandCheck(this,FileReader);return this[A].error}set onerror(r){g.brandCheck(this,FileReader);if(this[A].error){this.removeEventListener("error",this[A].error)}if(typeof r==="function"){this[A].error=r;this.addEventListener("error",r)}else{this[A].error=null}}get onloadstart(){g.brandCheck(this,FileReader);return this[A].loadstart}set onloadstart(r){g.brandCheck(this,FileReader);if(this[A].loadstart){this.removeEventListener("loadstart",this[A].loadstart)}if(typeof r==="function"){this[A].loadstart=r;this.addEventListener("loadstart",r)}else{this[A].loadstart=null}}get onprogress(){g.brandCheck(this,FileReader);return this[A].progress}set onprogress(r){g.brandCheck(this,FileReader);if(this[A].progress){this.removeEventListener("progress",this[A].progress)}if(typeof r==="function"){this[A].progress=r;this.addEventListener("progress",r)}else{this[A].progress=null}}get onload(){g.brandCheck(this,FileReader);return this[A].load}set onload(r){g.brandCheck(this,FileReader);if(this[A].load){this.removeEventListener("load",this[A].load)}if(typeof r==="function"){this[A].load=r;this.addEventListener("load",r)}else{this[A].load=null}}get onabort(){g.brandCheck(this,FileReader);return this[A].abort}set onabort(r){g.brandCheck(this,FileReader);if(this[A].abort){this.removeEventListener("abort",this[A].abort)}if(typeof r==="function"){this[A].abort=r;this.addEventListener("abort",r)}else{this[A].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:y,readAsBinaryString:y,readAsText:y,readAsDataURL:y,abort:y,readyState:y,result:y,error:y,onloadstart:y,onprogress:y,onload:y,onabort:y,onerror:y,onloadend:y,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});r.exports={FileReader:FileReader}},96002:(r,i,s)=>{"use strict";const{webidl:a}=s(73721);const l=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(r,i={}){r=a.converters.DOMString(r);i=a.converters.ProgressEventInit(i??{});super(r,i);this[l]={lengthComputable:i.lengthComputable,loaded:i.loaded,total:i.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[l].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[l].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[l].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}]);r.exports={ProgressEvent:ProgressEvent}},13738:r=>{"use strict";r.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},92882:(r,i,s)=>{"use strict";const{kState:a,kError:l,kResult:c,kAborted:p,kLastProgressEventFired:d}=s(13738);const{ProgressEvent:u}=s(96002);const{getEncoding:A}=s(72444);const{DOMException:h}=s(80756);const{serializeAMimeType:g,parseMIMEType:y}=s(6932);const{types:b}=s(73837);const{StringDecoder:C}=s(71576);const{btoa:v}=s(14300);const B={enumerable:true,writable:false,configurable:false};function readOperation(r,i,s,u){if(r[a]==="loading"){throw new h("Invalid state","InvalidStateError")}r[a]="loading";r[c]=null;r[l]=null;const A=i.stream();const g=A.getReader();const y=[];let C=g.read();let v=true;(async()=>{while(!r[p]){try{const{done:A,value:h}=await C;if(v&&!r[p]){queueMicrotask((()=>{fireAProgressEvent("loadstart",r)}))}v=false;if(!A&&b.isUint8Array(h)){y.push(h);if((r[d]===undefined||Date.now()-r[d]>=50)&&!r[p]){r[d]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",r)}))}C=g.read()}else if(A){queueMicrotask((()=>{r[a]="done";try{const a=packageData(y,s,i.type,u);if(r[p]){return}r[c]=a;fireAProgressEvent("load",r)}catch(i){r[l]=i;fireAProgressEvent("error",r)}if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}catch(i){if(r[p]){return}queueMicrotask((()=>{r[a]="done";r[l]=i;fireAProgressEvent("error",r);if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}})()}function fireAProgressEvent(r,i){const s=new u(r,{bubbles:false,cancelable:false});i.dispatchEvent(s)}function packageData(r,i,s,a){switch(i){case"DataURL":{let i="data:";const a=y(s||"application/octet-stream");if(a!=="failure"){i+=g(a)}i+=";base64,";const l=new C("latin1");for(const s of r){i+=v(l.write(s))}i+=v(l.end());return i}case"Text":{let i="failure";if(a){i=A(a)}if(i==="failure"&&s){const r=y(s);if(r!=="failure"){i=A(r.parameters.get("charset"))}}if(i==="failure"){i="UTF-8"}return decode(r,i)}case"ArrayBuffer":{const i=combineByteSequences(r);return i.buffer}case"BinaryString":{let i="";const s=new C("latin1");for(const a of r){i+=s.write(a)}i+=s.end();return i}}}function decode(r,i){const s=combineByteSequences(r);const a=BOMSniffing(s);let l=0;if(a!==null){i=a;l=a==="UTF-8"?3:2}const c=s.slice(l);return new TextDecoder(i).decode(c)}function BOMSniffing(r){const[i,s,a]=r;if(i===239&&s===187&&a===191){return"UTF-8"}else if(i===254&&s===255){return"UTF-16BE"}else if(i===255&&s===254){return"UTF-16LE"}return null}function combineByteSequences(r){const i=r.reduce(((r,i)=>r+i.byteLength),0);let s=0;return r.reduce(((r,i)=>{r.set(i,s);s+=i.byteLength;return r}),new Uint8Array(i))}r.exports={staticPropertyDescriptors:B,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},35683:(r,i,s)=>{"use strict";const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:l}=s(83501);const c=s(38551);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new c)}function setGlobalDispatcher(r){if(!r||typeof r.dispatch!=="function"){throw new l("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:r,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}r.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},73563:r=>{"use strict";r.exports=class DecoratorHandler{constructor(r){this.handler=r}onConnect(...r){return this.handler.onConnect(...r)}onError(...r){return this.handler.onError(...r)}onUpgrade(...r){return this.handler.onUpgrade(...r)}onHeaders(...r){return this.handler.onHeaders(...r)}onData(...r){return this.handler.onData(...r)}onComplete(...r){return this.handler.onComplete(...r)}onBodySent(...r){return this.handler.onBodySent(...r)}}},36086:(r,i,s)=>{"use strict";const a=s(9647);const{kBodyUsed:l}=s(97621);const c=s(39491);const{InvalidArgumentError:p}=s(83501);const d=s(82361);const u=[300,301,302,303,307,308];const A=Symbol("body");class BodyAsyncIterable{constructor(r){this[A]=r;this[l]=false}async*[Symbol.asyncIterator](){c(!this[l],"disturbed");this[l]=true;yield*this[A]}}class RedirectHandler{constructor(r,i,s,u){if(i!=null&&(!Number.isInteger(i)||i<0)){throw new p("maxRedirections must be a positive number")}a.validateHandler(u,s.method,s.upgrade);this.dispatch=r;this.location=null;this.abort=null;this.opts={...s,maxRedirections:0};this.maxRedirections=i;this.handler=u;this.history=[];if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){c(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[l]=false;d.prototype.on.call(this.opts.body,"data",(function(){this[l]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(r){this.abort=r;this.handler.onConnect(r,{history:this.history})}onUpgrade(r,i,s){this.handler.onUpgrade(r,i,s)}onError(r){this.handler.onError(r)}onHeaders(r,i,s,l){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(r,i);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(r,i,s,l)}const{origin:c,pathname:p,search:d}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const u=d?`${p}${d}`:p;this.opts.headers=cleanRequestHeaders(this.opts.headers,r===303,this.opts.origin!==c);this.opts.path=u;this.opts.origin=c;this.opts.maxRedirections=0;this.opts.query=null;if(r===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(r){if(this.location){}else{return this.handler.onData(r)}}onComplete(r){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(r)}}onBodySent(r){if(this.handler.onBodySent){this.handler.onBodySent(r)}}}function parseLocation(r,i){if(u.indexOf(r)===-1){return null}for(let r=0;r{const a=s(39491);const{kRetryHandlerDefaultRetry:l}=s(97621);const{RequestRetryError:c}=s(83501);const{isDisturbed:p,parseHeaders:d,parseRangeHeader:u}=s(9647);function calculateRetryAfterHeader(r){const i=Date.now();const s=new Date(r).getTime()-i;return s}class RetryHandler{constructor(r,i){const{retryOptions:s,...a}=r;const{retry:c,maxRetries:p,maxTimeout:d,minTimeout:u,timeoutFactor:A,methods:h,errorCodes:g,retryAfter:y,statusCodes:b}=s??{};this.dispatch=i.dispatch;this.handler=i.handler;this.opts=a;this.abort=null;this.aborted=false;this.retryOpts={retry:c??RetryHandler[l],retryAfter:y??true,maxTimeout:d??30*1e3,timeout:u??500,timeoutFactor:A??2,maxRetries:p??5,methods:h??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:b??[500,502,503,504,429],errorCodes:g??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((r=>{this.aborted=true;if(this.abort){this.abort(r)}else{this.reason=r}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(r,i,s){if(this.handler.onUpgrade){this.handler.onUpgrade(r,i,s)}}onConnect(r){if(this.aborted){r(this.reason)}else{this.abort=r}}onBodySent(r){if(this.handler.onBodySent)return this.handler.onBodySent(r)}static[l](r,{state:i,opts:s},a){const{statusCode:l,code:c,headers:p}=r;const{method:d,retryOptions:u}=s;const{maxRetries:A,timeout:h,maxTimeout:g,timeoutFactor:y,statusCodes:b,errorCodes:C,methods:v}=u;let{counter:B,currentTimeout:w}=i;w=w!=null&&w>0?w:h;if(c&&c!=="UND_ERR_REQ_RETRY"&&c!=="UND_ERR_SOCKET"&&!C.includes(c)){a(r);return}if(Array.isArray(v)&&!v.includes(d)){a(r);return}if(l!=null&&Array.isArray(b)&&!b.includes(l)){a(r);return}if(B>A){a(r);return}let I=p!=null&&p["retry-after"];if(I){I=Number(I);I=isNaN(I)?calculateRetryAfterHeader(I):I*1e3}const S=I>0?Math.min(I,g):Math.min(w*y**B,g);i.currentTimeout=S;setTimeout((()=>a(null)),S)}onHeaders(r,i,s,l){const p=d(i);this.retryCount+=1;if(r>=300){this.abort(new c("Request failed",r,{headers:p,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(r!==206){return true}const i=u(p["content-range"]);if(!i){this.abort(new c("Content-Range mismatch",r,{headers:p,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==p.etag){this.abort(new c("ETag mismatch",r,{headers:p,count:this.retryCount}));return false}const{start:l,size:d,end:A=d}=i;a(this.start===l,"content-range mismatch");a(this.end==null||this.end===A,"content-range mismatch");this.resume=s;return true}if(this.end==null){if(r===206){const c=u(p["content-range"]);if(c==null){return this.handler.onHeaders(r,i,s,l)}const{start:d,size:A,end:h=A}=c;a(d!=null&&Number.isFinite(d)&&this.start!==d,"content-range mismatch");a(Number.isFinite(d));a(h!=null&&Number.isFinite(h)&&this.end!==h,"invalid content-length");this.start=d;this.end=h}if(this.end==null){const r=p["content-length"];this.end=r!=null?Number(r):null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=s;this.etag=p.etag!=null?p.etag:null;return this.handler.onHeaders(r,i,s,l)}const A=new c("Request failed",r,{headers:p,count:this.retryCount});this.abort(A);return false}onData(r){this.start+=r.length;return this.handler.onData(r)}onComplete(r){this.retryCount=0;return this.handler.onComplete(r)}onError(r){if(this.aborted||p(this.opts.body)){return this.handler.onError(r)}this.retryOpts.retry(r,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(r){if(r!=null||this.aborted||p(this.opts.body)){return this.handler.onError(r)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(r){this.handler.onError(r)}}}}r.exports=RetryHandler},23163:(r,i,s)=>{"use strict";const a=s(36086);function createRedirectInterceptor({maxRedirections:r}){return i=>function Intercept(s,l){const{maxRedirections:c=r}=s;if(!c){return i(s,l)}const p=new a(i,c,s,l);s={...s,maxRedirections:0};return i(s,p)}}r.exports=createRedirectInterceptor},50446:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SPECIAL_HEADERS=i.HEADER_STATE=i.MINOR=i.MAJOR=i.CONNECTION_TOKEN_CHARS=i.HEADER_CHARS=i.TOKEN=i.STRICT_TOKEN=i.HEX=i.URL_CHAR=i.STRICT_URL_CHAR=i.USERINFO_CHARS=i.MARK=i.ALPHANUM=i.NUM=i.HEX_MAP=i.NUM_MAP=i.ALPHA=i.FINISH=i.H_METHOD_MAP=i.METHOD_MAP=i.METHODS_RTSP=i.METHODS_ICE=i.METHODS_HTTP=i.METHODS=i.LENIENT_FLAGS=i.FLAGS=i.TYPE=i.ERROR=void 0;const a=s(88675);var l;(function(r){r[r["OK"]=0]="OK";r[r["INTERNAL"]=1]="INTERNAL";r[r["STRICT"]=2]="STRICT";r[r["LF_EXPECTED"]=3]="LF_EXPECTED";r[r["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";r[r["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";r[r["INVALID_METHOD"]=6]="INVALID_METHOD";r[r["INVALID_URL"]=7]="INVALID_URL";r[r["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";r[r["INVALID_VERSION"]=9]="INVALID_VERSION";r[r["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";r[r["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";r[r["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";r[r["INVALID_STATUS"]=13]="INVALID_STATUS";r[r["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";r[r["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";r[r["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";r[r["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";r[r["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";r[r["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";r[r["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";r[r["PAUSED"]=21]="PAUSED";r[r["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";r[r["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";r[r["USER"]=24]="USER"})(l=i.ERROR||(i.ERROR={}));var c;(function(r){r[r["BOTH"]=0]="BOTH";r[r["REQUEST"]=1]="REQUEST";r[r["RESPONSE"]=2]="RESPONSE"})(c=i.TYPE||(i.TYPE={}));var p;(function(r){r[r["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";r[r["CHUNKED"]=8]="CHUNKED";r[r["UPGRADE"]=16]="UPGRADE";r[r["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";r[r["SKIPBODY"]=64]="SKIPBODY";r[r["TRAILING"]=128]="TRAILING";r[r["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(p=i.FLAGS||(i.FLAGS={}));var d;(function(r){r[r["HEADERS"]=1]="HEADERS";r[r["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";r[r["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(d=i.LENIENT_FLAGS||(i.LENIENT_FLAGS={}));var u;(function(r){r[r["DELETE"]=0]="DELETE";r[r["GET"]=1]="GET";r[r["HEAD"]=2]="HEAD";r[r["POST"]=3]="POST";r[r["PUT"]=4]="PUT";r[r["CONNECT"]=5]="CONNECT";r[r["OPTIONS"]=6]="OPTIONS";r[r["TRACE"]=7]="TRACE";r[r["COPY"]=8]="COPY";r[r["LOCK"]=9]="LOCK";r[r["MKCOL"]=10]="MKCOL";r[r["MOVE"]=11]="MOVE";r[r["PROPFIND"]=12]="PROPFIND";r[r["PROPPATCH"]=13]="PROPPATCH";r[r["SEARCH"]=14]="SEARCH";r[r["UNLOCK"]=15]="UNLOCK";r[r["BIND"]=16]="BIND";r[r["REBIND"]=17]="REBIND";r[r["UNBIND"]=18]="UNBIND";r[r["ACL"]=19]="ACL";r[r["REPORT"]=20]="REPORT";r[r["MKACTIVITY"]=21]="MKACTIVITY";r[r["CHECKOUT"]=22]="CHECKOUT";r[r["MERGE"]=23]="MERGE";r[r["M-SEARCH"]=24]="M-SEARCH";r[r["NOTIFY"]=25]="NOTIFY";r[r["SUBSCRIBE"]=26]="SUBSCRIBE";r[r["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";r[r["PATCH"]=28]="PATCH";r[r["PURGE"]=29]="PURGE";r[r["MKCALENDAR"]=30]="MKCALENDAR";r[r["LINK"]=31]="LINK";r[r["UNLINK"]=32]="UNLINK";r[r["SOURCE"]=33]="SOURCE";r[r["PRI"]=34]="PRI";r[r["DESCRIBE"]=35]="DESCRIBE";r[r["ANNOUNCE"]=36]="ANNOUNCE";r[r["SETUP"]=37]="SETUP";r[r["PLAY"]=38]="PLAY";r[r["PAUSE"]=39]="PAUSE";r[r["TEARDOWN"]=40]="TEARDOWN";r[r["GET_PARAMETER"]=41]="GET_PARAMETER";r[r["SET_PARAMETER"]=42]="SET_PARAMETER";r[r["REDIRECT"]=43]="REDIRECT";r[r["RECORD"]=44]="RECORD";r[r["FLUSH"]=45]="FLUSH"})(u=i.METHODS||(i.METHODS={}));i.METHODS_HTTP=[u.DELETE,u.GET,u.HEAD,u.POST,u.PUT,u.CONNECT,u.OPTIONS,u.TRACE,u.COPY,u.LOCK,u.MKCOL,u.MOVE,u.PROPFIND,u.PROPPATCH,u.SEARCH,u.UNLOCK,u.BIND,u.REBIND,u.UNBIND,u.ACL,u.REPORT,u.MKACTIVITY,u.CHECKOUT,u.MERGE,u["M-SEARCH"],u.NOTIFY,u.SUBSCRIBE,u.UNSUBSCRIBE,u.PATCH,u.PURGE,u.MKCALENDAR,u.LINK,u.UNLINK,u.PRI,u.SOURCE];i.METHODS_ICE=[u.SOURCE];i.METHODS_RTSP=[u.OPTIONS,u.DESCRIBE,u.ANNOUNCE,u.SETUP,u.PLAY,u.PAUSE,u.TEARDOWN,u.GET_PARAMETER,u.SET_PARAMETER,u.REDIRECT,u.RECORD,u.FLUSH,u.GET,u.POST];i.METHOD_MAP=a.enumToMap(u);i.H_METHOD_MAP={};Object.keys(i.METHOD_MAP).forEach((r=>{if(/^H/.test(r)){i.H_METHOD_MAP[r]=i.METHOD_MAP[r]}}));var A;(function(r){r[r["SAFE"]=0]="SAFE";r[r["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";r[r["UNSAFE"]=2]="UNSAFE"})(A=i.FINISH||(i.FINISH={}));i.ALPHA=[];for(let r="A".charCodeAt(0);r<="Z".charCodeAt(0);r++){i.ALPHA.push(String.fromCharCode(r));i.ALPHA.push(String.fromCharCode(r+32))}i.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};i.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};i.NUM=["0","1","2","3","4","5","6","7","8","9"];i.ALPHANUM=i.ALPHA.concat(i.NUM);i.MARK=["-","_",".","!","~","*","'","(",")"];i.USERINFO_CHARS=i.ALPHANUM.concat(i.MARK).concat(["%",";",":","&","=","+","$",","]);i.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(i.ALPHANUM);i.URL_CHAR=i.STRICT_URL_CHAR.concat(["\t","\f"]);for(let r=128;r<=255;r++){i.URL_CHAR.push(r)}i.HEX=i.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);i.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(i.ALPHANUM);i.TOKEN=i.STRICT_TOKEN.concat([" "]);i.HEADER_CHARS=["\t"];for(let r=32;r<=255;r++){if(r!==127){i.HEADER_CHARS.push(r)}}i.CONNECTION_TOKEN_CHARS=i.HEADER_CHARS.filter((r=>r!==44));i.MAJOR=i.NUM_MAP;i.MINOR=i.MAJOR;var h;(function(r){r[r["GENERAL"]=0]="GENERAL";r[r["CONNECTION"]=1]="CONNECTION";r[r["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";r[r["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";r[r["UPGRADE"]=4]="UPGRADE";r[r["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";r[r["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(h=i.HEADER_STATE||(i.HEADER_STATE={}));i.SPECIAL_HEADERS={connection:h.CONNECTION,"content-length":h.CONTENT_LENGTH,"proxy-connection":h.CONNECTION,"transfer-encoding":h.TRANSFER_ENCODING,upgrade:h.UPGRADE}},92959:r=>{r.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJsbGh0dHBfc3RhdHVzX25hbWUAIRpsbGh0dHBfc2V0X2xlbmllbnRfaGVhZGVycwAiIWxsaHR0cF9zZXRfbGVuaWVudF9jaHVua2VkX2xlbmd0aAAjHWxsaHR0cF9zZXRfbGVuaWVudF9rZWVwX2FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCsLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0Hhp4CAAA8LQaShgIAADwtBy6yAgAAPC0H+sYCAAA8LQcCkgIAADwtBq6SAgAAPC0GNqICAAA8LQeKmgIAADwtBgLCAgAAPC0G5r4CAAA8LQdekgIAADwtB75+AgAAPC0Hhn4CAAA8LQfqfgIAADwtB8qCAgAAPC0Gor4CAAA8LQa6ygIAADwtBiLCAgAAPC0Hsp4CAAA8LQYKigIAADwtBjp2AgAAPC0HQroCAAA8LQcqjgIAADwtBxbKAgAAPC0HfnICAAA8LQdKcgIAADwtBxKCAgAAPC0HXoICAAA8LQaKfgIAADwtB7a6AgAAPC0GrsICAAA8LQdSlgIAADwtBzK6AgAAPC0H6roCAAA8LQfyrgIAADwtB0rCAgAAPC0HxnYCAAA8LQbuggIAADwtB96uAgAAPC0GQsYCAAA8LQdexgIAADwtBoq2AgAAPC0HUp4CAAA8LQeCrgIAADwtBn6yAgAAPC0HrsYCAAA8LQdWfgIAADwtByrGAgAAPC0HepYCAAA8LQdSegIAADwtB9JyAgAAPC0GnsoCAAA8LQbGdgIAADwtBoJ2AgAAPC0G5sYCAAA8LQbywgIAADwtBkqGAgAAPC0GzpoCAAA8LQemsgIAADwtBrJ6AgAAPC0HUq4CAAA8LQfemgIAADwtBgKaAgAAPC0GwoYCAAA8LQf6egIAADwtBjaOAgAAPC0GJrYCAAA8LQfeigIAADwtBoLGAgAAPC0Gun4CAAA8LQcalgIAADwtB6J6AgAAPC0GTooCAAA8LQcKvgIAADwtBw52AgAAPC0GLrICAAA8LQeGdgIAADwtBja+AgAAPC0HqoYCAAA8LQbStgIAADwtB0q+AgAAPC0HfsoCAAA8LQdKygIAADwtB8LCAgAAPC0GpooCAAA8LQfmjgIAADwtBmZ6AgAAPC0G1rICAAA8LQZuwgIAADwtBkrKAgAAPC0G2q4CAAA8LQcKigIAADwtB+LKAgAAPC0GepYCAAA8LQdCigIAADwtBup6AgAAPC0GBnoCAAA8LEMqAgIAAAAtB1qGAgAAhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAgAiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCBCIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQcaRgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIwIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAggiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2ioCAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCNCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIMIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZqAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAjgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCECIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZWQgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAI8IgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAhQiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEGqm4CAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCQCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIYIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZOAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCJCIERQ0AIAAgBBGAgICAAAAhAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIsIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAigiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2iICAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCUCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIcIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABBwpmAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCICIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZSUgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAJMIgRFDQAgACAEEYCAgIAAACEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAlQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCWCIERQ0AIAAgBBGAgICAAAAhAwsgAwtFAQF/AkACQCAALwEwQRRxQRRHDQBBASEDIAAtAChBAUYNASAALwEyQeUARiEDDAELIAAtAClBBUYhAwsgACADOgAuQQAL/gEBA39BASEDAkAgAC8BMCIEQQhxDQAgACkDIEIAUiEDCwJAAkAgAC0ALkUNAEEBIQUgAC0AKUEFRg0BQQEhBSAEQcAAcUUgA3FBAUcNAQtBACEFIARBwABxDQBBAiEFIARB//8DcSIDQQhxDQACQCADQYAEcUUNAAJAIAAtAChBAUcNACAALQAtQQpxDQBBBQ8LQQQPCwJAIANBIHENAAJAIAAtAChBAUYNACAALwEyQf//A3EiAEGcf2pB5ABJDQAgAEHMAUYNACAAQbACRg0AQQQhBSAEQShxRQ0CIANBiARxQYAERg0CC0EADwtBAEEDIAApAyBQGyEFCyAFC2IBAn9BACEBAkAgAC0AKEEBRg0AIAAvATJB//8DcSICQZx/akHkAEkNACACQcwBRg0AIAJBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhASAAQYgEcUGABEYNACAAQShxRSEBCyABC6cBAQN/AkACQAJAIAAtACpFDQAgAC0AK0UNAEEAIQMgAC8BMCIEQQJxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4ABgQGCAYMBhAGFAYYBhwGIAYkBigGLAYwBjQGOAY8BkAGRAZIBkwGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwHLAcoBuAHJAbkByAG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAQDcAQtBACEQDMYBC0EOIRAMxQELQQ0hEAzEAQtBDyEQDMMBC0EQIRAMwgELQRMhEAzBAQtBFCEQDMABC0EVIRAMvwELQRYhEAy+AQtBFyEQDL0BC0EYIRAMvAELQRkhEAy7AQtBGiEQDLoBC0EbIRAMuQELQRwhEAy4AQtBCCEQDLcBC0EdIRAMtgELQSAhEAy1AQtBHyEQDLQBC0EHIRAMswELQSEhEAyyAQtBIiEQDLEBC0EeIRAMsAELQSMhEAyvAQtBEiEQDK4BC0ERIRAMrQELQSQhEAysAQtBJSEQDKsBC0EmIRAMqgELQSchEAypAQtBwwEhEAyoAQtBKSEQDKcBC0ErIRAMpgELQSwhEAylAQtBLSEQDKQBC0EuIRAMowELQS8hEAyiAQtBxAEhEAyhAQtBMCEQDKABC0E0IRAMnwELQQwhEAyeAQtBMSEQDJ0BC0EyIRAMnAELQTMhEAybAQtBOSEQDJoBC0E1IRAMmQELQcUBIRAMmAELQQshEAyXAQtBOiEQDJYBC0E2IRAMlQELQQohEAyUAQtBNyEQDJMBC0E4IRAMkgELQTwhEAyRAQtBOyEQDJABC0E9IRAMjwELQQkhEAyOAQtBKCEQDI0BC0E+IRAMjAELQT8hEAyLAQtBwAAhEAyKAQtBwQAhEAyJAQtBwgAhEAyIAQtBwwAhEAyHAQtBxAAhEAyGAQtBxQAhEAyFAQtBxgAhEAyEAQtBKiEQDIMBC0HHACEQDIIBC0HIACEQDIEBC0HJACEQDIABC0HKACEQDH8LQcsAIRAMfgtBzQAhEAx9C0HMACEQDHwLQc4AIRAMewtBzwAhEAx6C0HQACEQDHkLQdEAIRAMeAtB0gAhEAx3C0HTACEQDHYLQdQAIRAMdQtB1gAhEAx0C0HVACEQDHMLQQYhEAxyC0HXACEQDHELQQUhEAxwC0HYACEQDG8LQQQhEAxuC0HZACEQDG0LQdoAIRAMbAtB2wAhEAxrC0HcACEQDGoLQQMhEAxpC0HdACEQDGgLQd4AIRAMZwtB3wAhEAxmC0HhACEQDGULQeAAIRAMZAtB4gAhEAxjC0HjACEQDGILQQIhEAxhC0HkACEQDGALQeUAIRAMXwtB5gAhEAxeC0HnACEQDF0LQegAIRAMXAtB6QAhEAxbC0HqACEQDFoLQesAIRAMWQtB7AAhEAxYC0HtACEQDFcLQe4AIRAMVgtB7wAhEAxVC0HwACEQDFQLQfEAIRAMUwtB8gAhEAxSC0HzACEQDFELQfQAIRAMUAtB9QAhEAxPC0H2ACEQDE4LQfcAIRAMTQtB+AAhEAxMC0H5ACEQDEsLQfoAIRAMSgtB+wAhEAxJC0H8ACEQDEgLQf0AIRAMRwtB/gAhEAxGC0H/ACEQDEULQYABIRAMRAtBgQEhEAxDC0GCASEQDEILQYMBIRAMQQtBhAEhEAxAC0GFASEQDD8LQYYBIRAMPgtBhwEhEAw9C0GIASEQDDwLQYkBIRAMOwtBigEhEAw6C0GLASEQDDkLQYwBIRAMOAtBjQEhEAw3C0GOASEQDDYLQY8BIRAMNQtBkAEhEAw0C0GRASEQDDMLQZIBIRAMMgtBkwEhEAwxC0GUASEQDDALQZUBIRAMLwtBlgEhEAwuC0GXASEQDC0LQZgBIRAMLAtBmQEhEAwrC0GaASEQDCoLQZsBIRAMKQtBnAEhEAwoC0GdASEQDCcLQZ4BIRAMJgtBnwEhEAwlC0GgASEQDCQLQaEBIRAMIwtBogEhEAwiC0GjASEQDCELQaQBIRAMIAtBpQEhEAwfC0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBuAG5AboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBxwHIAckBygHLAcwBzQHOAc8B0AHRAdIB0wHUAdUB1gHXAdgB2QHaAdsB3AHdAd4B4AHhAeIB4wHkAeUB5gHnAegB6QHqAesB7AHtAe4B7wHwAfEB8gHzAZkCpAKwAv4C/gILIAEiBCACRw3zAUHdASEQDP8DCyABIhAgAkcN3QFBwwEhEAz+AwsgASIBIAJHDZABQfcAIRAM/QMLIAEiASACRw2GAUHvACEQDPwDCyABIgEgAkcNf0HqACEQDPsDCyABIgEgAkcNe0HoACEQDPoDCyABIgEgAkcNeEHmACEQDPkDCyABIgEgAkcNGkEYIRAM+AMLIAEiASACRw0UQRIhEAz3AwsgASIBIAJHDVlBxQAhEAz2AwsgASIBIAJHDUpBPyEQDPUDCyABIgEgAkcNSEE8IRAM9AMLIAEiASACRw1BQTEhEAzzAwsgAC0ALkEBRg3rAwyHAgsgACABIgEgAhDAgICAAEEBRw3mASAAQgA3AyAM5wELIAAgASIBIAIQtICAgAAiEA3nASABIQEM9QILAkAgASIBIAJHDQBBBiEQDPADCyAAIAFBAWoiASACELuAgIAAIhAN6AEgASEBDDELIABCADcDIEESIRAM1QMLIAEiECACRw0rQR0hEAztAwsCQCABIgEgAkYNACABQQFqIQFBECEQDNQDC0EHIRAM7AMLIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN5QFBCCEQDOsDCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEUIRAM0gMLQQkhEAzqAwsgASEBIAApAyBQDeQBIAEhAQzyAgsCQCABIgEgAkcNAEELIRAM6QMLIAAgAUEBaiIBIAIQtoCAgAAiEA3lASABIQEM8gILIAAgASIBIAIQuICAgAAiEA3lASABIQEM8gILIAAgASIBIAIQuICAgAAiEA3mASABIQEMDQsgACABIgEgAhC6gICAACIQDecBIAEhAQzwAgsCQCABIgEgAkcNAEEPIRAM5QMLIAEtAAAiEEE7Rg0IIBBBDUcN6AEgAUEBaiEBDO8CCyAAIAEiASACELqAgIAAIhAN6AEgASEBDPICCwNAAkAgAS0AAEHwtYCAAGotAAAiEEEBRg0AIBBBAkcN6wEgACgCBCEQIABBADYCBCAAIBAgAUEBaiIBELmAgIAAIhAN6gEgASEBDPQCCyABQQFqIgEgAkcNAAtBEiEQDOIDCyAAIAEiASACELqAgIAAIhAN6QEgASEBDAoLIAEiASACRw0GQRshEAzgAwsCQCABIgEgAkcNAEEWIRAM4AMLIABBioCAgAA2AgggACABNgIEIAAgASACELiAgIAAIhAN6gEgASEBQSAhEAzGAwsCQCABIgEgAkYNAANAAkAgAS0AAEHwt4CAAGotAAAiEEECRg0AAkAgEEF/ag4E5QHsAQDrAewBCyABQQFqIQFBCCEQDMgDCyABQQFqIgEgAkcNAAtBFSEQDN8DC0EVIRAM3gMLA0ACQCABLQAAQfC5gIAAai0AACIQQQJGDQAgEEF/ag4E3gHsAeAB6wHsAQsgAUEBaiIBIAJHDQALQRghEAzdAwsCQCABIgEgAkYNACAAQYuAgIAANgIIIAAgATYCBCABIQFBByEQDMQDC0EZIRAM3AMLIAFBAWohAQwCCwJAIAEiFCACRw0AQRohEAzbAwsgFCEBAkAgFC0AAEFzag4U3QLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gIA7gILQQAhECAAQQA2AhwgAEGvi4CAADYCECAAQQI2AgwgACAUQQFqNgIUDNoDCwJAIAEtAAAiEEE7Rg0AIBBBDUcN6AEgAUEBaiEBDOUCCyABQQFqIQELQSIhEAy/AwsCQCABIhAgAkcNAEEcIRAM2AMLQgAhESAQIQEgEC0AAEFQag435wHmAQECAwQFBgcIAAAAAAAAAAkKCwwNDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADxAREhMUAAtBHiEQDL0DC0ICIREM5QELQgMhEQzkAQtCBCERDOMBC0IFIREM4gELQgYhEQzhAQtCByERDOABC0IIIREM3wELQgkhEQzeAQtCCiERDN0BC0ILIREM3AELQgwhEQzbAQtCDSERDNoBC0IOIREM2QELQg8hEQzYAQtCCiERDNcBC0ILIREM1gELQgwhEQzVAQtCDSERDNQBC0IOIREM0wELQg8hEQzSAQtCACERAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQLQAAQVBqDjflAeQBAAECAwQFBgfmAeYB5gHmAeYB5gHmAQgJCgsMDeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gEODxAREhPmAQtCAiERDOQBC0IDIREM4wELQgQhEQziAQtCBSERDOEBC0IGIREM4AELQgchEQzfAQtCCCERDN4BC0IJIREM3QELQgohEQzcAQtCCyERDNsBC0IMIREM2gELQg0hEQzZAQtCDiERDNgBC0IPIREM1wELQgohEQzWAQtCCyERDNUBC0IMIREM1AELQg0hEQzTAQtCDiERDNIBC0IPIREM0QELIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN0gFBHyEQDMADCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEkIRAMpwMLQSAhEAy/AwsgACABIhAgAhC+gICAAEF/ag4FtgEAxQIB0QHSAQtBESEQDKQDCyAAQQE6AC8gECEBDLsDCyABIgEgAkcN0gFBJCEQDLsDCyABIg0gAkcNHkHGACEQDLoDCyAAIAEiASACELKAgIAAIhAN1AEgASEBDLUBCyABIhAgAkcNJkHQACEQDLgDCwJAIAEiASACRw0AQSghEAy4AwsgAEEANgIEIABBjICAgAA2AgggACABIAEQsYCAgAAiEA3TASABIQEM2AELAkAgASIQIAJHDQBBKSEQDLcDCyAQLQAAIgFBIEYNFCABQQlHDdMBIBBBAWohAQwVCwJAIAEiASACRg0AIAFBAWohAQwXC0EqIRAMtQMLAkAgASIQIAJHDQBBKyEQDLUDCwJAIBAtAAAiAUEJRg0AIAFBIEcN1QELIAAtACxBCEYN0wEgECEBDJEDCwJAIAEiASACRw0AQSwhEAy0AwsgAS0AAEEKRw3VASABQQFqIQEMyQILIAEiDiACRw3VAUEvIRAMsgMLA0ACQCABLQAAIhBBIEYNAAJAIBBBdmoOBADcAdwBANoBCyABIQEM4AELIAFBAWoiASACRw0AC0ExIRAMsQMLQTIhECABIhQgAkYNsAMgAiAUayAAKAIAIgFqIRUgFCABa0EDaiEWAkADQCAULQAAIhdBIHIgFyAXQb9/akH/AXFBGkkbQf8BcSABQfC7gIAAai0AAEcNAQJAIAFBA0cNAEEGIQEMlgMLIAFBAWohASAUQQFqIhQgAkcNAAsgACAVNgIADLEDCyAAQQA2AgAgFCEBDNkBC0EzIRAgASIUIAJGDa8DIAIgFGsgACgCACIBaiEVIBQgAWtBCGohFgJAA0AgFC0AACIXQSByIBcgF0G/f2pB/wFxQRpJG0H/AXEgAUH0u4CAAGotAABHDQECQCABQQhHDQBBBSEBDJUDCyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFTYCAAywAwsgAEEANgIAIBQhAQzYAQtBNCEQIAEiFCACRg2uAyACIBRrIAAoAgAiAWohFSAUIAFrQQVqIRYCQANAIBQtAAAiF0EgciAXIBdBv39qQf8BcUEaSRtB/wFxIAFB0MKAgABqLQAARw0BAkAgAUEFRw0AQQchAQyUAwsgAUEBaiEBIBRBAWoiFCACRw0ACyAAIBU2AgAMrwMLIABBADYCACAUIQEM1wELAkAgASIBIAJGDQADQAJAIAEtAABBgL6AgABqLQAAIhBBAUYNACAQQQJGDQogASEBDN0BCyABQQFqIgEgAkcNAAtBMCEQDK4DC0EwIRAMrQMLAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgRg0AIBBBdmoOBNkB2gHaAdkB2gELIAFBAWoiASACRw0AC0E4IRAMrQMLQTghEAysAwsDQAJAIAEtAAAiEEEgRg0AIBBBCUcNAwsgAUEBaiIBIAJHDQALQTwhEAyrAwsDQAJAIAEtAAAiEEEgRg0AAkACQCAQQXZqDgTaAQEB2gEACyAQQSxGDdsBCyABIQEMBAsgAUEBaiIBIAJHDQALQT8hEAyqAwsgASEBDNsBC0HAACEQIAEiFCACRg2oAyACIBRrIAAoAgAiAWohFiAUIAFrQQZqIRcCQANAIBQtAABBIHIgAUGAwICAAGotAABHDQEgAUEGRg2OAyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFjYCAAypAwsgAEEANgIAIBQhAQtBNiEQDI4DCwJAIAEiDyACRw0AQcEAIRAMpwMLIABBjICAgAA2AgggACAPNgIEIA8hASAALQAsQX9qDgTNAdUB1wHZAYcDCyABQQFqIQEMzAELAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgciAQIBBBv39qQf8BcUEaSRtB/wFxIhBBCUYNACAQQSBGDQACQAJAAkACQCAQQZ1/ag4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIRAMkQMLIAFBAWohAUEyIRAMkAMLIAFBAWohAUEzIRAMjwMLIAEhAQzQAQsgAUEBaiIBIAJHDQALQTUhEAylAwtBNSEQDKQDCwJAIAEiASACRg0AA0ACQCABLQAAQYC8gIAAai0AAEEBRg0AIAEhAQzTAQsgAUEBaiIBIAJHDQALQT0hEAykAwtBPSEQDKMDCyAAIAEiASACELCAgIAAIhAN1gEgASEBDAELIBBBAWohAQtBPCEQDIcDCwJAIAEiASACRw0AQcIAIRAMoAMLAkADQAJAIAEtAABBd2oOGAAC/gL+AoQD/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4CAP4CCyABQQFqIgEgAkcNAAtBwgAhEAygAwsgAUEBaiEBIAAtAC1BAXFFDb0BIAEhAQtBLCEQDIUDCyABIgEgAkcN0wFBxAAhEAydAwsDQAJAIAEtAABBkMCAgABqLQAAQQFGDQAgASEBDLcCCyABQQFqIgEgAkcNAAtBxQAhEAycAwsgDS0AACIQQSBGDbMBIBBBOkcNgQMgACgCBCEBIABBADYCBCAAIAEgDRCvgICAACIBDdABIA1BAWohAQyzAgtBxwAhECABIg0gAkYNmgMgAiANayAAKAIAIgFqIRYgDSABa0EFaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGQwoCAAGotAABHDYADIAFBBUYN9AIgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMmgMLQcgAIRAgASINIAJGDZkDIAIgDWsgACgCACIBaiEWIA0gAWtBCWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBlsKAgABqLQAARw3/AgJAIAFBCUcNAEECIQEM9QILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJkDCwJAIAEiDSACRw0AQckAIRAMmQMLAkACQCANLQAAIgFBIHIgASABQb9/akH/AXFBGkkbQf8BcUGSf2oOBwCAA4ADgAOAA4ADAYADCyANQQFqIQFBPiEQDIADCyANQQFqIQFBPyEQDP8CC0HKACEQIAEiDSACRg2XAyACIA1rIAAoAgAiAWohFiANIAFrQQFqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQaDCgIAAai0AAEcN/QIgAUEBRg3wAiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyXAwtBywAhECABIg0gAkYNlgMgAiANayAAKAIAIgFqIRYgDSABa0EOaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGiwoCAAGotAABHDfwCIAFBDkYN8AIgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMlgMLQcwAIRAgASINIAJGDZUDIAIgDWsgACgCACIBaiEWIA0gAWtBD2ohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBwMKAgABqLQAARw37AgJAIAFBD0cNAEEDIQEM8QILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJUDC0HNACEQIAEiDSACRg2UAyACIA1rIAAoAgAiAWohFiANIAFrQQVqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQdDCgIAAai0AAEcN+gICQCABQQVHDQBBBCEBDPACCyABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyUAwsCQCABIg0gAkcNAEHOACEQDJQDCwJAAkACQAJAIA0tAAAiAUEgciABIAFBv39qQf8BcUEaSRtB/wFxQZ1/ag4TAP0C/QL9Av0C/QL9Av0C/QL9Av0C/QL9AgH9Av0C/QICA/0CCyANQQFqIQFBwQAhEAz9AgsgDUEBaiEBQcIAIRAM/AILIA1BAWohAUHDACEQDPsCCyANQQFqIQFBxAAhEAz6AgsCQCABIgEgAkYNACAAQY2AgIAANgIIIAAgATYCBCABIQFBxQAhEAz6AgtBzwAhEAySAwsgECEBAkACQCAQLQAAQXZqDgQBqAKoAgCoAgsgEEEBaiEBC0EnIRAM+AILAkAgASIBIAJHDQBB0QAhEAyRAwsCQCABLQAAQSBGDQAgASEBDI0BCyABQQFqIQEgAC0ALUEBcUUNxwEgASEBDIwBCyABIhcgAkcNyAFB0gAhEAyPAwtB0wAhECABIhQgAkYNjgMgAiAUayAAKAIAIgFqIRYgFCABa0EBaiEXA0AgFC0AACABQdbCgIAAai0AAEcNzAEgAUEBRg3HASABQQFqIQEgFEEBaiIUIAJHDQALIAAgFjYCAAyOAwsCQCABIgEgAkcNAEHVACEQDI4DCyABLQAAQQpHDcwBIAFBAWohAQzHAQsCQCABIgEgAkcNAEHWACEQDI0DCwJAAkAgAS0AAEF2ag4EAM0BzQEBzQELIAFBAWohAQzHAQsgAUEBaiEBQcoAIRAM8wILIAAgASIBIAIQroCAgAAiEA3LASABIQFBzQAhEAzyAgsgAC0AKUEiRg2FAwymAgsCQCABIgEgAkcNAEHbACEQDIoDC0EAIRRBASEXQQEhFkEAIRACQAJAAkACQAJAAkACQAJAAkAgAS0AAEFQag4K1AHTAQABAgMEBQYI1QELQQIhEAwGC0EDIRAMBQtBBCEQDAQLQQUhEAwDC0EGIRAMAgtBByEQDAELQQghEAtBACEXQQAhFkEAIRQMzAELQQkhEEEBIRRBACEXQQAhFgzLAQsCQCABIgEgAkcNAEHdACEQDIkDCyABLQAAQS5HDcwBIAFBAWohAQymAgsgASIBIAJHDcwBQd8AIRAMhwMLAkAgASIBIAJGDQAgAEGOgICAADYCCCAAIAE2AgQgASEBQdAAIRAM7gILQeAAIRAMhgMLQeEAIRAgASIBIAJGDYUDIAIgAWsgACgCACIUaiEWIAEgFGtBA2ohFwNAIAEtAAAgFEHiwoCAAGotAABHDc0BIBRBA0YNzAEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMhQMLQeIAIRAgASIBIAJGDYQDIAIgAWsgACgCACIUaiEWIAEgFGtBAmohFwNAIAEtAAAgFEHmwoCAAGotAABHDcwBIBRBAkYNzgEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMhAMLQeMAIRAgASIBIAJGDYMDIAIgAWsgACgCACIUaiEWIAEgFGtBA2ohFwNAIAEtAAAgFEHpwoCAAGotAABHDcsBIBRBA0YNzgEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMgwMLAkAgASIBIAJHDQBB5QAhEAyDAwsgACABQQFqIgEgAhCogICAACIQDc0BIAEhAUHWACEQDOkCCwJAIAEiASACRg0AA0ACQCABLQAAIhBBIEYNAAJAAkACQCAQQbh/ag4LAAHPAc8BzwHPAc8BzwHPAc8BAs8BCyABQQFqIQFB0gAhEAztAgsgAUEBaiEBQdMAIRAM7AILIAFBAWohAUHUACEQDOsCCyABQQFqIgEgAkcNAAtB5AAhEAyCAwtB5AAhEAyBAwsDQAJAIAEtAABB8MKAgABqLQAAIhBBAUYNACAQQX5qDgPPAdAB0QHSAQsgAUEBaiIBIAJHDQALQeYAIRAMgAMLAkAgASIBIAJGDQAgAUEBaiEBDAMLQecAIRAM/wILA0ACQCABLQAAQfDEgIAAai0AACIQQQFGDQACQCAQQX5qDgTSAdMB1AEA1QELIAEhAUHXACEQDOcCCyABQQFqIgEgAkcNAAtB6AAhEAz+AgsCQCABIgEgAkcNAEHpACEQDP4CCwJAIAEtAAAiEEF2ag4augHVAdUBvAHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHKAdUB1QEA0wELIAFBAWohAQtBBiEQDOMCCwNAAkAgAS0AAEHwxoCAAGotAABBAUYNACABIQEMngILIAFBAWoiASACRw0AC0HqACEQDPsCCwJAIAEiASACRg0AIAFBAWohAQwDC0HrACEQDPoCCwJAIAEiASACRw0AQewAIRAM+gILIAFBAWohAQwBCwJAIAEiASACRw0AQe0AIRAM+QILIAFBAWohAQtBBCEQDN4CCwJAIAEiFCACRw0AQe4AIRAM9wILIBQhAQJAAkACQCAULQAAQfDIgIAAai0AAEF/ag4H1AHVAdYBAJwCAQLXAQsgFEEBaiEBDAoLIBRBAWohAQzNAQtBACEQIABBADYCHCAAQZuSgIAANgIQIABBBzYCDCAAIBRBAWo2AhQM9gILAkADQAJAIAEtAABB8MiAgABqLQAAIhBBBEYNAAJAAkAgEEF/ag4H0gHTAdQB2QEABAHZAQsgASEBQdoAIRAM4AILIAFBAWohAUHcACEQDN8CCyABQQFqIgEgAkcNAAtB7wAhEAz2AgsgAUEBaiEBDMsBCwJAIAEiFCACRw0AQfAAIRAM9QILIBQtAABBL0cN1AEgFEEBaiEBDAYLAkAgASIUIAJHDQBB8QAhEAz0AgsCQCAULQAAIgFBL0cNACAUQQFqIQFB3QAhEAzbAgsgAUF2aiIEQRZLDdMBQQEgBHRBiYCAAnFFDdMBDMoCCwJAIAEiASACRg0AIAFBAWohAUHeACEQDNoCC0HyACEQDPICCwJAIAEiFCACRw0AQfQAIRAM8gILIBQhAQJAIBQtAABB8MyAgABqLQAAQX9qDgPJApQCANQBC0HhACEQDNgCCwJAIAEiFCACRg0AA0ACQCAULQAAQfDKgIAAai0AACIBQQNGDQACQCABQX9qDgLLAgDVAQsgFCEBQd8AIRAM2gILIBRBAWoiFCACRw0AC0HzACEQDPECC0HzACEQDPACCwJAIAEiASACRg0AIABBj4CAgAA2AgggACABNgIEIAEhAUHgACEQDNcCC0H1ACEQDO8CCwJAIAEiASACRw0AQfYAIRAM7wILIABBj4CAgAA2AgggACABNgIEIAEhAQtBAyEQDNQCCwNAIAEtAABBIEcNwwIgAUEBaiIBIAJHDQALQfcAIRAM7AILAkAgASIBIAJHDQBB+AAhEAzsAgsgAS0AAEEgRw3OASABQQFqIQEM7wELIAAgASIBIAIQrICAgAAiEA3OASABIQEMjgILAkAgASIEIAJHDQBB+gAhEAzqAgsgBC0AAEHMAEcN0QEgBEEBaiEBQRMhEAzPAQsCQCABIgQgAkcNAEH7ACEQDOkCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRADQCAELQAAIAFB8M6AgABqLQAARw3QASABQQVGDc4BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQfsAIRAM6AILAkAgASIEIAJHDQBB/AAhEAzoAgsCQAJAIAQtAABBvX9qDgwA0QHRAdEB0QHRAdEB0QHRAdEB0QEB0QELIARBAWohAUHmACEQDM8CCyAEQQFqIQFB5wAhEAzOAgsCQCABIgQgAkcNAEH9ACEQDOcCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDc8BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH9ACEQDOcCCyAAQQA2AgAgEEEBaiEBQRAhEAzMAQsCQCABIgQgAkcNAEH+ACEQDOYCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUH2zoCAAGotAABHDc4BIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH+ACEQDOYCCyAAQQA2AgAgEEEBaiEBQRYhEAzLAQsCQCABIgQgAkcNAEH/ACEQDOUCCyACIARrIAAoAgAiAWohFCAEIAFrQQNqIRACQANAIAQtAAAgAUH8zoCAAGotAABHDc0BIAFBA0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH/ACEQDOUCCyAAQQA2AgAgEEEBaiEBQQUhEAzKAQsCQCABIgQgAkcNAEGAASEQDOQCCyAELQAAQdkARw3LASAEQQFqIQFBCCEQDMkBCwJAIAEiBCACRw0AQYEBIRAM4wILAkACQCAELQAAQbJ/ag4DAMwBAcwBCyAEQQFqIQFB6wAhEAzKAgsgBEEBaiEBQewAIRAMyQILAkAgASIEIAJHDQBBggEhEAziAgsCQAJAIAQtAABBuH9qDggAywHLAcsBywHLAcsBAcsBCyAEQQFqIQFB6gAhEAzJAgsgBEEBaiEBQe0AIRAMyAILAkAgASIEIAJHDQBBgwEhEAzhAgsgAiAEayAAKAIAIgFqIRAgBCABa0ECaiEUAkADQCAELQAAIAFBgM+AgABqLQAARw3JASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBA2AgBBgwEhEAzhAgtBACEQIABBADYCACAUQQFqIQEMxgELAkAgASIEIAJHDQBBhAEhEAzgAgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBg8+AgABqLQAARw3IASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBhAEhEAzgAgsgAEEANgIAIBBBAWohAUEjIRAMxQELAkAgASIEIAJHDQBBhQEhEAzfAgsCQAJAIAQtAABBtH9qDggAyAHIAcgByAHIAcgBAcgBCyAEQQFqIQFB7wAhEAzGAgsgBEEBaiEBQfAAIRAMxQILAkAgASIEIAJHDQBBhgEhEAzeAgsgBC0AAEHFAEcNxQEgBEEBaiEBDIMCCwJAIAEiBCACRw0AQYcBIRAM3QILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQYjPgIAAai0AAEcNxQEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYcBIRAM3QILIABBADYCACAQQQFqIQFBLSEQDMIBCwJAIAEiBCACRw0AQYgBIRAM3AILIAIgBGsgACgCACIBaiEUIAQgAWtBCGohEAJAA0AgBC0AACABQdDPgIAAai0AAEcNxAEgAUEIRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYgBIRAM3AILIABBADYCACAQQQFqIQFBKSEQDMEBCwJAIAEiASACRw0AQYkBIRAM2wILQQEhECABLQAAQd8ARw3AASABQQFqIQEMgQILAkAgASIEIAJHDQBBigEhEAzaAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQA0AgBC0AACABQYzPgIAAai0AAEcNwQEgAUEBRg2vAiABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGKASEQDNkCCwJAIAEiBCACRw0AQYsBIRAM2QILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQY7PgIAAai0AAEcNwQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYsBIRAM2QILIABBADYCACAQQQFqIQFBAiEQDL4BCwJAIAEiBCACRw0AQYwBIRAM2AILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfDPgIAAai0AAEcNwAEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYwBIRAM2AILIABBADYCACAQQQFqIQFBHyEQDL0BCwJAIAEiBCACRw0AQY0BIRAM1wILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfLPgIAAai0AAEcNvwEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQY0BIRAM1wILIABBADYCACAQQQFqIQFBCSEQDLwBCwJAIAEiBCACRw0AQY4BIRAM1gILAkACQCAELQAAQbd/ag4HAL8BvwG/Ab8BvwEBvwELIARBAWohAUH4ACEQDL0CCyAEQQFqIQFB+QAhEAy8AgsCQCABIgQgAkcNAEGPASEQDNUCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGRz4CAAGotAABHDb0BIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGPASEQDNUCCyAAQQA2AgAgEEEBaiEBQRghEAy6AQsCQCABIgQgAkcNAEGQASEQDNQCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUGXz4CAAGotAABHDbwBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGQASEQDNQCCyAAQQA2AgAgEEEBaiEBQRchEAy5AQsCQCABIgQgAkcNAEGRASEQDNMCCyACIARrIAAoAgAiAWohFCAEIAFrQQZqIRACQANAIAQtAAAgAUGaz4CAAGotAABHDbsBIAFBBkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGRASEQDNMCCyAAQQA2AgAgEEEBaiEBQRUhEAy4AQsCQCABIgQgAkcNAEGSASEQDNICCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGhz4CAAGotAABHDboBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGSASEQDNICCyAAQQA2AgAgEEEBaiEBQR4hEAy3AQsCQCABIgQgAkcNAEGTASEQDNECCyAELQAAQcwARw24ASAEQQFqIQFBCiEQDLYBCwJAIAQgAkcNAEGUASEQDNACCwJAAkAgBC0AAEG/f2oODwC5AbkBuQG5AbkBuQG5AbkBuQG5AbkBuQG5AQG5AQsgBEEBaiEBQf4AIRAMtwILIARBAWohAUH/ACEQDLYCCwJAIAQgAkcNAEGVASEQDM8CCwJAAkAgBC0AAEG/f2oOAwC4AQG4AQsgBEEBaiEBQf0AIRAMtgILIARBAWohBEGAASEQDLUCCwJAIAQgAkcNAEGWASEQDM4CCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUGnz4CAAGotAABHDbYBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGWASEQDM4CCyAAQQA2AgAgEEEBaiEBQQshEAyzAQsCQCAEIAJHDQBBlwEhEAzNAgsCQAJAAkACQCAELQAAQVNqDiMAuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AQG4AbgBuAG4AbgBArgBuAG4AQO4AQsgBEEBaiEBQfsAIRAMtgILIARBAWohAUH8ACEQDLUCCyAEQQFqIQRBgQEhEAy0AgsgBEEBaiEEQYIBIRAMswILAkAgBCACRw0AQZgBIRAMzAILIAIgBGsgACgCACIBaiEUIAQgAWtBBGohEAJAA0AgBC0AACABQanPgIAAai0AAEcNtAEgAUEERg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZgBIRAMzAILIABBADYCACAQQQFqIQFBGSEQDLEBCwJAIAQgAkcNAEGZASEQDMsCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGuz4CAAGotAABHDbMBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGZASEQDMsCCyAAQQA2AgAgEEEBaiEBQQYhEAywAQsCQCAEIAJHDQBBmgEhEAzKAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBtM+AgABqLQAARw2yASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmgEhEAzKAgsgAEEANgIAIBBBAWohAUEcIRAMrwELAkAgBCACRw0AQZsBIRAMyQILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQbbPgIAAai0AAEcNsQEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZsBIRAMyQILIABBADYCACAQQQFqIQFBJyEQDK4BCwJAIAQgAkcNAEGcASEQDMgCCwJAAkAgBC0AAEGsf2oOAgABsQELIARBAWohBEGGASEQDK8CCyAEQQFqIQRBhwEhEAyuAgsCQCAEIAJHDQBBnQEhEAzHAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBuM+AgABqLQAARw2vASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBnQEhEAzHAgsgAEEANgIAIBBBAWohAUEmIRAMrAELAkAgBCACRw0AQZ4BIRAMxgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQbrPgIAAai0AAEcNrgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZ4BIRAMxgILIABBADYCACAQQQFqIQFBAyEQDKsBCwJAIAQgAkcNAEGfASEQDMUCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDa0BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGfASEQDMUCCyAAQQA2AgAgEEEBaiEBQQwhEAyqAQsCQCAEIAJHDQBBoAEhEAzEAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFBvM+AgABqLQAARw2sASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBoAEhEAzEAgsgAEEANgIAIBBBAWohAUENIRAMqQELAkAgBCACRw0AQaEBIRAMwwILAkACQCAELQAAQbp/ag4LAKwBrAGsAawBrAGsAawBrAGsAQGsAQsgBEEBaiEEQYsBIRAMqgILIARBAWohBEGMASEQDKkCCwJAIAQgAkcNAEGiASEQDMICCyAELQAAQdAARw2pASAEQQFqIQQM6QELAkAgBCACRw0AQaMBIRAMwQILAkACQCAELQAAQbd/ag4HAaoBqgGqAaoBqgEAqgELIARBAWohBEGOASEQDKgCCyAEQQFqIQFBIiEQDKYBCwJAIAQgAkcNAEGkASEQDMACCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUHAz4CAAGotAABHDagBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGkASEQDMACCyAAQQA2AgAgEEEBaiEBQR0hEAylAQsCQCAEIAJHDQBBpQEhEAy/AgsCQAJAIAQtAABBrn9qDgMAqAEBqAELIARBAWohBEGQASEQDKYCCyAEQQFqIQFBBCEQDKQBCwJAIAQgAkcNAEGmASEQDL4CCwJAAkACQAJAAkAgBC0AAEG/f2oOFQCqAaoBqgGqAaoBqgGqAaoBqgGqAQGqAaoBAqoBqgEDqgGqAQSqAQsgBEEBaiEEQYgBIRAMqAILIARBAWohBEGJASEQDKcCCyAEQQFqIQRBigEhEAymAgsgBEEBaiEEQY8BIRAMpQILIARBAWohBEGRASEQDKQCCwJAIAQgAkcNAEGnASEQDL0CCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDaUBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGnASEQDL0CCyAAQQA2AgAgEEEBaiEBQREhEAyiAQsCQCAEIAJHDQBBqAEhEAy8AgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBws+AgABqLQAARw2kASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBqAEhEAy8AgsgAEEANgIAIBBBAWohAUEsIRAMoQELAkAgBCACRw0AQakBIRAMuwILIAIgBGsgACgCACIBaiEUIAQgAWtBBGohEAJAA0AgBC0AACABQcXPgIAAai0AAEcNowEgAUEERg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQakBIRAMuwILIABBADYCACAQQQFqIQFBKyEQDKABCwJAIAQgAkcNAEGqASEQDLoCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHKz4CAAGotAABHDaIBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGqASEQDLoCCyAAQQA2AgAgEEEBaiEBQRQhEAyfAQsCQCAEIAJHDQBBqwEhEAy5AgsCQAJAAkACQCAELQAAQb5/ag4PAAECpAGkAaQBpAGkAaQBpAGkAaQBpAGkAQOkAQsgBEEBaiEEQZMBIRAMogILIARBAWohBEGUASEQDKECCyAEQQFqIQRBlQEhEAygAgsgBEEBaiEEQZYBIRAMnwILAkAgBCACRw0AQawBIRAMuAILIAQtAABBxQBHDZ8BIARBAWohBAzgAQsCQCAEIAJHDQBBrQEhEAy3AgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBzc+AgABqLQAARw2fASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBrQEhEAy3AgsgAEEANgIAIBBBAWohAUEOIRAMnAELAkAgBCACRw0AQa4BIRAMtgILIAQtAABB0ABHDZ0BIARBAWohAUElIRAMmwELAkAgBCACRw0AQa8BIRAMtQILIAIgBGsgACgCACIBaiEUIAQgAWtBCGohEAJAA0AgBC0AACABQdDPgIAAai0AAEcNnQEgAUEIRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQa8BIRAMtQILIABBADYCACAQQQFqIQFBKiEQDJoBCwJAIAQgAkcNAEGwASEQDLQCCwJAAkAgBC0AAEGrf2oOCwCdAZ0BnQGdAZ0BnQGdAZ0BnQEBnQELIARBAWohBEGaASEQDJsCCyAEQQFqIQRBmwEhEAyaAgsCQCAEIAJHDQBBsQEhEAyzAgsCQAJAIAQtAABBv39qDhQAnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBAZwBCyAEQQFqIQRBmQEhEAyaAgsgBEEBaiEEQZwBIRAMmQILAkAgBCACRw0AQbIBIRAMsgILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQdnPgIAAai0AAEcNmgEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbIBIRAMsgILIABBADYCACAQQQFqIQFBISEQDJcBCwJAIAQgAkcNAEGzASEQDLECCyACIARrIAAoAgAiAWohFCAEIAFrQQZqIRACQANAIAQtAAAgAUHdz4CAAGotAABHDZkBIAFBBkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGzASEQDLECCyAAQQA2AgAgEEEBaiEBQRohEAyWAQsCQCAEIAJHDQBBtAEhEAywAgsCQAJAAkAgBC0AAEG7f2oOEQCaAZoBmgGaAZoBmgGaAZoBmgEBmgGaAZoBmgGaAQKaAQsgBEEBaiEEQZ0BIRAMmAILIARBAWohBEGeASEQDJcCCyAEQQFqIQRBnwEhEAyWAgsCQCAEIAJHDQBBtQEhEAyvAgsgAiAEayAAKAIAIgFqIRQgBCABa0EFaiEQAkADQCAELQAAIAFB5M+AgABqLQAARw2XASABQQVGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBtQEhEAyvAgsgAEEANgIAIBBBAWohAUEoIRAMlAELAkAgBCACRw0AQbYBIRAMrgILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQerPgIAAai0AAEcNlgEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbYBIRAMrgILIABBADYCACAQQQFqIQFBByEQDJMBCwJAIAQgAkcNAEG3ASEQDK0CCwJAAkAgBC0AAEG7f2oODgCWAZYBlgGWAZYBlgGWAZYBlgGWAZYBlgEBlgELIARBAWohBEGhASEQDJQCCyAEQQFqIQRBogEhEAyTAgsCQCAEIAJHDQBBuAEhEAysAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFB7c+AgABqLQAARw2UASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBuAEhEAysAgsgAEEANgIAIBBBAWohAUESIRAMkQELAkAgBCACRw0AQbkBIRAMqwILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfDPgIAAai0AAEcNkwEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbkBIRAMqwILIABBADYCACAQQQFqIQFBICEQDJABCwJAIAQgAkcNAEG6ASEQDKoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUHyz4CAAGotAABHDZIBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG6ASEQDKoCCyAAQQA2AgAgEEEBaiEBQQ8hEAyPAQsCQCAEIAJHDQBBuwEhEAypAgsCQAJAIAQtAABBt39qDgcAkgGSAZIBkgGSAQGSAQsgBEEBaiEEQaUBIRAMkAILIARBAWohBEGmASEQDI8CCwJAIAQgAkcNAEG8ASEQDKgCCyACIARrIAAoAgAiAWohFCAEIAFrQQdqIRACQANAIAQtAAAgAUH0z4CAAGotAABHDZABIAFBB0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG8ASEQDKgCCyAAQQA2AgAgEEEBaiEBQRshEAyNAQsCQCAEIAJHDQBBvQEhEAynAgsCQAJAAkAgBC0AAEG+f2oOEgCRAZEBkQGRAZEBkQGRAZEBkQEBkQGRAZEBkQGRAZEBApEBCyAEQQFqIQRBpAEhEAyPAgsgBEEBaiEEQacBIRAMjgILIARBAWohBEGoASEQDI0CCwJAIAQgAkcNAEG+ASEQDKYCCyAELQAAQc4ARw2NASAEQQFqIQQMzwELAkAgBCACRw0AQb8BIRAMpQILAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgBC0AAEG/f2oOFQABAgOcAQQFBpwBnAGcAQcICQoLnAEMDQ4PnAELIARBAWohAUHoACEQDJoCCyAEQQFqIQFB6QAhEAyZAgsgBEEBaiEBQe4AIRAMmAILIARBAWohAUHyACEQDJcCCyAEQQFqIQFB8wAhEAyWAgsgBEEBaiEBQfYAIRAMlQILIARBAWohAUH3ACEQDJQCCyAEQQFqIQFB+gAhEAyTAgsgBEEBaiEEQYMBIRAMkgILIARBAWohBEGEASEQDJECCyAEQQFqIQRBhQEhEAyQAgsgBEEBaiEEQZIBIRAMjwILIARBAWohBEGYASEQDI4CCyAEQQFqIQRBoAEhEAyNAgsgBEEBaiEEQaMBIRAMjAILIARBAWohBEGqASEQDIsCCwJAIAQgAkYNACAAQZCAgIAANgIIIAAgBDYCBEGrASEQDIsCC0HAASEQDKMCCyAAIAUgAhCqgICAACIBDYsBIAUhAQxcCwJAIAYgAkYNACAGQQFqIQUMjQELQcIBIRAMoQILA0ACQCAQLQAAQXZqDgSMAQAAjwEACyAQQQFqIhAgAkcNAAtBwwEhEAygAgsCQCAHIAJGDQAgAEGRgICAADYCCCAAIAc2AgQgByEBQQEhEAyHAgtBxAEhEAyfAgsCQCAHIAJHDQBBxQEhEAyfAgsCQAJAIActAABBdmoOBAHOAc4BAM4BCyAHQQFqIQYMjQELIAdBAWohBQyJAQsCQCAHIAJHDQBBxgEhEAyeAgsCQAJAIActAABBdmoOFwGPAY8BAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAQCPAQsgB0EBaiEHC0GwASEQDIQCCwJAIAggAkcNAEHIASEQDJ0CCyAILQAAQSBHDY0BIABBADsBMiAIQQFqIQFBswEhEAyDAgsgASEXAkADQCAXIgcgAkYNASAHLQAAQVBqQf8BcSIQQQpPDcwBAkAgAC8BMiIUQZkzSw0AIAAgFEEKbCIUOwEyIBBB//8DcyAUQf7/A3FJDQAgB0EBaiEXIAAgFCAQaiIQOwEyIBBB//8DcUHoB0kNAQsLQQAhECAAQQA2AhwgAEHBiYCAADYCECAAQQ02AgwgACAHQQFqNgIUDJwCC0HHASEQDJsCCyAAIAggAhCugICAACIQRQ3KASAQQRVHDYwBIABByAE2AhwgACAINgIUIABByZeAgAA2AhAgAEEVNgIMQQAhEAyaAgsCQCAJIAJHDQBBzAEhEAyaAgtBACEUQQEhF0EBIRZBACEQAkACQAJAAkACQAJAAkACQAJAIAktAABBUGoOCpYBlQEAAQIDBAUGCJcBC0ECIRAMBgtBAyEQDAULQQQhEAwEC0EFIRAMAwtBBiEQDAILQQchEAwBC0EIIRALQQAhF0EAIRZBACEUDI4BC0EJIRBBASEUQQAhF0EAIRYMjQELAkAgCiACRw0AQc4BIRAMmQILIAotAABBLkcNjgEgCkEBaiEJDMoBCyALIAJHDY4BQdABIRAMlwILAkAgCyACRg0AIABBjoCAgAA2AgggACALNgIEQbcBIRAM/gELQdEBIRAMlgILAkAgBCACRw0AQdIBIRAMlgILIAIgBGsgACgCACIQaiEUIAQgEGtBBGohCwNAIAQtAAAgEEH8z4CAAGotAABHDY4BIBBBBEYN6QEgEEEBaiEQIARBAWoiBCACRw0ACyAAIBQ2AgBB0gEhEAyVAgsgACAMIAIQrICAgAAiAQ2NASAMIQEMuAELAkAgBCACRw0AQdQBIRAMlAILIAIgBGsgACgCACIQaiEUIAQgEGtBAWohDANAIAQtAAAgEEGB0ICAAGotAABHDY8BIBBBAUYNjgEgEEEBaiEQIARBAWoiBCACRw0ACyAAIBQ2AgBB1AEhEAyTAgsCQCAEIAJHDQBB1gEhEAyTAgsgAiAEayAAKAIAIhBqIRQgBCAQa0ECaiELA0AgBC0AACAQQYPQgIAAai0AAEcNjgEgEEECRg2QASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHWASEQDJICCwJAIAQgAkcNAEHXASEQDJICCwJAAkAgBC0AAEG7f2oOEACPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BAY8BCyAEQQFqIQRBuwEhEAz5AQsgBEEBaiEEQbwBIRAM+AELAkAgBCACRw0AQdgBIRAMkQILIAQtAABByABHDYwBIARBAWohBAzEAQsCQCAEIAJGDQAgAEGQgICAADYCCCAAIAQ2AgRBvgEhEAz3AQtB2QEhEAyPAgsCQCAEIAJHDQBB2gEhEAyPAgsgBC0AAEHIAEYNwwEgAEEBOgAoDLkBCyAAQQI6AC8gACAEIAIQpoCAgAAiEA2NAUHCASEQDPQBCyAALQAoQX9qDgK3AbkBuAELA0ACQCAELQAAQXZqDgQAjgGOAQCOAQsgBEEBaiIEIAJHDQALQd0BIRAMiwILIABBADoALyAALQAtQQRxRQ2EAgsgAEEAOgAvIABBAToANCABIQEMjAELIBBBFUYN2gEgAEEANgIcIAAgATYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAMiAILAkAgACAQIAIQtICAgAAiBA0AIBAhAQyBAgsCQCAEQRVHDQAgAEEDNgIcIAAgEDYCFCAAQbCYgIAANgIQIABBFTYCDEEAIRAMiAILIABBADYCHCAAIBA2AhQgAEGnjoCAADYCECAAQRI2AgxBACEQDIcCCyAQQRVGDdYBIABBADYCHCAAIAE2AhQgAEHajYCAADYCECAAQRQ2AgxBACEQDIYCCyAAKAIEIRcgAEEANgIEIBAgEadqIhYhASAAIBcgECAWIBQbIhAQtYCAgAAiFEUNjQEgAEEHNgIcIAAgEDYCFCAAIBQ2AgxBACEQDIUCCyAAIAAvATBBgAFyOwEwIAEhAQtBKiEQDOoBCyAQQRVGDdEBIABBADYCHCAAIAE2AhQgAEGDjICAADYCECAAQRM2AgxBACEQDIICCyAQQRVGDc8BIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDIECCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyNAQsgAEEMNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDIACCyAQQRVGDcwBIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDP8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyMAQsgAEENNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDP4BCyAQQRVGDckBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDP0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQuYCAgAAiEA0AIAFBAWohAQyLAQsgAEEONgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPwBCyAAQQA2AhwgACABNgIUIABBwJWAgAA2AhAgAEECNgIMQQAhEAz7AQsgEEEVRg3FASAAQQA2AhwgACABNgIUIABBxoyAgAA2AhAgAEEjNgIMQQAhEAz6AQsgAEEQNgIcIAAgATYCFCAAIBA2AgxBACEQDPkBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQuYCAgAAiBA0AIAFBAWohAQzxAQsgAEERNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPgBCyAQQRVGDcEBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDPcBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQuYCAgAAiEA0AIAFBAWohAQyIAQsgAEETNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPYBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQuYCAgAAiBA0AIAFBAWohAQztAQsgAEEUNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPUBCyAQQRVGDb0BIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDPQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyGAQsgAEEWNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPMBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQt4CAgAAiBA0AIAFBAWohAQzpAQsgAEEXNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPIBCyAAQQA2AhwgACABNgIUIABBzZOAgAA2AhAgAEEMNgIMQQAhEAzxAQtCASERCyAQQQFqIQECQCAAKQMgIhJC//////////8PVg0AIAAgEkIEhiARhDcDICABIQEMhAELIABBADYCHCAAIAE2AhQgAEGtiYCAADYCECAAQQw2AgxBACEQDO8BCyAAQQA2AhwgACAQNgIUIABBzZOAgAA2AhAgAEEMNgIMQQAhEAzuAQsgACgCBCEXIABBADYCBCAQIBGnaiIWIQEgACAXIBAgFiAUGyIQELWAgIAAIhRFDXMgAEEFNgIcIAAgEDYCFCAAIBQ2AgxBACEQDO0BCyAAQQA2AhwgACAQNgIUIABBqpyAgAA2AhAgAEEPNgIMQQAhEAzsAQsgACAQIAIQtICAgAAiAQ0BIBAhAQtBDiEQDNEBCwJAIAFBFUcNACAAQQI2AhwgACAQNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAzqAQsgAEEANgIcIAAgEDYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAM6QELIAFBAWohEAJAIAAvATAiAUGAAXFFDQACQCAAIBAgAhC7gICAACIBDQAgECEBDHALIAFBFUcNugEgAEEFNgIcIAAgEDYCFCAAQfmXgIAANgIQIABBFTYCDEEAIRAM6QELAkAgAUGgBHFBoARHDQAgAC0ALUECcQ0AIABBADYCHCAAIBA2AhQgAEGWk4CAADYCECAAQQQ2AgxBACEQDOkBCyAAIBAgAhC9gICAABogECEBAkACQAJAAkACQCAAIBAgAhCzgICAAA4WAgEABAQEBAQEBAQEBAQEBAQEBAQEAwQLIABBAToALgsgACAALwEwQcAAcjsBMCAQIQELQSYhEAzRAQsgAEEjNgIcIAAgEDYCFCAAQaWWgIAANgIQIABBFTYCDEEAIRAM6QELIABBADYCHCAAIBA2AhQgAEHVi4CAADYCECAAQRE2AgxBACEQDOgBCyAALQAtQQFxRQ0BQcMBIRAMzgELAkAgDSACRg0AA0ACQCANLQAAQSBGDQAgDSEBDMQBCyANQQFqIg0gAkcNAAtBJSEQDOcBC0ElIRAM5gELIAAoAgQhBCAAQQA2AgQgACAEIA0Qr4CAgAAiBEUNrQEgAEEmNgIcIAAgBDYCDCAAIA1BAWo2AhRBACEQDOUBCyAQQRVGDasBIABBADYCHCAAIAE2AhQgAEH9jYCAADYCECAAQR02AgxBACEQDOQBCyAAQSc2AhwgACABNgIUIAAgEDYCDEEAIRAM4wELIBAhAUEBIRQCQAJAAkACQAJAAkACQCAALQAsQX5qDgcGBQUDAQIABQsgACAALwEwQQhyOwEwDAMLQQIhFAwBC0EEIRQLIABBAToALCAAIAAvATAgFHI7ATALIBAhAQtBKyEQDMoBCyAAQQA2AhwgACAQNgIUIABBq5KAgAA2AhAgAEELNgIMQQAhEAziAQsgAEEANgIcIAAgATYCFCAAQeGPgIAANgIQIABBCjYCDEEAIRAM4QELIABBADoALCAQIQEMvQELIBAhAUEBIRQCQAJAAkACQAJAIAAtACxBe2oOBAMBAgAFCyAAIAAvATBBCHI7ATAMAwtBAiEUDAELQQQhFAsgAEEBOgAsIAAgAC8BMCAUcjsBMAsgECEBC0EpIRAMxQELIABBADYCHCAAIAE2AhQgAEHwlICAADYCECAAQQM2AgxBACEQDN0BCwJAIA4tAABBDUcNACAAKAIEIQEgAEEANgIEAkAgACABIA4QsYCAgAAiAQ0AIA5BAWohAQx1CyAAQSw2AhwgACABNgIMIAAgDkEBajYCFEEAIRAM3QELIAAtAC1BAXFFDQFBxAEhEAzDAQsCQCAOIAJHDQBBLSEQDNwBCwJAAkADQAJAIA4tAABBdmoOBAIAAAMACyAOQQFqIg4gAkcNAAtBLSEQDN0BCyAAKAIEIQEgAEEANgIEAkAgACABIA4QsYCAgAAiAQ0AIA4hAQx0CyAAQSw2AhwgACAONgIUIAAgATYCDEEAIRAM3AELIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDkEBaiEBDHMLIABBLDYCHCAAIAE2AgwgACAOQQFqNgIUQQAhEAzbAQsgACgCBCEEIABBADYCBCAAIAQgDhCxgICAACIEDaABIA4hAQzOAQsgEEEsRw0BIAFBAWohEEEBIQECQAJAAkACQAJAIAAtACxBe2oOBAMBAgQACyAQIQEMBAtBAiEBDAELQQQhAQsgAEEBOgAsIAAgAC8BMCABcjsBMCAQIQEMAQsgACAALwEwQQhyOwEwIBAhAQtBOSEQDL8BCyAAQQA6ACwgASEBC0E0IRAMvQELIAAgAC8BMEEgcjsBMCABIQEMAgsgACgCBCEEIABBADYCBAJAIAAgBCABELGAgIAAIgQNACABIQEMxwELIABBNzYCHCAAIAE2AhQgACAENgIMQQAhEAzUAQsgAEEIOgAsIAEhAQtBMCEQDLkBCwJAIAAtAChBAUYNACABIQEMBAsgAC0ALUEIcUUNkwEgASEBDAMLIAAtADBBIHENlAFBxQEhEAy3AQsCQCAPIAJGDQACQANAAkAgDy0AAEFQaiIBQf8BcUEKSQ0AIA8hAUE1IRAMugELIAApAyAiEUKZs+bMmbPmzBlWDQEgACARQgp+IhE3AyAgESABrUL/AYMiEkJ/hVYNASAAIBEgEnw3AyAgD0EBaiIPIAJHDQALQTkhEAzRAQsgACgCBCECIABBADYCBCAAIAIgD0EBaiIEELGAgIAAIgINlQEgBCEBDMMBC0E5IRAMzwELAkAgAC8BMCIBQQhxRQ0AIAAtAChBAUcNACAALQAtQQhxRQ2QAQsgACABQff7A3FBgARyOwEwIA8hAQtBNyEQDLQBCyAAIAAvATBBEHI7ATAMqwELIBBBFUYNiwEgAEEANgIcIAAgATYCFCAAQfCOgIAANgIQIABBHDYCDEEAIRAMywELIABBwwA2AhwgACABNgIMIAAgDUEBajYCFEEAIRAMygELAkAgAS0AAEE6Rw0AIAAoAgQhECAAQQA2AgQCQCAAIBAgARCvgICAACIQDQAgAUEBaiEBDGMLIABBwwA2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAMygELIABBADYCHCAAIAE2AhQgAEGxkYCAADYCECAAQQo2AgxBACEQDMkBCyAAQQA2AhwgACABNgIUIABBoJmAgAA2AhAgAEEeNgIMQQAhEAzIAQsgAEEANgIACyAAQYASOwEqIAAgF0EBaiIBIAIQqICAgAAiEA0BIAEhAQtBxwAhEAysAQsgEEEVRw2DASAAQdEANgIcIAAgATYCFCAAQeOXgIAANgIQIABBFTYCDEEAIRAMxAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDF4LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMwwELIABBADYCHCAAIBQ2AhQgAEHBqICAADYCECAAQQc2AgwgAEEANgIAQQAhEAzCAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMXQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAzBAQtBACEQIABBADYCHCAAIAE2AhQgAEGAkYCAADYCECAAQQk2AgwMwAELIBBBFUYNfSAAQQA2AhwgACABNgIUIABBlI2AgAA2AhAgAEEhNgIMQQAhEAy/AQtBASEWQQAhF0EAIRRBASEQCyAAIBA6ACsgAUEBaiEBAkACQCAALQAtQRBxDQACQAJAAkAgAC0AKg4DAQACBAsgFkUNAwwCCyAUDQEMAgsgF0UNAQsgACgCBCEQIABBADYCBAJAIAAgECABEK2AgIAAIhANACABIQEMXAsgAEHYADYCHCAAIAE2AhQgACAQNgIMQQAhEAy+AQsgACgCBCEEIABBADYCBAJAIAAgBCABEK2AgIAAIgQNACABIQEMrQELIABB2QA2AhwgACABNgIUIAAgBDYCDEEAIRAMvQELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKsBCyAAQdoANgIcIAAgATYCFCAAIAQ2AgxBACEQDLwBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQypAQsgAEHcADYCHCAAIAE2AhQgACAENgIMQQAhEAy7AQsCQCABLQAAQVBqIhBB/wFxQQpPDQAgACAQOgAqIAFBAWohAUHPACEQDKIBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQynAQsgAEHeADYCHCAAIAE2AhQgACAENgIMQQAhEAy6AQsgAEEANgIAIBdBAWohAQJAIAAtAClBI08NACABIQEMWQsgAEEANgIcIAAgATYCFCAAQdOJgIAANgIQIABBCDYCDEEAIRAMuQELIABBADYCAAtBACEQIABBADYCHCAAIAE2AhQgAEGQs4CAADYCECAAQQg2AgwMtwELIABBADYCACAXQQFqIQECQCAALQApQSFHDQAgASEBDFYLIABBADYCHCAAIAE2AhQgAEGbioCAADYCECAAQQg2AgxBACEQDLYBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKSIQQV1qQQtPDQAgASEBDFULAkAgEEEGSw0AQQEgEHRBygBxRQ0AIAEhAQxVC0EAIRAgAEEANgIcIAAgATYCFCAAQfeJgIAANgIQIABBCDYCDAy1AQsgEEEVRg1xIABBADYCHCAAIAE2AhQgAEG5jYCAADYCECAAQRo2AgxBACEQDLQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxUCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLMBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRALIAAgEDoAKSAAKAIEIRAgAEEANgIEIAAgECABEKuAgIAAIhANVCABIQEMPgsgAEEANgIAC0EAIRAgAEEANgIcIAAgBDYCFCAAQfGbgIAANgIQIABBBjYCDAyXAQsgAUEVRg1QIABBADYCHCAAIAU2AhQgAEHwjICAADYCECAAQRs2AgxBACEQDJYBCyAAKAIEIQUgAEEANgIEIAAgBSAQEKmAgIAAIgUNASAQQQFqIQULQa0BIRAMewsgAEHBATYCHCAAIAU2AgwgACAQQQFqNgIUQQAhEAyTAQsgACgCBCEGIABBADYCBCAAIAYgEBCpgICAACIGDQEgEEEBaiEGC0GuASEQDHgLIABBwgE2AhwgACAGNgIMIAAgEEEBajYCFEEAIRAMkAELIABBADYCHCAAIAc2AhQgAEGXi4CAADYCECAAQQ02AgxBACEQDI8BCyAAQQA2AhwgACAINgIUIABB45CAgAA2AhAgAEEJNgIMQQAhEAyOAQsgAEEANgIcIAAgCDYCFCAAQZSNgIAANgIQIABBITYCDEEAIRAMjQELQQEhFkEAIRdBACEUQQEhEAsgACAQOgArIAlBAWohCAJAAkAgAC0ALUEQcQ0AAkACQAJAIAAtACoOAwEAAgQLIBZFDQMMAgsgFA0BDAILIBdFDQELIAAoAgQhECAAQQA2AgQgACAQIAgQrYCAgAAiEEUNPSAAQckBNgIcIAAgCDYCFCAAIBA2AgxBACEQDIwBCyAAKAIEIQQgAEEANgIEIAAgBCAIEK2AgIAAIgRFDXYgAEHKATYCHCAAIAg2AhQgACAENgIMQQAhEAyLAQsgACgCBCEEIABBADYCBCAAIAQgCRCtgICAACIERQ10IABBywE2AhwgACAJNgIUIAAgBDYCDEEAIRAMigELIAAoAgQhBCAAQQA2AgQgACAEIAoQrYCAgAAiBEUNciAAQc0BNgIcIAAgCjYCFCAAIAQ2AgxBACEQDIkBCwJAIAstAABBUGoiEEH/AXFBCk8NACAAIBA6ACogC0EBaiEKQbYBIRAMcAsgACgCBCEEIABBADYCBCAAIAQgCxCtgICAACIERQ1wIABBzwE2AhwgACALNgIUIAAgBDYCDEEAIRAMiAELIABBADYCHCAAIAQ2AhQgAEGQs4CAADYCECAAQQg2AgwgAEEANgIAQQAhEAyHAQsgAUEVRg0/IABBADYCHCAAIAw2AhQgAEHMjoCAADYCECAAQSA2AgxBACEQDIYBCyAAQYEEOwEoIAAoAgQhECAAQgA3AwAgACAQIAxBAWoiDBCrgICAACIQRQ04IABB0wE2AhwgACAMNgIUIAAgEDYCDEEAIRAMhQELIABBADYCAAtBACEQIABBADYCHCAAIAQ2AhQgAEHYm4CAADYCECAAQQg2AgwMgwELIAAoAgQhECAAQgA3AwAgACAQIAtBAWoiCxCrgICAACIQDQFBxgEhEAxpCyAAQQI6ACgMVQsgAEHVATYCHCAAIAs2AhQgACAQNgIMQQAhEAyAAQsgEEEVRg03IABBADYCHCAAIAQ2AhQgAEGkjICAADYCECAAQRA2AgxBACEQDH8LIAAtADRBAUcNNCAAIAQgAhC8gICAACIQRQ00IBBBFUcNNSAAQdwBNgIcIAAgBDYCFCAAQdWWgIAANgIQIABBFTYCDEEAIRAMfgtBACEQIABBADYCHCAAQa+LgIAANgIQIABBAjYCDCAAIBRBAWo2AhQMfQtBACEQDGMLQQIhEAxiC0ENIRAMYQtBDyEQDGALQSUhEAxfC0ETIRAMXgtBFSEQDF0LQRYhEAxcC0EXIRAMWwtBGCEQDFoLQRkhEAxZC0EaIRAMWAtBGyEQDFcLQRwhEAxWC0EdIRAMVQtBHyEQDFQLQSEhEAxTC0EjIRAMUgtBxgAhEAxRC0EuIRAMUAtBLyEQDE8LQTshEAxOC0E9IRAMTQtByAAhEAxMC0HJACEQDEsLQcsAIRAMSgtBzAAhEAxJC0HOACEQDEgLQdEAIRAMRwtB1QAhEAxGC0HYACEQDEULQdkAIRAMRAtB2wAhEAxDC0HkACEQDEILQeUAIRAMQQtB8QAhEAxAC0H0ACEQDD8LQY0BIRAMPgtBlwEhEAw9C0GpASEQDDwLQawBIRAMOwtBwAEhEAw6C0G5ASEQDDkLQa8BIRAMOAtBsQEhEAw3C0GyASEQDDYLQbQBIRAMNQtBtQEhEAw0C0G6ASEQDDMLQb0BIRAMMgtBvwEhEAwxC0HBASEQDDALIABBADYCHCAAIAQ2AhQgAEHpi4CAADYCECAAQR82AgxBACEQDEgLIABB2wE2AhwgACAENgIUIABB+paAgAA2AhAgAEEVNgIMQQAhEAxHCyAAQfgANgIcIAAgDDYCFCAAQcqYgIAANgIQIABBFTYCDEEAIRAMRgsgAEHRADYCHCAAIAU2AhQgAEGwl4CAADYCECAAQRU2AgxBACEQDEULIABB+QA2AhwgACABNgIUIAAgEDYCDEEAIRAMRAsgAEH4ADYCHCAAIAE2AhQgAEHKmICAADYCECAAQRU2AgxBACEQDEMLIABB5AA2AhwgACABNgIUIABB45eAgAA2AhAgAEEVNgIMQQAhEAxCCyAAQdcANgIcIAAgATYCFCAAQcmXgIAANgIQIABBFTYCDEEAIRAMQQsgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMQAsgAEHCADYCHCAAIAE2AhQgAEHjmICAADYCECAAQRU2AgxBACEQDD8LIABBADYCBCAAIA8gDxCxgICAACIERQ0BIABBOjYCHCAAIAQ2AgwgACAPQQFqNgIUQQAhEAw+CyAAKAIEIQQgAEEANgIEAkAgACAEIAEQsYCAgAAiBEUNACAAQTs2AhwgACAENgIMIAAgAUEBajYCFEEAIRAMPgsgAUEBaiEBDC0LIA9BAWohAQwtCyAAQQA2AhwgACAPNgIUIABB5JKAgAA2AhAgAEEENgIMQQAhEAw7CyAAQTY2AhwgACAENgIUIAAgAjYCDEEAIRAMOgsgAEEuNgIcIAAgDjYCFCAAIAQ2AgxBACEQDDkLIABB0AA2AhwgACABNgIUIABBkZiAgAA2AhAgAEEVNgIMQQAhEAw4CyANQQFqIQEMLAsgAEEVNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMNgsgAEEbNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMNQsgAEEPNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMNAsgAEELNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMMwsgAEEaNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMMgsgAEELNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMMQsgAEEKNgIcIAAgATYCFCAAQeSWgIAANgIQIABBFTYCDEEAIRAMMAsgAEEeNgIcIAAgATYCFCAAQfmXgIAANgIQIABBFTYCDEEAIRAMLwsgAEEANgIcIAAgEDYCFCAAQdqNgIAANgIQIABBFDYCDEEAIRAMLgsgAEEENgIcIAAgATYCFCAAQbCYgIAANgIQIABBFTYCDEEAIRAMLQsgAEEANgIAIAtBAWohCwtBuAEhEAwSCyAAQQA2AgAgEEEBaiEBQfUAIRAMEQsgASEBAkAgAC0AKUEFRw0AQeMAIRAMEQtB4gAhEAwQC0EAIRAgAEEANgIcIABB5JGAgAA2AhAgAEEHNgIMIAAgFEEBajYCFAwoCyAAQQA2AgAgF0EBaiEBQcAAIRAMDgtBASEBCyAAIAE6ACwgAEEANgIAIBdBAWohAQtBKCEQDAsLIAEhAQtBOCEQDAkLAkAgASIPIAJGDQADQAJAIA8tAABBgL6AgABqLQAAIgFBAUYNACABQQJHDQMgD0EBaiEBDAQLIA9BAWoiDyACRw0AC0E+IRAMIgtBPiEQDCELIABBADoALCAPIQEMAQtBCyEQDAYLQTohEAwFCyABQQFqIQFBLSEQDAQLIAAgAToALCAAQQA2AgAgFkEBaiEBQQwhEAwDCyAAQQA2AgAgF0EBaiEBQQohEAwCCyAAQQA2AgALIABBADoALCANIQFBCSEQDAALC0EAIRAgAEEANgIcIAAgCzYCFCAAQc2QgIAANgIQIABBCTYCDAwXC0EAIRAgAEEANgIcIAAgCjYCFCAAQemKgIAANgIQIABBCTYCDAwWC0EAIRAgAEEANgIcIAAgCTYCFCAAQbeQgIAANgIQIABBCTYCDAwVC0EAIRAgAEEANgIcIAAgCDYCFCAAQZyRgIAANgIQIABBCTYCDAwUC0EAIRAgAEEANgIcIAAgATYCFCAAQc2QgIAANgIQIABBCTYCDAwTC0EAIRAgAEEANgIcIAAgATYCFCAAQemKgIAANgIQIABBCTYCDAwSC0EAIRAgAEEANgIcIAAgATYCFCAAQbeQgIAANgIQIABBCTYCDAwRC0EAIRAgAEEANgIcIAAgATYCFCAAQZyRgIAANgIQIABBCTYCDAwQC0EAIRAgAEEANgIcIAAgATYCFCAAQZeVgIAANgIQIABBDzYCDAwPC0EAIRAgAEEANgIcIAAgATYCFCAAQZeVgIAANgIQIABBDzYCDAwOC0EAIRAgAEEANgIcIAAgATYCFCAAQcCSgIAANgIQIABBCzYCDAwNC0EAIRAgAEEANgIcIAAgATYCFCAAQZWJgIAANgIQIABBCzYCDAwMC0EAIRAgAEEANgIcIAAgATYCFCAAQeGPgIAANgIQIABBCjYCDAwLC0EAIRAgAEEANgIcIAAgATYCFCAAQfuPgIAANgIQIABBCjYCDAwKC0EAIRAgAEEANgIcIAAgATYCFCAAQfGZgIAANgIQIABBAjYCDAwJC0EAIRAgAEEANgIcIAAgATYCFCAAQcSUgIAANgIQIABBAjYCDAwIC0EAIRAgAEEANgIcIAAgATYCFCAAQfKVgIAANgIQIABBAjYCDAwHCyAAQQI2AhwgACABNgIUIABBnJqAgAA2AhAgAEEWNgIMQQAhEAwGC0EBIRAMBQtB1AAhECABIgQgAkYNBCADQQhqIAAgBCACQdjCgIAAQQoQxYCAgAAgAygCDCEEIAMoAggOAwEEAgALEMqAgIAAAAsgAEEANgIcIABBtZqAgAA2AhAgAEEXNgIMIAAgBEEBajYCFEEAIRAMAgsgAEEANgIcIAAgBDYCFCAAQcqagIAANgIQIABBCTYCDEEAIRAMAQsCQCABIgQgAkcNAEEiIRAMAQsgAEGJgICAADYCCCAAIAQ2AgRBISEQCyADQRBqJICAgIAAIBALrwEBAn8gASgCACEGAkACQCACIANGDQAgBCAGaiEEIAYgA2ogAmshByACIAZBf3MgBWoiBmohBQNAAkAgAi0AACAELQAARg0AQQIhBAwDCwJAIAYNAEEAIQQgBSECDAMLIAZBf2ohBiAEQQFqIQQgAkEBaiICIANHDQALIAchBiADIQILIABBATYCACABIAY2AgAgACACNgIEDwsgAUEANgIAIAAgBDYCACAAIAI2AgQLCgAgABDHgICAAAvyNgELfyOAgICAAEEQayIBJICAgIAAAkBBACgCoNCAgAANAEEAEMuAgIAAQYDUhIAAayICQdkASQ0AQQAhAwJAQQAoAuDTgIAAIgQNAEEAQn83AuzTgIAAQQBCgICEgICAwAA3AuTTgIAAQQAgAUEIakFwcUHYqtWqBXMiBDYC4NOAgABBAEEANgL004CAAEEAQQA2AsTTgIAAC0EAIAI2AszTgIAAQQBBgNSEgAA2AsjTgIAAQQBBgNSEgAA2ApjQgIAAQQAgBDYCrNCAgABBAEF/NgKo0ICAAANAIANBxNCAgABqIANBuNCAgABqIgQ2AgAgBCADQbDQgIAAaiIFNgIAIANBvNCAgABqIAU2AgAgA0HM0ICAAGogA0HA0ICAAGoiBTYCACAFIAQ2AgAgA0HU0ICAAGogA0HI0ICAAGoiBDYCACAEIAU2AgAgA0HQ0ICAAGogBDYCACADQSBqIgNBgAJHDQALQYDUhIAAQXhBgNSEgABrQQ9xQQBBgNSEgABBCGpBD3EbIgNqIgRBBGogAkFIaiIFIANrIgNBAXI2AgBBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAQ2AqDQgIAAQYDUhIAAIAVqQTg2AgQLAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFLDQACQEEAKAKI0ICAACIGQRAgAEETakFwcSAAQQtJGyICQQN2IgR2IgNBA3FFDQACQAJAIANBAXEgBHJBAXMiBUEDdCIEQbDQgIAAaiIDIARBuNCAgABqKAIAIgQoAggiAkcNAEEAIAZBfiAFd3E2AojQgIAADAELIAMgAjYCCCACIAM2AgwLIARBCGohAyAEIAVBA3QiBUEDcjYCBCAEIAVqIgQgBCgCBEEBcjYCBAwMCyACQQAoApDQgIAAIgdNDQECQCADRQ0AAkACQCADIAR0QQIgBHQiA0EAIANrcnEiA0EAIANrcUF/aiIDIANBDHZBEHEiA3YiBEEFdkEIcSIFIANyIAQgBXYiA0ECdkEEcSIEciADIAR2IgNBAXZBAnEiBHIgAyAEdiIDQQF2QQFxIgRyIAMgBHZqIgRBA3QiA0Gw0ICAAGoiBSADQbjQgIAAaigCACIDKAIIIgBHDQBBACAGQX4gBHdxIgY2AojQgIAADAELIAUgADYCCCAAIAU2AgwLIAMgAkEDcjYCBCADIARBA3QiBGogBCACayIFNgIAIAMgAmoiACAFQQFyNgIEAkAgB0UNACAHQXhxQbDQgIAAaiECQQAoApzQgIAAIQQCQAJAIAZBASAHQQN2dCIIcQ0AQQAgBiAIcjYCiNCAgAAgAiEIDAELIAIoAgghCAsgCCAENgIMIAIgBDYCCCAEIAI2AgwgBCAINgIICyADQQhqIQNBACAANgKc0ICAAEEAIAU2ApDQgIAADAwLQQAoAozQgIAAIglFDQEgCUEAIAlrcUF/aiIDIANBDHZBEHEiA3YiBEEFdkEIcSIFIANyIAQgBXYiA0ECdkEEcSIEciADIAR2IgNBAXZBAnEiBHIgAyAEdiIDQQF2QQFxIgRyIAMgBHZqQQJ0QbjSgIAAaigCACIAKAIEQXhxIAJrIQQgACEFAkADQAJAIAUoAhAiAw0AIAVBFGooAgAiA0UNAgsgAygCBEF4cSACayIFIAQgBSAESSIFGyEEIAMgACAFGyEAIAMhBQwACwsgACgCGCEKAkAgACgCDCIIIABGDQAgACgCCCIDQQAoApjQgIAASRogCCADNgIIIAMgCDYCDAwLCwJAIABBFGoiBSgCACIDDQAgACgCECIDRQ0DIABBEGohBQsDQCAFIQsgAyIIQRRqIgUoAgAiAw0AIAhBEGohBSAIKAIQIgMNAAsgC0EANgIADAoLQX8hAiAAQb9/Sw0AIABBE2oiA0FwcSECQQAoAozQgIAAIgdFDQBBACELAkAgAkGAAkkNAEEfIQsgAkH///8HSw0AIANBCHYiAyADQYD+P2pBEHZBCHEiA3QiBCAEQYDgH2pBEHZBBHEiBHQiBSAFQYCAD2pBEHZBAnEiBXRBD3YgAyAEciAFcmsiA0EBdCACIANBFWp2QQFxckEcaiELC0EAIAJrIQQCQAJAAkACQCALQQJ0QbjSgIAAaigCACIFDQBBACEDQQAhCAwBC0EAIQMgAkEAQRkgC0EBdmsgC0EfRht0IQBBACEIA0ACQCAFKAIEQXhxIAJrIgYgBE8NACAGIQQgBSEIIAYNAEEAIQQgBSEIIAUhAwwDCyADIAVBFGooAgAiBiAGIAUgAEEddkEEcWpBEGooAgAiBUYbIAMgBhshAyAAQQF0IQAgBQ0ACwsCQCADIAhyDQBBACEIQQIgC3QiA0EAIANrciAHcSIDRQ0DIANBACADa3FBf2oiAyADQQx2QRBxIgN2IgVBBXZBCHEiACADciAFIAB2IgNBAnZBBHEiBXIgAyAFdiIDQQF2QQJxIgVyIAMgBXYiA0EBdkEBcSIFciADIAV2akECdEG40oCAAGooAgAhAwsgA0UNAQsDQCADKAIEQXhxIAJrIgYgBEkhAAJAIAMoAhAiBQ0AIANBFGooAgAhBQsgBiAEIAAbIQQgAyAIIAAbIQggBSEDIAUNAAsLIAhFDQAgBEEAKAKQ0ICAACACa08NACAIKAIYIQsCQCAIKAIMIgAgCEYNACAIKAIIIgNBACgCmNCAgABJGiAAIAM2AgggAyAANgIMDAkLAkAgCEEUaiIFKAIAIgMNACAIKAIQIgNFDQMgCEEQaiEFCwNAIAUhBiADIgBBFGoiBSgCACIDDQAgAEEQaiEFIAAoAhAiAw0ACyAGQQA2AgAMCAsCQEEAKAKQ0ICAACIDIAJJDQBBACgCnNCAgAAhBAJAAkAgAyACayIFQRBJDQAgBCACaiIAIAVBAXI2AgRBACAFNgKQ0ICAAEEAIAA2ApzQgIAAIAQgA2ogBTYCACAEIAJBA3I2AgQMAQsgBCADQQNyNgIEIAQgA2oiAyADKAIEQQFyNgIEQQBBADYCnNCAgABBAEEANgKQ0ICAAAsgBEEIaiEDDAoLAkBBACgClNCAgAAiACACTQ0AQQAoAqDQgIAAIgMgAmoiBCAAIAJrIgVBAXI2AgRBACAFNgKU0ICAAEEAIAQ2AqDQgIAAIAMgAkEDcjYCBCADQQhqIQMMCgsCQAJAQQAoAuDTgIAARQ0AQQAoAujTgIAAIQQMAQtBAEJ/NwLs04CAAEEAQoCAhICAgMAANwLk04CAAEEAIAFBDGpBcHFB2KrVqgVzNgLg04CAAEEAQQA2AvTTgIAAQQBBADYCxNOAgABBgIAEIQQLQQAhAwJAIAQgAkHHAGoiB2oiBkEAIARrIgtxIgggAksNAEEAQTA2AvjTgIAADAoLAkBBACgCwNOAgAAiA0UNAAJAQQAoArjTgIAAIgQgCGoiBSAETQ0AIAUgA00NAQtBACEDQQBBMDYC+NOAgAAMCgtBAC0AxNOAgABBBHENBAJAAkACQEEAKAKg0ICAACIERQ0AQcjTgIAAIQMDQAJAIAMoAgAiBSAESw0AIAUgAygCBGogBEsNAwsgAygCCCIDDQALC0EAEMuAgIAAIgBBf0YNBSAIIQYCQEEAKALk04CAACIDQX9qIgQgAHFFDQAgCCAAayAEIABqQQAgA2txaiEGCyAGIAJNDQUgBkH+////B0sNBQJAQQAoAsDTgIAAIgNFDQBBACgCuNOAgAAiBCAGaiIFIARNDQYgBSADSw0GCyAGEMuAgIAAIgMgAEcNAQwHCyAGIABrIAtxIgZB/v///wdLDQQgBhDLgICAACIAIAMoAgAgAygCBGpGDQMgACEDCwJAIANBf0YNACACQcgAaiAGTQ0AAkAgByAGa0EAKALo04CAACIEakEAIARrcSIEQf7///8HTQ0AIAMhAAwHCwJAIAQQy4CAgABBf0YNACAEIAZqIQYgAyEADAcLQQAgBmsQy4CAgAAaDAQLIAMhACADQX9HDQUMAwtBACEIDAcLQQAhAAwFCyAAQX9HDQILQQBBACgCxNOAgABBBHI2AsTTgIAACyAIQf7///8HSw0BIAgQy4CAgAAhAEEAEMuAgIAAIQMgAEF/Rg0BIANBf0YNASAAIANPDQEgAyAAayIGIAJBOGpNDQELQQBBACgCuNOAgAAgBmoiAzYCuNOAgAACQCADQQAoArzTgIAATQ0AQQAgAzYCvNOAgAALAkACQAJAAkBBACgCoNCAgAAiBEUNAEHI04CAACEDA0AgACADKAIAIgUgAygCBCIIakYNAiADKAIIIgMNAAwDCwsCQAJAQQAoApjQgIAAIgNFDQAgACADTw0BC0EAIAA2ApjQgIAAC0EAIQNBACAGNgLM04CAAEEAIAA2AsjTgIAAQQBBfzYCqNCAgABBAEEAKALg04CAADYCrNCAgABBAEEANgLU04CAAANAIANBxNCAgABqIANBuNCAgABqIgQ2AgAgBCADQbDQgIAAaiIFNgIAIANBvNCAgABqIAU2AgAgA0HM0ICAAGogA0HA0ICAAGoiBTYCACAFIAQ2AgAgA0HU0ICAAGogA0HI0ICAAGoiBDYCACAEIAU2AgAgA0HQ0ICAAGogBDYCACADQSBqIgNBgAJHDQALIABBeCAAa0EPcUEAIABBCGpBD3EbIgNqIgQgBkFIaiIFIANrIgNBAXI2AgRBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAQ2AqDQgIAAIAAgBWpBODYCBAwCCyADLQAMQQhxDQAgBCAFSQ0AIAQgAE8NACAEQXggBGtBD3FBACAEQQhqQQ9xGyIFaiIAQQAoApTQgIAAIAZqIgsgBWsiBUEBcjYCBCADIAggBmo2AgRBAEEAKALw04CAADYCpNCAgABBACAFNgKU0ICAAEEAIAA2AqDQgIAAIAQgC2pBODYCBAwBCwJAIABBACgCmNCAgAAiCE8NAEEAIAA2ApjQgIAAIAAhCAsgACAGaiEFQcjTgIAAIQMCQAJAAkACQAJAAkACQANAIAMoAgAgBUYNASADKAIIIgMNAAwCCwsgAy0ADEEIcUUNAQtByNOAgAAhAwNAAkAgAygCACIFIARLDQAgBSADKAIEaiIFIARLDQMLIAMoAgghAwwACwsgAyAANgIAIAMgAygCBCAGajYCBCAAQXggAGtBD3FBACAAQQhqQQ9xG2oiCyACQQNyNgIEIAVBeCAFa0EPcUEAIAVBCGpBD3EbaiIGIAsgAmoiAmshAwJAIAYgBEcNAEEAIAI2AqDQgIAAQQBBACgClNCAgAAgA2oiAzYClNCAgAAgAiADQQFyNgIEDAMLAkAgBkEAKAKc0ICAAEcNAEEAIAI2ApzQgIAAQQBBACgCkNCAgAAgA2oiAzYCkNCAgAAgAiADQQFyNgIEIAIgA2ogAzYCAAwDCwJAIAYoAgQiBEEDcUEBRw0AIARBeHEhBwJAAkAgBEH/AUsNACAGKAIIIgUgBEEDdiIIQQN0QbDQgIAAaiIARhoCQCAGKAIMIgQgBUcNAEEAQQAoAojQgIAAQX4gCHdxNgKI0ICAAAwCCyAEIABGGiAEIAU2AgggBSAENgIMDAELIAYoAhghCQJAAkAgBigCDCIAIAZGDQAgBigCCCIEIAhJGiAAIAQ2AgggBCAANgIMDAELAkAgBkEUaiIEKAIAIgUNACAGQRBqIgQoAgAiBQ0AQQAhAAwBCwNAIAQhCCAFIgBBFGoiBCgCACIFDQAgAEEQaiEEIAAoAhAiBQ0ACyAIQQA2AgALIAlFDQACQAJAIAYgBigCHCIFQQJ0QbjSgIAAaiIEKAIARw0AIAQgADYCACAADQFBAEEAKAKM0ICAAEF+IAV3cTYCjNCAgAAMAgsgCUEQQRQgCSgCECAGRhtqIAA2AgAgAEUNAQsgACAJNgIYAkAgBigCECIERQ0AIAAgBDYCECAEIAA2AhgLIAYoAhQiBEUNACAAQRRqIAQ2AgAgBCAANgIYCyAHIANqIQMgBiAHaiIGKAIEIQQLIAYgBEF+cTYCBCACIANqIAM2AgAgAiADQQFyNgIEAkAgA0H/AUsNACADQXhxQbDQgIAAaiEEAkACQEEAKAKI0ICAACIFQQEgA0EDdnQiA3ENAEEAIAUgA3I2AojQgIAAIAQhAwwBCyAEKAIIIQMLIAMgAjYCDCAEIAI2AgggAiAENgIMIAIgAzYCCAwDC0EfIQQCQCADQf///wdLDQAgA0EIdiIEIARBgP4/akEQdkEIcSIEdCIFIAVBgOAfakEQdkEEcSIFdCIAIABBgIAPakEQdkECcSIAdEEPdiAEIAVyIAByayIEQQF0IAMgBEEVanZBAXFyQRxqIQQLIAIgBDYCHCACQgA3AhAgBEECdEG40oCAAGohBQJAQQAoAozQgIAAIgBBASAEdCIIcQ0AIAUgAjYCAEEAIAAgCHI2AozQgIAAIAIgBTYCGCACIAI2AgggAiACNgIMDAMLIANBAEEZIARBAXZrIARBH0YbdCEEIAUoAgAhAANAIAAiBSgCBEF4cSADRg0CIARBHXYhACAEQQF0IQQgBSAAQQRxakEQaiIIKAIAIgANAAsgCCACNgIAIAIgBTYCGCACIAI2AgwgAiACNgIIDAILIABBeCAAa0EPcUEAIABBCGpBD3EbIgNqIgsgBkFIaiIIIANrIgNBAXI2AgQgACAIakE4NgIEIAQgBUE3IAVrQQ9xQQAgBUFJakEPcRtqQUFqIgggCCAEQRBqSRsiCEEjNgIEQQBBACgC8NOAgAA2AqTQgIAAQQAgAzYClNCAgABBACALNgKg0ICAACAIQRBqQQApAtDTgIAANwIAIAhBACkCyNOAgAA3AghBACAIQQhqNgLQ04CAAEEAIAY2AszTgIAAQQAgADYCyNOAgABBAEEANgLU04CAACAIQSRqIQMDQCADQQc2AgAgA0EEaiIDIAVJDQALIAggBEYNAyAIIAgoAgRBfnE2AgQgCCAIIARrIgA2AgAgBCAAQQFyNgIEAkAgAEH/AUsNACAAQXhxQbDQgIAAaiEDAkACQEEAKAKI0ICAACIFQQEgAEEDdnQiAHENAEEAIAUgAHI2AojQgIAAIAMhBQwBCyADKAIIIQULIAUgBDYCDCADIAQ2AgggBCADNgIMIAQgBTYCCAwEC0EfIQMCQCAAQf///wdLDQAgAEEIdiIDIANBgP4/akEQdkEIcSIDdCIFIAVBgOAfakEQdkEEcSIFdCIIIAhBgIAPakEQdkECcSIIdEEPdiADIAVyIAhyayIDQQF0IAAgA0EVanZBAXFyQRxqIQMLIAQgAzYCHCAEQgA3AhAgA0ECdEG40oCAAGohBQJAQQAoAozQgIAAIghBASADdCIGcQ0AIAUgBDYCAEEAIAggBnI2AozQgIAAIAQgBTYCGCAEIAQ2AgggBCAENgIMDAQLIABBAEEZIANBAXZrIANBH0YbdCEDIAUoAgAhCANAIAgiBSgCBEF4cSAARg0DIANBHXYhCCADQQF0IQMgBSAIQQRxakEQaiIGKAIAIggNAAsgBiAENgIAIAQgBTYCGCAEIAQ2AgwgBCAENgIIDAMLIAUoAggiAyACNgIMIAUgAjYCCCACQQA2AhggAiAFNgIMIAIgAzYCCAsgC0EIaiEDDAULIAUoAggiAyAENgIMIAUgBDYCCCAEQQA2AhggBCAFNgIMIAQgAzYCCAtBACgClNCAgAAiAyACTQ0AQQAoAqDQgIAAIgQgAmoiBSADIAJrIgNBAXI2AgRBACADNgKU0ICAAEEAIAU2AqDQgIAAIAQgAkEDcjYCBCAEQQhqIQMMAwtBACEDQQBBMDYC+NOAgAAMAgsCQCALRQ0AAkACQCAIIAgoAhwiBUECdEG40oCAAGoiAygCAEcNACADIAA2AgAgAA0BQQAgB0F+IAV3cSIHNgKM0ICAAAwCCyALQRBBFCALKAIQIAhGG2ogADYCACAARQ0BCyAAIAs2AhgCQCAIKAIQIgNFDQAgACADNgIQIAMgADYCGAsgCEEUaigCACIDRQ0AIABBFGogAzYCACADIAA2AhgLAkACQCAEQQ9LDQAgCCAEIAJqIgNBA3I2AgQgCCADaiIDIAMoAgRBAXI2AgQMAQsgCCACaiIAIARBAXI2AgQgCCACQQNyNgIEIAAgBGogBDYCAAJAIARB/wFLDQAgBEF4cUGw0ICAAGohAwJAAkBBACgCiNCAgAAiBUEBIARBA3Z0IgRxDQBBACAFIARyNgKI0ICAACADIQQMAQsgAygCCCEECyAEIAA2AgwgAyAANgIIIAAgAzYCDCAAIAQ2AggMAQtBHyEDAkAgBEH///8HSw0AIARBCHYiAyADQYD+P2pBEHZBCHEiA3QiBSAFQYDgH2pBEHZBBHEiBXQiAiACQYCAD2pBEHZBAnEiAnRBD3YgAyAFciACcmsiA0EBdCAEIANBFWp2QQFxckEcaiEDCyAAIAM2AhwgAEIANwIQIANBAnRBuNKAgABqIQUCQCAHQQEgA3QiAnENACAFIAA2AgBBACAHIAJyNgKM0ICAACAAIAU2AhggACAANgIIIAAgADYCDAwBCyAEQQBBGSADQQF2ayADQR9GG3QhAyAFKAIAIQICQANAIAIiBSgCBEF4cSAERg0BIANBHXYhAiADQQF0IQMgBSACQQRxakEQaiIGKAIAIgINAAsgBiAANgIAIAAgBTYCGCAAIAA2AgwgACAANgIIDAELIAUoAggiAyAANgIMIAUgADYCCCAAQQA2AhggACAFNgIMIAAgAzYCCAsgCEEIaiEDDAELAkAgCkUNAAJAAkAgACAAKAIcIgVBAnRBuNKAgABqIgMoAgBHDQAgAyAINgIAIAgNAUEAIAlBfiAFd3E2AozQgIAADAILIApBEEEUIAooAhAgAEYbaiAINgIAIAhFDQELIAggCjYCGAJAIAAoAhAiA0UNACAIIAM2AhAgAyAINgIYCyAAQRRqKAIAIgNFDQAgCEEUaiADNgIAIAMgCDYCGAsCQAJAIARBD0sNACAAIAQgAmoiA0EDcjYCBCAAIANqIgMgAygCBEEBcjYCBAwBCyAAIAJqIgUgBEEBcjYCBCAAIAJBA3I2AgQgBSAEaiAENgIAAkAgB0UNACAHQXhxQbDQgIAAaiECQQAoApzQgIAAIQMCQAJAQQEgB0EDdnQiCCAGcQ0AQQAgCCAGcjYCiNCAgAAgAiEIDAELIAIoAgghCAsgCCADNgIMIAIgAzYCCCADIAI2AgwgAyAINgIIC0EAIAU2ApzQgIAAQQAgBDYCkNCAgAALIABBCGohAwsgAUEQaiSAgICAACADCwoAIAAQyYCAgAAL4g0BB38CQCAARQ0AIABBeGoiASAAQXxqKAIAIgJBeHEiAGohAwJAIAJBAXENACACQQNxRQ0BIAEgASgCACICayIBQQAoApjQgIAAIgRJDQEgAiAAaiEAAkAgAUEAKAKc0ICAAEYNAAJAIAJB/wFLDQAgASgCCCIEIAJBA3YiBUEDdEGw0ICAAGoiBkYaAkAgASgCDCICIARHDQBBAEEAKAKI0ICAAEF+IAV3cTYCiNCAgAAMAwsgAiAGRhogAiAENgIIIAQgAjYCDAwCCyABKAIYIQcCQAJAIAEoAgwiBiABRg0AIAEoAggiAiAESRogBiACNgIIIAIgBjYCDAwBCwJAIAFBFGoiAigCACIEDQAgAUEQaiICKAIAIgQNAEEAIQYMAQsDQCACIQUgBCIGQRRqIgIoAgAiBA0AIAZBEGohAiAGKAIQIgQNAAsgBUEANgIACyAHRQ0BAkACQCABIAEoAhwiBEECdEG40oCAAGoiAigCAEcNACACIAY2AgAgBg0BQQBBACgCjNCAgABBfiAEd3E2AozQgIAADAMLIAdBEEEUIAcoAhAgAUYbaiAGNgIAIAZFDQILIAYgBzYCGAJAIAEoAhAiAkUNACAGIAI2AhAgAiAGNgIYCyABKAIUIgJFDQEgBkEUaiACNgIAIAIgBjYCGAwBCyADKAIEIgJBA3FBA0cNACADIAJBfnE2AgRBACAANgKQ0ICAACABIABqIAA2AgAgASAAQQFyNgIEDwsgASADTw0AIAMoAgQiAkEBcUUNAAJAAkAgAkECcQ0AAkAgA0EAKAKg0ICAAEcNAEEAIAE2AqDQgIAAQQBBACgClNCAgAAgAGoiADYClNCAgAAgASAAQQFyNgIEIAFBACgCnNCAgABHDQNBAEEANgKQ0ICAAEEAQQA2ApzQgIAADwsCQCADQQAoApzQgIAARw0AQQAgATYCnNCAgABBAEEAKAKQ0ICAACAAaiIANgKQ0ICAACABIABBAXI2AgQgASAAaiAANgIADwsgAkF4cSAAaiEAAkACQCACQf8BSw0AIAMoAggiBCACQQN2IgVBA3RBsNCAgABqIgZGGgJAIAMoAgwiAiAERw0AQQBBACgCiNCAgABBfiAFd3E2AojQgIAADAILIAIgBkYaIAIgBDYCCCAEIAI2AgwMAQsgAygCGCEHAkACQCADKAIMIgYgA0YNACADKAIIIgJBACgCmNCAgABJGiAGIAI2AgggAiAGNgIMDAELAkAgA0EUaiICKAIAIgQNACADQRBqIgIoAgAiBA0AQQAhBgwBCwNAIAIhBSAEIgZBFGoiAigCACIEDQAgBkEQaiECIAYoAhAiBA0ACyAFQQA2AgALIAdFDQACQAJAIAMgAygCHCIEQQJ0QbjSgIAAaiICKAIARw0AIAIgBjYCACAGDQFBAEEAKAKM0ICAAEF+IAR3cTYCjNCAgAAMAgsgB0EQQRQgBygCECADRhtqIAY2AgAgBkUNAQsgBiAHNgIYAkAgAygCECICRQ0AIAYgAjYCECACIAY2AhgLIAMoAhQiAkUNACAGQRRqIAI2AgAgAiAGNgIYCyABIABqIAA2AgAgASAAQQFyNgIEIAFBACgCnNCAgABHDQFBACAANgKQ0ICAAA8LIAMgAkF+cTYCBCABIABqIAA2AgAgASAAQQFyNgIECwJAIABB/wFLDQAgAEF4cUGw0ICAAGohAgJAAkBBACgCiNCAgAAiBEEBIABBA3Z0IgBxDQBBACAEIAByNgKI0ICAACACIQAMAQsgAigCCCEACyAAIAE2AgwgAiABNgIIIAEgAjYCDCABIAA2AggPC0EfIQICQCAAQf///wdLDQAgAEEIdiICIAJBgP4/akEQdkEIcSICdCIEIARBgOAfakEQdkEEcSIEdCIGIAZBgIAPakEQdkECcSIGdEEPdiACIARyIAZyayICQQF0IAAgAkEVanZBAXFyQRxqIQILIAEgAjYCHCABQgA3AhAgAkECdEG40oCAAGohBAJAAkBBACgCjNCAgAAiBkEBIAJ0IgNxDQAgBCABNgIAQQAgBiADcjYCjNCAgAAgASAENgIYIAEgATYCCCABIAE2AgwMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgBCgCACEGAkADQCAGIgQoAgRBeHEgAEYNASACQR12IQYgAkEBdCECIAQgBkEEcWpBEGoiAygCACIGDQALIAMgATYCACABIAQ2AhggASABNgIMIAEgATYCCAwBCyAEKAIIIgAgATYCDCAEIAE2AgggAUEANgIYIAEgBDYCDCABIAA2AggLQQBBACgCqNCAgABBf2oiAUF/IAEbNgKo0ICAAAsLBAAAAAtOAAJAIAANAD8AQRB0DwsCQCAAQf//A3ENACAAQX9MDQACQCAAQRB2QAAiAEF/Rw0AQQBBMDYC+NOAgABBfw8LIABBEHQPCxDKgICAAAAL8gICA38BfgJAIAJFDQAgACABOgAAIAIgAGoiA0F/aiABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBfWogAToAACADQX5qIAE6AAAgAkEHSQ0AIAAgAToAAyADQXxqIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIFayICQSBJDQAgAa1CgYCAgBB+IQYgAyAFaiEBA0AgASAGNwMYIAEgBjcDECABIAY3AwggASAGNwMAIAFBIGohASACQWBqIgJBH0sNAAsLIAALC45IAQBBgAgLhkgBAAAAAgAAAAMAAAAAAAAAAAAAAAQAAAAFAAAAAAAAAAAAAAAGAAAABwAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEludmFsaWQgY2hhciBpbiB1cmwgcXVlcnkAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9ib2R5AENvbnRlbnQtTGVuZ3RoIG92ZXJmbG93AENodW5rIHNpemUgb3ZlcmZsb3cAUmVzcG9uc2Ugb3ZlcmZsb3cASW52YWxpZCBtZXRob2QgZm9yIEhUVFAveC54IHJlcXVlc3QASW52YWxpZCBtZXRob2QgZm9yIFJUU1AveC54IHJlcXVlc3QARXhwZWN0ZWQgU09VUkNFIG1ldGhvZCBmb3IgSUNFL3gueCByZXF1ZXN0AEludmFsaWQgY2hhciBpbiB1cmwgZnJhZ21lbnQgc3RhcnQARXhwZWN0ZWQgZG90AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fc3RhdHVzAEludmFsaWQgcmVzcG9uc2Ugc3RhdHVzAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMAVXNlciBjYWxsYmFjayBlcnJvcgBgb25fcmVzZXRgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19oZWFkZXJgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2JlZ2luYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlYCBjYWxsYmFjayBlcnJvcgBgb25fc3RhdHVzX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdmVyc2lvbl9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3VybF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21ldGhvZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lYCBjYWxsYmFjayBlcnJvcgBVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNlcnZlcgBJbnZhbGlkIGhlYWRlciB2YWx1ZSBjaGFyAEludmFsaWQgaGVhZGVyIGZpZWxkIGNoYXIAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl92ZXJzaW9uAEludmFsaWQgbWlub3IgdmVyc2lvbgBJbnZhbGlkIG1ham9yIHZlcnNpb24ARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgdmVyc2lvbgBFeHBlY3RlZCBDUkxGIGFmdGVyIHZlcnNpb24ASW52YWxpZCBIVFRQIHZlcnNpb24ASW52YWxpZCBoZWFkZXIgdG9rZW4AU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl91cmwASW52YWxpZCBjaGFyYWN0ZXJzIGluIHVybABVbmV4cGVjdGVkIHN0YXJ0IGNoYXIgaW4gdXJsAERvdWJsZSBAIGluIHVybABFbXB0eSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXJhY3RlciBpbiBDb250ZW50LUxlbmd0aABEdXBsaWNhdGUgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyIGluIHVybCBwYXRoAENvbnRlbnQtTGVuZ3RoIGNhbid0IGJlIHByZXNlbnQgd2l0aCBUcmFuc2Zlci1FbmNvZGluZwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBzaXplAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX3ZhbHVlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgdmFsdWUATWlzc2luZyBleHBlY3RlZCBMRiBhZnRlciBoZWFkZXIgdmFsdWUASW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGVkIHZhbHVlAFBhdXNlZCBieSBvbl9oZWFkZXJzX2NvbXBsZXRlAEludmFsaWQgRU9GIHN0YXRlAG9uX3Jlc2V0IHBhdXNlAG9uX2NodW5rX2hlYWRlciBwYXVzZQBvbl9tZXNzYWdlX2JlZ2luIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZSBwYXVzZQBvbl9zdGF0dXNfY29tcGxldGUgcGF1c2UAb25fdmVyc2lvbl9jb21wbGV0ZSBwYXVzZQBvbl91cmxfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlIHBhdXNlAG9uX21lc3NhZ2VfY29tcGxldGUgcGF1c2UAb25fbWV0aG9kX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fbmFtZSBwYXVzZQBVbmV4cGVjdGVkIHNwYWNlIGFmdGVyIHN0YXJ0IGxpbmUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fbmFtZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIG5hbWUAUGF1c2Ugb24gQ09OTkVDVC9VcGdyYWRlAFBhdXNlIG9uIFBSSS9VcGdyYWRlAEV4cGVjdGVkIEhUVFAvMiBDb25uZWN0aW9uIFByZWZhY2UAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9tZXRob2QARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgbWV0aG9kAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX2ZpZWxkAFBhdXNlZABJbnZhbGlkIHdvcmQgZW5jb3VudGVyZWQASW52YWxpZCBtZXRob2QgZW5jb3VudGVyZWQAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzY2hlbWEAUmVxdWVzdCBoYXMgaW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgAFNXSVRDSF9QUk9YWQBVU0VfUFJPWFkATUtBQ1RJVklUWQBVTlBST0NFU1NBQkxFX0VOVElUWQBDT1BZAE1PVkVEX1BFUk1BTkVOVExZAFRPT19FQVJMWQBOT1RJRlkARkFJTEVEX0RFUEVOREVOQ1kAQkFEX0dBVEVXQVkAUExBWQBQVVQAQ0hFQ0tPVVQAR0FURVdBWV9USU1FT1VUAFJFUVVFU1RfVElNRU9VVABORVRXT1JLX0NPTk5FQ1RfVElNRU9VVABDT05ORUNUSU9OX1RJTUVPVVQATE9HSU5fVElNRU9VVABORVRXT1JLX1JFQURfVElNRU9VVABQT1NUAE1JU0RJUkVDVEVEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfTE9BRF9CQUxBTkNFRF9SRVFVRVNUAEJBRF9SRVFVRVNUAEhUVFBfUkVRVUVTVF9TRU5UX1RPX0hUVFBTX1BPUlQAUkVQT1JUAElNX0FfVEVBUE9UAFJFU0VUX0NPTlRFTlQATk9fQ09OVEVOVABQQVJUSUFMX0NPTlRFTlQASFBFX0lOVkFMSURfQ09OU1RBTlQASFBFX0NCX1JFU0VUAEdFVABIUEVfU1RSSUNUAENPTkZMSUNUAFRFTVBPUkFSWV9SRURJUkVDVABQRVJNQU5FTlRfUkVESVJFQ1QAQ09OTkVDVABNVUxUSV9TVEFUVVMASFBFX0lOVkFMSURfU1RBVFVTAFRPT19NQU5ZX1JFUVVFU1RTAEVBUkxZX0hJTlRTAFVOQVZBSUxBQkxFX0ZPUl9MRUdBTF9SRUFTT05TAE9QVElPTlMAU1dJVENISU5HX1BST1RPQ09MUwBWQVJJQU5UX0FMU09fTkVHT1RJQVRFUwBNVUxUSVBMRV9DSE9JQ0VTAElOVEVSTkFMX1NFUlZFUl9FUlJPUgBXRUJfU0VSVkVSX1VOS05PV05fRVJST1IAUkFJTEdVTl9FUlJPUgBJREVOVElUWV9QUk9WSURFUl9BVVRIRU5USUNBVElPTl9FUlJPUgBTU0xfQ0VSVElGSUNBVEVfRVJST1IASU5WQUxJRF9YX0ZPUldBUkRFRF9GT1IAU0VUX1BBUkFNRVRFUgBHRVRfUEFSQU1FVEVSAEhQRV9VU0VSAFNFRV9PVEhFUgBIUEVfQ0JfQ0hVTktfSEVBREVSAE1LQ0FMRU5EQVIAU0VUVVAAV0VCX1NFUlZFUl9JU19ET1dOAFRFQVJET1dOAEhQRV9DTE9TRURfQ09OTkVDVElPTgBIRVVSSVNUSUNfRVhQSVJBVElPTgBESVNDT05ORUNURURfT1BFUkFUSU9OAE5PTl9BVVRIT1JJVEFUSVZFX0lORk9STUFUSU9OAEhQRV9JTlZBTElEX1ZFUlNJT04ASFBFX0NCX01FU1NBR0VfQkVHSU4AU0lURV9JU19GUk9aRU4ASFBFX0lOVkFMSURfSEVBREVSX1RPS0VOAElOVkFMSURfVE9LRU4ARk9SQklEREVOAEVOSEFOQ0VfWU9VUl9DQUxNAEhQRV9JTlZBTElEX1VSTABCTE9DS0VEX0JZX1BBUkVOVEFMX0NPTlRST0wATUtDT0wAQUNMAEhQRV9JTlRFUk5BTABSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFX1VOT0ZGSUNJQUwASFBFX09LAFVOTElOSwBVTkxPQ0sAUFJJAFJFVFJZX1dJVEgASFBFX0lOVkFMSURfQ09OVEVOVF9MRU5HVEgASFBFX1VORVhQRUNURURfQ09OVEVOVF9MRU5HVEgARkxVU0gAUFJPUFBBVENIAE0tU0VBUkNIAFVSSV9UT09fTE9ORwBQUk9DRVNTSU5HAE1JU0NFTExBTkVPVVNfUEVSU0lTVEVOVF9XQVJOSU5HAE1JU0NFTExBTkVPVVNfV0FSTklORwBIUEVfSU5WQUxJRF9UUkFOU0ZFUl9FTkNPRElORwBFeHBlY3RlZCBDUkxGAEhQRV9JTlZBTElEX0NIVU5LX1NJWkUATU9WRQBDT05USU5VRQBIUEVfQ0JfU1RBVFVTX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJTX0NPTVBMRVRFAEhQRV9DQl9WRVJTSU9OX0NPTVBMRVRFAEhQRV9DQl9VUkxfQ09NUExFVEUASFBFX0NCX0NIVU5LX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX05BTUVfQ09NUExFVEUASFBFX0NCX01FU1NBR0VfQ09NUExFVEUASFBFX0NCX01FVEhPRF9DT01QTEVURQBIUEVfQ0JfSEVBREVSX0ZJRUxEX0NPTVBMRVRFAERFTEVURQBIUEVfSU5WQUxJRF9FT0ZfU1RBVEUASU5WQUxJRF9TU0xfQ0VSVElGSUNBVEUAUEFVU0UATk9fUkVTUE9OU0UAVU5TVVBQT1JURURfTUVESUFfVFlQRQBHT05FAE5PVF9BQ0NFUFRBQkxFAFNFUlZJQ0VfVU5BVkFJTEFCTEUAUkFOR0VfTk9UX1NBVElTRklBQkxFAE9SSUdJTl9JU19VTlJFQUNIQUJMRQBSRVNQT05TRV9JU19TVEFMRQBQVVJHRQBNRVJHRQBSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFAFJFUVVFU1RfSEVBREVSX1RPT19MQVJHRQBQQVlMT0FEX1RPT19MQVJHRQBJTlNVRkZJQ0lFTlRfU1RPUkFHRQBIUEVfUEFVU0VEX1VQR1JBREUASFBFX1BBVVNFRF9IMl9VUEdSQURFAFNPVVJDRQBBTk5PVU5DRQBUUkFDRQBIUEVfVU5FWFBFQ1RFRF9TUEFDRQBERVNDUklCRQBVTlNVQlNDUklCRQBSRUNPUkQASFBFX0lOVkFMSURfTUVUSE9EAE5PVF9GT1VORABQUk9QRklORABVTkJJTkQAUkVCSU5EAFVOQVVUSE9SSVpFRABNRVRIT0RfTk9UX0FMTE9XRUQASFRUUF9WRVJTSU9OX05PVF9TVVBQT1JURUQAQUxSRUFEWV9SRVBPUlRFRABBQ0NFUFRFRABOT1RfSU1QTEVNRU5URUQATE9PUF9ERVRFQ1RFRABIUEVfQ1JfRVhQRUNURUQASFBFX0xGX0VYUEVDVEVEAENSRUFURUQASU1fVVNFRABIUEVfUEFVU0VEAFRJTUVPVVRfT0NDVVJFRABQQVlNRU5UX1JFUVVJUkVEAFBSRUNPTkRJVElPTl9SRVFVSVJFRABQUk9YWV9BVVRIRU5USUNBVElPTl9SRVFVSVJFRABORVRXT1JLX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAExFTkdUSF9SRVFVSVJFRABTU0xfQ0VSVElGSUNBVEVfUkVRVUlSRUQAVVBHUkFERV9SRVFVSVJFRABQQUdFX0VYUElSRUQAUFJFQ09ORElUSU9OX0ZBSUxFRABFWFBFQ1RBVElPTl9GQUlMRUQAUkVWQUxJREFUSU9OX0ZBSUxFRABTU0xfSEFORFNIQUtFX0ZBSUxFRABMT0NLRUQAVFJBTlNGT1JNQVRJT05fQVBQTElFRABOT1RfTU9ESUZJRUQATk9UX0VYVEVOREVEAEJBTkRXSURUSF9MSU1JVF9FWENFRURFRABTSVRFX0lTX09WRVJMT0FERUQASEVBRABFeHBlY3RlZCBIVFRQLwAAXhMAACYTAAAwEAAA8BcAAJ0TAAAVEgAAORcAAPASAAAKEAAAdRIAAK0SAACCEwAATxQAAH8QAACgFQAAIxQAAIkSAACLFAAATRUAANQRAADPFAAAEBgAAMkWAADcFgAAwREAAOAXAAC7FAAAdBQAAHwVAADlFAAACBcAAB8QAABlFQAAoxQAACgVAAACFQAAmRUAACwQAACLGQAATw8AANQOAABqEAAAzhAAAAIXAACJDgAAbhMAABwTAABmFAAAVhcAAMETAADNEwAAbBMAAGgXAABmFwAAXxcAACITAADODwAAaQ4AANgOAABjFgAAyxMAAKoOAAAoFwAAJhcAAMUTAABdFgAA6BEAAGcTAABlEwAA8hYAAHMTAAAdFwAA+RYAAPMRAADPDgAAzhUAAAwSAACzEQAApREAAGEQAAAyFwAAuxMAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIDAgICAgIAAAICAAICAAICAgICAgICAgIABAAAAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbG9zZWVlcC1hbGl2ZQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEAAAEBAAEBAAEBAQEBAQEBAQEAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AAAAAAAAAAAAAAAAAAAByYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AAAAAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQIAAQMAAAAAAAAAAAAAAAAAAAAAAAAEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAQAAAgAAAAAAAAAAAAAAAAAAAAAAAAMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAIAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABOT1VOQ0VFQ0tPVVRORUNURVRFQ1JJQkVMVVNIRVRFQURTRUFSQ0hSR0VDVElWSVRZTEVOREFSVkVPVElGWVBUSU9OU0NIU0VBWVNUQVRDSEdFT1JESVJFQ1RPUlRSQ0hQQVJBTUVURVJVUkNFQlNDUklCRUFSRE9XTkFDRUlORE5LQ0tVQlNDUklCRUhUVFAvQURUUC8="},75674:r=>{r.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJsbGh0dHBfc3RhdHVzX25hbWUAIRpsbGh0dHBfc2V0X2xlbmllbnRfaGVhZGVycwAiIWxsaHR0cF9zZXRfbGVuaWVudF9jaHVua2VkX2xlbmd0aAAjHWxsaHR0cF9zZXRfbGVuaWVudF9rZWVwX2FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCrLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0Hhp4CAAA8LQaShgIAADwtBy6yAgAAPC0H+sYCAAA8LQcCkgIAADwtBq6SAgAAPC0GNqICAAA8LQeKmgIAADwtBgLCAgAAPC0G5r4CAAA8LQdekgIAADwtB75+AgAAPC0Hhn4CAAA8LQfqfgIAADwtB8qCAgAAPC0Gor4CAAA8LQa6ygIAADwtBiLCAgAAPC0Hsp4CAAA8LQYKigIAADwtBjp2AgAAPC0HQroCAAA8LQcqjgIAADwtBxbKAgAAPC0HfnICAAA8LQdKcgIAADwtBxKCAgAAPC0HXoICAAA8LQaKfgIAADwtB7a6AgAAPC0GrsICAAA8LQdSlgIAADwtBzK6AgAAPC0H6roCAAA8LQfyrgIAADwtB0rCAgAAPC0HxnYCAAA8LQbuggIAADwtB96uAgAAPC0GQsYCAAA8LQdexgIAADwtBoq2AgAAPC0HUp4CAAA8LQeCrgIAADwtBn6yAgAAPC0HrsYCAAA8LQdWfgIAADwtByrGAgAAPC0HepYCAAA8LQdSegIAADwtB9JyAgAAPC0GnsoCAAA8LQbGdgIAADwtBoJ2AgAAPC0G5sYCAAA8LQbywgIAADwtBkqGAgAAPC0GzpoCAAA8LQemsgIAADwtBrJ6AgAAPC0HUq4CAAA8LQfemgIAADwtBgKaAgAAPC0GwoYCAAA8LQf6egIAADwtBjaOAgAAPC0GJrYCAAA8LQfeigIAADwtBoLGAgAAPC0Gun4CAAA8LQcalgIAADwtB6J6AgAAPC0GTooCAAA8LQcKvgIAADwtBw52AgAAPC0GLrICAAA8LQeGdgIAADwtBja+AgAAPC0HqoYCAAA8LQbStgIAADwtB0q+AgAAPC0HfsoCAAA8LQdKygIAADwtB8LCAgAAPC0GpooCAAA8LQfmjgIAADwtBmZ6AgAAPC0G1rICAAA8LQZuwgIAADwtBkrKAgAAPC0G2q4CAAA8LQcKigIAADwtB+LKAgAAPC0GepYCAAA8LQdCigIAADwtBup6AgAAPC0GBnoCAAA8LEMqAgIAAAAtB1qGAgAAhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAgAiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCBCIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQcaRgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIwIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAggiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2ioCAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCNCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIMIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZqAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAjgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCECIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZWQgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAI8IgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAhQiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEGqm4CAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCQCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIYIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZOAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCJCIERQ0AIAAgBBGAgICAAAAhAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIsIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAigiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2iICAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCUCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIcIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABBwpmAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCICIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZSUgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAJMIgRFDQAgACAEEYCAgIAAACEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAlQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCWCIERQ0AIAAgBBGAgICAAAAhAwsgAwtFAQF/AkACQCAALwEwQRRxQRRHDQBBASEDIAAtAChBAUYNASAALwEyQeUARiEDDAELIAAtAClBBUYhAwsgACADOgAuQQAL/gEBA39BASEDAkAgAC8BMCIEQQhxDQAgACkDIEIAUiEDCwJAAkAgAC0ALkUNAEEBIQUgAC0AKUEFRg0BQQEhBSAEQcAAcUUgA3FBAUcNAQtBACEFIARBwABxDQBBAiEFIARB//8DcSIDQQhxDQACQCADQYAEcUUNAAJAIAAtAChBAUcNACAALQAtQQpxDQBBBQ8LQQQPCwJAIANBIHENAAJAIAAtAChBAUYNACAALwEyQf//A3EiAEGcf2pB5ABJDQAgAEHMAUYNACAAQbACRg0AQQQhBSAEQShxRQ0CIANBiARxQYAERg0CC0EADwtBAEEDIAApAyBQGyEFCyAFC2IBAn9BACEBAkAgAC0AKEEBRg0AIAAvATJB//8DcSICQZx/akHkAEkNACACQcwBRg0AIAJBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhASAAQYgEcUGABEYNACAAQShxRSEBCyABC6cBAQN/AkACQAJAIAAtACpFDQAgAC0AK0UNAEEAIQMgAC8BMCIEQQJxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AcsBygG4AckBuQHIAboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBANwBC0EAIRAMxgELQQ4hEAzFAQtBDSEQDMQBC0EPIRAMwwELQRAhEAzCAQtBEyEQDMEBC0EUIRAMwAELQRUhEAy/AQtBFiEQDL4BC0EXIRAMvQELQRghEAy8AQtBGSEQDLsBC0EaIRAMugELQRshEAy5AQtBHCEQDLgBC0EIIRAMtwELQR0hEAy2AQtBICEQDLUBC0EfIRAMtAELQQchEAyzAQtBISEQDLIBC0EiIRAMsQELQR4hEAywAQtBIyEQDK8BC0ESIRAMrgELQREhEAytAQtBJCEQDKwBC0ElIRAMqwELQSYhEAyqAQtBJyEQDKkBC0HDASEQDKgBC0EpIRAMpwELQSshEAymAQtBLCEQDKUBC0EtIRAMpAELQS4hEAyjAQtBLyEQDKIBC0HEASEQDKEBC0EwIRAMoAELQTQhEAyfAQtBDCEQDJ4BC0ExIRAMnQELQTIhEAycAQtBMyEQDJsBC0E5IRAMmgELQTUhEAyZAQtBxQEhEAyYAQtBCyEQDJcBC0E6IRAMlgELQTYhEAyVAQtBCiEQDJQBC0E3IRAMkwELQTghEAySAQtBPCEQDJEBC0E7IRAMkAELQT0hEAyPAQtBCSEQDI4BC0EoIRAMjQELQT4hEAyMAQtBPyEQDIsBC0HAACEQDIoBC0HBACEQDIkBC0HCACEQDIgBC0HDACEQDIcBC0HEACEQDIYBC0HFACEQDIUBC0HGACEQDIQBC0EqIRAMgwELQccAIRAMggELQcgAIRAMgQELQckAIRAMgAELQcoAIRAMfwtBywAhEAx+C0HNACEQDH0LQcwAIRAMfAtBzgAhEAx7C0HPACEQDHoLQdAAIRAMeQtB0QAhEAx4C0HSACEQDHcLQdMAIRAMdgtB1AAhEAx1C0HWACEQDHQLQdUAIRAMcwtBBiEQDHILQdcAIRAMcQtBBSEQDHALQdgAIRAMbwtBBCEQDG4LQdkAIRAMbQtB2gAhEAxsC0HbACEQDGsLQdwAIRAMagtBAyEQDGkLQd0AIRAMaAtB3gAhEAxnC0HfACEQDGYLQeEAIRAMZQtB4AAhEAxkC0HiACEQDGMLQeMAIRAMYgtBAiEQDGELQeQAIRAMYAtB5QAhEAxfC0HmACEQDF4LQecAIRAMXQtB6AAhEAxcC0HpACEQDFsLQeoAIRAMWgtB6wAhEAxZC0HsACEQDFgLQe0AIRAMVwtB7gAhEAxWC0HvACEQDFULQfAAIRAMVAtB8QAhEAxTC0HyACEQDFILQfMAIRAMUQtB9AAhEAxQC0H1ACEQDE8LQfYAIRAMTgtB9wAhEAxNC0H4ACEQDEwLQfkAIRAMSwtB+gAhEAxKC0H7ACEQDEkLQfwAIRAMSAtB/QAhEAxHC0H+ACEQDEYLQf8AIRAMRQtBgAEhEAxEC0GBASEQDEMLQYIBIRAMQgtBgwEhEAxBC0GEASEQDEALQYUBIRAMPwtBhgEhEAw+C0GHASEQDD0LQYgBIRAMPAtBiQEhEAw7C0GKASEQDDoLQYsBIRAMOQtBjAEhEAw4C0GNASEQDDcLQY4BIRAMNgtBjwEhEAw1C0GQASEQDDQLQZEBIRAMMwtBkgEhEAwyC0GTASEQDDELQZQBIRAMMAtBlQEhEAwvC0GWASEQDC4LQZcBIRAMLQtBmAEhEAwsC0GZASEQDCsLQZoBIRAMKgtBmwEhEAwpC0GcASEQDCgLQZ0BIRAMJwtBngEhEAwmC0GfASEQDCULQaABIRAMJAtBoQEhEAwjC0GiASEQDCILQaMBIRAMIQtBpAEhEAwgC0GlASEQDB8LQaYBIRAMHgtBpwEhEAwdC0GoASEQDBwLQakBIRAMGwtBqgEhEAwaC0GrASEQDBkLQawBIRAMGAtBrQEhEAwXC0GuASEQDBYLQQEhEAwVC0GvASEQDBQLQbABIRAMEwtBsQEhEAwSC0GzASEQDBELQbIBIRAMEAtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xdYGJlZmdoaWprbG1vcHFyc3R1dnd4eXp7fH1+gAGCAYUBhgGHAYkBiwGMAY0BjgGPAZABkQGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwG4AbkBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgHHAcgByQHKAcsBzAHNAc4BzwHQAdEB0gHTAdQB1QHWAdcB2AHZAdoB2wHcAd0B3gHgAeEB4gHjAeQB5QHmAecB6AHpAeoB6wHsAe0B7gHvAfAB8QHyAfMBmQKkArAC/gL+AgsgASIEIAJHDfMBQd0BIRAM/wMLIAEiECACRw3dAUHDASEQDP4DCyABIgEgAkcNkAFB9wAhEAz9AwsgASIBIAJHDYYBQe8AIRAM/AMLIAEiASACRw1/QeoAIRAM+wMLIAEiASACRw17QegAIRAM+gMLIAEiASACRw14QeYAIRAM+QMLIAEiASACRw0aQRghEAz4AwsgASIBIAJHDRRBEiEQDPcDCyABIgEgAkcNWUHFACEQDPYDCyABIgEgAkcNSkE/IRAM9QMLIAEiASACRw1IQTwhEAz0AwsgASIBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DCwJAIAEiASACRg0AIABBi4CAgAA2AgggACABNgIEIAEhAUEHIRAMxAMLQRkhEAzcAwsgAUEBaiEBDAILAkAgASIUIAJHDQBBGiEQDNsDCyAUIQECQCAULQAAQXNqDhTdAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAgDuAgtBACEQIABBADYCHCAAQa+LgIAANgIQIABBAjYCDCAAIBRBAWo2AhQM2gMLAkAgAS0AACIQQTtGDQAgEEENRw3oASABQQFqIQEM5QILIAFBAWohAQtBIiEQDL8DCwJAIAEiECACRw0AQRwhEAzYAwtCACERIBAhASAQLQAAQVBqDjfnAeYBAQIDBAUGBwgAAAAAAAAACQoLDA0OAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPEBESExQAC0EeIRAMvQMLQgIhEQzlAQtCAyERDOQBC0IEIREM4wELQgUhEQziAQtCBiERDOEBC0IHIREM4AELQgghEQzfAQtCCSERDN4BC0IKIREM3QELQgshEQzcAQtCDCERDNsBC0INIREM2gELQg4hEQzZAQtCDyERDNgBC0IKIREM1wELQgshEQzWAQtCDCERDNUBC0INIREM1AELQg4hEQzTAQtCDyERDNIBC0IAIRECQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAtAABBUGoON+UB5AEAAQIDBAUGB+YB5gHmAeYB5gHmAeYBCAkKCwwN5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAQ4PEBESE+YBC0ICIREM5AELQgMhEQzjAQtCBCERDOIBC0IFIREM4QELQgYhEQzgAQtCByERDN8BC0IIIREM3gELQgkhEQzdAQtCCiERDNwBC0ILIREM2wELQgwhEQzaAQtCDSERDNkBC0IOIREM2AELQg8hEQzXAQtCCiERDNYBC0ILIREM1QELQgwhEQzUAQtCDSERDNMBC0IOIREM0gELQg8hEQzRAQsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3SAUEfIRAMwAMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQSQhEAynAwtBICEQDL8DCyAAIAEiECACEL6AgIAAQX9qDgW2AQDFAgHRAdIBC0ERIRAMpAMLIABBAToALyAQIQEMuwMLIAEiASACRw3SAUEkIRAMuwMLIAEiDSACRw0eQcYAIRAMugMLIAAgASIBIAIQsoCAgAAiEA3UASABIQEMtQELIAEiECACRw0mQdAAIRAMuAMLAkAgASIBIAJHDQBBKCEQDLgDCyAAQQA2AgQgAEGMgICAADYCCCAAIAEgARCxgICAACIQDdMBIAEhAQzYAQsCQCABIhAgAkcNAEEpIRAMtwMLIBAtAAAiAUEgRg0UIAFBCUcN0wEgEEEBaiEBDBULAkAgASIBIAJGDQAgAUEBaiEBDBcLQSohEAy1AwsCQCABIhAgAkcNAEErIRAMtQMLAkAgEC0AACIBQQlGDQAgAUEgRw3VAQsgAC0ALEEIRg3TASAQIQEMkQMLAkAgASIBIAJHDQBBLCEQDLQDCyABLQAAQQpHDdUBIAFBAWohAQzJAgsgASIOIAJHDdUBQS8hEAyyAwsDQAJAIAEtAAAiEEEgRg0AAkAgEEF2ag4EANwB3AEA2gELIAEhAQzgAQsgAUEBaiIBIAJHDQALQTEhEAyxAwtBMiEQIAEiFCACRg2wAyACIBRrIAAoAgAiAWohFSAUIAFrQQNqIRYCQANAIBQtAAAiF0EgciAXIBdBv39qQf8BcUEaSRtB/wFxIAFB8LuAgABqLQAARw0BAkAgAUEDRw0AQQYhAQyWAwsgAUEBaiEBIBRBAWoiFCACRw0ACyAAIBU2AgAMsQMLIABBADYCACAUIQEM2QELQTMhECABIhQgAkYNrwMgAiAUayAAKAIAIgFqIRUgFCABa0EIaiEWAkADQCAULQAAIhdBIHIgFyAXQb9/akH/AXFBGkkbQf8BcSABQfS7gIAAai0AAEcNAQJAIAFBCEcNAEEFIQEMlQMLIAFBAWohASAUQQFqIhQgAkcNAAsgACAVNgIADLADCyAAQQA2AgAgFCEBDNgBC0E0IRAgASIUIAJGDa4DIAIgFGsgACgCACIBaiEVIBQgAWtBBWohFgJAA0AgFC0AACIXQSByIBcgF0G/f2pB/wFxQRpJG0H/AXEgAUHQwoCAAGotAABHDQECQCABQQVHDQBBByEBDJQDCyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFTYCAAyvAwsgAEEANgIAIBQhAQzXAQsCQCABIgEgAkYNAANAAkAgAS0AAEGAvoCAAGotAAAiEEEBRg0AIBBBAkYNCiABIQEM3QELIAFBAWoiASACRw0AC0EwIRAMrgMLQTAhEAytAwsCQCABIgEgAkYNAANAAkAgAS0AACIQQSBGDQAgEEF2ag4E2QHaAdoB2QHaAQsgAUEBaiIBIAJHDQALQTghEAytAwtBOCEQDKwDCwNAAkAgAS0AACIQQSBGDQAgEEEJRw0DCyABQQFqIgEgAkcNAAtBPCEQDKsDCwNAAkAgAS0AACIQQSBGDQACQAJAIBBBdmoOBNoBAQHaAQALIBBBLEYN2wELIAEhAQwECyABQQFqIgEgAkcNAAtBPyEQDKoDCyABIQEM2wELQcAAIRAgASIUIAJGDagDIAIgFGsgACgCACIBaiEWIBQgAWtBBmohFwJAA0AgFC0AAEEgciABQYDAgIAAai0AAEcNASABQQZGDY4DIAFBAWohASAUQQFqIhQgAkcNAAsgACAWNgIADKkDCyAAQQA2AgAgFCEBC0E2IRAMjgMLAkAgASIPIAJHDQBBwQAhEAynAwsgAEGMgICAADYCCCAAIA82AgQgDyEBIAAtACxBf2oOBM0B1QHXAdkBhwMLIAFBAWohAQzMAQsCQCABIgEgAkYNAANAAkAgAS0AACIQQSByIBAgEEG/f2pB/wFxQRpJG0H/AXEiEEEJRg0AIBBBIEYNAAJAAkACQAJAIBBBnX9qDhMAAwMDAwMDAwEDAwMDAwMDAwMCAwsgAUEBaiEBQTEhEAyRAwsgAUEBaiEBQTIhEAyQAwsgAUEBaiEBQTMhEAyPAwsgASEBDNABCyABQQFqIgEgAkcNAAtBNSEQDKUDC0E1IRAMpAMLAkAgASIBIAJGDQADQAJAIAEtAABBgLyAgABqLQAAQQFGDQAgASEBDNMBCyABQQFqIgEgAkcNAAtBPSEQDKQDC0E9IRAMowMLIAAgASIBIAIQsICAgAAiEA3WASABIQEMAQsgEEEBaiEBC0E8IRAMhwMLAkAgASIBIAJHDQBBwgAhEAygAwsCQANAAkAgAS0AAEF3ag4YAAL+Av4ChAP+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gIA/gILIAFBAWoiASACRw0AC0HCACEQDKADCyABQQFqIQEgAC0ALUEBcUUNvQEgASEBC0EsIRAMhQMLIAEiASACRw3TAUHEACEQDJ0DCwNAAkAgAS0AAEGQwICAAGotAABBAUYNACABIQEMtwILIAFBAWoiASACRw0AC0HFACEQDJwDCyANLQAAIhBBIEYNswEgEEE6Rw2BAyAAKAIEIQEgAEEANgIEIAAgASANEK+AgIAAIgEN0AEgDUEBaiEBDLMCC0HHACEQIAEiDSACRg2aAyACIA1rIAAoAgAiAWohFiANIAFrQQVqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQZDCgIAAai0AAEcNgAMgAUEFRg30AiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyaAwtByAAhECABIg0gAkYNmQMgAiANayAAKAIAIgFqIRYgDSABa0EJaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGWwoCAAGotAABHDf8CAkAgAUEJRw0AQQIhAQz1AgsgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMmQMLAkAgASINIAJHDQBByQAhEAyZAwsCQAJAIA0tAAAiAUEgciABIAFBv39qQf8BcUEaSRtB/wFxQZJ/ag4HAIADgAOAA4ADgAMBgAMLIA1BAWohAUE+IRAMgAMLIA1BAWohAUE/IRAM/wILQcoAIRAgASINIAJGDZcDIAIgDWsgACgCACIBaiEWIA0gAWtBAWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBoMKAgABqLQAARw39AiABQQFGDfACIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJcDC0HLACEQIAEiDSACRg2WAyACIA1rIAAoAgAiAWohFiANIAFrQQ5qIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQaLCgIAAai0AAEcN/AIgAUEORg3wAiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyWAwtBzAAhECABIg0gAkYNlQMgAiANayAAKAIAIgFqIRYgDSABa0EPaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUHAwoCAAGotAABHDfsCAkAgAUEPRw0AQQMhAQzxAgsgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMlQMLQc0AIRAgASINIAJGDZQDIAIgDWsgACgCACIBaiEWIA0gAWtBBWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFB0MKAgABqLQAARw36AgJAIAFBBUcNAEEEIQEM8AILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJQDCwJAIAEiDSACRw0AQc4AIRAMlAMLAkACQAJAAkAgDS0AACIBQSByIAEgAUG/f2pB/wFxQRpJG0H/AXFBnX9qDhMA/QL9Av0C/QL9Av0C/QL9Av0C/QL9Av0CAf0C/QL9AgID/QILIA1BAWohAUHBACEQDP0CCyANQQFqIQFBwgAhEAz8AgsgDUEBaiEBQcMAIRAM+wILIA1BAWohAUHEACEQDPoCCwJAIAEiASACRg0AIABBjYCAgAA2AgggACABNgIEIAEhAUHFACEQDPoCC0HPACEQDJIDCyAQIQECQAJAIBAtAABBdmoOBAGoAqgCAKgCCyAQQQFqIQELQSchEAz4AgsCQCABIgEgAkcNAEHRACEQDJEDCwJAIAEtAABBIEYNACABIQEMjQELIAFBAWohASAALQAtQQFxRQ3HASABIQEMjAELIAEiFyACRw3IAUHSACEQDI8DC0HTACEQIAEiFCACRg2OAyACIBRrIAAoAgAiAWohFiAUIAFrQQFqIRcDQCAULQAAIAFB1sKAgABqLQAARw3MASABQQFGDccBIAFBAWohASAUQQFqIhQgAkcNAAsgACAWNgIADI4DCwJAIAEiASACRw0AQdUAIRAMjgMLIAEtAABBCkcNzAEgAUEBaiEBDMcBCwJAIAEiASACRw0AQdYAIRAMjQMLAkACQCABLQAAQXZqDgQAzQHNAQHNAQsgAUEBaiEBDMcBCyABQQFqIQFBygAhEAzzAgsgACABIgEgAhCugICAACIQDcsBIAEhAUHNACEQDPICCyAALQApQSJGDYUDDKYCCwJAIAEiASACRw0AQdsAIRAMigMLQQAhFEEBIRdBASEWQQAhEAJAAkACQAJAAkACQAJAAkACQCABLQAAQVBqDgrUAdMBAAECAwQFBgjVAQtBAiEQDAYLQQMhEAwFC0EEIRAMBAtBBSEQDAMLQQYhEAwCC0EHIRAMAQtBCCEQC0EAIRdBACEWQQAhFAzMAQtBCSEQQQEhFEEAIRdBACEWDMsBCwJAIAEiASACRw0AQd0AIRAMiQMLIAEtAABBLkcNzAEgAUEBaiEBDKYCCyABIgEgAkcNzAFB3wAhEAyHAwsCQCABIgEgAkYNACAAQY6AgIAANgIIIAAgATYCBCABIQFB0AAhEAzuAgtB4AAhEAyGAwtB4QAhECABIgEgAkYNhQMgAiABayAAKAIAIhRqIRYgASAUa0EDaiEXA0AgAS0AACAUQeLCgIAAai0AAEcNzQEgFEEDRg3MASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyFAwtB4gAhECABIgEgAkYNhAMgAiABayAAKAIAIhRqIRYgASAUa0ECaiEXA0AgAS0AACAUQebCgIAAai0AAEcNzAEgFEECRg3OASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyEAwtB4wAhECABIgEgAkYNgwMgAiABayAAKAIAIhRqIRYgASAUa0EDaiEXA0AgAS0AACAUQenCgIAAai0AAEcNywEgFEEDRg3OASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyDAwsCQCABIgEgAkcNAEHlACEQDIMDCyAAIAFBAWoiASACEKiAgIAAIhANzQEgASEBQdYAIRAM6QILAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgRg0AAkACQAJAIBBBuH9qDgsAAc8BzwHPAc8BzwHPAc8BzwECzwELIAFBAWohAUHSACEQDO0CCyABQQFqIQFB0wAhEAzsAgsgAUEBaiEBQdQAIRAM6wILIAFBAWoiASACRw0AC0HkACEQDIIDC0HkACEQDIEDCwNAAkAgAS0AAEHwwoCAAGotAAAiEEEBRg0AIBBBfmoOA88B0AHRAdIBCyABQQFqIgEgAkcNAAtB5gAhEAyAAwsCQCABIgEgAkYNACABQQFqIQEMAwtB5wAhEAz/AgsDQAJAIAEtAABB8MSAgABqLQAAIhBBAUYNAAJAIBBBfmoOBNIB0wHUAQDVAQsgASEBQdcAIRAM5wILIAFBAWoiASACRw0AC0HoACEQDP4CCwJAIAEiASACRw0AQekAIRAM/gILAkAgAS0AACIQQXZqDhq6AdUB1QG8AdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAcoB1QHVAQDTAQsgAUEBaiEBC0EGIRAM4wILA0ACQCABLQAAQfDGgIAAai0AAEEBRg0AIAEhAQyeAgsgAUEBaiIBIAJHDQALQeoAIRAM+wILAkAgASIBIAJGDQAgAUEBaiEBDAMLQesAIRAM+gILAkAgASIBIAJHDQBB7AAhEAz6AgsgAUEBaiEBDAELAkAgASIBIAJHDQBB7QAhEAz5AgsgAUEBaiEBC0EEIRAM3gILAkAgASIUIAJHDQBB7gAhEAz3AgsgFCEBAkACQAJAIBQtAABB8MiAgABqLQAAQX9qDgfUAdUB1gEAnAIBAtcBCyAUQQFqIQEMCgsgFEEBaiEBDM0BC0EAIRAgAEEANgIcIABBm5KAgAA2AhAgAEEHNgIMIAAgFEEBajYCFAz2AgsCQANAAkAgAS0AAEHwyICAAGotAAAiEEEERg0AAkACQCAQQX9qDgfSAdMB1AHZAQAEAdkBCyABIQFB2gAhEAzgAgsgAUEBaiEBQdwAIRAM3wILIAFBAWoiASACRw0AC0HvACEQDPYCCyABQQFqIQEMywELAkAgASIUIAJHDQBB8AAhEAz1AgsgFC0AAEEvRw3UASAUQQFqIQEMBgsCQCABIhQgAkcNAEHxACEQDPQCCwJAIBQtAAAiAUEvRw0AIBRBAWohAUHdACEQDNsCCyABQXZqIgRBFksN0wFBASAEdEGJgIACcUUN0wEMygILAkAgASIBIAJGDQAgAUEBaiEBQd4AIRAM2gILQfIAIRAM8gILAkAgASIUIAJHDQBB9AAhEAzyAgsgFCEBAkAgFC0AAEHwzICAAGotAABBf2oOA8kClAIA1AELQeEAIRAM2AILAkAgASIUIAJGDQADQAJAIBQtAABB8MqAgABqLQAAIgFBA0YNAAJAIAFBf2oOAssCANUBCyAUIQFB3wAhEAzaAgsgFEEBaiIUIAJHDQALQfMAIRAM8QILQfMAIRAM8AILAkAgASIBIAJGDQAgAEGPgICAADYCCCAAIAE2AgQgASEBQeAAIRAM1wILQfUAIRAM7wILAkAgASIBIAJHDQBB9gAhEAzvAgsgAEGPgICAADYCCCAAIAE2AgQgASEBC0EDIRAM1AILA0AgAS0AAEEgRw3DAiABQQFqIgEgAkcNAAtB9wAhEAzsAgsCQCABIgEgAkcNAEH4ACEQDOwCCyABLQAAQSBHDc4BIAFBAWohAQzvAQsgACABIgEgAhCsgICAACIQDc4BIAEhAQyOAgsCQCABIgQgAkcNAEH6ACEQDOoCCyAELQAAQcwARw3RASAEQQFqIQFBEyEQDM8BCwJAIAEiBCACRw0AQfsAIRAM6QILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEANAIAQtAAAgAUHwzoCAAGotAABHDdABIAFBBUYNzgEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBB+wAhEAzoAgsCQCABIgQgAkcNAEH8ACEQDOgCCwJAAkAgBC0AAEG9f2oODADRAdEB0QHRAdEB0QHRAdEB0QHRAQHRAQsgBEEBaiEBQeYAIRAMzwILIARBAWohAUHnACEQDM4CCwJAIAEiBCACRw0AQf0AIRAM5wILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNzwEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf0AIRAM5wILIABBADYCACAQQQFqIQFBECEQDMwBCwJAIAEiBCACRw0AQf4AIRAM5gILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQfbOgIAAai0AAEcNzgEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf4AIRAM5gILIABBADYCACAQQQFqIQFBFiEQDMsBCwJAIAEiBCACRw0AQf8AIRAM5QILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQfzOgIAAai0AAEcNzQEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf8AIRAM5QILIABBADYCACAQQQFqIQFBBSEQDMoBCwJAIAEiBCACRw0AQYABIRAM5AILIAQtAABB2QBHDcsBIARBAWohAUEIIRAMyQELAkAgASIEIAJHDQBBgQEhEAzjAgsCQAJAIAQtAABBsn9qDgMAzAEBzAELIARBAWohAUHrACEQDMoCCyAEQQFqIQFB7AAhEAzJAgsCQCABIgQgAkcNAEGCASEQDOICCwJAAkAgBC0AAEG4f2oOCADLAcsBywHLAcsBywEBywELIARBAWohAUHqACEQDMkCCyAEQQFqIQFB7QAhEAzIAgsCQCABIgQgAkcNAEGDASEQDOECCyACIARrIAAoAgAiAWohECAEIAFrQQJqIRQCQANAIAQtAAAgAUGAz4CAAGotAABHDckBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgEDYCAEGDASEQDOECC0EAIRAgAEEANgIAIBRBAWohAQzGAQsCQCABIgQgAkcNAEGEASEQDOACCyACIARrIAAoAgAiAWohFCAEIAFrQQRqIRACQANAIAQtAAAgAUGDz4CAAGotAABHDcgBIAFBBEYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGEASEQDOACCyAAQQA2AgAgEEEBaiEBQSMhEAzFAQsCQCABIgQgAkcNAEGFASEQDN8CCwJAAkAgBC0AAEG0f2oOCADIAcgByAHIAcgByAEByAELIARBAWohAUHvACEQDMYCCyAEQQFqIQFB8AAhEAzFAgsCQCABIgQgAkcNAEGGASEQDN4CCyAELQAAQcUARw3FASAEQQFqIQEMgwILAkAgASIEIAJHDQBBhwEhEAzdAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFBiM+AgABqLQAARw3FASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBhwEhEAzdAgsgAEEANgIAIBBBAWohAUEtIRAMwgELAkAgASIEIAJHDQBBiAEhEAzcAgsgAiAEayAAKAIAIgFqIRQgBCABa0EIaiEQAkADQCAELQAAIAFB0M+AgABqLQAARw3EASABQQhGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBiAEhEAzcAgsgAEEANgIAIBBBAWohAUEpIRAMwQELAkAgASIBIAJHDQBBiQEhEAzbAgtBASEQIAEtAABB3wBHDcABIAFBAWohAQyBAgsCQCABIgQgAkcNAEGKASEQDNoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRADQCAELQAAIAFBjM+AgABqLQAARw3BASABQQFGDa8CIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYoBIRAM2QILAkAgASIEIAJHDQBBiwEhEAzZAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBjs+AgABqLQAARw3BASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBiwEhEAzZAgsgAEEANgIAIBBBAWohAUECIRAMvgELAkAgASIEIAJHDQBBjAEhEAzYAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8M+AgABqLQAARw3AASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBjAEhEAzYAgsgAEEANgIAIBBBAWohAUEfIRAMvQELAkAgASIEIAJHDQBBjQEhEAzXAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8s+AgABqLQAARw2/ASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBjQEhEAzXAgsgAEEANgIAIBBBAWohAUEJIRAMvAELAkAgASIEIAJHDQBBjgEhEAzWAgsCQAJAIAQtAABBt39qDgcAvwG/Ab8BvwG/AQG/AQsgBEEBaiEBQfgAIRAMvQILIARBAWohAUH5ACEQDLwCCwJAIAEiBCACRw0AQY8BIRAM1QILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQZHPgIAAai0AAEcNvQEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQY8BIRAM1QILIABBADYCACAQQQFqIQFBGCEQDLoBCwJAIAEiBCACRw0AQZABIRAM1AILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQZfPgIAAai0AAEcNvAEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZABIRAM1AILIABBADYCACAQQQFqIQFBFyEQDLkBCwJAIAEiBCACRw0AQZEBIRAM0wILIAIgBGsgACgCACIBaiEUIAQgAWtBBmohEAJAA0AgBC0AACABQZrPgIAAai0AAEcNuwEgAUEGRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZEBIRAM0wILIABBADYCACAQQQFqIQFBFSEQDLgBCwJAIAEiBCACRw0AQZIBIRAM0gILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQaHPgIAAai0AAEcNugEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZIBIRAM0gILIABBADYCACAQQQFqIQFBHiEQDLcBCwJAIAEiBCACRw0AQZMBIRAM0QILIAQtAABBzABHDbgBIARBAWohAUEKIRAMtgELAkAgBCACRw0AQZQBIRAM0AILAkACQCAELQAAQb9/ag4PALkBuQG5AbkBuQG5AbkBuQG5AbkBuQG5AbkBAbkBCyAEQQFqIQFB/gAhEAy3AgsgBEEBaiEBQf8AIRAMtgILAkAgBCACRw0AQZUBIRAMzwILAkACQCAELQAAQb9/ag4DALgBAbgBCyAEQQFqIQFB/QAhEAy2AgsgBEEBaiEEQYABIRAMtQILAkAgBCACRw0AQZYBIRAMzgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQafPgIAAai0AAEcNtgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZYBIRAMzgILIABBADYCACAQQQFqIQFBCyEQDLMBCwJAIAQgAkcNAEGXASEQDM0CCwJAAkACQAJAIAQtAABBU2oOIwC4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBAbgBuAG4AbgBuAECuAG4AbgBA7gBCyAEQQFqIQFB+wAhEAy2AgsgBEEBaiEBQfwAIRAMtQILIARBAWohBEGBASEQDLQCCyAEQQFqIQRBggEhEAyzAgsCQCAEIAJHDQBBmAEhEAzMAgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBqc+AgABqLQAARw20ASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmAEhEAzMAgsgAEEANgIAIBBBAWohAUEZIRAMsQELAkAgBCACRw0AQZkBIRAMywILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQa7PgIAAai0AAEcNswEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZkBIRAMywILIABBADYCACAQQQFqIQFBBiEQDLABCwJAIAQgAkcNAEGaASEQDMoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUG0z4CAAGotAABHDbIBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGaASEQDMoCCyAAQQA2AgAgEEEBaiEBQRwhEAyvAQsCQCAEIAJHDQBBmwEhEAzJAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBts+AgABqLQAARw2xASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmwEhEAzJAgsgAEEANgIAIBBBAWohAUEnIRAMrgELAkAgBCACRw0AQZwBIRAMyAILAkACQCAELQAAQax/ag4CAAGxAQsgBEEBaiEEQYYBIRAMrwILIARBAWohBEGHASEQDK4CCwJAIAQgAkcNAEGdASEQDMcCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUG4z4CAAGotAABHDa8BIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGdASEQDMcCCyAAQQA2AgAgEEEBaiEBQSYhEAysAQsCQCAEIAJHDQBBngEhEAzGAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBus+AgABqLQAARw2uASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBngEhEAzGAgsgAEEANgIAIBBBAWohAUEDIRAMqwELAkAgBCACRw0AQZ8BIRAMxQILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNrQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZ8BIRAMxQILIABBADYCACAQQQFqIQFBDCEQDKoBCwJAIAQgAkcNAEGgASEQDMQCCyACIARrIAAoAgAiAWohFCAEIAFrQQNqIRACQANAIAQtAAAgAUG8z4CAAGotAABHDawBIAFBA0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGgASEQDMQCCyAAQQA2AgAgEEEBaiEBQQ0hEAypAQsCQCAEIAJHDQBBoQEhEAzDAgsCQAJAIAQtAABBun9qDgsArAGsAawBrAGsAawBrAGsAawBAawBCyAEQQFqIQRBiwEhEAyqAgsgBEEBaiEEQYwBIRAMqQILAkAgBCACRw0AQaIBIRAMwgILIAQtAABB0ABHDakBIARBAWohBAzpAQsCQCAEIAJHDQBBowEhEAzBAgsCQAJAIAQtAABBt39qDgcBqgGqAaoBqgGqAQCqAQsgBEEBaiEEQY4BIRAMqAILIARBAWohAUEiIRAMpgELAkAgBCACRw0AQaQBIRAMwAILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQcDPgIAAai0AAEcNqAEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQaQBIRAMwAILIABBADYCACAQQQFqIQFBHSEQDKUBCwJAIAQgAkcNAEGlASEQDL8CCwJAAkAgBC0AAEGuf2oOAwCoAQGoAQsgBEEBaiEEQZABIRAMpgILIARBAWohAUEEIRAMpAELAkAgBCACRw0AQaYBIRAMvgILAkACQAJAAkACQCAELQAAQb9/ag4VAKoBqgGqAaoBqgGqAaoBqgGqAaoBAaoBqgECqgGqAQOqAaoBBKoBCyAEQQFqIQRBiAEhEAyoAgsgBEEBaiEEQYkBIRAMpwILIARBAWohBEGKASEQDKYCCyAEQQFqIQRBjwEhEAylAgsgBEEBaiEEQZEBIRAMpAILAkAgBCACRw0AQacBIRAMvQILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNpQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQacBIRAMvQILIABBADYCACAQQQFqIQFBESEQDKIBCwJAIAQgAkcNAEGoASEQDLwCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHCz4CAAGotAABHDaQBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGoASEQDLwCCyAAQQA2AgAgEEEBaiEBQSwhEAyhAQsCQCAEIAJHDQBBqQEhEAy7AgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBxc+AgABqLQAARw2jASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBqQEhEAy7AgsgAEEANgIAIBBBAWohAUErIRAMoAELAkAgBCACRw0AQaoBIRAMugILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQcrPgIAAai0AAEcNogEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQaoBIRAMugILIABBADYCACAQQQFqIQFBFCEQDJ8BCwJAIAQgAkcNAEGrASEQDLkCCwJAAkACQAJAIAQtAABBvn9qDg8AAQKkAaQBpAGkAaQBpAGkAaQBpAGkAaQBA6QBCyAEQQFqIQRBkwEhEAyiAgsgBEEBaiEEQZQBIRAMoQILIARBAWohBEGVASEQDKACCyAEQQFqIQRBlgEhEAyfAgsCQCAEIAJHDQBBrAEhEAy4AgsgBC0AAEHFAEcNnwEgBEEBaiEEDOABCwJAIAQgAkcNAEGtASEQDLcCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHNz4CAAGotAABHDZ8BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGtASEQDLcCCyAAQQA2AgAgEEEBaiEBQQ4hEAycAQsCQCAEIAJHDQBBrgEhEAy2AgsgBC0AAEHQAEcNnQEgBEEBaiEBQSUhEAybAQsCQCAEIAJHDQBBrwEhEAy1AgsgAiAEayAAKAIAIgFqIRQgBCABa0EIaiEQAkADQCAELQAAIAFB0M+AgABqLQAARw2dASABQQhGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBrwEhEAy1AgsgAEEANgIAIBBBAWohAUEqIRAMmgELAkAgBCACRw0AQbABIRAMtAILAkACQCAELQAAQat/ag4LAJ0BnQGdAZ0BnQGdAZ0BnQGdAQGdAQsgBEEBaiEEQZoBIRAMmwILIARBAWohBEGbASEQDJoCCwJAIAQgAkcNAEGxASEQDLMCCwJAAkAgBC0AAEG/f2oOFACcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAEBnAELIARBAWohBEGZASEQDJoCCyAEQQFqIQRBnAEhEAyZAgsCQCAEIAJHDQBBsgEhEAyyAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFB2c+AgABqLQAARw2aASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBsgEhEAyyAgsgAEEANgIAIBBBAWohAUEhIRAMlwELAkAgBCACRw0AQbMBIRAMsQILIAIgBGsgACgCACIBaiEUIAQgAWtBBmohEAJAA0AgBC0AACABQd3PgIAAai0AAEcNmQEgAUEGRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbMBIRAMsQILIABBADYCACAQQQFqIQFBGiEQDJYBCwJAIAQgAkcNAEG0ASEQDLACCwJAAkACQCAELQAAQbt/ag4RAJoBmgGaAZoBmgGaAZoBmgGaAQGaAZoBmgGaAZoBApoBCyAEQQFqIQRBnQEhEAyYAgsgBEEBaiEEQZ4BIRAMlwILIARBAWohBEGfASEQDJYCCwJAIAQgAkcNAEG1ASEQDK8CCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUHkz4CAAGotAABHDZcBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG1ASEQDK8CCyAAQQA2AgAgEEEBaiEBQSghEAyUAQsCQCAEIAJHDQBBtgEhEAyuAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFB6s+AgABqLQAARw2WASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBtgEhEAyuAgsgAEEANgIAIBBBAWohAUEHIRAMkwELAkAgBCACRw0AQbcBIRAMrQILAkACQCAELQAAQbt/ag4OAJYBlgGWAZYBlgGWAZYBlgGWAZYBlgGWAQGWAQsgBEEBaiEEQaEBIRAMlAILIARBAWohBEGiASEQDJMCCwJAIAQgAkcNAEG4ASEQDKwCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDZQBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG4ASEQDKwCCyAAQQA2AgAgEEEBaiEBQRIhEAyRAQsCQCAEIAJHDQBBuQEhEAyrAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8M+AgABqLQAARw2TASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBuQEhEAyrAgsgAEEANgIAIBBBAWohAUEgIRAMkAELAkAgBCACRw0AQboBIRAMqgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfLPgIAAai0AAEcNkgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQboBIRAMqgILIABBADYCACAQQQFqIQFBDyEQDI8BCwJAIAQgAkcNAEG7ASEQDKkCCwJAAkAgBC0AAEG3f2oOBwCSAZIBkgGSAZIBAZIBCyAEQQFqIQRBpQEhEAyQAgsgBEEBaiEEQaYBIRAMjwILAkAgBCACRw0AQbwBIRAMqAILIAIgBGsgACgCACIBaiEUIAQgAWtBB2ohEAJAA0AgBC0AACABQfTPgIAAai0AAEcNkAEgAUEHRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbwBIRAMqAILIABBADYCACAQQQFqIQFBGyEQDI0BCwJAIAQgAkcNAEG9ASEQDKcCCwJAAkACQCAELQAAQb5/ag4SAJEBkQGRAZEBkQGRAZEBkQGRAQGRAZEBkQGRAZEBkQECkQELIARBAWohBEGkASEQDI8CCyAEQQFqIQRBpwEhEAyOAgsgBEEBaiEEQagBIRAMjQILAkAgBCACRw0AQb4BIRAMpgILIAQtAABBzgBHDY0BIARBAWohBAzPAQsCQCAEIAJHDQBBvwEhEAylAgsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAELQAAQb9/ag4VAAECA5wBBAUGnAGcAZwBBwgJCgucAQwNDg+cAQsgBEEBaiEBQegAIRAMmgILIARBAWohAUHpACEQDJkCCyAEQQFqIQFB7gAhEAyYAgsgBEEBaiEBQfIAIRAMlwILIARBAWohAUHzACEQDJYCCyAEQQFqIQFB9gAhEAyVAgsgBEEBaiEBQfcAIRAMlAILIARBAWohAUH6ACEQDJMCCyAEQQFqIQRBgwEhEAySAgsgBEEBaiEEQYQBIRAMkQILIARBAWohBEGFASEQDJACCyAEQQFqIQRBkgEhEAyPAgsgBEEBaiEEQZgBIRAMjgILIARBAWohBEGgASEQDI0CCyAEQQFqIQRBowEhEAyMAgsgBEEBaiEEQaoBIRAMiwILAkAgBCACRg0AIABBkICAgAA2AgggACAENgIEQasBIRAMiwILQcABIRAMowILIAAgBSACEKqAgIAAIgENiwEgBSEBDFwLAkAgBiACRg0AIAZBAWohBQyNAQtBwgEhEAyhAgsDQAJAIBAtAABBdmoOBIwBAACPAQALIBBBAWoiECACRw0AC0HDASEQDKACCwJAIAcgAkYNACAAQZGAgIAANgIIIAAgBzYCBCAHIQFBASEQDIcCC0HEASEQDJ8CCwJAIAcgAkcNAEHFASEQDJ8CCwJAAkAgBy0AAEF2ag4EAc4BzgEAzgELIAdBAWohBgyNAQsgB0EBaiEFDIkBCwJAIAcgAkcNAEHGASEQDJ4CCwJAAkAgBy0AAEF2ag4XAY8BjwEBjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BAI8BCyAHQQFqIQcLQbABIRAMhAILAkAgCCACRw0AQcgBIRAMnQILIAgtAABBIEcNjQEgAEEAOwEyIAhBAWohAUGzASEQDIMCCyABIRcCQANAIBciByACRg0BIActAABBUGpB/wFxIhBBCk8NzAECQCAALwEyIhRBmTNLDQAgACAUQQpsIhQ7ATIgEEH//wNzIBRB/v8DcUkNACAHQQFqIRcgACAUIBBqIhA7ATIgEEH//wNxQegHSQ0BCwtBACEQIABBADYCHCAAQcGJgIAANgIQIABBDTYCDCAAIAdBAWo2AhQMnAILQccBIRAMmwILIAAgCCACEK6AgIAAIhBFDcoBIBBBFUcNjAEgAEHIATYCHCAAIAg2AhQgAEHJl4CAADYCECAAQRU2AgxBACEQDJoCCwJAIAkgAkcNAEHMASEQDJoCC0EAIRRBASEXQQEhFkEAIRACQAJAAkACQAJAAkACQAJAAkAgCS0AAEFQag4KlgGVAQABAgMEBQYIlwELQQIhEAwGC0EDIRAMBQtBBCEQDAQLQQUhEAwDC0EGIRAMAgtBByEQDAELQQghEAtBACEXQQAhFkEAIRQMjgELQQkhEEEBIRRBACEXQQAhFgyNAQsCQCAKIAJHDQBBzgEhEAyZAgsgCi0AAEEuRw2OASAKQQFqIQkMygELIAsgAkcNjgFB0AEhEAyXAgsCQCALIAJGDQAgAEGOgICAADYCCCAAIAs2AgRBtwEhEAz+AQtB0QEhEAyWAgsCQCAEIAJHDQBB0gEhEAyWAgsgAiAEayAAKAIAIhBqIRQgBCAQa0EEaiELA0AgBC0AACAQQfzPgIAAai0AAEcNjgEgEEEERg3pASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHSASEQDJUCCyAAIAwgAhCsgICAACIBDY0BIAwhAQy4AQsCQCAEIAJHDQBB1AEhEAyUAgsgAiAEayAAKAIAIhBqIRQgBCAQa0EBaiEMA0AgBC0AACAQQYHQgIAAai0AAEcNjwEgEEEBRg2OASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHUASEQDJMCCwJAIAQgAkcNAEHWASEQDJMCCyACIARrIAAoAgAiEGohFCAEIBBrQQJqIQsDQCAELQAAIBBBg9CAgABqLQAARw2OASAQQQJGDZABIBBBAWohECAEQQFqIgQgAkcNAAsgACAUNgIAQdYBIRAMkgILAkAgBCACRw0AQdcBIRAMkgILAkACQCAELQAAQbt/ag4QAI8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwEBjwELIARBAWohBEG7ASEQDPkBCyAEQQFqIQRBvAEhEAz4AQsCQCAEIAJHDQBB2AEhEAyRAgsgBC0AAEHIAEcNjAEgBEEBaiEEDMQBCwJAIAQgAkYNACAAQZCAgIAANgIIIAAgBDYCBEG+ASEQDPcBC0HZASEQDI8CCwJAIAQgAkcNAEHaASEQDI8CCyAELQAAQcgARg3DASAAQQE6ACgMuQELIABBAjoALyAAIAQgAhCmgICAACIQDY0BQcIBIRAM9AELIAAtAChBf2oOArcBuQG4AQsDQAJAIAQtAABBdmoOBACOAY4BAI4BCyAEQQFqIgQgAkcNAAtB3QEhEAyLAgsgAEEAOgAvIAAtAC1BBHFFDYQCCyAAQQA6AC8gAEEBOgA0IAEhAQyMAQsgEEEVRg3aASAAQQA2AhwgACABNgIUIABBp46AgAA2AhAgAEESNgIMQQAhEAyIAgsCQCAAIBAgAhC0gICAACIEDQAgECEBDIECCwJAIARBFUcNACAAQQM2AhwgACAQNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAyIAgsgAEEANgIcIAAgEDYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAMhwILIBBBFUYN1gEgAEEANgIcIAAgATYCFCAAQdqNgIAANgIQIABBFDYCDEEAIRAMhgILIAAoAgQhFyAAQQA2AgQgECARp2oiFiEBIAAgFyAQIBYgFBsiEBC1gICAACIURQ2NASAAQQc2AhwgACAQNgIUIAAgFDYCDEEAIRAMhQILIAAgAC8BMEGAAXI7ATAgASEBC0EqIRAM6gELIBBBFUYN0QEgAEEANgIcIAAgATYCFCAAQYOMgIAANgIQIABBEzYCDEEAIRAMggILIBBBFUYNzwEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAMgQILIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDI0BCyAAQQw2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAMgAILIBBBFUYNzAEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAM/wELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDIwBCyAAQQ02AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM/gELIBBBFUYNyQEgAEEANgIcIAAgATYCFCAAQcaMgIAANgIQIABBIzYCDEEAIRAM/QELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC5gICAACIQDQAgAUEBaiEBDIsBCyAAQQ42AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM/AELIABBADYCHCAAIAE2AhQgAEHAlYCAADYCECAAQQI2AgxBACEQDPsBCyAQQRVGDcUBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDPoBCyAAQRA2AhwgACABNgIUIAAgEDYCDEEAIRAM+QELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC5gICAACIEDQAgAUEBaiEBDPEBCyAAQRE2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM+AELIBBBFUYNwQEgAEEANgIcIAAgATYCFCAAQcaMgIAANgIQIABBIzYCDEEAIRAM9wELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC5gICAACIQDQAgAUEBaiEBDIgBCyAAQRM2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM9gELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC5gICAACIEDQAgAUEBaiEBDO0BCyAAQRQ2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM9QELIBBBFUYNvQEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAM9AELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDIYBCyAAQRY2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM8wELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC3gICAACIEDQAgAUEBaiEBDOkBCyAAQRc2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM8gELIABBADYCHCAAIAE2AhQgAEHNk4CAADYCECAAQQw2AgxBACEQDPEBC0IBIRELIBBBAWohAQJAIAApAyAiEkL//////////w9WDQAgACASQgSGIBGENwMgIAEhAQyEAQsgAEEANgIcIAAgATYCFCAAQa2JgIAANgIQIABBDDYCDEEAIRAM7wELIABBADYCHCAAIBA2AhQgAEHNk4CAADYCECAAQQw2AgxBACEQDO4BCyAAKAIEIRcgAEEANgIEIBAgEadqIhYhASAAIBcgECAWIBQbIhAQtYCAgAAiFEUNcyAAQQU2AhwgACAQNgIUIAAgFDYCDEEAIRAM7QELIABBADYCHCAAIBA2AhQgAEGqnICAADYCECAAQQ82AgxBACEQDOwBCyAAIBAgAhC0gICAACIBDQEgECEBC0EOIRAM0QELAkAgAUEVRw0AIABBAjYCHCAAIBA2AhQgAEGwmICAADYCECAAQRU2AgxBACEQDOoBCyAAQQA2AhwgACAQNgIUIABBp46AgAA2AhAgAEESNgIMQQAhEAzpAQsgAUEBaiEQAkAgAC8BMCIBQYABcUUNAAJAIAAgECACELuAgIAAIgENACAQIQEMcAsgAUEVRw26ASAAQQU2AhwgACAQNgIUIABB+ZeAgAA2AhAgAEEVNgIMQQAhEAzpAQsCQCABQaAEcUGgBEcNACAALQAtQQJxDQAgAEEANgIcIAAgEDYCFCAAQZaTgIAANgIQIABBBDYCDEEAIRAM6QELIAAgECACEL2AgIAAGiAQIQECQAJAAkACQAJAIAAgECACELOAgIAADhYCAQAEBAQEBAQEBAQEBAQEBAQEBAQDBAsgAEEBOgAuCyAAIAAvATBBwAByOwEwIBAhAQtBJiEQDNEBCyAAQSM2AhwgACAQNgIUIABBpZaAgAA2AhAgAEEVNgIMQQAhEAzpAQsgAEEANgIcIAAgEDYCFCAAQdWLgIAANgIQIABBETYCDEEAIRAM6AELIAAtAC1BAXFFDQFBwwEhEAzOAQsCQCANIAJGDQADQAJAIA0tAABBIEYNACANIQEMxAELIA1BAWoiDSACRw0AC0ElIRAM5wELQSUhEAzmAQsgACgCBCEEIABBADYCBCAAIAQgDRCvgICAACIERQ2tASAAQSY2AhwgACAENgIMIAAgDUEBajYCFEEAIRAM5QELIBBBFUYNqwEgAEEANgIcIAAgATYCFCAAQf2NgIAANgIQIABBHTYCDEEAIRAM5AELIABBJzYCHCAAIAE2AhQgACAQNgIMQQAhEAzjAQsgECEBQQEhFAJAAkACQAJAAkACQAJAIAAtACxBfmoOBwYFBQMBAgAFCyAAIAAvATBBCHI7ATAMAwtBAiEUDAELQQQhFAsgAEEBOgAsIAAgAC8BMCAUcjsBMAsgECEBC0ErIRAMygELIABBADYCHCAAIBA2AhQgAEGrkoCAADYCECAAQQs2AgxBACEQDOIBCyAAQQA2AhwgACABNgIUIABB4Y+AgAA2AhAgAEEKNgIMQQAhEAzhAQsgAEEAOgAsIBAhAQy9AQsgECEBQQEhFAJAAkACQAJAAkAgAC0ALEF7ag4EAwECAAULIAAgAC8BMEEIcjsBMAwDC0ECIRQMAQtBBCEUCyAAQQE6ACwgACAALwEwIBRyOwEwCyAQIQELQSkhEAzFAQsgAEEANgIcIAAgATYCFCAAQfCUgIAANgIQIABBAzYCDEEAIRAM3QELAkAgDi0AAEENRw0AIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDkEBaiEBDHULIABBLDYCHCAAIAE2AgwgACAOQQFqNgIUQQAhEAzdAQsgAC0ALUEBcUUNAUHEASEQDMMBCwJAIA4gAkcNAEEtIRAM3AELAkACQANAAkAgDi0AAEF2ag4EAgAAAwALIA5BAWoiDiACRw0AC0EtIRAM3QELIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDiEBDHQLIABBLDYCHCAAIA42AhQgACABNgIMQQAhEAzcAQsgACgCBCEBIABBADYCBAJAIAAgASAOELGAgIAAIgENACAOQQFqIQEMcwsgAEEsNgIcIAAgATYCDCAAIA5BAWo2AhRBACEQDNsBCyAAKAIEIQQgAEEANgIEIAAgBCAOELGAgIAAIgQNoAEgDiEBDM4BCyAQQSxHDQEgAUEBaiEQQQEhAQJAAkACQAJAAkAgAC0ALEF7ag4EAwECBAALIBAhAQwEC0ECIQEMAQtBBCEBCyAAQQE6ACwgACAALwEwIAFyOwEwIBAhAQwBCyAAIAAvATBBCHI7ATAgECEBC0E5IRAMvwELIABBADoALCABIQELQTQhEAy9AQsgACAALwEwQSByOwEwIAEhAQwCCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQsYCAgAAiBA0AIAEhAQzHAQsgAEE3NgIcIAAgATYCFCAAIAQ2AgxBACEQDNQBCyAAQQg6ACwgASEBC0EwIRAMuQELAkAgAC0AKEEBRg0AIAEhAQwECyAALQAtQQhxRQ2TASABIQEMAwsgAC0AMEEgcQ2UAUHFASEQDLcBCwJAIA8gAkYNAAJAA0ACQCAPLQAAQVBqIgFB/wFxQQpJDQAgDyEBQTUhEAy6AQsgACkDICIRQpmz5syZs+bMGVYNASAAIBFCCn4iETcDICARIAGtQv8BgyISQn+FVg0BIAAgESASfDcDICAPQQFqIg8gAkcNAAtBOSEQDNEBCyAAKAIEIQIgAEEANgIEIAAgAiAPQQFqIgQQsYCAgAAiAg2VASAEIQEMwwELQTkhEAzPAQsCQCAALwEwIgFBCHFFDQAgAC0AKEEBRw0AIAAtAC1BCHFFDZABCyAAIAFB9/sDcUGABHI7ATAgDyEBC0E3IRAMtAELIAAgAC8BMEEQcjsBMAyrAQsgEEEVRg2LASAAQQA2AhwgACABNgIUIABB8I6AgAA2AhAgAEEcNgIMQQAhEAzLAQsgAEHDADYCHCAAIAE2AgwgACANQQFqNgIUQQAhEAzKAQsCQCABLQAAQTpHDQAgACgCBCEQIABBADYCBAJAIAAgECABEK+AgIAAIhANACABQQFqIQEMYwsgAEHDADYCHCAAIBA2AgwgACABQQFqNgIUQQAhEAzKAQsgAEEANgIcIAAgATYCFCAAQbGRgIAANgIQIABBCjYCDEEAIRAMyQELIABBADYCHCAAIAE2AhQgAEGgmYCAADYCECAAQR42AgxBACEQDMgBCyAAQQA2AgALIABBgBI7ASogACAXQQFqIgEgAhCogICAACIQDQEgASEBC0HHACEQDKwBCyAQQRVHDYMBIABB0QA2AhwgACABNgIUIABB45eAgAA2AhAgAEEVNgIMQQAhEAzEAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMXgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAzDAQsgAEEANgIcIAAgFDYCFCAAQcGogIAANgIQIABBBzYCDCAAQQA2AgBBACEQDMIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxdCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDMEBC0EAIRAgAEEANgIcIAAgATYCFCAAQYCRgIAANgIQIABBCTYCDAzAAQsgEEEVRg19IABBADYCHCAAIAE2AhQgAEGUjYCAADYCECAAQSE2AgxBACEQDL8BC0EBIRZBACEXQQAhFEEBIRALIAAgEDoAKyABQQFqIQECQAJAIAAtAC1BEHENAAJAAkACQCAALQAqDgMBAAIECyAWRQ0DDAILIBQNAQwCCyAXRQ0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQrYCAgAAiEA0AIAEhAQxcCyAAQdgANgIcIAAgATYCFCAAIBA2AgxBACEQDL4BCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQytAQsgAEHZADYCHCAAIAE2AhQgACAENgIMQQAhEAy9AQsgACgCBCEEIABBADYCBAJAIAAgBCABEK2AgIAAIgQNACABIQEMqwELIABB2gA2AhwgACABNgIUIAAgBDYCDEEAIRAMvAELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKkBCyAAQdwANgIcIAAgATYCFCAAIAQ2AgxBACEQDLsBCwJAIAEtAABBUGoiEEH/AXFBCk8NACAAIBA6ACogAUEBaiEBQc8AIRAMogELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHSADYCHCAAIBQ2AhQgACABNgIMQQAhEAykAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHTADYCHCAAIBQ2AhQgACABNgIMQQAhEAyjAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMQwsgAEHlADYCHCAAIBQ2AhQgACABNgIMQQAhEAyiAQsgAEEANgIcIAAgFDYCFCAAQcOPgIAANgIQIABBBzYCDEEAIRAMoQELIABBADYCHCAAIAE2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKABC0EAIRAgAEEANgIcIAAgFDYCFCAAQYycgIAANgIQIABBBzYCDAyfAQsgAEEANgIcIAAgFDYCFCAAQYycgIAANgIQIABBBzYCDEEAIRAMngELIABBADYCHCAAIBQ2AhQgAEH+kYCAADYCECAAQQc2AgxBACEQDJ0BCyAAQQA2AhwgACABNgIUIABBjpuAgAA2AhAgAEEGNgIMQQAhEAycAQsgEEEVRg1XIABBADYCHCAAIAE2AhQgAEHMjoCAADYCECAAQSA2AgxBACEQDJsBCyAAQQA2AgAgEEEBaiEBQSQhEAsgACAQOgApIAAoAgQhECAAQQA2AgQgACAQIAEQq4CAgAAiEA1UIAEhAQw+CyAAQQA2AgALQQAhECAAQQA2AhwgACAENgIUIABB8ZuAgAA2AhAgAEEGNgIMDJcBCyABQRVGDVAgAEEANgIcIAAgBTYCFCAAQfCMgIAANgIQIABBGzYCDEEAIRAMlgELIAAoAgQhBSAAQQA2AgQgACAFIBAQqYCAgAAiBQ0BIBBBAWohBQtBrQEhEAx7CyAAQcEBNgIcIAAgBTYCDCAAIBBBAWo2AhRBACEQDJMBCyAAKAIEIQYgAEEANgIEIAAgBiAQEKmAgIAAIgYNASAQQQFqIQYLQa4BIRAMeAsgAEHCATYCHCAAIAY2AgwgACAQQQFqNgIUQQAhEAyQAQsgAEEANgIcIAAgBzYCFCAAQZeLgIAANgIQIABBDTYCDEEAIRAMjwELIABBADYCHCAAIAg2AhQgAEHjkICAADYCECAAQQk2AgxBACEQDI4BCyAAQQA2AhwgACAINgIUIABBlI2AgAA2AhAgAEEhNgIMQQAhEAyNAQtBASEWQQAhF0EAIRRBASEQCyAAIBA6ACsgCUEBaiEIAkACQCAALQAtQRBxDQACQAJAAkAgAC0AKg4DAQACBAsgFkUNAwwCCyAUDQEMAgsgF0UNAQsgACgCBCEQIABBADYCBCAAIBAgCBCtgICAACIQRQ09IABByQE2AhwgACAINgIUIAAgEDYCDEEAIRAMjAELIAAoAgQhBCAAQQA2AgQgACAEIAgQrYCAgAAiBEUNdiAAQcoBNgIcIAAgCDYCFCAAIAQ2AgxBACEQDIsBCyAAKAIEIQQgAEEANgIEIAAgBCAJEK2AgIAAIgRFDXQgAEHLATYCHCAAIAk2AhQgACAENgIMQQAhEAyKAQsgACgCBCEEIABBADYCBCAAIAQgChCtgICAACIERQ1yIABBzQE2AhwgACAKNgIUIAAgBDYCDEEAIRAMiQELAkAgCy0AAEFQaiIQQf8BcUEKTw0AIAAgEDoAKiALQQFqIQpBtgEhEAxwCyAAKAIEIQQgAEEANgIEIAAgBCALEK2AgIAAIgRFDXAgAEHPATYCHCAAIAs2AhQgACAENgIMQQAhEAyIAQsgAEEANgIcIAAgBDYCFCAAQZCzgIAANgIQIABBCDYCDCAAQQA2AgBBACEQDIcBCyABQRVGDT8gAEEANgIcIAAgDDYCFCAAQcyOgIAANgIQIABBIDYCDEEAIRAMhgELIABBgQQ7ASggACgCBCEQIABCADcDACAAIBAgDEEBaiIMEKuAgIAAIhBFDTggAEHTATYCHCAAIAw2AhQgACAQNgIMQQAhEAyFAQsgAEEANgIAC0EAIRAgAEEANgIcIAAgBDYCFCAAQdibgIAANgIQIABBCDYCDAyDAQsgACgCBCEQIABCADcDACAAIBAgC0EBaiILEKuAgIAAIhANAUHGASEQDGkLIABBAjoAKAxVCyAAQdUBNgIcIAAgCzYCFCAAIBA2AgxBACEQDIABCyAQQRVGDTcgAEEANgIcIAAgBDYCFCAAQaSMgIAANgIQIABBEDYCDEEAIRAMfwsgAC0ANEEBRw00IAAgBCACELyAgIAAIhBFDTQgEEEVRw01IABB3AE2AhwgACAENgIUIABB1ZaAgAA2AhAgAEEVNgIMQQAhEAx+C0EAIRAgAEEANgIcIABBr4uAgAA2AhAgAEECNgIMIAAgFEEBajYCFAx9C0EAIRAMYwtBAiEQDGILQQ0hEAxhC0EPIRAMYAtBJSEQDF8LQRMhEAxeC0EVIRAMXQtBFiEQDFwLQRchEAxbC0EYIRAMWgtBGSEQDFkLQRohEAxYC0EbIRAMVwtBHCEQDFYLQR0hEAxVC0EfIRAMVAtBISEQDFMLQSMhEAxSC0HGACEQDFELQS4hEAxQC0EvIRAMTwtBOyEQDE4LQT0hEAxNC0HIACEQDEwLQckAIRAMSwtBywAhEAxKC0HMACEQDEkLQc4AIRAMSAtB0QAhEAxHC0HVACEQDEYLQdgAIRAMRQtB2QAhEAxEC0HbACEQDEMLQeQAIRAMQgtB5QAhEAxBC0HxACEQDEALQfQAIRAMPwtBjQEhEAw+C0GXASEQDD0LQakBIRAMPAtBrAEhEAw7C0HAASEQDDoLQbkBIRAMOQtBrwEhEAw4C0GxASEQDDcLQbIBIRAMNgtBtAEhEAw1C0G1ASEQDDQLQboBIRAMMwtBvQEhEAwyC0G/ASEQDDELQcEBIRAMMAsgAEEANgIcIAAgBDYCFCAAQemLgIAANgIQIABBHzYCDEEAIRAMSAsgAEHbATYCHCAAIAQ2AhQgAEH6loCAADYCECAAQRU2AgxBACEQDEcLIABB+AA2AhwgACAMNgIUIABBypiAgAA2AhAgAEEVNgIMQQAhEAxGCyAAQdEANgIcIAAgBTYCFCAAQbCXgIAANgIQIABBFTYCDEEAIRAMRQsgAEH5ADYCHCAAIAE2AhQgACAQNgIMQQAhEAxECyAAQfgANgIcIAAgATYCFCAAQcqYgIAANgIQIABBFTYCDEEAIRAMQwsgAEHkADYCHCAAIAE2AhQgAEHjl4CAADYCECAAQRU2AgxBACEQDEILIABB1wA2AhwgACABNgIUIABByZeAgAA2AhAgAEEVNgIMQQAhEAxBCyAAQQA2AhwgACABNgIUIABBuY2AgAA2AhAgAEEaNgIMQQAhEAxACyAAQcIANgIcIAAgATYCFCAAQeOYgIAANgIQIABBFTYCDEEAIRAMPwsgAEEANgIEIAAgDyAPELGAgIAAIgRFDQEgAEE6NgIcIAAgBDYCDCAAIA9BAWo2AhRBACEQDD4LIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCxgICAACIERQ0AIABBOzYCHCAAIAQ2AgwgACABQQFqNgIUQQAhEAw+CyABQQFqIQEMLQsgD0EBaiEBDC0LIABBADYCHCAAIA82AhQgAEHkkoCAADYCECAAQQQ2AgxBACEQDDsLIABBNjYCHCAAIAQ2AhQgACACNgIMQQAhEAw6CyAAQS42AhwgACAONgIUIAAgBDYCDEEAIRAMOQsgAEHQADYCHCAAIAE2AhQgAEGRmICAADYCECAAQRU2AgxBACEQDDgLIA1BAWohAQwsCyAAQRU2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAw2CyAAQRs2AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAw1CyAAQQ82AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAw0CyAAQQs2AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAwzCyAAQRo2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAwyCyAAQQs2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAwxCyAAQQo2AhwgACABNgIUIABB5JaAgAA2AhAgAEEVNgIMQQAhEAwwCyAAQR42AhwgACABNgIUIABB+ZeAgAA2AhAgAEEVNgIMQQAhEAwvCyAAQQA2AhwgACAQNgIUIABB2o2AgAA2AhAgAEEUNgIMQQAhEAwuCyAAQQQ2AhwgACABNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAwtCyAAQQA2AgAgC0EBaiELC0G4ASEQDBILIABBADYCACAQQQFqIQFB9QAhEAwRCyABIQECQCAALQApQQVHDQBB4wAhEAwRC0HiACEQDBALQQAhECAAQQA2AhwgAEHkkYCAADYCECAAQQc2AgwgACAUQQFqNgIUDCgLIABBADYCACAXQQFqIQFBwAAhEAwOC0EBIQELIAAgAToALCAAQQA2AgAgF0EBaiEBC0EoIRAMCwsgASEBC0E4IRAMCQsCQCABIg8gAkYNAANAAkAgDy0AAEGAvoCAAGotAAAiAUEBRg0AIAFBAkcNAyAPQQFqIQEMBAsgD0EBaiIPIAJHDQALQT4hEAwiC0E+IRAMIQsgAEEAOgAsIA8hAQwBC0ELIRAMBgtBOiEQDAULIAFBAWohAUEtIRAMBAsgACABOgAsIABBADYCACAWQQFqIQFBDCEQDAMLIABBADYCACAXQQFqIQFBCiEQDAILIABBADYCAAsgAEEAOgAsIA0hAUEJIRAMAAsLQQAhECAAQQA2AhwgACALNgIUIABBzZCAgAA2AhAgAEEJNgIMDBcLQQAhECAAQQA2AhwgACAKNgIUIABB6YqAgAA2AhAgAEEJNgIMDBYLQQAhECAAQQA2AhwgACAJNgIUIABBt5CAgAA2AhAgAEEJNgIMDBULQQAhECAAQQA2AhwgACAINgIUIABBnJGAgAA2AhAgAEEJNgIMDBQLQQAhECAAQQA2AhwgACABNgIUIABBzZCAgAA2AhAgAEEJNgIMDBMLQQAhECAAQQA2AhwgACABNgIUIABB6YqAgAA2AhAgAEEJNgIMDBILQQAhECAAQQA2AhwgACABNgIUIABBt5CAgAA2AhAgAEEJNgIMDBELQQAhECAAQQA2AhwgACABNgIUIABBnJGAgAA2AhAgAEEJNgIMDBALQQAhECAAQQA2AhwgACABNgIUIABBl5WAgAA2AhAgAEEPNgIMDA8LQQAhECAAQQA2AhwgACABNgIUIABBl5WAgAA2AhAgAEEPNgIMDA4LQQAhECAAQQA2AhwgACABNgIUIABBwJKAgAA2AhAgAEELNgIMDA0LQQAhECAAQQA2AhwgACABNgIUIABBlYmAgAA2AhAgAEELNgIMDAwLQQAhECAAQQA2AhwgACABNgIUIABB4Y+AgAA2AhAgAEEKNgIMDAsLQQAhECAAQQA2AhwgACABNgIUIABB+4+AgAA2AhAgAEEKNgIMDAoLQQAhECAAQQA2AhwgACABNgIUIABB8ZmAgAA2AhAgAEECNgIMDAkLQQAhECAAQQA2AhwgACABNgIUIABBxJSAgAA2AhAgAEECNgIMDAgLQQAhECAAQQA2AhwgACABNgIUIABB8pWAgAA2AhAgAEECNgIMDAcLIABBAjYCHCAAIAE2AhQgAEGcmoCAADYCECAAQRY2AgxBACEQDAYLQQEhEAwFC0HUACEQIAEiBCACRg0EIANBCGogACAEIAJB2MKAgABBChDFgICAACADKAIMIQQgAygCCA4DAQQCAAsQyoCAgAAACyAAQQA2AhwgAEG1moCAADYCECAAQRc2AgwgACAEQQFqNgIUQQAhEAwCCyAAQQA2AhwgACAENgIUIABBypqAgAA2AhAgAEEJNgIMQQAhEAwBCwJAIAEiBCACRw0AQSIhEAwBCyAAQYmAgIAANgIIIAAgBDYCBEEhIRALIANBEGokgICAgAAgEAuvAQECfyABKAIAIQYCQAJAIAIgA0YNACAEIAZqIQQgBiADaiACayEHIAIgBkF/cyAFaiIGaiEFA0ACQCACLQAAIAQtAABGDQBBAiEEDAMLAkAgBg0AQQAhBCAFIQIMAwsgBkF/aiEGIARBAWohBCACQQFqIgIgA0cNAAsgByEGIAMhAgsgAEEBNgIAIAEgBjYCACAAIAI2AgQPCyABQQA2AgAgACAENgIAIAAgAjYCBAsKACAAEMeAgIAAC/I2AQt/I4CAgIAAQRBrIgEkgICAgAACQEEAKAKg0ICAAA0AQQAQy4CAgABBgNSEgABrIgJB2QBJDQBBACEDAkBBACgC4NOAgAAiBA0AQQBCfzcC7NOAgABBAEKAgISAgIDAADcC5NOAgABBACABQQhqQXBxQdiq1aoFcyIENgLg04CAAEEAQQA2AvTTgIAAQQBBADYCxNOAgAALQQAgAjYCzNOAgABBAEGA1ISAADYCyNOAgABBAEGA1ISAADYCmNCAgABBACAENgKs0ICAAEEAQX82AqjQgIAAA0AgA0HE0ICAAGogA0G40ICAAGoiBDYCACAEIANBsNCAgABqIgU2AgAgA0G80ICAAGogBTYCACADQczQgIAAaiADQcDQgIAAaiIFNgIAIAUgBDYCACADQdTQgIAAaiADQcjQgIAAaiIENgIAIAQgBTYCACADQdDQgIAAaiAENgIAIANBIGoiA0GAAkcNAAtBgNSEgABBeEGA1ISAAGtBD3FBAEGA1ISAAEEIakEPcRsiA2oiBEEEaiACQUhqIgUgA2siA0EBcjYCAEEAQQAoAvDTgIAANgKk0ICAAEEAIAM2ApTQgIAAQQAgBDYCoNCAgABBgNSEgAAgBWpBODYCBAsCQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAEHsAUsNAAJAQQAoAojQgIAAIgZBECAAQRNqQXBxIABBC0kbIgJBA3YiBHYiA0EDcUUNAAJAAkAgA0EBcSAEckEBcyIFQQN0IgRBsNCAgABqIgMgBEG40ICAAGooAgAiBCgCCCICRw0AQQAgBkF+IAV3cTYCiNCAgAAMAQsgAyACNgIIIAIgAzYCDAsgBEEIaiEDIAQgBUEDdCIFQQNyNgIEIAQgBWoiBCAEKAIEQQFyNgIEDAwLIAJBACgCkNCAgAAiB00NAQJAIANFDQACQAJAIAMgBHRBAiAEdCIDQQAgA2tycSIDQQAgA2txQX9qIgMgA0EMdkEQcSIDdiIEQQV2QQhxIgUgA3IgBCAFdiIDQQJ2QQRxIgRyIAMgBHYiA0EBdkECcSIEciADIAR2IgNBAXZBAXEiBHIgAyAEdmoiBEEDdCIDQbDQgIAAaiIFIANBuNCAgABqKAIAIgMoAggiAEcNAEEAIAZBfiAEd3EiBjYCiNCAgAAMAQsgBSAANgIIIAAgBTYCDAsgAyACQQNyNgIEIAMgBEEDdCIEaiAEIAJrIgU2AgAgAyACaiIAIAVBAXI2AgQCQCAHRQ0AIAdBeHFBsNCAgABqIQJBACgCnNCAgAAhBAJAAkAgBkEBIAdBA3Z0IghxDQBBACAGIAhyNgKI0ICAACACIQgMAQsgAigCCCEICyAIIAQ2AgwgAiAENgIIIAQgAjYCDCAEIAg2AggLIANBCGohA0EAIAA2ApzQgIAAQQAgBTYCkNCAgAAMDAtBACgCjNCAgAAiCUUNASAJQQAgCWtxQX9qIgMgA0EMdkEQcSIDdiIEQQV2QQhxIgUgA3IgBCAFdiIDQQJ2QQRxIgRyIAMgBHYiA0EBdkECcSIEciADIAR2IgNBAXZBAXEiBHIgAyAEdmpBAnRBuNKAgABqKAIAIgAoAgRBeHEgAmshBCAAIQUCQANAAkAgBSgCECIDDQAgBUEUaigCACIDRQ0CCyADKAIEQXhxIAJrIgUgBCAFIARJIgUbIQQgAyAAIAUbIQAgAyEFDAALCyAAKAIYIQoCQCAAKAIMIgggAEYNACAAKAIIIgNBACgCmNCAgABJGiAIIAM2AgggAyAINgIMDAsLAkAgAEEUaiIFKAIAIgMNACAAKAIQIgNFDQMgAEEQaiEFCwNAIAUhCyADIghBFGoiBSgCACIDDQAgCEEQaiEFIAgoAhAiAw0ACyALQQA2AgAMCgtBfyECIABBv39LDQAgAEETaiIDQXBxIQJBACgCjNCAgAAiB0UNAEEAIQsCQCACQYACSQ0AQR8hCyACQf///wdLDQAgA0EIdiIDIANBgP4/akEQdkEIcSIDdCIEIARBgOAfakEQdkEEcSIEdCIFIAVBgIAPakEQdkECcSIFdEEPdiADIARyIAVyayIDQQF0IAIgA0EVanZBAXFyQRxqIQsLQQAgAmshBAJAAkACQAJAIAtBAnRBuNKAgABqKAIAIgUNAEEAIQNBACEIDAELQQAhAyACQQBBGSALQQF2ayALQR9GG3QhAEEAIQgDQAJAIAUoAgRBeHEgAmsiBiAETw0AIAYhBCAFIQggBg0AQQAhBCAFIQggBSEDDAMLIAMgBUEUaigCACIGIAYgBSAAQR12QQRxakEQaigCACIFRhsgAyAGGyEDIABBAXQhACAFDQALCwJAIAMgCHINAEEAIQhBAiALdCIDQQAgA2tyIAdxIgNFDQMgA0EAIANrcUF/aiIDIANBDHZBEHEiA3YiBUEFdkEIcSIAIANyIAUgAHYiA0ECdkEEcSIFciADIAV2IgNBAXZBAnEiBXIgAyAFdiIDQQF2QQFxIgVyIAMgBXZqQQJ0QbjSgIAAaigCACEDCyADRQ0BCwNAIAMoAgRBeHEgAmsiBiAESSEAAkAgAygCECIFDQAgA0EUaigCACEFCyAGIAQgABshBCADIAggABshCCAFIQMgBQ0ACwsgCEUNACAEQQAoApDQgIAAIAJrTw0AIAgoAhghCwJAIAgoAgwiACAIRg0AIAgoAggiA0EAKAKY0ICAAEkaIAAgAzYCCCADIAA2AgwMCQsCQCAIQRRqIgUoAgAiAw0AIAgoAhAiA0UNAyAIQRBqIQULA0AgBSEGIAMiAEEUaiIFKAIAIgMNACAAQRBqIQUgACgCECIDDQALIAZBADYCAAwICwJAQQAoApDQgIAAIgMgAkkNAEEAKAKc0ICAACEEAkACQCADIAJrIgVBEEkNACAEIAJqIgAgBUEBcjYCBEEAIAU2ApDQgIAAQQAgADYCnNCAgAAgBCADaiAFNgIAIAQgAkEDcjYCBAwBCyAEIANBA3I2AgQgBCADaiIDIAMoAgRBAXI2AgRBAEEANgKc0ICAAEEAQQA2ApDQgIAACyAEQQhqIQMMCgsCQEEAKAKU0ICAACIAIAJNDQBBACgCoNCAgAAiAyACaiIEIAAgAmsiBUEBcjYCBEEAIAU2ApTQgIAAQQAgBDYCoNCAgAAgAyACQQNyNgIEIANBCGohAwwKCwJAAkBBACgC4NOAgABFDQBBACgC6NOAgAAhBAwBC0EAQn83AuzTgIAAQQBCgICEgICAwAA3AuTTgIAAQQAgAUEMakFwcUHYqtWqBXM2AuDTgIAAQQBBADYC9NOAgABBAEEANgLE04CAAEGAgAQhBAtBACEDAkAgBCACQccAaiIHaiIGQQAgBGsiC3EiCCACSw0AQQBBMDYC+NOAgAAMCgsCQEEAKALA04CAACIDRQ0AAkBBACgCuNOAgAAiBCAIaiIFIARNDQAgBSADTQ0BC0EAIQNBAEEwNgL404CAAAwKC0EALQDE04CAAEEEcQ0EAkACQAJAQQAoAqDQgIAAIgRFDQBByNOAgAAhAwNAAkAgAygCACIFIARLDQAgBSADKAIEaiAESw0DCyADKAIIIgMNAAsLQQAQy4CAgAAiAEF/Rg0FIAghBgJAQQAoAuTTgIAAIgNBf2oiBCAAcUUNACAIIABrIAQgAGpBACADa3FqIQYLIAYgAk0NBSAGQf7///8HSw0FAkBBACgCwNOAgAAiA0UNAEEAKAK404CAACIEIAZqIgUgBE0NBiAFIANLDQYLIAYQy4CAgAAiAyAARw0BDAcLIAYgAGsgC3EiBkH+////B0sNBCAGEMuAgIAAIgAgAygCACADKAIEakYNAyAAIQMLAkAgA0F/Rg0AIAJByABqIAZNDQACQCAHIAZrQQAoAujTgIAAIgRqQQAgBGtxIgRB/v///wdNDQAgAyEADAcLAkAgBBDLgICAAEF/Rg0AIAQgBmohBiADIQAMBwtBACAGaxDLgICAABoMBAsgAyEAIANBf0cNBQwDC0EAIQgMBwtBACEADAULIABBf0cNAgtBAEEAKALE04CAAEEEcjYCxNOAgAALIAhB/v///wdLDQEgCBDLgICAACEAQQAQy4CAgAAhAyAAQX9GDQEgA0F/Rg0BIAAgA08NASADIABrIgYgAkE4ak0NAQtBAEEAKAK404CAACAGaiIDNgK404CAAAJAIANBACgCvNOAgABNDQBBACADNgK804CAAAsCQAJAAkACQEEAKAKg0ICAACIERQ0AQcjTgIAAIQMDQCAAIAMoAgAiBSADKAIEIghqRg0CIAMoAggiAw0ADAMLCwJAAkBBACgCmNCAgAAiA0UNACAAIANPDQELQQAgADYCmNCAgAALQQAhA0EAIAY2AszTgIAAQQAgADYCyNOAgABBAEF/NgKo0ICAAEEAQQAoAuDTgIAANgKs0ICAAEEAQQA2AtTTgIAAA0AgA0HE0ICAAGogA0G40ICAAGoiBDYCACAEIANBsNCAgABqIgU2AgAgA0G80ICAAGogBTYCACADQczQgIAAaiADQcDQgIAAaiIFNgIAIAUgBDYCACADQdTQgIAAaiADQcjQgIAAaiIENgIAIAQgBTYCACADQdDQgIAAaiAENgIAIANBIGoiA0GAAkcNAAsgAEF4IABrQQ9xQQAgAEEIakEPcRsiA2oiBCAGQUhqIgUgA2siA0EBcjYCBEEAQQAoAvDTgIAANgKk0ICAAEEAIAM2ApTQgIAAQQAgBDYCoNCAgAAgACAFakE4NgIEDAILIAMtAAxBCHENACAEIAVJDQAgBCAATw0AIARBeCAEa0EPcUEAIARBCGpBD3EbIgVqIgBBACgClNCAgAAgBmoiCyAFayIFQQFyNgIEIAMgCCAGajYCBEEAQQAoAvDTgIAANgKk0ICAAEEAIAU2ApTQgIAAQQAgADYCoNCAgAAgBCALakE4NgIEDAELAkAgAEEAKAKY0ICAACIITw0AQQAgADYCmNCAgAAgACEICyAAIAZqIQVByNOAgAAhAwJAAkACQAJAAkACQAJAA0AgAygCACAFRg0BIAMoAggiAw0ADAILCyADLQAMQQhxRQ0BC0HI04CAACEDA0ACQCADKAIAIgUgBEsNACAFIAMoAgRqIgUgBEsNAwsgAygCCCEDDAALCyADIAA2AgAgAyADKAIEIAZqNgIEIABBeCAAa0EPcUEAIABBCGpBD3EbaiILIAJBA3I2AgQgBUF4IAVrQQ9xQQAgBUEIakEPcRtqIgYgCyACaiICayEDAkAgBiAERw0AQQAgAjYCoNCAgABBAEEAKAKU0ICAACADaiIDNgKU0ICAACACIANBAXI2AgQMAwsCQCAGQQAoApzQgIAARw0AQQAgAjYCnNCAgABBAEEAKAKQ0ICAACADaiIDNgKQ0ICAACACIANBAXI2AgQgAiADaiADNgIADAMLAkAgBigCBCIEQQNxQQFHDQAgBEF4cSEHAkACQCAEQf8BSw0AIAYoAggiBSAEQQN2IghBA3RBsNCAgABqIgBGGgJAIAYoAgwiBCAFRw0AQQBBACgCiNCAgABBfiAId3E2AojQgIAADAILIAQgAEYaIAQgBTYCCCAFIAQ2AgwMAQsgBigCGCEJAkACQCAGKAIMIgAgBkYNACAGKAIIIgQgCEkaIAAgBDYCCCAEIAA2AgwMAQsCQCAGQRRqIgQoAgAiBQ0AIAZBEGoiBCgCACIFDQBBACEADAELA0AgBCEIIAUiAEEUaiIEKAIAIgUNACAAQRBqIQQgACgCECIFDQALIAhBADYCAAsgCUUNAAJAAkAgBiAGKAIcIgVBAnRBuNKAgABqIgQoAgBHDQAgBCAANgIAIAANAUEAQQAoAozQgIAAQX4gBXdxNgKM0ICAAAwCCyAJQRBBFCAJKAIQIAZGG2ogADYCACAARQ0BCyAAIAk2AhgCQCAGKAIQIgRFDQAgACAENgIQIAQgADYCGAsgBigCFCIERQ0AIABBFGogBDYCACAEIAA2AhgLIAcgA2ohAyAGIAdqIgYoAgQhBAsgBiAEQX5xNgIEIAIgA2ogAzYCACACIANBAXI2AgQCQCADQf8BSw0AIANBeHFBsNCAgABqIQQCQAJAQQAoAojQgIAAIgVBASADQQN2dCIDcQ0AQQAgBSADcjYCiNCAgAAgBCEDDAELIAQoAgghAwsgAyACNgIMIAQgAjYCCCACIAQ2AgwgAiADNgIIDAMLQR8hBAJAIANB////B0sNACADQQh2IgQgBEGA/j9qQRB2QQhxIgR0IgUgBUGA4B9qQRB2QQRxIgV0IgAgAEGAgA9qQRB2QQJxIgB0QQ92IAQgBXIgAHJrIgRBAXQgAyAEQRVqdkEBcXJBHGohBAsgAiAENgIcIAJCADcCECAEQQJ0QbjSgIAAaiEFAkBBACgCjNCAgAAiAEEBIAR0IghxDQAgBSACNgIAQQAgACAIcjYCjNCAgAAgAiAFNgIYIAIgAjYCCCACIAI2AgwMAwsgA0EAQRkgBEEBdmsgBEEfRht0IQQgBSgCACEAA0AgACIFKAIEQXhxIANGDQIgBEEddiEAIARBAXQhBCAFIABBBHFqQRBqIggoAgAiAA0ACyAIIAI2AgAgAiAFNgIYIAIgAjYCDCACIAI2AggMAgsgAEF4IABrQQ9xQQAgAEEIakEPcRsiA2oiCyAGQUhqIgggA2siA0EBcjYCBCAAIAhqQTg2AgQgBCAFQTcgBWtBD3FBACAFQUlqQQ9xG2pBQWoiCCAIIARBEGpJGyIIQSM2AgRBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAs2AqDQgIAAIAhBEGpBACkC0NOAgAA3AgAgCEEAKQLI04CAADcCCEEAIAhBCGo2AtDTgIAAQQAgBjYCzNOAgABBACAANgLI04CAAEEAQQA2AtTTgIAAIAhBJGohAwNAIANBBzYCACADQQRqIgMgBUkNAAsgCCAERg0DIAggCCgCBEF+cTYCBCAIIAggBGsiADYCACAEIABBAXI2AgQCQCAAQf8BSw0AIABBeHFBsNCAgABqIQMCQAJAQQAoAojQgIAAIgVBASAAQQN2dCIAcQ0AQQAgBSAAcjYCiNCAgAAgAyEFDAELIAMoAgghBQsgBSAENgIMIAMgBDYCCCAEIAM2AgwgBCAFNgIIDAQLQR8hAwJAIABB////B0sNACAAQQh2IgMgA0GA/j9qQRB2QQhxIgN0IgUgBUGA4B9qQRB2QQRxIgV0IgggCEGAgA9qQRB2QQJxIgh0QQ92IAMgBXIgCHJrIgNBAXQgACADQRVqdkEBcXJBHGohAwsgBCADNgIcIARCADcCECADQQJ0QbjSgIAAaiEFAkBBACgCjNCAgAAiCEEBIAN0IgZxDQAgBSAENgIAQQAgCCAGcjYCjNCAgAAgBCAFNgIYIAQgBDYCCCAEIAQ2AgwMBAsgAEEAQRkgA0EBdmsgA0EfRht0IQMgBSgCACEIA0AgCCIFKAIEQXhxIABGDQMgA0EddiEIIANBAXQhAyAFIAhBBHFqQRBqIgYoAgAiCA0ACyAGIAQ2AgAgBCAFNgIYIAQgBDYCDCAEIAQ2AggMAwsgBSgCCCIDIAI2AgwgBSACNgIIIAJBADYCGCACIAU2AgwgAiADNgIICyALQQhqIQMMBQsgBSgCCCIDIAQ2AgwgBSAENgIIIARBADYCGCAEIAU2AgwgBCADNgIIC0EAKAKU0ICAACIDIAJNDQBBACgCoNCAgAAiBCACaiIFIAMgAmsiA0EBcjYCBEEAIAM2ApTQgIAAQQAgBTYCoNCAgAAgBCACQQNyNgIEIARBCGohAwwDC0EAIQNBAEEwNgL404CAAAwCCwJAIAtFDQACQAJAIAggCCgCHCIFQQJ0QbjSgIAAaiIDKAIARw0AIAMgADYCACAADQFBACAHQX4gBXdxIgc2AozQgIAADAILIAtBEEEUIAsoAhAgCEYbaiAANgIAIABFDQELIAAgCzYCGAJAIAgoAhAiA0UNACAAIAM2AhAgAyAANgIYCyAIQRRqKAIAIgNFDQAgAEEUaiADNgIAIAMgADYCGAsCQAJAIARBD0sNACAIIAQgAmoiA0EDcjYCBCAIIANqIgMgAygCBEEBcjYCBAwBCyAIIAJqIgAgBEEBcjYCBCAIIAJBA3I2AgQgACAEaiAENgIAAkAgBEH/AUsNACAEQXhxQbDQgIAAaiEDAkACQEEAKAKI0ICAACIFQQEgBEEDdnQiBHENAEEAIAUgBHI2AojQgIAAIAMhBAwBCyADKAIIIQQLIAQgADYCDCADIAA2AgggACADNgIMIAAgBDYCCAwBC0EfIQMCQCAEQf///wdLDQAgBEEIdiIDIANBgP4/akEQdkEIcSIDdCIFIAVBgOAfakEQdkEEcSIFdCICIAJBgIAPakEQdkECcSICdEEPdiADIAVyIAJyayIDQQF0IAQgA0EVanZBAXFyQRxqIQMLIAAgAzYCHCAAQgA3AhAgA0ECdEG40oCAAGohBQJAIAdBASADdCICcQ0AIAUgADYCAEEAIAcgAnI2AozQgIAAIAAgBTYCGCAAIAA2AgggACAANgIMDAELIARBAEEZIANBAXZrIANBH0YbdCEDIAUoAgAhAgJAA0AgAiIFKAIEQXhxIARGDQEgA0EddiECIANBAXQhAyAFIAJBBHFqQRBqIgYoAgAiAg0ACyAGIAA2AgAgACAFNgIYIAAgADYCDCAAIAA2AggMAQsgBSgCCCIDIAA2AgwgBSAANgIIIABBADYCGCAAIAU2AgwgACADNgIICyAIQQhqIQMMAQsCQCAKRQ0AAkACQCAAIAAoAhwiBUECdEG40oCAAGoiAygCAEcNACADIAg2AgAgCA0BQQAgCUF+IAV3cTYCjNCAgAAMAgsgCkEQQRQgCigCECAARhtqIAg2AgAgCEUNAQsgCCAKNgIYAkAgACgCECIDRQ0AIAggAzYCECADIAg2AhgLIABBFGooAgAiA0UNACAIQRRqIAM2AgAgAyAINgIYCwJAAkAgBEEPSw0AIAAgBCACaiIDQQNyNgIEIAAgA2oiAyADKAIEQQFyNgIEDAELIAAgAmoiBSAEQQFyNgIEIAAgAkEDcjYCBCAFIARqIAQ2AgACQCAHRQ0AIAdBeHFBsNCAgABqIQJBACgCnNCAgAAhAwJAAkBBASAHQQN2dCIIIAZxDQBBACAIIAZyNgKI0ICAACACIQgMAQsgAigCCCEICyAIIAM2AgwgAiADNgIIIAMgAjYCDCADIAg2AggLQQAgBTYCnNCAgABBACAENgKQ0ICAAAsgAEEIaiEDCyABQRBqJICAgIAAIAMLCgAgABDJgICAAAviDQEHfwJAIABFDQAgAEF4aiIBIABBfGooAgAiAkF4cSIAaiEDAkAgAkEBcQ0AIAJBA3FFDQEgASABKAIAIgJrIgFBACgCmNCAgAAiBEkNASACIABqIQACQCABQQAoApzQgIAARg0AAkAgAkH/AUsNACABKAIIIgQgAkEDdiIFQQN0QbDQgIAAaiIGRhoCQCABKAIMIgIgBEcNAEEAQQAoAojQgIAAQX4gBXdxNgKI0ICAAAwDCyACIAZGGiACIAQ2AgggBCACNgIMDAILIAEoAhghBwJAAkAgASgCDCIGIAFGDQAgASgCCCICIARJGiAGIAI2AgggAiAGNgIMDAELAkAgAUEUaiICKAIAIgQNACABQRBqIgIoAgAiBA0AQQAhBgwBCwNAIAIhBSAEIgZBFGoiAigCACIEDQAgBkEQaiECIAYoAhAiBA0ACyAFQQA2AgALIAdFDQECQAJAIAEgASgCHCIEQQJ0QbjSgIAAaiICKAIARw0AIAIgBjYCACAGDQFBAEEAKAKM0ICAAEF+IAR3cTYCjNCAgAAMAwsgB0EQQRQgBygCECABRhtqIAY2AgAgBkUNAgsgBiAHNgIYAkAgASgCECICRQ0AIAYgAjYCECACIAY2AhgLIAEoAhQiAkUNASAGQRRqIAI2AgAgAiAGNgIYDAELIAMoAgQiAkEDcUEDRw0AIAMgAkF+cTYCBEEAIAA2ApDQgIAAIAEgAGogADYCACABIABBAXI2AgQPCyABIANPDQAgAygCBCICQQFxRQ0AAkACQCACQQJxDQACQCADQQAoAqDQgIAARw0AQQAgATYCoNCAgABBAEEAKAKU0ICAACAAaiIANgKU0ICAACABIABBAXI2AgQgAUEAKAKc0ICAAEcNA0EAQQA2ApDQgIAAQQBBADYCnNCAgAAPCwJAIANBACgCnNCAgABHDQBBACABNgKc0ICAAEEAQQAoApDQgIAAIABqIgA2ApDQgIAAIAEgAEEBcjYCBCABIABqIAA2AgAPCyACQXhxIABqIQACQAJAIAJB/wFLDQAgAygCCCIEIAJBA3YiBUEDdEGw0ICAAGoiBkYaAkAgAygCDCICIARHDQBBAEEAKAKI0ICAAEF+IAV3cTYCiNCAgAAMAgsgAiAGRhogAiAENgIIIAQgAjYCDAwBCyADKAIYIQcCQAJAIAMoAgwiBiADRg0AIAMoAggiAkEAKAKY0ICAAEkaIAYgAjYCCCACIAY2AgwMAQsCQCADQRRqIgIoAgAiBA0AIANBEGoiAigCACIEDQBBACEGDAELA0AgAiEFIAQiBkEUaiICKAIAIgQNACAGQRBqIQIgBigCECIEDQALIAVBADYCAAsgB0UNAAJAAkAgAyADKAIcIgRBAnRBuNKAgABqIgIoAgBHDQAgAiAGNgIAIAYNAUEAQQAoAozQgIAAQX4gBHdxNgKM0ICAAAwCCyAHQRBBFCAHKAIQIANGG2ogBjYCACAGRQ0BCyAGIAc2AhgCQCADKAIQIgJFDQAgBiACNgIQIAIgBjYCGAsgAygCFCICRQ0AIAZBFGogAjYCACACIAY2AhgLIAEgAGogADYCACABIABBAXI2AgQgAUEAKAKc0ICAAEcNAUEAIAA2ApDQgIAADwsgAyACQX5xNgIEIAEgAGogADYCACABIABBAXI2AgQLAkAgAEH/AUsNACAAQXhxQbDQgIAAaiECAkACQEEAKAKI0ICAACIEQQEgAEEDdnQiAHENAEEAIAQgAHI2AojQgIAAIAIhAAwBCyACKAIIIQALIAAgATYCDCACIAE2AgggASACNgIMIAEgADYCCA8LQR8hAgJAIABB////B0sNACAAQQh2IgIgAkGA/j9qQRB2QQhxIgJ0IgQgBEGA4B9qQRB2QQRxIgR0IgYgBkGAgA9qQRB2QQJxIgZ0QQ92IAIgBHIgBnJrIgJBAXQgACACQRVqdkEBcXJBHGohAgsgASACNgIcIAFCADcCECACQQJ0QbjSgIAAaiEEAkACQEEAKAKM0ICAACIGQQEgAnQiA3ENACAEIAE2AgBBACAGIANyNgKM0ICAACABIAQ2AhggASABNgIIIAEgATYCDAwBCyAAQQBBGSACQQF2ayACQR9GG3QhAiAEKAIAIQYCQANAIAYiBCgCBEF4cSAARg0BIAJBHXYhBiACQQF0IQIgBCAGQQRxakEQaiIDKAIAIgYNAAsgAyABNgIAIAEgBDYCGCABIAE2AgwgASABNgIIDAELIAQoAggiACABNgIMIAQgATYCCCABQQA2AhggASAENgIMIAEgADYCCAtBAEEAKAKo0ICAAEF/aiIBQX8gARs2AqjQgIAACwsEAAAAC04AAkAgAA0APwBBEHQPCwJAIABB//8DcQ0AIABBf0wNAAJAIABBEHZAACIAQX9HDQBBAEEwNgL404CAAEF/DwsgAEEQdA8LEMqAgIAAAAvyAgIDfwF+AkAgAkUNACAAIAE6AAAgAiAAaiIDQX9qIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0F9aiABOgAAIANBfmogAToAACACQQdJDQAgACABOgADIANBfGogAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkF8aiABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBeGogATYCACACQXRqIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQXBqIAE2AgAgAkFsaiABNgIAIAJBaGogATYCACACQWRqIAE2AgAgBCADQQRxQRhyIgVrIgJBIEkNACABrUKBgICAEH4hBiADIAVqIQEDQCABIAY3AxggASAGNwMQIAEgBjcDCCABIAY3AwAgAUEgaiEBIAJBYGoiAkEfSw0ACwsgAAsLjkgBAEGACAuGSAEAAAACAAAAAwAAAAAAAAAAAAAABAAAAAUAAAAAAAAAAAAAAAYAAAAHAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABsb3NlZWVwLWFsaXZlAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgAAAAAAAAAAAAAAAAAAAHJhbnNmZXItZW5jb2RpbmdwZ3JhZGUNCg0KDQpTTQ0KDQpUVFAvQ0UvVFNQLwAAAAAAAAAAAAAAAAECAAEDAAAAAAAAAAAAAAAAAAAAAAAABAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAABAAACAAAAAAAAAAAAAAAAAAAAAAAAAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},88675:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.enumToMap=void 0;function enumToMap(r){const i={};Object.keys(r).forEach((s=>{const a=r[s];if(typeof a==="number"){i[s]=a}}));return i}i.enumToMap=enumToMap},21045:(r,i,s)=>{"use strict";const{kClients:a}=s(97621);const l=s(38551);const{kAgent:c,kMockAgentSet:p,kMockAgentGet:d,kDispatches:u,kIsMockActive:A,kNetConnect:h,kGetNetConnect:g,kOptions:y,kFactory:b}=s(16978);const C=s(89103);const v=s(71153);const{matchValue:B,buildMockOptions:w}=s(88121);const{InvalidArgumentError:I,UndiciError:S}=s(83501);const Q=s(93954);const x=s(2799);const N=s(57175);class FakeWeakRef{constructor(r){this.value=r}deref(){return this.value}}class MockAgent extends Q{constructor(r){super(r);this[h]=true;this[A]=true;if(r&&r.agent&&typeof r.agent.dispatch!=="function"){throw new I("Argument opts.agent must implement Agent")}const i=r&&r.agent?r.agent:new l(r);this[c]=i;this[a]=i[a];this[y]=w(r)}get(r){let i=this[d](r);if(!i){i=this[b](r);this[p](r,i)}return i}dispatch(r,i){this.get(r.origin);return this[c].dispatch(r,i)}async close(){await this[c].close();this[a].clear()}deactivate(){this[A]=false}activate(){this[A]=true}enableNetConnect(r){if(typeof r==="string"||typeof r==="function"||r instanceof RegExp){if(Array.isArray(this[h])){this[h].push(r)}else{this[h]=[r]}}else if(typeof r==="undefined"){this[h]=true}else{throw new I("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[h]=false}get isMockActive(){return this[A]}[p](r,i){this[a].set(r,new FakeWeakRef(i))}[b](r){const i=Object.assign({agent:this},this[y]);return this[y]&&this[y].connections===1?new C(r,i):new v(r,i)}[d](r){const i=this[a].get(r);if(i){return i.deref()}if(typeof r!=="string"){const i=this[b]("http://localhost:9999");this[p](r,i);return i}for(const[i,s]of Array.from(this[a])){const a=s.deref();if(a&&typeof i!=="string"&&B(i,r)){const i=this[b](r);this[p](r,i);i[u]=a[u];return i}}}[g](){return this[h]}pendingInterceptors(){const r=this[a];return Array.from(r.entries()).flatMap((([r,i])=>i.deref()[u].map((i=>({...i,origin:r}))))).filter((({pending:r})=>r))}assertNoPendingInterceptors({pendingInterceptorsFormatter:r=new N}={}){const i=this.pendingInterceptors();if(i.length===0){return}const s=new x("interceptor","interceptors").pluralize(i.length);throw new S(`\n${s.count} ${s.noun} ${s.is} pending:\n\n${r.format(i)}\n`.trim())}}r.exports=MockAgent},89103:(r,i,s)=>{"use strict";const{promisify:a}=s(73837);const l=s(48352);const{buildMockDispatch:c}=s(88121);const{kDispatches:p,kMockAgent:d,kClose:u,kOriginalClose:A,kOrigin:h,kOriginalDispatch:g,kConnected:y}=s(16978);const{MockInterceptor:b}=s(20448);const C=s(97621);const{InvalidArgumentError:v}=s(83501);class MockClient extends l{constructor(r,i){super(r,i);if(!i||!i.agent||typeof i.agent.dispatch!=="function"){throw new v("Argument opts.agent must implement Agent")}this[d]=i.agent;this[h]=r;this[p]=[];this[y]=1;this[g]=this.dispatch;this[A]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[C.kConnected](){return this[y]}intercept(r){return new b(r,this[p])}async[u](){await a(this[A])();this[y]=0;this[d][C.kClients].delete(this[h])}}r.exports=MockClient},5458:(r,i,s)=>{"use strict";const{UndiciError:a}=s(83501);class MockNotMatchedError extends a{constructor(r){super(r);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=r||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}r.exports={MockNotMatchedError:MockNotMatchedError}},20448:(r,i,s)=>{"use strict";const{getResponseData:a,buildKey:l,addMockDispatch:c}=s(88121);const{kDispatches:p,kDispatchKey:d,kDefaultHeaders:u,kDefaultTrailers:A,kContentLength:h,kMockDispatch:g}=s(16978);const{InvalidArgumentError:y}=s(83501);const{buildURL:b}=s(9647);class MockScope{constructor(r){this[g]=r}delay(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new y("waitInMs must be a valid integer > 0")}this[g].delay=r;return this}persist(){this[g].persist=true;return this}times(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new y("repeatTimes must be a valid integer > 0")}this[g].times=r;return this}}class MockInterceptor{constructor(r,i){if(typeof r!=="object"){throw new y("opts must be an object")}if(typeof r.path==="undefined"){throw new y("opts.path must be defined")}if(typeof r.method==="undefined"){r.method="GET"}if(typeof r.path==="string"){if(r.query){r.path=b(r.path,r.query)}else{const i=new URL(r.path,"data://");r.path=i.pathname+i.search}}if(typeof r.method==="string"){r.method=r.method.toUpperCase()}this[d]=l(r);this[p]=i;this[u]={};this[A]={};this[h]=false}createMockScopeDispatchData(r,i,s={}){const l=a(i);const c=this[h]?{"content-length":l.length}:{};const p={...this[u],...c,...s.headers};const d={...this[A],...s.trailers};return{statusCode:r,data:i,headers:p,trailers:d}}validateReplyParameters(r,i,s){if(typeof r==="undefined"){throw new y("statusCode must be defined")}if(typeof i==="undefined"){throw new y("data must be defined")}if(typeof s!=="object"){throw new y("responseOptions must be an object")}}reply(r){if(typeof r==="function"){const wrappedDefaultsCallback=i=>{const s=r(i);if(typeof s!=="object"){throw new y("reply options callback must return an object")}const{statusCode:a,data:l="",responseOptions:c={}}=s;this.validateReplyParameters(a,l,c);return{...this.createMockScopeDispatchData(a,l,c)}};const i=c(this[p],this[d],wrappedDefaultsCallback);return new MockScope(i)}const[i,s="",a={}]=[...arguments];this.validateReplyParameters(i,s,a);const l=this.createMockScopeDispatchData(i,s,a);const u=c(this[p],this[d],l);return new MockScope(u)}replyWithError(r){if(typeof r==="undefined"){throw new y("error must be defined")}const i=c(this[p],this[d],{error:r});return new MockScope(i)}defaultReplyHeaders(r){if(typeof r==="undefined"){throw new y("headers must be defined")}this[u]=r;return this}defaultReplyTrailers(r){if(typeof r==="undefined"){throw new y("trailers must be defined")}this[A]=r;return this}replyContentLength(){this[h]=true;return this}}r.exports.MockInterceptor=MockInterceptor;r.exports.MockScope=MockScope},71153:(r,i,s)=>{"use strict";const{promisify:a}=s(73837);const l=s(29859);const{buildMockDispatch:c}=s(88121);const{kDispatches:p,kMockAgent:d,kClose:u,kOriginalClose:A,kOrigin:h,kOriginalDispatch:g,kConnected:y}=s(16978);const{MockInterceptor:b}=s(20448);const C=s(97621);const{InvalidArgumentError:v}=s(83501);class MockPool extends l{constructor(r,i){super(r,i);if(!i||!i.agent||typeof i.agent.dispatch!=="function"){throw new v("Argument opts.agent must implement Agent")}this[d]=i.agent;this[h]=r;this[p]=[];this[y]=1;this[g]=this.dispatch;this[A]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[C.kConnected](){return this[y]}intercept(r){return new b(r,this[p])}async[u](){await a(this[A])();this[y]=0;this[d][C.kClients].delete(this[h])}}r.exports=MockPool},16978:r=>{"use strict";r.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},88121:(r,i,s)=>{"use strict";const{MockNotMatchedError:a}=s(5458);const{kDispatches:l,kMockAgent:c,kOriginalDispatch:p,kOrigin:d,kGetNetConnect:u}=s(16978);const{buildURL:A,nop:h}=s(9647);const{STATUS_CODES:g}=s(13685);const{types:{isPromise:y}}=s(73837);function matchValue(r,i){if(typeof r==="string"){return r===i}if(r instanceof RegExp){return r.test(i)}if(typeof r==="function"){return r(i)===true}return false}function lowerCaseEntries(r){return Object.fromEntries(Object.entries(r).map((([r,i])=>[r.toLocaleLowerCase(),i])))}function getHeaderByName(r,i){if(Array.isArray(r)){for(let s=0;s!r)).filter((({path:r})=>matchValue(safeUrl(r),l)));if(c.length===0){throw new a(`Mock dispatch not matched for path '${l}'`)}c=c.filter((({method:r})=>matchValue(r,i.method)));if(c.length===0){throw new a(`Mock dispatch not matched for method '${i.method}'`)}c=c.filter((({body:r})=>typeof r!=="undefined"?matchValue(r,i.body):true));if(c.length===0){throw new a(`Mock dispatch not matched for body '${i.body}'`)}c=c.filter((r=>matchHeaders(r,i.headers)));if(c.length===0){throw new a(`Mock dispatch not matched for headers '${typeof i.headers==="object"?JSON.stringify(i.headers):i.headers}'`)}return c[0]}function addMockDispatch(r,i,s){const a={timesInvoked:0,times:1,persist:false,consumed:false};const l=typeof s==="function"?{callback:s}:{...s};const c={...a,...i,pending:true,data:{error:null,...l}};r.push(c);return c}function deleteMockDispatch(r,i){const s=r.findIndex((r=>{if(!r.consumed){return false}return matchKey(r,i)}));if(s!==-1){r.splice(s,1)}}function buildKey(r){const{path:i,method:s,body:a,headers:l,query:c}=r;return{path:i,method:s,body:a,headers:l,query:c}}function generateKeyValues(r){return Object.entries(r).reduce(((r,[i,s])=>[...r,Buffer.from(`${i}`),Array.isArray(s)?s.map((r=>Buffer.from(`${r}`))):Buffer.from(`${s}`)]),[])}function getStatusText(r){return g[r]||"unknown"}async function getResponse(r){const i=[];for await(const s of r){i.push(s)}return Buffer.concat(i).toString("utf8")}function mockDispatch(r,i){const s=buildKey(r);const a=getMockDispatch(this[l],s);a.timesInvoked++;if(a.data.callback){a.data={...a.data,...a.data.callback(r)}}const{data:{statusCode:c,data:p,headers:d,trailers:u,error:A},delay:g,persist:b}=a;const{timesInvoked:C,times:v}=a;a.consumed=!b&&C>=v;a.pending=C0){setTimeout((()=>{handleReply(this[l])}),g)}else{handleReply(this[l])}function handleReply(a,l=p){const A=Array.isArray(r.headers)?buildHeadersFromArray(r.headers):r.headers;const g=typeof l==="function"?l({...r,headers:A}):l;if(y(g)){g.then((r=>handleReply(a,r)));return}const b=getResponseData(g);const C=generateKeyValues(d);const v=generateKeyValues(u);i.abort=h;i.onHeaders(c,C,resume,getStatusText(c));i.onData(Buffer.from(b));i.onComplete(v);deleteMockDispatch(a,s)}function resume(){}return true}function buildMockDispatch(){const r=this[c];const i=this[d];const s=this[p];return function dispatch(l,c){if(r.isMockActive){try{mockDispatch.call(this,l,c)}catch(p){if(p instanceof a){const d=r[u]();if(d===false){throw new a(`${p.message}: subsequent request to origin ${i} was not allowed (net.connect disabled)`)}if(checkNetConnect(d,i)){s.call(this,l,c)}else{throw new a(`${p.message}: subsequent request to origin ${i} was not allowed (net.connect is not enabled for this origin)`)}}else{throw p}}}else{s.call(this,l,c)}}}function checkNetConnect(r,i){const s=new URL(i);if(r===true){return true}else if(Array.isArray(r)&&r.some((r=>matchValue(r,s.host)))){return true}return false}function buildMockOptions(r){if(r){const{agent:i,...s}=r;return s}}r.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},57175:(r,i,s)=>{"use strict";const{Transform:a}=s(12781);const{Console:l}=s(96206);r.exports=class PendingInterceptorsFormatter{constructor({disableColors:r}={}){this.transform=new a({transform(r,i,s){s(null,r)}});this.logger=new l({stdout:this.transform,inspectOptions:{colors:!r&&!process.env.CI}})}format(r){const i=r.map((({method:r,path:i,data:{statusCode:s},persist:a,times:l,timesInvoked:c,origin:p})=>({Method:r,Origin:p,Path:i,"Status code":s,Persistent:a?"✅":"❌",Invocations:c,Remaining:a?Infinity:l-c})));this.logger.table(i);return this.transform.read().toString()}}},2799:r=>{"use strict";const i={pronoun:"it",is:"is",was:"was",this:"this"};const s={pronoun:"they",is:"are",was:"were",this:"these"};r.exports=class Pluralizer{constructor(r,i){this.singular=r;this.plural=i}pluralize(r){const a=r===1;const l=a?i:s;const c=a?this.singular:this.plural;return{...l,count:r,noun:c}}}},44680:r=>{"use strict";const i=2048;const s=i-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(i);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&s)===this.bottom}push(r){this.list[this.top]=r;this.top=this.top+1&s}shift(){const r=this.list[this.bottom];if(r===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&s;return r}}r.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(r){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(r)}shift(){const r=this.tail;const i=r.shift();if(r.isEmpty()&&r.next!==null){this.tail=r.next}return i}}},25411:(r,i,s)=>{"use strict";const a=s(56775);const l=s(44680);const{kConnected:c,kSize:p,kRunning:d,kPending:u,kQueued:A,kBusy:h,kFree:g,kUrl:y,kClose:b,kDestroy:C,kDispatch:v}=s(97621);const B=s(18294);const w=Symbol("clients");const I=Symbol("needDrain");const S=Symbol("queue");const Q=Symbol("closed resolve");const x=Symbol("onDrain");const N=Symbol("onConnect");const R=Symbol("onDisconnect");const T=Symbol("onConnectionError");const D=Symbol("get dispatcher");const _=Symbol("add client");const k=Symbol("remove client");const P=Symbol("stats");class PoolBase extends a{constructor(){super();this[S]=new l;this[w]=[];this[A]=0;const r=this;this[x]=function onDrain(i,s){const a=r[S];let l=false;while(!l){const i=a.shift();if(!i){break}r[A]--;l=!this.dispatch(i.opts,i.handler)}this[I]=l;if(!this[I]&&r[I]){r[I]=false;r.emit("drain",i,[r,...s])}if(r[Q]&&a.isEmpty()){Promise.all(r[w].map((r=>r.close()))).then(r[Q])}};this[N]=(i,s)=>{r.emit("connect",i,[r,...s])};this[R]=(i,s,a)=>{r.emit("disconnect",i,[r,...s],a)};this[T]=(i,s,a)=>{r.emit("connectionError",i,[r,...s],a)};this[P]=new B(this)}get[h](){return this[I]}get[c](){return this[w].filter((r=>r[c])).length}get[g](){return this[w].filter((r=>r[c]&&!r[I])).length}get[u](){let r=this[A];for(const{[u]:i}of this[w]){r+=i}return r}get[d](){let r=0;for(const{[d]:i}of this[w]){r+=i}return r}get[p](){let r=this[A];for(const{[p]:i}of this[w]){r+=i}return r}get stats(){return this[P]}async[b](){if(this[S].isEmpty()){return Promise.all(this[w].map((r=>r.close())))}else{return new Promise((r=>{this[Q]=r}))}}async[C](r){while(true){const i=this[S].shift();if(!i){break}i.handler.onError(r)}return Promise.all(this[w].map((i=>i.destroy(r))))}[v](r,i){const s=this[D]();if(!s){this[I]=true;this[S].push({opts:r,handler:i});this[A]++}else if(!s.dispatch(r,i)){s[I]=true;this[I]=!this[D]()}return!this[I]}[_](r){r.on("drain",this[x]).on("connect",this[N]).on("disconnect",this[R]).on("connectionError",this[T]);this[w].push(r);if(this[I]){process.nextTick((()=>{if(this[I]){this[x](r[y],[this,r])}}))}return this}[k](r){r.close((()=>{const i=this[w].indexOf(r);if(i!==-1){this[w].splice(i,1)}}));this[I]=this[w].some((r=>!r[I]&&r.closed!==true&&r.destroyed!==true))}}r.exports={PoolBase:PoolBase,kClients:w,kNeedDrain:I,kAddClient:_,kRemoveClient:k,kGetDispatcher:D}},18294:(r,i,s)=>{const{kFree:a,kConnected:l,kPending:c,kQueued:p,kRunning:d,kSize:u}=s(97621);const A=Symbol("pool");class PoolStats{constructor(r){this[A]=r}get connected(){return this[A][l]}get free(){return this[A][a]}get pending(){return this[A][c]}get queued(){return this[A][p]}get running(){return this[A][d]}get size(){return this[A][u]}}r.exports=PoolStats},29859:(r,i,s)=>{"use strict";const{PoolBase:a,kClients:l,kNeedDrain:c,kAddClient:p,kGetDispatcher:d}=s(25411);const u=s(48352);const{InvalidArgumentError:A}=s(83501);const h=s(9647);const{kUrl:g,kInterceptors:y}=s(97621);const b=s(56840);const C=Symbol("options");const v=Symbol("connections");const B=Symbol("factory");function defaultFactory(r,i){return new u(r,i)}class Pool extends a{constructor(r,{connections:i,factory:s=defaultFactory,connect:a,connectTimeout:l,tls:c,maxCachedSessions:p,socketPath:d,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:w,allowH2:I,...S}={}){super();if(i!=null&&(!Number.isFinite(i)||i<0)){throw new A("invalid connections")}if(typeof s!=="function"){throw new A("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new A("connect must be a function or an object")}if(typeof a!=="function"){a=b({...c,maxCachedSessions:p,allowH2:I,socketPath:d,timeout:l,...h.nodeHasAutoSelectFamily&&u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:w}:undefined,...a})}this[y]=S.interceptors&&S.interceptors.Pool&&Array.isArray(S.interceptors.Pool)?S.interceptors.Pool:[];this[v]=i||null;this[g]=h.parseOrigin(r);this[C]={...h.deepClone(S),connect:a,allowH2:I};this[C].interceptors=S.interceptors?{...S.interceptors}:undefined;this[B]=s}[d](){let r=this[l].find((r=>!r[c]));if(r){return r}if(!this[v]||this[l].length{"use strict";const{kProxy:a,kClose:l,kDestroy:c,kInterceptors:p}=s(97621);const{URL:d}=s(57310);const u=s(38551);const A=s(29859);const h=s(56775);const{InvalidArgumentError:g,RequestAbortedError:y}=s(83501);const b=s(56840);const C=Symbol("proxy agent");const v=Symbol("proxy client");const B=Symbol("proxy headers");const w=Symbol("request tls settings");const I=Symbol("proxy tls settings");const S=Symbol("connect endpoint function");function defaultProtocolPort(r){return r==="https:"?443:80}function buildProxyOptions(r){if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new g("Proxy opts.uri is mandatory")}return{uri:r.uri,protocol:r.protocol||"https"}}function defaultFactory(r,i){return new A(r,i)}class ProxyAgent extends h{constructor(r){super(r);this[a]=buildProxyOptions(r);this[C]=new u(r);this[p]=r.interceptors&&r.interceptors.ProxyAgent&&Array.isArray(r.interceptors.ProxyAgent)?r.interceptors.ProxyAgent:[];if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new g("Proxy opts.uri is mandatory")}const{clientFactory:i=defaultFactory}=r;if(typeof i!=="function"){throw new g("Proxy opts.clientFactory must be a function.")}this[w]=r.requestTls;this[I]=r.proxyTls;this[B]=r.headers||{};const s=new d(r.uri);const{origin:l,port:c,host:A,username:h,password:Q}=s;if(r.auth&&r.token){throw new g("opts.auth cannot be used in combination with opts.token")}else if(r.auth){this[B]["proxy-authorization"]=`Basic ${r.auth}`}else if(r.token){this[B]["proxy-authorization"]=r.token}else if(h&&Q){this[B]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(h)}:${decodeURIComponent(Q)}`).toString("base64")}`}const x=b({...r.proxyTls});this[S]=b({...r.requestTls});this[v]=i(s,{connect:x});this[C]=new u({...r,connect:async(r,i)=>{let s=r.host;if(!r.port){s+=`:${defaultProtocolPort(r.protocol)}`}try{const{socket:a,statusCode:p}=await this[v].connect({origin:l,port:c,path:s,signal:r.signal,headers:{...this[B],host:A}});if(p!==200){a.on("error",(()=>{})).destroy();i(new y(`Proxy response (${p}) !== 200 when HTTP Tunneling`))}if(r.protocol!=="https:"){i(null,a);return}let d;if(this[w]){d=this[w].servername}else{d=r.servername}this[S]({...r,servername:d,httpSocket:a},i)}catch(r){i(r)}}})}dispatch(r,i){const{host:s}=new d(r.origin);const a=buildHeaders(r.headers);throwIfProxyAuthIsSent(a);return this[C].dispatch({...r,headers:{...a,host:s}},i)}async[l](){await this[C].close();await this[v].close()}async[c](){await this[C].destroy();await this[v].destroy()}}function buildHeaders(r){if(Array.isArray(r)){const i={};for(let s=0;sr.toLowerCase()==="proxy-authorization"));if(i){throw new g("Proxy-Authorization should be sent in ProxyAgent constructor")}}r.exports=ProxyAgent},98748:r=>{"use strict";let i=Date.now();let s;const a=[];function onTimeout(){i=Date.now();let r=a.length;let s=0;while(s0&&i>=l.state){l.state=-1;l.callback(l.opaque)}if(l.state===-1){l.state=-2;if(s!==r-1){a[s]=a.pop()}else{a.pop()}r-=1}else{s+=1}}if(a.length>0){refreshTimeout()}}function refreshTimeout(){if(s&&s.refresh){s.refresh()}else{clearTimeout(s);s=setTimeout(onTimeout,1e3);if(s.unref){s.unref()}}}class Timeout{constructor(r,i,s){this.callback=r;this.delay=i;this.opaque=s;this.state=-2;this.refresh()}refresh(){if(this.state===-2){a.push(this);if(!s||a.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}r.exports={setTimeout(r,i,s){return i<1e3?setTimeout(r,i,s):new Timeout(r,i,s)},clearTimeout(r){if(r instanceof Timeout){r.clear()}else{clearTimeout(r)}}}},23592:(r,i,s)=>{"use strict";const a=s(67643);const{uid:l,states:c}=s(77479);const{kReadyState:p,kSentClose:d,kByteParser:u,kReceivedClose:A}=s(56949);const{fireEvent:h,failWebsocketConnection:g}=s(74603);const{CloseEvent:y}=s(29134);const{makeRequest:b}=s(9787);const{fetching:C}=s(63254);const{Headers:v}=s(26909);const{getGlobalDispatcher:B}=s(35683);const{kHeadersList:w}=s(97621);const I={};I.open=a.channel("undici:websocket:open");I.close=a.channel("undici:websocket:close");I.socketError=a.channel("undici:websocket:socket_error");let S;try{S=s(6113)}catch{}function establishWebSocketConnection(r,i,s,a,c){const p=r;p.protocol=r.protocol==="ws:"?"http:":"https:";const d=b({urlList:[p],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(c.headers){const r=new v(c.headers)[w];d.headersList=r}const u=S.randomBytes(16).toString("base64");d.headersList.append("sec-websocket-key",u);d.headersList.append("sec-websocket-version","13");for(const r of i){d.headersList.append("sec-websocket-protocol",r)}const A="";const h=C({request:d,useParallelQueue:true,dispatcher:c.dispatcher??B(),processResponse(r){if(r.type==="error"||r.status!==101){g(s,"Received network error or non-101 status code.");return}if(i.length!==0&&!r.headersList.get("Sec-WebSocket-Protocol")){g(s,"Server did not respond with sent protocols.");return}if(r.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){g(s,'Server did not set Upgrade header to "websocket".');return}if(r.headersList.get("Connection")?.toLowerCase()!=="upgrade"){g(s,'Server did not set Connection header to "upgrade".');return}const c=r.headersList.get("Sec-WebSocket-Accept");const p=S.createHash("sha1").update(u+l).digest("base64");if(c!==p){g(s,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const h=r.headersList.get("Sec-WebSocket-Extensions");if(h!==null&&h!==A){g(s,"Received different permessage-deflate than the one set.");return}const y=r.headersList.get("Sec-WebSocket-Protocol");if(y!==null&&y!==d.headersList.get("Sec-WebSocket-Protocol")){g(s,"Protocol was not set in the opening handshake.");return}r.socket.on("data",onSocketData);r.socket.on("close",onSocketClose);r.socket.on("error",onSocketError);if(I.open.hasSubscribers){I.open.publish({address:r.socket.address(),protocol:y,extensions:h})}a(r)}});return h}function onSocketData(r){if(!this.ws[u].write(r)){this.pause()}}function onSocketClose(){const{ws:r}=this;const i=r[d]&&r[A];let s=1005;let a="";const l=r[u].closingInfo;if(l){s=l.code??1005;a=l.reason}else if(!r[d]){s=1006}r[p]=c.CLOSED;h("close",r,y,{wasClean:i,code:s,reason:a});if(I.close.hasSubscribers){I.close.publish({websocket:r,code:s,reason:a})}}function onSocketError(r){const{ws:i}=this;i[p]=c.CLOSING;if(I.socketError.hasSubscribers){I.socketError.publish(r)}this.destroy()}r.exports={establishWebSocketConnection:establishWebSocketConnection}},77479:r=>{"use strict";const i="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const s={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const l={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const c=2**16-1;const p={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const d=Buffer.allocUnsafe(0);r.exports={uid:i,staticPropertyDescriptors:s,states:a,opcodes:l,maxUnsigned16Bit:c,parserStates:p,emptyBuffer:d}},29134:(r,i,s)=>{"use strict";const{webidl:a}=s(73721);const{kEnumerableProperty:l}=s(9647);const{MessagePort:c}=s(71267);class MessageEvent extends Event{#s;constructor(r,i={}){a.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});r=a.converters.DOMString(r);i=a.converters.MessageEventInit(i);super(r,i);this.#s=i}get data(){a.brandCheck(this,MessageEvent);return this.#s.data}get origin(){a.brandCheck(this,MessageEvent);return this.#s.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#s.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#s.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#s.ports)){Object.freeze(this.#s.ports)}return this.#s.ports}initMessageEvent(r,i=false,s=false,l=null,c="",p="",d=null,u=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(r,{bubbles:i,cancelable:s,data:l,origin:c,lastEventId:p,source:d,ports:u})}}class CloseEvent extends Event{#s;constructor(r,i={}){a.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});r=a.converters.DOMString(r);i=a.converters.CloseEventInit(i);super(r,i);this.#s=i}get wasClean(){a.brandCheck(this,CloseEvent);return this.#s.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#s.code}get reason(){a.brandCheck(this,CloseEvent);return this.#s.reason}}class ErrorEvent extends Event{#s;constructor(r,i){a.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(r,i);r=a.converters.DOMString(r);i=a.converters.ErrorEventInit(i??{});this.#s=i}get message(){a.brandCheck(this,ErrorEvent);return this.#s.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#s.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#s.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#s.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#s.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:l,origin:l,lastEventId:l,source:l,ports:l,initMessageEvent:l});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:l,code:l,wasClean:l});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:l,filename:l,lineno:l,colno:l,error:l});a.converters.MessagePort=a.interfaceConverter(c);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const p=[{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}];a.converters.MessageEventInit=a.dictionaryConverter([...p,{key:"data",converter:a.converters.any,defaultValue:null},{key:"origin",converter:a.converters.USVString,defaultValue:""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:null},{key:"ports",converter:a.converters["sequence"],get defaultValue(){return[]}}]);a.converters.CloseEventInit=a.dictionaryConverter([...p,{key:"wasClean",converter:a.converters.boolean,defaultValue:false},{key:"code",converter:a.converters["unsigned short"],defaultValue:0},{key:"reason",converter:a.converters.USVString,defaultValue:""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...p,{key:"message",converter:a.converters.DOMString,defaultValue:""},{key:"filename",converter:a.converters.USVString,defaultValue:""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:0},{key:"error",converter:a.converters.any}]);r.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},25156:(r,i,s)=>{"use strict";const{maxUnsigned16Bit:a}=s(77479);let l;try{l=s(6113)}catch{}class WebsocketFrameSend{constructor(r){this.frameData=r;this.maskKey=l.randomBytes(4)}createFrame(r){const i=this.frameData?.byteLength??0;let s=i;let l=6;if(i>a){l+=8;s=127}else if(i>125){l+=2;s=126}const c=Buffer.allocUnsafe(i+l);c[0]=c[1]=0;c[0]|=128;c[0]=(c[0]&240)+r; +/*! ws. MIT License. Einar Otto Stangvik */c[l-4]=this.maskKey[0];c[l-3]=this.maskKey[1];c[l-2]=this.maskKey[2];c[l-1]=this.maskKey[3];c[1]=s;if(s===126){c.writeUInt16BE(i,2)}else if(s===127){c[2]=c[3]=0;c.writeUIntBE(i,4,6)}c[1]|=128;for(let r=0;r{"use strict";const{Writable:a}=s(12781);const l=s(67643);const{parserStates:c,opcodes:p,states:d,emptyBuffer:u}=s(77479);const{kReadyState:A,kSentClose:h,kResponse:g,kReceivedClose:y}=s(56949);const{isValidStatusCode:b,failWebsocketConnection:C,websocketMessageReceived:v}=s(74603);const{WebsocketFrameSend:B}=s(25156);const w={};w.ping=l.channel("undici:websocket:ping");w.pong=l.channel("undici:websocket:pong");class ByteParser extends a{#a=[];#o=0;#l=c.INFO;#c={};#p=[];constructor(r){super();this.ws=r}_write(r,i,s){this.#a.push(r);this.#o+=r.length;this.run(s)}run(r){while(true){if(this.#l===c.INFO){if(this.#o<2){return r()}const i=this.consume(2);this.#c.fin=(i[0]&128)!==0;this.#c.opcode=i[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==p.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==p.BINARY&&this.#c.opcode!==p.TEXT){C(this.ws,"Invalid frame type was fragmented.");return}const s=i[1]&127;if(s<=125){this.#c.payloadLength=s;this.#l=c.READ_DATA}else if(s===126){this.#l=c.PAYLOADLENGTH_16}else if(s===127){this.#l=c.PAYLOADLENGTH_64}if(this.#c.fragmented&&s>125){C(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===p.PING||this.#c.opcode===p.PONG||this.#c.opcode===p.CLOSE)&&s>125){C(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===p.CLOSE){if(s===1){C(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(s);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[h]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const i=new B(r);this.ws[g].socket.write(i.createFrame(p.CLOSE),(r=>{if(!r){this.ws[h]=true}}))}this.ws[A]=d.CLOSING;this.ws[y]=true;this.end();return}else if(this.#c.opcode===p.PING){const i=this.consume(s);if(!this.ws[y]){const r=new B(i);this.ws[g].socket.write(r.createFrame(p.PONG));if(w.ping.hasSubscribers){w.ping.publish({payload:i})}}this.#l=c.INFO;if(this.#o>0){continue}else{r();return}}else if(this.#c.opcode===p.PONG){const i=this.consume(s);if(w.pong.hasSubscribers){w.pong.publish({payload:i})}if(this.#o>0){continue}else{r();return}}}else if(this.#l===c.PAYLOADLENGTH_16){if(this.#o<2){return r()}const i=this.consume(2);this.#c.payloadLength=i.readUInt16BE(0);this.#l=c.READ_DATA}else if(this.#l===c.PAYLOADLENGTH_64){if(this.#o<8){return r()}const i=this.consume(8);const s=i.readUInt32BE(0);if(s>2**31-1){C(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#c.payloadLength=(s<<8)+a;this.#l=c.READ_DATA}else if(this.#l===c.READ_DATA){if(this.#o=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#p.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===p.CONTINUATION){const r=Buffer.concat(this.#p);v(this.ws,this.#c.originalOpcode,r);this.#c={};this.#p.length=0}this.#l=c.INFO}}if(this.#o>0){continue}else{r();break}}}consume(r){if(r>this.#o){return null}else if(r===0){return u}if(this.#a[0].length===r){this.#o-=this.#a[0].length;return this.#a.shift()}const i=Buffer.allocUnsafe(r);let s=0;while(s!==r){const a=this.#a[0];const{length:l}=a;if(l+s===r){i.set(this.#a.shift(),s);break}else if(l+s>r){i.set(a.subarray(0,r-s),s);this.#a[0]=a.subarray(r-s);break}else{i.set(this.#a.shift(),s);s+=a.length}}this.#o-=r;return i}parseCloseBody(r,i){let s;if(i.length>=2){s=i.readUInt16BE(0)}if(r){if(!b(s)){return null}return{code:s}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(s!==undefined&&!b(s)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:s,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},56949:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},74603:(r,i,s)=>{"use strict";const{kReadyState:a,kController:l,kResponse:c,kBinaryType:p,kWebSocketURL:d}=s(56949);const{states:u,opcodes:A}=s(77479);const{MessageEvent:h,ErrorEvent:g}=s(29134);function isEstablished(r){return r[a]===u.OPEN}function isClosing(r){return r[a]===u.CLOSING}function isClosed(r){return r[a]===u.CLOSED}function fireEvent(r,i,s=Event,a){const l=new s(r,a);i.dispatchEvent(l)}function websocketMessageReceived(r,i,s){if(r[a]!==u.OPEN){return}let l;if(i===A.TEXT){try{l=new TextDecoder("utf-8",{fatal:true}).decode(s)}catch{failWebsocketConnection(r,"Received invalid UTF-8 in text frame.");return}}else if(i===A.BINARY){if(r[p]==="blob"){l=new Blob([s])}else{l=new Uint8Array(s).buffer}}fireEvent("message",r,h,{origin:r[d].origin,data:l})}function isValidSubprotocol(r){if(r.length===0){return false}for(const i of r){const r=i.charCodeAt(0);if(r<33||r>126||i==="("||i===")"||i==="<"||i===">"||i==="@"||i===","||i===";"||i===":"||i==="\\"||i==='"'||i==="/"||i==="["||i==="]"||i==="?"||i==="="||i==="{"||i==="}"||r===32||r===9){return false}}return true}function isValidStatusCode(r){if(r>=1e3&&r<1015){return r!==1004&&r!==1005&&r!==1006}return r>=3e3&&r<=4999}function failWebsocketConnection(r,i){const{[l]:s,[c]:a}=r;s.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(i){fireEvent("error",r,g,{error:new Error(i)})}}r.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},10553:(r,i,s)=>{"use strict";const{webidl:a}=s(73721);const{DOMException:l}=s(80756);const{URLSerializer:c}=s(6932);const{getGlobalOrigin:p}=s(128);const{staticPropertyDescriptors:d,states:u,opcodes:A,emptyBuffer:h}=s(77479);const{kWebSocketURL:g,kReadyState:y,kController:b,kBinaryType:C,kResponse:v,kSentClose:B,kByteParser:w}=s(56949);const{isEstablished:I,isClosing:S,isValidSubprotocol:Q,failWebsocketConnection:x,fireEvent:N}=s(74603);const{establishWebSocketConnection:R}=s(23592);const{WebsocketFrameSend:T}=s(25156);const{ByteParser:D}=s(84944);const{kEnumerableProperty:_,isBlobLike:k}=s(9647);const{getGlobalDispatcher:P}=s(35683);const{types:O}=s(73837);let L=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#u=0;#A="";#m="";constructor(r,i=[]){super();a.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!L){L=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const s=a.converters["DOMString or sequence or WebSocketInit"](i);r=a.converters.USVString(r);i=s.protocols;const c=p();let d;try{d=new URL(r,c)}catch(r){throw new l(r,"SyntaxError")}if(d.protocol==="http:"){d.protocol="ws:"}else if(d.protocol==="https:"){d.protocol="wss:"}if(d.protocol!=="ws:"&&d.protocol!=="wss:"){throw new l(`Expected a ws: or wss: protocol, got ${d.protocol}`,"SyntaxError")}if(d.hash||d.href.endsWith("#")){throw new l("Got fragment","SyntaxError")}if(typeof i==="string"){i=[i]}if(i.length!==new Set(i.map((r=>r.toLowerCase()))).size){throw new l("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(i.length>0&&!i.every((r=>Q(r)))){throw new l("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[g]=new URL(d.href);this[b]=R(d,i,this,(r=>this.#h(r)),s);this[y]=WebSocket.CONNECTING;this[C]="blob"}close(r=undefined,i=undefined){a.brandCheck(this,WebSocket);if(r!==undefined){r=a.converters["unsigned short"](r,{clamp:true})}if(i!==undefined){i=a.converters.USVString(i)}if(r!==undefined){if(r!==1e3&&(r<3e3||r>4999)){throw new l("invalid code","InvalidAccessError")}}let s=0;if(i!==undefined){s=Buffer.byteLength(i);if(s>123){throw new l(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError")}}if(this[y]===WebSocket.CLOSING||this[y]===WebSocket.CLOSED){}else if(!I(this)){x(this,"Connection was closed before it was established.");this[y]=WebSocket.CLOSING}else if(!S(this)){const a=new T;if(r!==undefined&&i===undefined){a.frameData=Buffer.allocUnsafe(2);a.frameData.writeUInt16BE(r,0)}else if(r!==undefined&&i!==undefined){a.frameData=Buffer.allocUnsafe(2+s);a.frameData.writeUInt16BE(r,0);a.frameData.write(i,2,"utf-8")}else{a.frameData=h}const l=this[v].socket;l.write(a.createFrame(A.CLOSE),(r=>{if(!r){this[B]=true}}));this[y]=u.CLOSING}else{this[y]=WebSocket.CLOSING}}send(r){a.brandCheck(this,WebSocket);a.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});r=a.converters.WebSocketSendData(r);if(this[y]===WebSocket.CONNECTING){throw new l("Sent before connected.","InvalidStateError")}if(!I(this)||S(this)){return}const i=this[v].socket;if(typeof r==="string"){const s=Buffer.from(r);const a=new T(s);const l=a.createFrame(A.TEXT);this.#u+=s.byteLength;i.write(l,(()=>{this.#u-=s.byteLength}))}else if(O.isArrayBuffer(r)){const s=Buffer.from(r);const a=new T(s);const l=a.createFrame(A.BINARY);this.#u+=s.byteLength;i.write(l,(()=>{this.#u-=s.byteLength}))}else if(ArrayBuffer.isView(r)){const s=Buffer.from(r,r.byteOffset,r.byteLength);const a=new T(s);const l=a.createFrame(A.BINARY);this.#u+=s.byteLength;i.write(l,(()=>{this.#u-=s.byteLength}))}else if(k(r)){const s=new T;r.arrayBuffer().then((r=>{const a=Buffer.from(r);s.frameData=a;const l=s.createFrame(A.BINARY);this.#u+=a.byteLength;i.write(l,(()=>{this.#u-=a.byteLength}))}))}}get readyState(){a.brandCheck(this,WebSocket);return this[y]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#u}get url(){a.brandCheck(this,WebSocket);return c(this[g])}get extensions(){a.brandCheck(this,WebSocket);return this.#m}get protocol(){a.brandCheck(this,WebSocket);return this.#A}get onopen(){a.brandCheck(this,WebSocket);return this.#d.open}set onopen(r){a.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof r==="function"){this.#d.open=r;this.addEventListener("open",r)}else{this.#d.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#d.error}set onerror(r){a.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof r==="function"){this.#d.error=r;this.addEventListener("error",r)}else{this.#d.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#d.close}set onclose(r){a.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof r==="function"){this.#d.close=r;this.addEventListener("close",r)}else{this.#d.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#d.message}set onmessage(r){a.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof r==="function"){this.#d.message=r;this.addEventListener("message",r)}else{this.#d.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[C]}set binaryType(r){a.brandCheck(this,WebSocket);if(r!=="blob"&&r!=="arraybuffer"){this[C]="blob"}else{this[C]=r}}#h(r){this[v]=r;const i=new D(this);i.on("drain",(function onParserDrain(){this.ws[v].socket.resume()}));r.socket.ws=this;this[w]=i;this[y]=u.OPEN;const s=r.headersList.get("sec-websocket-extensions");if(s!==null){this.#m=s}const a=r.headersList.get("sec-websocket-protocol");if(a!==null){this.#A=a}N("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=u.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=u.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=u.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=u.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:_,readyState:_,bufferedAmount:_,onopen:_,onerror:_,onclose:_,close:_,onmessage:_,binaryType:_,send:_,extensions:_,protocol:_,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(r){if(a.util.Type(r)==="Object"&&Symbol.iterator in r){return a.converters["sequence"](r)}return a.converters.DOMString(r)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:r=>r,get defaultValue(){return P()}},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(r){if(a.util.Type(r)==="Object"&&!(Symbol.iterator in r)){return a.converters.WebSocketInit(r)}return{protocols:a.converters["DOMString or sequence"](r)}};a.converters.WebSocketSendData=function(r){if(a.util.Type(r)==="Object"){if(k(r)){return a.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||O.isAnyArrayBuffer(r)){return a.converters.BufferSource(r)}}return a.converters.USVString(r)};r.exports={WebSocket:WebSocket}},25592:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}i.getUserAgent=getUserAgent},81696:(r,i,s)=>{"use strict";var a=s(12781);var l=s(73837).inherits;function Entry(){if(!(this instanceof Entry)){return new Entry}a.PassThrough.call(this);this.path=null;this.type=null;this.isDirectory=false}l(Entry,a.PassThrough);Entry.prototype.autodrain=function(){return this.pipe(new a.Transform({transform:function(r,i,s){s()}}))};r.exports=Entry},8949:(r,i,s)=>{var a=s(57147);var l=s(71017);var c=s(73837);var p=s(48159);var d=s(12781).Transform;var u=s(97457);function Extract(r){if(!(this instanceof Extract))return new Extract(r);d.call(this);this.opts=r||{};this.unzipStream=new u(this.opts);this.unfinishedEntries=0;this.afterFlushWait=false;this.createdDirectories={};var i=this;this.unzipStream.on("entry",this._processEntry.bind(this));this.unzipStream.on("error",(function(r){i.emit("error",r)}))}c.inherits(Extract,d);Extract.prototype._transform=function(r,i,s){this.unzipStream.write(r,i,s)};Extract.prototype._flush=function(r){var i=this;var allDone=function(){process.nextTick((function(){i.emit("close")}));r()};this.unzipStream.end((function(){if(i.unfinishedEntries>0){i.afterFlushWait=true;return i.on("await-finished",allDone)}allDone()}))};Extract.prototype._processEntry=function(r){var i=this;var s=l.join(this.opts.path,r.path);var c=r.isDirectory?s:l.dirname(s);this.unfinishedEntries++;var writeFileFn=function(){var l=a.createWriteStream(s);l.on("close",(function(){i.unfinishedEntries--;i._notifyAwaiter()}));l.on("error",(function(r){i.emit("error",r)}));r.pipe(l)};if(this.createdDirectories[c]||c==="."){return writeFileFn()}p(c,(function(s){if(s)return i.emit("error",s);i.createdDirectories[c]=true;if(r.isDirectory){i.unfinishedEntries--;i._notifyAwaiter();return}writeFileFn()}))};Extract.prototype._notifyAwaiter=function(){if(this.afterFlushWait&&this.unfinishedEntries===0){this.emit("await-finished");this.afterFlushWait=false}};r.exports=Extract},92870:(r,i,s)=>{var a=s(12781).Transform;var l=s(73837);function MatcherStream(r,i){if(!(this instanceof MatcherStream)){return new MatcherStream}a.call(this);var s=typeof r==="object"?r.pattern:r;this.pattern=Buffer.isBuffer(s)?s:Buffer.from(s);this.requiredLength=this.pattern.length;if(r.requiredExtraSize)this.requiredLength+=r.requiredExtraSize;this.data=new Buffer("");this.bytesSoFar=0;this.matchFn=i}l.inherits(MatcherStream,a);MatcherStream.prototype.checkDataChunk=function(r){var i=this.data.length>=this.requiredLength;if(!i){return}var s=this.data.indexOf(this.pattern,r?1:0);if(s>=0&&s+this.requiredLength>this.data.length){if(s>0){var a=this.data.slice(0,s);this.push(a);this.bytesSoFar+=s;this.data=this.data.slice(s)}return}if(s===-1){var l=this.data.length-this.requiredLength+1;var a=this.data.slice(0,l);this.push(a);this.bytesSoFar+=l;this.data=this.data.slice(l);return}if(s>0){var a=this.data.slice(0,s);this.data=this.data.slice(s);this.push(a);this.bytesSoFar+=s}var c=this.matchFn?this.matchFn(this.data,this.bytesSoFar):true;if(c){this.data=new Buffer("");return}return true};MatcherStream.prototype._transform=function(r,i,s){this.data=Buffer.concat([this.data,r]);var a=true;while(this.checkDataChunk(!a)){a=false}s()};MatcherStream.prototype._flush=function(r){if(this.data.length>0){var i=true;while(this.checkDataChunk(!i)){i=false}}if(this.data.length>0){this.push(this.data);this.data=null}r()};r.exports=MatcherStream},50805:(r,i,s)=>{var a=s(12781).Transform;var l=s(73837);var c=s(97457);function ParserStream(r){if(!(this instanceof ParserStream)){return new ParserStream(r)}var i=r||{};a.call(this,{readableObjectMode:true});this.opts=r||{};this.unzipStream=new c(this.opts);var s=this;this.unzipStream.on("entry",(function(r){s.push(r)}));this.unzipStream.on("error",(function(r){s.emit("error",r)}))}l.inherits(ParserStream,a);ParserStream.prototype._transform=function(r,i,s){this.unzipStream.write(r,i,s)};ParserStream.prototype._flush=function(r){var i=this;this.unzipStream.end((function(){process.nextTick((function(){i.emit("close")}));r()}))};ParserStream.prototype.on=function(r,i){if(r==="entry"){return a.prototype.on.call(this,"data",i)}return a.prototype.on.call(this,r,i)};ParserStream.prototype.drainAll=function(){this.unzipStream.drainAll();return this.pipe(new a({objectMode:true,transform:function(r,i,s){s()}}))};r.exports=ParserStream},97457:(r,i,s)=>{"use strict";var a=s(70084);var l=s(12781);var c=s(73837);var p=s(59796);var d=s(92870);var u=s(81696);const A={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99};const h=4294967296;const g=67324752;const y=134695760;const b=33639248;const C=101075792;const v=117853008;const B=101010256;function UnzipStream(r){if(!(this instanceof UnzipStream)){return new UnzipStream(r)}l.Transform.call(this);this.options=r||{};this.data=new Buffer("");this.state=A.STREAM_START;this.skippedBytes=0;this.parsedEntity=null;this.outStreamInfo={}}c.inherits(UnzipStream,l.Transform);UnzipStream.prototype.processDataChunk=function(r){var i;switch(this.state){case A.STREAM_START:case A.START:i=4;break;case A.LOCAL_FILE_HEADER:i=26;break;case A.LOCAL_FILE_HEADER_SUFFIX:i=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case A.DATA_DESCRIPTOR:i=12;break;case A.CENTRAL_DIRECTORY_FILE_HEADER:i=42;break;case A.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:i=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case A.CDIR64_END:i=52;break;case A.CDIR64_END_DATA_SECTOR:i=this.parsedEntity.centralDirectoryRecordSize-44;break;case A.CDIR64_LOCATOR:i=16;break;case A.CENTRAL_DIRECTORY_END:i=18;break;case A.CENTRAL_DIRECTORY_END_COMMENT:i=this.parsedEntity.commentLength;break;case A.FILE_DATA:return 0;case A.FILE_DATA_END:return 0;case A.TRAILING_JUNK:if(this.options.debug)console.log("found",r.length,"bytes of TRAILING_JUNK");return r.length;default:return r.length}var s=r.length;if(s>>8;if((c&255)===80){p=d;break}}this.skippedBytes+=p;if(this.options.debug)console.log("Skipped",this.skippedBytes,"bytes");return p}this.state=A.ERROR;var y=l?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var w=r.readUInt32LE(0);var I;try{I=r.slice(0,4).toString()}catch(r){}console.log("Unexpected signature in zip file: 0x"+w.toString(16),'"'+I+'", skipped',this.skippedBytes,"bytes")}this.emit("error",new Error(y));return r.length}this.skippedBytes=0;return i;case A.LOCAL_FILE_HEADER:this.parsedEntity=this._readFile(r);this.state=A.LOCAL_FILE_HEADER_SUFFIX;return i;case A.LOCAL_FILE_HEADER_SUFFIX:var S=new u;var Q=(this.parsedEntity.flags&2048)!==0;S.path=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),Q);var x=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var N=this._readExtraFields(x);if(N&&N.parsed){if(N.parsed.path&&!Q){S.path=N.parsed.path}if(Number.isFinite(N.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===h-1){this.parsedEntity.uncompressedSize=N.parsed.uncompressedSize}if(Number.isFinite(N.parsed.compressedSize)&&this.parsedEntity.compressedSize===h-1){this.parsedEntity.compressedSize=N.parsed.compressedSize}}this.parsedEntity.extra=N.parsed||{};if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:S.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:N&&N.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(r,null,2))}this._prepareOutStream(this.parsedEntity,S);this.emit("entry",S);this.state=A.FILE_DATA;return i;case A.CENTRAL_DIRECTORY_FILE_HEADER:this.parsedEntity=this._readCentralDirectoryEntry(r);this.state=A.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX;return i;case A.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var Q=(this.parsedEntity.flags&2048)!==0;var R=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),Q);var x=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var N=this._readExtraFields(x);if(N&&N.parsed&&N.parsed.path&&!Q){R=N.parsed.path}this.parsedEntity.extra=N.parsed;var T=(this.parsedEntity.versionMadeBy&65280)>>8===3;var D,_;if(T){D=this.parsedEntity.externalFileAttributes>>>16;var k=D>>>12;_=(k&10)===10}if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:R,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:D&&"0"+D.toString(8),isSymlink:_,extraFields:N.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(r,null,2))}this.state=A.START;return i;case A.CDIR64_END:this.parsedEntity=this._readEndOfCentralDirectory64(r);if(this.options.debug){console.log("decoded CDIR64_END_RECORD:",this.parsedEntity)}this.state=A.CDIR64_END_DATA_SECTOR;return i;case A.CDIR64_END_DATA_SECTOR:this.state=A.START;return i;case A.CDIR64_LOCATOR:this.state=A.START;return i;case A.CENTRAL_DIRECTORY_END:this.parsedEntity=this._readEndOfCentralDirectory(r);if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity)}this.state=A.CENTRAL_DIRECTORY_END_COMMENT;return i;case A.CENTRAL_DIRECTORY_END_COMMENT:if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",r.slice(0,i).toString())}this.state=A.TRAILING_JUNK;return i;case A.ERROR:return r.length;default:console.log("didn't handle state #",this.state,"discarding");return r.length}};UnzipStream.prototype._prepareOutStream=function(r,i){var s=this;var a=r.uncompressedSize===0&&/[\/\\]$/.test(i.path);i.path=i.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,".");i.type=a?"Directory":"File";i.isDirectory=a;var c=!(r.flags&8);if(c){i.size=r.uncompressedSize}var g=r.versionsNeededToExtract<=45;this.outStreamInfo={stream:null,limit:c?r.compressedSize:-1,written:0};if(!c){var b=new Buffer(4);b.writeUInt32LE(y,0);var C=r.extra.zip64Mode;var v=C?20:12;var B={pattern:b,requiredExtraSize:v};var w=new d(B,(function(r,i){var a=s._readDataDescriptor(r,C);var l=a.compressedSize===i;if(!C&&!l&&i>=h){var c=i-h;while(c>=0){l=a.compressedSize===c;if(l)break;c-=h}}if(!l){return}s.state=A.FILE_DATA_END;var p=C?24:16;if(s.data.length>0){s.data=Buffer.concat([r.slice(p),s.data])}else{s.data=r.slice(p)}return true}));this.outStreamInfo.stream=w}else{this.outStreamInfo.stream=new l.PassThrough}var I=r.flags&1||r.flags&64;if(I||!g){var S=I?"Encrypted files are not supported!":"Zip version "+Math.floor(r.versionsNeededToExtract/10)+"."+r.versionsNeededToExtract%10+" is not supported";i.skip=true;setImmediate((()=>{s.emit("error",new Error(S))}));this.outStreamInfo.stream.pipe((new u).autodrain());return}var Q=r.compressionMethod>0;if(Q){var x=p.createInflateRaw();x.on("error",(function(r){s.state=A.ERROR;s.emit("error",r)}));this.outStreamInfo.stream.pipe(x).pipe(i)}else{this.outStreamInfo.stream.pipe(i)}if(this._drainAllEntries){i.autodrain()}};UnzipStream.prototype._readFile=function(r){var i=a.parse(r).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return i};UnzipStream.prototype._readExtraFields=function(r){var i={};var s={parsed:i};if(this.options.debug){s.debug=[]}var l=0;while(l=A+4&&u&1){i.mtime=new Date(r.readUInt32LE(l+A)*1e3);A+=4}if(c.extraSize>=A+4&&u&2){i.atime=new Date(r.readUInt32LE(l+A)*1e3);A+=4}if(c.extraSize>=A+4&&u&4){i.ctime=new Date(r.readUInt32LE(l+A)*1e3)}break;case 28789:p="Info-ZIP Unicode Path Extra Field";var h=r.readUInt8(l);if(h===1){var A=1;var g=r.readUInt32LE(l+A);A+=4;var y=r.slice(l+A);i.path=y.toString()}break;case 13:case 22613:p=c.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var A=0;if(c.extraSize>=8){var b=new Date(r.readUInt32LE(l+A)*1e3);A+=4;var C=new Date(r.readUInt32LE(l+A)*1e3);A+=4;i.atime=b;i.mtime=C;if(c.extraSize>=12){var v=r.readUInt16LE(l+A);A+=2;var B=r.readUInt16LE(l+A);A+=2;i.uid=v;i.gid=B}}break;case 30805:p="Info-ZIP UNIX (type 2)";var A=0;if(c.extraSize>=4){var v=r.readUInt16LE(l+A);A+=2;var B=r.readUInt16LE(l+A);A+=2;i.uid=v;i.gid=B}break;case 30837:p="Info-ZIP New Unix";var A=0;var w=r.readUInt8(l);A+=1;if(w===1){var I=r.readUInt8(l+A);A+=1;if(I<=6){i.uid=r.readUIntLE(l+A,I)}A+=I;var S=r.readUInt8(l+A);A+=1;if(S<=6){i.gid=r.readUIntLE(l+A,S)}}break;case 30062:p="ASi Unix";var A=0;if(c.extraSize>=14){var Q=r.readUInt32LE(l+A);A+=4;var x=r.readUInt16LE(l+A);A+=2;var N=r.readUInt32LE(l+A);A+=4;var v=r.readUInt16LE(l+A);A+=2;var B=r.readUInt16LE(l+A);A+=2;i.mode=x;i.uid=v;i.gid=B;if(c.extraSize>14){var R=l+A;var T=l+c.extraSize-14;var D=this._decodeString(r.slice(R,T));i.symlink=D}}break}if(this.options.debug){s.debug.push({extraId:"0x"+c.extraId.toString(16),description:p,data:r.slice(l,l+c.extraSize).inspect()})}l+=c.extraSize}return s};UnzipStream.prototype._readDataDescriptor=function(r,i){if(i){var s=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return s}var s=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return s};UnzipStream.prototype._readCentralDirectoryEntry=function(r){var i=a.parse(r).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return i};UnzipStream.prototype._readEndOfCentralDirectory64=function(r){var i=a.parse(r).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return i};UnzipStream.prototype._readEndOfCentralDirectory=function(r){var i=a.parse(r).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return i};const w="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";UnzipStream.prototype._decodeString=function(r,i){if(i){return r.toString("utf8")}if(this.options.decodeString){return this.options.decodeString(r)}let s="";for(var a=0;a0){this.data=this.data.slice(s);if(this.data.length===0)break}if(this.state===A.FILE_DATA){if(this.outStreamInfo.limit>=0){var a=this.outStreamInfo.limit-this.outStreamInfo.written;var l;if(a{if(this.state===A.FILE_DATA_END){this.state=A.START;return c.end(i)}i()}))}return}i()};UnzipStream.prototype.drainAll=function(){this._drainAllEntries=true};UnzipStream.prototype._transform=function(r,i,s){var a=this;if(a.data.length>0){a.data=Buffer.concat([a.data,r])}else{a.data=r}var l=a.data.length;var done=function(){if(a.data.length>0&&a.data.length0){i._parseOrOutput("buffer",(function(){if(i.data.length>0)return setImmediate((function(){i._flush(r)}));r()}));return}if(i.state===A.FILE_DATA){return r(new Error("Stream finished in an invalid state, uncompression failed"))}setImmediate(r)};r.exports=UnzipStream},15413:(r,i,s)=>{"use strict";i.Parse=s(50805);i.Extract=s(8949)},32151:(r,i,s)=>{r.exports=s(73837).deprecate},47338:(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(36101));var l=_interopRequireDefault(s(9456));var c=_interopRequireDefault(s(11071));var p=_interopRequireDefault(s(78057));var d=_interopRequireDefault(s(67448));var u=_interopRequireDefault(s(65530));var A=_interopRequireDefault(s(50324));var h=_interopRequireDefault(s(85284));var g=_interopRequireDefault(s(66067));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},58612:(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},67448:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s="00000000-0000-0000-0000-000000000000";i["default"]=s},66067:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(50324));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},87610:(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},16750:(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)}},4920:(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},85284:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(50324));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},36101:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(16750));var l=_interopRequireDefault(s(85284));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 y=r.clockseq!==undefined?r.clockseq:p;if(g==null||y==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(y==null){y=p=(i[6]<<8|i[7])&16383}}let b=r.msecs!==undefined?r.msecs:Date.now();let C=r.nsecs!==undefined?r.nsecs:u+1;const v=b-d+(C-u)/1e4;if(v<0&&r.clockseq===undefined){y=y+1&16383}if((v<0||b>d)&&r.nsecs===undefined){C=0}if(C>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=b;u=C;p=y;b+=122192928e5;const B=((b&268435455)*1e4+C)%4294967296;h[A++]=B>>>24&255;h[A++]=B>>>16&255;h[A++]=B>>>8&255;h[A++]=B&255;const w=b/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++]=y>>>8|128;h[A++]=y&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},9456:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(29390));var l=_interopRequireDefault(s(58612));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},29390:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var a=_interopRequireDefault(s(85284));var l=_interopRequireDefault(s(66067));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(16750));var l=_interopRequireDefault(s(85284));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},78057:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(29390));var l=_interopRequireDefault(s(4920));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},50324:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(87610));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},65530:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=_interopRequireDefault(s(50324));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},60369:r=>{"use strict";var i={};r.exports=i;function sign(r){return r<0?-1:1}function evenRound(r){if(r%1===.5&&(r&1)===0){return Math.floor(r)}else{return Math.round(r)}}function createNumberConversion(r,i){if(!i.unsigned){--r}const s=i.unsigned?0:-Math.pow(2,r);const a=Math.pow(2,r)-1;const l=i.moduloBitLength?Math.pow(2,i.moduloBitLength):Math.pow(2,r);const c=i.moduloBitLength?Math.pow(2,i.moduloBitLength-1):Math.pow(2,r-1);return function(r,p){if(!p)p={};let d=+r;if(p.enforceRange){if(!Number.isFinite(d)){throw new TypeError("Argument is not a finite number")}d=sign(d)*Math.floor(Math.abs(d));if(da){throw new TypeError("Argument is not in byte range")}return d}if(!isNaN(d)&&p.clamp){d=evenRound(d);if(da)d=a;return d}if(!Number.isFinite(d)||d===0){return 0}d=sign(d)*Math.floor(Math.abs(d));d=d%l;if(!i.unsigned&&d>=c){return d-l}else if(i.unsigned){if(d<0){d+=l}else if(d===-0){return 0}}return d}}i["void"]=function(){return undefined};i["boolean"]=function(r){return!!r};i["byte"]=createNumberConversion(8,{unsigned:false});i["octet"]=createNumberConversion(8,{unsigned:true});i["short"]=createNumberConversion(16,{unsigned:false});i["unsigned short"]=createNumberConversion(16,{unsigned:true});i["long"]=createNumberConversion(32,{unsigned:false});i["unsigned long"]=createNumberConversion(32,{unsigned:true});i["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});i["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});i["double"]=function(r){const i=+r;if(!Number.isFinite(i)){throw new TypeError("Argument is not a finite floating-point value")}return i};i["unrestricted double"]=function(r){const i=+r;if(isNaN(i)){throw new TypeError("Argument is NaN")}return i};i["float"]=i["double"];i["unrestricted float"]=i["unrestricted double"];i["DOMString"]=function(r,i){if(!i)i={};if(i.treatNullAsEmptyString&&r===null){return""}return String(r)};i["ByteString"]=function(r,i){const s=String(r);let a=undefined;for(let r=0;(a=s.codePointAt(r))!==undefined;++r){if(a>255){throw new TypeError("Argument is not a valid bytestring")}}return s};i["USVString"]=function(r){const i=String(r);const s=i.length;const a=[];for(let r=0;r57343){a.push(String.fromCodePoint(l))}else if(56320<=l&&l<=57343){a.push(String.fromCodePoint(65533))}else{if(r===s-1){a.push(String.fromCodePoint(65533))}else{const s=i.charCodeAt(r+1);if(56320<=s&&s<=57343){const i=l&1023;const c=s&1023;a.push(String.fromCodePoint((2<<15)+(2<<9)*i+c));++r}else{a.push(String.fromCodePoint(65533))}}}}return a.join("")};i["Date"]=function(r,i){if(!(r instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(r)){return undefined}return r};i["RegExp"]=function(r,i){if(!(r instanceof RegExp)){r=new RegExp(r)}return r}},13086:(r,i,s)=>{"use strict";const a=s(45934);i.implementation=class URLImpl{constructor(r){const i=r[0];const s=r[1];let l=null;if(s!==undefined){l=a.basicURLParse(s);if(l==="failure"){throw new TypeError("Invalid base URL")}}const c=a.basicURLParse(i,{baseURL:l});if(c==="failure"){throw new TypeError("Invalid URL")}this._url=c}get href(){return a.serializeURL(this._url)}set href(r){const i=a.basicURLParse(r);if(i==="failure"){throw new TypeError("Invalid URL")}this._url=i}get origin(){return a.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(r){a.basicURLParse(r+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(r){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setTheUsername(this._url,r)}get password(){return this._url.password}set password(r){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setThePassword(this._url,r)}get host(){const r=this._url;if(r.host===null){return""}if(r.port===null){return a.serializeHost(r.host)}return a.serializeHost(r.host)+":"+a.serializeInteger(r.port)}set host(r){if(this._url.cannotBeABaseURL){return}a.basicURLParse(r,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return a.serializeHost(this._url.host)}set hostname(r){if(this._url.cannotBeABaseURL){return}a.basicURLParse(r,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return a.serializeInteger(this._url.port)}set port(r){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}if(r===""){this._url.port=null}else{a.basicURLParse(r,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(r){if(this._url.cannotBeABaseURL){return}this._url.path=[];a.basicURLParse(r,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(r){const i=this._url;if(r===""){i.query=null;return}const s=r[0]==="?"?r.substring(1):r;i.query="";a.basicURLParse(s,{url:i,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(r){if(r===""){this._url.fragment=null;return}const i=r[0]==="#"?r.substring(1):r;this._url.fragment="";a.basicURLParse(i,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},44724:(r,i,s)=>{"use strict";const a=s(60369);const l=s(20724);const c=s(13086);const p=l.implSymbol;function URL(i){if(!this||this[p]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const s=[];for(let r=0;r{"use strict";i.URL=s(44724)["interface"];i.serializeURL=s(45934).serializeURL;i.serializeURLOrigin=s(45934).serializeURLOrigin;i.basicURLParse=s(45934).basicURLParse;i.setTheUsername=s(45934).setTheUsername;i.setThePassword=s(45934).setThePassword;i.serializeHost=s(45934).serializeHost;i.serializeInteger=s(45934).serializeInteger;i.parseURL=s(45934).parseURL},45934:(r,i,s)=>{"use strict";const a=s(85477);const l=s(36372);const c={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const p=Symbol("failure");function countSymbols(r){return a.ucs2.decode(r).length}function at(r,i){const s=r[i];return isNaN(s)?undefined:String.fromCodePoint(s)}function isASCIIDigit(r){return r>=48&&r<=57}function isASCIIAlpha(r){return r>=65&&r<=90||r>=97&&r<=122}function isASCIIAlphanumeric(r){return isASCIIAlpha(r)||isASCIIDigit(r)}function isASCIIHex(r){return isASCIIDigit(r)||r>=65&&r<=70||r>=97&&r<=102}function isSingleDot(r){return r==="."||r.toLowerCase()==="%2e"}function isDoubleDot(r){r=r.toLowerCase();return r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"}function isWindowsDriveLetterCodePoints(r,i){return isASCIIAlpha(r)&&(i===58||i===124)}function isWindowsDriveLetterString(r){return r.length===2&&isASCIIAlpha(r.codePointAt(0))&&(r[1]===":"||r[1]==="|")}function isNormalizedWindowsDriveLetterString(r){return r.length===2&&isASCIIAlpha(r.codePointAt(0))&&r[1]===":"}function containsForbiddenHostCodePoint(r){return r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(r){return r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(r){return c[r]!==undefined}function isSpecial(r){return isSpecialScheme(r.scheme)}function defaultPort(r){return c[r]}function percentEncode(r){let i=r.toString(16).toUpperCase();if(i.length===1){i="0"+i}return"%"+i}function utf8PercentEncode(r){const i=new Buffer(r);let s="";for(let r=0;r126}const d=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(r){return isC0ControlPercentEncode(r)||d.has(r)}const u=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(r){return isPathPercentEncode(r)||u.has(r)}function percentEncodeChar(r,i){const s=String.fromCodePoint(r);if(i(r)){return utf8PercentEncode(s)}return s}function parseIPv4Number(r){let i=10;if(r.length>=2&&r.charAt(0)==="0"&&r.charAt(1).toLowerCase()==="x"){r=r.substring(2);i=16}else if(r.length>=2&&r.charAt(0)==="0"){r=r.substring(1);i=8}if(r===""){return 0}const s=i===10?/[^0-9]/:i===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(s.test(r)){return p}return parseInt(r,i)}function parseIPv4(r){const i=r.split(".");if(i[i.length-1]===""){if(i.length>1){i.pop()}}if(i.length>4){return r}const s=[];for(const a of i){if(a===""){return r}const i=parseIPv4Number(a);if(i===p){return r}s.push(i)}for(let r=0;r255){return p}}if(s[s.length-1]>=Math.pow(256,5-s.length)){return p}let a=s.pop();let l=0;for(const r of s){a+=r*Math.pow(256,3-l);++l}return a}function serializeIPv4(r){let i="";let s=r;for(let r=1;r<=4;++r){i=String(s%256)+i;if(r!==4){i="."+i}s=Math.floor(s/256)}return i}function parseIPv6(r){const i=[0,0,0,0,0,0,0,0];let s=0;let l=null;let c=0;r=a.ucs2.decode(r);if(r[c]===58){if(r[c+1]!==58){return p}c+=2;++s;l=s}while(c6){return p}let a=0;while(r[c]!==undefined){let l=null;if(a>0){if(r[c]===46&&a<4){++c}else{return p}}if(!isASCIIDigit(r[c])){return p}while(isASCIIDigit(r[c])){const i=parseInt(at(r,c));if(l===null){l=i}else if(l===0){return p}else{l=l*10+i}if(l>255){return p}++c}i[s]=i[s]*256+l;++a;if(a===2||a===4){++s}}if(a!==4){return p}break}else if(r[c]===58){++c;if(r[c]===undefined){return p}}else if(r[c]!==undefined){return p}i[s]=a;++s}if(l!==null){let r=s-l;s=7;while(s!==0&&r>0){const a=i[l+r-1];i[l+r-1]=i[s];i[s]=a;--s;--r}}else if(l===null&&s!==8){return p}return i}function serializeIPv6(r){let i="";const s=findLongestZeroSequence(r);const a=s.idx;let l=false;for(let s=0;s<=7;++s){if(l&&r[s]===0){continue}else if(l){l=false}if(a===s){const r=s===0?"::":":";i+=r;l=true;continue}i+=r[s].toString(16);if(s!==7){i+=":"}}return i}function parseHost(r,i){if(r[0]==="["){if(r[r.length-1]!=="]"){return p}return parseIPv6(r.substring(1,r.length-1))}if(!i){return parseOpaqueHost(r)}const s=utf8PercentDecode(r);const a=l.toASCII(s,false,l.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(a===null){return p}if(containsForbiddenHostCodePoint(a)){return p}const c=parseIPv4(a);if(typeof c==="number"||c===p){return c}return a}function parseOpaqueHost(r){if(containsForbiddenHostCodePointExcludingPercent(r)){return p}let i="";const s=a.ucs2.decode(r);for(let r=0;rs){i=a;s=l}a=null;l=0}else{if(a===null){a=c}++l}}if(l>s){i=a;s=l}return{idx:i,len:s}}function serializeHost(r){if(typeof r==="number"){return serializeIPv4(r)}if(r instanceof Array){return"["+serializeIPv6(r)+"]"}return r}function trimControlChars(r){return r.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(r){return r.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(r){const i=r.path;if(i.length===0){return}if(r.scheme==="file"&&i.length===1&&isNormalizedWindowsDriveLetter(i[0])){return}i.pop()}function includesCredentials(r){return r.username!==""||r.password!==""}function cannotHaveAUsernamePasswordPort(r){return r.host===null||r.host===""||r.cannotBeABaseURL||r.scheme==="file"}function isNormalizedWindowsDriveLetter(r){return/^[A-Za-z]:$/.test(r)}function URLStateMachine(r,i,s,l,c){this.pointer=0;this.input=r;this.base=i||null;this.encodingOverride=s||"utf-8";this.stateOverride=c;this.url=l;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const r=trimControlChars(this.input);if(r!==this.input){this.parseError=true}this.input=r}const d=trimTabAndNewline(this.input);if(d!==this.input){this.parseError=true}this.input=d;this.state=c||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=a.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const r=this.input[this.pointer];const i=isNaN(r)?undefined:String.fromCodePoint(r);const s=this["parse "+this.state](r,i);if(!s){break}else if(s===p){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(r,i){if(isASCIIAlpha(r)){this.buffer+=i.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return p}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(r,i){if(isASCIIAlphanumeric(r)||r===43||r===45||r===46){this.buffer+=i.toLowerCase()}else if(r===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return p}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(r){if(this.base===null||this.base.cannotBeABaseURL&&r!==35){return p}else if(this.base.cannotBeABaseURL&&r===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(r){if(r===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(r){if(r===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(r){this.url.scheme=this.base.scheme;if(isNaN(r)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(r===47){this.state="relative slash"}else if(r===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(r===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&r===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(r){if(isSpecial(this.url)&&(r===47||r===92)){if(r===92){this.parseError=true}this.state="special authority ignore slashes"}else if(r===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(r){if(r===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(r){if(r!==47&&r!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(r,i){if(r===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const r=countSymbols(this.buffer);for(let i=0;iMath.pow(2,16)-1){this.parseError=true;return p}this.url.port=r===defaultPort(this.url.scheme)?null:r;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return p}return true};const A=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(r){this.url.scheme="file";if(r===47||r===92){if(r===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(r)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(r===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(r===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(r,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!A.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(r){if(r===47||r===92){if(r===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(r,i){if(isNaN(r)||r===47||r===92||r===63||r===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let r=parseHost(this.buffer,isSpecial(this.url));if(r===p){return p}if(r==="localhost"){r=""}this.url.host=r;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=i}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(r){if(isSpecial(this.url)){if(r===92){this.parseError=true}this.state="path";if(r!==47&&r!==92){--this.pointer}}else if(!this.stateOverride&&r===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&r===35){this.url.fragment="";this.state="fragment"}else if(r!==undefined){this.state="path";if(r!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(r){if(isNaN(r)||r===47||isSpecial(this.url)&&r===92||!this.stateOverride&&(r===63||r===35)){if(isSpecial(this.url)&&r===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(r!==47&&!(isSpecial(this.url)&&r===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&r!==47&&!(isSpecial(this.url)&&r===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(r===undefined||r===63||r===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(r===63){this.url.query="";this.state="query"}if(r===35){this.url.fragment="";this.state="fragment"}}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(r,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(r){if(r===63){this.url.query="";this.state="query"}else if(r===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(r)&&r!==37){this.parseError=true}if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(r)){this.url.path[0]=this.url.path[0]+percentEncodeChar(r,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(r,i){if(isNaN(r)||!this.stateOverride&&r===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const i=new Buffer(this.buffer);for(let r=0;r126||i[r]===34||i[r]===35||i[r]===60||i[r]===62){this.url.query+=percentEncode(i[r])}else{this.url.query+=String.fromCodePoint(i[r])}}this.buffer="";if(r===35){this.url.fragment="";this.state="fragment"}}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=i}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(r){if(isNaN(r)){}else if(r===0){this.parseError=true}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(r,isC0ControlPercentEncode)}return true};function serializeURL(r,i){let s=r.scheme+":";if(r.host!==null){s+="//";if(r.username!==""||r.password!==""){s+=r.username;if(r.password!==""){s+=":"+r.password}s+="@"}s+=serializeHost(r.host);if(r.port!==null){s+=":"+r.port}}else if(r.host===null&&r.scheme==="file"){s+="//"}if(r.cannotBeABaseURL){s+=r.path[0]}else{for(const i of r.path){s+="/"+i}}if(r.query!==null){s+="?"+r.query}if(!i&&r.fragment!==null){s+="#"+r.fragment}return s}function serializeOrigin(r){let i=r.scheme+"://";i+=serializeHost(r.host);if(r.port!==null){i+=":"+r.port}return i}r.exports.serializeURL=serializeURL;r.exports.serializeURLOrigin=function(i){switch(i.scheme){case"blob":try{return r.exports.serializeURLOrigin(r.exports.parseURL(i.path[0]))}catch(r){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:i.scheme,host:i.host,port:i.port});case"file":return"file://";default:return"null"}};r.exports.basicURLParse=function(r,i){if(i===undefined){i={}}const s=new URLStateMachine(r,i.baseURL,i.encodingOverride,i.url,i.stateOverride);if(s.failure){return"failure"}return s.url};r.exports.setTheUsername=function(r,i){r.username="";const s=a.ucs2.decode(i);for(let i=0;i{"use strict";r.exports.mixin=function mixin(r,i){const s=Object.getOwnPropertyNames(i);for(let a=0;a{r.exports=wrappy;function wrappy(r,i){if(r&&i)return wrappy(r)(i);if(typeof r!=="function")throw new TypeError("need wrapper function");Object.keys(r).forEach((function(i){wrapper[i]=r[i]}));return wrapper;function wrapper(){var i=new Array(arguments.length);for(var s=0;s=0||r.indexOf(">")>=0||r.indexOf("<")>=0)};p=function(r){return""};l=function(r){return r.replace("]]>","]]]]>")};i.Builder=function(){function Builder(r){var i,s,l;this.options={};s=a["0.2"];for(i in s){if(!d.call(s,i))continue;l=s[i];this.options[i]=l}for(i in r){if(!d.call(r,i))continue;l=r[i];this.options[i]=l}}Builder.prototype.buildObject=function(i){var s,l,u,A,h;s=this.options.attrkey;l=this.options.charkey;if(Object.keys(i).length===1&&this.options.rootName===a["0.2"].rootName){h=Object.keys(i)[0];i=i[h]}else{h=this.options.rootName}u=function(r){return function(i,a){var A,h,g,y,b,C;if(typeof a!=="object"){if(r.options.cdata&&c(a)){i.raw(p(a))}else{i.txt(a)}}else if(Array.isArray(a)){for(y in a){if(!d.call(a,y))continue;h=a[y];for(b in h){g=h[b];i=u(i.ele(b),g).up()}}}else{for(b in a){if(!d.call(a,b))continue;h=a[b];if(b===s){if(typeof h==="object"){for(A in h){C=h[A];i=i.att(A,C)}}}else if(b===l){if(r.options.cdata&&c(h)){i=i.raw(p(h))}else{i=i.txt(h)}}else if(Array.isArray(h)){for(y in h){if(!d.call(h,y))continue;g=h[y];if(typeof g==="string"){if(r.options.cdata&&c(g)){i=i.ele(b).raw(p(g)).up()}else{i=i.ele(b,g).up()}}else{i=u(i.ele(b),g).up()}}}else if(typeof h==="object"){i=u(i.ele(b),h).up()}else{if(typeof h==="string"&&r.options.cdata&&c(h)){i=i.ele(b).raw(p(h)).up()}else{if(h==null){h=""}i=i.ele(b,h.toString()).up()}}}}return i}}(this);A=r.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(A,i).end(this.options.renderOpts)};return Builder}()}).call(this)},34617:function(r,i){(function(){i.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},22711:function(r,i,s){(function(){"use strict";var r,a,l,c,p,d,u,A,bind=function(r,i){return function(){return r.apply(i,arguments)}},extend=function(r,i){for(var s in i){if(h.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},h={}.hasOwnProperty;u=s(34438);l=s(82361);r=s(11304);d=s(85771);A=s(39512).setImmediate;a=s(34617).defaults;c=function(r){return typeof r==="object"&&r!=null&&Object.keys(r).length===0};p=function(r,i,s){var a,l,c;for(a=0,l=r.length;a0){u[r.options.childkey]=g}g=u}else if(C){C[r.options.childkey]=C[r.options.childkey]||[];y=Object.create(null);for(d in g){if(!h.call(g,d))continue;y[d]=g[d]}C[r.options.childkey].push(y);delete g["#name"];if(Object.keys(g).length===1&&i in g&&!r.EXPLICIT_CHARKEY){g=g[i]}}}if(a.length>0){return r.assignOrPush(C,A,g)}else{if(r.options.explicitRoot){b=g;g=Object.create(null);g[A]=b}r.resultObject=g;r.saxParser.ended=true;return r.emit("end",r.resultObject)}}}(this);s=function(r){return function(s){var l,c;c=a[a.length-1];if(c){c[i]+=s;if(r.options.explicitChildren&&r.options.preserveChildrenOrder&&r.options.charsAsChildren&&(r.options.includeWhiteChars||s.replace(/\\n/g,"").trim()!=="")){c[r.options.childkey]=c[r.options.childkey]||[];l={"#name":"__text__"};l[i]=s;if(r.options.normalize){l[i]=l[i].replace(/\s{2,}/g," ").trim()}c[r.options.childkey].push(l)}return c}}}(this);this.saxParser.ontext=s;return this.saxParser.oncdata=function(r){return function(r){var i;i=s(r);if(i){return i.cdata=true}}}(this)};Parser.prototype.parseString=function(i,s){var a;if(s!=null&&typeof s==="function"){this.on("end",(function(r){this.reset();return s(null,r)}));this.on("error",(function(r){this.reset();return s(r)}))}try{i=i.toString();if(i.trim()===""){this.emit("end",null);return true}i=r.stripBOM(i);if(this.options.async){this.remaining=i;A(this.processAsync);return this.saxParser}return this.saxParser.write(i).close()}catch(r){a=r;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",a);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw a}}};Parser.prototype.parseStringPromise=function(r){return new Promise(function(i){return function(s,a){return i.parseString(r,(function(r,i){if(r){return a(r)}else{return s(i)}}))}}(this))};return Parser}(l);i.parseString=function(r,s,a){var l,c,p;if(a!=null){if(typeof a==="function"){l=a}if(typeof s==="object"){c=s}}else{if(typeof s==="function"){l=s}c={}}p=new i.Parser(c);return p.parseString(r,l)};i.parseStringPromise=function(r,s){var a,l;if(typeof s==="object"){a=s}l=new i.Parser(a);return l.parseStringPromise(r)}}).call(this)},85771:function(r,i){(function(){"use strict";var r;r=new RegExp(/(?!xmlns)^.*:/);i.normalize=function(r){return r.toLowerCase()};i.firstCharLowerCase=function(r){return r.charAt(0).toLowerCase()+r.slice(1)};i.stripPrefix=function(i){return i.replace(r,"")};i.parseNumbers=function(r){if(!isNaN(r)){r=r%1===0?parseInt(r,10):parseFloat(r)}return r};i.parseBooleans=function(r){if(/^(?:true|false)$/i.test(r)){r=r.toLowerCase()==="true"}return r}}).call(this)},11136:function(r,i,s){(function(){"use strict";var r,a,l,c,extend=function(r,i){for(var s in i){if(p.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;a=s(34617);r=s(12338);l=s(22711);c=s(85771);i.defaults=a.defaults;i.processors=c;i.ValidationError=function(r){extend(ValidationError,r);function ValidationError(r){this.message=r}return ValidationError}(Error);i.Builder=r.Builder;i.Parser=l.Parser;i.parseString=l.parseString;i.parseStringPromise=l.parseStringPromise}).call(this)},94038:function(r){(function(){r.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},686:function(r){(function(){r.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},43208:function(r){(function(){var i,s,a,l,c,p,d,u=[].slice,A={}.hasOwnProperty;i=function(){var r,i,s,a,l,p;p=arguments[0],l=2<=arguments.length?u.call(arguments,1):[];if(c(Object.assign)){Object.assign.apply(null,arguments)}else{for(r=0,s=l.length;r"}else{return"attribute: {"+r+"}, parent: <"+this.parent.name+">"}};XMLAttribute.prototype.isEqualNode=function(r){if(r.namespaceURI!==this.namespaceURI){return false}if(r.prefix!==this.prefix){return false}if(r.localName!==this.localName){return false}if(r.value!==this.value){return false}return true};return XMLAttribute}()}).call(this)},67723:function(r,i,s){(function(){var i,a,l,extend=function(r,i){for(var s in i){if(c.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;i=s(686);l=s(38130);r.exports=a=function(r){extend(XMLCData,r);function XMLCData(r,s){XMLCData.__super__.constructor.call(this,r);if(s==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=i.CData;this.value=this.stringify.cdata(s)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))};return XMLCData}(l)}).call(this)},38130:function(r,i,s){(function(){var i,a,extend=function(r,i){for(var s in i){if(l.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},l={}.hasOwnProperty;a=s(80596);r.exports=i=function(r){extend(XMLCharacterData,r);function XMLCharacterData(r){XMLCharacterData.__super__.constructor.call(this,r);this.value=""}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}});XMLCharacterData.prototype.clone=function(){return Object.create(this)};XMLCharacterData.prototype.substringData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.insertData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.deleteData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.replaceData=function(r,i,s){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.isEqualNode=function(r){if(!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)){return false}if(r.data!==this.data){return false}return true};return XMLCharacterData}(a)}).call(this)},60746:function(r,i,s){(function(){var i,a,l,extend=function(r,i){for(var s in i){if(c.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;i=s(686);a=s(38130);r.exports=l=function(r){extend(XMLComment,r);function XMLComment(r,s){XMLComment.__super__.constructor.call(this,r);if(s==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=i.Comment;this.value=this.stringify.comment(s)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))};return XMLComment}(a)}).call(this)},15511:function(r,i,s){(function(){var i,a,l;a=s(21721);l=s(90149);r.exports=i=function(){function XMLDOMConfiguration(){var r;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new a,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=r=Object.create(this.defaultParams)}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new l(Object.keys(this.defaultParams))}});XMLDOMConfiguration.prototype.getParameter=function(r){if(this.params.hasOwnProperty(r)){return this.params[r]}else{return null}};XMLDOMConfiguration.prototype.canSetParameter=function(r,i){return true};XMLDOMConfiguration.prototype.setParameter=function(r,i){if(i!=null){return this.params[r]=i}else{return delete this.params[r]}};return XMLDOMConfiguration}()}).call(this)},21721:function(r){(function(){var i;r.exports=i=function(){function XMLDOMErrorHandler(){}XMLDOMErrorHandler.prototype.handleError=function(r){throw new Error(r)};return XMLDOMErrorHandler}()}).call(this)},44400:function(r){(function(){var i;r.exports=i=function(){function XMLDOMImplementation(){}XMLDOMImplementation.prototype.hasFeature=function(r,i){return true};XMLDOMImplementation.prototype.createDocumentType=function(r,i,s){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createDocument=function(r,i,s){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createHTMLDocument=function(r){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.getFeature=function(r,i){throw new Error("This DOM method is not implemented.")};return XMLDOMImplementation}()}).call(this)},90149:function(r){(function(){var i;r.exports=i=function(){function XMLDOMStringList(r){this.arr=r||[]}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});XMLDOMStringList.prototype.item=function(r){return this.arr[r]||null};XMLDOMStringList.prototype.contains=function(r){return this.arr.indexOf(r)!==-1};return XMLDOMStringList}()}).call(this)},1325:function(r,i,s){(function(){var i,a,l,extend=function(r,i){for(var s in i){if(c.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;l=s(80596);i=s(686);r.exports=a=function(r){extend(XMLDTDAttList,r);function XMLDTDAttList(r,s,a,l,c,p){XMLDTDAttList.__super__.constructor.call(this,r);if(s==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(a==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(s))}if(!l){throw new Error("Missing DTD attribute type. "+this.debugInfo(s))}if(!c){throw new Error("Missing DTD attribute default. "+this.debugInfo(s))}if(c.indexOf("#")!==0){c="#"+c}if(!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s))}if(p&&!c.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s))}this.elementName=this.stringify.name(s);this.type=i.AttributeDeclaration;this.attributeName=this.stringify.name(a);this.attributeType=this.stringify.dtdAttType(l);if(p){this.defaultValue=this.stringify.dtdAttDefault(p)}this.defaultValueType=c}XMLDTDAttList.prototype.toString=function(r){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(r))};return XMLDTDAttList}(l)}).call(this)},76017:function(r,i,s){(function(){var i,a,l,extend=function(r,i){for(var s in i){if(c.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;l=s(80596);i=s(686);r.exports=a=function(r){extend(XMLDTDElement,r);function XMLDTDElement(r,s,a){XMLDTDElement.__super__.constructor.call(this,r);if(s==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!a){a="(#PCDATA)"}if(Array.isArray(a)){a="("+a.join(",")+")"}this.name=this.stringify.name(s);this.type=i.ElementDeclaration;this.value=this.stringify.dtdElementValue(a)}XMLDTDElement.prototype.toString=function(r){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(r))};return XMLDTDElement}(l)}).call(this)},87969:function(r,i,s){(function(){var i,a,l,c,extend=function(r,i){for(var s in i){if(p.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;c=s(43208).isObject;l=s(80596);i=s(686);r.exports=a=function(r){extend(XMLDTDEntity,r);function XMLDTDEntity(r,s,a,l){XMLDTDEntity.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing DTD entity name. "+this.debugInfo(a))}if(l==null){throw new Error("Missing DTD entity value. "+this.debugInfo(a))}this.pe=!!s;this.name=this.stringify.name(a);this.type=i.EntityDeclaration;if(!c(l)){this.value=this.stringify.dtdEntityValue(l);this.internal=true}else{if(!l.pubID&&!l.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a))}if(l.pubID&&!l.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a))}this.internal=false;if(l.pubID!=null){this.pubID=this.stringify.dtdPubID(l.pubID)}if(l.sysID!=null){this.sysID=this.stringify.dtdSysID(l.sysID)}if(l.nData!=null){this.nData=this.stringify.dtdNData(l.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});XMLDTDEntity.prototype.toString=function(r){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(r))};return XMLDTDEntity}(l)}).call(this)},27944:function(r,i,s){(function(){var i,a,l,extend=function(r,i){for(var s in i){if(c.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;l=s(80596);i=s(686);r.exports=a=function(r){extend(XMLDTDNotation,r);function XMLDTDNotation(r,s,a){XMLDTDNotation.__super__.constructor.call(this,r);if(s==null){throw new Error("Missing DTD notation name. "+this.debugInfo(s))}if(!a.pubID&&!a.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(s))}this.name=this.stringify.name(s);this.type=i.NotationDeclaration;if(a.pubID!=null){this.pubID=this.stringify.dtdPubID(a.pubID)}if(a.sysID!=null){this.sysID=this.stringify.dtdSysID(a.sysID)}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});XMLDTDNotation.prototype.toString=function(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))};return XMLDTDNotation}(l)}).call(this)},6318:function(r,i,s){(function(){var i,a,l,c,extend=function(r,i){for(var s in i){if(p.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},p={}.hasOwnProperty;c=s(43208).isObject;l=s(80596);i=s(686);r.exports=a=function(r){extend(XMLDeclaration,r);function XMLDeclaration(r,s,a,l){var p;XMLDeclaration.__super__.constructor.call(this,r);if(c(s)){p=s,s=p.version,a=p.encoding,l=p.standalone}if(!s){s="1.0"}this.type=i.Declaration;this.version=this.stringify.xmlVersion(s);if(a!=null){this.encoding=this.stringify.xmlEncoding(a)}if(l!=null){this.standalone=this.stringify.xmlStandalone(l)}}XMLDeclaration.prototype.toString=function(r){return this.options.writer.declaration(this,this.options.writer.filterOptions(r))};return XMLDeclaration}(l)}).call(this)},43808:function(r,i,s){(function(){var i,a,l,c,p,d,u,A,h,extend=function(r,i){for(var s in i){if(g.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},g={}.hasOwnProperty;h=s(43208).isObject;A=s(80596);i=s(686);a=s(1325);c=s(87969);l=s(76017);p=s(27944);u=s(11933);r.exports=d=function(r){extend(XMLDocType,r);function XMLDocType(r,s,a){var l,c,p,d,u,A;XMLDocType.__super__.constructor.call(this,r);this.type=i.DocType;if(r.children){d=r.children;for(c=0,p=d.length;c=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(r){var s,l,c,p;if(!r.isOpen){if(!this.root&&this.currentLevel===0&&r.type===i.Element){this.root=r}l="";if(r.type===i.Element){this.writerOptions.state=a.OpenTag;l=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<"+r.name;p=r.attribs;for(c in p){if(!_.call(p,c))continue;s=p[c];l+=this.writer.attribute(s,this.writerOptions,this.currentLevel)}l+=(r.children?">":"/>")+this.writer.endline(r,this.writerOptions,this.currentLevel);this.writerOptions.state=a.InsideTag}else{this.writerOptions.state=a.OpenTag;l=this.writer.indent(r,this.writerOptions,this.currentLevel)+""}l+=this.writer.endline(r,this.writerOptions,this.currentLevel)}this.onData(l,this.currentLevel);return r.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(r){var s;if(!r.isClosed){s="";this.writerOptions.state=a.CloseTag;if(r.type===i.Element){s=this.writer.indent(r,this.writerOptions,this.currentLevel)+""+this.writer.endline(r,this.writerOptions,this.currentLevel)}else{s=this.writer.indent(r,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(r,this.writerOptions,this.currentLevel)}this.writerOptions.state=a.None;this.onData(s,this.currentLevel);return r.isClosed=true}};XMLDocumentCB.prototype.onData=function(r,i){this.documentStarted=true;return this.onDataCallback(r,i+1)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.debugInfo=function(r){if(r==null){return""}else{return"node: <"+r+">"}};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(r,i,s){return this.node(r,i,s)};XMLDocumentCB.prototype.txt=function(r){return this.text(r)};XMLDocumentCB.prototype.dat=function(r){return this.cdata(r)};XMLDocumentCB.prototype.com=function(r){return this.comment(r)};XMLDocumentCB.prototype.ins=function(r,i){return this.instruction(r,i)};XMLDocumentCB.prototype.dec=function(r,i,s){return this.declaration(r,i,s)};XMLDocumentCB.prototype.dtd=function(r,i,s){return this.doctype(r,i,s)};XMLDocumentCB.prototype.e=function(r,i,s){return this.element(r,i,s)};XMLDocumentCB.prototype.n=function(r,i,s){return this.node(r,i,s)};XMLDocumentCB.prototype.t=function(r){return this.text(r)};XMLDocumentCB.prototype.d=function(r){return this.cdata(r)};XMLDocumentCB.prototype.c=function(r){return this.comment(r)};XMLDocumentCB.prototype.r=function(r){return this.raw(r)};XMLDocumentCB.prototype.i=function(r,i){return this.instruction(r,i)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode.type===i.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode.type===i.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(r,i){return this.entity(r,i)};XMLDocumentCB.prototype.pent=function(r,i){return this.pEntity(r,i)};XMLDocumentCB.prototype.not=function(r,i){return this.notation(r,i)};return XMLDocumentCB}()}).call(this)},70447:function(r,i,s){(function(){var i,a,l,extend=function(r,i){for(var s in i){if(c.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},c={}.hasOwnProperty;l=s(80596);i=s(686);r.exports=a=function(r){extend(XMLDummy,r);function XMLDummy(r){XMLDummy.__super__.constructor.call(this,r);this.type=i.Dummy}XMLDummy.prototype.clone=function(){return Object.create(this)};XMLDummy.prototype.toString=function(r){return""};return XMLDummy}(l)}).call(this)},3605:function(r,i,s){(function(){var i,a,l,c,p,d,u,A,h,extend=function(r,i){for(var s in i){if(g.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},g={}.hasOwnProperty;h=s(43208),A=h.isObject,u=h.isFunction,d=h.getValue;p=s(80596);i=s(686);a=s(94294);c=s(11933);r.exports=l=function(r){extend(XMLElement,r);function XMLElement(r,s,a){var l,c,p,d;XMLElement.__super__.constructor.call(this,r);if(s==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(s);this.type=i.Element;this.attribs={};this.schemaTypeInfo=null;if(a!=null){this.attribute(a)}if(r.type===i.Document){this.isRoot=true;this.documentObject=r;r.rootObject=this;if(r.children){d=r.children;for(c=0,p=d.length;c=a;i=0<=a?++s:--s){if(!this.attribs[i].isEqualNode(r.attribs[i])){return false}}return true};return XMLElement}(p)}).call(this)},11933:function(r){(function(){var i;r.exports=i=function(){function XMLNamedNodeMap(r){this.nodes=r}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null};XMLNamedNodeMap.prototype.getNamedItem=function(r){return this.nodes[r]};XMLNamedNodeMap.prototype.setNamedItem=function(r){var i;i=this.nodes[r.nodeName];this.nodes[r.nodeName]=r;return i||null};XMLNamedNodeMap.prototype.removeNamedItem=function(r){var i;i=this.nodes[r];delete this.nodes[r];return i||null};XMLNamedNodeMap.prototype.item=function(r){return this.nodes[Object.keys(this.nodes)[r]]||null};XMLNamedNodeMap.prototype.getNamedItemNS=function(r,i){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.setNamedItemNS=function(r){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.removeNamedItemNS=function(r,i){throw new Error("This DOM method is not implemented.")};return XMLNamedNodeMap}()}).call(this)},80596:function(r,i,s){(function(){var i,a,l,c,p,d,u,A,h,g,y,b,C,v,B,w,I,S,Q,x={}.hasOwnProperty;Q=s(43208),S=Q.isObject,I=Q.isFunction,w=Q.isEmpty,B=Q.getValue;A=null;l=null;c=null;p=null;d=null;C=null;v=null;b=null;u=null;a=null;y=null;h=null;i=null;r.exports=g=function(){function XMLNode(r){this.parent=r;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!A){A=s(3605);l=s(67723);c=s(60746);p=s(6318);d=s(43808);C=s(81285);v=s(39209);b=s(24655);u=s(70447);a=s(686);y=s(2131);h=s(11933);i=s(94038)}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new y(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var r;r=this.parent.children.indexOf(this);return this.parent.children[r-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var r;r=this.parent.children.indexOf(this);return this.parent.children[r+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var r,i,s,l,c;if(this.nodeType===a.Element||this.nodeType===a.DocumentFragment){c="";l=this.children;for(i=0,s=l.length;i"}else if(!((s=this.parent)!=null?s.name:void 0)){return"node: <"+r+">"}else{return"node: <"+r+">, parent: <"+this.parent.name+">"}};XMLNode.prototype.ele=function(r,i,s){return this.element(r,i,s)};XMLNode.prototype.nod=function(r,i,s){return this.node(r,i,s)};XMLNode.prototype.txt=function(r){return this.text(r)};XMLNode.prototype.dat=function(r){return this.cdata(r)};XMLNode.prototype.com=function(r){return this.comment(r)};XMLNode.prototype.ins=function(r,i){return this.instruction(r,i)};XMLNode.prototype.doc=function(){return this.document()};XMLNode.prototype.dec=function(r,i,s){return this.declaration(r,i,s)};XMLNode.prototype.e=function(r,i,s){return this.element(r,i,s)};XMLNode.prototype.n=function(r,i,s){return this.node(r,i,s)};XMLNode.prototype.t=function(r){return this.text(r)};XMLNode.prototype.d=function(r){return this.cdata(r)};XMLNode.prototype.c=function(r){return this.comment(r)};XMLNode.prototype.r=function(r){return this.raw(r)};XMLNode.prototype.i=function(r,i){return this.instruction(r,i)};XMLNode.prototype.u=function(){return this.up()};XMLNode.prototype.importXMLBuilder=function(r){return this.importDocument(r)};XMLNode.prototype.replaceChild=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.removeChild=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.appendChild=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.hasChildNodes=function(){return this.children.length!==0};XMLNode.prototype.cloneNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isSupported=function(r,i){return true};XMLNode.prototype.hasAttributes=function(){return this.attribs.length!==0};XMLNode.prototype.compareDocumentPosition=function(r){var s,a;s=this;if(s===r){return 0}else if(this.document()!==r.document()){a=i.Disconnected|i.ImplementationSpecific;if(Math.random()<.5){a|=i.Preceding}else{a|=i.Following}return a}else if(s.isAncestor(r)){return i.Contains|i.Preceding}else if(s.isDescendant(r)){return i.Contains|i.Following}else if(s.isPreceding(r)){return i.Preceding}else{return i.Following}};XMLNode.prototype.isSameNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupPrefix=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isDefaultNamespace=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupNamespaceURI=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isEqualNode=function(r){var i,s,a;if(r.nodeType!==this.nodeType){return false}if(r.children.length!==this.children.length){return false}for(i=s=0,a=this.children.length-1;0<=a?s<=a:s>=a;i=0<=a?++s:--s){if(!this.children[i].isEqualNode(r.children[i])){return false}}return true};XMLNode.prototype.getFeature=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.setUserData=function(r,i,s){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.getUserData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.contains=function(r){if(!r){return false}return r===this||this.isDescendant(r)};XMLNode.prototype.isDescendant=function(r){var i,s,a,l,c;c=this.children;for(a=0,l=c.length;as}};XMLNode.prototype.treePosition=function(r){var i,s;s=0;i=false;this.foreachTreeNode(this.document(),(function(a){s++;if(!i&&a===r){return i=true}}));if(i){return s}else{return-1}};XMLNode.prototype.foreachTreeNode=function(r,i){var s,a,l,c,p;r||(r=this.document());c=r.children;for(a=0,l=c.length;a0){this.stream.write(" [");this.stream.write(this.endline(r,i,s));i.state=a.InsideTag;d=r.children;for(c=0,p=d.length;c");this.stream.write(this.endline(r,i,s));i.state=a.None;return this.closeNode(r,i,s)};XMLStreamWriter.prototype.element=function(r,s,l){var c,d,u,A,h,g,y,b,C,v;l||(l=0);this.openNode(r,s,l);s.state=a.OpenTag;this.stream.write(this.indent(r,s,l)+"<"+r.name);C=r.attribs;for(y in C){if(!p.call(C,y))continue;c=C[y];this.attribute(c,s,l)}u=r.children.length;A=u===0?null:r.children[0];if(u===0||r.children.every((function(r){return(r.type===i.Text||r.type===i.Raw)&&r.value===""}))){if(s.allowEmpty){this.stream.write(">");s.state=a.CloseTag;this.stream.write("")}else{s.state=a.CloseTag;this.stream.write(s.spaceBeforeSlash+"/>")}}else if(s.pretty&&u===1&&(A.type===i.Text||A.type===i.Raw)&&A.value!=null){this.stream.write(">");s.state=a.InsideTag;s.suppressPrettyCount++;b=true;this.writeChildNode(A,s,l+1);s.suppressPrettyCount--;b=false;s.state=a.CloseTag;this.stream.write("")}else{this.stream.write(">"+this.endline(r,s,l));s.state=a.InsideTag;v=r.children;for(h=0,g=v.length;h")}this.stream.write(this.endline(r,s,l));s.state=a.None;return this.closeNode(r,s,l)};XMLStreamWriter.prototype.processingInstruction=function(r,i,s){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,r,i,s))};XMLStreamWriter.prototype.raw=function(r,i,s){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,r,i,s))};XMLStreamWriter.prototype.text=function(r,i,s){return this.stream.write(XMLStreamWriter.__super__.text.call(this,r,i,s))};XMLStreamWriter.prototype.dtdAttList=function(r,i,s){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,r,i,s))};XMLStreamWriter.prototype.dtdElement=function(r,i,s){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,r,i,s))};XMLStreamWriter.prototype.dtdEntity=function(r,i,s){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,r,i,s))};XMLStreamWriter.prototype.dtdNotation=function(r,i,s){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,r,i,s))};return XMLStreamWriter}(c)}).call(this)},45134:function(r,i,s){(function(){var i,a,extend=function(r,i){for(var s in i){if(l.call(i,s))r[s]=i[s]}function ctor(){this.constructor=r}ctor.prototype=i.prototype;r.prototype=new ctor;r.__super__=i.prototype;return r},l={}.hasOwnProperty;a=s(88480);r.exports=i=function(r){extend(XMLStringWriter,r);function XMLStringWriter(r){XMLStringWriter.__super__.constructor.call(this,r)}XMLStringWriter.prototype.document=function(r,i){var s,a,l,c,p;i=this.filterOptions(i);c="";p=r.children;for(a=0,l=p.length;a","]]]]>");return this.assertLegalChar(r)};XMLStringifier.prototype.comment=function(r){if(this.options.noValidation){return r}r=""+r||"";if(r.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.raw=function(r){if(this.options.noValidation){return r}return""+r||""};XMLStringifier.prototype.attValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(this.attEscape(r=""+r||""))};XMLStringifier.prototype.insTarget=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.insValue=function(r){if(this.options.noValidation){return r}r=""+r||"";if(r.match(/\?>/)){throw new Error("Invalid processing instruction value: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.xmlVersion=function(r){if(this.options.noValidation){return r}r=""+r||"";if(!r.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+r)}return r};XMLStringifier.prototype.xmlEncoding=function(r){if(this.options.noValidation){return r}r=""+r||"";if(!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.xmlStandalone=function(r){if(this.options.noValidation){return r}if(r){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdSysID=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdElementValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdAttType=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdAttDefault=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdEntityValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdNData=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(r){var i,s;if(this.options.noValidation){return r}i="";if(this.options.version==="1.0"){i=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(s=r.match(i)){throw new Error("Invalid character in string: "+r+" at index "+s.index)}}else if(this.options.version==="1.1"){i=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(s=r.match(i)){throw new Error("Invalid character in string: "+r+" at index "+s.index)}}return r};XMLStringifier.prototype.assertLegalName=function(r){var i;if(this.options.noValidation){return r}this.assertLegalChar(r);i=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!r.match(i)){throw new Error("Invalid character in name")}return r};XMLStringifier.prototype.textEscape=function(r){var i;if(this.options.noValidation){return r}i=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return r.replace(i,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(r){var i;if(this.options.noValidation){return r}i=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return r.replace(i,"&").replace(/0){return new Array(a).join(i.indent)}}return""};XMLWriterBase.prototype.endline=function(r,i,s){if(!i.pretty||i.suppressPrettyCount){return""}else{return i.newline}};XMLWriterBase.prototype.attribute=function(r,i,s){var a;this.openAttribute(r,i,s);a=" "+r.name+'="'+r.value+'"';this.closeAttribute(r,i,s);return a};XMLWriterBase.prototype.cdata=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+""+this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.comment=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+"\x3c!-- ";i.state=a.InsideTag;l+=r.value;i.state=a.CloseTag;l+=" --\x3e"+this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.declaration=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+"";l+=this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.docType=function(r,i,s){var l,c,p,d,u;s||(s=0);this.openNode(r,i,s);i.state=a.OpenTag;d=this.indent(r,i,s);d+="0){d+=" [";d+=this.endline(r,i,s);i.state=a.InsideTag;u=r.children;for(c=0,p=u.length;c";d+=this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return d};XMLWriterBase.prototype.element=function(r,s,l){var c,p,d,u,A,h,g,y,b,C,v,B,w,I;l||(l=0);C=false;v="";this.openNode(r,s,l);s.state=a.OpenTag;v+=this.indent(r,s,l)+"<"+r.name;B=r.attribs;for(b in B){if(!S.call(B,b))continue;c=B[b];v+=this.attribute(c,s,l)}d=r.children.length;u=d===0?null:r.children[0];if(d===0||r.children.every((function(r){return(r.type===i.Text||r.type===i.Raw)&&r.value===""}))){if(s.allowEmpty){v+=">";s.state=a.CloseTag;v+=""+this.endline(r,s,l)}else{s.state=a.CloseTag;v+=s.spaceBeforeSlash+"/>"+this.endline(r,s,l)}}else if(s.pretty&&d===1&&(u.type===i.Text||u.type===i.Raw)&&u.value!=null){v+=">";s.state=a.InsideTag;s.suppressPrettyCount++;C=true;v+=this.writeChildNode(u,s,l+1);s.suppressPrettyCount--;C=false;s.state=a.CloseTag;v+=""+this.endline(r,s,l)}else{if(s.dontPrettyTextNodes){w=r.children;for(A=0,g=w.length;A"+this.endline(r,s,l);s.state=a.InsideTag;I=r.children;for(h=0,y=I.length;h";if(C){s.suppressPrettyCount--}v+=this.endline(r,s,l);s.state=a.None}this.closeNode(r,s,l);return v};XMLWriterBase.prototype.writeChildNode=function(r,s,a){switch(r.type){case i.CData:return this.cdata(r,s,a);case i.Comment:return this.comment(r,s,a);case i.Element:return this.element(r,s,a);case i.Raw:return this.raw(r,s,a);case i.Text:return this.text(r,s,a);case i.ProcessingInstruction:return this.processingInstruction(r,s,a);case i.Dummy:return"";case i.Declaration:return this.declaration(r,s,a);case i.DocType:return this.docType(r,s,a);case i.AttributeDeclaration:return this.dtdAttList(r,s,a);case i.ElementDeclaration:return this.dtdElement(r,s,a);case i.EntityDeclaration:return this.dtdEntity(r,s,a);case i.NotationDeclaration:return this.dtdNotation(r,s,a);default:throw new Error("Unknown XML node type: "+r.constructor.name)}};XMLWriterBase.prototype.processingInstruction=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+"";l+=this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.raw=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s);i.state=a.InsideTag;l+=r.value;i.state=a.CloseTag;l+=this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.text=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s);i.state=a.InsideTag;l+=r.value;i.state=a.CloseTag;l+=this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.dtdAttList=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+""+this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.dtdElement=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+""+this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.dtdEntity=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+""+this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.dtdNotation=function(r,i,s){var l;this.openNode(r,i,s);i.state=a.OpenTag;l=this.indent(r,i,s)+""+this.endline(r,i,s);i.state=a.None;this.closeNode(r,i,s);return l};XMLWriterBase.prototype.openNode=function(r,i,s){};XMLWriterBase.prototype.closeNode=function(r,i,s){};XMLWriterBase.prototype.openAttribute=function(r,i,s){};XMLWriterBase.prototype.closeAttribute=function(r,i,s){};return XMLWriterBase}()}).call(this)},63595:function(r,i,s){(function(){var i,a,l,c,p,d,u,A,h,g;g=s(43208),A=g.assign,h=g.isFunction;l=s(44400);c=s(80803);p=s(36064);u=s(45134);d=s(45126);i=s(686);a=s(44955);r.exports.create=function(r,i,s,a){var l,p;if(r==null){throw new Error("Root element needs a name.")}a=A({},i,s,a);l=new c(a);p=l.element(r);if(!a.headless){l.declaration(a);if(a.pubID!=null||a.sysID!=null){l.dtd(a)}}return p};r.exports.begin=function(r,i,s){var a;if(h(r)){a=[r,i],i=a[0],s=a[1];r={}}if(i){return new p(r,i,s)}else{return new c(r)}};r.exports.stringWriter=function(r){return new u(r)};r.exports.streamWriter=function(r,i){return new d(r,i)};r.exports.implementation=new l;r.exports.nodeType=i;r.exports.writerState=a}).call(this)},66060:(r,i,s)=>{ /** * ZipStream * @@ -88,5 +90,5 @@ r.exports=function(r,i){if(typeof r!=="string"){throw new TypeError("expected pa * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} * @copyright (c) 2014 Chris Talkington, contributors. */ -var s=a(3837).inherits;var l=a(9738).ZipArchiveOutputStream;var p=a(9738).ZipArchiveEntry;var c=a(6757);var d=r.exports=function(r){if(!(this instanceof d)){return new d(r)}r=this.options=r||{};r.zlib=r.zlib||{};l.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};s(d,l);d.prototype._normalizeFileData=function(r){r=c.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var i=r.type==="directory";var a=r.type==="symlink";if(r.name){r.name=c.sanitizePath(r.name);if(!a&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(i||a){r.store=true}r.date=c.dateify(r.date);return r};d.prototype.entry=function(r,i,a){if(typeof a!=="function"){a=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){a(new Error(i.type+" entries not currently supported"));return}if(typeof i.name!=="string"||i.name.length===0){a(new Error("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeof i.linkname!=="string"){a(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var s=new p(i.name);s.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){s.setName(i.name,true)}if(i.store){s.setMethod(0)}if(i.comment.length>0){s.setComment(i.comment)}if(i.type==="symlink"&&typeof i.mode!=="number"){i.mode=40960}if(typeof i.mode==="number"){if(i.type==="symlink"){i.mode|=40960}s.setUnixMode(i.mode)}if(i.type==="symlink"&&typeof i.linkname==="string"){r=Buffer.from(i.linkname)}return l.prototype.entry.call(this,s,r,a)};d.prototype.finalize=function(){this.finish()}},2127:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};var c=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.capturePolicy=void 0;const d=c(a(3277));const u=a(1017);const h=a(3292);const g=p(a(9093));const y=a(1767);async function capturePolicy(){const r=g.getBooleanInput("auto-capture");if(!r){g.debug("auto-capture was disabled");return Promise.resolve()}const i=g.getInput("output-file");const a=(0,u.basename)(i);g.debug(`Start shutting down iamlive`);await shutdownIamLive();g.debug(`Finished shutting down iamlive`);g.debug(`Checking policyFile ${i}`);if(!await fileExists(i)){g.debug("File not found.");throw new Error(`PolicyFile ${i} not found.`)}if(g.isDebug()){const r=await(0,h.readFile)(i);g.debug(r.toString())}return uploadPolicy(a,i,0)}i.capturePolicy=capturePolicy;async function shutdownIamLive(){const r=await(0,d.default)("name","iamlive",true);if(r.length==0){return Promise.resolve()}g.debug("shutting down iamlive…");const i=r[0];g.debug(`pid: ${i.pid}, name: ${i.name}`);process.kill(r[0].pid,"SIGTERM");await sleep(1e3);await shutdownIamLive()}function sleep(r){return new Promise((i=>setTimeout(i,r)))}async function fileExists(r){try{await(0,h.open)(r,"r");return true}catch(r){return false}}async function uploadPolicy(r,i,a){g.info(`Uploading ${i} as ${r}`);const s=new y.DefaultArtifactClient;const l=".";const p={continueOnError:false,retentionDays:a};const c=await s.uploadArtifact(r,[i],l,p);g.debug(`Policy upload result: ${JSON.stringify(c)}`);return c}},2707:module=>{module.exports=eval("require")("encoding")},9491:r=>{"use strict";r.exports=require("assert")},4300:r=>{"use strict";r.exports=require("buffer")},2081:r=>{"use strict";r.exports=require("child_process")},2057:r=>{"use strict";r.exports=require("constants")},6113:r=>{"use strict";r.exports=require("crypto")},2361:r=>{"use strict";r.exports=require("events")},7147:r=>{"use strict";r.exports=require("fs")},3292:r=>{"use strict";r.exports=require("fs/promises")},3685:r=>{"use strict";r.exports=require("http")},5687:r=>{"use strict";r.exports=require("https")},1808:r=>{"use strict";r.exports=require("net")},2037:r=>{"use strict";r.exports=require("os")},1017:r=>{"use strict";r.exports=require("path")},5477:r=>{"use strict";r.exports=require("punycode")},3477:r=>{"use strict";r.exports=require("querystring")},2781:r=>{"use strict";r.exports=require("stream")},1576:r=>{"use strict";r.exports=require("string_decoder")},9512:r=>{"use strict";r.exports=require("timers")},4404:r=>{"use strict";r.exports=require("tls")},7310:r=>{"use strict";r.exports=require("url")},3837:r=>{"use strict";r.exports=require("util")},9796:r=>{"use strict";r.exports=require("zlib")},4277:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Glob=void 0;const s=a(9879);const l=a(9647);const p=a(7310);const c=a(6089);const d=a(115);const u=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(r,i){if(!i)throw new TypeError("glob options required");this.withFileTypes=!!i.withFileTypes;this.signal=i.signal;this.follow=!!i.follow;this.dot=!!i.dot;this.dotRelative=!!i.dotRelative;this.nodir=!!i.nodir;this.mark=!!i.mark;if(!i.cwd){this.cwd=""}else if(i.cwd instanceof URL||i.cwd.startsWith("file://")){i.cwd=(0,p.fileURLToPath)(i.cwd)}this.cwd=i.cwd||"";this.root=i.root;this.magicalBraces=!!i.magicalBraces;this.nobrace=!!i.nobrace;this.noext=!!i.noext;this.realpath=!!i.realpath;this.absolute=i.absolute;this.noglobstar=!!i.noglobstar;this.matchBase=!!i.matchBase;this.maxDepth=typeof i.maxDepth==="number"?i.maxDepth:Infinity;this.stat=!!i.stat;this.ignore=i.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof r==="string"){r=[r]}this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===false;if(this.windowsPathsNoEscape){r=r.map((r=>r.replace(/\\/g,"/")))}if(this.matchBase){if(i.noglobstar){throw new TypeError("base matching requires globstar")}r=r.map((r=>r.includes("/")?r:`./**/${r}`))}this.pattern=r;this.platform=i.platform||u;this.opts={...i,platform:this.platform};if(i.scurry){this.scurry=i.scurry;if(i.nocase!==undefined&&i.nocase!==i.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const r=i.platform==="win32"?l.PathScurryWin32:i.platform==="darwin"?l.PathScurryDarwin:i.platform?l.PathScurryPosix:l.PathScurry;this.scurry=new r(this.cwd,{nocase:i.nocase,fs:i.fs})}this.nocase=this.scurry.nocase;const a=this.platform==="darwin"||this.platform==="win32";const d={...i,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:a,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const h=this.pattern.map((r=>new s.Minimatch(r,d)));const[g,y]=h.reduce(((r,i)=>{r[0].push(...i.set);r[1].push(...i.globParts);return r}),[[],[]]);this.patterns=g.map(((r,i)=>{const a=y[i];if(!a)throw new Error("invalid pattern object");return new c.Pattern(r,a,0,this.platform)}))}async walk(){return[...await new d.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new d.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new d.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new d.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}i.Glob=Glob},204:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.hasMagic=void 0;const s=a(9879);const hasMagic=(r,i={})=>{if(!Array.isArray(r)){r=[r]}for(const a of r){if(new s.Minimatch(a,i).hasMagic())return true}return false};i.hasMagic=hasMagic},5341:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Ignore=void 0;const s=a(9879);const l=a(6089);const p=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;constructor(r,{nobrace:i,nocase:a,noext:c,noglobstar:d,platform:u=p}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];const h={dot:true,nobrace:i,nocase:a,noext:c,noglobstar:d,optimizationLevel:2,platform:u,nocomment:true,nonegate:true};for(const i of r){const r=new s.Minimatch(i,h);for(let i=0;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.glob=i.hasMagic=i.Glob=i.unescape=i.escape=i.sync=i.iterate=i.iterateSync=i.stream=i.streamSync=i.globIterate=i.globIterateSync=i.globSync=i.globStream=i.globStreamSync=void 0;const s=a(9879);const l=a(4277);const p=a(204);function globStreamSync(r,i={}){return new l.Glob(r,i).streamSync()}i.globStreamSync=globStreamSync;function globStream(r,i={}){return new l.Glob(r,i).stream()}i.globStream=globStream;function globSync(r,i={}){return new l.Glob(r,i).walkSync()}i.globSync=globSync;async function glob_(r,i={}){return new l.Glob(r,i).walk()}function globIterateSync(r,i={}){return new l.Glob(r,i).iterateSync()}i.globIterateSync=globIterateSync;function globIterate(r,i={}){return new l.Glob(r,i).iterate()}i.globIterate=globIterate;i.streamSync=globStreamSync;i.stream=Object.assign(globStream,{sync:globStreamSync});i.iterateSync=globIterateSync;i.iterate=Object.assign(globIterate,{sync:globIterateSync});i.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});var c=a(9879);Object.defineProperty(i,"escape",{enumerable:true,get:function(){return c.escape}});Object.defineProperty(i,"unescape",{enumerable:true,get:function(){return c.unescape}});var d=a(4277);Object.defineProperty(i,"Glob",{enumerable:true,get:function(){return d.Glob}});var u=a(204);Object.defineProperty(i,"hasMagic",{enumerable:true,get:function(){return u.hasMagic}});i.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:i.sync,globStream:globStream,stream:i.stream,globStreamSync:globStreamSync,streamSync:i.streamSync,globIterate:globIterate,iterate:i.iterate,globIterateSync:globIterateSync,iterateSync:i.iterateSync,Glob:l.Glob,hasMagic:p.hasMagic,escape:s.escape,unescape:s.unescape});i.glob.glob=i.glob},6089:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Pattern=void 0;const s=a(9879);const isPatternList=r=>r.length>=1;const isGlobList=r=>r.length>=1;class Pattern{#e;#t;#r;length;#i;#n;#a;#s;#o;#l;#p=true;constructor(r,i,a,s){if(!isPatternList(r)){throw new TypeError("empty pattern list")}if(!isGlobList(i)){throw new TypeError("empty glob list")}if(i.length!==r.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=r.length;if(a<0||a>=this.length){throw new TypeError("index out of range")}this.#e=r;this.#t=i;this.#r=a;this.#i=s;if(this.#r===0){if(this.isUNC()){const[r,i,a,s,...l]=this.#e;const[p,c,d,u,...h]=this.#t;if(l[0]===""){l.shift();h.shift()}const g=[r,i,a,s,""].join("/");const y=[p,c,d,u,""].join("/");this.#e=[g,...l];this.#t=[y,...h];this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){const[r,...i]=this.#e;const[a,...s]=this.#t;if(i[0]===""){i.shift();s.shift()}const l=r+"/";const p=a+"/";this.#e=[l,...i];this.#t=[p,...s];this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return typeof this.#e[this.#r]==="string"}isGlobstar(){return this.#e[this.#r]===s.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#a=this.#a||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){if(this.#n!==undefined)return this.#n;if(!this.hasMore())return this.#n=null;this.#n=new Pattern(this.#e,this.#t,this.#r+1,this.#i);this.#n.#l=this.#l;this.#n.#o=this.#o;this.#n.#s=this.#s;return this.#n}isUNC(){const r=this.#e;return this.#o!==undefined?this.#o:this.#o=this.#i==="win32"&&this.#r===0&&r[0]===""&&r[1]===""&&typeof r[2]==="string"&&!!r[2]&&typeof r[3]==="string"&&!!r[3]}isDrive(){const r=this.#e;return this.#s!==undefined?this.#s:this.#s=this.#i==="win32"&&this.#r===0&&this.length>1&&typeof r[0]==="string"&&/^[a-z]:$/i.test(r[0])}isAbsolute(){const r=this.#e;return this.#l!==undefined?this.#l:this.#l=r[0]===""&&r.length>1||this.isDrive()||this.isUNC()}root(){const r=this.#e[0];return typeof r==="string"&&this.isAbsolute()&&this.#r===0?r:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){if(this.#r===0||!this.isGlobstar()||!this.#p)return false;this.#p=false;return true}}i.Pattern=Pattern},4868:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Processor=i.SubWalks=i.MatchRecord=i.HasWalkedCache=void 0;const s=a(9879);class HasWalkedCache{store;constructor(r=new Map){this.store=r}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(r,i){return this.store.get(r.fullpath())?.has(i.globString())}storeWalked(r,i){const a=r.fullpath();const s=this.store.get(a);if(s)s.add(i.globString());else this.store.set(a,new Set([i.globString()]))}}i.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(r,i,a){const s=(i?2:0)|(a?1:0);const l=this.store.get(r);this.store.set(r,l===undefined?s:s&l)}entries(){return[...this.store.entries()].map((([r,i])=>[r,!!(i&2),!!(i&1)]))}}i.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(r,i){if(!r.canReaddir()){return}const a=this.store.get(r);if(a){if(!a.find((r=>r.globString()===i.globString()))){a.push(i)}}else this.store.set(r,[i])}get(r){const i=this.store.get(r);if(!i){throw new Error("attempting to walk unknown path")}return i}entries(){return this.keys().map((r=>[r,this.store.get(r)]))}keys(){return[...this.store.keys()].filter((r=>r.canReaddir()))}}i.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(r,i){this.opts=r;this.follow=!!r.follow;this.dot=!!r.dot;this.hasWalkedCache=i?i.copy():new HasWalkedCache}processPatterns(r,i){this.patterns=i;const a=i.map((i=>[r,i]));for(let[r,i]of a){this.hasWalkedCache.storeWalked(r,i);const a=i.root();const l=i.isAbsolute()&&this.opts.absolute!==false;if(a){r=r.resolve(a==="/"&&this.opts.root!==undefined?this.opts.root:a);const s=i.rest();if(!s){this.matches.add(r,true,false);continue}else{i=s}}if(r.isENOENT())continue;let p;let c;let d=false;while(typeof(p=i.pattern())==="string"&&(c=i.rest())){const a=r.resolve(p);r=a;i=c;d=true}p=i.pattern();c=i.rest();if(d){if(this.hasWalkedCache.hasWalked(r,i))continue;this.hasWalkedCache.storeWalked(r,i)}if(typeof p==="string"){const i=p===".."||p===""||p===".";this.matches.add(r.resolve(p),l,i);continue}else if(p===s.GLOBSTAR){if(!r.isSymbolicLink()||this.follow||i.checkFollowGlobstar()){this.subwalks.add(r,i)}const a=c?.pattern();const s=c?.rest();if(!c||(a===""||a===".")&&!s){this.matches.add(r,l,a===""||a===".")}else{if(a===".."){const i=r.parent||r;if(!s)this.matches.add(i,l,true);else if(!this.hasWalkedCache.hasWalked(i,s)){this.subwalks.add(i,s)}}}}else if(p instanceof RegExp){this.subwalks.add(r,i)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(r,i){const a=this.subwalks.get(r);const l=this.child();for(const r of i){for(const i of a){const a=i.isAbsolute();const p=i.pattern();const c=i.rest();if(p===s.GLOBSTAR){l.testGlobstar(r,i,c,a)}else if(p instanceof RegExp){l.testRegExp(r,p,c,a)}else{l.testString(r,p,c,a)}}}return l}testGlobstar(r,i,a,s){if(this.dot||!r.name.startsWith(".")){if(!i.hasMore()){this.matches.add(r,s,false)}if(r.canReaddir()){if(this.follow||!r.isSymbolicLink()){this.subwalks.add(r,i)}else if(r.isSymbolicLink()){if(a&&i.checkFollowGlobstar()){this.subwalks.add(r,a)}else if(i.markFollowGlobstar()){this.subwalks.add(r,i)}}}}if(a){const i=a.pattern();if(typeof i==="string"&&i!==".."&&i!==""&&i!=="."){this.testString(r,i,a.rest(),s)}else if(i===".."){const i=r.parent||r;this.subwalks.add(i,a)}else if(i instanceof RegExp){this.testRegExp(r,i,a.rest(),s)}}}testRegExp(r,i,a,s){if(!i.test(r.name))return;if(!a){this.matches.add(r,s,false)}else{this.subwalks.add(r,a)}}testString(r,i,a,s){if(!r.isNamed(i))return;if(!a){this.matches.add(r,s,false)}else{this.subwalks.add(r,a)}}}i.Processor=Processor},115:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.GlobStream=i.GlobWalker=i.GlobUtil=void 0;const s=a(3615);const l=a(5341);const p=a(4868);const makeIgnore=(r,i)=>typeof r==="string"?new l.Ignore([r],i):Array.isArray(r)?new l.Ignore(r,i):r;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#c=[];#d;#u;signal;maxDepth;constructor(r,i,a){this.patterns=r;this.path=i;this.opts=a;this.#u=!a.posix&&a.platform==="win32"?"\\":"/";if(a.ignore){this.#d=makeIgnore(a.ignore,a)}this.maxDepth=a.maxDepth||Infinity;if(a.signal){this.signal=a.signal;this.signal.addEventListener("abort",(()=>{this.#c.length=0}))}}#m(r){return this.seen.has(r)||!!this.#d?.ignored?.(r)}#f(r){return!!this.#d?.childrenIgnored?.(r)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let r=undefined;while(!this.paused&&(r=this.#c.shift())){r()}}onResume(r){if(this.signal?.aborted)return;if(!this.paused){r()}else{this.#c.push(r)}}async matchCheck(r,i){if(i&&this.opts.nodir)return undefined;let a;if(this.opts.realpath){a=r.realpathCached()||await r.realpath();if(!a)return undefined;r=a}const s=r.isUnknown()||this.opts.stat;const l=s?await r.lstat():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=await l.realpath();if(r&&(r.isUnknown()||this.opts.stat)){await r.lstat()}}return this.matchCheckTest(l,i)}matchCheckTest(r,i){return r&&(this.maxDepth===Infinity||r.depth()<=this.maxDepth)&&(!i||r.canReaddir())&&(!this.opts.nodir||!r.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!r.isSymbolicLink()||!r.realpathCached()?.isDirectory())&&!this.#m(r)?r:undefined}matchCheckSync(r,i){if(i&&this.opts.nodir)return undefined;let a;if(this.opts.realpath){a=r.realpathCached()||r.realpathSync();if(!a)return undefined;r=a}const s=r.isUnknown()||this.opts.stat;const l=s?r.lstatSync():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=l.realpathSync();if(r&&(r?.isUnknown()||this.opts.stat)){r.lstatSync()}}return this.matchCheckTest(l,i)}matchFinish(r,i){if(this.#m(r))return;const a=this.opts.absolute===undefined?i:this.opts.absolute;this.seen.add(r);const s=this.opts.mark&&r.isDirectory()?this.#u:"";if(this.opts.withFileTypes){this.matchEmit(r)}else if(a){const i=this.opts.posix?r.fullpathPosix():r.fullpath();this.matchEmit(i+s)}else{const i=this.opts.posix?r.relativePosix():r.relative();const a=this.opts.dotRelative&&!i.startsWith(".."+this.#u)?"."+this.#u:"";this.matchEmit(!i?"."+s:a+i+s)}}async match(r,i,a){const s=await this.matchCheck(r,a);if(s)this.matchFinish(s,i)}matchSync(r,i,a){const s=this.matchCheckSync(r,a);if(s)this.matchFinish(s,i)}walkCB(r,i,a){if(this.signal?.aborted)a();this.walkCB2(r,i,new p.Processor(this.opts),a)}walkCB2(r,i,a,s){if(this.#f(r))return s();if(this.signal?.aborted)s();if(this.paused){this.onResume((()=>this.walkCB2(r,i,a,s)));return}a.processPatterns(r,i);let l=1;const next=()=>{if(--l===0)s()};for(const[r,i,s]of a.matches.entries()){if(this.#m(r))continue;l++;this.match(r,i,s).then((()=>next()))}for(const r of a.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const i=r.readdirCached();if(r.calledReaddir())this.walkCB3(r,i,a,next);else{r.readdirCB(((i,s)=>this.walkCB3(r,s,a,next)),true)}}next()}walkCB3(r,i,a,s){a=a.filterEntries(r,i);let l=1;const next=()=>{if(--l===0)s()};for(const[r,i,s]of a.matches.entries()){if(this.#m(r))continue;l++;this.match(r,i,s).then((()=>next()))}for(const[r,i]of a.subwalks.entries()){l++;this.walkCB2(r,i,a.child(),next)}next()}walkCBSync(r,i,a){if(this.signal?.aborted)a();this.walkCB2Sync(r,i,new p.Processor(this.opts),a)}walkCB2Sync(r,i,a,s){if(this.#f(r))return s();if(this.signal?.aborted)s();if(this.paused){this.onResume((()=>this.walkCB2Sync(r,i,a,s)));return}a.processPatterns(r,i);let l=1;const next=()=>{if(--l===0)s()};for(const[r,i,s]of a.matches.entries()){if(this.#m(r))continue;this.matchSync(r,i,s)}for(const r of a.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const i=r.readdirSync();this.walkCB3Sync(r,i,a,next)}next()}walkCB3Sync(r,i,a,s){a=a.filterEntries(r,i);let l=1;const next=()=>{if(--l===0)s()};for(const[r,i,s]of a.matches.entries()){if(this.#m(r))continue;this.matchSync(r,i,s)}for(const[r,i]of a.subwalks.entries()){l++;this.walkCB2Sync(r,i,a.child(),next)}next()}}i.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches;constructor(r,i,a){super(r,i,a);this.matches=new Set}matchEmit(r){this.matches.add(r)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((r,i)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){i(this.signal.reason)}else{r(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}i.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(r,i,a){super(r,i,a);this.results=new s.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(r){this.results.write(r);if(!this.results.flowing)this.pause()}stream(){const r=this.path;if(r.isUnknown()){r.lstat().then((()=>{this.walkCB(r,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(r,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}i.GlobStream=GlobStream},1763:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.LRUCache=void 0;const a=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const s=new Set;const l=typeof process==="object"&&!!process?process:{};const emitWarning=(r,i,a,s)=>{typeof l.emitWarning==="function"?l.emitWarning(r,i,a,s):console.error(`[${a}] ${i}: ${r}`)};let p=globalThis.AbortController;let c=globalThis.AbortSignal;if(typeof p==="undefined"){c=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(r,i){this._onabort.push(i)}};p=class AbortController{constructor(){warnACPolyfill()}signal=new c;abort(r){if(this.signal.aborted)return;this.signal.reason=r;this.signal.aborted=true;for(const i of this.signal._onabort){i(r)}this.signal.onabort?.(r)}};let r=l.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!r)return;r=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=r=>!s.has(r);const d=Symbol("type");const isPosInt=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r);const getUintArray=r=>!isPosInt(r)?null:r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(r){super(r);this.fill(0)}}class Stack{heap;length;static#h=false;static create(r){const i=getUintArray(r);if(!i)return[];Stack.#h=true;const a=new Stack(r,i);Stack.#h=false;return a}constructor(r,i){if(!Stack.#h){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new i(r);this.length=0}push(r){this.heap[this.length++]=r}pop(){return this.heap[--this.length]}}class LRUCache{#g;#y;#b;#v;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#x;#S;#_;#E;#T;#N;#P;#O;#R;#C;#k;#A;#D;#I;#L;#B;#M;static unsafeExposeInternals(r){return{starts:r.#D,ttls:r.#I,sizes:r.#A,keyMap:r.#_,keyList:r.#E,valList:r.#T,next:r.#N,prev:r.#P,get head(){return r.#O},get tail(){return r.#R},free:r.#C,isBackgroundFetch:i=>r.#j(i),backgroundFetch:(i,a,s,l)=>r.#z(i,a,s,l),moveToTail:i=>r.#F(i),indexes:i=>r.#U(i),rindexes:i=>r.#q(i),isStale:i=>r.#H(i)}}get max(){return this.#g}get maxSize(){return this.#y}get calculatedSize(){return this.#S}get size(){return this.#x}get fetchMethod(){return this.#w}get dispose(){return this.#b}get disposeAfter(){return this.#v}constructor(r){const{max:i=0,ttl:a,ttlResolution:l=1,ttlAutopurge:p,updateAgeOnGet:c,updateAgeOnHas:d,allowStale:u,dispose:h,disposeAfter:g,noDisposeOnSet:y,noUpdateTTL:b,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:x,fetchMethod:S,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:T,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:P,ignoreFetchAbort:O}=r;if(i!==0&&!isPosInt(i)){throw new TypeError("max option must be a nonnegative integer")}const R=i?getUintArray(i):Array;if(!R){throw new Error("invalid max value: "+i)}this.#g=i;this.#y=v;this.maxEntrySize=w||this.#y;this.sizeCalculation=x;if(this.sizeCalculation){if(!this.#y&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(S!==undefined&&typeof S!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#w=S;this.#B=!!S;this.#_=new Map;this.#E=new Array(i).fill(undefined);this.#T=new Array(i).fill(undefined);this.#N=new R(i);this.#P=new R(i);this.#O=0;this.#R=0;this.#C=Stack.create(i);this.#x=0;this.#S=0;if(typeof h==="function"){this.#b=h}if(typeof g==="function"){this.#v=g;this.#k=[]}else{this.#v=undefined;this.#k=undefined}this.#L=!!this.#b;this.#M=!!this.#v;this.noDisposeOnSet=!!y;this.noUpdateTTL=!!b;this.noDeleteOnFetchRejection=!!_;this.allowStaleOnFetchRejection=!!N;this.allowStaleOnFetchAbort=!!P;this.ignoreFetchAbort=!!O;if(this.maxEntrySize!==0){if(this.#y!==0){if(!isPosInt(this.#y)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#V()}this.allowStale=!!u;this.noDeleteOnStaleGet=!!T;this.updateAgeOnGet=!!c;this.updateAgeOnHas=!!d;this.ttlResolution=isPosInt(l)||l===0?l:1;this.ttlAutopurge=!!p;this.ttl=a||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#G()}if(this.#g===0&&this.ttl===0&&this.#y===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#g&&!this.#y){const r="LRU_CACHE_UNBOUNDED";if(shouldWarn(r)){s.add(r);const i="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(i,"UnboundedCacheWarning",r,LRUCache)}}}getRemainingTTL(r){return this.#_.has(r)?Infinity:0}#G(){const r=new ZeroArray(this.#g);const i=new ZeroArray(this.#g);this.#I=r;this.#D=i;this.#W=(s,l,p=a.now())=>{i[s]=l!==0?p:0;r[s]=l;if(l!==0&&this.ttlAutopurge){const r=setTimeout((()=>{if(this.#H(s)){this.delete(this.#E[s])}}),l+1);if(r.unref){r.unref()}}};this.#$=s=>{i[s]=r[s]!==0?a.now():0};this.#X=(a,l)=>{if(r[l]){const p=r[l];const c=i[l];if(!p||!c)return;a.ttl=p;a.start=c;a.now=s||getNow();const d=a.now-c;a.remainingTTL=p-d}};let s=0;const getNow=()=>{const r=a.now();if(this.ttlResolution>0){s=r;const i=setTimeout((()=>s=0),this.ttlResolution);if(i.unref){i.unref()}}return r};this.getRemainingTTL=a=>{const l=this.#_.get(a);if(l===undefined){return 0}const p=r[l];const c=i[l];if(!p||!c){return Infinity}const d=(s||getNow())-c;return p-d};this.#H=a=>{const l=i[a];const p=r[a];return!!p&&!!l&&(s||getNow())-l>p}}#$=()=>{};#X=()=>{};#W=()=>{};#H=()=>false;#V(){const r=new ZeroArray(this.#g);this.#S=0;this.#A=r;this.#K=i=>{this.#S-=r[i];r[i]=0};this.#J=(r,i,a,s)=>{if(this.#j(i)){return 0}if(!isPosInt(a)){if(s){if(typeof s!=="function"){throw new TypeError("sizeCalculation must be a function")}a=s(i,r);if(!isPosInt(a)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return a};this.#Q=(i,a,s)=>{r[i]=a;if(this.#y){const a=this.#y-r[i];while(this.#S>a){this.#Y(true)}}this.#S+=r[i];if(s){s.entrySize=a;s.totalCalculatedSize=this.#S}}}#K=r=>{};#Q=(r,i,a)=>{};#J=(r,i,a,s)=>{if(a||s){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#U({allowStale:r=this.allowStale}={}){if(this.#x){for(let i=this.#R;true;){if(!this.#Z(i)){break}if(r||!this.#H(i)){yield i}if(i===this.#O){break}else{i=this.#P[i]}}}}*#q({allowStale:r=this.allowStale}={}){if(this.#x){for(let i=this.#O;true;){if(!this.#Z(i)){break}if(r||!this.#H(i)){yield i}if(i===this.#R){break}else{i=this.#N[i]}}}}#Z(r){return r!==undefined&&this.#_.get(this.#E[r])===r}*entries(){for(const r of this.#U()){if(this.#T[r]!==undefined&&this.#E[r]!==undefined&&!this.#j(this.#T[r])){yield[this.#E[r],this.#T[r]]}}}*rentries(){for(const r of this.#q()){if(this.#T[r]!==undefined&&this.#E[r]!==undefined&&!this.#j(this.#T[r])){yield[this.#E[r],this.#T[r]]}}}*keys(){for(const r of this.#U()){const i=this.#E[r];if(i!==undefined&&!this.#j(this.#T[r])){yield i}}}*rkeys(){for(const r of this.#q()){const i=this.#E[r];if(i!==undefined&&!this.#j(this.#T[r])){yield i}}}*values(){for(const r of this.#U()){const i=this.#T[r];if(i!==undefined&&!this.#j(this.#T[r])){yield this.#T[r]}}}*rvalues(){for(const r of this.#q()){const i=this.#T[r];if(i!==undefined&&!this.#j(this.#T[r])){yield this.#T[r]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(r,i={}){for(const a of this.#U()){const s=this.#T[a];const l=this.#j(s)?s.__staleWhileFetching:s;if(l===undefined)continue;if(r(l,this.#E[a],this)){return this.get(this.#E[a],i)}}}forEach(r,i=this){for(const a of this.#U()){const s=this.#T[a];const l=this.#j(s)?s.__staleWhileFetching:s;if(l===undefined)continue;r.call(i,l,this.#E[a],this)}}rforEach(r,i=this){for(const a of this.#q()){const s=this.#T[a];const l=this.#j(s)?s.__staleWhileFetching:s;if(l===undefined)continue;r.call(i,l,this.#E[a],this)}}purgeStale(){let r=false;for(const i of this.#q({allowStale:true})){if(this.#H(i)){this.delete(this.#E[i]);r=true}}return r}info(r){const i=this.#_.get(r);if(i===undefined)return undefined;const s=this.#T[i];const l=this.#j(s)?s.__staleWhileFetching:s;if(l===undefined)return undefined;const p={value:l};if(this.#I&&this.#D){const r=this.#I[i];const s=this.#D[i];if(r&&s){const i=r-(a.now()-s);p.ttl=i;p.start=Date.now()}}if(this.#A){p.size=this.#A[i]}return p}dump(){const r=[];for(const i of this.#U({allowStale:true})){const s=this.#E[i];const l=this.#T[i];const p=this.#j(l)?l.__staleWhileFetching:l;if(p===undefined||s===undefined)continue;const c={value:p};if(this.#I&&this.#D){c.ttl=this.#I[i];const r=a.now()-this.#D[i];c.start=Math.floor(Date.now()-r)}if(this.#A){c.size=this.#A[i]}r.unshift([s,c])}return r}load(r){this.clear();for(const[i,s]of r){if(s.start){const r=Date.now()-s.start;s.start=a.now()-r}this.set(i,s.value,s)}}set(r,i,a={}){if(i===undefined){this.delete(r);return this}const{ttl:s=this.ttl,start:l,noDisposeOnSet:p=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:d}=a;let{noUpdateTTL:u=this.noUpdateTTL}=a;const h=this.#J(r,i,a.size||0,c);if(this.maxEntrySize&&h>this.maxEntrySize){if(d){d.set="miss";d.maxEntrySizeExceeded=true}this.delete(r);return this}let g=this.#x===0?undefined:this.#_.get(r);if(g===undefined){g=this.#x===0?this.#R:this.#C.length!==0?this.#C.pop():this.#x===this.#g?this.#Y(false):this.#x;this.#E[g]=r;this.#T[g]=i;this.#_.set(r,g);this.#N[this.#R]=g;this.#P[g]=this.#R;this.#R=g;this.#x++;this.#Q(g,h,d);if(d)d.set="add";u=false}else{this.#F(g);const a=this.#T[g];if(i!==a){if(this.#B&&this.#j(a)){a.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:i}=a;if(i!==undefined&&!p){if(this.#L){this.#b?.(i,r,"set")}if(this.#M){this.#k?.push([i,r,"set"])}}}else if(!p){if(this.#L){this.#b?.(a,r,"set")}if(this.#M){this.#k?.push([a,r,"set"])}}this.#K(g);this.#Q(g,h,d);this.#T[g]=i;if(d){d.set="replace";const r=a&&this.#j(a)?a.__staleWhileFetching:a;if(r!==undefined)d.oldValue=r}}else if(d){d.set="update"}}if(s!==0&&!this.#I){this.#G()}if(this.#I){if(!u){this.#W(g,s,l)}if(d)this.#X(d,g)}if(!p&&this.#M&&this.#k){const r=this.#k;let i;while(i=r?.shift()){this.#v?.(...i)}}return this}pop(){try{while(this.#x){const r=this.#T[this.#O];this.#Y(true);if(this.#j(r)){if(r.__staleWhileFetching){return r.__staleWhileFetching}}else if(r!==undefined){return r}}}finally{if(this.#M&&this.#k){const r=this.#k;let i;while(i=r?.shift()){this.#v?.(...i)}}}}#Y(r){const i=this.#O;const a=this.#E[i];const s=this.#T[i];if(this.#B&&this.#j(s)){s.__abortController.abort(new Error("evicted"))}else if(this.#L||this.#M){if(this.#L){this.#b?.(s,a,"evict")}if(this.#M){this.#k?.push([s,a,"evict"])}}this.#K(i);if(r){this.#E[i]=undefined;this.#T[i]=undefined;this.#C.push(i)}if(this.#x===1){this.#O=this.#R=0;this.#C.length=0}else{this.#O=this.#N[i]}this.#_.delete(a);this.#x--;return i}has(r,i={}){const{updateAgeOnHas:a=this.updateAgeOnHas,status:s}=i;const l=this.#_.get(r);if(l!==undefined){const r=this.#T[l];if(this.#j(r)&&r.__staleWhileFetching===undefined){return false}if(!this.#H(l)){if(a){this.#$(l)}if(s){s.has="hit";this.#X(s,l)}return true}else if(s){s.has="stale";this.#X(s,l)}}else if(s){s.has="miss"}return false}peek(r,i={}){const{allowStale:a=this.allowStale}=i;const s=this.#_.get(r);if(s===undefined||!a&&this.#H(s)){return}const l=this.#T[s];return this.#j(l)?l.__staleWhileFetching:l}#z(r,i,a,s){const l=i===undefined?undefined:this.#T[i];if(this.#j(l)){return l}const c=new p;const{signal:d}=a;d?.addEventListener("abort",(()=>c.abort(d.reason)),{signal:c.signal});const u={signal:c.signal,options:a,context:s};const cb=(s,l=false)=>{const{aborted:p}=c.signal;const d=a.ignoreFetchAbort&&s!==undefined;if(a.status){if(p&&!l){a.status.fetchAborted=true;a.status.fetchError=c.signal.reason;if(d)a.status.fetchAbortIgnored=true}else{a.status.fetchResolved=true}}if(p&&!d&&!l){return fetchFail(c.signal.reason)}const g=h;if(this.#T[i]===h){if(s===undefined){if(g.__staleWhileFetching){this.#T[i]=g.__staleWhileFetching}else{this.delete(r)}}else{if(a.status)a.status.fetchUpdated=true;this.set(r,s,u.options)}}return s};const eb=r=>{if(a.status){a.status.fetchRejected=true;a.status.fetchError=r}return fetchFail(r)};const fetchFail=s=>{const{aborted:l}=c.signal;const p=l&&a.allowStaleOnFetchAbort;const d=p||a.allowStaleOnFetchRejection;const u=d||a.noDeleteOnFetchRejection;const g=h;if(this.#T[i]===h){const a=!u||g.__staleWhileFetching===undefined;if(a){this.delete(r)}else if(!p){this.#T[i]=g.__staleWhileFetching}}if(d){if(a.status&&g.__staleWhileFetching!==undefined){a.status.returnedStale=true}return g.__staleWhileFetching}else if(g.__returned===g){throw s}};const pcall=(i,s)=>{const p=this.#w?.(r,l,u);if(p&&p instanceof Promise){p.then((r=>i(r===undefined?undefined:r)),s)}c.signal.addEventListener("abort",(()=>{if(!a.ignoreFetchAbort||a.allowStaleOnFetchAbort){i(undefined);if(a.allowStaleOnFetchAbort){i=r=>cb(r,true)}}}))};if(a.status)a.status.fetchDispatched=true;const h=new Promise(pcall).then(cb,eb);const g=Object.assign(h,{__abortController:c,__staleWhileFetching:l,__returned:undefined});if(i===undefined){this.set(r,g,{...u.options,status:undefined});i=this.#_.get(r)}else{this.#T[i]=g}return g}#j(r){if(!this.#B)return false;const i=r;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof p}async fetch(r,i={}){const{allowStale:a=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:p=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:d=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:y=this.allowStaleOnFetchRejection,ignoreFetchAbort:b=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:w,forceRefresh:x=false,status:S,signal:_}=i;if(!this.#B){if(S)S.fetch="get";return this.get(r,{allowStale:a,updateAgeOnGet:s,noDeleteOnStaleGet:l,status:S})}const T={allowStale:a,updateAgeOnGet:s,noDeleteOnStaleGet:l,ttl:p,noDisposeOnSet:c,size:d,sizeCalculation:u,noUpdateTTL:h,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:v,ignoreFetchAbort:b,status:S,signal:_};let N=this.#_.get(r);if(N===undefined){if(S)S.fetch="miss";const i=this.#z(r,N,T,w);return i.__returned=i}else{const i=this.#T[N];if(this.#j(i)){const r=a&&i.__staleWhileFetching!==undefined;if(S){S.fetch="inflight";if(r)S.returnedStale=true}return r?i.__staleWhileFetching:i.__returned=i}const l=this.#H(N);if(!x&&!l){if(S)S.fetch="hit";this.#F(N);if(s){this.#$(N)}if(S)this.#X(S,N);return i}const p=this.#z(r,N,T,w);const c=p.__staleWhileFetching!==undefined;const d=c&&a;if(S){S.fetch=l?"stale":"refresh";if(d&&l)S.returnedStale=true}return d?p.__staleWhileFetching:p.__returned=p}}get(r,i={}){const{allowStale:a=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:p}=i;const c=this.#_.get(r);if(c!==undefined){const i=this.#T[c];const d=this.#j(i);if(p)this.#X(p,c);if(this.#H(c)){if(p)p.get="stale";if(!d){if(!l){this.delete(r)}if(p&&a)p.returnedStale=true;return a?i:undefined}else{if(p&&a&&i.__staleWhileFetching!==undefined){p.returnedStale=true}return a?i.__staleWhileFetching:undefined}}else{if(p)p.get="hit";if(d){return i.__staleWhileFetching}this.#F(c);if(s){this.#$(c)}return i}}else if(p){p.get="miss"}}#ee(r,i){this.#P[i]=r;this.#N[r]=i}#F(r){if(r!==this.#R){if(r===this.#O){this.#O=this.#N[r]}else{this.#ee(this.#P[r],this.#N[r])}this.#ee(this.#R,r);this.#R=r}}delete(r){let i=false;if(this.#x!==0){const a=this.#_.get(r);if(a!==undefined){i=true;if(this.#x===1){this.clear()}else{this.#K(a);const i=this.#T[a];if(this.#j(i)){i.__abortController.abort(new Error("deleted"))}else if(this.#L||this.#M){if(this.#L){this.#b?.(i,r,"delete")}if(this.#M){this.#k?.push([i,r,"delete"])}}this.#_.delete(r);this.#E[a]=undefined;this.#T[a]=undefined;if(a===this.#R){this.#R=this.#P[a]}else if(a===this.#O){this.#O=this.#N[a]}else{const r=this.#P[a];this.#N[r]=this.#N[a];const i=this.#N[a];this.#P[i]=this.#P[a]}this.#x--;this.#C.push(a)}}}if(this.#M&&this.#k?.length){const r=this.#k;let i;while(i=r?.shift()){this.#v?.(...i)}}return i}clear(){for(const r of this.#q({allowStale:true})){const i=this.#T[r];if(this.#j(i)){i.__abortController.abort(new Error("deleted"))}else{const a=this.#E[r];if(this.#L){this.#b?.(i,a,"delete")}if(this.#M){this.#k?.push([i,a,"delete"])}}}this.#_.clear();this.#T.fill(undefined);this.#E.fill(undefined);if(this.#I&&this.#D){this.#I.fill(0);this.#D.fill(0)}if(this.#A){this.#A.fill(0)}this.#O=0;this.#R=0;this.#C.length=0;this.#S=0;this.#x=0;if(this.#M&&this.#k){const r=this.#k;let i;while(i=r?.shift()){this.#v?.(...i)}}}}i.LRUCache=LRUCache},5240:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.assertValidPattern=void 0;const a=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>a){throw new TypeError("pattern is too long")}};i.assertValidPattern=assertValidPattern},7964:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.AST=void 0;const s=a(5784);const l=a(8212);const p=new Set(["!","?","+","*","@"]);const isExtglobType=r=>p.has(r);const c="(?!(?:^|/)\\.\\.?(?:$|/))";const d="(?!\\.)";const u=new Set(["[","."]);const h=new Set(["..","."]);const g=new Set("().*{}+?[]^$\\!");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const y="[^/]";const b=y+"*?";const v=y+"+?";class AST{type;#te;#re;#ie=false;#ne=[];#ae;#se;#oe;#le=false;#pe;#ce;#de=false;constructor(r,i,a={}){this.type=r;if(r)this.#re=true;this.#ae=i;this.#te=this.#ae?this.#ae.#te:this;this.#pe=this.#te===this?a:this.#te.#pe;this.#oe=this.#te===this?[]:this.#te.#oe;if(r==="!"&&!this.#te.#le)this.#oe.push(this);this.#se=this.#ae?this.#ae.#ne.length:0}get hasMagic(){if(this.#re!==undefined)return this.#re;for(const r of this.#ne){if(typeof r==="string")continue;if(r.type||r.hasMagic)return this.#re=true}return this.#re}toString(){if(this.#ce!==undefined)return this.#ce;if(!this.type){return this.#ce=this.#ne.map((r=>String(r))).join("")}else{return this.#ce=this.type+"("+this.#ne.map((r=>String(r))).join("|")+")"}}#ue(){if(this!==this.#te)throw new Error("should only call on root");if(this.#le)return this;this.toString();this.#le=true;let r;while(r=this.#oe.pop()){if(r.type!=="!")continue;let i=r;let a=i.#ae;while(a){for(let s=i.#se+1;!a.type&&stypeof r==="string"?r:r.toJSON())):[this.type,...this.#ne.map((r=>r.toJSON()))];if(this.isStart()&&!this.type)r.unshift([]);if(this.isEnd()&&(this===this.#te||this.#te.#le&&this.#ae?.type==="!")){r.push({})}return r}isStart(){if(this.#te===this)return true;if(!this.#ae?.isStart())return false;if(this.#se===0)return true;const r=this.#ae;for(let i=0;i{const[s,l,p,c]=typeof i==="string"?AST.#fe(i,this.#re,a):i.toRegExpSource(r);this.#re=this.#re||p;this.#ie=this.#ie||c;return s})).join("");let p="";if(this.isStart()){if(typeof this.#ne[0]==="string"){const a=this.#ne.length===1&&h.has(this.#ne[0]);if(!a){const a=u;const l=i&&a.has(s.charAt(0))||s.startsWith("\\.")&&a.has(s.charAt(2))||s.startsWith("\\.\\.")&&a.has(s.charAt(4));const h=!i&&!r&&a.has(s.charAt(0));p=l?c:h?d:""}}}let g="";if(this.isEnd()&&this.#te.#le&&this.#ae?.type==="!"){g="(?:$|\\/)"}const y=p+s+g;return[y,(0,l.unescape)(s),this.#re=!!this.#re,this.#ie]}const a=this.type==="*"||this.type==="+";const s=this.type==="!"?"(?:(?!(?:":"(?:";let p=this.#he(i);if(this.isStart()&&this.isEnd()&&!p&&this.type!=="!"){const r=this.toString();this.#ne=[r];this.type=null;this.#re=undefined;return[r,(0,l.unescape)(this.toString()),false,false]}let g=!a||r||i||!d?"":this.#he(true);if(g===p){g=""}if(g){p=`(?:${p})(?:${g})*?`}let y="";if(this.type==="!"&&this.#de){y=(this.isStart()&&!i?d:"")+v}else{const a=this.type==="!"?"))"+(this.isStart()&&!i&&!r?d:"")+b+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&g?")":this.type==="*"&&g?`)?`:`)${this.type}`;y=s+p+a}return[y,(0,l.unescape)(p),this.#re=!!this.#re,this.#ie]}#he(r){return this.#ne.map((i=>{if(typeof i==="string"){throw new Error("string type in extglob ast??")}const[a,s,l,p]=i.toRegExpSource(r);this.#ie=this.#ie||p;return a})).filter((r=>!(this.isStart()&&this.isEnd())||!!r)).join("|")}static#fe(r,i,a=false){let p=false;let c="";let d=false;for(let l=0;l{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.parseClass=void 0;const a={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=r=>r.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=r=>r.join("");const parseClass=(r,i)=>{const s=i;if(r.charAt(s)!=="["){throw new Error("not in a brace expression")}const l=[];const p=[];let c=s+1;let d=false;let u=false;let h=false;let g=false;let y=s;let b="";e:while(cb){l.push(braceEscape(b)+"-"+braceEscape(i))}else if(i===b){l.push(braceEscape(i))}b="";c++;continue}if(r.startsWith("-]",c+1)){l.push(braceEscape(i+"-"));c+=2;continue}if(r.startsWith("-",c+1)){b=i;c+=2;continue}l.push(braceEscape(i));c++}if(y{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.escape=void 0;const escape=(r,{windowsPathsNoEscape:i=false}={})=>i?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");i.escape=escape},9879:function(r,i,a){"use strict";var s=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.unescape=i.escape=i.AST=i.Minimatch=i.match=i.makeRe=i.braceExpand=i.defaults=i.filter=i.GLOBSTAR=i.sep=i.minimatch=void 0;const l=s(a(1981));const p=a(5240);const c=a(7964);const d=a(707);const u=a(8212);const minimatch=(r,i,a={})=>{(0,p.assertValidPattern)(i);if(!a.nocomment&&i.charAt(0)==="#"){return false}return new Minimatch(i,a).match(r)};i.minimatch=minimatch;const h=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=r=>i=>!i.startsWith(".")&&i.endsWith(r);const starDotExtTestDot=r=>i=>i.endsWith(r);const starDotExtTestNocase=r=>{r=r.toLowerCase();return i=>!i.startsWith(".")&&i.toLowerCase().endsWith(r)};const starDotExtTestNocaseDot=r=>{r=r.toLowerCase();return i=>i.toLowerCase().endsWith(r)};const g=/^\*+\.\*+$/;const starDotStarTest=r=>!r.startsWith(".")&&r.includes(".");const starDotStarTestDot=r=>r!=="."&&r!==".."&&r.includes(".");const y=/^\.\*+$/;const dotStarTest=r=>r!=="."&&r!==".."&&r.startsWith(".");const b=/^\*+$/;const starTest=r=>r.length!==0&&!r.startsWith(".");const starTestDot=r=>r.length!==0&&r!=="."&&r!=="..";const v=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([r,i=""])=>{const a=qmarksTestNoExt([r]);if(!i)return a;i=i.toLowerCase();return r=>a(r)&&r.toLowerCase().endsWith(i)};const qmarksTestNocaseDot=([r,i=""])=>{const a=qmarksTestNoExtDot([r]);if(!i)return a;i=i.toLowerCase();return r=>a(r)&&r.toLowerCase().endsWith(i)};const qmarksTestDot=([r,i=""])=>{const a=qmarksTestNoExtDot([r]);return!i?a:r=>a(r)&&r.endsWith(i)};const qmarksTest=([r,i=""])=>{const a=qmarksTestNoExt([r]);return!i?a:r=>a(r)&&r.endsWith(i)};const qmarksTestNoExt=([r])=>{const i=r.length;return r=>r.length===i&&!r.startsWith(".")};const qmarksTestNoExtDot=([r])=>{const i=r.length;return r=>r.length===i&&r!=="."&&r!==".."};const w=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const x={win32:{sep:"\\"},posix:{sep:"/"}};i.sep=w==="win32"?x.win32.sep:x.posix.sep;i.minimatch.sep=i.sep;i.GLOBSTAR=Symbol("globstar **");i.minimatch.GLOBSTAR=i.GLOBSTAR;const S="[^/]";const _=S+"*?";const T="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const N="(?:(?!(?:\\/|^)\\.).)*?";const filter=(r,a={})=>s=>(0,i.minimatch)(s,r,a);i.filter=filter;i.minimatch.filter=i.filter;const ext=(r,i={})=>Object.assign({},r,i);const defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return i.minimatch}const a=i.minimatch;const m=(i,s,l={})=>a(i,s,ext(r,l));return Object.assign(m,{Minimatch:class Minimatch extends a.Minimatch{constructor(i,a={}){super(i,ext(r,a))}static defaults(i){return a.defaults(ext(r,i)).Minimatch}},AST:class AST extends a.AST{constructor(i,a,s={}){super(i,a,ext(r,s))}static fromGlob(i,s={}){return a.AST.fromGlob(i,ext(r,s))}},unescape:(i,s={})=>a.unescape(i,ext(r,s)),escape:(i,s={})=>a.escape(i,ext(r,s)),filter:(i,s={})=>a.filter(i,ext(r,s)),defaults:i=>a.defaults(ext(r,i)),makeRe:(i,s={})=>a.makeRe(i,ext(r,s)),braceExpand:(i,s={})=>a.braceExpand(i,ext(r,s)),match:(i,s,l={})=>a.match(i,s,ext(r,l)),sep:a.sep,GLOBSTAR:i.GLOBSTAR})};i.defaults=defaults;i.minimatch.defaults=i.defaults;const braceExpand=(r,i={})=>{(0,p.assertValidPattern)(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return(0,l.default)(r)};i.braceExpand=braceExpand;i.minimatch.braceExpand=i.braceExpand;const makeRe=(r,i={})=>new Minimatch(r,i).makeRe();i.makeRe=makeRe;i.minimatch.makeRe=i.makeRe;const match=(r,i,a={})=>{const s=new Minimatch(i,a);r=r.filter((r=>s.match(r)));if(s.options.nonull&&!r.length){r.push(i)}return r};i.match=match;i.minimatch.match=i.match;const P=/[?*]|[+@!]\(.*?\)|\[|\]/;const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(r,i={}){(0,p.assertValidPattern)(r);i=i||{};this.options=i;this.pattern=r;this.platform=i.platform||w;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!i.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!i.nonegate;this.comment=false;this.empty=false;this.partial=!!i.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=i.windowsNoMagicRoot!==undefined?i.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const r of this.set){for(const i of r){if(typeof i!=="string")return true}}return false}debug(...r){}make(){const r=this.pattern;const i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(i.debug){this.debug=(...r)=>console.error(...r)}this.debug(this.pattern,this.globSet);const a=this.globSet.map((r=>this.slashSplit(r)));this.globParts=this.preprocess(a);this.debug(this.pattern,this.globParts);let s=this.globParts.map(((r,i,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){const i=r[0]===""&&r[1]===""&&(r[2]==="?"||!P.test(r[2]))&&!P.test(r[3]);const a=/^[a-z]:/i.test(r[0]);if(i){return[...r.slice(0,4),...r.slice(4).map((r=>this.parse(r)))]}else if(a){return[r[0],...r.slice(1).map((r=>this.parse(r)))]}}return r.map((r=>this.parse(r)))}));this.debug(this.pattern,s);this.set=s.filter((r=>r.indexOf(false)===-1));if(this.isWindows){for(let r=0;r=2){r=this.firstPhasePreProcess(r);r=this.secondPhasePreProcess(r)}else if(i>=1){r=this.levelOneOptimize(r)}else{r=this.adjascentGlobstarOptimize(r)}return r}adjascentGlobstarOptimize(r){return r.map((r=>{let i=-1;while(-1!==(i=r.indexOf("**",i+1))){let a=i;while(r[a+1]==="**"){a++}if(a!==i){r.splice(i,a-i)}}return r}))}levelOneOptimize(r){return r.map((r=>{r=r.reduce(((r,i)=>{const a=r[r.length-1];if(i==="**"&&a==="**"){return r}if(i===".."){if(a&&a!==".."&&a!=="."&&a!=="**"){r.pop();return r}}r.push(i);return r}),[]);return r.length===0?[""]:r}))}levelTwoFileOptimize(r){if(!Array.isArray(r)){r=this.slashSplit(r)}let i=false;do{i=false;if(!this.preserveMultipleSlashes){for(let a=1;as){a.splice(s+1,l-s)}let p=a[s+1];const c=a[s+2];const d=a[s+3];if(p!=="..")continue;if(!c||c==="."||c===".."||!d||d==="."||d===".."){continue}i=true;a.splice(s,1);const u=a.slice(0);u[s]="**";r.push(u);s--}if(!this.preserveMultipleSlashes){for(let r=1;rr.length))}partsMatch(r,i,a=false){let s=0;let l=0;let p=[];let c="";while(sc){a=a.slice(d)}else if(c>d){r=r.slice(c)}}}}const{optimizationLevel:p=1}=this.options;if(p>=2){r=this.levelTwoFileOptimize(r)}this.debug("matchOne",this,{file:r,pattern:a});this.debug("matchOne",r.length,a.length);for(var c=0,d=0,u=r.length,h=a.length;c>> no match, partial?",r,b,a,v);if(b===u){return true}}return false}let p;if(typeof g==="string"){p=y===g;this.debug("string match",g,y,p)}else{p=g.test(y);this.debug("pattern match",g,y,p)}if(!p)return false}if(c===u&&d===h){return true}else if(c===u){return s}else if(d===h){return c===u-1&&r[c]===""}else{throw new Error("wtf?")}}braceExpand(){return(0,i.braceExpand)(this.pattern,this.options)}parse(r){(0,p.assertValidPattern)(r);const a=this.options;if(r==="**")return i.GLOBSTAR;if(r==="")return"";let s;let l=null;if(s=r.match(b)){l=a.dot?starTestDot:starTest}else if(s=r.match(h)){l=(a.nocase?a.dot?starDotExtTestNocaseDot:starDotExtTestNocase:a.dot?starDotExtTestDot:starDotExtTest)(s[1])}else if(s=r.match(v)){l=(a.nocase?a.dot?qmarksTestNocaseDot:qmarksTestNocase:a.dot?qmarksTestDot:qmarksTest)(s)}else if(s=r.match(g)){l=a.dot?starDotStarTestDot:starDotStarTest}else if(s=r.match(y)){l=dotStarTest}const d=c.AST.fromGlob(r,this.options).toMMPattern();if(l&&typeof d==="object"){Reflect.defineProperty(d,"test",{value:l})}return d}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const r=this.set;if(!r.length){this.regexp=false;return this.regexp}const a=this.options;const s=a.noglobstar?_:a.dot?T:N;const l=new Set(a.nocase?["i"]:[]);let p=r.map((r=>{const a=r.map((r=>{if(r instanceof RegExp){for(const i of r.flags.split(""))l.add(i)}return typeof r==="string"?regExpEscape(r):r===i.GLOBSTAR?i.GLOBSTAR:r._src}));a.forEach(((r,l)=>{const p=a[l+1];const c=a[l-1];if(r!==i.GLOBSTAR||c===i.GLOBSTAR){return}if(c===undefined){if(p!==undefined&&p!==i.GLOBSTAR){a[l+1]="(?:\\/|"+s+"\\/)?"+p}else{a[l]=s}}else if(p===undefined){a[l-1]=c+"(?:\\/|"+s+")?"}else if(p!==i.GLOBSTAR){a[l-1]=c+"(?:\\/|\\/"+s+"\\/)"+p;a[l+1]=i.GLOBSTAR}}));return a.filter((r=>r!==i.GLOBSTAR)).join("/")})).join("|");const[c,d]=r.length>1?["(?:",")"]:["",""];p="^"+c+p+d+"$";if(this.negate)p="^(?!"+p+").+$";try{this.regexp=new RegExp(p,[...l].join(""))}catch(r){this.regexp=false}return this.regexp}slashSplit(r){if(this.preserveMultipleSlashes){return r.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(r)){return["",...r.split(/\/+/)]}else{return r.split(/\/+/)}}match(r,i=this.partial){this.debug("match",r,this.pattern);if(this.comment){return false}if(this.empty){return r===""}if(r==="/"&&i){return true}const a=this.options;if(this.isWindows){r=r.split("\\").join("/")}const s=this.slashSplit(r);this.debug(this.pattern,"split",s);const l=this.set;this.debug(this.pattern,"set",l);let p=s[s.length-1];if(!p){for(let r=s.length-2;!p&&r>=0;r--){p=s[r]}}for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.unescape=void 0;const unescape=(r,{windowsPathsNoEscape:i=false}={})=>i?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");i.unescape=unescape},3615:function(r,i,a){"use strict";var s=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.Minipass=i.isWritable=i.isReadable=i.isStream=void 0;const l=typeof process==="object"&&process?process:{stdout:null,stderr:null};const p=a(2361);const c=s(a(2781));const d=a(1576);const isStream=r=>!!r&&typeof r==="object"&&(r instanceof Minipass||r instanceof c.default||(0,i.isReadable)(r)||(0,i.isWritable)(r));i.isStream=isStream;const isReadable=r=>!!r&&typeof r==="object"&&r instanceof p.EventEmitter&&typeof r.pipe==="function"&&r.pipe!==c.default.Writable.prototype.pipe;i.isReadable=isReadable;const isWritable=r=>!!r&&typeof r==="object"&&r instanceof p.EventEmitter&&typeof r.write==="function"&&typeof r.end==="function";i.isWritable=isWritable;const u=Symbol("EOF");const h=Symbol("maybeEmitEnd");const g=Symbol("emittedEnd");const y=Symbol("emittingEnd");const b=Symbol("emittedError");const v=Symbol("closed");const w=Symbol("read");const x=Symbol("flush");const S=Symbol("flushChunk");const _=Symbol("encoding");const T=Symbol("decoder");const N=Symbol("flowing");const P=Symbol("paused");const O=Symbol("resume");const R=Symbol("buffer");const C=Symbol("pipes");const k=Symbol("bufferLength");const A=Symbol("bufferPush");const D=Symbol("bufferShift");const I=Symbol("objectMode");const L=Symbol("destroyed");const B=Symbol("error");const M=Symbol("emitData");const j=Symbol("emitEnd");const z=Symbol("emitEnd2");const U=Symbol("async");const q=Symbol("abort");const H=Symbol("aborted");const V=Symbol("signal");const G=Symbol("dataListeners");const W=Symbol("discarded");const defer=r=>Promise.resolve().then(r);const nodefer=r=>r();const isEndish=r=>r==="end"||r==="finish"||r==="prefinish";const isArrayBufferLike=r=>r instanceof ArrayBuffer||!!r&&typeof r==="object"&&r.constructor&&r.constructor.name==="ArrayBuffer"&&r.byteLength>=0;const isArrayBufferView=r=>!Buffer.isBuffer(r)&&ArrayBuffer.isView(r);class Pipe{src;dest;opts;ondrain;constructor(r,i,a){this.src=r;this.dest=i;this.opts=a;this.ondrain=()=>r[O]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(r){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(r,i,a){super(r,i,a);this.proxyErrors=r=>i.emit("error",r);r.on("error",this.proxyErrors)}}const isObjectModeOptions=r=>!!r.objectMode;const isEncodingOptions=r=>!r.objectMode&&!!r.encoding&&r.encoding!=="buffer";class Minipass extends p.EventEmitter{[N]=false;[P]=false;[C]=[];[R]=[];[I];[_];[U];[T];[u]=false;[g]=false;[y]=false;[v]=false;[b]=null;[k]=0;[L]=false;[V];[H]=false;[G]=0;[W]=false;writable=true;readable=true;constructor(...r){const i=r[0]||{};super();if(i.objectMode&&typeof i.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(i)){this[I]=true;this[_]=null}else if(isEncodingOptions(i)){this[_]=i.encoding;this[I]=false}else{this[I]=false;this[_]=null}this[U]=!!i.async;this[T]=this[_]?new d.StringDecoder(this[_]):null;if(i&&i.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[R]})}if(i&&i.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[C]})}const{signal:a}=i;if(a){this[V]=a;if(a.aborted){this[q]()}else{a.addEventListener("abort",(()=>this[q]()))}}}get bufferLength(){return this[k]}get encoding(){return this[_]}set encoding(r){throw new Error("Encoding must be set at instantiation time")}setEncoding(r){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[I]}set objectMode(r){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[U]}set["async"](r){this[U]=this[U]||!!r}[q](){this[H]=true;this.emit("abort",this[V]?.reason);this.destroy(this[V]?.reason)}get aborted(){return this[H]}set aborted(r){}write(r,i,a){if(this[H])return false;if(this[u])throw new Error("write after end");if(this[L]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof i==="function"){a=i;i="utf8"}if(!i)i="utf8";const s=this[U]?defer:nodefer;if(!this[I]&&!Buffer.isBuffer(r)){if(isArrayBufferView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(isArrayBufferLike(r)){r=Buffer.from(r)}else if(typeof r!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[I]){if(this[N]&&this[k]!==0)this[x](true);if(this[N])this.emit("data",r);else this[A](r);if(this[k]!==0)this.emit("readable");if(a)s(a);return this[N]}if(!r.length){if(this[k]!==0)this.emit("readable");if(a)s(a);return this[N]}if(typeof r==="string"&&!(i===this[_]&&!this[T]?.lastNeed)){r=Buffer.from(r,i)}if(Buffer.isBuffer(r)&&this[_]){r=this[T].write(r)}if(this[N]&&this[k]!==0)this[x](true);if(this[N])this.emit("data",r);else this[A](r);if(this[k]!==0)this.emit("readable");if(a)s(a);return this[N]}read(r){if(this[L])return null;this[W]=false;if(this[k]===0||r===0||r&&r>this[k]){this[h]();return null}if(this[I])r=null;if(this[R].length>1&&!this[I]){this[R]=[this[_]?this[R].join(""):Buffer.concat(this[R],this[k])]}const i=this[w](r||null,this[R][0]);this[h]();return i}[w](r,i){if(this[I])this[D]();else{const a=i;if(r===a.length||r===null)this[D]();else if(typeof a==="string"){this[R][0]=a.slice(r);i=a.slice(0,r);this[k]-=r}else{this[R][0]=a.subarray(r);i=a.subarray(0,r);this[k]-=r}}this.emit("data",i);if(!this[R].length&&!this[u])this.emit("drain");return i}end(r,i,a){if(typeof r==="function"){a=r;r=undefined}if(typeof i==="function"){a=i;i="utf8"}if(r!==undefined)this.write(r,i);if(a)this.once("end",a);this[u]=true;this.writable=false;if(this[N]||!this[P])this[h]();return this}[O](){if(this[L])return;if(!this[G]&&!this[C].length){this[W]=true}this[P]=false;this[N]=true;this.emit("resume");if(this[R].length)this[x]();else if(this[u])this[h]();else this.emit("drain")}resume(){return this[O]()}pause(){this[N]=false;this[P]=true;this[W]=false}get destroyed(){return this[L]}get flowing(){return this[N]}get paused(){return this[P]}[A](r){if(this[I])this[k]+=1;else this[k]+=r.length;this[R].push(r)}[D](){if(this[I])this[k]-=1;else this[k]-=this[R][0].length;return this[R].shift()}[x](r=false){do{}while(this[S](this[D]())&&this[R].length);if(!r&&!this[R].length&&!this[u])this.emit("drain")}[S](r){this.emit("data",r);return this[N]}pipe(r,i){if(this[L])return r;this[W]=false;const a=this[g];i=i||{};if(r===l.stdout||r===l.stderr)i.end=false;else i.end=i.end!==false;i.proxyErrors=!!i.proxyErrors;if(a){if(i.end)r.end()}else{this[C].push(!i.proxyErrors?new Pipe(this,r,i):new PipeProxyErrors(this,r,i));if(this[U])defer((()=>this[O]()));else this[O]()}return r}unpipe(r){const i=this[C].find((i=>i.dest===r));if(i){if(this[C].length===1){if(this[N]&&this[G]===0){this[N]=false}this[C]=[]}else this[C].splice(this[C].indexOf(i),1);i.unpipe()}}addListener(r,i){return this.on(r,i)}on(r,i){const a=super.on(r,i);if(r==="data"){this[W]=false;this[G]++;if(!this[C].length&&!this[N]){this[O]()}}else if(r==="readable"&&this[k]!==0){super.emit("readable")}else if(isEndish(r)&&this[g]){super.emit(r);this.removeAllListeners(r)}else if(r==="error"&&this[b]){const r=i;if(this[U])defer((()=>r.call(this,this[b])));else r.call(this,this[b])}return a}removeListener(r,i){return this.off(r,i)}off(r,i){const a=super.off(r,i);if(r==="data"){this[G]=this.listeners("data").length;if(this[G]===0&&!this[W]&&!this[C].length){this[N]=false}}return a}removeAllListeners(r){const i=super.removeAllListeners(r);if(r==="data"||r===undefined){this[G]=0;if(!this[W]&&!this[C].length){this[N]=false}}return i}get emittedEnd(){return this[g]}[h](){if(!this[y]&&!this[g]&&!this[L]&&this[R].length===0&&this[u]){this[y]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[v])this.emit("close");this[y]=false}}emit(r,...i){const a=i[0];if(r!=="error"&&r!=="close"&&r!==L&&this[L]){return false}else if(r==="data"){return!this[I]&&!a?false:this[U]?(defer((()=>this[M](a))),true):this[M](a)}else if(r==="end"){return this[j]()}else if(r==="close"){this[v]=true;if(!this[g]&&!this[L])return false;const r=super.emit("close");this.removeAllListeners("close");return r}else if(r==="error"){this[b]=a;super.emit(B,a);const r=!this[V]||this.listeners("error").length?super.emit("error",a):false;this[h]();return r}else if(r==="resume"){const r=super.emit("resume");this[h]();return r}else if(r==="finish"||r==="prefinish"){const i=super.emit(r);this.removeAllListeners(r);return i}const s=super.emit(r,...i);this[h]();return s}[M](r){for(const i of this[C]){if(i.dest.write(r)===false)this.pause()}const i=this[W]?false:super.emit("data",r);this[h]();return i}[j](){if(this[g])return false;this[g]=true;this.readable=false;return this[U]?(defer((()=>this[z]())),true):this[z]()}[z](){if(this[T]){const r=this[T].end();if(r){for(const i of this[C]){i.dest.write(r)}if(!this[W])super.emit("data",r)}}for(const r of this[C]){r.end()}const r=super.emit("end");this.removeAllListeners("end");return r}async collect(){const r=Object.assign([],{dataLength:0});if(!this[I])r.dataLength=0;const i=this.promise();this.on("data",(i=>{r.push(i);if(!this[I])r.dataLength+=i.length}));await i;return r}async concat(){if(this[I]){throw new Error("cannot concat in objectMode")}const r=await this.collect();return this[_]?r.join(""):Buffer.concat(r,r.dataLength)}async promise(){return new Promise(((r,i)=>{this.on(L,(()=>i(new Error("stream destroyed"))));this.on("error",(r=>i(r)));this.on("end",(()=>r()))}))}[Symbol.asyncIterator](){this[W]=false;let r=false;const stop=async()=>{this.pause();r=true;return{value:undefined,done:true}};const next=()=>{if(r)return stop();const i=this.read();if(i!==null)return Promise.resolve({done:false,value:i});if(this[u])return stop();let a;let s;const onerr=r=>{this.off("data",ondata);this.off("end",onend);this.off(L,ondestroy);stop();s(r)};const ondata=r=>{this.off("error",onerr);this.off("end",onend);this.off(L,ondestroy);this.pause();a({value:r,done:!!this[u]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(L,ondestroy);stop();a({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((r,i)=>{s=i;a=r;this.once(L,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[W]=false;let r=false;const stop=()=>{this.pause();this.off(B,stop);this.off(L,stop);this.off("end",stop);r=true;return{done:true,value:undefined}};const next=()=>{if(r)return stop();const i=this.read();return i===null?stop():{done:false,value:i}};this.once("end",stop);this.once(B,stop);this.once(L,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(r){if(this[L]){if(r)this.emit("error",r);else this.emit(L);return this}this[L]=true;this[W]=true;this[R].length=0;this[k]=0;const i=this;if(typeof i.close==="function"&&!this[v])i.close();if(r)this.emit("error",r);else this.emit(L);return this}static get isStream(){return i.isStream}}i.Minipass=Minipass},9647:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var l=Object.getOwnPropertyDescriptor(i,a);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,l)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});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 p=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);l(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.PathScurry=i.Path=i.PathScurryDarwin=i.PathScurryPosix=i.PathScurryWin32=i.PathScurryBase=i.PathPosix=i.PathWin32=i.PathBase=i.ChildrenCache=i.ResolveCache=void 0;const c=a(1763);const d=a(1017);const u=a(7310);const h=p(a(7147));const g=a(7147);const y=g.realpathSync.native;const b=a(3292);const v=a(3615);const w={lstatSync:g.lstatSync,readdir:g.readdir,readdirSync:g.readdirSync,readlinkSync:g.readlinkSync,realpathSync:y,promises:{lstat:b.lstat,readdir:b.readdir,readlink:b.readlink,realpath:b.realpath}};const fsFromOption=r=>!r||r===w||r===h?w:{...w,...r,promises:{...w.promises,...r.promises||{}}};const x=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=r=>r.replace(/\//g,"\\").replace(x,"$1\\");const S=/[\\\/]/;const _=0;const T=1;const N=2;const P=4;const O=6;const R=8;const C=10;const k=12;const A=15;const D=~A;const I=16;const L=32;const B=64;const M=128;const j=256;const z=512;const U=B|M|z;const q=1023;const entToType=r=>r.isFile()?R:r.isDirectory()?P:r.isSymbolicLink()?C:r.isCharacterDevice()?N:r.isBlockDevice()?O:r.isSocket()?k:r.isFIFO()?T:_;const H=new Map;const normalize=r=>{const i=H.get(r);if(i)return i;const a=r.normalize("NFKD");H.set(r,a);return a};const V=new Map;const normalizeNocase=r=>{const i=V.get(r);if(i)return i;const a=normalize(r.toLowerCase());V.set(r,a);return a};class ResolveCache extends c.LRUCache{constructor(){super({max:256})}}i.ResolveCache=ResolveCache;class ChildrenCache extends c.LRUCache{constructor(r=16*1024){super({maxSize:r,sizeCalculation:r=>r.length+1})}}i.ChildrenCache=ChildrenCache;const G=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;#ge;#ye;get dev(){return this.#ye}#be;get mode(){return this.#be}#ve;get nlink(){return this.#ve}#we;get uid(){return this.#we}#xe;get gid(){return this.#xe}#Se;get rdev(){return this.#Se}#_e;get blksize(){return this.#_e}#Ee;get ino(){return this.#Ee}#x;get size(){return this.#x}#Te;get blocks(){return this.#Te}#Ne;get atimeMs(){return this.#Ne}#Pe;get mtimeMs(){return this.#Pe}#Oe;get ctimeMs(){return this.#Oe}#Re;get birthtimeMs(){return this.#Re}#Ce;get atime(){return this.#Ce}#ke;get mtime(){return this.#ke}#Ae;get ctime(){return this.#Ae}#De;get birthtime(){return this.#De}#Ie;#Le;#Be;#Me;#je;#ze;#Fe;#Ue;#qe;#He;get path(){return(this.parent||this).fullpath()}constructor(r,i=_,a,s,l,p,c){this.name=r;this.#Ie=l?normalizeNocase(r):normalize(r);this.#Fe=i&q;this.nocase=l;this.roots=s;this.root=a||this;this.#Ue=p;this.#Be=c.fullpath;this.#je=c.relative;this.#ze=c.relativePosix;this.parent=c.parent;if(this.parent){this.#ge=this.parent.#ge}else{this.#ge=fsFromOption(c.fs)}}depth(){if(this.#Le!==undefined)return this.#Le;if(!this.parent)return this.#Le=0;return this.#Le=this.parent.depth()+1}childrenCache(){return this.#Ue}resolve(r){if(!r){return this}const i=this.getRootString(r);const a=r.substring(i.length);const s=a.split(this.splitSep);const l=i?this.getRoot(i).#Ve(s):this.#Ve(s);return l}#Ve(r){let i=this;for(const a of r){i=i.child(a)}return i}children(){const r=this.#Ue.get(this);if(r){return r}const i=Object.assign([],{provisional:0});this.#Ue.set(this,i);this.#Fe&=~I;return i}child(r,i){if(r===""||r==="."){return this}if(r===".."){return this.parent||this}const a=this.children();const s=this.nocase?normalizeNocase(r):normalize(r);for(const r of a){if(r.#Ie===s){return r}}const l=this.parent?this.sep:"";const p=this.#Be?this.#Be+l+r:undefined;const c=this.newChild(r,_,{...i,parent:this,fullpath:p});if(!this.canReaddir()){c.#Fe|=M}a.push(c);return c}relative(){if(this.#je!==undefined){return this.#je}const r=this.name;const i=this.parent;if(!i){return this.#je=this.name}const a=i.relative();return a+(!a||!i.parent?"":this.sep)+r}relativePosix(){if(this.sep==="/")return this.relative();if(this.#ze!==undefined)return this.#ze;const r=this.name;const i=this.parent;if(!i){return this.#ze=this.fullpathPosix()}const a=i.relativePosix();return a+(!a||!i.parent?"":"/")+r}fullpath(){if(this.#Be!==undefined){return this.#Be}const r=this.name;const i=this.parent;if(!i){return this.#Be=this.name}const a=i.fullpath();const s=a+(!i.parent?"":this.sep)+r;return this.#Be=s}fullpathPosix(){if(this.#Me!==undefined)return this.#Me;if(this.sep==="/")return this.#Me=this.fullpath();if(!this.parent){const r=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(r)){return this.#Me=`//?/${r}`}else{return this.#Me=r}}const r=this.parent;const i=r.fullpathPosix();const a=i+(!i||!r.parent?"":"/")+this.name;return this.#Me=a}isUnknown(){return(this.#Fe&A)===_}isType(r){return this[`is${r}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Fe&A)===R}isDirectory(){return(this.#Fe&A)===P}isCharacterDevice(){return(this.#Fe&A)===N}isBlockDevice(){return(this.#Fe&A)===O}isFIFO(){return(this.#Fe&A)===T}isSocket(){return(this.#Fe&A)===k}isSymbolicLink(){return(this.#Fe&C)===C}lstatCached(){return this.#Fe&L?this:undefined}readlinkCached(){return this.#qe}realpathCached(){return this.#He}readdirCached(){const r=this.children();return r.slice(0,r.provisional)}canReadlink(){if(this.#qe)return true;if(!this.parent)return false;const r=this.#Fe&A;return!(r!==_&&r!==C||this.#Fe&j||this.#Fe&M)}calledReaddir(){return!!(this.#Fe&I)}isENOENT(){return!!(this.#Fe&M)}isNamed(r){return!this.nocase?this.#Ie===normalize(r):this.#Ie===normalizeNocase(r)}async readlink(){const r=this.#qe;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=await this.#ge.promises.readlink(this.fullpath());const i=(await this.parent.realpath())?.resolve(r);if(i){return this.#qe=i}}catch(r){this.#Ge(r.code);return undefined}}readlinkSync(){const r=this.#qe;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=this.#ge.readlinkSync(this.fullpath());const i=this.parent.realpathSync()?.resolve(r);if(i){return this.#qe=i}}catch(r){this.#Ge(r.code);return undefined}}#We(r){this.#Fe|=I;for(let i=r.provisional;ii(null,r)))}readdirCB(r,i=false){if(!this.canReaddir()){if(i)r(null,[]);else queueMicrotask((()=>r(null,[])));return}const a=this.children();if(this.calledReaddir()){const s=a.slice(0,a.provisional);if(i)r(null,s);else queueMicrotask((()=>r(null,s)));return}this.#nt.push(r);if(this.#at){return}this.#at=true;const s=this.fullpath();this.#ge.readdir(s,{withFileTypes:true},((r,i)=>{if(r){this.#Qe(r.code);a.provisional=0}else{for(const r of i){this.#Ze(r,a)}this.#We(a)}this.#st(a.slice(0,a.provisional));return}))}#ot;async readdir(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const i=this.fullpath();if(this.#ot){await this.#ot}else{let resolve=()=>{};this.#ot=new Promise((r=>resolve=r));try{for(const a of await this.#ge.promises.readdir(i,{withFileTypes:true})){this.#Ze(a,r)}this.#We(r)}catch(i){this.#Qe(i.code);r.provisional=0}this.#ot=undefined;resolve()}return r.slice(0,r.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const i=this.fullpath();try{for(const a of this.#ge.readdirSync(i,{withFileTypes:true})){this.#Ze(a,r)}this.#We(r)}catch(i){this.#Qe(i.code);r.provisional=0}return r.slice(0,r.provisional)}canReaddir(){if(this.#Fe&U)return false;const r=A&this.#Fe;if(!(r===_||r===P||r===C)){return false}return true}shouldWalk(r,i){return(this.#Fe&P)===P&&!(this.#Fe&U)&&!r.has(this)&&(!i||i(this))}async realpath(){if(this.#He)return this.#He;if((z|j|M)&this.#Fe)return undefined;try{const r=await this.#ge.promises.realpath(this.fullpath());return this.#He=this.resolve(r)}catch(r){this.#Ke()}}realpathSync(){if(this.#He)return this.#He;if((z|j|M)&this.#Fe)return undefined;try{const r=this.#ge.realpathSync(this.fullpath());return this.#He=this.resolve(r)}catch(r){this.#Ke()}}[G](r){if(r===this)return;const i=new Set([]);let a=[];let s=this;while(s&&s.parent){i.add(s);s.#je=a.join(this.sep);s.#ze=a.join("/");s=s.parent;a.push("..")}s=r;while(s&&s.parent&&!i.has(s)){s.#je=undefined;s.#ze=undefined;s=s.parent}}}i.PathBase=PathBase;class PathWin32 extends PathBase{sep="\\";splitSep=S;constructor(r,i=_,a,s,l,p,c){super(r,i,a,s,l,p,c)}newChild(r,i=_,a={}){return new PathWin32(r,i,this.root,this.roots,this.nocase,this.childrenCache(),a)}getRootString(r){return d.win32.parse(r).root}getRoot(r){r=uncToDrive(r.toUpperCase());if(r===this.root.name){return this.root}for(const[i,a]of Object.entries(this.roots)){if(this.sameRoot(r,i)){return this.roots[r]=a}}return this.roots[r]=new PathScurryWin32(r,this).root}sameRoot(r,i=this.root.name){r=r.toUpperCase().replace(/\//g,"\\").replace(x,"$1\\");return r===i}}i.PathWin32=PathWin32;class PathPosix extends PathBase{splitSep="/";sep="/";constructor(r,i=_,a,s,l,p,c){super(r,i,a,s,l,p,c)}getRootString(r){return r.startsWith("/")?"/":""}getRoot(r){return this.root}newChild(r,i=_,a={}){return new PathPosix(r,i,this.root,this.roots,this.nocase,this.childrenCache(),a)}}i.PathPosix=PathPosix;class PathScurryBase{root;rootPath;roots;cwd;#lt;#pt;#Ue;nocase;#ge;constructor(r=process.cwd(),i,a,{nocase:s,childrenCacheSize:l=16*1024,fs:p=w}={}){this.#ge=fsFromOption(p);if(r instanceof URL||r.startsWith("file://")){r=(0,u.fileURLToPath)(r)}const c=i.resolve(r);this.roots=Object.create(null);this.rootPath=this.parseRootPath(c);this.#lt=new ResolveCache;this.#pt=new ResolveCache;this.#Ue=new ChildrenCache(l);const d=c.substring(this.rootPath.length).split(a);if(d.length===1&&!d[0]){d.pop()}if(s===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=s;this.root=this.newRoot(this.#ge);this.roots[this.rootPath]=this.root;let h=this.root;let g=d.length-1;const y=i.sep;let b=this.rootPath;let v=false;for(const r of d){const i=g--;h=h.child(r,{relative:new Array(i).fill("..").join(y),relativePosix:new Array(i).fill("..").join("/"),fullpath:b+=(v?"":y)+r});v=true}this.cwd=h}depth(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.depth()}childrenCache(){return this.#Ue}resolve(...r){let i="";for(let a=r.length-1;a>=0;a--){const s=r[a];if(!s||s===".")continue;i=i?`${s}/${i}`:s;if(this.isAbsolute(s)){break}}const a=this.#lt.get(i);if(a!==undefined){return a}const s=this.cwd.resolve(i).fullpath();this.#lt.set(i,s);return s}resolvePosix(...r){let i="";for(let a=r.length-1;a>=0;a--){const s=r[a];if(!s||s===".")continue;i=i?`${s}/${i}`:s;if(this.isAbsolute(s)){break}}const a=this.#pt.get(i);if(a!==undefined){return a}const s=this.cwd.resolve(i).fullpathPosix();this.#pt.set(i,s);return s}relative(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relative()}relativePosix(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relativePosix()}basename(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.name}dirname(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return(r.parent||r).fullpath()}async readdir(r=this.cwd,i={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:a}=i;if(!r.canReaddir()){return[]}else{const i=await r.readdir();return a?i:i.map((r=>r.name))}}readdirSync(r=this.cwd,i={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:a=true}=i;if(!r.canReaddir()){return[]}else if(a){return r.readdirSync()}else{return r.readdirSync().map((r=>r.name))}}async lstat(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstat()}lstatSync(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstatSync()}async readlink(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const a=await r.readlink();return i?a:a?.fullpath()}readlinkSync(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const a=r.readlinkSync();return i?a:a?.fullpath()}async realpath(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const a=await r.realpath();return i?a:a?.fullpath()}realpathSync(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const a=r.realpathSync();return i?a:a?.fullpath()}async walk(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:a=true,follow:s=false,filter:l,walkFilter:p}=i;const c=[];if(!l||l(r)){c.push(a?r:r.fullpath())}const d=new Set;const walk=(r,i)=>{d.add(r);r.readdirCB(((r,u)=>{if(r){return i(r)}let h=u.length;if(!h)return i();const next=()=>{if(--h===0){i()}};for(const r of u){if(!l||l(r)){c.push(a?r:r.fullpath())}if(s&&r.isSymbolicLink()){r.realpath().then((r=>r?.isUnknown()?r.lstat():r)).then((r=>r?.shouldWalk(d,p)?walk(r,next):next()))}else{if(r.shouldWalk(d,p)){walk(r,next)}else{next()}}}}),true)};const u=r;return new Promise(((r,i)=>{walk(u,(a=>{if(a)return i(a);r(c)}))}))}walkSync(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:a=true,follow:s=false,filter:l,walkFilter:p}=i;const c=[];if(!l||l(r)){c.push(a?r:r.fullpath())}const d=new Set([r]);for(const r of d){const i=r.readdirSync();for(const r of i){if(!l||l(r)){c.push(a?r:r.fullpath())}let i=r;if(r.isSymbolicLink()){if(!(s&&(i=r.realpathSync())))continue;if(i.isUnknown())i.lstatSync()}if(i.shouldWalk(d,p)){d.add(i)}}}return c}[Symbol.asyncIterator](){return this.iterate()}iterate(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}return this.stream(r,i)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:a=true,follow:s=false,filter:l,walkFilter:p}=i;if(!l||l(r)){yield a?r:r.fullpath()}const c=new Set([r]);for(const r of c){const i=r.readdirSync();for(const r of i){if(!l||l(r)){yield a?r:r.fullpath()}let i=r;if(r.isSymbolicLink()){if(!(s&&(i=r.realpathSync())))continue;if(i.isUnknown())i.lstatSync()}if(i.shouldWalk(c,p)){c.add(i)}}}}stream(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:a=true,follow:s=false,filter:l,walkFilter:p}=i;const c=new v.Minipass({objectMode:true});if(!l||l(r)){c.write(a?r:r.fullpath())}const d=new Set;const u=[r];let h=0;const process=()=>{let r=false;while(!r){const i=u.shift();if(!i){if(h===0)c.end();return}h++;d.add(i);const onReaddir=(i,y,b=false)=>{if(i)return c.emit("error",i);if(s&&!b){const r=[];for(const i of y){if(i.isSymbolicLink()){r.push(i.realpath().then((r=>r?.isUnknown()?r.lstat():r)))}}if(r.length){Promise.all(r).then((()=>onReaddir(null,y,true)));return}}for(const i of y){if(i&&(!l||l(i))){if(!c.write(a?i:i.fullpath())){r=true}}}h--;for(const r of y){const i=r.realpathCached()||r;if(i.shouldWalk(d,p)){u.push(i)}}if(r&&!c.flowing){c.once("drain",process)}else if(!g){process()}};let g=true;i.readdirCB(onReaddir,true);g=false}};process();return c}streamSync(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:a=true,follow:s=false,filter:l,walkFilter:p}=i;const c=new v.Minipass({objectMode:true});const d=new Set;if(!l||l(r)){c.write(a?r:r.fullpath())}const u=[r];let h=0;const process=()=>{let r=false;while(!r){const i=u.shift();if(!i){if(h===0)c.end();return}h++;d.add(i);const g=i.readdirSync();for(const i of g){if(!l||l(i)){if(!c.write(a?i:i.fullpath())){r=true}}}h--;for(const r of g){let i=r;if(r.isSymbolicLink()){if(!(s&&(i=r.realpathSync())))continue;if(i.isUnknown())i.lstatSync()}if(i.shouldWalk(d,p)){u.push(i)}}}if(r&&!c.flowing)c.once("drain",process)};process();return c}chdir(r=this.cwd){const i=this.cwd;this.cwd=typeof r==="string"?this.cwd.resolve(r):r;this.cwd[G](i)}}i.PathScurryBase=PathScurryBase;class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(r=process.cwd(),i={}){const{nocase:a=true}=i;super(r,d.win32,"\\",{...i,nocase:a});this.nocase=a;for(let r=this.cwd;r;r=r.parent){r.nocase=this.nocase}}parseRootPath(r){return d.win32.parse(r).root.toUpperCase()}newRoot(r){return new PathWin32(this.rootPath,P,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")||r.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(r)}}i.PathScurryWin32=PathScurryWin32;class PathScurryPosix extends PathScurryBase{sep="/";constructor(r=process.cwd(),i={}){const{nocase:a=false}=i;super(r,d.posix,"/",{...i,nocase:a});this.nocase=a}parseRootPath(r){return"/"}newRoot(r){return new PathPosix(this.rootPath,P,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")}}i.PathScurryPosix=PathScurryPosix;class PathScurryDarwin extends PathScurryPosix{constructor(r=process.cwd(),i={}){const{nocase:a=true}=i;super(r,{...i,nocase:a})}}i.PathScurryDarwin=PathScurryDarwin;i.Path=process.platform==="win32"?PathWin32:PathPosix;i.PathScurry=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix},2304:r=>{"use strict";function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r}const i=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function ensureBuffer(r){if(Buffer.isBuffer(r)){return r}if(typeof r==="number"){return Buffer.alloc(r)}else if(typeof r==="string"){return Buffer.from(r)}else{throw new Error("input must be buffer, number, or string, received "+typeof r)}}function bufferizeInt(r){const i=ensureBuffer(4);i.writeInt32BE(r,0);return i}function _crc32(r,a){r=ensureBuffer(r);if(Buffer.isBuffer(a)){a=a.readUInt32BE(0)}let s=~~a^-1;for(var l=0;l>>8}return s^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var a=crc32;const s=getDefaultExportFromCjs(a);r.exports=s},7685:r=>{"use strict";r.exports=JSON.parse('{"name":"@actions/artifact","version":"2.1.5","preview":true,"description":"Actions artifact lib","keywords":["github","actions","artifact"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/artifact","license":"MIT","main":"lib/artifact.js","types":"lib/artifact.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/artifact"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"cd ../../ && npm run test ./packages/artifact","bootstrap":"cd ../../ && npm run bootstrap","tsc-run":"tsc","tsc":"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.10.0","@actions/github":"^5.1.1","@actions/http-client":"^2.1.0","@azure/storage-blob":"^12.15.0","@octokit/core":"^3.5.1","@octokit/plugin-request-log":"^1.0.4","@octokit/plugin-retry":"^3.0.9","@octokit/request-error":"^5.0.0","@protobuf-ts/plugin":"^2.2.3-alpha.1","archiver":"^7.0.1","crypto":"^1.0.1","jwt-decode":"^3.1.2","twirp-ts":"^2.5.0","unzip-stream":"^0.3.1"},"devDependencies":{"@types/archiver":"^5.3.2","@types/unzip-stream":"^0.3.4","typedoc":"^0.25.4","typedoc-plugin-markdown":"^3.17.1","typescript":"^5.2.2"}}')},4558:r=>{"use strict";r.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},1229:r=>{"use strict";r.exports=JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]')}};var __webpack_module_cache__={};function __nccwpck_require__(r){var i=__webpack_module_cache__[r];if(i!==undefined){return i.exports}var a=__webpack_module_cache__[r]={id:r,loaded:false,exports:{}};var s=true;try{__webpack_modules__[r].call(a.exports,a,a.exports,__nccwpck_require__);s=false}finally{if(s)delete __webpack_module_cache__[r]}a.loaded=true;return a.exports}(()=>{__nccwpck_require__.nmd=r=>{r.paths=[];if(!r.children)r.children=[];return r}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const r=__nccwpck_require__(9093);const{capturePolicy:i}=__nccwpck_require__(2127);i().catch((i=>r.setFailed(i.message)))})();module.exports=__webpack_exports__})(); +var a=s(73837).inherits;var l=s(39738).ZipArchiveOutputStream;var c=s(39738).ZipArchiveEntry;var p=s(56757);var d=r.exports=function(r){if(!(this instanceof d)){return new d(r)}r=this.options=r||{};r.zlib=r.zlib||{};l.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(d,l);d.prototype._normalizeFileData=function(r){r=p.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var i=r.type==="directory";var s=r.type==="symlink";if(r.name){r.name=p.sanitizePath(r.name);if(!s&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(i||s){r.store=true}r.date=p.dateify(r.date);return r};d.prototype.entry=function(r,i,s){if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){s(new Error(i.type+" entries not currently supported"));return}if(typeof i.name!=="string"||i.name.length===0){s(new Error("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeof i.linkname!=="string"){s(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new c(i.name);a.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){a.setName(i.name,true)}if(i.store){a.setMethod(0)}if(i.comment.length>0){a.setComment(i.comment)}if(i.type==="symlink"&&typeof i.mode!=="number"){i.mode=40960}if(typeof i.mode==="number"){if(i.type==="symlink"){i.mode|=40960}a.setUnixMode(i.mode)}if(i.type==="symlink"&&typeof i.linkname==="string"){r=Buffer.from(i.linkname)}return l.prototype.entry.call(this,a,r,s)};d.prototype.finalize=function(){this.finish()}},82127: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.capturePolicy=void 0;const d=p(s(73277));const u=s(71017);const A=s(73292);const h=c(s(19093));const g=s(75963);async function capturePolicy(){const r=h.getBooleanInput("auto-capture");if(!r){h.debug("auto-capture was disabled");return Promise.resolve()}const i=h.getInput("output-file");const s=(0,u.basename)(i);h.debug(`Start shutting down iamlive`);await shutdownIamLive();h.debug(`Finished shutting down iamlive`);h.debug(`Checking policyFile ${i}`);if(!await fileExists(i)){h.debug("File not found.");throw new Error(`PolicyFile ${i} not found.`)}if(h.isDebug()){const r=await(0,A.readFile)(i);h.debug(r.toString())}return uploadPolicy(s,i,0)}i.capturePolicy=capturePolicy;async function shutdownIamLive(){const r=await(0,d.default)("name","iamlive",true);if(r.length==0){return Promise.resolve()}h.debug("shutting down iamlive…");const i=r[0];h.debug(`pid: ${i.pid}, name: ${i.name}`);process.kill(r[0].pid,"SIGTERM");await sleep(1e3);await shutdownIamLive()}function sleep(r){return new Promise((i=>setTimeout(i,r)))}async function fileExists(r){try{await(0,A.open)(r,"r");return true}catch(r){return false}}async function uploadPolicy(r,i,s){h.info(`Uploading ${i} as ${r}`);const a=new g.DefaultArtifactClient;const l=".";const c={continueOnError:false,retentionDays:s};const p=await a.uploadArtifact(r,[i],l,c);h.debug(`Policy upload result: ${JSON.stringify(p)}`);return p}},32707:module=>{module.exports=eval("require")("encoding")},39491:r=>{"use strict";r.exports=require("assert")},50852:r=>{"use strict";r.exports=require("async_hooks")},14300:r=>{"use strict";r.exports=require("buffer")},32081:r=>{"use strict";r.exports=require("child_process")},96206:r=>{"use strict";r.exports=require("console")},22057:r=>{"use strict";r.exports=require("constants")},6113:r=>{"use strict";r.exports=require("crypto")},67643:r=>{"use strict";r.exports=require("diagnostics_channel")},82361:r=>{"use strict";r.exports=require("events")},57147:r=>{"use strict";r.exports=require("fs")},73292:r=>{"use strict";r.exports=require("fs/promises")},13685:r=>{"use strict";r.exports=require("http")},85158:r=>{"use strict";r.exports=require("http2")},95687:r=>{"use strict";r.exports=require("https")},41808:r=>{"use strict";r.exports=require("net")},15673:r=>{"use strict";r.exports=require("node:events")},87561:r=>{"use strict";r.exports=require("node:fs")},93977:r=>{"use strict";r.exports=require("node:fs/promises")},70612:r=>{"use strict";r.exports=require("node:os")},49411:r=>{"use strict";r.exports=require("node:path")},97742:r=>{"use strict";r.exports=require("node:process")},84492:r=>{"use strict";r.exports=require("node:stream")},76915:r=>{"use strict";r.exports=require("node:string_decoder")},41041:r=>{"use strict";r.exports=require("node:url")},47261:r=>{"use strict";r.exports=require("node:util")},22037:r=>{"use strict";r.exports=require("os")},71017:r=>{"use strict";r.exports=require("path")},4074:r=>{"use strict";r.exports=require("perf_hooks")},85477:r=>{"use strict";r.exports=require("punycode")},63477:r=>{"use strict";r.exports=require("querystring")},12781:r=>{"use strict";r.exports=require("stream")},35356:r=>{"use strict";r.exports=require("stream/web")},71576:r=>{"use strict";r.exports=require("string_decoder")},39512:r=>{"use strict";r.exports=require("timers")},24404:r=>{"use strict";r.exports=require("tls")},57310:r=>{"use strict";r.exports=require("url")},73837:r=>{"use strict";r.exports=require("util")},29830:r=>{"use strict";r.exports=require("util/types")},71267:r=>{"use strict";r.exports=require("worker_threads")},59796:r=>{"use strict";r.exports=require("zlib")},96693:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.AbortError=void 0;class AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}i.AbortError=AbortError},95964:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.AbortError=void 0;var a=s(96693);Object.defineProperty(i,"AbortError",{enumerable:true,get:function(){return a.AbortError}})},98143:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.AzureKeyCredential=void 0;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}}i.AzureKeyCredential=AzureKeyCredential},66058:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isNamedKeyCredential=i.AzureNamedKeyCredential=void 0;const a=s(33302);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}}i.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(r){return(0,a.isObjectWithProperties)(r,["name","key"])&&typeof r.key==="string"&&typeof r.name==="string"}i.isNamedKeyCredential=isNamedKeyCredential},96512:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isSASCredential=i.AzureSASCredential=void 0;const a=s(33302);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}}i.AzureSASCredential=AzureSASCredential;function isSASCredential(r){return(0,a.isObjectWithProperties)(r,["signature"])&&typeof r.signature==="string"}i.isSASCredential=isSASCredential},59334:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isTokenCredential=i.isSASCredential=i.AzureSASCredential=i.isNamedKeyCredential=i.AzureNamedKeyCredential=i.isKeyCredential=i.AzureKeyCredential=void 0;var a=s(98143);Object.defineProperty(i,"AzureKeyCredential",{enumerable:true,get:function(){return a.AzureKeyCredential}});var l=s(93921);Object.defineProperty(i,"isKeyCredential",{enumerable:true,get:function(){return l.isKeyCredential}});var c=s(66058);Object.defineProperty(i,"AzureNamedKeyCredential",{enumerable:true,get:function(){return c.AzureNamedKeyCredential}});Object.defineProperty(i,"isNamedKeyCredential",{enumerable:true,get:function(){return c.isNamedKeyCredential}});var p=s(96512);Object.defineProperty(i,"AzureSASCredential",{enumerable:true,get:function(){return p.AzureSASCredential}});Object.defineProperty(i,"isSASCredential",{enumerable:true,get:function(){return p.isSASCredential}});var d=s(34404);Object.defineProperty(i,"isTokenCredential",{enumerable:true,get:function(){return d.isTokenCredential}})},93921:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isKeyCredential=void 0;const a=s(33302);function isKeyCredential(r){return(0,a.isObjectWithProperties)(r,["key"])&&typeof r.key==="string"}i.isKeyCredential=isKeyCredential},34404:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isTokenCredential=void 0;function isTokenCredential(r){const i=r;return i&&typeof i.getToken==="function"&&(i.signRequest===undefined||i.getToken.length>0)}i.isTokenCredential=isTokenCredential},26562:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.pollHttpOperation=i.isOperationError=i.getResourceLocation=i.getOperationStatus=i.getOperationLocation=i.initHttpOperation=i.getStatusFromInitialResponse=i.getErrorFromResponse=i.parseRetryAfter=i.inferLroMode=void 0;const a=s(5258);const l=s(6558);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}}i.inferLroMode=inferLroMode;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:{l.logger.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}i.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(r){const i=accessBodyProperty(r,"error");if(!i){l.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!i.code||!i.message){l.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return i}i.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(r){const i=Math.floor((new Date).getTime());const s=r.getTime();if(i{const r=await c.sendInitialRequest();const i=inferLroMode({rawResponse:r.rawResponse,requestPath:c.requestPath,requestMethod:c.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:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:p})}i.initHttpOperation=initHttpOperation;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}}}i.getOperationLocation=getOperationLocation;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}`)}}i.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:r,rawResponse:i},s){var a,l;return(a=r===null||r===void 0?void 0:r[s])!==null&&a!==void 0?a:(l=i.body)===null||l===void 0?void 0:l[s]}function getResourceLocation(r,i){const s=accessBodyProperty(r,"resourceLocation");if(s&&typeof s==="string"){i.config.resourceLocation=s}return i.config.resourceLocation}i.getResourceLocation=getResourceLocation;function isOperationError(r){return r.name==="RestError"}i.isOperationError=isOperationError;async function pollHttpOperation(r){const{lro:i,stateProxy:s,options:l,processResult:c,updateState:p,setDelay:d,state:u,setErrorAsResult:A}=r;return(0,a.pollOperation)({state:u,stateProxy:s,setDelay:d,processResult:c?({flatResponse:r},i)=>c(r,i):({flatResponse:r})=>r,getError:getErrorFromResponse,updateState:p,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:l,poll:async(r,s)=>i.sendPollRequest(r,s),setErrorAsResult:A})}i.pollHttpOperation=pollHttpOperation},18969:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createHttpPoller=void 0;const a=s(26562);const l=s(92233);async function createHttpPoller(r,i){const{resourceLocationConfig:s,intervalInMs:c,processResult:p,restoreFrom:d,updateState:u,withOperationLocation:A,resolveOnUnsuccessful:h=false}=i||{};return(0,l.buildCreatePoller)({getStatusFromInitialResponse:a.getStatusFromInitialResponse,getStatusFromPollResponse:a.getOperationStatus,isOperationError:a.isOperationError,getOperationLocation:a.getOperationLocation,getResourceLocation:a.getResourceLocation,getPollingInterval:a.parseRetryAfter,getError:a.getErrorFromResponse,resolveOnUnsuccessful:h})({init:async()=>{const i=await r.sendInitialRequest();const l=(0,a.inferLroMode)({rawResponse:i.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:s});return Object.assign({response:i,operationLocation:l===null||l===void 0?void 0:l.operationLocation,resourceLocation:l===null||l===void 0?void 0:l.resourceLocation},(l===null||l===void 0?void 0:l.mode)?{metadata:{mode:l.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:c,withOperationLocation:A,restoreFrom:d,updateState:u,processResult:p?({flatResponse:r},i)=>p(r,i):({flatResponse:r})=>r})}i.createHttpPoller=createHttpPoller},92045:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createHttpPoller=void 0;const a=s(83134);var l=s(18969);Object.defineProperty(i,"createHttpPoller",{enumerable:true,get:function(){return l.createHttpPoller}});a.__exportStar(s(37386),i);a.__exportStar(s(77426),i);a.__exportStar(s(73053),i)},37386:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.LroEngine=void 0;var a=s(54279);Object.defineProperty(i,"LroEngine",{enumerable:true,get:function(){return a.LroEngine}})},54279:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.LroEngine=void 0;const a=s(89418);const l=s(40474);const c=s(77426);const p=s(5258);class LroEngine extends c.Poller{constructor(r,i){const{intervalInMs:s=l.POLL_INTERVAL_IN_MS,resumeFrom:c,resolveOnUnsuccessful:d=false,isDone:u,lroResourceLocationConfig:A,processResult:h,updateState:g}=i||{};const y=c?(0,p.deserializeState)(c):{};const b=new a.GenericPollOperation(y,r,!d,A,h,g,u);super(b);this.resolveOnUnsuccessful=d;this.config={intervalInMs:s};b.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}i.LroEngine=LroEngine},89418:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.GenericPollOperation=void 0;const a=s(26562);const l=s(6558);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(0,a.initHttpOperation)({lro:this.lro,stateProxy:s,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const l=this.updateState;const c=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,a.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:s,processResult:this.processResult,updateState:l?(r,{rawResponse:i})=>l(r,i):undefined,isDone:c?({flatResponse:r},i)=>c(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(){l.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}i.GenericPollOperation=GenericPollOperation},73053:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true})},77426:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Poller=i.PollerCancelledError=i.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}i.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}i.PollerCancelledError=PollerCancelledError;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()}}i.Poller=Poller},6558:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.logger=void 0;const a=s(8076);i.logger=(0,a.createClientLogger)("core-lro")},40474:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.terminalStates=i.POLL_INTERVAL_IN_MS=void 0;i.POLL_INTERVAL_IN_MS=2e3;i.terminalStates=["succeeded","canceled","failed"]},5258:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.pollOperation=i.initOperation=i.deserializeState=void 0;const a=s(6558);const l=s(40474);function deserializeState(r){try{return JSON.parse(r).state}catch(i){throw new Error(`Unable to deserialize input state: ${r}`)}}i.deserializeState=deserializeState;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:l,isDone:c,processResult:p,getError:d,response:u,setErrorAsResult:A}=r;switch(l){case"succeeded":{s.setSucceeded(i);break}case"failed":{const r=d===null||d===void 0?void 0:d(u);let l="";if(r){const{code:i,message:s}=simplifyError(r);l=`. ${i}. ${s}`}const c=`The long-running operation has failed${l}`;s.setError(i,new Error(c));s.setFailed(i);a.logger.warning(c);break}case"canceled":{s.setCanceled(i);break}}if((c===null||c===void 0?void 0:c(u,i))||c===undefined&&["succeeded","canceled"].concat(A?[]:["failed"]).includes(l)){s.setResult(i,buildResult({response:u,state:i,processResult:p}))}}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:l,getOperationStatus:c,withOperationLocation:p,setErrorAsResult:d}=r;const{operationLocation:u,resourceLocation:A,metadata:h,response:g}=await i();if(u)p===null||p===void 0?void 0:p(u,false);const y={metadata:h,operationLocation:u,resourceLocation:A};a.logger.verbose(`LRO: Operation description:`,y);const b=s.initState(y);const C=c({response:g,state:b,operationLocation:u});processOperationStatus({state:b,status:C,stateProxy:s,response:g,setErrorAsResult:d,processResult:l});return b}i.initOperation=initOperation;async function pollOperationHelper(r){const{poll:i,state:s,stateProxy:c,operationLocation:p,getOperationStatus:d,getResourceLocation:u,isOperationError:A,options:h}=r;const g=await i(p,h).catch(setStateError({state:s,stateProxy:c,isOperationError:A}));const y=d(g,s);a.logger.verbose(`LRO: Status:\n\tPolling from: ${s.config.operationLocation}\n\tOperation status: ${y}\n\tPolling status: ${l.terminalStates.includes(y)?"Stopped":"Running"}`);if(y==="succeeded"){const r=u(g,s);if(r!==undefined){return{response:await i(r).catch(setStateError({state:s,stateProxy:c,isOperationError:A})),status:y}}}return{response:g,status:y}}async function pollOperation(r){const{poll:i,state:s,stateProxy:a,options:c,getOperationStatus:p,getResourceLocation:d,getOperationLocation:u,isOperationError:A,withOperationLocation:h,getPollingInterval:g,processResult:y,getError:b,updateState:C,setDelay:v,isDone:B,setErrorAsResult:w}=r;const{operationLocation:I}=s.config;if(I!==undefined){const{response:r,status:S}=await pollOperationHelper({poll:i,getOperationStatus:p,state:s,stateProxy:a,operationLocation:I,getResourceLocation:d,isOperationError:A,options:c});processOperationStatus({status:S,response:r,state:s,stateProxy:a,isDone:B,processResult:y,getError:b,setErrorAsResult:w});if(!l.terminalStates.includes(S)){const i=g===null||g===void 0?void 0:g(r);if(i)v(i);const a=u===null||u===void 0?void 0:u(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)}C===null||C===void 0?void 0:C(s,r)}}i.pollOperation=pollOperation},92233:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.buildCreatePoller=void 0;const a=s(5258);const l=s(40474);const c=s(33302);const createStateProxy=()=>({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:p,isOperationError:d,getResourceLocation:u,getPollingInterval:A,getError:h,resolveOnUnsuccessful:g}=r;return async({init:r,poll:y},b)=>{const{processResult:C,updateState:v,withOperationLocation:B,intervalInMs:w=l.POLL_INTERVAL_IN_MS,restoreFrom:I}=b||{};const S=createStateProxy();const Q=B?(()=>{let r=false;return(i,s)=>{if(s)B(i);else if(!r)B(i);r=true}})():undefined;const x=I?(0,a.deserializeState)(I):await(0,a.initOperation)({init:r,stateProxy:S,processResult:C,getOperationStatus:s,withOperationLocation:Q,setErrorAsResult:!g});let N;const R=new AbortController;const T=new Map;const handleProgressEvents=async()=>T.forEach((r=>r(x)));const D="Operation was canceled";let _=w;const k={getOperationState:()=>x,getResult:()=>x.result,isDone:()=>["succeeded","failed","canceled"].includes(x.status),isStopped:()=>N===undefined,stopPolling:()=>{R.abort()},toString:()=>JSON.stringify({state:x}),onProgress:r=>{const i=Symbol();T.set(i,r);return()=>T.delete(i)},pollUntilDone:r=>N!==null&&N!==void 0?N:N=(async()=>{const{abortSignal:i}=r||{};function abortListener(){R.abort()}const s=R.signal;if(i===null||i===void 0?void 0:i.aborted){R.abort()}else if(!s.aborted){i===null||i===void 0?void 0:i.addEventListener("abort",abortListener,{once:true})}try{if(!k.isDone()){await k.poll({abortSignal:s});while(!k.isDone()){await(0,c.delay)(_,{abortSignal:s});await k.poll({abortSignal:s})}}}finally{i===null||i===void 0?void 0:i.removeEventListener("abort",abortListener)}if(g){return k.getResult()}else{switch(x.status){case"succeeded":return k.getResult();case"canceled":throw new Error(D);case"failed":throw x.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{N=undefined})),async poll(r){if(g){if(k.isDone())return}else{switch(x.status){case"succeeded":return;case"canceled":throw new Error(D);case"failed":throw x.error}}await(0,a.pollOperation)({poll:y,state:x,stateProxy:S,getOperationLocation:i,isOperationError:d,withOperationLocation:Q,getPollingInterval:A,getOperationStatus:p,getResourceLocation:u,processResult:C,getError:h,updateState:v,options:r,setDelay:r=>{_=r},setErrorAsResult:!g});await handleProgressEvents();if(!g){switch(x.status){case"canceled":throw new Error(D);case"failed":throw x.error}}}};return k}}i.buildCreatePoller=buildCreatePoller},62766:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getPagedAsyncIterator=void 0;const a=s(83134);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})}}}i.getPagedAsyncIterator=getPagedAsyncIterator;function getItemAsyncIterator(r){return a.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var i,s,l,c,p,d,u,A;const h=getPageAsyncIterator(r);const g=yield a.__await(h.next());if(!Array.isArray(g.value)){const{toElements:p}=r;if(p){yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(p(g.value))));try{for(var y=true,b=a.__asyncValues(h),C;C=yield a.__await(b.next()),i=C.done,!i;y=true){c=C.value;y=false;const r=c;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(p(r))))}}catch(r){s={error:r}}finally{try{if(!y&&!i&&(l=b.return))yield a.__await(l.call(b))}finally{if(s)throw s.error}}}else{yield yield a.__await(g.value);yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(h)))}}else{yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(g.value)));try{for(var v=true,B=a.__asyncValues(h),w;w=yield a.__await(B.next()),p=w.done,!p;v=true){A=w.value;v=false;const r=A;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(r)))}}catch(r){d={error:r}}finally{try{if(!v&&!p&&(u=B.return))yield a.__await(u.call(B))}finally{if(d)throw d.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)}}))}},31181:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=s(83134);a.__exportStar(s(67483),i);a.__exportStar(s(62766),i)},67483:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true})},80621:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.cancelablePromiseRace=void 0;async function cancelablePromiseRace(r,i){var s,a;const l=new AbortController;function abortHandler(){l.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:l.signal}))))}finally{l.abort();(a=i===null||i===void 0?void 0:i.abortSignal)===null||a===void 0?void 0:a.removeEventListener("abort",abortHandler)}}i.cancelablePromiseRace=cancelablePromiseRace},4407:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.stringToUint8Array=i.uint8ArrayToString=void 0;function uint8ArrayToString(r,i){return Buffer.from(r).toString(i)}i.uint8ArrayToString=uint8ArrayToString;function stringToUint8Array(r,i){return Buffer.from(r,i)}i.stringToUint8Array=stringToUint8Array},7657:(r,i)=>{"use strict";var s,a,l,c;Object.defineProperty(i,"__esModule",{value:true});i.isReactNative=i.isNodeRuntime=i.isNode=i.isNodeLike=i.isBun=i.isDeno=i.isWebWorker=i.isBrowser=void 0;i.isBrowser=typeof window!=="undefined"&&typeof window.document!=="undefined";i.isWebWorker=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((s=self.constructor)===null||s===void 0?void 0:s.name)==="DedicatedWorkerGlobalScope"||((a=self.constructor)===null||a===void 0?void 0:a.name)==="ServiceWorkerGlobalScope"||((l=self.constructor)===null||l===void 0?void 0:l.name)==="SharedWorkerGlobalScope");i.isDeno=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";i.isBun=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";i.isNodeLike=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean((c=globalThis.process.versions)===null||c===void 0?void 0:c.node);i.isNode=i.isNodeLike;i.isNodeRuntime=i.isNodeLike&&!i.isBun&&!i.isDeno;i.isReactNative=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative"},94028:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createAbortablePromise=void 0;const a=s(95964);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)}))}i.createAbortablePromise=createAbortablePromise},71895:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.delay=void 0;const a=s(94028);const l="The delay was aborted.";function delay(r,i){let s;const{abortSignal:c,abortErrorMsg:p}=i!==null&&i!==void 0?i:{};return(0,a.createAbortablePromise)((i=>{s=setTimeout(i,r)}),{cleanupBeforeAbort:()=>clearTimeout(s),abortSignal:c,abortErrorMsg:p!==null&&p!==void 0?p:l})}i.delay=delay},61562:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getErrorMessage=i.isError=void 0;const a=s(80565);function isError(r){if((0,a.isObject)(r)){const i=typeof r.name==="string";const s=typeof r.message==="string";return i&&s}return false}i.isError=isError;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}`}}i.getErrorMessage=getErrorMessage},33302:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.stringToUint8Array=i.uint8ArrayToString=i.isWebWorker=i.isReactNative=i.isDeno=i.isNodeRuntime=i.isNodeLike=i.isNode=i.isBun=i.isBrowser=i.randomUUID=i.objectHasProperty=i.isObjectWithProperties=i.isDefined=i.computeSha256Hmac=i.computeSha256Hash=i.getErrorMessage=i.isError=i.isObject=i.getRandomIntegerInclusive=i.createAbortablePromise=i.cancelablePromiseRace=i.delay=void 0;var a=s(71895);Object.defineProperty(i,"delay",{enumerable:true,get:function(){return a.delay}});var l=s(80621);Object.defineProperty(i,"cancelablePromiseRace",{enumerable:true,get:function(){return l.cancelablePromiseRace}});var c=s(94028);Object.defineProperty(i,"createAbortablePromise",{enumerable:true,get:function(){return c.createAbortablePromise}});var p=s(66265);Object.defineProperty(i,"getRandomIntegerInclusive",{enumerable:true,get:function(){return p.getRandomIntegerInclusive}});var d=s(80565);Object.defineProperty(i,"isObject",{enumerable:true,get:function(){return d.isObject}});var u=s(61562);Object.defineProperty(i,"isError",{enumerable:true,get:function(){return u.isError}});Object.defineProperty(i,"getErrorMessage",{enumerable:true,get:function(){return u.getErrorMessage}});var A=s(6261);Object.defineProperty(i,"computeSha256Hash",{enumerable:true,get:function(){return A.computeSha256Hash}});Object.defineProperty(i,"computeSha256Hmac",{enumerable:true,get:function(){return A.computeSha256Hmac}});var h=s(4609);Object.defineProperty(i,"isDefined",{enumerable:true,get:function(){return h.isDefined}});Object.defineProperty(i,"isObjectWithProperties",{enumerable:true,get:function(){return h.isObjectWithProperties}});Object.defineProperty(i,"objectHasProperty",{enumerable:true,get:function(){return h.objectHasProperty}});var g=s(78962);Object.defineProperty(i,"randomUUID",{enumerable:true,get:function(){return g.randomUUID}});var y=s(7657);Object.defineProperty(i,"isBrowser",{enumerable:true,get:function(){return y.isBrowser}});Object.defineProperty(i,"isBun",{enumerable:true,get:function(){return y.isBun}});Object.defineProperty(i,"isNode",{enumerable:true,get:function(){return y.isNode}});Object.defineProperty(i,"isNodeLike",{enumerable:true,get:function(){return y.isNodeLike}});Object.defineProperty(i,"isNodeRuntime",{enumerable:true,get:function(){return y.isNodeRuntime}});Object.defineProperty(i,"isDeno",{enumerable:true,get:function(){return y.isDeno}});Object.defineProperty(i,"isReactNative",{enumerable:true,get:function(){return y.isReactNative}});Object.defineProperty(i,"isWebWorker",{enumerable:true,get:function(){return y.isWebWorker}});var b=s(4407);Object.defineProperty(i,"uint8ArrayToString",{enumerable:true,get:function(){return b.uint8ArrayToString}});Object.defineProperty(i,"stringToUint8Array",{enumerable:true,get:function(){return b.stringToUint8Array}})},80565:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.isObject=void 0;function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}i.isObject=isObject},66265:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getRandomIntegerInclusive=void 0;function getRandomIntegerInclusive(r,i){r=Math.ceil(r);i=Math.floor(i);const s=Math.floor(Math.random()*(i-r+1));return s+r}i.getRandomIntegerInclusive=getRandomIntegerInclusive},6261:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.computeSha256Hash=i.computeSha256Hmac=void 0;const a=s(6113);async function computeSha256Hmac(r,i,s){const l=Buffer.from(r,"base64");return(0,a.createHmac)("sha256",l).update(i).digest(s)}i.computeSha256Hmac=computeSha256Hmac;async function computeSha256Hash(r,i){return(0,a.createHash)("sha256").update(r).digest(i)}i.computeSha256Hash=computeSha256Hash},4609:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.objectHasProperty=i.isObjectWithProperties=i.isDefined=void 0;function isDefined(r){return typeof r!=="undefined"&&r!==null}i.isDefined=isDefined;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}i.isObjectWithProperties=isObjectWithProperties;function objectHasProperty(r,i){return isDefined(r)&&typeof r==="object"&&i in r}i.objectHasProperty=objectHasProperty},78962:(r,i,s)=>{"use strict";var a;Object.defineProperty(i,"__esModule",{value:true});i.randomUUID=void 0;const l=s(6113);const c=typeof((a=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||a===void 0?void 0:a.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):l.randomUUID;function randomUUID(){return c()}i.randomUUID=randomUUID},28713:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=s(29626);const l=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let c;let p=[];let d=[];const u=[];if(l){enable(l)}const A=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:a.log});function enable(r){c=r;p=[];d=[];const i=/\*/g;const s=r.split(",").map((r=>r.trim().replace(i,".*?")));for(const r of s){if(r.startsWith("-")){d.push(new RegExp(`^${r.substr(1)}$`))}else{p.push(new RegExp(`^${r}$`))}}for(const r of u){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const i of d){if(i.test(r)){return false}}for(const i of p){if(i.test(r)){return true}}return false}function disable(){const r=c||"";enable("");return r}function createDebugger(r){const i=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:A.log,namespace:r,extend:extend});function debug(...s){if(!i.enabled){return}if(s.length>0){s[0]=`${r} ${s[0]}`}i.log(...s)}u.push(i);return i}function destroy(){const r=u.indexOf(this);if(r>=0){u.splice(r,1);return true}return false}function extend(r){const i=createDebugger(`${this.namespace}:${r}`);i.log=this.log;return i}i["default"]=A},8076:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.createClientLogger=i.getLogLevel=i.setLogLevel=i.AzureLogger=void 0;const a=s(83134);const l=a.__importDefault(s(28713));const c=new Set;const p=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let d;i.AzureLogger=(0,l.default)("azure");i.AzureLogger.log=(...r)=>{l.default.log(...r)};const u=["verbose","info","warning","error"];if(p){if(isAzureLogLevel(p)){setLogLevel(p)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${p}'; logging is not enabled. Acceptable values: ${u.join(", ")}.`)}}function setLogLevel(r){if(r&&!isAzureLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${u.join(",")}`)}d=r;const i=[];for(const r of c){if(shouldEnable(r)){i.push(r.namespace)}}l.default.enable(i.join(","))}i.setLogLevel=setLogLevel;function getLogLevel(){return d}i.getLogLevel=getLogLevel;const A={verbose:400,info:300,warning:200,error:100};function createClientLogger(r){const s=i.AzureLogger.extend(r);patchLogMethod(i.AzureLogger,s);return{error:createLogger(s,"error"),warning:createLogger(s,"warning"),info:createLogger(s,"info"),verbose:createLogger(s,"verbose")}}i.createClientLogger=createClientLogger;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=l.default.disable();l.default.enable(r+","+s.namespace)}c.add(s);return s}function shouldEnable(r){return Boolean(d&&A[r.level]<=A[d])}function isAzureLogLevel(r){return u.includes(r)}},29626:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.log=void 0;const a=s(83134);const l=s(70612);const c=a.__importDefault(s(47261));const p=a.__importStar(s(97742));function log(r,...i){p.stderr.write(`${c.default.format(r,...i)}${l.EOL}`)}i.log=log},35992:(r,i,s)=>{"use strict";const a=s(84492).Writable;const l=s(47261).inherits;const c=s(23304);const p=s(34215);const d=s(15412);const u=45;const A=Buffer.from("-");const h=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(r){if(!(this instanceof Dicer)){return new Dicer(r)}a.call(this,r);if(!r||!r.headerFirst&&typeof r.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof r.boundary==="string"){this.setBoundary(r.boundary)}else{this._bparser=undefined}this._headerFirst=r.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:r.partHwm};this._pause=false;const i=this;this._hparser=new d(r);this._hparser.on("header",(function(r){i._inHeader=false;i._part.emit("header",r)}))}l(Dicer,a);Dicer.prototype.emit=function(r){if(r==="finish"&&!this._realFinish){if(!this._finished){const r=this;process.nextTick((function(){r.emit("error",new Error("Unexpected end of multipart data"));if(r._part&&!r._ignoreData){const i=r._isPreamble?"Preamble":"Part";r._part.emit("error",new Error(i+" terminated early due to unexpected end of multipart data"));r._part.push(null);process.nextTick((function(){r._realFinish=true;r.emit("finish");r._realFinish=false}));return}r._realFinish=true;r.emit("finish");r._realFinish=false}))}}else{a.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(r,i,s){if(!this._hparser&&!this._bparser){return s()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new p(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const i=this._hparser.push(r);if(!this._inHeader&&i!==undefined&&i{"use strict";const a=s(15673).EventEmitter;const l=s(47261).inherits;const c=s(2160);const p=s(23304);const d=Buffer.from("\r\n\r\n");const u=/\r\n/g;const A=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(r){a.call(this);r=r||{};const i=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=c(r,"maxHeaderPairs",2e3);this.maxHeaderSize=c(r,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new p(d);this.ss.on("info",(function(r,s,a,l){if(s&&!i.maxed){if(i.nread+l-a>=i.maxHeaderSize){l=i.maxHeaderSize-i.nread+a;i.nread=i.maxHeaderSize;i.maxed=true}else{i.nread+=l-a}i.buffer+=s.toString("binary",a,l)}if(r){i._finish()}}))}l(HeaderParser,a);HeaderParser.prototype.push=function(r){const i=this.ss.push(r);if(this.finished){return i}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const r=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",r)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const r=this.buffer.split(u);const i=r.length;let s,a;for(var l=0;l{"use strict";const a=s(47261).inherits;const l=s(84492).Readable;function PartStream(r){l.call(this,r)}a(PartStream,l);PartStream.prototype._read=function(r){};r.exports=PartStream},23304:(r,i,s)=>{"use strict";const a=s(15673).EventEmitter;const l=s(47261).inherits;function SBMH(r){if(typeof r==="string"){r=Buffer.from(r)}if(!Buffer.isBuffer(r)){throw new TypeError("The needle has to be a String or a Buffer.")}const i=r.length;if(i===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(i>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(i);this._lookbehind_size=0;this._needle=r;this._bufpos=0;this._lookbehind=Buffer.alloc(i);for(var s=0;s=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const s=this._lookbehind_size+c;if(s>0){this.emit("info",false,this._lookbehind,0,s)}this._lookbehind.copy(this._lookbehind,0,s,this._lookbehind_size-s);this._lookbehind_size-=s;r.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=i;this._bufpos=i;return i}}c+=(c>=0)*this._bufpos;if(r.indexOf(s,c)!==-1){c=r.indexOf(s,c);++this.matches;if(c>0){this.emit("info",true,r,this._bufpos,c)}else{this.emit("info",true)}return this._bufpos=c+a}else{c=i-a}while(c0){this.emit("info",false,r,this._bufpos,c{"use strict";const a=s(84492).Writable;const{inherits:l}=s(47261);const c=s(35992);const p=s(46311);const d=s(36173);const u=s(63576);function Busboy(r){if(!(this instanceof Busboy)){return new Busboy(r)}if(typeof r!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof r.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof r.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:i,...s}=r;this.opts={autoDestroy:false,...s};a.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(i);this._finished=false}l(Busboy,a);Busboy.prototype.emit=function(r){if(r==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}a.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(r){const i=u(r["content-type"]);const s={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:r,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:i,preservePath:this.opts.preservePath};if(p.detect.test(i[0])){return new p(this,s)}if(d.detect.test(i[0])){return new d(this,s)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(r,i,s){this._parser.write(r,s)};r.exports=Busboy;r.exports["default"]=Busboy;r.exports.Busboy=Busboy;r.exports.Dicer=c},46311:(r,i,s)=>{"use strict";const{Readable:a}=s(84492);const{inherits:l}=s(47261);const c=s(35992);const p=s(63576);const d=s(884);const u=s(46504);const A=s(2160);const h=/^boundary$/i;const g=/^form-data$/i;const y=/^charset$/i;const b=/^filename$/i;const C=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(r,i){let s;let a;const l=this;let v;const B=i.limits;const w=i.isPartAFile||((r,i,s)=>i==="application/octet-stream"||s!==undefined);const I=i.parsedConType||[];const S=i.defCharset||"utf8";const Q=i.preservePath;const x={highWaterMark:i.fileHwm};for(s=0,a=I.length;s_){l.parser.removeListener("part",onPart);l.parser.on("part",skipPart);r.hitPartsLimit=true;r.emit("partsLimit");return skipPart(i)}if(H){const r=H;r.emit("end");r.removeAllListeners("end")}i.on("header",(function(c){let A;let h;let v;let B;let I;let _;let k=0;if(c["content-type"]){v=p(c["content-type"][0]);if(v[0]){A=v[0].toLowerCase();for(s=0,a=v.length;sR){const a=R-k+r.length;if(a>0){s.push(r.slice(0,a))}s.truncated=true;s.bytesRead=R;i.removeAllListeners("data");s.emit("limit");return}else if(!s.push(r)){l._pause=true}s.bytesRead=k};j=function(){U=undefined;s.push(null)}}else{if(L===D){if(!r.hitFieldsLimit){r.hitFieldsLimit=true;r.emit("fieldsLimit")}return skipPart(i)}++L;++M;let s="";let a=false;H=i;P=function(r){if((k+=r.length)>N){const l=N-(k-r.length);s+=r.toString("binary",0,l);a=true;i.removeAllListeners("data")}else{s+=r.toString("binary")}};j=function(){H=undefined;if(s.length){s=d(s,"binary",B)}r.emit("field",h,s,false,a,I,A);--M;checkFinished()}}i._readableState.sync=false;i.on("data",P);i.on("end",j)})).on("error",(function(r){if(U){U.emit("error",r)}}))})).on("error",(function(i){r.emit("error",i)})).on("finish",(function(){j=true;checkFinished()}))}Multipart.prototype.write=function(r,i){const s=this.parser.write(r);if(s&&!this._pause){i()}else{this._needDrain=!s;this._cb=i}};Multipart.prototype.end=function(){const r=this;if(r.parser.writable){r.parser.end()}else if(!r._boy._done){process.nextTick((function(){r._boy._done=true;r._boy.emit("finish")}))}};function skipPart(r){r.resume()}function FileStream(r){a.call(this,r);this.bytesRead=0;this.truncated=false}l(FileStream,a);FileStream.prototype._read=function(r){};r.exports=Multipart},36173:(r,i,s)=>{"use strict";const a=s(89687);const l=s(884);const c=s(2160);const p=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(r,i){const s=i.limits;const l=i.parsedConType;this.boy=r;this.fieldSizeLimit=c(s,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=c(s,"fieldNameSize",100);this.fieldsLimit=c(s,"fields",Infinity);let d;for(var u=0,A=l.length;up){this._key+=this.decoder.write(r.toString("binary",p,s))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();p=s+1}else if(a!==undefined){++this._fields;let s;const c=this._keyTrunc;if(a>p){s=this._key+=this.decoder.write(r.toString("binary",p,a))}else{s=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(s.length){this.boy.emit("field",l(s,"binary",this.charset),"",c,false)}p=a+1;if(this._fields===this.fieldsLimit){return i()}}else if(this._hitLimit){if(c>p){this._key+=this.decoder.write(r.toString("binary",p,c))}p=c;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(pp){this._val+=this.decoder.write(r.toString("binary",p,a))}this.boy.emit("field",l(this._key,"binary",this.charset),l(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();p=a+1;if(this._fields===this.fieldsLimit){return i()}}else if(this._hitLimit){if(c>p){this._val+=this.decoder.write(r.toString("binary",p,c))}p=c;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(p0){this.boy.emit("field",l(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",l(this._key,"binary",this.charset),l(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};r.exports=UrlEncoded},89687:r=>{"use strict";const i=/\+/g;const s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(r){r=r.replace(i," ");let a="";let l=0;let c=0;const p=r.length;for(;lc){a+=r.substring(c,l);c=l}this.buffer="";++c}}if(c{"use strict";r.exports=function basename(r){if(typeof r!=="string"){return""}for(var i=r.length-1;i>=0;--i){switch(r.charCodeAt(i)){case 47:case 92:r=r.slice(i+1);return r===".."||r==="."?"":r}}return r===".."||r==="."?"":r}},884:function(r){"use strict";const i=new TextDecoder("utf-8");const s=new Map([["utf-8",i],["utf8",i]]);function getDecoder(r){let i;while(true){switch(r){case"utf-8":case"utf8":return a.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return a.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return a.utf16le;case"base64":return a.base64;default:if(i===undefined){i=true;r=r.toLowerCase();continue}return a.other.bind(r)}}}const a={utf8:(r,i)=>{if(r.length===0){return""}if(typeof r==="string"){r=Buffer.from(r,i)}return r.utf8Slice(0,r.length)},latin1:(r,i)=>{if(r.length===0){return""}if(typeof r==="string"){return r}return r.latin1Slice(0,r.length)},utf16le:(r,i)=>{if(r.length===0){return""}if(typeof r==="string"){r=Buffer.from(r,i)}return r.ucs2Slice(0,r.length)},base64:(r,i)=>{if(r.length===0){return""}if(typeof r==="string"){r=Buffer.from(r,i)}return r.base64Slice(0,r.length)},other:(r,i)=>{if(r.length===0){return""}if(typeof r==="string"){r=Buffer.from(r,i)}if(s.has(this.toString())){try{return s.get(this).decode(r)}catch{}}return typeof r==="string"?r:r.toString()}};function decodeText(r,i,s){if(r){return getDecoder(s)(r,i)}return r}r.exports=decodeText},2160:r=>{"use strict";r.exports=function getLimit(r,i,s){if(!r||r[i]===undefined||r[i]===null){return s}if(typeof r[i]!=="number"||isNaN(r[i])){throw new TypeError("Limit "+i+" is not a valid number")}return r[i]}},63576:(r,i,s)=>{"use strict";const a=s(884);const l=/%[a-fA-F0-9][a-fA-F0-9]/g;const c={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(r){return c[r]}const p=0;const d=1;const u=2;const A=3;function parseParams(r){const i=[];let s=p;let c="";let h=false;let g=false;let y=0;let b="";const C=r.length;for(var v=0;v{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Glob=void 0;const a=s(39879);const l=s(41041);const c=s(95326);const p=s(15213);const d=s(47197);const u=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(r,i){if(!i)throw new TypeError("glob options required");this.withFileTypes=!!i.withFileTypes;this.signal=i.signal;this.follow=!!i.follow;this.dot=!!i.dot;this.dotRelative=!!i.dotRelative;this.nodir=!!i.nodir;this.mark=!!i.mark;if(!i.cwd){this.cwd=""}else if(i.cwd instanceof URL||i.cwd.startsWith("file://")){i.cwd=(0,l.fileURLToPath)(i.cwd)}this.cwd=i.cwd||"";this.root=i.root;this.magicalBraces=!!i.magicalBraces;this.nobrace=!!i.nobrace;this.noext=!!i.noext;this.realpath=!!i.realpath;this.absolute=i.absolute;this.includeChildMatches=i.includeChildMatches!==false;this.noglobstar=!!i.noglobstar;this.matchBase=!!i.matchBase;this.maxDepth=typeof i.maxDepth==="number"?i.maxDepth:Infinity;this.stat=!!i.stat;this.ignore=i.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof r==="string"){r=[r]}this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===false;if(this.windowsPathsNoEscape){r=r.map((r=>r.replace(/\\/g,"/")))}if(this.matchBase){if(i.noglobstar){throw new TypeError("base matching requires globstar")}r=r.map((r=>r.includes("/")?r:`./**/${r}`))}this.pattern=r;this.platform=i.platform||u;this.opts={...i,platform:this.platform};if(i.scurry){this.scurry=i.scurry;if(i.nocase!==undefined&&i.nocase!==i.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const r=i.platform==="win32"?c.PathScurryWin32:i.platform==="darwin"?c.PathScurryDarwin:i.platform?c.PathScurryPosix:c.PathScurry;this.scurry=new r(this.cwd,{nocase:i.nocase,fs:i.fs})}this.nocase=this.scurry.nocase;const s=this.platform==="darwin"||this.platform==="win32";const d={...i,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const A=this.pattern.map((r=>new a.Minimatch(r,d)));const[h,g]=A.reduce(((r,i)=>{r[0].push(...i.set);r[1].push(...i.globParts);return r}),[[],[]]);this.patterns=h.map(((r,i)=>{const s=g[i];if(!s)throw new Error("invalid pattern object");return new p.Pattern(r,s,0,this.platform)}))}async walk(){return[...await new d.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new d.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new d.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new d.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}i.Glob=Glob},6402:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.hasMagic=void 0;const a=s(39879);const hasMagic=(r,i={})=>{if(!Array.isArray(r)){r=[r]}for(const s of r){if(new a.Minimatch(s,i).hasMagic())return true}return false};i.hasMagic=hasMagic},66817:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Ignore=void 0;const a=s(39879);const l=s(15213);const c=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(r,{nobrace:i,nocase:s,noext:a,noglobstar:l,platform:p=c}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];this.platform=p;this.mmopts={dot:true,nobrace:i,nocase:s,noext:a,noglobstar:l,optimizationLevel:2,platform:p,nocomment:true,nonegate:true};for(const i of r)this.add(i)}add(r){const i=new a.Minimatch(r,this.mmopts);for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.glob=i.sync=i.iterate=i.iterateSync=i.stream=i.streamSync=i.globIterate=i.globIterateSync=i.globSync=i.globStream=i.globStreamSync=i.Ignore=i.hasMagic=i.Glob=i.unescape=i.escape=void 0;const a=s(39879);const l=s(68694);const c=s(6402);var p=s(39879);Object.defineProperty(i,"escape",{enumerable:true,get:function(){return p.escape}});Object.defineProperty(i,"unescape",{enumerable:true,get:function(){return p.unescape}});var d=s(68694);Object.defineProperty(i,"Glob",{enumerable:true,get:function(){return d.Glob}});var u=s(6402);Object.defineProperty(i,"hasMagic",{enumerable:true,get:function(){return u.hasMagic}});var A=s(66817);Object.defineProperty(i,"Ignore",{enumerable:true,get:function(){return A.Ignore}});function globStreamSync(r,i={}){return new l.Glob(r,i).streamSync()}i.globStreamSync=globStreamSync;function globStream(r,i={}){return new l.Glob(r,i).stream()}i.globStream=globStream;function globSync(r,i={}){return new l.Glob(r,i).walkSync()}i.globSync=globSync;async function glob_(r,i={}){return new l.Glob(r,i).walk()}function globIterateSync(r,i={}){return new l.Glob(r,i).iterateSync()}i.globIterateSync=globIterateSync;function globIterate(r,i={}){return new l.Glob(r,i).iterate()}i.globIterate=globIterate;i.streamSync=globStreamSync;i.stream=Object.assign(globStream,{sync:globStreamSync});i.iterateSync=globIterateSync;i.iterate=Object.assign(globIterate,{sync:globIterateSync});i.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});i.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:i.sync,globStream:globStream,stream:i.stream,globStreamSync:globStreamSync,streamSync:i.streamSync,globIterate:globIterate,iterate:i.iterate,globIterateSync:globIterateSync,iterateSync:i.iterateSync,Glob:l.Glob,hasMagic:c.hasMagic,escape:a.escape,unescape:a.unescape});i.glob.glob=i.glob},15213:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Pattern=void 0;const a=s(39879);const isPatternList=r=>r.length>=1;const isGlobList=r=>r.length>=1;class Pattern{#f;#g;#y;length;#E;#b;#C;#v;#B;#w;#I=true;constructor(r,i,s,a){if(!isPatternList(r)){throw new TypeError("empty pattern list")}if(!isGlobList(i)){throw new TypeError("empty glob list")}if(i.length!==r.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=r.length;if(s<0||s>=this.length){throw new TypeError("index out of range")}this.#f=r;this.#g=i;this.#y=s;this.#E=a;if(this.#y===0){if(this.isUNC()){const[r,i,s,a,...l]=this.#f;const[c,p,d,u,...A]=this.#g;if(l[0]===""){l.shift();A.shift()}const h=[r,i,s,a,""].join("/");const g=[c,p,d,u,""].join("/");this.#f=[h,...l];this.#g=[g,...A];this.length=this.#f.length}else if(this.isDrive()||this.isAbsolute()){const[r,...i]=this.#f;const[s,...a]=this.#g;if(i[0]===""){i.shift();a.shift()}const l=r+"/";const c=s+"/";this.#f=[l,...i];this.#g=[c,...a];this.length=this.#f.length}}}pattern(){return this.#f[this.#y]}isString(){return typeof this.#f[this.#y]==="string"}isGlobstar(){return this.#f[this.#y]===a.GLOBSTAR}isRegExp(){return this.#f[this.#y]instanceof RegExp}globString(){return this.#C=this.#C||(this.#y===0?this.isAbsolute()?this.#g[0]+this.#g.slice(1).join("/"):this.#g.join("/"):this.#g.slice(this.#y).join("/"))}hasMore(){return this.length>this.#y+1}rest(){if(this.#b!==undefined)return this.#b;if(!this.hasMore())return this.#b=null;this.#b=new Pattern(this.#f,this.#g,this.#y+1,this.#E);this.#b.#w=this.#w;this.#b.#B=this.#B;this.#b.#v=this.#v;return this.#b}isUNC(){const r=this.#f;return this.#B!==undefined?this.#B:this.#B=this.#E==="win32"&&this.#y===0&&r[0]===""&&r[1]===""&&typeof r[2]==="string"&&!!r[2]&&typeof r[3]==="string"&&!!r[3]}isDrive(){const r=this.#f;return this.#v!==undefined?this.#v:this.#v=this.#E==="win32"&&this.#y===0&&this.length>1&&typeof r[0]==="string"&&/^[a-z]:$/i.test(r[0])}isAbsolute(){const r=this.#f;return this.#w!==undefined?this.#w:this.#w=r[0]===""&&r.length>1||this.isDrive()||this.isUNC()}root(){const r=this.#f[0];return typeof r==="string"&&this.isAbsolute()&&this.#y===0?r:""}checkFollowGlobstar(){return!(this.#y===0||!this.isGlobstar()||!this.#I)}markFollowGlobstar(){if(this.#y===0||!this.isGlobstar()||!this.#I)return false;this.#I=false;return true}}i.Pattern=Pattern},38161:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Processor=i.SubWalks=i.MatchRecord=i.HasWalkedCache=void 0;const a=s(39879);class HasWalkedCache{store;constructor(r=new Map){this.store=r}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(r,i){return this.store.get(r.fullpath())?.has(i.globString())}storeWalked(r,i){const s=r.fullpath();const a=this.store.get(s);if(a)a.add(i.globString());else this.store.set(s,new Set([i.globString()]))}}i.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(r,i,s){const a=(i?2:0)|(s?1:0);const l=this.store.get(r);this.store.set(r,l===undefined?a:a&l)}entries(){return[...this.store.entries()].map((([r,i])=>[r,!!(i&2),!!(i&1)]))}}i.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(r,i){if(!r.canReaddir()){return}const s=this.store.get(r);if(s){if(!s.find((r=>r.globString()===i.globString()))){s.push(i)}}else this.store.set(r,[i])}get(r){const i=this.store.get(r);if(!i){throw new Error("attempting to walk unknown path")}return i}entries(){return this.keys().map((r=>[r,this.store.get(r)]))}keys(){return[...this.store.keys()].filter((r=>r.canReaddir()))}}i.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(r,i){this.opts=r;this.follow=!!r.follow;this.dot=!!r.dot;this.hasWalkedCache=i?i.copy():new HasWalkedCache}processPatterns(r,i){this.patterns=i;const s=i.map((i=>[r,i]));for(let[r,i]of s){this.hasWalkedCache.storeWalked(r,i);const s=i.root();const l=i.isAbsolute()&&this.opts.absolute!==false;if(s){r=r.resolve(s==="/"&&this.opts.root!==undefined?this.opts.root:s);const a=i.rest();if(!a){this.matches.add(r,true,false);continue}else{i=a}}if(r.isENOENT())continue;let c;let p;let d=false;while(typeof(c=i.pattern())==="string"&&(p=i.rest())){const s=r.resolve(c);r=s;i=p;d=true}c=i.pattern();p=i.rest();if(d){if(this.hasWalkedCache.hasWalked(r,i))continue;this.hasWalkedCache.storeWalked(r,i)}if(typeof c==="string"){const i=c===".."||c===""||c===".";this.matches.add(r.resolve(c),l,i);continue}else if(c===a.GLOBSTAR){if(!r.isSymbolicLink()||this.follow||i.checkFollowGlobstar()){this.subwalks.add(r,i)}const s=p?.pattern();const a=p?.rest();if(!p||(s===""||s===".")&&!a){this.matches.add(r,l,s===""||s===".")}else{if(s===".."){const i=r.parent||r;if(!a)this.matches.add(i,l,true);else if(!this.hasWalkedCache.hasWalked(i,a)){this.subwalks.add(i,a)}}}}else if(c instanceof RegExp){this.subwalks.add(r,i)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(r,i){const s=this.subwalks.get(r);const l=this.child();for(const r of i){for(const i of s){const s=i.isAbsolute();const c=i.pattern();const p=i.rest();if(c===a.GLOBSTAR){l.testGlobstar(r,i,p,s)}else if(c instanceof RegExp){l.testRegExp(r,c,p,s)}else{l.testString(r,c,p,s)}}}return l}testGlobstar(r,i,s,a){if(this.dot||!r.name.startsWith(".")){if(!i.hasMore()){this.matches.add(r,a,false)}if(r.canReaddir()){if(this.follow||!r.isSymbolicLink()){this.subwalks.add(r,i)}else if(r.isSymbolicLink()){if(s&&i.checkFollowGlobstar()){this.subwalks.add(r,s)}else if(i.markFollowGlobstar()){this.subwalks.add(r,i)}}}}if(s){const i=s.pattern();if(typeof i==="string"&&i!==".."&&i!==""&&i!=="."){this.testString(r,i,s.rest(),a)}else if(i===".."){const i=r.parent||r;this.subwalks.add(i,s)}else if(i instanceof RegExp){this.testRegExp(r,i,s.rest(),a)}}}testRegExp(r,i,s,a){if(!i.test(r.name))return;if(!s){this.matches.add(r,a,false)}else{this.subwalks.add(r,s)}}testString(r,i,s,a){if(!r.isNamed(i))return;if(!s){this.matches.add(r,a,false)}else{this.subwalks.add(r,s)}}}i.Processor=Processor},47197:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.GlobStream=i.GlobWalker=i.GlobUtil=void 0;const a=s(8562);const l=s(66817);const c=s(38161);const makeIgnore=(r,i)=>typeof r==="string"?new l.Ignore([r],i):Array.isArray(r)?new l.Ignore(r,i):r;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#S=[];#Q;#x;signal;maxDepth;includeChildMatches;constructor(r,i,s){this.patterns=r;this.path=i;this.opts=s;this.#x=!s.posix&&s.platform==="win32"?"\\":"/";this.includeChildMatches=s.includeChildMatches!==false;if(s.ignore||!this.includeChildMatches){this.#Q=makeIgnore(s.ignore??[],s);if(!this.includeChildMatches&&typeof this.#Q.add!=="function"){const r="cannot ignore child matches, ignore lacks add() method.";throw new Error(r)}}this.maxDepth=s.maxDepth||Infinity;if(s.signal){this.signal=s.signal;this.signal.addEventListener("abort",(()=>{this.#S.length=0}))}}#N(r){return this.seen.has(r)||!!this.#Q?.ignored?.(r)}#R(r){return!!this.#Q?.childrenIgnored?.(r)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let r=undefined;while(!this.paused&&(r=this.#S.shift())){r()}}onResume(r){if(this.signal?.aborted)return;if(!this.paused){r()}else{this.#S.push(r)}}async matchCheck(r,i){if(i&&this.opts.nodir)return undefined;let s;if(this.opts.realpath){s=r.realpathCached()||await r.realpath();if(!s)return undefined;r=s}const a=r.isUnknown()||this.opts.stat;const l=a?await r.lstat():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=await l.realpath();if(r&&(r.isUnknown()||this.opts.stat)){await r.lstat()}}return this.matchCheckTest(l,i)}matchCheckTest(r,i){return r&&(this.maxDepth===Infinity||r.depth()<=this.maxDepth)&&(!i||r.canReaddir())&&(!this.opts.nodir||!r.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!r.isSymbolicLink()||!r.realpathCached()?.isDirectory())&&!this.#N(r)?r:undefined}matchCheckSync(r,i){if(i&&this.opts.nodir)return undefined;let s;if(this.opts.realpath){s=r.realpathCached()||r.realpathSync();if(!s)return undefined;r=s}const a=r.isUnknown()||this.opts.stat;const l=a?r.lstatSync():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=l.realpathSync();if(r&&(r?.isUnknown()||this.opts.stat)){r.lstatSync()}}return this.matchCheckTest(l,i)}matchFinish(r,i){if(this.#N(r))return;if(!this.includeChildMatches&&this.#Q?.add){const i=`${r.relativePosix()}/**`;this.#Q.add(i)}const s=this.opts.absolute===undefined?i:this.opts.absolute;this.seen.add(r);const a=this.opts.mark&&r.isDirectory()?this.#x:"";if(this.opts.withFileTypes){this.matchEmit(r)}else if(s){const i=this.opts.posix?r.fullpathPosix():r.fullpath();this.matchEmit(i+a)}else{const i=this.opts.posix?r.relativePosix():r.relative();const s=this.opts.dotRelative&&!i.startsWith(".."+this.#x)?"."+this.#x:"";this.matchEmit(!i?"."+a:s+i+a)}}async match(r,i,s){const a=await this.matchCheck(r,s);if(a)this.matchFinish(a,i)}matchSync(r,i,s){const a=this.matchCheckSync(r,s);if(a)this.matchFinish(a,i)}walkCB(r,i,s){if(this.signal?.aborted)s();this.walkCB2(r,i,new c.Processor(this.opts),s)}walkCB2(r,i,s,a){if(this.#R(r))return a();if(this.signal?.aborted)a();if(this.paused){this.onResume((()=>this.walkCB2(r,i,s,a)));return}s.processPatterns(r,i);let l=1;const next=()=>{if(--l===0)a()};for(const[r,i,a]of s.matches.entries()){if(this.#N(r))continue;l++;this.match(r,i,a).then((()=>next()))}for(const r of s.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const i=r.readdirCached();if(r.calledReaddir())this.walkCB3(r,i,s,next);else{r.readdirCB(((i,a)=>this.walkCB3(r,a,s,next)),true)}}next()}walkCB3(r,i,s,a){s=s.filterEntries(r,i);let l=1;const next=()=>{if(--l===0)a()};for(const[r,i,a]of s.matches.entries()){if(this.#N(r))continue;l++;this.match(r,i,a).then((()=>next()))}for(const[r,i]of s.subwalks.entries()){l++;this.walkCB2(r,i,s.child(),next)}next()}walkCBSync(r,i,s){if(this.signal?.aborted)s();this.walkCB2Sync(r,i,new c.Processor(this.opts),s)}walkCB2Sync(r,i,s,a){if(this.#R(r))return a();if(this.signal?.aborted)a();if(this.paused){this.onResume((()=>this.walkCB2Sync(r,i,s,a)));return}s.processPatterns(r,i);let l=1;const next=()=>{if(--l===0)a()};for(const[r,i,a]of s.matches.entries()){if(this.#N(r))continue;this.matchSync(r,i,a)}for(const r of s.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const i=r.readdirSync();this.walkCB3Sync(r,i,s,next)}next()}walkCB3Sync(r,i,s,a){s=s.filterEntries(r,i);let l=1;const next=()=>{if(--l===0)a()};for(const[r,i,a]of s.matches.entries()){if(this.#N(r))continue;this.matchSync(r,i,a)}for(const[r,i]of s.subwalks.entries()){l++;this.walkCB2Sync(r,i,s.child(),next)}next()}}i.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches=new Set;constructor(r,i,s){super(r,i,s)}matchEmit(r){this.matches.add(r)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((r,i)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){i(this.signal.reason)}else{r(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}i.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(r,i,s){super(r,i,s);this.results=new a.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(r){this.results.write(r);if(!this.results.flowing)this.pause()}stream(){const r=this.path;if(r.isUnknown()){r.lstat().then((()=>{this.walkCB(r,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(r,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}i.GlobStream=GlobStream},2753:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.LRUCache=void 0;const s=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const a=new Set;const l=typeof process==="object"&&!!process?process:{};const emitWarning=(r,i,s,a)=>{typeof l.emitWarning==="function"?l.emitWarning(r,i,s,a):console.error(`[${s}] ${i}: ${r}`)};let c=globalThis.AbortController;let p=globalThis.AbortSignal;if(typeof c==="undefined"){p=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(r,i){this._onabort.push(i)}};c=class AbortController{constructor(){warnACPolyfill()}signal=new p;abort(r){if(this.signal.aborted)return;this.signal.reason=r;this.signal.aborted=true;for(const i of this.signal._onabort){i(r)}this.signal.onabort?.(r)}};let r=l.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!r)return;r=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=r=>!a.has(r);const d=Symbol("type");const isPosInt=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r);const getUintArray=r=>!isPosInt(r)?null:r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(r){super(r);this.fill(0)}}class Stack{heap;length;static#T=false;static create(r){const i=getUintArray(r);if(!i)return[];Stack.#T=true;const s=new Stack(r,i);Stack.#T=false;return s}constructor(r,i){if(!Stack.#T){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new i(r);this.length=0}push(r){this.heap[this.length++]=r}pop(){return this.heap[--this.length]}}class LRUCache{#D;#_;#k;#P;#O;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#L;#M;#F;#U;#H;#j;#q;#G;#z;#V;#W;#Y;#J;#X;#K;#$;#Z;static unsafeExposeInternals(r){return{starts:r.#J,ttls:r.#X,sizes:r.#Y,keyMap:r.#F,keyList:r.#U,valList:r.#H,next:r.#j,prev:r.#q,get head(){return r.#G},get tail(){return r.#z},free:r.#V,isBackgroundFetch:i=>r.#ee(i),backgroundFetch:(i,s,a,l)=>r.#te(i,s,a,l),moveToTail:i=>r.#re(i),indexes:i=>r.#ie(i),rindexes:i=>r.#ne(i),isStale:i=>r.#se(i)}}get max(){return this.#D}get maxSize(){return this.#_}get calculatedSize(){return this.#M}get size(){return this.#L}get fetchMethod(){return this.#O}get dispose(){return this.#k}get disposeAfter(){return this.#P}constructor(r){const{max:i=0,ttl:s,ttlResolution:l=1,ttlAutopurge:c,updateAgeOnGet:p,updateAgeOnHas:d,allowStale:u,dispose:A,disposeAfter:h,noDisposeOnSet:g,noUpdateTTL:y,maxSize:b=0,maxEntrySize:C=0,sizeCalculation:v,fetchMethod:B,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:Q,ignoreFetchAbort:x}=r;if(i!==0&&!isPosInt(i)){throw new TypeError("max option must be a nonnegative integer")}const N=i?getUintArray(i):Array;if(!N){throw new Error("invalid max value: "+i)}this.#D=i;this.#_=b;this.maxEntrySize=C||this.#_;this.sizeCalculation=v;if(this.sizeCalculation){if(!this.#_&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(B!==undefined&&typeof B!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#O=B;this.#$=!!B;this.#F=new Map;this.#U=new Array(i).fill(undefined);this.#H=new Array(i).fill(undefined);this.#j=new N(i);this.#q=new N(i);this.#G=0;this.#z=0;this.#V=Stack.create(i);this.#L=0;this.#M=0;if(typeof A==="function"){this.#k=A}if(typeof h==="function"){this.#P=h;this.#W=[]}else{this.#P=undefined;this.#W=undefined}this.#K=!!this.#k;this.#Z=!!this.#P;this.noDisposeOnSet=!!g;this.noUpdateTTL=!!y;this.noDeleteOnFetchRejection=!!w;this.allowStaleOnFetchRejection=!!S;this.allowStaleOnFetchAbort=!!Q;this.ignoreFetchAbort=!!x;if(this.maxEntrySize!==0){if(this.#_!==0){if(!isPosInt(this.#_)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#ae()}this.allowStale=!!u;this.noDeleteOnStaleGet=!!I;this.updateAgeOnGet=!!p;this.updateAgeOnHas=!!d;this.ttlResolution=isPosInt(l)||l===0?l:1;this.ttlAutopurge=!!c;this.ttl=s||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#oe()}if(this.#D===0&&this.ttl===0&&this.#_===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#D&&!this.#_){const r="LRU_CACHE_UNBOUNDED";if(shouldWarn(r)){a.add(r);const i="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(i,"UnboundedCacheWarning",r,LRUCache)}}}getRemainingTTL(r){return this.#F.has(r)?Infinity:0}#oe(){const r=new ZeroArray(this.#D);const i=new ZeroArray(this.#D);this.#X=r;this.#J=i;this.#le=(a,l,c=s.now())=>{i[a]=l!==0?c:0;r[a]=l;if(l!==0&&this.ttlAutopurge){const r=setTimeout((()=>{if(this.#se(a)){this.delete(this.#U[a])}}),l+1);if(r.unref){r.unref()}}};this.#ce=a=>{i[a]=r[a]!==0?s.now():0};this.#pe=(s,l)=>{if(r[l]){const c=r[l];const p=i[l];if(!c||!p)return;s.ttl=c;s.start=p;s.now=a||getNow();const d=s.now-p;s.remainingTTL=c-d}};let a=0;const getNow=()=>{const r=s.now();if(this.ttlResolution>0){a=r;const i=setTimeout((()=>a=0),this.ttlResolution);if(i.unref){i.unref()}}return r};this.getRemainingTTL=s=>{const l=this.#F.get(s);if(l===undefined){return 0}const c=r[l];const p=i[l];if(!c||!p){return Infinity}const d=(a||getNow())-p;return c-d};this.#se=s=>{const l=i[s];const c=r[s];return!!c&&!!l&&(a||getNow())-l>c}}#ce=()=>{};#pe=()=>{};#le=()=>{};#se=()=>false;#ae(){const r=new ZeroArray(this.#D);this.#M=0;this.#Y=r;this.#de=i=>{this.#M-=r[i];r[i]=0};this.#ue=(r,i,s,a)=>{if(this.#ee(i)){return 0}if(!isPosInt(s)){if(a){if(typeof a!=="function"){throw new TypeError("sizeCalculation must be a function")}s=a(i,r);if(!isPosInt(s)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return s};this.#Ae=(i,s,a)=>{r[i]=s;if(this.#_){const s=this.#_-r[i];while(this.#M>s){this.#me(true)}}this.#M+=r[i];if(a){a.entrySize=s;a.totalCalculatedSize=this.#M}}}#de=r=>{};#Ae=(r,i,s)=>{};#ue=(r,i,s,a)=>{if(s||a){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#ie({allowStale:r=this.allowStale}={}){if(this.#L){for(let i=this.#z;true;){if(!this.#he(i)){break}if(r||!this.#se(i)){yield i}if(i===this.#G){break}else{i=this.#q[i]}}}}*#ne({allowStale:r=this.allowStale}={}){if(this.#L){for(let i=this.#G;true;){if(!this.#he(i)){break}if(r||!this.#se(i)){yield i}if(i===this.#z){break}else{i=this.#j[i]}}}}#he(r){return r!==undefined&&this.#F.get(this.#U[r])===r}*entries(){for(const r of this.#ie()){if(this.#H[r]!==undefined&&this.#U[r]!==undefined&&!this.#ee(this.#H[r])){yield[this.#U[r],this.#H[r]]}}}*rentries(){for(const r of this.#ne()){if(this.#H[r]!==undefined&&this.#U[r]!==undefined&&!this.#ee(this.#H[r])){yield[this.#U[r],this.#H[r]]}}}*keys(){for(const r of this.#ie()){const i=this.#U[r];if(i!==undefined&&!this.#ee(this.#H[r])){yield i}}}*rkeys(){for(const r of this.#ne()){const i=this.#U[r];if(i!==undefined&&!this.#ee(this.#H[r])){yield i}}}*values(){for(const r of this.#ie()){const i=this.#H[r];if(i!==undefined&&!this.#ee(this.#H[r])){yield this.#H[r]}}}*rvalues(){for(const r of this.#ne()){const i=this.#H[r];if(i!==undefined&&!this.#ee(this.#H[r])){yield this.#H[r]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(r,i={}){for(const s of this.#ie()){const a=this.#H[s];const l=this.#ee(a)?a.__staleWhileFetching:a;if(l===undefined)continue;if(r(l,this.#U[s],this)){return this.get(this.#U[s],i)}}}forEach(r,i=this){for(const s of this.#ie()){const a=this.#H[s];const l=this.#ee(a)?a.__staleWhileFetching:a;if(l===undefined)continue;r.call(i,l,this.#U[s],this)}}rforEach(r,i=this){for(const s of this.#ne()){const a=this.#H[s];const l=this.#ee(a)?a.__staleWhileFetching:a;if(l===undefined)continue;r.call(i,l,this.#U[s],this)}}purgeStale(){let r=false;for(const i of this.#ne({allowStale:true})){if(this.#se(i)){this.delete(this.#U[i]);r=true}}return r}info(r){const i=this.#F.get(r);if(i===undefined)return undefined;const a=this.#H[i];const l=this.#ee(a)?a.__staleWhileFetching:a;if(l===undefined)return undefined;const c={value:l};if(this.#X&&this.#J){const r=this.#X[i];const a=this.#J[i];if(r&&a){const i=r-(s.now()-a);c.ttl=i;c.start=Date.now()}}if(this.#Y){c.size=this.#Y[i]}return c}dump(){const r=[];for(const i of this.#ie({allowStale:true})){const a=this.#U[i];const l=this.#H[i];const c=this.#ee(l)?l.__staleWhileFetching:l;if(c===undefined||a===undefined)continue;const p={value:c};if(this.#X&&this.#J){p.ttl=this.#X[i];const r=s.now()-this.#J[i];p.start=Math.floor(Date.now()-r)}if(this.#Y){p.size=this.#Y[i]}r.unshift([a,p])}return r}load(r){this.clear();for(const[i,a]of r){if(a.start){const r=Date.now()-a.start;a.start=s.now()-r}this.set(i,a.value,a)}}set(r,i,s={}){if(i===undefined){this.delete(r);return this}const{ttl:a=this.ttl,start:l,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:p=this.sizeCalculation,status:d}=s;let{noUpdateTTL:u=this.noUpdateTTL}=s;const A=this.#ue(r,i,s.size||0,p);if(this.maxEntrySize&&A>this.maxEntrySize){if(d){d.set="miss";d.maxEntrySizeExceeded=true}this.delete(r);return this}let h=this.#L===0?undefined:this.#F.get(r);if(h===undefined){h=this.#L===0?this.#z:this.#V.length!==0?this.#V.pop():this.#L===this.#D?this.#me(false):this.#L;this.#U[h]=r;this.#H[h]=i;this.#F.set(r,h);this.#j[this.#z]=h;this.#q[h]=this.#z;this.#z=h;this.#L++;this.#Ae(h,A,d);if(d)d.set="add";u=false}else{this.#re(h);const s=this.#H[h];if(i!==s){if(this.#$&&this.#ee(s)){s.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:i}=s;if(i!==undefined&&!c){if(this.#K){this.#k?.(i,r,"set")}if(this.#Z){this.#W?.push([i,r,"set"])}}}else if(!c){if(this.#K){this.#k?.(s,r,"set")}if(this.#Z){this.#W?.push([s,r,"set"])}}this.#de(h);this.#Ae(h,A,d);this.#H[h]=i;if(d){d.set="replace";const r=s&&this.#ee(s)?s.__staleWhileFetching:s;if(r!==undefined)d.oldValue=r}}else if(d){d.set="update"}}if(a!==0&&!this.#X){this.#oe()}if(this.#X){if(!u){this.#le(h,a,l)}if(d)this.#pe(d,h)}if(!c&&this.#Z&&this.#W){const r=this.#W;let i;while(i=r?.shift()){this.#P?.(...i)}}return this}pop(){try{while(this.#L){const r=this.#H[this.#G];this.#me(true);if(this.#ee(r)){if(r.__staleWhileFetching){return r.__staleWhileFetching}}else if(r!==undefined){return r}}}finally{if(this.#Z&&this.#W){const r=this.#W;let i;while(i=r?.shift()){this.#P?.(...i)}}}}#me(r){const i=this.#G;const s=this.#U[i];const a=this.#H[i];if(this.#$&&this.#ee(a)){a.__abortController.abort(new Error("evicted"))}else if(this.#K||this.#Z){if(this.#K){this.#k?.(a,s,"evict")}if(this.#Z){this.#W?.push([a,s,"evict"])}}this.#de(i);if(r){this.#U[i]=undefined;this.#H[i]=undefined;this.#V.push(i)}if(this.#L===1){this.#G=this.#z=0;this.#V.length=0}else{this.#G=this.#j[i]}this.#F.delete(s);this.#L--;return i}has(r,i={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:a}=i;const l=this.#F.get(r);if(l!==undefined){const r=this.#H[l];if(this.#ee(r)&&r.__staleWhileFetching===undefined){return false}if(!this.#se(l)){if(s){this.#ce(l)}if(a){a.has="hit";this.#pe(a,l)}return true}else if(a){a.has="stale";this.#pe(a,l)}}else if(a){a.has="miss"}return false}peek(r,i={}){const{allowStale:s=this.allowStale}=i;const a=this.#F.get(r);if(a===undefined||!s&&this.#se(a)){return}const l=this.#H[a];return this.#ee(l)?l.__staleWhileFetching:l}#te(r,i,s,a){const l=i===undefined?undefined:this.#H[i];if(this.#ee(l)){return l}const p=new c;const{signal:d}=s;d?.addEventListener("abort",(()=>p.abort(d.reason)),{signal:p.signal});const u={signal:p.signal,options:s,context:a};const cb=(a,l=false)=>{const{aborted:c}=p.signal;const d=s.ignoreFetchAbort&&a!==undefined;if(s.status){if(c&&!l){s.status.fetchAborted=true;s.status.fetchError=p.signal.reason;if(d)s.status.fetchAbortIgnored=true}else{s.status.fetchResolved=true}}if(c&&!d&&!l){return fetchFail(p.signal.reason)}const h=A;if(this.#H[i]===A){if(a===undefined){if(h.__staleWhileFetching){this.#H[i]=h.__staleWhileFetching}else{this.delete(r)}}else{if(s.status)s.status.fetchUpdated=true;this.set(r,a,u.options)}}return a};const eb=r=>{if(s.status){s.status.fetchRejected=true;s.status.fetchError=r}return fetchFail(r)};const fetchFail=a=>{const{aborted:l}=p.signal;const c=l&&s.allowStaleOnFetchAbort;const d=c||s.allowStaleOnFetchRejection;const u=d||s.noDeleteOnFetchRejection;const h=A;if(this.#H[i]===A){const s=!u||h.__staleWhileFetching===undefined;if(s){this.delete(r)}else if(!c){this.#H[i]=h.__staleWhileFetching}}if(d){if(s.status&&h.__staleWhileFetching!==undefined){s.status.returnedStale=true}return h.__staleWhileFetching}else if(h.__returned===h){throw a}};const pcall=(i,a)=>{const c=this.#O?.(r,l,u);if(c&&c instanceof Promise){c.then((r=>i(r===undefined?undefined:r)),a)}p.signal.addEventListener("abort",(()=>{if(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort){i(undefined);if(s.allowStaleOnFetchAbort){i=r=>cb(r,true)}}}))};if(s.status)s.status.fetchDispatched=true;const A=new Promise(pcall).then(cb,eb);const h=Object.assign(A,{__abortController:p,__staleWhileFetching:l,__returned:undefined});if(i===undefined){this.set(r,h,{...u.options,status:undefined});i=this.#F.get(r)}else{this.#H[i]=h}return h}#ee(r){if(!this.#$)return false;const i=r;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof c}async fetch(r,i={}){const{allowStale:s=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:c=this.ttl,noDisposeOnSet:p=this.noDisposeOnSet,size:d=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:A=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:C,forceRefresh:v=false,status:B,signal:w}=i;if(!this.#$){if(B)B.fetch="get";return this.get(r,{allowStale:s,updateAgeOnGet:a,noDeleteOnStaleGet:l,status:B})}const I={allowStale:s,updateAgeOnGet:a,noDeleteOnStaleGet:l,ttl:c,noDisposeOnSet:p,size:d,sizeCalculation:u,noUpdateTTL:A,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:b,ignoreFetchAbort:y,status:B,signal:w};let S=this.#F.get(r);if(S===undefined){if(B)B.fetch="miss";const i=this.#te(r,S,I,C);return i.__returned=i}else{const i=this.#H[S];if(this.#ee(i)){const r=s&&i.__staleWhileFetching!==undefined;if(B){B.fetch="inflight";if(r)B.returnedStale=true}return r?i.__staleWhileFetching:i.__returned=i}const l=this.#se(S);if(!v&&!l){if(B)B.fetch="hit";this.#re(S);if(a){this.#ce(S)}if(B)this.#pe(B,S);return i}const c=this.#te(r,S,I,C);const p=c.__staleWhileFetching!==undefined;const d=p&&s;if(B){B.fetch=l?"stale":"refresh";if(d&&l)B.returnedStale=true}return d?c.__staleWhileFetching:c.__returned=c}}get(r,i={}){const{allowStale:s=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:c}=i;const p=this.#F.get(r);if(p!==undefined){const i=this.#H[p];const d=this.#ee(i);if(c)this.#pe(c,p);if(this.#se(p)){if(c)c.get="stale";if(!d){if(!l){this.delete(r)}if(c&&s)c.returnedStale=true;return s?i:undefined}else{if(c&&s&&i.__staleWhileFetching!==undefined){c.returnedStale=true}return s?i.__staleWhileFetching:undefined}}else{if(c)c.get="hit";if(d){return i.__staleWhileFetching}this.#re(p);if(a){this.#ce(p)}return i}}else if(c){c.get="miss"}}#fe(r,i){this.#q[i]=r;this.#j[r]=i}#re(r){if(r!==this.#z){if(r===this.#G){this.#G=this.#j[r]}else{this.#fe(this.#q[r],this.#j[r])}this.#fe(this.#z,r);this.#z=r}}delete(r){let i=false;if(this.#L!==0){const s=this.#F.get(r);if(s!==undefined){i=true;if(this.#L===1){this.clear()}else{this.#de(s);const i=this.#H[s];if(this.#ee(i)){i.__abortController.abort(new Error("deleted"))}else if(this.#K||this.#Z){if(this.#K){this.#k?.(i,r,"delete")}if(this.#Z){this.#W?.push([i,r,"delete"])}}this.#F.delete(r);this.#U[s]=undefined;this.#H[s]=undefined;if(s===this.#z){this.#z=this.#q[s]}else if(s===this.#G){this.#G=this.#j[s]}else{const r=this.#q[s];this.#j[r]=this.#j[s];const i=this.#j[s];this.#q[i]=this.#q[s]}this.#L--;this.#V.push(s)}}}if(this.#Z&&this.#W?.length){const r=this.#W;let i;while(i=r?.shift()){this.#P?.(...i)}}return i}clear(){for(const r of this.#ne({allowStale:true})){const i=this.#H[r];if(this.#ee(i)){i.__abortController.abort(new Error("deleted"))}else{const s=this.#U[r];if(this.#K){this.#k?.(i,s,"delete")}if(this.#Z){this.#W?.push([i,s,"delete"])}}}this.#F.clear();this.#H.fill(undefined);this.#U.fill(undefined);if(this.#X&&this.#J){this.#X.fill(0);this.#J.fill(0)}if(this.#Y){this.#Y.fill(0)}this.#G=0;this.#z=0;this.#V.length=0;this.#M=0;this.#L=0;if(this.#Z&&this.#W){const r=this.#W;let i;while(i=r?.shift()){this.#P?.(...i)}}}}i.LRUCache=LRUCache},55240:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.assertValidPattern=void 0;const s=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>s){throw new TypeError("pattern is too long")}};i.assertValidPattern=assertValidPattern},47964:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.AST=void 0;const a=s(25784);const l=s(98212);const c=new Set(["!","?","+","*","@"]);const isExtglobType=r=>c.has(r);const p="(?!(?:^|/)\\.\\.?(?:$|/))";const d="(?!\\.)";const u=new Set(["[","."]);const A=new Set(["..","."]);const h=new Set("().*{}+?[]^$\\!");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const g="[^/]";const y=g+"*?";const b=g+"+?";class AST{type;#ge;#ye;#Ee=false;#be=[];#Ce;#ve;#Be;#we=false;#Ie;#Se;#Qe=false;constructor(r,i,s={}){this.type=r;if(r)this.#ye=true;this.#Ce=i;this.#ge=this.#Ce?this.#Ce.#ge:this;this.#Ie=this.#ge===this?s:this.#ge.#Ie;this.#Be=this.#ge===this?[]:this.#ge.#Be;if(r==="!"&&!this.#ge.#we)this.#Be.push(this);this.#ve=this.#Ce?this.#Ce.#be.length:0}get hasMagic(){if(this.#ye!==undefined)return this.#ye;for(const r of this.#be){if(typeof r==="string")continue;if(r.type||r.hasMagic)return this.#ye=true}return this.#ye}toString(){if(this.#Se!==undefined)return this.#Se;if(!this.type){return this.#Se=this.#be.map((r=>String(r))).join("")}else{return this.#Se=this.type+"("+this.#be.map((r=>String(r))).join("|")+")"}}#xe(){if(this!==this.#ge)throw new Error("should only call on root");if(this.#we)return this;this.toString();this.#we=true;let r;while(r=this.#Be.pop()){if(r.type!=="!")continue;let i=r;let s=i.#Ce;while(s){for(let a=i.#ve+1;!s.type&&atypeof r==="string"?r:r.toJSON())):[this.type,...this.#be.map((r=>r.toJSON()))];if(this.isStart()&&!this.type)r.unshift([]);if(this.isEnd()&&(this===this.#ge||this.#ge.#we&&this.#Ce?.type==="!")){r.push({})}return r}isStart(){if(this.#ge===this)return true;if(!this.#Ce?.isStart())return false;if(this.#ve===0)return true;const r=this.#Ce;for(let i=0;i{const[a,l,c,p]=typeof i==="string"?AST.#Re(i,this.#ye,s):i.toRegExpSource(r);this.#ye=this.#ye||c;this.#Ee=this.#Ee||p;return a})).join("");let c="";if(this.isStart()){if(typeof this.#be[0]==="string"){const s=this.#be.length===1&&A.has(this.#be[0]);if(!s){const s=u;const l=i&&s.has(a.charAt(0))||a.startsWith("\\.")&&s.has(a.charAt(2))||a.startsWith("\\.\\.")&&s.has(a.charAt(4));const A=!i&&!r&&s.has(a.charAt(0));c=l?p:A?d:""}}}let h="";if(this.isEnd()&&this.#ge.#we&&this.#Ce?.type==="!"){h="(?:$|\\/)"}const g=c+a+h;return[g,(0,l.unescape)(a),this.#ye=!!this.#ye,this.#Ee]}const s=this.type==="*"||this.type==="+";const a=this.type==="!"?"(?:(?!(?:":"(?:";let c=this.#Te(i);if(this.isStart()&&this.isEnd()&&!c&&this.type!=="!"){const r=this.toString();this.#be=[r];this.type=null;this.#ye=undefined;return[r,(0,l.unescape)(this.toString()),false,false]}let h=!s||r||i||!d?"":this.#Te(true);if(h===c){h=""}if(h){c=`(?:${c})(?:${h})*?`}let g="";if(this.type==="!"&&this.#Qe){g=(this.isStart()&&!i?d:"")+b}else{const s=this.type==="!"?"))"+(this.isStart()&&!i&&!r?d:"")+y+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&h?")":this.type==="*"&&h?`)?`:`)${this.type}`;g=a+c+s}return[g,(0,l.unescape)(c),this.#ye=!!this.#ye,this.#Ee]}#Te(r){return this.#be.map((i=>{if(typeof i==="string"){throw new Error("string type in extglob ast??")}const[s,a,l,c]=i.toRegExpSource(r);this.#Ee=this.#Ee||c;return s})).filter((r=>!(this.isStart()&&this.isEnd())||!!r)).join("|")}static#Re(r,i,s=false){let c=false;let p="";let d=false;for(let l=0;l{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.parseClass=void 0;const s={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=r=>r.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=r=>r.join("");const parseClass=(r,i)=>{const a=i;if(r.charAt(a)!=="["){throw new Error("not in a brace expression")}const l=[];const c=[];let p=a+1;let d=false;let u=false;let A=false;let h=false;let g=a;let y="";e:while(py){l.push(braceEscape(y)+"-"+braceEscape(i))}else if(i===y){l.push(braceEscape(i))}y="";p++;continue}if(r.startsWith("-]",p+1)){l.push(braceEscape(i+"-"));p+=2;continue}if(r.startsWith("-",p+1)){y=i;p+=2;continue}l.push(braceEscape(i));p++}if(g{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.escape=void 0;const escape=(r,{windowsPathsNoEscape:i=false}={})=>i?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");i.escape=escape},39879: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.unescape=i.escape=i.AST=i.Minimatch=i.match=i.makeRe=i.braceExpand=i.defaults=i.filter=i.GLOBSTAR=i.sep=i.minimatch=void 0;const l=a(s(21981));const c=s(55240);const p=s(47964);const d=s(70707);const u=s(98212);const minimatch=(r,i,s={})=>{(0,c.assertValidPattern)(i);if(!s.nocomment&&i.charAt(0)==="#"){return false}return new Minimatch(i,s).match(r)};i.minimatch=minimatch;const A=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=r=>i=>!i.startsWith(".")&&i.endsWith(r);const starDotExtTestDot=r=>i=>i.endsWith(r);const starDotExtTestNocase=r=>{r=r.toLowerCase();return i=>!i.startsWith(".")&&i.toLowerCase().endsWith(r)};const starDotExtTestNocaseDot=r=>{r=r.toLowerCase();return i=>i.toLowerCase().endsWith(r)};const h=/^\*+\.\*+$/;const starDotStarTest=r=>!r.startsWith(".")&&r.includes(".");const starDotStarTestDot=r=>r!=="."&&r!==".."&&r.includes(".");const g=/^\.\*+$/;const dotStarTest=r=>r!=="."&&r!==".."&&r.startsWith(".");const y=/^\*+$/;const starTest=r=>r.length!==0&&!r.startsWith(".");const starTestDot=r=>r.length!==0&&r!=="."&&r!=="..";const b=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([r,i=""])=>{const s=qmarksTestNoExt([r]);if(!i)return s;i=i.toLowerCase();return r=>s(r)&&r.toLowerCase().endsWith(i)};const qmarksTestNocaseDot=([r,i=""])=>{const s=qmarksTestNoExtDot([r]);if(!i)return s;i=i.toLowerCase();return r=>s(r)&&r.toLowerCase().endsWith(i)};const qmarksTestDot=([r,i=""])=>{const s=qmarksTestNoExtDot([r]);return!i?s:r=>s(r)&&r.endsWith(i)};const qmarksTest=([r,i=""])=>{const s=qmarksTestNoExt([r]);return!i?s:r=>s(r)&&r.endsWith(i)};const qmarksTestNoExt=([r])=>{const i=r.length;return r=>r.length===i&&!r.startsWith(".")};const qmarksTestNoExtDot=([r])=>{const i=r.length;return r=>r.length===i&&r!=="."&&r!==".."};const C=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const v={win32:{sep:"\\"},posix:{sep:"/"}};i.sep=C==="win32"?v.win32.sep:v.posix.sep;i.minimatch.sep=i.sep;i.GLOBSTAR=Symbol("globstar **");i.minimatch.GLOBSTAR=i.GLOBSTAR;const B="[^/]";const w=B+"*?";const I="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const S="(?:(?!(?:\\/|^)\\.).)*?";const filter=(r,s={})=>a=>(0,i.minimatch)(a,r,s);i.filter=filter;i.minimatch.filter=i.filter;const ext=(r,i={})=>Object.assign({},r,i);const defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return i.minimatch}const s=i.minimatch;const m=(i,a,l={})=>s(i,a,ext(r,l));return Object.assign(m,{Minimatch:class Minimatch extends s.Minimatch{constructor(i,s={}){super(i,ext(r,s))}static defaults(i){return s.defaults(ext(r,i)).Minimatch}},AST:class AST extends s.AST{constructor(i,s,a={}){super(i,s,ext(r,a))}static fromGlob(i,a={}){return s.AST.fromGlob(i,ext(r,a))}},unescape:(i,a={})=>s.unescape(i,ext(r,a)),escape:(i,a={})=>s.escape(i,ext(r,a)),filter:(i,a={})=>s.filter(i,ext(r,a)),defaults:i=>s.defaults(ext(r,i)),makeRe:(i,a={})=>s.makeRe(i,ext(r,a)),braceExpand:(i,a={})=>s.braceExpand(i,ext(r,a)),match:(i,a,l={})=>s.match(i,a,ext(r,l)),sep:s.sep,GLOBSTAR:i.GLOBSTAR})};i.defaults=defaults;i.minimatch.defaults=i.defaults;const braceExpand=(r,i={})=>{(0,c.assertValidPattern)(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return(0,l.default)(r)};i.braceExpand=braceExpand;i.minimatch.braceExpand=i.braceExpand;const makeRe=(r,i={})=>new Minimatch(r,i).makeRe();i.makeRe=makeRe;i.minimatch.makeRe=i.makeRe;const match=(r,i,s={})=>{const a=new Minimatch(i,s);r=r.filter((r=>a.match(r)));if(a.options.nonull&&!r.length){r.push(i)}return r};i.match=match;i.minimatch.match=i.match;const Q=/[?*]|[+@!]\(.*?\)|\[|\]/;const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(r,i={}){(0,c.assertValidPattern)(r);i=i||{};this.options=i;this.pattern=r;this.platform=i.platform||C;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!i.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!i.nonegate;this.comment=false;this.empty=false;this.partial=!!i.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=i.windowsNoMagicRoot!==undefined?i.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const r of this.set){for(const i of r){if(typeof i!=="string")return true}}return false}debug(...r){}make(){const r=this.pattern;const i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(i.debug){this.debug=(...r)=>console.error(...r)}this.debug(this.pattern,this.globSet);const s=this.globSet.map((r=>this.slashSplit(r)));this.globParts=this.preprocess(s);this.debug(this.pattern,this.globParts);let a=this.globParts.map(((r,i,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){const i=r[0]===""&&r[1]===""&&(r[2]==="?"||!Q.test(r[2]))&&!Q.test(r[3]);const s=/^[a-z]:/i.test(r[0]);if(i){return[...r.slice(0,4),...r.slice(4).map((r=>this.parse(r)))]}else if(s){return[r[0],...r.slice(1).map((r=>this.parse(r)))]}}return r.map((r=>this.parse(r)))}));this.debug(this.pattern,a);this.set=a.filter((r=>r.indexOf(false)===-1));if(this.isWindows){for(let r=0;r=2){r=this.firstPhasePreProcess(r);r=this.secondPhasePreProcess(r)}else if(i>=1){r=this.levelOneOptimize(r)}else{r=this.adjascentGlobstarOptimize(r)}return r}adjascentGlobstarOptimize(r){return r.map((r=>{let i=-1;while(-1!==(i=r.indexOf("**",i+1))){let s=i;while(r[s+1]==="**"){s++}if(s!==i){r.splice(i,s-i)}}return r}))}levelOneOptimize(r){return r.map((r=>{r=r.reduce(((r,i)=>{const s=r[r.length-1];if(i==="**"&&s==="**"){return r}if(i===".."){if(s&&s!==".."&&s!=="."&&s!=="**"){r.pop();return r}}r.push(i);return r}),[]);return r.length===0?[""]:r}))}levelTwoFileOptimize(r){if(!Array.isArray(r)){r=this.slashSplit(r)}let i=false;do{i=false;if(!this.preserveMultipleSlashes){for(let s=1;sa){s.splice(a+1,l-a)}let c=s[a+1];const p=s[a+2];const d=s[a+3];if(c!=="..")continue;if(!p||p==="."||p===".."||!d||d==="."||d===".."){continue}i=true;s.splice(a,1);const u=s.slice(0);u[a]="**";r.push(u);a--}if(!this.preserveMultipleSlashes){for(let r=1;rr.length))}partsMatch(r,i,s=false){let a=0;let l=0;let c=[];let p="";while(ap){s=s.slice(d)}else if(p>d){r=r.slice(p)}}}}const{optimizationLevel:c=1}=this.options;if(c>=2){r=this.levelTwoFileOptimize(r)}this.debug("matchOne",this,{file:r,pattern:s});this.debug("matchOne",r.length,s.length);for(var p=0,d=0,u=r.length,A=s.length;p>> no match, partial?",r,y,s,b);if(y===u){return true}}return false}let c;if(typeof h==="string"){c=g===h;this.debug("string match",h,g,c)}else{c=h.test(g);this.debug("pattern match",h,g,c)}if(!c)return false}if(p===u&&d===A){return true}else if(p===u){return a}else if(d===A){return p===u-1&&r[p]===""}else{throw new Error("wtf?")}}braceExpand(){return(0,i.braceExpand)(this.pattern,this.options)}parse(r){(0,c.assertValidPattern)(r);const s=this.options;if(r==="**")return i.GLOBSTAR;if(r==="")return"";let a;let l=null;if(a=r.match(y)){l=s.dot?starTestDot:starTest}else if(a=r.match(A)){l=(s.nocase?s.dot?starDotExtTestNocaseDot:starDotExtTestNocase:s.dot?starDotExtTestDot:starDotExtTest)(a[1])}else if(a=r.match(b)){l=(s.nocase?s.dot?qmarksTestNocaseDot:qmarksTestNocase:s.dot?qmarksTestDot:qmarksTest)(a)}else if(a=r.match(h)){l=s.dot?starDotStarTestDot:starDotStarTest}else if(a=r.match(g)){l=dotStarTest}const d=p.AST.fromGlob(r,this.options).toMMPattern();if(l&&typeof d==="object"){Reflect.defineProperty(d,"test",{value:l})}return d}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const r=this.set;if(!r.length){this.regexp=false;return this.regexp}const s=this.options;const a=s.noglobstar?w:s.dot?I:S;const l=new Set(s.nocase?["i"]:[]);let c=r.map((r=>{const s=r.map((r=>{if(r instanceof RegExp){for(const i of r.flags.split(""))l.add(i)}return typeof r==="string"?regExpEscape(r):r===i.GLOBSTAR?i.GLOBSTAR:r._src}));s.forEach(((r,l)=>{const c=s[l+1];const p=s[l-1];if(r!==i.GLOBSTAR||p===i.GLOBSTAR){return}if(p===undefined){if(c!==undefined&&c!==i.GLOBSTAR){s[l+1]="(?:\\/|"+a+"\\/)?"+c}else{s[l]=a}}else if(c===undefined){s[l-1]=p+"(?:\\/|"+a+")?"}else if(c!==i.GLOBSTAR){s[l-1]=p+"(?:\\/|\\/"+a+"\\/)"+c;s[l+1]=i.GLOBSTAR}}));return s.filter((r=>r!==i.GLOBSTAR)).join("/")})).join("|");const[p,d]=r.length>1?["(?:",")"]:["",""];c="^"+p+c+d+"$";if(this.negate)c="^(?!"+c+").+$";try{this.regexp=new RegExp(c,[...l].join(""))}catch(r){this.regexp=false}return this.regexp}slashSplit(r){if(this.preserveMultipleSlashes){return r.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(r)){return["",...r.split(/\/+/)]}else{return r.split(/\/+/)}}match(r,i=this.partial){this.debug("match",r,this.pattern);if(this.comment){return false}if(this.empty){return r===""}if(r==="/"&&i){return true}const s=this.options;if(this.isWindows){r=r.split("\\").join("/")}const a=this.slashSplit(r);this.debug(this.pattern,"split",a);const l=this.set;this.debug(this.pattern,"set",l);let c=a[a.length-1];if(!c){for(let r=a.length-2;!c&&r>=0;r--){c=a[r]}}for(let r=0;r{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.unescape=void 0;const unescape=(r,{windowsPathsNoEscape:i=false}={})=>i?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");i.unescape=unescape},8562: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.Minipass=i.isWritable=i.isReadable=i.isStream=void 0;const l=typeof process==="object"&&process?process:{stdout:null,stderr:null};const c=s(15673);const p=a(s(84492));const d=s(76915);const isStream=r=>!!r&&typeof r==="object"&&(r instanceof Minipass||r instanceof p.default||(0,i.isReadable)(r)||(0,i.isWritable)(r));i.isStream=isStream;const isReadable=r=>!!r&&typeof r==="object"&&r instanceof c.EventEmitter&&typeof r.pipe==="function"&&r.pipe!==p.default.Writable.prototype.pipe;i.isReadable=isReadable;const isWritable=r=>!!r&&typeof r==="object"&&r instanceof c.EventEmitter&&typeof r.write==="function"&&typeof r.end==="function";i.isWritable=isWritable;const u=Symbol("EOF");const A=Symbol("maybeEmitEnd");const h=Symbol("emittedEnd");const g=Symbol("emittingEnd");const y=Symbol("emittedError");const b=Symbol("closed");const C=Symbol("read");const v=Symbol("flush");const B=Symbol("flushChunk");const w=Symbol("encoding");const I=Symbol("decoder");const S=Symbol("flowing");const Q=Symbol("paused");const x=Symbol("resume");const N=Symbol("buffer");const R=Symbol("pipes");const T=Symbol("bufferLength");const D=Symbol("bufferPush");const _=Symbol("bufferShift");const k=Symbol("objectMode");const P=Symbol("destroyed");const O=Symbol("error");const L=Symbol("emitData");const M=Symbol("emitEnd");const U=Symbol("emitEnd2");const H=Symbol("async");const j=Symbol("abort");const q=Symbol("aborted");const G=Symbol("signal");const z=Symbol("dataListeners");const V=Symbol("discarded");const defer=r=>Promise.resolve().then(r);const nodefer=r=>r();const isEndish=r=>r==="end"||r==="finish"||r==="prefinish";const isArrayBufferLike=r=>r instanceof ArrayBuffer||!!r&&typeof r==="object"&&r.constructor&&r.constructor.name==="ArrayBuffer"&&r.byteLength>=0;const isArrayBufferView=r=>!Buffer.isBuffer(r)&&ArrayBuffer.isView(r);class Pipe{src;dest;opts;ondrain;constructor(r,i,s){this.src=r;this.dest=i;this.opts=s;this.ondrain=()=>r[x]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(r){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(r,i,s){super(r,i,s);this.proxyErrors=r=>i.emit("error",r);r.on("error",this.proxyErrors)}}const isObjectModeOptions=r=>!!r.objectMode;const isEncodingOptions=r=>!r.objectMode&&!!r.encoding&&r.encoding!=="buffer";class Minipass extends c.EventEmitter{[S]=false;[Q]=false;[R]=[];[N]=[];[k];[w];[H];[I];[u]=false;[h]=false;[g]=false;[b]=false;[y]=null;[T]=0;[P]=false;[G];[q]=false;[z]=0;[V]=false;writable=true;readable=true;constructor(...r){const i=r[0]||{};super();if(i.objectMode&&typeof i.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(i)){this[k]=true;this[w]=null}else if(isEncodingOptions(i)){this[w]=i.encoding;this[k]=false}else{this[k]=false;this[w]=null}this[H]=!!i.async;this[I]=this[w]?new d.StringDecoder(this[w]):null;if(i&&i.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[N]})}if(i&&i.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[R]})}const{signal:s}=i;if(s){this[G]=s;if(s.aborted){this[j]()}else{s.addEventListener("abort",(()=>this[j]()))}}}get bufferLength(){return this[T]}get encoding(){return this[w]}set encoding(r){throw new Error("Encoding must be set at instantiation time")}setEncoding(r){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[k]}set objectMode(r){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[H]}set["async"](r){this[H]=this[H]||!!r}[j](){this[q]=true;this.emit("abort",this[G]?.reason);this.destroy(this[G]?.reason)}get aborted(){return this[q]}set aborted(r){}write(r,i,s){if(this[q])return false;if(this[u])throw new Error("write after end");if(this[P]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof i==="function"){s=i;i="utf8"}if(!i)i="utf8";const a=this[H]?defer:nodefer;if(!this[k]&&!Buffer.isBuffer(r)){if(isArrayBufferView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(isArrayBufferLike(r)){r=Buffer.from(r)}else if(typeof r!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[k]){if(this[S]&&this[T]!==0)this[v](true);if(this[S])this.emit("data",r);else this[D](r);if(this[T]!==0)this.emit("readable");if(s)a(s);return this[S]}if(!r.length){if(this[T]!==0)this.emit("readable");if(s)a(s);return this[S]}if(typeof r==="string"&&!(i===this[w]&&!this[I]?.lastNeed)){r=Buffer.from(r,i)}if(Buffer.isBuffer(r)&&this[w]){r=this[I].write(r)}if(this[S]&&this[T]!==0)this[v](true);if(this[S])this.emit("data",r);else this[D](r);if(this[T]!==0)this.emit("readable");if(s)a(s);return this[S]}read(r){if(this[P])return null;this[V]=false;if(this[T]===0||r===0||r&&r>this[T]){this[A]();return null}if(this[k])r=null;if(this[N].length>1&&!this[k]){this[N]=[this[w]?this[N].join(""):Buffer.concat(this[N],this[T])]}const i=this[C](r||null,this[N][0]);this[A]();return i}[C](r,i){if(this[k])this[_]();else{const s=i;if(r===s.length||r===null)this[_]();else if(typeof s==="string"){this[N][0]=s.slice(r);i=s.slice(0,r);this[T]-=r}else{this[N][0]=s.subarray(r);i=s.subarray(0,r);this[T]-=r}}this.emit("data",i);if(!this[N].length&&!this[u])this.emit("drain");return i}end(r,i,s){if(typeof r==="function"){s=r;r=undefined}if(typeof i==="function"){s=i;i="utf8"}if(r!==undefined)this.write(r,i);if(s)this.once("end",s);this[u]=true;this.writable=false;if(this[S]||!this[Q])this[A]();return this}[x](){if(this[P])return;if(!this[z]&&!this[R].length){this[V]=true}this[Q]=false;this[S]=true;this.emit("resume");if(this[N].length)this[v]();else if(this[u])this[A]();else this.emit("drain")}resume(){return this[x]()}pause(){this[S]=false;this[Q]=true;this[V]=false}get destroyed(){return this[P]}get flowing(){return this[S]}get paused(){return this[Q]}[D](r){if(this[k])this[T]+=1;else this[T]+=r.length;this[N].push(r)}[_](){if(this[k])this[T]-=1;else this[T]-=this[N][0].length;return this[N].shift()}[v](r=false){do{}while(this[B](this[_]())&&this[N].length);if(!r&&!this[N].length&&!this[u])this.emit("drain")}[B](r){this.emit("data",r);return this[S]}pipe(r,i){if(this[P])return r;this[V]=false;const s=this[h];i=i||{};if(r===l.stdout||r===l.stderr)i.end=false;else i.end=i.end!==false;i.proxyErrors=!!i.proxyErrors;if(s){if(i.end)r.end()}else{this[R].push(!i.proxyErrors?new Pipe(this,r,i):new PipeProxyErrors(this,r,i));if(this[H])defer((()=>this[x]()));else this[x]()}return r}unpipe(r){const i=this[R].find((i=>i.dest===r));if(i){if(this[R].length===1){if(this[S]&&this[z]===0){this[S]=false}this[R]=[]}else this[R].splice(this[R].indexOf(i),1);i.unpipe()}}addListener(r,i){return this.on(r,i)}on(r,i){const s=super.on(r,i);if(r==="data"){this[V]=false;this[z]++;if(!this[R].length&&!this[S]){this[x]()}}else if(r==="readable"&&this[T]!==0){super.emit("readable")}else if(isEndish(r)&&this[h]){super.emit(r);this.removeAllListeners(r)}else if(r==="error"&&this[y]){const r=i;if(this[H])defer((()=>r.call(this,this[y])));else r.call(this,this[y])}return s}removeListener(r,i){return this.off(r,i)}off(r,i){const s=super.off(r,i);if(r==="data"){this[z]=this.listeners("data").length;if(this[z]===0&&!this[V]&&!this[R].length){this[S]=false}}return s}removeAllListeners(r){const i=super.removeAllListeners(r);if(r==="data"||r===undefined){this[z]=0;if(!this[V]&&!this[R].length){this[S]=false}}return i}get emittedEnd(){return this[h]}[A](){if(!this[g]&&!this[h]&&!this[P]&&this[N].length===0&&this[u]){this[g]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[b])this.emit("close");this[g]=false}}emit(r,...i){const s=i[0];if(r!=="error"&&r!=="close"&&r!==P&&this[P]){return false}else if(r==="data"){return!this[k]&&!s?false:this[H]?(defer((()=>this[L](s))),true):this[L](s)}else if(r==="end"){return this[M]()}else if(r==="close"){this[b]=true;if(!this[h]&&!this[P])return false;const r=super.emit("close");this.removeAllListeners("close");return r}else if(r==="error"){this[y]=s;super.emit(O,s);const r=!this[G]||this.listeners("error").length?super.emit("error",s):false;this[A]();return r}else if(r==="resume"){const r=super.emit("resume");this[A]();return r}else if(r==="finish"||r==="prefinish"){const i=super.emit(r);this.removeAllListeners(r);return i}const a=super.emit(r,...i);this[A]();return a}[L](r){for(const i of this[R]){if(i.dest.write(r)===false)this.pause()}const i=this[V]?false:super.emit("data",r);this[A]();return i}[M](){if(this[h])return false;this[h]=true;this.readable=false;return this[H]?(defer((()=>this[U]())),true):this[U]()}[U](){if(this[I]){const r=this[I].end();if(r){for(const i of this[R]){i.dest.write(r)}if(!this[V])super.emit("data",r)}}for(const r of this[R]){r.end()}const r=super.emit("end");this.removeAllListeners("end");return r}async collect(){const r=Object.assign([],{dataLength:0});if(!this[k])r.dataLength=0;const i=this.promise();this.on("data",(i=>{r.push(i);if(!this[k])r.dataLength+=i.length}));await i;return r}async concat(){if(this[k]){throw new Error("cannot concat in objectMode")}const r=await this.collect();return this[w]?r.join(""):Buffer.concat(r,r.dataLength)}async promise(){return new Promise(((r,i)=>{this.on(P,(()=>i(new Error("stream destroyed"))));this.on("error",(r=>i(r)));this.on("end",(()=>r()))}))}[Symbol.asyncIterator](){this[V]=false;let r=false;const stop=async()=>{this.pause();r=true;return{value:undefined,done:true}};const next=()=>{if(r)return stop();const i=this.read();if(i!==null)return Promise.resolve({done:false,value:i});if(this[u])return stop();let s;let a;const onerr=r=>{this.off("data",ondata);this.off("end",onend);this.off(P,ondestroy);stop();a(r)};const ondata=r=>{this.off("error",onerr);this.off("end",onend);this.off(P,ondestroy);this.pause();s({value:r,done:!!this[u]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(P,ondestroy);stop();s({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((r,i)=>{a=i;s=r;this.once(P,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[V]=false;let r=false;const stop=()=>{this.pause();this.off(O,stop);this.off(P,stop);this.off("end",stop);r=true;return{done:true,value:undefined}};const next=()=>{if(r)return stop();const i=this.read();return i===null?stop():{done:false,value:i}};this.once("end",stop);this.once(O,stop);this.once(P,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(r){if(this[P]){if(r)this.emit("error",r);else this.emit(P);return this}this[P]=true;this[V]=true;this[N].length=0;this[T]=0;const i=this;if(typeof i.close==="function"&&!this[b])i.close();if(r)this.emit("error",r);else this.emit(P);return this}static get isStream(){return i.isStream}}i.Minipass=Minipass},95326: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.PathScurry=i.Path=i.PathScurryDarwin=i.PathScurryPosix=i.PathScurryWin32=i.PathScurryBase=i.PathPosix=i.PathWin32=i.PathBase=i.ChildrenCache=i.ResolveCache=void 0;const p=s(2753);const d=s(49411);const u=s(41041);const A=s(57147);const h=c(s(87561));const g=A.realpathSync.native;const y=s(93977);const b=s(8562);const C={lstatSync:A.lstatSync,readdir:A.readdir,readdirSync:A.readdirSync,readlinkSync:A.readlinkSync,realpathSync:g,promises:{lstat:y.lstat,readdir:y.readdir,readlink:y.readlink,realpath:y.realpath}};const fsFromOption=r=>!r||r===C||r===h?C:{...C,...r,promises:{...C.promises,...r.promises||{}}};const v=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=r=>r.replace(/\//g,"\\").replace(v,"$1\\");const B=/[\\\/]/;const w=0;const I=1;const S=2;const Q=4;const x=6;const N=8;const R=10;const T=12;const D=15;const _=~D;const k=16;const P=32;const O=64;const L=128;const M=256;const U=512;const H=O|L|U;const j=1023;const entToType=r=>r.isFile()?N:r.isDirectory()?Q:r.isSymbolicLink()?R:r.isCharacterDevice()?S:r.isBlockDevice()?x:r.isSocket()?T:r.isFIFO()?I:w;const q=new Map;const normalize=r=>{const i=q.get(r);if(i)return i;const s=r.normalize("NFKD");q.set(r,s);return s};const G=new Map;const normalizeNocase=r=>{const i=G.get(r);if(i)return i;const s=normalize(r.toLowerCase());G.set(r,s);return s};class ResolveCache extends p.LRUCache{constructor(){super({max:256})}}i.ResolveCache=ResolveCache;class ChildrenCache extends p.LRUCache{constructor(r=16*1024){super({maxSize:r,sizeCalculation:r=>r.length+1})}}i.ChildrenCache=ChildrenCache;const z=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;isCWD=false;#De;#_e;get dev(){return this.#_e}#ke;get mode(){return this.#ke}#Pe;get nlink(){return this.#Pe}#Oe;get uid(){return this.#Oe}#Le;get gid(){return this.#Le}#Me;get rdev(){return this.#Me}#Fe;get blksize(){return this.#Fe}#Ue;get ino(){return this.#Ue}#L;get size(){return this.#L}#He;get blocks(){return this.#He}#je;get atimeMs(){return this.#je}#qe;get mtimeMs(){return this.#qe}#Ge;get ctimeMs(){return this.#Ge}#ze;get birthtimeMs(){return this.#ze}#Ve;get atime(){return this.#Ve}#We;get mtime(){return this.#We}#Ye;get ctime(){return this.#Ye}#Je;get birthtime(){return this.#Je}#Xe;#Ke;#$e;#Ze;#et;#tt;#rt;#it;#nt;#st;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(r,i=w,s,a,l,c,p){this.name=r;this.#Xe=l?normalizeNocase(r):normalize(r);this.#rt=i&j;this.nocase=l;this.roots=a;this.root=s||this;this.#it=c;this.#$e=p.fullpath;this.#et=p.relative;this.#tt=p.relativePosix;this.parent=p.parent;if(this.parent){this.#De=this.parent.#De}else{this.#De=fsFromOption(p.fs)}}depth(){if(this.#Ke!==undefined)return this.#Ke;if(!this.parent)return this.#Ke=0;return this.#Ke=this.parent.depth()+1}childrenCache(){return this.#it}resolve(r){if(!r){return this}const i=this.getRootString(r);const s=r.substring(i.length);const a=s.split(this.splitSep);const l=i?this.getRoot(i).#at(a):this.#at(a);return l}#at(r){let i=this;for(const s of r){i=i.child(s)}return i}children(){const r=this.#it.get(this);if(r){return r}const i=Object.assign([],{provisional:0});this.#it.set(this,i);this.#rt&=~k;return i}child(r,i){if(r===""||r==="."){return this}if(r===".."){return this.parent||this}const s=this.children();const a=this.nocase?normalizeNocase(r):normalize(r);for(const r of s){if(r.#Xe===a){return r}}const l=this.parent?this.sep:"";const c=this.#$e?this.#$e+l+r:undefined;const p=this.newChild(r,w,{...i,parent:this,fullpath:c});if(!this.canReaddir()){p.#rt|=L}s.push(p);return p}relative(){if(this.isCWD)return"";if(this.#et!==undefined){return this.#et}const r=this.name;const i=this.parent;if(!i){return this.#et=this.name}const s=i.relative();return s+(!s||!i.parent?"":this.sep)+r}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#tt!==undefined)return this.#tt;const r=this.name;const i=this.parent;if(!i){return this.#tt=this.fullpathPosix()}const s=i.relativePosix();return s+(!s||!i.parent?"":"/")+r}fullpath(){if(this.#$e!==undefined){return this.#$e}const r=this.name;const i=this.parent;if(!i){return this.#$e=this.name}const s=i.fullpath();const a=s+(!i.parent?"":this.sep)+r;return this.#$e=a}fullpathPosix(){if(this.#Ze!==undefined)return this.#Ze;if(this.sep==="/")return this.#Ze=this.fullpath();if(!this.parent){const r=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(r)){return this.#Ze=`//?/${r}`}else{return this.#Ze=r}}const r=this.parent;const i=r.fullpathPosix();const s=i+(!i||!r.parent?"":"/")+this.name;return this.#Ze=s}isUnknown(){return(this.#rt&D)===w}isType(r){return this[`is${r}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#rt&D)===N}isDirectory(){return(this.#rt&D)===Q}isCharacterDevice(){return(this.#rt&D)===S}isBlockDevice(){return(this.#rt&D)===x}isFIFO(){return(this.#rt&D)===I}isSocket(){return(this.#rt&D)===T}isSymbolicLink(){return(this.#rt&R)===R}lstatCached(){return this.#rt&P?this:undefined}readlinkCached(){return this.#nt}realpathCached(){return this.#st}readdirCached(){const r=this.children();return r.slice(0,r.provisional)}canReadlink(){if(this.#nt)return true;if(!this.parent)return false;const r=this.#rt&D;return!(r!==w&&r!==R||this.#rt&M||this.#rt&L)}calledReaddir(){return!!(this.#rt&k)}isENOENT(){return!!(this.#rt&L)}isNamed(r){return!this.nocase?this.#Xe===normalize(r):this.#Xe===normalizeNocase(r)}async readlink(){const r=this.#nt;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=await this.#De.promises.readlink(this.fullpath());const i=(await this.parent.realpath())?.resolve(r);if(i){return this.#nt=i}}catch(r){this.#ot(r.code);return undefined}}readlinkSync(){const r=this.#nt;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=this.#De.readlinkSync(this.fullpath());const i=this.parent.realpathSync()?.resolve(r);if(i){return this.#nt=i}}catch(r){this.#ot(r.code);return undefined}}#lt(r){this.#rt|=k;for(let i=r.provisional;ii(null,r)))}readdirCB(r,i=false){if(!this.canReaddir()){if(i)r(null,[]);else queueMicrotask((()=>r(null,[])));return}const s=this.children();if(this.calledReaddir()){const a=s.slice(0,s.provisional);if(i)r(null,a);else queueMicrotask((()=>r(null,a)));return}this.#bt.push(r);if(this.#Ct){return}this.#Ct=true;const a=this.fullpath();this.#De.readdir(a,{withFileTypes:true},((r,i)=>{if(r){this.#At(r.code);s.provisional=0}else{for(const r of i){this.#ht(r,s)}this.#lt(s)}this.#vt(s.slice(0,s.provisional));return}))}#Bt;async readdir(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const i=this.fullpath();if(this.#Bt){await this.#Bt}else{let resolve=()=>{};this.#Bt=new Promise((r=>resolve=r));try{for(const s of await this.#De.promises.readdir(i,{withFileTypes:true})){this.#ht(s,r)}this.#lt(r)}catch(i){this.#At(i.code);r.provisional=0}this.#Bt=undefined;resolve()}return r.slice(0,r.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const i=this.fullpath();try{for(const s of this.#De.readdirSync(i,{withFileTypes:true})){this.#ht(s,r)}this.#lt(r)}catch(i){this.#At(i.code);r.provisional=0}return r.slice(0,r.provisional)}canReaddir(){if(this.#rt&H)return false;const r=D&this.#rt;if(!(r===w||r===Q||r===R)){return false}return true}shouldWalk(r,i){return(this.#rt&Q)===Q&&!(this.#rt&H)&&!r.has(this)&&(!i||i(this))}async realpath(){if(this.#st)return this.#st;if((U|M|L)&this.#rt)return undefined;try{const r=await this.#De.promises.realpath(this.fullpath());return this.#st=this.resolve(r)}catch(r){this.#dt()}}realpathSync(){if(this.#st)return this.#st;if((U|M|L)&this.#rt)return undefined;try{const r=this.#De.realpathSync(this.fullpath());return this.#st=this.resolve(r)}catch(r){this.#dt()}}[z](r){if(r===this)return;r.isCWD=false;this.isCWD=true;const i=new Set([]);let s=[];let a=this;while(a&&a.parent){i.add(a);a.#et=s.join(this.sep);a.#tt=s.join("/");a=a.parent;s.push("..")}a=r;while(a&&a.parent&&!i.has(a)){a.#et=undefined;a.#tt=undefined;a=a.parent}}}i.PathBase=PathBase;class PathWin32 extends PathBase{sep="\\";splitSep=B;constructor(r,i=w,s,a,l,c,p){super(r,i,s,a,l,c,p)}newChild(r,i=w,s={}){return new PathWin32(r,i,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(r){return d.win32.parse(r).root}getRoot(r){r=uncToDrive(r.toUpperCase());if(r===this.root.name){return this.root}for(const[i,s]of Object.entries(this.roots)){if(this.sameRoot(r,i)){return this.roots[r]=s}}return this.roots[r]=new PathScurryWin32(r,this).root}sameRoot(r,i=this.root.name){r=r.toUpperCase().replace(/\//g,"\\").replace(v,"$1\\");return r===i}}i.PathWin32=PathWin32;class PathPosix extends PathBase{splitSep="/";sep="/";constructor(r,i=w,s,a,l,c,p){super(r,i,s,a,l,c,p)}getRootString(r){return r.startsWith("/")?"/":""}getRoot(r){return this.root}newChild(r,i=w,s={}){return new PathPosix(r,i,this.root,this.roots,this.nocase,this.childrenCache(),s)}}i.PathPosix=PathPosix;class PathScurryBase{root;rootPath;roots;cwd;#wt;#It;#it;nocase;#De;constructor(r=process.cwd(),i,s,{nocase:a,childrenCacheSize:l=16*1024,fs:c=C}={}){this.#De=fsFromOption(c);if(r instanceof URL||r.startsWith("file://")){r=(0,u.fileURLToPath)(r)}const p=i.resolve(r);this.roots=Object.create(null);this.rootPath=this.parseRootPath(p);this.#wt=new ResolveCache;this.#It=new ResolveCache;this.#it=new ChildrenCache(l);const d=p.substring(this.rootPath.length).split(s);if(d.length===1&&!d[0]){d.pop()}if(a===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=a;this.root=this.newRoot(this.#De);this.roots[this.rootPath]=this.root;let A=this.root;let h=d.length-1;const g=i.sep;let y=this.rootPath;let b=false;for(const r of d){const i=h--;A=A.child(r,{relative:new Array(i).fill("..").join(g),relativePosix:new Array(i).fill("..").join("/"),fullpath:y+=(b?"":g)+r});b=true}this.cwd=A}depth(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.depth()}childrenCache(){return this.#it}resolve(...r){let i="";for(let s=r.length-1;s>=0;s--){const a=r[s];if(!a||a===".")continue;i=i?`${a}/${i}`:a;if(this.isAbsolute(a)){break}}const s=this.#wt.get(i);if(s!==undefined){return s}const a=this.cwd.resolve(i).fullpath();this.#wt.set(i,a);return a}resolvePosix(...r){let i="";for(let s=r.length-1;s>=0;s--){const a=r[s];if(!a||a===".")continue;i=i?`${a}/${i}`:a;if(this.isAbsolute(a)){break}}const s=this.#It.get(i);if(s!==undefined){return s}const a=this.cwd.resolve(i).fullpathPosix();this.#It.set(i,a);return a}relative(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relative()}relativePosix(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relativePosix()}basename(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.name}dirname(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return(r.parent||r).fullpath()}async readdir(r=this.cwd,i={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:s}=i;if(!r.canReaddir()){return[]}else{const i=await r.readdir();return s?i:i.map((r=>r.name))}}readdirSync(r=this.cwd,i={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:s=true}=i;if(!r.canReaddir()){return[]}else if(s){return r.readdirSync()}else{return r.readdirSync().map((r=>r.name))}}async lstat(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstat()}lstatSync(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstatSync()}async readlink(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const s=await r.readlink();return i?s:s?.fullpath()}readlinkSync(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const s=r.readlinkSync();return i?s:s?.fullpath()}async realpath(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const s=await r.realpath();return i?s:s?.fullpath()}realpathSync(r=this.cwd,{withFileTypes:i}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r.withFileTypes;r=this.cwd}const s=r.realpathSync();return i?s:s?.fullpath()}async walk(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:c}=i;const p=[];if(!l||l(r)){p.push(s?r:r.fullpath())}const d=new Set;const walk=(r,i)=>{d.add(r);r.readdirCB(((r,u)=>{if(r){return i(r)}let A=u.length;if(!A)return i();const next=()=>{if(--A===0){i()}};for(const r of u){if(!l||l(r)){p.push(s?r:r.fullpath())}if(a&&r.isSymbolicLink()){r.realpath().then((r=>r?.isUnknown()?r.lstat():r)).then((r=>r?.shouldWalk(d,c)?walk(r,next):next()))}else{if(r.shouldWalk(d,c)){walk(r,next)}else{next()}}}}),true)};const u=r;return new Promise(((r,i)=>{walk(u,(s=>{if(s)return i(s);r(p)}))}))}walkSync(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:c}=i;const p=[];if(!l||l(r)){p.push(s?r:r.fullpath())}const d=new Set([r]);for(const r of d){const i=r.readdirSync();for(const r of i){if(!l||l(r)){p.push(s?r:r.fullpath())}let i=r;if(r.isSymbolicLink()){if(!(a&&(i=r.realpathSync())))continue;if(i.isUnknown())i.lstatSync()}if(i.shouldWalk(d,c)){d.add(i)}}}return p}[Symbol.asyncIterator](){return this.iterate()}iterate(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}return this.stream(r,i)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:c}=i;if(!l||l(r)){yield s?r:r.fullpath()}const p=new Set([r]);for(const r of p){const i=r.readdirSync();for(const r of i){if(!l||l(r)){yield s?r:r.fullpath()}let i=r;if(r.isSymbolicLink()){if(!(a&&(i=r.realpathSync())))continue;if(i.isUnknown())i.lstatSync()}if(i.shouldWalk(p,c)){p.add(i)}}}}stream(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:c}=i;const p=new b.Minipass({objectMode:true});if(!l||l(r)){p.write(s?r:r.fullpath())}const d=new Set;const u=[r];let A=0;const process=()=>{let r=false;while(!r){const i=u.shift();if(!i){if(A===0)p.end();return}A++;d.add(i);const onReaddir=(i,g,y=false)=>{if(i)return p.emit("error",i);if(a&&!y){const r=[];for(const i of g){if(i.isSymbolicLink()){r.push(i.realpath().then((r=>r?.isUnknown()?r.lstat():r)))}}if(r.length){Promise.all(r).then((()=>onReaddir(null,g,true)));return}}for(const i of g){if(i&&(!l||l(i))){if(!p.write(s?i:i.fullpath())){r=true}}}A--;for(const r of g){const i=r.realpathCached()||r;if(i.shouldWalk(d,c)){u.push(i)}}if(r&&!p.flowing){p.once("drain",process)}else if(!h){process()}};let h=true;i.readdirCB(onReaddir,true);h=false}};process();return p}streamSync(r=this.cwd,i={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){i=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:c}=i;const p=new b.Minipass({objectMode:true});const d=new Set;if(!l||l(r)){p.write(s?r:r.fullpath())}const u=[r];let A=0;const process=()=>{let r=false;while(!r){const i=u.shift();if(!i){if(A===0)p.end();return}A++;d.add(i);const h=i.readdirSync();for(const i of h){if(!l||l(i)){if(!p.write(s?i:i.fullpath())){r=true}}}A--;for(const r of h){let i=r;if(r.isSymbolicLink()){if(!(a&&(i=r.realpathSync())))continue;if(i.isUnknown())i.lstatSync()}if(i.shouldWalk(d,c)){u.push(i)}}}if(r&&!p.flowing)p.once("drain",process)};process();return p}chdir(r=this.cwd){const i=this.cwd;this.cwd=typeof r==="string"?this.cwd.resolve(r):r;this.cwd[z](i)}}i.PathScurryBase=PathScurryBase;class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(r=process.cwd(),i={}){const{nocase:s=true}=i;super(r,d.win32,"\\",{...i,nocase:s});this.nocase=s;for(let r=this.cwd;r;r=r.parent){r.nocase=this.nocase}}parseRootPath(r){return d.win32.parse(r).root.toUpperCase()}newRoot(r){return new PathWin32(this.rootPath,Q,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")||r.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(r)}}i.PathScurryWin32=PathScurryWin32;class PathScurryPosix extends PathScurryBase{sep="/";constructor(r=process.cwd(),i={}){const{nocase:s=false}=i;super(r,d.posix,"/",{...i,nocase:s});this.nocase=s}parseRootPath(r){return"/"}newRoot(r){return new PathPosix(this.rootPath,Q,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")}}i.PathScurryPosix=PathScurryPosix;class PathScurryDarwin extends PathScurryPosix{constructor(r=process.cwd(),i={}){const{nocase:s=true}=i;super(r,{...i,nocase:s})}}i.PathScurryDarwin=PathScurryDarwin;i.Path=process.platform==="win32"?PathWin32:PathPosix;i.PathScurry=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix},4868:r=>{"use strict";function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r}const i=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function ensureBuffer(r){if(Buffer.isBuffer(r)){return r}if(typeof r==="number"){return Buffer.alloc(r)}else if(typeof r==="string"){return Buffer.from(r)}else{throw new Error("input must be buffer, number, or string, received "+typeof r)}}function bufferizeInt(r){const i=ensureBuffer(4);i.writeInt32BE(r,0);return i}function _crc32(r,s){r=ensureBuffer(r);if(Buffer.isBuffer(s)){s=s.readUInt32BE(0)}let a=~~s^-1;for(var l=0;l>>8}return a^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var s=crc32;const a=getDefaultExportFromCjs(s);r.exports=a},34004:r=>{"use strict";r.exports=JSON.parse('{"name":"@actions/artifact","version":"2.1.7","preview":true,"description":"Actions artifact lib","keywords":["github","actions","artifact"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/artifact","license":"MIT","main":"lib/artifact.js","types":"lib/artifact.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/artifact"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"cd ../../ && npm run test ./packages/artifact","bootstrap":"cd ../../ && npm run bootstrap","tsc-run":"tsc","tsc":"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.10.0","@actions/github":"^5.1.1","@actions/http-client":"^2.1.0","@azure/storage-blob":"^12.15.0","@octokit/core":"^3.5.1","@octokit/plugin-request-log":"^1.0.4","@octokit/plugin-retry":"^3.0.9","@octokit/request-error":"^5.0.0","@protobuf-ts/plugin":"^2.2.3-alpha.1","archiver":"^7.0.1","crypto":"^1.0.1","jwt-decode":"^3.1.2","twirp-ts":"^2.5.0","unzip-stream":"^0.3.1"},"devDependencies":{"@types/archiver":"^5.3.2","@types/unzip-stream":"^0.3.4","typedoc":"^0.25.4","typedoc-plugin-markdown":"^3.17.1","typescript":"^5.2.2"}}')},54558:r=>{"use strict";r.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},31229:r=>{"use strict";r.exports=JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]')}};var __webpack_module_cache__={};function __nccwpck_require__(r){var i=__webpack_module_cache__[r];if(i!==undefined){return i.exports}var s=__webpack_module_cache__[r]={id:r,loaded:false,exports:{}};var a=true;try{__webpack_modules__[r].call(s.exports,s,s.exports,__nccwpck_require__);a=false}finally{if(a)delete __webpack_module_cache__[r]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.nmd=r=>{r.paths=[];if(!r.children)r.children=[];return r}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const r=__nccwpck_require__(19093);const{capturePolicy:i}=__nccwpck_require__(82127);i().catch((i=>r.setFailed(i.message)))})();module.exports=__webpack_exports__})(); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/capture-policy/index.js.map b/dist/capture-policy/index.js.map index 773af64..fafd7b9 100644 --- a/dist/capture-policy/index.js.map +++ b/dist/capture-policy/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","CreateArtifactRequest$Type","workflowRunBackendId","workflowJobRunBackendId","version","expiresAt","fork","join","CreateArtifactResponse$Type","ok","signedUploadUrl","FinalizeArtifactRequest$Type","size","hash","FinalizeArtifactResponse$Type","artifactId","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","createArtifactServiceServer","ArtifactServiceMethodList","ArtifactServiceMethod","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","twirp_ts_1","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","fromJson","ignoreUnknownFields","toBinary","fromBinary","service","TwirpServer","packageName","serviceName","methodList","matchRoute","matchArtifactServiceRoute","method","events","ctx","interceptors","assign","methodName","onMatch","handleArtifactServiceCreateArtifactRequest","handleArtifactServiceFinalizeArtifactRequest","handleArtifactServiceListArtifactsRequest","handleArtifactServiceGetSignedArtifactURLRequest","handleArtifactServiceDeleteArtifactRequest","onNotFound","TwirpError","TwirpErrorCode","BadRoute","contentType","TwirpContentType","JSON","handleArtifactServiceCreateArtifactJSON","Protobuf","handleArtifactServiceCreateArtifactProtobuf","handleArtifactServiceFinalizeArtifactJSON","handleArtifactServiceFinalizeArtifactProtobuf","handleArtifactServiceListArtifactsJSON","handleArtifactServiceListArtifactsProtobuf","handleArtifactServiceGetSignedArtifactURLJSON","handleArtifactServiceGetSignedArtifactURLProtobuf","handleArtifactServiceDeleteArtifactJSON","handleArtifactServiceDeleteArtifactProtobuf","response","body","Malformed","withCause","interceptor","chainInterceptors","inputReq","stringify","Buffer","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","mod","__importDefault","default","streamExtractExternal","promises_1","stream","fs_1","path","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","access","code","streamExtract","directory","retryCount","includes","setTimeout","HttpClient","statusCode","statusMessage","timeout","timerFn","destroy","timer","createdDirectories","Set","add","on","refresh","clearTimeout","pipe","Parse","Transform","objectMode","transform","entry","_","callback","fullPath","normalize","endsWith","sep","startsWith","type","has","resolveOrCreateDirectory","autodrain","dirname","writeStream","createWriteStream","downloadPath","api","archive_format","redirect","location","signedReq","getGitHubWorkspaceDir","mkdir","recursive","run_id","size_in_bytes","created_at","maximumArtifactCount","paginationCount","maxNumberOfPages","currentPageNumber","listArtifactResponse","listWorkflowRunArtifacts","per_page","page","numberOfPages","total_count","totalArtifactCount","filterLatest","map","latestArtifacts","seenArtifactNames","defaultMaxRetryNumber","defaultExemptStatusCodes","defaultOptions","retries","exemptStatusCodes","enabled","retryOptions","doNotRetry","requestOptions","http_client_1","auth_1","ArtifactHttpClient","maxAttempts","baseRetryIntervalMilliseconds","retryMultiplier","getRuntimeToken","baseUrl","getResultsServiceUrl","BearerCredentialHandler","href","retryableRequest","post","operation","attempt","errorMessage","rawBody","isRetryable","readBody","isSuccessStatusCode","isRetryableHttpStatusCode","UsageError","isUsageErrorMessage","SyntaxError","NetworkError","isNetworkErrorCode","retryTimeMilliseconds","getExponentialRetryTimeMilliseconds","sleep","retryableStatusCodes","HttpCodes","BadGateway","GatewayTimeout","InternalServerError","ServiceUnavailable","TooManyRequests","milliseconds","minTime","pow","maxTime","trunc","random","retryIntervalMs","getConcurrency","getUploadChunkSize","os_1","process","env","resultsUrl","origin","ghUrl","hostname","trimEnd","toUpperCase","isGitHubHost","isGheHost","ghWorkspaceDir","numCPUs","cpus","concurrency","FilesNotFoundError","packageJson","jwt_decode_1","InvalidJwtError","decoded","scp","scpParts","split","scopes","scopeParts","ids","uploadZipToBlobStorage","storage_blob_1","crypto","authenticatedUploadURL","zipUploadStream","uploadByteCount","lastProgressTime","timeoutId","chunkTimer","maxConcurrency","bufferSize","blobClient","BlobClient","blockBlobClient","getBlockBlobClient","timeoutDuration","uploadCallback","progress","loadedBytes","blobHTTPHeaders","blobContentType","onProgress","sha256Hash","uploadStream","PassThrough","hashStream","createHash","setEncoding","read","uploadSize","validateFilePath","validateArtifactName","invalidArtifactFilePathCharacters","Map","invalidArtifactNameCharacters","invalidCharacterKey","errorMessageForCharacter","Array","values","getExpiration","retentionDays","maxRetentionDays","getRetentionDays","expirationDate","setDate","getDate","days","retention_1","path_and_artifact_name_validation_1","upload_zip_specification_1","blob_upload_1","zip_1","validateRootDirectory","zipSpecification","getUploadZipSpecification","flatMap","sourcePath","backendIds","createArtifactReq","createArtifactResp","createZipUploadStream","compressionLevel","uploadResult","finalizeArtifactReq","finalizeArtifactResp","BigInt","fs","path_1","existsSync","statSync","isDirectory","filesToZip","specification","file","uploadPath","destinationPath","directoryPath","ZipUploadStream","DEFAULT_COMPRESSION_LEVEL","archiver","highWaterMark","_transform","chunk","enc","cb","uploadSpecification","zip","zlib","level","zipErrorCallback","zipWarningCallback","zipFinishCallback","zipEndCallback","append","createReadStream","writableHighWaterMark","readableHighWaterMark","finalize","issue","issueCommand","os","command","properties","cmd","Command","stdout","write","EOL","CMD_STRING","cmdStr","keys","first","key","val","escapeProperty","escapeData","toCommandValue","getIDToken","getState","saveState","group","endGroup","startGroup","notice","isDebug","setFailed","setCommandEcho","setOutput","getBooleanInput","getMultilineInput","getInput","addPath","setSecret","exportVariable","ExitCode","command_1","file_command_1","oidc_utils_1","convertedVal","filePath","issueFileCommand","prepareKeyValueMessage","secret","inputPath","delimiter","required","trimWhitespace","trim","inputs","filter","x","input","trueValue","falseValue","TypeError","exitCode","Failure","toCommandProperties","fn","aud","OidcClient","summary_1","summary","summary_2","markdownSummary","path_utils_1","toPosixPath","toWin32Path","toPlatformPath","uuid_1","appendFileSync","encoding","v4","convertedValue","createHttpClient","allowRetry","maxRetry","allowRetries","maxRetries","getRequestToken","getIDTokenUrl","runtimeUrl","getCall","id_token_url","httpclient","getJson","catch","id_token","audience","encodedAudience","encodeURIComponent","pth","SUMMARY_DOCS_URL","SUMMARY_ENV_VAR","appendFile","writeFile","promises","Summary","_buffer","_filePath","pathFromEnv","constants","R_OK","W_OK","wrap","content","attrs","htmlAttrs","entries","overwrite","writeFunc","emptyBuffer","clear","isEmptyBuffer","addRaw","text","addEOL","addCodeBlock","lang","element","addList","items","ordered","listItems","item","addTable","rows","tableBody","row","cells","cell","header","colspan","rowspan","addDetails","label","addImage","src","alt","width","height","addHeading","allowedTag","addSeparator","addBreak","addQuote","cite","addLink","_summary","String","annotationProperties","title","line","startLine","endLine","col","startColumn","endColumn","Context","_b","_c","payload","GITHUB_EVENT_PATH","readFileSync","eventName","GITHUB_EVENT_NAME","sha","GITHUB_SHA","ref","GITHUB_REF","workflow","GITHUB_WORKFLOW","action","GITHUB_ACTION","actor","GITHUB_ACTOR","job","GITHUB_JOB","runNumber","GITHUB_RUN_NUMBER","runId","GITHUB_RUN_ID","apiUrl","GITHUB_API_URL","serverUrl","GITHUB_SERVER_URL","graphqlUrl","GITHUB_GRAPHQL_URL","number","pull_request","GITHUB_REPOSITORY","repository","login","context","additionalPlugins","GitHubWithPlugins","GitHub","plugin","getOctokitOptions","getApiBaseUrl","getProxyAgent","getAuthString","auth","destinationUrl","hc","getAgent","Utils","plugin_rest_endpoint_methods_1","plugin_paginate_rest_1","agent","Octokit","restEndpointMethods","paginateRest","PersonalAccessTokenCredentialHandler","BasicCredentialHandler","username","password","prepareRequest","canHandleAuthentication","handleAuthentication","isHttps","HttpClientResponse","HttpClientError","getProxyUrl","MediaTypes","Headers","http","https","pm","tunnel","proxyUrl","HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","HttpResponseRetryCodes","RetryableHttpVerbs","ExponentialBackoffCeiling","ExponentialBackoffTimeSlice","setPrototypeOf","output","alloc","concat","readBodyBuffer","chunks","requestUrl","parsedUrl","protocol","handlers","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","max","keepAlive","additionalHeaders","del","patch","put","head","sendStream","verb","Accept","_getExistingOrDefaultHeader","ApplicationJson","_processResponse","postJson","obj","ContentType","putJson","patchJson","_prepareRequest","maxTries","numTries","requestRaw","Unauthorized","authenticationHandler","handler","redirectsRemaining","redirectUrl","parsedRedirectUrl","toLowerCase","_performExponentialBackoff","dispose","_agent","callbackForResult","err","requestRawWithCallback","onResult","byteLength","callbackCalled","handleResult","httpModule","socket","sock","_getAgent","usingSsl","defaultPort","host","port","pathname","_mergeHeaders","lowercaseKeys","_default","clientHeader","useProxy","_proxyAgent","maxSockets","globalAgent","agentOptions","proxy","proxyAuth","tunnelAgent","overHttps","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","retryNumber","min","NotFound","dateTimeDeserializer","valueOf","contents","deserializeDates","reduce","c","checkBypass","reqUrl","proxyVar","reqHost","isLoopbackAddress","noProxy","reqPort","upperReqHosts","upperNoProxyItem","some","hostLower","listenersMap","WeakMap","abortedMap","AbortSignal","onabort","set","aborted","none","addEventListener","_type","listener","listeners","removeEventListener","index","splice","dispatchEvent","_event","abortSignal","signal","slice","forEach","AbortError","AbortController","parentSignals","_signal","isArray","arguments","parentSignal","abort","unref","coreUtil","AzureKeyCredential","_key","update","newKey","AzureNamedKeyCredential","_name","newName","isNamedKeyCredential","credential","isObjectWithProperties","AzureSASCredential","signature","_signature","newSignature","isSASCredential","isTokenCredential","castCredential","getToken","signRequest","uuid","util","tslib","xml2js","logger$1","coreAuth","abortController","FormData","node_fetch","coreTracing","_interopDefaultLegacy","_interopNamespace","n","freeze","xml2js__namespace","os__namespace","http__namespace","https__namespace","tunnel__namespace","FormData__default","node_fetch__default","getHeaderKey","headerName","isHttpHeadersLike","object","castObject","rawHeaders","clone","contains","remove","headersArray","headerValues","headerNames","HttpHeaders","_headersMap","headerValue","preserveCase","headerKey","resultPreservingCasing","encodeString","encodeByteArray","bufferValue","buffer","decodeString","Constants","coreHttpVersion","HTTP","HTTPS","HTTP_PROXY","HTTPS_PROXY","NO_PROXY","ALL_PROXY","HttpConstants","HttpVerbs","PUT","GET","DELETE","POST","MERGE","HEAD","PATCH","StatusCodes","HeaderConstants","AUTHORIZATION","AUTHORIZATION_SCHEME","RETRY_AFTER","USER_AGENT","XML_ATTRKEY","XML_CHARKEY","validUuidRegex","encodeUri","uri","stripResponse","strippedResponse","bodyAsText","stripRequest","strippedRequest","isValidUuid","test","generateUuid","executePromisesSequentially","promiseFactories","kickstart","promiseFactory","promiseToCallback","promiseToServiceCallback","nextTick","parsedBody","prepareXMLRootList","elementName","xmlNamespaceKey","xmlNamespace","applyMixins","targetCtorParam","sourceCtors","castTargetCtorParam","sourceCtor","getOwnPropertyNames","validateISODuration","isDuration","replaceAll","searchValue","replaceValue","isPrimitiveType","getEnvironmentValue","isObject","RegExp","Serializer","modelMappers","isXML","validateConstraints","mapper","objectName","failValidation","constraintName","constraintValue","constraints","valueAsNumber","ExclusiveMaximum","ExclusiveMinimum","InclusiveMaximum","InclusiveMinimum","MaxItems","MaxLength","MinItems","MinLength","MultipleOf","Pattern","UniqueItems","valueAsArray","pattern","ar","serialize","updatedOptions","rootName","includeRoot","xmlCharKey","mapperType","serializedName","isConstant","defaultValue","nullable","serializeBasicTypes","enumMapper","serializeEnumType","allowedValues","serializeDateTypes","serializeByteArrayType","serializeBase64UrlType","serializeSequenceType","Boolean","serializeDictionaryType","serializeCompositeType","deserialize","responseBody","xmlIsWrapped","deserializeCompositeType","castResponseBody","parseFloat","unixTimeToDate","base64UrlToByteArray","deserializeSequenceType","deserializeDictionaryType","str","ch","len","substr","bufferToBase64Url","splitSerializeName","prop","classes","partialclass","subwords","charAt","dateToUnixTime","objectType","ArrayBuffer","isView","Blob","isPresent","returnValue","toUTCString","serializer","isXml","elementType","tempArray","serializedValue","xmlnsKey","xmlNamespacePrefix","valueType","tempDictionary","getXmlObjectValue","resolveAdditionalProperties","additionalProperties","className","modelMapper","resolveReferencedMapper","resolveModelProperties","modelProps","modelProperties","getPolymorphicDiscriminatorRecursively","getPolymorphicMapper","propertyMapper","readOnly","propName","parentObject","xmlName","xmlElementName","paths","pop","pathName","childObject","propertyObjectName","toSerialize","polymorphicDiscriminator","clientName","xmlIsAttribute","additionalPropertiesMapper","propNames","clientPropName","isAdditionalProperty","every","pn","isSpecialXmlProperty","propertyName","instance","handledPropertyNames","headerCollectionPrefix","dictionary","xmlIsMsText","wrapped","elementList","property","propertyInstance","arrayInstance","responsePropName","polymorphicPropertyName","discriminatorName","discriminatorValue","uberParent","indexDiscriminator","polymorphicMapper","discriminators","getPolymorphicDiscriminatorSafely","serializeObject","castToSerialize","array","strEnum","MapperType","isWebResourceLike","validateRequestProperties","prepare","WebResource","query","streamResponseBody","withCredentials","onUploadProgress","onDownloadProgress","proxySettings","decompressResponse","streamResponseStatusCodes","formData","requestId","pathTemplate","validMethods","pathParameters","segments","pathParamName","pathParam","stringifiedPathParameters","skipUrlEncoding","queryParameters","queryParams","queryParamName","queryParam","disableClientRequestId","bodyIsStream","serializationMapper","mappers","disableJsonStringifyOnBody","spanOptions","tracingContext","operationSpec","shouldDeserialize","operationResponseGetter","URLQuery","_rawQuery","any","parameterName","parameterValue","caseParameterValue","newValue","parameterStrings","parameterValueElement","currentState","currentCharacter","URLBuilder","setScheme","scheme","_scheme","getScheme","setHost","_host","getHost","setPort","_port","getPort","setPath","_path","schemeIndex","schemeStart","lastIndexOf","appendPath","currentPath","getPath","setQuery","_query","setQueryParameter","queryParameterName","queryParameterValue","getQueryParameterValue","getQuery","startState","tokenizer","URLTokenizer","current","tokenPath","URLToken","isAlphaNumericCharacter","character","characterCode","charCodeAt","_text","state","_textLength","_currentState","_currentIndex","_currentToken","hasCurrentCharacter","nextScheme","nextSchemeOrHost","nextHost","nextPort","nextPath","nextQuery","readRemaining","getCurrentCharacter","nextCharacter","peekCharacters","charactersToPeek","endIndex","readWhile","condition","readWhileLetterOrDigit","readUntilCharacter","terminatingCharacters","schemeOrHost","createProxyAgent","isValidPort","tunnelOptions","isRequestHttps","isUrlHttps","isProxyHttps","proxyAgent","createTunnel","urlScheme","RedactedString","defaultAllowedHeaderNames","defaultAllowedQueryParameters","Sanitizer","allowedHeaderNames","allowedQueryParameters","sanitize","seen","sanitizeHeaders","sanitizeUrl","sanitizeQuery","sanitizeObject","allowedKeys","accessor","sanitized","urlBuilder","queryString","custom","inspect","errorSanitizer","RestError","REQUEST_SEND_ERROR","PARSE_ERROR","logger","createClientLogger","getCachedAgent","agentCache","httpsAgent","httpAgent","ReportTransform","progressCallback","_encoding","isReadableStream","isStreamComplete","aborter","once","parseHeaders","httpHeaders","NodeFetchHttpClient","proxyAgentMap","keepAliveAgents","sendRequest","httpRequest","abortController$1","abortListener","event","requestForm","appendFormValue","formKey","formValue","j","getBoundary","uploadReportStream","platformSpecificRequestInit","requestInit","operationResponse","fetch","streaming","readableStreamBody","downloadReportStream","processRequest","fetchError","uploadStreamDone","downloadStreamDone","all","getOrCreateAgent","proxyAgents","init","compress","_operationResponse","HttpPipelineLogLevel","operationOptionsToRequestOptionsBase","tracingOptions","additionalOptions","BaseRequestPolicy","_nextPolicy","_options","shouldLog","logLevel","RequestPolicyOptions","_logger","OFF","minimumLogLevel","xml2jsDefaultOptionsV2","explicitCharkey","normalizeTags","attrkey","explicitArray","ignoreAttrs","mergeAttrs","explicitRoot","validator","xmlns","explicitChildren","preserveChildrenOrder","childkey","charsAsChildren","includeWhiteChars","async","strict","attrNameProcessors","attrValueProcessors","tagNameProcessors","valueProcessors","xmldec","standalone","doctype","renderOpts","pretty","indent","newline","headless","chunkSize","emptyTag","cdata","xml2jsParserSettings","xml2jsBuilderSettings","stringifyXML","charkey","builder","Builder","buildObject","parseXML","xmlParser","Parser","parseString","deserializationPolicy","deserializationContentTypes","parsingOptions","nextPolicy","DeserializationPolicy","defaultJsonContentTypes","defaultXmlContentTypes","DefaultDeserializationOptions","expectedContentTypes","xml","requestPolicyOptions","jsonContentTypes","xmlContentTypes","deserializeResponseBody","getOperationResponse","parsedResponse","responses","shouldDeserializeResponse","responseSpec","shouldReturnResponse","handleErrorResponse","bodyMapper","valueToDeserialize","Sequence","innerError","restError","httpMethod","headersMapper","parsedHeaders","isOperationSpecEmpty","expectedStatusCodes","isSuccessByStatus","isExpectedStatusCode","isError","errorResponseSpec","initialErrorMessage","defaultBodyMapper","defaultHeadersMapper","parsedError","internalError","defaultError","errorHandler","errCode","contentComponents","component","DefaultKeepAliveOptions","enable","keepAlivePolicy","keepAliveOptions","KeepAlivePolicy","allowedRedirect","DefaultRedirectOptions","handleRedirects","redirectPolicy","maximumRetries","RedirectPolicy","handleRedirect","policy","currentRetries","locationHeader","DEFAULT_CLIENT_RETRY_COUNT","DEFAULT_CLIENT_RETRY_INTERVAL","DEFAULT_CLIENT_MAX_RETRY_INTERVAL","DEFAULT_CLIENT_MIN_RETRY_INTERVAL","isNumber","shouldRetry","retryLimit","predicate","retryData","updateRetryData","retryInterval","incrementDelta","boundedRandDelta","minRetryInterval","maxRetryInterval","exponentialRetryPolicy","ExponentialRetryPolicy","RetryMode","DefaultRetryOptions","retryDelayInMs","maxRetryDelayInMs","retry$1","requestError","shouldPolicyRetry","responseParam","isAborted","delay","logPolicy","loggingOptions","LogPolicy","sanitizer","logRequest","logResponse","getPathStringFromParameter","parameter","getPathStringFromParameterPath","parameterPath","getStreamResponseStatusCodes","Stream","getDefaultUserAgentKey","getPlatformSpecificData","runtimeInfo","osInfo","arch","release","getRuntimeInfo","msRestRuntime","telemetryInfo","keySeparator","valueSeparator","getDefaultUserAgentHeaderName","getDefaultUserAgentValue","platformSpecificData","userAgentPolicy","userAgentData","UserAgentPolicy","addUserAgentHeader","QueryCollectionFormat","DEFAULT_CYCLER_OPTIONS","forcedRefreshWindowInMs","retryIntervalInMs","refreshWindowInMs","beginRefresh","getAccessToken","timeoutInMs","tryGetAccessToken","finalToken","createTokenCycler","tokenCyclerOptions","refreshWorker","cycler","isRefreshing","shouldRefresh","expiresOnTimestamp","mustRefresh","getTokenOptions","_token","reason","tokenOptions","bearerTokenAuthenticationPolicy","BearerTokenAuthenticationPolicy","webResource","disableResponseDecompressionPolicy","DisableResponseDecompressionPolicy","generateClientRequestIdPolicy","requestIdHeaderName","GenerateClientRequestIdPolicy","_requestIdHeaderName","cachedHttpClient","getCachedDefaultHttpClient","ndJsonPolicy","NdJsonPolicy","globalNoProxyList","noProxyListLoaded","globalBypassedMap","loadEnvironmentProxyValue","httpsProxy","allProxy","httpProxy","isBypassed","noProxyList","bypassedMap","isBypassedFlag","loadNoProxy","getDefaultProxySettings","urlWithoutAuth","extractAuthFromUrl","schema","proxyPolicy","ProxyPolicy","customNoProxyList","atIndex","authStart","colonIndex","hasPassword","rpRegistrationPolicy","retryTimeout","RPRegistrationPolicy","_retryTimeout","registerIfNeeded","rpName","checkRPNotRegisteredError","urlPrefix","extractSubscriptionUrl","registerRP","registrationStatus","getRequestEssentials","originalRequest","reuseUrlToo","reqOptions","matchRes","provider","postUrl","getUrl","getRegistrationStatus","registrationState","signingPolicy","authenticationProvider","SigningPolicy","nextRequest","systemErrorRetryPolicy","SystemErrorRetryPolicy","_response","nestedErr","DEFAULT_CLIENT_MAX_RETRY_COUNT","throttlingRetryPolicy","ThrottlingRetryPolicy","StandardAbortMessage","_handleResponse","numberOfRetries","_defaultResponseHandler","httpResponse","retryAfterHeader","delayInMs","parseRetryAfterHeader","abortErrorMsg","retryAfterInSeconds","parseDateRetryAfterHeader","diff","createSpan","createSpanFunction","packagePrefix","namespace","tracingPolicy","TracingPolicy","span","tryCreateSpan","tryProcessResponse","tryProcessError","SpanKind","CLIENT","isRecording","namespaceFromContext","getValue","Symbol","for","setAttribute","setAttributes","spanContext","traceParentHeader","getTraceParentHeader","isSpanContextValid","traceState","setStatus","SpanStatusCode","ERROR","serviceRequestId","OK","ServiceClient","credentials","_withCredentials","_httpClient","_requestPolicyOptions","httpPipelineLogger","requestPolicyFactories","authPolicyFactory","wrappedPolicyFactory","bearerTokenPolicyFactory","serviceClient","serviceClientOptions","createOptions","credentialScopes","getCredentialScopes","baseUri","createDefaultRequestPolicyFactories","newRequestPolicyFactories","_requestPolicyFactories","httpPipeline","sendOperationRequest","operationArguments","serializerOptions","urlParameters","urlParameter","urlParameterValue","getOperationArgumentValueFromParameter","skipEncoding","queryParameter","collectionFormat","Multi","Ssv","Tsv","requestContentType","requestBody","headerParameters","headerParameter","customHeaders","customHeaderName","serializeRequestBody","rawResponse","sendRequestError","details","flattenResponse","_d","_e","_f","requestBodyParameterPathString","isStream","getXmlValueWithNamespace","mediaType","formDataParameters","formDataParameter","formDataParameterValue","formDataParameterPropertyName","getValueOrFunctionResult","defaultValueCreator","factories","generateClientRequestIdHeader","clientRequestIdHeaderName","userAgentHeaderName","userAgentHeaderValue","rpRegistrationRetryTimeout","noRetryPolicy","isNode","createPipelineFromOptions","pipelineOptions","sendStreamingJson","userAgentValue","userAgentOptions","userAgentPrefix","userAgentInfo","defaultUserAgentInfo","redirectOptions","proxyOptions","deserializationOptions","getOperationArgumentValueFromParameterPath","parameterMapper","propertySearchResult","getPropertyFromParameterPath","propertyFound","useDefaultValue","propertyValue","parameterPathString","propertyPath","propertyPathString","parent","parameterPathPart","addOperationResponse","blobBody","isPageableResponse","arrayResponse","args","TokenRefreshBufferMs","ExpiringAccessTokenCache","tokenRefreshBufferMs","cachedToken","setCachedToken","accessToken","getCachedToken","AccessTokenRefresher","requiredMillisecondsBeforeNewRefresh","lastCalled","isReady","DEFAULT_AUTHORIZATION_SCHEME","BasicAuthenticationCredentials","userName","authorizationScheme","encodedCredentials","ApiKeyCredentials","inHeader","inQuery","TopicCredentials","topicKey","DefaultHttpClient","POLL_INTERVAL_IN_MS","terminalStates","deserializeState","serializedState","setStateError","stateProxy","isOperationError","setError","appendReadableErrorMessage","currentMessage","innerMessage","simplifyError","curErr","innererror","processOperationStatus","isDone","processResult","getError","setErrorAsResult","setSucceeded","postfix","errStr","setCanceled","setResult","buildResult","initOperation","getOperationStatus","withOperationLocation","operationLocation","resourceLocation","metadata","config","verbose","initState","pollOperationHelper","poll","getResourceLocation","pollOperation","getOperationLocation","getPollingInterval","updateState","setDelay","intervalInMs","isUpdated","getOperationLocationPollingUrl","azureAsyncOperation","getLocationHeader","getOperationLocationHeader","getAzureAsyncOperationHeader","findResourceLocation","requestMethod","requestPath","resourceLocationConfig","getDefault","inferLroMode","pollingUrl","normalizedRequestMethod","toLocaleUpperCase","mode","transformStatus","toLocaleLowerCase","toOperationStatus","getStatus","getProvisioningState","provisioningState","parseRetryAfter","retryAfter","calculatePollingIntervalFromDate","getErrorFromResponse","flatResponse","retryAfterDate","timeNow","retryAfterTime","getStatusFromInitialResponse","helper","initHttpOperation","lro","sendInitialRequest","pollHttpOperation","inputState","inputOptions","sendPollRequest","createStateProxy$1","setRunning","getResult","isCanceled","isFailed","isRunning","isSucceeded","buildCreatePoller","getStatusFromPollResponse","resolveOnUnsuccessful","withOperationLocationCallback","restoreFrom","called","resultPromise","handleProgressEvents","h","cancelErrMsg","currentPollIntervalInMs","poller","getOperationState","isStopped","stopPolling","delete","pollUntilDone","pollOptions","inputAbortSignal","finally","pollIntervalInMs","createHttpPoller","createStateProxy","isStarted","isCancelled","isCompleted","GenericPollOperation","lroResourceLocationConfig","setPollerConfig","pollerConfig","fireProgress","cancel","PollerStoppedError","PollerCancelledError","Poller","stopped","pollProgressCallbacks","startPolling","pollOnce","processUpdatedState","cancelOnce","pollOncePromise","clearPollOncePromise","cancelOperation","cancelPromise","LroEngine","resumeFrom","getPagedAsyncIterator","pagedResult","iter","getItemAsyncIterator","asyncIterator","byPage","settings","continuationToken","maxPageSize","getPageAsyncIterator","pageLink","__asyncGenerator","getItemAsyncIterator_1","e_1","e_2","pages","firstVal","__await","toElements","__asyncDelegator","__asyncValues","pages_1","pages_1_1","e_1_1","return","pages_2","pages_2_1","e_2_1","getPageAsyncIterator_1","getPage","firstPageLink","nextPageLink","getSpan","trace","setSpan","setSpanContext","getSpanContext","getTracer","isTracingDisabled","azureTracingDisabledValue","AZURE_TRACING_DISABLED","operationName","operationOptions","tracer","INTERNAL","spanName","wrapSpanContext","INVALID_SPAN_CONTEXT","startSpan","newSpanOptions","attributes","newTracingOptions","active","newOperationOptions","VERSION","extractSpanContextFromTraceParentHeader","parts","traceId","spanId","traceOptions","traceFlags","missingFields","flags","hexFlags","createAbortablePromise","buildPromise","cleanupBeforeAbort","rejectOnAbort","removeListeners","onAbort","timeInMs","cancelablePromiseRace","abortablePromiseBuilders","abortHandler","race","getRandomIntegerInclusive","offset","hasName","hasMessage","getErrorMessage","stringified","computeSha256Hmac","stringToSign","decodedKey","createHmac","digest","computeSha256Hash","isDefined","thing","objectHasProperty","generateUUID","randomNumber","_a$1","uuidFunction","randomUUID","isBrowser","window","document","isWebWorker","self","importScripts","isDeno","Deno","deno","versions","node","isBun","Bun","isReactNative","navigator","product","uint8ArrayToString","format","stringToUint8Array","util__default","stderr","debugEnvVariable","DEBUG","enabledString","enabledNamespaces","skippedNamespaces","debuggers","debugObj","createDebugger","disable","namespaces","wildcard","namespaceList","ns","skipped","enabledNamespace","newDebugger","extend","registeredLoggers","logLevelFromEnv","AZURE_LOG_LEVEL","azureLogLevel","AzureLogger","AZURE_LOG_LEVELS","isAzureLogLevel","setLogLevel","console","shouldEnable","getLogLevel","levelMap","clientRootLogger","patchLogMethod","createLogger","child","coreHttp","coreLro","coreHttp__namespace","fs__namespace","util__namespace","BlobServiceProperties","blobAnalyticsLogging","hourMetrics","minuteMetrics","cors","defaultServiceVersion","deleteRetentionPolicy","staticWebsite","Logging","deleteProperty","retentionPolicy","RetentionPolicy","Metrics","includeAPIs","CorsRule","allowedOrigins","allowedMethods","allowedHeaders","exposedHeaders","maxAgeInSeconds","StaticWebsite","indexDocument","errorDocument404Path","defaultIndexDocumentPath","StorageError","BlobServiceStatistics","geoReplication","GeoReplication","lastSyncOn","ListContainersSegmentResponse","serviceEndpoint","prefix","marker","containerItems","ContainerItem","deleted","ContainerProperties","lastModified","etag","leaseStatus","leaseState","leaseDuration","publicAccess","hasImmutabilityPolicy","hasLegalHold","defaultEncryptionScope","preventEncryptionScopeOverride","deletedOn","remainingRetentionDays","isImmutableStorageWithVersioningEnabled","KeyInfo","startsOn","expiresOn","UserDelegationKey","signedObjectId","signedTenantId","signedStartsOn","signedExpiresOn","signedService","signedVersion","FilterBlobSegment","where","blobs","FilterBlobItem","containerName","tags","BlobTags","blobTagSet","BlobTag","SignedIdentifier","accessPolicy","AccessPolicy","permissions","ListBlobsFlatSegmentResponse","segment","BlobFlatListSegment","blobItems","BlobItemInternal","snapshot","versionId","isCurrentVersion","blobTags","objectReplicationMetadata","hasVersionsOnly","BlobName","encoded","BlobPropertiesInternal","createdOn","contentLength","contentEncoding","contentLanguage","contentMD5","contentDisposition","cacheControl","blobSequenceNumber","blobType","copyId","copyStatus","copySource","copyProgress","copyCompletedOn","copyStatusDescription","serverEncrypted","incrementalCopy","destinationSnapshot","accessTier","accessTierInferred","archiveStatus","customerProvidedKeySha256","encryptionScope","accessTierChangedOn","tagCount","isSealed","rehydratePriority","lastAccessedOn","immutabilityPolicyExpiresOn","immutabilityPolicyMode","legalHold","ListBlobsHierarchySegmentResponse","BlobHierarchyListSegment","blobPrefixes","BlobPrefix","BlockLookupList","committed","uncommitted","BlockList","committedBlocks","uncommittedBlocks","Block","PageList","pageRange","clearRange","PageRange","start","ClearRange","QueryRequest","queryType","expression","inputSerialization","outputSerialization","QuerySerialization","QueryFormat","delimitedTextConfiguration","jsonTextConfiguration","arrowConfiguration","parquetTextConfiguration","DelimitedTextConfiguration","columnSeparator","fieldQuote","recordSeparator","escapeChar","headersPresent","JsonTextConfiguration","ArrowConfiguration","ArrowField","precision","scale","ServiceSetPropertiesHeaders","clientRequestId","errorCode","ServiceSetPropertiesExceptionHeaders","ServiceGetPropertiesHeaders","ServiceGetPropertiesExceptionHeaders","ServiceGetStatisticsHeaders","ServiceGetStatisticsExceptionHeaders","ServiceListContainersSegmentHeaders","ServiceListContainersSegmentExceptionHeaders","ServiceGetUserDelegationKeyHeaders","ServiceGetUserDelegationKeyExceptionHeaders","ServiceGetAccountInfoHeaders","skuName","accountKind","isHierarchicalNamespaceEnabled","ServiceGetAccountInfoExceptionHeaders","ServiceSubmitBatchHeaders","ServiceSubmitBatchExceptionHeaders","ServiceFilterBlobsHeaders","ServiceFilterBlobsExceptionHeaders","ContainerCreateHeaders","ContainerCreateExceptionHeaders","ContainerGetPropertiesHeaders","blobPublicAccess","denyEncryptionScopeOverride","ContainerGetPropertiesExceptionHeaders","ContainerDeleteHeaders","ContainerDeleteExceptionHeaders","ContainerSetMetadataHeaders","ContainerSetMetadataExceptionHeaders","ContainerGetAccessPolicyHeaders","ContainerGetAccessPolicyExceptionHeaders","ContainerSetAccessPolicyHeaders","ContainerSetAccessPolicyExceptionHeaders","ContainerRestoreHeaders","ContainerRestoreExceptionHeaders","ContainerRenameHeaders","ContainerRenameExceptionHeaders","ContainerSubmitBatchHeaders","ContainerSubmitBatchExceptionHeaders","ContainerFilterBlobsHeaders","ContainerFilterBlobsExceptionHeaders","ContainerAcquireLeaseHeaders","leaseId","ContainerAcquireLeaseExceptionHeaders","ContainerReleaseLeaseHeaders","ContainerReleaseLeaseExceptionHeaders","ContainerRenewLeaseHeaders","ContainerRenewLeaseExceptionHeaders","ContainerBreakLeaseHeaders","leaseTime","ContainerBreakLeaseExceptionHeaders","ContainerChangeLeaseHeaders","ContainerChangeLeaseExceptionHeaders","ContainerListBlobFlatSegmentHeaders","ContainerListBlobFlatSegmentExceptionHeaders","ContainerListBlobHierarchySegmentHeaders","ContainerListBlobHierarchySegmentExceptionHeaders","ContainerGetAccountInfoHeaders","ContainerGetAccountInfoExceptionHeaders","BlobDownloadHeaders","objectReplicationPolicyId","objectReplicationRules","contentRange","acceptRanges","blobCommittedBlockCount","isServerEncrypted","encryptionKeySha256","blobContentMD5","lastAccessed","contentCrc64","BlobDownloadExceptionHeaders","BlobGetPropertiesHeaders","isIncrementalCopy","BlobGetPropertiesExceptionHeaders","BlobDeleteHeaders","BlobDeleteExceptionHeaders","BlobUndeleteHeaders","BlobUndeleteExceptionHeaders","BlobSetExpiryHeaders","BlobSetExpiryExceptionHeaders","BlobSetHttpHeadersHeaders","BlobSetHttpHeadersExceptionHeaders","BlobSetImmutabilityPolicyHeaders","immutabilityPolicyExpiry","BlobSetImmutabilityPolicyExceptionHeaders","BlobDeleteImmutabilityPolicyHeaders","BlobDeleteImmutabilityPolicyExceptionHeaders","BlobSetLegalHoldHeaders","BlobSetLegalHoldExceptionHeaders","BlobSetMetadataHeaders","BlobSetMetadataExceptionHeaders","BlobAcquireLeaseHeaders","BlobAcquireLeaseExceptionHeaders","BlobReleaseLeaseHeaders","BlobReleaseLeaseExceptionHeaders","BlobRenewLeaseHeaders","BlobRenewLeaseExceptionHeaders","BlobChangeLeaseHeaders","BlobChangeLeaseExceptionHeaders","BlobBreakLeaseHeaders","BlobBreakLeaseExceptionHeaders","BlobCreateSnapshotHeaders","BlobCreateSnapshotExceptionHeaders","BlobStartCopyFromURLHeaders","BlobStartCopyFromURLExceptionHeaders","BlobCopyFromURLHeaders","xMsContentCrc64","BlobCopyFromURLExceptionHeaders","BlobAbortCopyFromURLHeaders","BlobAbortCopyFromURLExceptionHeaders","BlobSetTierHeaders","BlobSetTierExceptionHeaders","BlobGetAccountInfoHeaders","BlobGetAccountInfoExceptionHeaders","BlobQueryHeaders","copyCompletionTime","BlobQueryExceptionHeaders","BlobGetTagsHeaders","BlobGetTagsExceptionHeaders","BlobSetTagsHeaders","BlobSetTagsExceptionHeaders","PageBlobCreateHeaders","PageBlobCreateExceptionHeaders","PageBlobUploadPagesHeaders","PageBlobUploadPagesExceptionHeaders","PageBlobClearPagesHeaders","PageBlobClearPagesExceptionHeaders","PageBlobUploadPagesFromURLHeaders","PageBlobUploadPagesFromURLExceptionHeaders","PageBlobGetPageRangesHeaders","blobContentLength","PageBlobGetPageRangesExceptionHeaders","PageBlobGetPageRangesDiffHeaders","PageBlobGetPageRangesDiffExceptionHeaders","PageBlobResizeHeaders","PageBlobResizeExceptionHeaders","PageBlobUpdateSequenceNumberHeaders","PageBlobUpdateSequenceNumberExceptionHeaders","PageBlobCopyIncrementalHeaders","PageBlobCopyIncrementalExceptionHeaders","AppendBlobCreateHeaders","AppendBlobCreateExceptionHeaders","AppendBlobAppendBlockHeaders","blobAppendOffset","AppendBlobAppendBlockExceptionHeaders","AppendBlobAppendBlockFromUrlHeaders","AppendBlobAppendBlockFromUrlExceptionHeaders","AppendBlobSealHeaders","AppendBlobSealExceptionHeaders","BlockBlobUploadHeaders","BlockBlobUploadExceptionHeaders","BlockBlobPutBlobFromUrlHeaders","BlockBlobPutBlobFromUrlExceptionHeaders","BlockBlobStageBlockHeaders","BlockBlobStageBlockExceptionHeaders","BlockBlobStageBlockFromURLHeaders","BlockBlobStageBlockFromURLExceptionHeaders","BlockBlobCommitBlockListHeaders","BlockBlobCommitBlockListExceptionHeaders","BlockBlobGetBlockListHeaders","BlockBlobGetBlockListExceptionHeaders","Mappers","__proto__","blobServiceProperties","accept","restype","comp","timeoutInSeconds","accept1","comp1","comp2","include","Csv","keyInfo","comp3","restype1","comp4","multipartContentType","comp5","restype2","ifModifiedSince","ifUnmodifiedSince","comp6","comp7","containerAcl","comp8","deletedContainerName","deletedContainerVersion","comp9","sourceContainerName","sourceLeaseId","comp10","duration","proposedLeaseId","action1","leaseId1","action2","action3","breakPeriod","action4","proposedLeaseId1","include1","range","rangeGetContentMD5","rangeGetContentCRC64","encryptionKey","encryptionAlgorithm","ifMatch","ifNoneMatch","ifTags","deleteSnapshots","blobDeleteType","comp11","expiryOptions","blobCacheControl","blobContentEncoding","blobContentLanguage","blobContentDisposition","comp12","comp13","comp14","tier","sourceIfModifiedSince","sourceIfUnmodifiedSince","sourceIfMatch","sourceIfNoneMatch","sourceIfTags","blobTagsString","sealBlob","legalHold1","xMsRequiresSync","sourceContentMD5","copySourceAuthorization","copySourceTags","comp15","copyActionAbortConstant","comp16","tier1","queryRequest","comp17","comp18","transactionalContentMD5","transactionalContentCrc64","contentType1","body1","accept2","comp19","pageWrite","ifSequenceNumberLessThanOrEqualTo","ifSequenceNumberLessThan","ifSequenceNumberEqualTo","pageWrite1","sourceUrl","sourceRange","sourceContentCrc64","range1","comp20","prevsnapshot","prevSnapshotUrl","sequenceNumberAction","comp21","blobType1","comp22","maxSize","appendPosition","sourceRange1","comp23","blobType2","copySourceBlobProperties","comp24","blockId","blocks","comp25","listType","Service","setProperties","setPropertiesOperationSpec","getProperties","getPropertiesOperationSpec$2","getStatistics","getStatisticsOperationSpec","listContainersSegment","listContainersSegmentOperationSpec","getUserDelegationKey","getUserDelegationKeyOperationSpec","getAccountInfo","getAccountInfoOperationSpec$2","submitBatch","submitBatchOperationSpec$1","filterBlobs","filterBlobsOperationSpec$1","xmlSerializer$5","Container","createOperationSpec$2","getPropertiesOperationSpec$1","deleteOperationSpec$1","setMetadata","setMetadataOperationSpec$1","getAccessPolicy","getAccessPolicyOperationSpec","setAccessPolicy","setAccessPolicyOperationSpec","restore","restoreOperationSpec","rename","renameOperationSpec","submitBatchOperationSpec","filterBlobsOperationSpec","acquireLease","acquireLeaseOperationSpec$1","releaseLease","releaseLeaseOperationSpec$1","renewLease","renewLeaseOperationSpec$1","breakLease","breakLeaseOperationSpec$1","changeLease","changeLeaseOperationSpec$1","listBlobFlatSegment","listBlobFlatSegmentOperationSpec","listBlobHierarchySegment","listBlobHierarchySegmentOperationSpec","getAccountInfoOperationSpec$1","xmlSerializer$4","Blob$1","download","downloadOperationSpec","getPropertiesOperationSpec","deleteOperationSpec","undelete","undeleteOperationSpec","setExpiry","setExpiryOperationSpec","setHttpHeaders","setHttpHeadersOperationSpec","setImmutabilityPolicy","setImmutabilityPolicyOperationSpec","deleteImmutabilityPolicy","deleteImmutabilityPolicyOperationSpec","setLegalHold","setLegalHoldOperationSpec","setMetadataOperationSpec","acquireLeaseOperationSpec","releaseLeaseOperationSpec","renewLeaseOperationSpec","changeLeaseOperationSpec","breakLeaseOperationSpec","createSnapshot","createSnapshotOperationSpec","startCopyFromURL","startCopyFromURLOperationSpec","copyFromURL","copyFromURLOperationSpec","abortCopyFromURL","abortCopyFromURLOperationSpec","setTier","setTierOperationSpec","getAccountInfoOperationSpec","queryOperationSpec","getTags","getTagsOperationSpec","setTags","setTagsOperationSpec","xmlSerializer$3","PageBlob","createOperationSpec$1","uploadPages","uploadPagesOperationSpec","clearPages","clearPagesOperationSpec","uploadPagesFromURL","uploadPagesFromURLOperationSpec","getPageRanges","getPageRangesOperationSpec","getPageRangesDiff","getPageRangesDiffOperationSpec","resize","resizeOperationSpec","updateSequenceNumber","updateSequenceNumberOperationSpec","copyIncremental","copyIncrementalOperationSpec","xmlSerializer$2","serializer$2","AppendBlob","createOperationSpec","appendBlock","appendBlockOperationSpec","appendBlockFromUrl","appendBlockFromUrlOperationSpec","seal","sealOperationSpec","xmlSerializer$1","serializer$1","BlockBlob","upload","uploadOperationSpec","putBlobFromUrl","putBlobFromUrlOperationSpec","stageBlock","stageBlockOperationSpec","stageBlockFromURL","stageBlockFromURLOperationSpec","commitBlockList","commitBlockListOperationSpec","getBlockList","getBlockListOperationSpec","xmlSerializer","SDK_VERSION","SERVICE_VERSION","BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES","BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES","BLOCK_BLOB_MAX_BLOCKS","DEFAULT_BLOCK_BUFFER_SIZE_BYTES","DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES","DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS","REQUEST_TIMEOUT","StorageOAuthScopes","URLConstants","Parameters","FORCE_BROWSER_NO_CACHE","SIGNATURE","SNAPSHOT","VERSIONID","TIMEOUT","HTTPURLConnection","HTTP_ACCEPTED","HTTP_CONFLICT","HTTP_NOT_FOUND","HTTP_PRECON_FAILED","HTTP_RANGE_NOT_SATISFIABLE","CONTENT_ENCODING","CONTENT_ID","CONTENT_LANGUAGE","CONTENT_LENGTH","CONTENT_MD5","CONTENT_TRANSFER_ENCODING","CONTENT_TYPE","COOKIE","DATE","IF_MATCH","IF_MODIFIED_SINCE","IF_NONE_MATCH","IF_UNMODIFIED_SINCE","PREFIX_FOR_STORAGE","RANGE","X_MS_CLIENT_REQUEST_ID","X_MS_COPY_SOURCE","X_MS_DATE","X_MS_ERROR_CODE","X_MS_VERSION","ETagNone","ETagAny","SIZE_1_MB","BATCH_MAX_REQUEST","BATCH_MAX_PAYLOAD_IN_BYTES","HTTP_LINE_ENDING","HTTP_VERSION_1_1","EncryptionAlgorithmAES25","DevelopmentConnectionString","StorageBlobLoggingAllowedHeaderNames","StorageBlobLoggingAllowedQueryParameters","BlobUsesCustomerSpecifiedEncryptionMsg","BlobDoesNotUseCustomerSpecifiedEncryption","PathStylePorts","escapeURLPath","urlParsed","escape","getProxyUriFromDevConnString","connectionString","proxyUri","matchCredentials","getValueInConnString","argument","elements","extractConnectionStringParts","blobEndpoint","defaultEndpointsProtocol","accountName","accountKey","endpointSuffix","accountSas","getAccountNameFromUrl","appendToURLPath","normalizedUrl","setURLParameter","getURLParameter","setURLHost","getURLPath","getURLScheme","getURLPathAndQuery","pathString","RangeError","getURLQueries","querySubStrings","indexOfEqual","lastIndexOfEqual","queries","querySubString","splitResults","appendToURLQuery","queryParts","truncatedISO8061Date","withMilliseconds","dateString","base64encode","btoa","generateBlockID","blockIDPrefix","blockIndex","maxSourceStringLength","maxBlockIndexLength","maxAllowedBlockIDPrefixLength","padStart","abortError","resolveHandler","currentString","targetLength","padString","iEqual","str1","str2","isIpEndpointStyle","toBlobTagsString","tagPairs","toBlobTags","toTags","blobTag","toQuerySerialization","textConfiguration","escapeCharacter","hasHeaders","parseObjectReplicationRecord","objectReplicationRecord","orProperties","policyPrefix","rule","ruleId","replicationStatus","policyIndex","findIndex","policyId","rules","attachCredential","httpAuthorizationToString","httpAuthorization","BlobNameToString","decodeURIComponent","ConvertInternalResponseOfListBlobFlat","internalResponse","blobItemInteral","blobItem","ConvertInternalResponseOfListBlobHierarchy","blobPrefixInternal","blobPrefix","ExtractPageRangeInfoItems","getPageRangesSegment","pageRangeIndex","clearRangeIndex","isClear","EscapePath","blobName","StorageBrowserPolicy","StorageBrowserPolicyFactory","StorageRetryPolicyType","DEFAULT_RETRY_OPTIONS","retryPolicyType","EXPONENTIAL","secondaryHost","tryTimeoutInMs","RETRY_ABORT_ERROR","StorageRetryPolicy","attemptSendRequest","secondaryHas404","newRequest","isPrimaryRetry","retriableErrors","retriableError","delayTimeInMs","FIXED","StorageRetryPolicyFactory","CredentialPolicy","AnonymousCredentialPolicy","Credential","AnonymousCredential","TelemetryPolicy","telemetry","TelemetryPolicyFactory","telemetryString","libInfo","_defaultHttpClient","DefaultScope","getChallenge","challenge","parseChallenge","bearerChallenge","challengeParts","keyValuePairs","keyValue","storageBearerTokenChallengeAuthenticationPolicy","StorageBearerTokenChallengeAuthenticationPolicy","getTokenInternal","challengeInfo","challengeScopes","resource_id","parsedAuthUri","authorization_uri","pathSegments","tenantId","getTokenForChallenge","tokenForChallenge","isPipelineLike","pipeline","castPipeline","toServiceClientOptions","Pipeline","newPipeline","telemetryPolicy","StorageSharedKeyCredentialPolicy","factory","getHeaderValueToSign","getCanonicalizedHeadersString","getCanonicalizedResourceString","computeHMACSHA256","localeCompare","canonicalizedHeadersStringToSign","trimRight","trimLeft","canonicalizedResourceString","lowercaseQueries","queryKeys","lowercaseKey","StorageSharedKeyCredential","packageVersion","StorageClientContext","defaultUserAgent","endpoint","StorageClient","storageClientContext","convertTracingToRequestOptionsBase","BlobSASPermissions","deleteVersion","move","execute","permanentDelete","blobSASPermissions","char","permissionLike","ContainerSASPermissions","list","filterByTags","containerSASPermissions","UserDelegationKeyCredential","userDelegationKey","ipRangeToString","ipRange","SASProtocol","SASQueryParameters","permissionsOrOptions","services","resourceTypes","identifier","resource","preauthorizedAgentObjectId","correlationId","ipRangeInner","signedOid","params","param","tryAppendQueryParameter","generateBlobSASQueryParameters","blobSASSignatureValues","sharedKeyCredentialOrUserDelegationKey","sharedKeyCredential","userDelegationKeyCredential","generateBlobSASQueryParameters20201206","generateBlobSASQueryParametersUDK20201206","generateBlobSASQueryParameters20181109","generateBlobSASQueryParametersUDK20200210","generateBlobSASQueryParametersUDK20181109","generateBlobSASQueryParameters20150405","SASSignatureValuesSanityCheckAndAutofill","verifiedPermissions","getCanonicalName","timestamp","snapshotTime","BlobLeaseClient","clientContext","_url","_isContainer","_containerOrBlobOperation","_leaseId","conditions","tagConditions","modifiedAccessConditions","RetriableReadableStream","Readable","source","getter","count","sourceDataHandler","doInjectErrorOnce","pause","removeAllListeners","emit","sourceErrorOrEndHandler","removeSourceEventHandlers","maxRetryRequests","newSource","setSourceEventHandlers","_read","resume","removeListener","_destroy","BlobDownloadResponse","originalResponse","blobDownloadStream","objectReplicationDestinationPolicyId","objectReplicationSourceProperties","contentAsBlob","AVRO_SYNC_MARKER_SIZE","AVRO_INIT_BYTES","AVRO_CODEC_KEY","AVRO_SCHEMA_KEY","AvroParser","readFixedBytes","readByte","buf","readZigZagLong","zigZagEncoded","significanceInBit","byte","haveMoreByte","significanceInFloat","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","readLong","readInt","readNull","readBoolean","readFloat","u8arr","view","DataView","byteOffset","getFloat32","readDouble","getFloat64","readBytes","readString","utf8decoder","TextDecoder","decode","readMapPair","readItemMethod","readMap","readPairMethod","pairs","readArray","dict","pair","AvroComplex","AvroPrimitive","AvroType","fromSchema","fromStringSchema","fromArraySchema","fromObjectSchema","NULL","BOOLEAN","INT","LONG","FLOAT","DOUBLE","BYTES","AvroPrimitiveType","AvroUnionType","RECORD","aliases","fields","field","AvroRecordType","ENUM","symbols","AvroEnumType","MAP","AvroMapType","ARRAY","primitive","_primitive","_symbols","types","_types","typeIndex","itemType","_itemType","_fields","record","arraysEqual","AvroReader","dataStream","headerStream","currentBlockOffset","indexWithinCurrentBlock","_dataStream","_headerStream","_initialized","_blockOffset","_objectIndex","_initialBlockOffset","blockOffset","objectIndex","initialize","_metadata","codec","_syncMarker","position","_itemsRemainingInBlock","hasNext","parseObjects","parseObjects_1","AvroReadable","ABORT_ERROR","AvroReadableFromStream","readable","_readable","_position","toUint8Array","cleanUp","readableCallback","rejectCallback","callbackChunk","BlobQuickQueryStream","avroPaused","onError","avroReader","avroIter","readInternal","avroNext","$schema","bytesScanned","totalBytes","fatal","description","isFatal","BlobQueryResponse","BlockBlobTier","PremiumPageBlobTier","toAccessTier","ensureCpkIfSpecified","cpk","StorageBlobAudience","getBlobServiceAccountAudience","storageAccountName","rangeResponseFromModel","BlobBeginCopyFromUrlPoller","startCopyFromURLOptions","makeBlobBeginCopyFromURLPollOperation","prevCopyProgress","rangeToString","iRange","BatchStates","Batch","actives","completed","operations","Good","emitter","EventEmitter","addOperation","parallelExecute","nextOperation","BuffersStream","buffers","byteOffsetInCurrentBuffer","bufferIndex","pushedBytesLength","buffersLength","outBuffers","remainingDataInAllBuffers","remainingCapacityInThisBuffer","remaining","maxBufferLength","PooledBuffer","capacity","totalLength","_size","bufferNum","allocUnsafe","fill","targetOffset","sourceOffset","totalCopiedNum","copiedNum","copy","getReadableStream","BufferScheduler","maxBuffers","outgoingHandler","isStreamEnd","executingOutgoingHandlers","numBuffers","unresolvedDataArray","unresolvedLength","incoming","outgoing","appendUnresolvedData","resolveData","triggerOutgoingHandlers","shiftBufferFromUnresolvedDataArray","shift","triggerOutgoingHandler","bufferLength","reuseBuffer","streamToBuffer","chunkLength","streamToBuffer2","readStreamToLocalFile","rs","ws","fsStat","promisify","stat","fsCreateReadStream","urlOrConnectionString","credentialOrPipelineOrContainerName","blobNameOrOptions","extractedCreds","_containerName","getBlobAndContainerNamesFromUrl","blobContext","_snapshot","_versionId","withSnapshot","withVersion","getAppendBlobClient","AppendBlobClient","BlockBlobClient","getPageBlobClient","PageBlobClient","customerProvidedKey","leaseAccessConditions","rangeGetContentCrc64","cpkInfo","wrappedRes","updatedDownloadOptions","deleteIfExists","succeeded","setHTTPHeaders","blobHttpHeaders","wrappedResponse","getBlobLeaseClient","proposeLeaseId","beginCopyFromURL","syncCopyFromURL","sourceConditions","sourceModifiedAccessConditions","sourceAuthorization","immutabilityPolicy","expiriesOn","policyMode","setAccessTier","downloadToBuffer","param1","param2","param3","param4","blockSize","transferProgress","batch","off","chunkEnd","maxRetryRequestsPerBlock","do","downloadToFile","pathComponents","generateSasUrl","sas","modifiedAccessCondition","legalHoldEnabled","appendBlobContext","createIfNotExists","appendPositionAccessConditions","appendBlockFromURL","sourceURL","blockBlobContext","_blobContext","inputTextConfiguration","outputTextConfiguration","syncUploadFromURL","uploadData","uploadSeekableInternal","browserBlob","uploadBrowserData","browserData","bodyFactory","maxSingleShotSize","numBlocks","blockList","blockID","uploadFile","autoClose","Infinity","blockNum","scheduler","pageBlobContext","sequenceNumberAccessConditions","destOffset","listPageRangesSegment","listPageRangeItemSegments","listPageRangeItemSegments_1","getPageRangeItemSegmentsResponse","listPageRangeItems","listPageRangeItems_1","listPageRanges","prevSnapshot","listPageRangesDiffSegment","prevSnapshotOrUrl","listPageRangeDiffItemSegments","listPageRangeDiffItemSegments_1","listPageRangeDiffItems","listPageRangeDiffItems_1","listPageRangesDiff","getPageRangesDiffForManagedDisks","sequenceNumber","startCopyIncremental","getBodyAsText","batchResponse","responseLength","utf8ByteLength","HTTP_HEADER_DELIMITER","SPACE_DELIMITER","NOT_FOUND","BatchResponseParser","subRequests","responseBatchBoundary","perResponsePrefix","batchResponseEnding","parseBatchResponse","responseBodyAsText","subResponses","subResponseCount","deserializedSubResponses","subResponsesSucceededCount","subResponsesFailedCount","subResponse","deserializedSubResponse","responseLines","subRespHeaderStartFound","subRespHeaderEndFound","subRespFailed","contentId","responseLine","tokens","isInteger","_request","MutexLockStatus","Mutex","lock","UNLOCKED","LOCKED","onUnlockEvent","unlock","emitUnlockEvent","setImmediate","BlobBatch","batchRequest","InnerBatchRequest","getMultiPartContentType","getMultipartContentType","getHttpRequestBody","getSubRequests","addSubRequestInternal","subRequest","assembleSubRequestFunc","preAddSubRequest","postAddSubRequest","setBatchType","batchType","deleteBlob","urlOrBlobClient","credentialOrOptions","createPipeline","setBlobAccessTier","credentialOrTier","tierOrOptions","operationCount","tempGuid","boundary","subRequestPrefix","batchRequestEnding","isAnonymousCreds","policyFactoryLength","BatchHeaderFilterPolicyFactory","BatchRequestAssemblePolicyFactory","appendSubRequestToBody","BatchRequestAssemblePolicy","dummyResponse","BatchHeaderFilterPolicy","xMsHeaderName","BlobBatchClient","credentialOrPipeline","serviceOrContainerContext","createBatch","deleteBlobs","urlsOrBlobClients","setBlobsAccessTier","batchRequestBody","rawBatchResponse","batchResponseParser","responseSummary","ContainerClient","getContainerNameFromUrl","containerContext","getBlobClient","signedIdentifiers","acl","uploadBlockBlob","listSegments","listSegments_1","listBlobsFlatSegmentResponse","listItems_1","listBlobsFlat","includeCopy","includeDeleted","includeMetadata","includeSnapshots","includeVersions","includeUncommitedBlobs","includeTags","includeDeletedWithVersions","includeImmutabilityPolicy","includeLegalHold","listHierarchySegments","listHierarchySegments_1","listBlobsHierarchySegmentResponse","listItemsByHierarchy","listItemsByHierarchy_1","blob","listBlobsByHierarchy","findBlobsByTagsSegment","tagFilterSqlExpression","tagValue","findBlobsByTagsSegments","findBlobsByTagsSegments_1","findBlobsByTagsItems","findBlobsByTagsItems_1","e_3","e_3_1","findBlobsByTags","listSegmentOptions","getBlobBatchClient","AccountSASPermissions","accountSASPermissions","AccountSASResourceTypes","container","accountSASResourceTypes","AccountSASServices","queue","table","accountSASServices","generateAccountSASQueryParameters","accountSASSignatureValues","parsedPermissions","parsedServices","parsedResourceTypes","BlobServiceClient","serviceContext","fromConnectionString","getContainerClient","createContainer","containerClient","containerCreateResponse","deleteContainer","undeleteContainer","destinationContainerName","containerUndeleteResponse","renameContainer","containerRenameResponse","sourceCondition","listContainersSegmentResponse","listContainers","includeSystem","generateAccountSasUrl","KnownEncryptionAlgorithmType","REGEX_IS_INSTALLATION_LEGACY","REGEX_IS_INSTALLATION","REGEX_IS_USER_TO_SERVER","isApp","isInstallation","isUserToServer","tokenType","withAuthorizationPrefix","hook","route","parameters","merge","authorization","createTokenAuth","universalUserAgent","beforeAfterHook","graphql","authToken","_objectWithoutPropertiesLoose","excluded","sourceKeys","_objectWithoutProperties","sourceSymbolKeys","_excluded","Collection","requestDefaults","DEFAULTS","getUserAgent","timeZone","withCustomRequest","warn","authStrategy","otherOptions","octokit","octokitOptions","classConstructor","plugins","OctokitWithDefaults","newPlugins","currentPlugins","NewOctokit","isPlainObject","newObj","mergeDeep","removeUndefinedProperties","mergedOptions","preview","addQueryParameters","separator","names","q","urlVariableRegex","removeNonChars","variableName","extractUrlVariableNames","omit","keysToOmit","option","encodeReserved","part","encodeURI","encodeUnreserved","encodeValue","operator","isKeyOperator","getValues","modifier","tmp","parseUrl","template","expand","operators","literal","variable","exec","urlVariableNames","omittedParameters","remainingParameters","isBinaryRequest","previewsFromAcceptHeader","endpointWithDefaults","withDefaults","oldDefaults","newDefaults","_buildMessageForResponseErrors","errors","GraphqlResponseError","captureStackTrace","NON_VARIABLE_OPTIONS","FORBIDDEN_VARIABLE_OPTIONS","GHES_V3_SUFFIX_REGEX","parsedOptions","variables","request$1","newApi","graphql$1","customRequest","ownKeys","enumerableOnly","sym","_objectSpread2","_defineProperty","getOwnPropertyDescriptors","defineProperties","normalizePaginatedListResponse","responseNeedsNormalization","incompleteResults","incomplete_results","repositorySelection","repository_selection","totalCount","namespaceKey","iterator","normalizedResponse","link","paginate","mapFn","gather","results","earlyExit","composePaginateRest","paginatingEndpoints","isPaginatingEndpoint","arg","Endpoints","addCustomLabelsToSelfHostedRunnerForOrg","addCustomLabelsToSelfHostedRunnerForRepo","addSelectedRepoToOrgSecret","approveWorkflowRun","cancelWorkflowRun","createOrUpdateEnvironmentSecret","createOrUpdateOrgSecret","createOrUpdateRepoSecret","createRegistrationTokenForOrg","createRegistrationTokenForRepo","createRemoveTokenForOrg","createRemoveTokenForRepo","createWorkflowDispatch","deleteActionsCacheById","deleteActionsCacheByKey","deleteEnvironmentSecret","deleteOrgSecret","deleteRepoSecret","deleteSelfHostedRunnerFromOrg","deleteSelfHostedRunnerFromRepo","deleteWorkflowRun","deleteWorkflowRunLogs","disableSelectedRepositoryGithubActionsOrganization","disableWorkflow","downloadJobLogsForWorkflowRun","downloadWorkflowRunAttemptLogs","downloadWorkflowRunLogs","enableSelectedRepositoryGithubActionsOrganization","enableWorkflow","getActionsCacheList","getActionsCacheUsage","getActionsCacheUsageByRepoForOrg","getActionsCacheUsageForEnterprise","getActionsCacheUsageForOrg","getAllowedActionsOrganization","getAllowedActionsRepository","getEnvironmentPublicKey","getEnvironmentSecret","getGithubActionsDefaultWorkflowPermissionsEnterprise","getGithubActionsDefaultWorkflowPermissionsOrganization","getGithubActionsDefaultWorkflowPermissionsRepository","getGithubActionsPermissionsOrganization","getGithubActionsPermissionsRepository","getJobForWorkflowRun","getOrgPublicKey","getOrgSecret","getPendingDeploymentsForRun","getRepoPermissions","renamed","getRepoPublicKey","getRepoSecret","getReviewsForRun","getSelfHostedRunnerForOrg","getSelfHostedRunnerForRepo","getWorkflow","getWorkflowAccessToRepository","getWorkflowRun","getWorkflowRunAttempt","getWorkflowRunUsage","getWorkflowUsage","listArtifactsForRepo","listEnvironmentSecrets","listJobsForWorkflowRun","listJobsForWorkflowRunAttempt","listLabelsForSelfHostedRunnerForOrg","listLabelsForSelfHostedRunnerForRepo","listOrgSecrets","listRepoSecrets","listRepoWorkflows","listRunnerApplicationsForOrg","listRunnerApplicationsForRepo","listSelectedReposForOrgSecret","listSelectedRepositoriesEnabledGithubActionsOrganization","listSelfHostedRunnersForOrg","listSelfHostedRunnersForRepo","listWorkflowRuns","listWorkflowRunsForRepo","reRunJobForWorkflowRun","reRunWorkflow","reRunWorkflowFailedJobs","removeAllCustomLabelsFromSelfHostedRunnerForOrg","removeAllCustomLabelsFromSelfHostedRunnerForRepo","removeCustomLabelFromSelfHostedRunnerForOrg","removeCustomLabelFromSelfHostedRunnerForRepo","removeSelectedRepoFromOrgSecret","reviewPendingDeploymentsForRun","setAllowedActionsOrganization","setAllowedActionsRepository","setCustomLabelsForSelfHostedRunnerForOrg","setCustomLabelsForSelfHostedRunnerForRepo","setGithubActionsDefaultWorkflowPermissionsEnterprise","setGithubActionsDefaultWorkflowPermissionsOrganization","setGithubActionsDefaultWorkflowPermissionsRepository","setGithubActionsPermissionsOrganization","setGithubActionsPermissionsRepository","setSelectedReposForOrgSecret","setSelectedRepositoriesEnabledGithubActionsOrganization","setWorkflowAccessToRepository","activity","checkRepoIsStarredByAuthenticatedUser","deleteRepoSubscription","deleteThreadSubscription","getFeeds","getRepoSubscription","getThread","getThreadSubscriptionForAuthenticatedUser","listEventsForAuthenticatedUser","listNotificationsForAuthenticatedUser","listOrgEventsForAuthenticatedUser","listPublicEvents","listPublicEventsForRepoNetwork","listPublicEventsForUser","listPublicOrgEvents","listReceivedEventsForUser","listReceivedPublicEventsForUser","listRepoEvents","listRepoNotificationsForAuthenticatedUser","listReposStarredByAuthenticatedUser","listReposStarredByUser","listReposWatchedByUser","listStargazersForRepo","listWatchedReposForAuthenticatedUser","listWatchersForRepo","markNotificationsAsRead","markRepoNotificationsAsRead","markThreadAsRead","setRepoSubscription","setThreadSubscription","starRepoForAuthenticatedUser","unstarRepoForAuthenticatedUser","apps","addRepoToInstallation","addRepoToInstallationForAuthenticatedUser","checkToken","createFromManifest","createInstallationAccessToken","deleteAuthorization","deleteInstallation","deleteToken","getAuthenticated","getBySlug","getInstallation","getOrgInstallation","getRepoInstallation","getSubscriptionPlanForAccount","getSubscriptionPlanForAccountStubbed","getUserInstallation","getWebhookConfigForApp","getWebhookDelivery","listAccountsForPlan","listAccountsForPlanStubbed","listInstallationReposForAuthenticatedUser","listInstallations","listInstallationsForAuthenticatedUser","listPlans","listPlansStubbed","listReposAccessibleToInstallation","listSubscriptionsForAuthenticatedUser","listSubscriptionsForAuthenticatedUserStubbed","listWebhookDeliveries","redeliverWebhookDelivery","removeRepoFromInstallation","removeRepoFromInstallationForAuthenticatedUser","resetToken","revokeInstallationAccessToken","scopeToken","suspendInstallation","unsuspendInstallation","updateWebhookConfigForApp","billing","getGithubActionsBillingOrg","getGithubActionsBillingUser","getGithubAdvancedSecurityBillingGhe","getGithubAdvancedSecurityBillingOrg","getGithubPackagesBillingOrg","getGithubPackagesBillingUser","getSharedStorageBillingOrg","getSharedStorageBillingUser","checks","createSuite","getSuite","listAnnotations","listForRef","listForSuite","listSuitesForRef","rerequestRun","rerequestSuite","setSuitesPreferences","codeScanning","deleteAnalysis","getAlert","renamedParameters","alert_id","getAnalysis","getSarif","listAlertInstances","listAlertsForOrg","listAlertsForRepo","listAlertsInstances","listRecentAnalyses","updateAlert","uploadSarif","codesOfConduct","getAllCodesOfConduct","getConductCode","codespaces","addRepositoryForSecretForAuthenticatedUser","codespaceMachinesForAuthenticatedUser","createForAuthenticatedUser","createOrUpdateSecretForAuthenticatedUser","createWithPrForAuthenticatedUser","createWithRepoForAuthenticatedUser","deleteForAuthenticatedUser","deleteFromOrganization","deleteSecretForAuthenticatedUser","exportForAuthenticatedUser","getExportDetailsForAuthenticatedUser","getForAuthenticatedUser","getPublicKeyForAuthenticatedUser","getSecretForAuthenticatedUser","listDevcontainersInRepositoryForAuthenticatedUser","listForAuthenticatedUser","listInOrganization","org_id","listInRepositoryForAuthenticatedUser","listRepositoriesForSecretForAuthenticatedUser","listSecretsForAuthenticatedUser","removeRepositoryForSecretForAuthenticatedUser","repoMachinesForAuthenticatedUser","setRepositoriesForSecretForAuthenticatedUser","startForAuthenticatedUser","stopForAuthenticatedUser","stopInOrganization","updateForAuthenticatedUser","dependabot","dependencyGraph","createRepositorySnapshot","diffRange","emojis","enterpriseAdmin","addCustomLabelsToSelfHostedRunnerForEnterprise","disableSelectedOrganizationGithubActionsEnterprise","enableSelectedOrganizationGithubActionsEnterprise","getAllowedActionsEnterprise","getGithubActionsPermissionsEnterprise","getServerStatistics","listLabelsForSelfHostedRunnerForEnterprise","listSelectedOrganizationsEnabledGithubActionsEnterprise","removeAllCustomLabelsFromSelfHostedRunnerForEnterprise","removeCustomLabelFromSelfHostedRunnerForEnterprise","setAllowedActionsEnterprise","setCustomLabelsForSelfHostedRunnerForEnterprise","setGithubActionsPermissionsEnterprise","setSelectedOrganizationsEnabledGithubActionsEnterprise","gists","checkIsStarred","createComment","deleteComment","getComment","getRevision","listComments","listCommits","listForUser","listForks","listPublic","listStarred","star","unstar","updateComment","git","createBlob","createCommit","createRef","createTag","createTree","deleteRef","getBlob","getCommit","getRef","getTag","getTree","listMatchingRefs","updateRef","gitignore","getAllTemplates","getTemplate","interactions","getRestrictionsForAuthenticatedUser","getRestrictionsForOrg","getRestrictionsForRepo","getRestrictionsForYourPublicRepos","removeRestrictionsForAuthenticatedUser","removeRestrictionsForOrg","removeRestrictionsForRepo","removeRestrictionsForYourPublicRepos","setRestrictionsForAuthenticatedUser","setRestrictionsForOrg","setRestrictionsForRepo","setRestrictionsForYourPublicRepos","issues","addAssignees","addLabels","checkUserCanBeAssigned","createLabel","createMilestone","deleteLabel","deleteMilestone","getEvent","getLabel","getMilestone","listAssignees","listCommentsForRepo","listEvents","listEventsForRepo","listEventsForTimeline","listForOrg","listForRepo","listLabelsForMilestone","listLabelsForRepo","listLabelsOnIssue","listMilestones","removeAllLabels","removeAssignees","removeLabel","setLabels","updateLabel","updateMilestone","licenses","getAllCommonlyUsed","getForRepo","markdown","render","renderRaw","meta","getOctocat","getZen","root","migrations","cancelImport","deleteArchiveForAuthenticatedUser","deleteArchiveForOrg","downloadArchiveForOrg","getArchiveForAuthenticatedUser","getCommitAuthors","getImportStatus","getLargeFiles","getStatusForAuthenticatedUser","getStatusForOrg","listReposForAuthenticatedUser","listReposForOrg","listReposForUser","mapCommitAuthor","setLfsPreference","startForOrg","startImport","unlockRepoForAuthenticatedUser","unlockRepoForOrg","updateImport","orgs","blockUser","cancelInvitation","checkBlockedUser","checkMembershipForUser","checkPublicMembershipForUser","convertMemberToOutsideCollaborator","createInvitation","createWebhook","deleteWebhook","getMembershipForAuthenticatedUser","getMembershipForUser","getWebhook","getWebhookConfigForOrg","listAppInstallations","listBlockedUsers","listCustomRoles","listFailedInvitations","listInvitationTeams","listMembers","listMembershipsForAuthenticatedUser","listOutsideCollaborators","listPendingInvitations","listPublicMembers","listWebhooks","pingWebhook","removeMember","removeMembershipForUser","removeOutsideCollaborator","removePublicMembershipForAuthenticatedUser","setMembershipForUser","setPublicMembershipForAuthenticatedUser","unblockUser","updateMembershipForAuthenticatedUser","updateWebhook","updateWebhookConfigForOrg","packages","deletePackageForAuthenticatedUser","deletePackageForOrg","deletePackageForUser","deletePackageVersionForAuthenticatedUser","deletePackageVersionForOrg","deletePackageVersionForUser","getAllPackageVersionsForAPackageOwnedByAnOrg","getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser","getAllPackageVersionsForPackageOwnedByAuthenticatedUser","getAllPackageVersionsForPackageOwnedByOrg","getAllPackageVersionsForPackageOwnedByUser","getPackageForAuthenticatedUser","getPackageForOrganization","getPackageForUser","getPackageVersionForAuthenticatedUser","getPackageVersionForOrganization","getPackageVersionForUser","listPackagesForAuthenticatedUser","listPackagesForOrganization","listPackagesForUser","restorePackageForAuthenticatedUser","restorePackageForOrg","restorePackageForUser","restorePackageVersionForAuthenticatedUser","restorePackageVersionForOrg","restorePackageVersionForUser","projects","addCollaborator","createCard","createColumn","createForOrg","createForRepo","deleteCard","deleteColumn","getCard","getColumn","getPermissionForUser","listCards","listCollaborators","listColumns","moveCard","moveColumn","removeCollaborator","updateCard","updateColumn","pulls","checkIfMerged","createReplyForReviewComment","createReview","createReviewComment","deletePendingReview","deleteReviewComment","dismissReview","getReview","getReviewComment","listCommentsForReview","listFiles","listRequestedReviewers","listReviewComments","listReviewCommentsForRepo","listReviews","removeRequestedReviewers","requestReviewers","submitReview","updateBranch","updateReview","updateReviewComment","rateLimit","reactions","createForCommitComment","createForIssue","createForIssueComment","createForPullRequestReviewComment","createForRelease","createForTeamDiscussionCommentInOrg","createForTeamDiscussionInOrg","deleteForCommitComment","deleteForIssue","deleteForIssueComment","deleteForPullRequestComment","deleteForRelease","deleteForTeamDiscussion","deleteForTeamDiscussionComment","listForCommitComment","listForIssue","listForIssueComment","listForPullRequestReviewComment","listForRelease","listForTeamDiscussionCommentInOrg","listForTeamDiscussionInOrg","repos","acceptInvitation","acceptInvitationForAuthenticatedUser","addAppAccessRestrictions","mapToData","addStatusCheckContexts","addTeamAccessRestrictions","addUserAccessRestrictions","checkCollaborator","checkVulnerabilityAlerts","codeownersErrors","compareCommits","compareCommitsWithBasehead","createAutolink","createCommitComment","createCommitSignatureProtection","createCommitStatus","createDeployKey","createDeployment","createDeploymentStatus","createDispatchEvent","createFork","createInOrg","createOrUpdateEnvironment","createOrUpdateFileContents","createPagesSite","createRelease","createTagProtection","createUsingTemplate","declineInvitation","declineInvitationForAuthenticatedUser","deleteAccessRestrictions","deleteAdminBranchProtection","deleteAnEnvironment","deleteAutolink","deleteBranchProtection","deleteCommitComment","deleteCommitSignatureProtection","deleteDeployKey","deleteDeployment","deleteFile","deleteInvitation","deletePagesSite","deletePullRequestReviewProtection","deleteRelease","deleteReleaseAsset","deleteTagProtection","disableAutomatedSecurityFixes","disableLfsForRepo","disableVulnerabilityAlerts","downloadArchive","downloadTarballArchive","downloadZipballArchive","enableAutomatedSecurityFixes","enableLfsForRepo","enableVulnerabilityAlerts","generateReleaseNotes","getAccessRestrictions","getAdminBranchProtection","getAllEnvironments","getAllStatusCheckContexts","getAllTopics","getAppsWithAccessToProtectedBranch","getAutolink","getBranch","getBranchProtection","getClones","getCodeFrequencyStats","getCollaboratorPermissionLevel","getCombinedStatusForRef","getCommitActivityStats","getCommitComment","getCommitSignatureProtection","getCommunityProfileMetrics","getContent","getContributorsStats","getDeployKey","getDeployment","getDeploymentStatus","getEnvironment","getLatestPagesBuild","getLatestRelease","getPages","getPagesBuild","getPagesHealthCheck","getParticipationStats","getPullRequestReviewProtection","getPunchCardStats","getReadme","getReadmeInDirectory","getRelease","getReleaseAsset","getReleaseByTag","getStatusChecksProtection","getTeamsWithAccessToProtectedBranch","getTopPaths","getTopReferrers","getUsersWithAccessToProtectedBranch","getViews","getWebhookConfigForRepo","listAutolinks","listBranches","listBranchesForHeadCommit","listCommentsForCommit","listCommitCommentsForRepo","listCommitStatusesForRef","listContributors","listDeployKeys","listDeploymentStatuses","listDeployments","listInvitations","listInvitationsForAuthenticatedUser","listLanguages","listPagesBuilds","listPullRequestsAssociatedWithCommit","listReleaseAssets","listReleases","listTagProtection","listTags","listTeams","mergeUpstream","removeAppAccessRestrictions","removeStatusCheckContexts","removeStatusCheckProtection","removeTeamAccessRestrictions","removeUserAccessRestrictions","renameBranch","replaceAllTopics","requestPagesBuild","setAdminBranchProtection","setAppAccessRestrictions","setStatusCheckContexts","setTeamAccessRestrictions","setUserAccessRestrictions","testPushWebhook","transfer","updateBranchProtection","updateCommitComment","updateInformationAboutPagesSite","updateInvitation","updatePullRequestReviewProtection","updateRelease","updateReleaseAsset","updateStatusCheckPotection","updateStatusCheckProtection","updateWebhookConfigForRepo","uploadReleaseAsset","commits","issuesAndPullRequests","labels","topics","users","secretScanning","listAlertsForEnterprise","listLocationsForAlert","teams","addOrUpdateMembershipForUserInOrg","addOrUpdateProjectPermissionsInOrg","addOrUpdateRepoPermissionsInOrg","checkPermissionsForProjectInOrg","checkPermissionsForRepoInOrg","createDiscussionCommentInOrg","createDiscussionInOrg","deleteDiscussionCommentInOrg","deleteDiscussionInOrg","deleteInOrg","getByName","getDiscussionCommentInOrg","getDiscussionInOrg","getMembershipForUserInOrg","listChildInOrg","listDiscussionCommentsInOrg","listDiscussionsInOrg","listMembersInOrg","listPendingInvitationsInOrg","listProjectsInOrg","listReposInOrg","removeMembershipForUserInOrg","removeProjectInOrg","removeRepoInOrg","updateDiscussionCommentInOrg","updateDiscussionInOrg","updateInOrg","addEmailForAuthenticated","addEmailForAuthenticatedUser","block","checkBlocked","checkFollowingForUser","checkPersonIsFollowedByAuthenticated","createGpgKeyForAuthenticated","createGpgKeyForAuthenticatedUser","createPublicSshKeyForAuthenticated","createPublicSshKeyForAuthenticatedUser","deleteEmailForAuthenticated","deleteEmailForAuthenticatedUser","deleteGpgKeyForAuthenticated","deleteGpgKeyForAuthenticatedUser","deletePublicSshKeyForAuthenticated","deletePublicSshKeyForAuthenticatedUser","follow","getByUsername","getContextForUser","getGpgKeyForAuthenticated","getGpgKeyForAuthenticatedUser","getPublicSshKeyForAuthenticated","getPublicSshKeyForAuthenticatedUser","listBlockedByAuthenticated","listBlockedByAuthenticatedUser","listEmailsForAuthenticated","listEmailsForAuthenticatedUser","listFollowedByAuthenticated","listFollowedByAuthenticatedUser","listFollowersForAuthenticatedUser","listFollowersForUser","listFollowingForUser","listGpgKeysForAuthenticated","listGpgKeysForAuthenticatedUser","listGpgKeysForUser","listPublicEmailsForAuthenticated","listPublicEmailsForAuthenticatedUser","listPublicKeysForUser","listPublicSshKeysForAuthenticated","listPublicSshKeysForAuthenticatedUser","setPrimaryEmailVisibilityForAuthenticated","setPrimaryEmailVisibilityForAuthenticatedUser","unblock","unfollow","updateAuthenticated","endpointsToMethods","endpointsMap","newMethods","scope","endpoints","decorations","endpointDefaults","scopeMethods","decorate","requestWithDefaults","withDecorations","newScope","newMethodName","deprecated","alias","legacyRestEndpointMethods","_interopDefault","ex","Bottleneck","errorRequest","retryRequest","wrapRequest","limiter","after","retryAfterBaseValue","schedule","deprecation","logOnceCode","logOnceHeaders","RequestError","requestCopy","Deprecation","nodeFetch","getBufferResponse","arrayBuffer","fetchWrapper","keyAndValue","deprecationLink","sunset","statusText","getResponseData","toErrorMessage","oldEndpoint","endpointOptions","ContextAPI","NoopContextManager_1","global_utils_1","diag_1","API_NAME","NOOP_CONTEXT_MANAGER","NoopContextManager","getInstance","_instance","setGlobalContextManager","contextManager","registerGlobal","DiagAPI","_getContextManager","with","getGlobal","unregisterGlobal","ComponentLogger_1","logLevelLogger_1","types_1","_logProxy","funcName","setLogger","optionsOrLogLevel","DiagLogLevel","INFO","stack","oldLogger","newLogger","createLogLevelDiagLogger","suppressOverrideMessage","createComponentLogger","DiagComponentLogger","MetricsAPI","NoopMeterProvider_1","setGlobalMeterProvider","getMeterProvider","NOOP_METER_PROVIDER","getMeter","PropagationAPI","NoopTextMapPropagator_1","TextMapPropagator_1","context_helpers_1","NOOP_TEXT_MAP_PROPAGATOR","NoopTextMapPropagator","createBaggage","getBaggage","getActiveBaggage","setBaggage","deleteBaggage","setGlobalPropagator","propagator","inject","carrier","setter","defaultTextMapSetter","_getGlobalPropagator","extract","defaultTextMapGetter","TraceAPI","ProxyTracerProvider_1","spancontext_utils_1","context_utils_1","_proxyTracerProvider","ProxyTracerProvider","deleteSpan","getActiveSpan","setGlobalTracerProvider","success","setDelegate","getTracerProvider","context_1","context_2","BAGGAGE_KEY","createContextKey","baggage","setValue","deleteValue","BaggageImpl","_entries","getEntry","getAllEntries","setEntry","newBaggage","removeEntry","removeEntries","baggageEntryMetadataSymbol","baggageEntryMetadataFromString","baggage_impl_1","symbol_1","diag","__TYPE__","ROOT_CONTEXT","_context","BaseContext","parentContext","_currentContext","props","_namespace","logProxy","unshift","DiagConsoleLogger","consoleMap","_consoleFunc","theFunc","maxLevel","NONE","ALL","_filterFunc","theLevel","WARN","VERBOSE","propagation","metrics","INVALID_TRACEID","INVALID_SPANID","isValidSpanId","isValidTraceId","createTraceState","TraceFlags","SamplingDecision","ProxyTracer","ValueType","createNoopMeter","consoleLogger_1","NoopMeter_1","Metric_1","ProxyTracer_1","SamplingResult_1","span_kind_1","status_1","trace_flags_1","utils_2","invalid_span_constants_1","context_api_1","diag_api_1","metrics_api_1","propagation_api_1","trace_api_1","platform_1","version_1","semver_1","major","GLOBAL_OPENTELEMETRY_API_KEY","_global","_globalThis","allowOverride","globalVersion","isCompatible","_makeCompatibilityCheck","re","ownVersion","acceptedVersions","rejectedVersions","myVersionMatch","ownVersionParsed","minor","prerelease","isExactmatch","_reject","_accept","globalVersionMatch","globalVersionParsed","metrics_1","NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC","NOOP_OBSERVABLE_GAUGE_METRIC","NOOP_OBSERVABLE_COUNTER_METRIC","NOOP_UP_DOWN_COUNTER_METRIC","NOOP_HISTOGRAM_METRIC","NOOP_COUNTER_METRIC","NOOP_METER","NoopObservableUpDownCounterMetric","NoopObservableGaugeMetric","NoopObservableCounterMetric","NoopObservableMetric","NoopHistogramMetric","NoopUpDownCounterMetric","NoopCounterMetric","NoopMetric","NoopMeter","createHistogram","createCounter","createUpDownCounter","createObservableGauge","createObservableCounter","createObservableUpDownCounter","addBatchObservableCallback","_callback","_observables","removeBatchObservableCallback","_value","_attributes","addCallback","removeCallback","NoopMeterProvider","_version","global","propagation_1","_carrier","trace_1","NonRecordingSpan","_spanContext","addEvent","_status","updateName","_endTime","recordException","_exception","_time","NoopTracer","NonRecordingSpan_1","contextApi","parentFromContext","isSpanContext","startActiveSpan","arg2","arg3","arg4","contextWithSpanSet","NoopTracerProvider","NoopTracer_1","NOOP_TRACER","_provider","_getTracer","_fn","Reflect","_delegate","getDelegateTracer","NoopTracerProvider_1","NOOP_TRACER_PROVIDER","getDelegate","delegate","SPAN_KEY","TraceStateImpl","tracestate_validators_1","MAX_TRACE_STATE_ITEMS","MAX_TRACE_STATE_LEN","LIST_MEMBERS_SEPARATOR","LIST_MEMBER_KEY_VALUE_SPLITTER","rawTraceState","_internalState","_parse","_clone","unset","_keys","agg","reverse","listMember","validateKey","validateValue","VALID_KEY_CHAR_RANGE","VALID_KEY","VALID_VENDOR_KEY","VALID_KEY_REGEX","VALID_VALUE_BASE_REGEX","INVALID_VALUE_COMMA_EQUAL_REGEX","tracestate_impl_1","VALID_TRACEID_REGEX","VALID_SPANID_REGEX","ClientStreamingCall","requestHeaders","trailers","requests","onfulfilled","onrejected","promiseFinished","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","RESOLVED","REJECTED","resolvePending","rejectPending","DuplexStreamingCall","service_type_1","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","localName","lowerCamelCase","serverStreaming","clientStreaming","idempotency","extensionName","extensionType","methods","find","optionVal","l","transport","tail","mtd","inp","opt","unary","curr","interceptUnary","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","into","_lis","nxt","cmp","_closed","onNext","addLis","onMessage","onComplete","clearLis","closed","notifyNext","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","_itState","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","cancelled","onCancel","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","promiseHeaders","defaultHeaders","promiseSingleResponse","r","is","streamResponses","messages","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ev","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","isFinite","base64decode","encTable","decTable","base64Str","es","bytePos","groupPos","subarray","base64","symbol","raw","uf","last","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readerFactory","textDecoder","varint64","varint64read","varint32read","ignoreBOM","StartGroup","EndGroup","assertBounds","sint32","zze","PbULong","sint64","lo","hi","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writerFactory","textEncoder","TextEncoder","finish","prev","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","num","nam","enumObject","arr","int64toString","int64fromString","lowBits","highBits","middleByte","splitBits","hasMoreBits","TWO_PWR_32_DBL","dec","minus","base","add1e6digit","begin","digit1e6","bitsLow","bitsHigh","low","mid","high","digitA","digitB","digitC","decimalFrom1e7","digit1e7","needLeadingZeros","partial","json_typings_1","isJsonObject","base64_1","protobufjs_utf8_1","utf8read","binary_reader_1","binary_writer_1","json_format_contract_1","jsonReadOptions","jsonWriteOptions","message_type_contract_1","message_type_1","RepeatType","normalizeFieldInfo","readFieldOptions","readFieldOption","readMessageOption","reflection_type_check_1","ReflectionTypeCheck","reflection_create_1","reflectionCreate","reflection_scalar_default_1","reflectionScalarDefault","reflection_merge_partial_1","reflection_equals_1","reflectionEquals","reflection_binary_reader_1","ReflectionBinaryReader","reflection_binary_writer_1","ReflectionBinaryWriter","reflection_json_reader_1","ReflectionJsonReader","reflection_json_writer_1","ReflectionJsonWriter","reflection_contains_message_type_1","containsMessageType","oneof_1","isOneofGroup","setOneofValue","getOneofValue","clearOneofValue","getSelectedOneofValue","enum_object_1","lower_camel_case_1","enumAsInteger","prettySpaces","typeRegistry","snakeCase","capNext","sb","defaultCheckDepth","messagePrototype","refTypeCheck","refBinReader","refBinWriter","equals","depth","isAssignable","mergePartial","fromJsonString","toJsonString","setUnknownOneofValue","oneofKind","oneof","detectBi","BI","dv","getBigInt64","getBigUint64","setBigInt64","setBigUint64","MIN","MAX","UMIN","UMAX","C","V","assertBi","bi","RE_DECIMAL_STR","HALF_2_PWR_32","SharedPbLong","isZero","isSafeInteger","ZERO","toBigInt","pbl","negate","isNegative","fromCharCodes","fromCharCode","reflection_long_convert_1","fieldNoToField","fieldsInput","repeated","INT32","L","mapKey","mapVal","mapEntry","K","BOOL","keyRaw","longType","reflectionLongConvert","FIXED64","FIXED32","UINT32","SFIXED32","SFIXED64","SINT32","SINT64","emitDefault","PACKED","packed","isDefault","scalarInfo","val_a","val_b","repeatedPrimitiveEq","primitiveEq","repeatedMsgEq","objectValues","ba","bb","jsonName","NO","messageType","fieldName","fMap","jsonValue","what","oneofsHandled","jsonKey","fieldObj","jsonObjKey","jsonObjValue","enum","fieldArr","jsonItem","localEnumName","enumNumber","NaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","jsonObj","entryKey","entryValue","enumInfo","jsonArr","optional","ed","ulong","BIGINT","NUMBER","fieldValue","known","oneofs","allowExcessProperties","f","scalars","mapKeys","argType","eventTargetShim","EventTarget","abortedFlags","defineEventAttribute","createAbortSignal","toStringTag","signals","getSignal","controller","module","flatten","difference","union","glob","pathSeparatorRe","processPatterns","patterns","exclusion","filepath","sync","cwd","expandMapping","destBase","destPath","fileByDest","basename","ext","dest","normalizeFilesArray","chain","expandOptions","mapObj","orig","lazystream","normalizePath","utils","collectStream","collection","dateify","dateish","guard","lazyReadStream","normalizeInputSource","sanitizePath","trailingSlashIt","unixifyPath","walkdir","dirpath","readdir","stats","relative","dirEntry","Archiver","formats","vending","setFormat","setModule","registerFormat","isRegisteredFormat","inherits","ArchiverError","win32","platform","statConcurrency","_format","_module","_pending","_pointer","_entriesCount","_entriesProcessedCount","_fsEntriesTotalBytes","_fsEntriesProcessedBytes","_queue","_onQueueTask","drain","_onQueueDrain","_statQueue","_onStatQueueTask","finalizing","finalized","modulePiped","_streams","_abort","kill","idle","_shutdown","_append","task","Stats","_updateQueueTaskWithStats","_finalize","_moduleFinalize","_maybeFinalize","_moduleAppend","_task","total","processed","processedBytes","_modulePipe","_onModuleError","_moduleSupports","supports","_moduleUnpipe","unpipe","_normalizeEntryData","isDir","mtime","fullCallback","lstat","isFile","sourceType","isSymbolicLink","linkPath","readlinkSync","dirName","linkname","isBuffer","destpath","dataFunction","globOptions","dot","onGlobEnd","onGlobError","onGlobMatch","globber","ignoreMatch","entryData","absolute","abortedError","finalizingError","errored","symlink","pointer","use","ERROR_CODES","ABORTED","DIRECTORYDIRPATHREQUIRED","DIRECTORYFUNCTIONINVALIDDATA","ENTRYNAMEREQUIRED","FILEFILEPATHREQUIRED","FINALIZING","QUEUECLOSED","NOENDMETHOD","DIRECTORYNOTSUPPORTED","FORMATSET","INPUTSTEAMBUFFERREQUIRED","MODULESET","SYMLINKNOTSUPPORTED","SYMLINKFILEPATHREQUIRED","SYMLINKTARGETREQUIRED","ENTRYNOTSUPPORTED","crc32","Json","_writeStringified","fileString","onend","sourceBuffer","unsigned","engine","Tar","gzip","gzipOptions","pack","compressor","createGzip","_onCompressorError","destination","Zip","comment","forceUTC","namePrependSlash","store","callArgs","initialParams","hasQueueMicrotask","queueMicrotask","hasSetImmediate","hasNextTick","fallback","defer","_defer$1","setImmediate$1","asyncify","func","isAsync","handlePromise","invokeCallback","isAsyncGenerator","isAsyncIterable","wrapAsync","asyncFn","awaitify","arity","awaitable","cbArgs","applyEach$1","eachfn","applyEach","fns","go","that","_asyncMap","iteratee","counter","_iteratee","iterCb","isArrayLike","breakLoop","breakLoop$1","wrapper","callFn","getIterator","coll","createArrayIterator","createES2015Iterator","createObjectIterator","okeys","createIterator","onlyOnce","asyncEachOfLimit","limit","canceled","awaiting","running","idx","replenish","iterDone","iterateeCallback","handleError","eachOfLimit$2","nextElem","looping","elem","eachOfLimit","eachOfLimit$1","eachOfArrayLike","iteratorCallback","eachOfGeneric","eachOf","eachOfImplementation","eachOf$1","map$1","eachOfSeries","eachOfSeries$1","mapSeries","mapSeries$1","applyEachSeries","PROMISE_SYMBOL","promiseCallback","rej","auto","tasks","numTasks","runningTasks","hasError","readyTasks","readyToCheck","uncheckedDependencies","enqueueTask","dependencies","remainingDependencies","dependencyName","addListener","checkForDeadlocks","processQueue","runTask","run","taskName","taskListeners","taskComplete","taskCallback","safeResults","rkey","taskFn","currentTask","getDependents","dependent","FN_ARGS","ARROW_FN_ARGS","FN_ARG_SPLIT","FN_ARG","stripComments","stripped","endBlockComment","parseParams","autoInject","newTasks","fnIsAsync","hasNoDeps","newTask","taskCb","newArgs","DLL","removeLink","empty","insertAfter","newNode","insertBefore","setInitial","toArray","cur","testFn","dll","queue$1","worker","_worker","numRunning","workersList","saturated","unsaturated","handleAndRemove","trigger","processingScheduled","_insert","insertAtFront","rejectOnError","started","_createTaskItem","_tasks","_createCB","_maybeDrain","eventMethod","isProcessing","paused","datum","pushAsync","unshiftAsync","cargo$1","cargo","memo","reduce$1","seq","functions","_functions","newargs","nextargs","compose","mapLimit","mapLimit$1","concatLimit","mapResults","concatLimit$1","concat$1","concatSeries","concatSeries$1","constant$1","ignoredArgs","_createTester","check","testPassed","testResult","detect","detect$1","detectLimit","detectLimit$1","detectSeries","detectSeries$1","consoleFunc","resultArgs","dir","doWhilst","_test","truth","doWhilst$1","doUntil","_withoutIndex","eachLimit$2","each","eachLimit","eachLimit$1","eachSeries","eachSeries$1","ensureAsync","innerArgs","every$1","everyLimit","everyLimit$1","everySeries","everySeries$1","filterArray","truthValues","filterGeneric","_filter","filter$1","filterLimit","filterLimit$1","filterSeries","filterSeries$1","forever","errback","forever$1","groupByLimit","groupByLimit$1","groupBy","groupBySeries","mapValuesLimit","mapValuesLimit$1","mapValues","mapValuesSeries","memoize","hasher","queues","memoized","unmemoized","_defer","_parallel","parallel","parallelLimit","Heap","heap","pushCount","percUp","smaller","percDown","leftChi","top","y","priority","priorityQueue","createDataItems","race$1","reduceRight","reversed","reflect","reflectOn","reflectCallback","retVal","reflectAll","reject$2","reject$1","rejectLimit","rejectLimit$1","rejectSeries","rejectSeries$1","constant","DEFAULT_TIMES","DEFAULT_INTERVAL","times","intervalFunc","parseTimes","retryAttempt","errorFilter","acc","interval","retryable","series","some$1","someLimit","someLimit$1","someSeries","someSeries$1","sortBy","criteria","comparator","left","right","sortBy$1","timedOut","timeoutCallback","timesLimit","timesSeries","accumulator","tryEach","tryEach$1","unmemoize","whilst","whilst$1","until","waterfall","taskIndex","nextTask","waterfall$1","cargoQueue","allLimit","allSeries","anyLimit","anySeries","findLimit","findSeries","flatMapLimit","flatMapSeries","forEachSeries","forEachLimit","forEachOf","forEachOfSeries","forEachOfLimit","foldl","foldr","select","selectLimit","selectSeries","wrapSync","during","doDuring","serial","serialOrdered","jobs","clean","async_callback","nextTick_callback","iterate","runJob","sortMethod","isNamedList","keyedList","terminator","ascending","descending","iteratorHandler","isEncoding","allocUnsafeSlow","compare","targetStart","toBuffer","encodingOrOffset","byfeOffset","swap16","swap32","swap64","writeDoubleLE","writeFloatLE","writeUInt32LE","writeInt32LE","readDoubleLE","readFloatLE","readUInt32LE","readInt32LE","balanced","maybeMatch","pre","reg","begs","beg","ai","register","addHook","removeHook","Function","bindable","bindApi","removeHookRef","HookSingular","singularHookName","singularHookState","registry","singularHook","HookCollection","collectionHookDeprecationMessageDisplayed","Hook","Singular","result_","registered","Chainsaw","Buffers","Vars","bufOrEm","pending","getBytes","dispatch","caughtEnd","saw","words","vars","tap","nest","flush","loop","scan","taken","peek","light","ender","was","eof","decodeLEu","decodeBEu","decodeBEs","decodeLEs","bits","word8","word8u","word8be","word8s","word8bs","getset","commonjsGlobal","getCjsExportFromNamespace","load","received","onto","parser","DLList","incr","decr","_first","_last","getArray","forEachShift","ref1","ref2","DLList_1","Events","_events","_addListener","listenerCount","returned","Events_1","DLList$1","Events$1","Queues","num_priorities","_length","_lists","queued","shiftAll","getFirst","shiftLastFrom","Queues_1","BottleneckError","BottleneckError_1","BottleneckError$1","DEFAULT_PRIORITY","Job","NUM_PRIORITIES","parser$1","jobDefaults","rejectOnDrop","_states","_sanitizePriority","_randomIndex","sProperty","doDrop","_assertStatus","expected","jobStatus","doReceive","doQueue","reachedHWM","blocked","doRun","doExecute","chained","clearGlobalState","free","eventInfo","passed","doDone","error1","_onFailure","doExpire","expiration","Job_1","BottleneckError$2","LocalDatastore","parser$2","storeOptions","storeInstanceOptions","clientId","_nextRequest","_lastReservoirRefresh","_lastReservoirIncrease","_running","_done","_unblockTime","ready","clients","_startHeartbeat","heartbeat","reservoirRefreshInterval","reservoirRefreshAmount","reservoirIncreaseInterval","reservoirIncreaseAmount","setInterval","amount","maximum","reservoir","_drainAll","computeCapacity","reservoirIncreaseMaximum","heartbeatInterval","clearInterval","__publish__","yieldLoop","__disconnect__","computePenalty","penalty","__updateSettings__","__running__","__queued__","__done__","__groupCheck__","time","maxConcurrent","conditionsCheck","weight","__incrementReservoir__","__currentReservoir__","isBlocked","__check__","__register__","wait","strategyIsBlock","strategy","__submit__","queueLength","highWater","_dropAllQueued","__free__","LocalDatastore_1","BottleneckError$3","States","status1","_jobs","counts","initial","statusJobs","statusCounts","States_1","DLList$2","Sync","isEmpty","_tryToRun","Sync_1","version$1","version$2","require$$2","require$$3","require$$4","Events$2","Group","IORedisConnection$1","RedisConnection$1","Scripts$1","parser$3","limiterOptions","deleteKey","instances","Bottleneck_1","_startAutoCleanup","sharedConnection","connection","datastore","__runCommand__","allKeys","disconnect","limiters","clusterKeys","cursor","found","_store","updateSettings","Group_1","Batcher","Events$3","parser$4","_arr","_resetPromise","_lastFlush","_flush","_timeout","ret","Batcher_1","require$$4$1","require$$8","DEFAULT_PRIORITY$1","Events$4","Job$1","LocalDatastore$1","NUM_PRIORITIES$1","Queues$1","RedisDatastore$1","States$1","Sync$1","parser$5","invalid","_addToQueue","_validateOptions","instanceDefaults","_queues","_scheduled","trackDoneStatus","_limiter","_submitLock","_registerLock","storeDefaults","redisStoreDefaults","localStoreDefaults","channel","channel_client","publish","clusterQueued","_clearGlobalState","_free","_run","_drainOne","drained","newCapacity","stop","waitForExecuting","stopDefaults","at","finished","dropWaitingJobs","dropErrorMessage","_receive","enqueueErrorMessage","shifted","LEAK","OVERFLOW_PRIORITY","OVERFLOW","submit","withOptions","currentReservoir","incrementReservoir","BLOCK","RedisConnection","IORedisConnection","clientTimeout","Redis","clientOptions","clusterNodes","clearDatastore","lib","expandTop","escSlash","escOpen","escClose","escComma","escPeriod","numeric","escapeBraces","unescapeBraces","parseCommaParts","postParts","embrace","isPadded","el","lte","gte","isTop","expansions","expansion","isNumericSequence","isAlphaSequence","isSequence","isOptions","N","abs","pad","need","bufs","dst","dStart","howMany","reps","removed","startBytes","ii","buf0","buf1","reps_","take","si","ti","bu","needle","mstart","Traverse","ChainsawLight","isRoot","ps","trap","autonext","upgradeChainsaw","down","act","jump","DelayedStream","CombinedStream","dataSize","maxDataSize","pauseStreams","_released","_currentStream","_insideLoop","_pendingNext","combinedStream","isStreamLike","newStream","pauseStream","_checkDataSize","_handleErrors","_getNext","_realGetNext","_pipeNext","getStream","_emitError","_reset","_updateDataSize","ArchiveEntry","getName","getSize","getLastModifiedDate","ArchiveOutputStream","_archive","processing","_appendBuffer","zae","_appendStream","_emitErrorCallback","_finish","ae","_normalizeEntry","_entry","getBytesWritten","WORD","DWORD","EMPTY","SHORT","SHORT_MASK","SHORT_SHIFT","SHORT_ZERO","LONG_ZERO","MIN_VERSION_INITIAL","MIN_VERSION_DATA_DESCRIPTOR","MIN_VERSION_ZIP64","VERSION_MADEBY","METHOD_STORED","METHOD_DEFLATED","PLATFORM_UNIX","PLATFORM_FAT","SIG_LFH","SIG_DD","SIG_CFH","SIG_EOCD","SIG_ZIP64_EOCD","SIG_ZIP64_EOCD_LOC","ZIP64_MAGIC_SHORT","ZIP64_MAGIC","ZIP64_EXTRA_ID","ZLIB_NO_COMPRESSION","ZLIB_BEST_SPEED","ZLIB_BEST_COMPRESSION","ZLIB_DEFAULT_COMPRESSION","MODE_MASK","DEFAULT_FILE_MODE","DEFAULT_DIR_MODE","EXT_FILE_ATTR_DIR","EXT_FILE_ATTR_FILE","S_IFMT","S_IFIFO","S_IFCHR","S_IFDIR","S_IFBLK","S_IFREG","S_IFLNK","S_IFSOCK","S_DOS_A","S_DOS_D","S_DOS_V","S_DOS_S","S_DOS_H","S_DOS_R","zipUtil","DATA_DESCRIPTOR_FLAG","ENCRYPTION_FLAG","NUMBER_OF_SHANNON_FANO_TREES_FLAG","SLIDING_DICTIONARY_SIZE_FLAG","STRONG_ENCRYPTION_FLAG","UFT8_NAMES_FLAG","GeneralPurposeBit","descriptor","encryption","utf8","numberOfShannonFanoTrees","strongEncryption","slidingDictionarySize","getShortBytes","flag","getShortBytesValue","gbp","useDataDescriptor","useUTF8ForNames","useStrongEncryption","useEncryption","setSlidingDictionarySize","setNumberOfShannonFanoTrees","getNumberOfShannonFanoTrees","getSlidingDictionarySize","usesDataDescriptor","usesEncryption","usesStrongEncryption","usesUTF8ForNames","PERM_MASK","FILE_TYPE_FLAG","LINK_FLAG","FILE_FLAG","DIR_FLAG","DEFAULT_LINK_PERM","DEFAULT_DIR_PERM","DEFAULT_FILE_PERM","dateToDos","forceLocalTime","year","getFullYear","getUTCFullYear","month","getMonth","getUTCMonth","getUTCDate","hours","getHours","getUTCHours","minutes","getMinutes","getUTCMinutes","getSeconds","getUTCSeconds","dosToDate","dos","fromDosTime","getEightBytes","writeUInt16LE","readUInt16LE","getLongBytes","getLongBytesValue","toDosTime","UnixStat","ZipArchiveEntry","csize","gpb","crc","minver","extra","exattr","inattr","setName","getCentralDirectoryExtra","getExtra","getCompressedSize","getCrc","getExternalAttributes","getGeneralPurposeBit","getInternalAttributes","getLocalFileDataExtra","getMethod","getPlatform","getTimeDos","getUnixMode","getVersionNeededToExtract","setComment","setCompressedSize","setCrc","setExternalAttributes","attr","setExtra","setGeneralPurposeBit","setInternalAttributes","setMethod","prependSlash","setPlatform","setSize","setTime","setUnixMode","extattr","setVersionNeededToExtract","isUnixSymlink","isZip64","CRC32Stream","DeflateCRC32Stream","ZipArchiveOutputStream","_defaults","centralLength","centralOffset","forceZip64","_afterAppend","_writeDataDescriptor","_writeLocalFileHeader","_smartStream","smart","_writeCentralFileHeader","_writeCentralDirectoryZip64","_writeCentralDirectoryEnd","_offsets","deflate","handleStuff","readUInt32BE","records","commentLength","fileOffset","compressedSize","extraBuf","_readableState","normalized","objectToString","isBoolean","isNull","isNullOrUndefined","isString","isSymbol","isUndefined","isRegExp","isDate","isFunction","isPrimitive","CRC32","DO_NOT_EXPORT_CRC","signed_crc_table","Int32Array","T0","slice_by_16_tables","out","TT","T1","T2","T3","T4","T5","T6","T7","T8","T9","Ta","Tb","Tc","Td","Te","Tf","crc32_bstr","bstr","seed","crc32_buf","B","crc32_str","checksum","writeInt32BE","rawSize","writeUInt32BE","hex","DeflateRaw","compressed","_maxDataSizeExceeded","_bufferedEvents","delayedStream","realEmit","_handleEmit","_checkIfMaxDataSizeExceeded","_process","parseKey","isIndex","isArrayOrObject","isEmptyObject","blacklist","blacklistFilter","parsePath","DotObject","override","useArray","useBrackets","keepArray","cleanup","dotDefault","_fill","mods","pick","reindexArray","cp","_cleanup","obj1","obj2","recipe","tgt","previousKey","privateData","wrappers","pd","retv","setCancelFlag","passiveListener","cancelable","preventDefault","Event","eventTarget","eventPhase","currentTarget","immediateStopped","timeStamp","defineRedirectDescriptor","composedPath","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","stopPropagation","stopImmediatePropagation","bubbles","defaultPrevented","composed","srcElement","cancelBubble","initEvent","defineCallDescriptor","defineWrapper","BaseEvent","proto","CustomEvent","isFunc","getWrapper","getPrototypeOf","wrapEvent","Wrapper","setEventPhase","setCurrentTarget","setPassiveListener","CAPTURE","BUBBLE","ATTRIBUTE","getListeners","defineEventAttributeDescriptor","listenerType","passive","eventTargetPrototype","defineCustomEventTarget","eventNames","CustomEventTarget","optionsIsObj","capture","wrappedEvent","handleEvent","FixedFIFO","hwm","mask","btm","FastFIFO","findPid","findProcess","pid","by","ensureDir","finders","darwin","stripLine","extractColumns","freebsd","sunos","linux","columns","column","android","tmpdir","readFile","unlink","findPidByPort","matchName","fetchBin","pieces","fixed","optIdx","fetchName","fullpath","cond","bin","ppid","uid","gid","lines","proc","spawn","detached","windowsHide","parseTable","ProcessId","rowName","Name","CommandLine","ParentProcessId","ExecutablePath","UNIT_MB","maxBuffer","nIdx","cols","idxes","splitterIndex","mime","asynckit","populate","_overheadLength","_valueLength","_valuesToMeasure","LINE_BREAK","DEFAULT_CONTENT_TYPE","filename","_error","_multiPartHeader","footer","_multiPartFooter","_trackLength","valueLength","knownLength","_lengthRetriever","fileSize","_getContentDisposition","_getContentType","_httpMessage","lookup","lastPart","_lastBoundary","getHeaders","userHeaders","formHeaders","setBoundary","_boundary","_generateBoundary","getBuffer","dataBuffer","getLengthSync","hasKnownLength","getLength","setHeader","onResponse","responce","polyfills","legacy","gracefulQueue","previousSymbol","noop","publishQueue","debuglog","NODE_DEBUG","close","fs$close","fd","resetQueue","closeSync","fs$closeSync","equal","TEST_GRACEFUL_FS_GLOBAL_PATCH","__patched","gracefulify","fs$readFile","go$readFile","startTime","enqueue","fs$writeFile","go$writeFile","fs$appendFile","go$appendFile","fs$copyFile","copyFile","go$copyFile","fs$readdir","noReaddirOptionVersions","go$readdir","fs$readdirCallback","legStreams","ReadStream","WriteStream","fs$ReadStream","open","ReadStream$open","fs$WriteStream","WriteStream$open","FileReadStream","FileWriteStream","fs$open","go$open","retryTimer","lastTime","sinceAttempt","sinceStart","desiredDelay","bytesWritten","busy","_open","origCwd","GRACEFUL_FS_PLATFORM","er","chdir","patchLchmod","lutimes","patchLutimes","chown","chownFix","fchown","lchown","chmod","chmodFix","fchmod","lchmod","chownSync","chownFixSync","fchownSync","lchownSync","chmodSync","chmodFixSync","fchmodSync","lchmodSync","statFix","fstat","statFixSync","fstatSync","lstatSync","fs$rename","to","backoff","CB","stater","st","fs$read","callback_","eagCounter","__","readSync","fs$readSync","O_WRONLY","O_SYMLINK","err2","openSync","threw","futimes","mt","er2","lutimesSync","futimesSync","chownErOk","nonroot","getuid","ctor","superCtor","super_","TempCtor","prot","_write","_writableState","atob","InvalidTokenError","Writable","beforeFirstCall","hashClear","hashDelete","hashGet","hashHas","hashSet","Hash","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","ListCache","getNative","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","MapCache","setCacheAdd","setCacheHas","SetCache","__data__","baseIndexOf","arrayIncludes","arrayIncludesWith","baseTimes","isArguments","isTypedArray","objectProto","arrayLikeKeys","inherited","isArr","isArg","isBuff","isType","skipIndexes","arrayMap","arrayPush","eq","assocIndexOf","baseUnary","cacheHas","LARGE_ARRAY_SIZE","baseDifference","isCommon","valuesLength","outer","computed","valuesIndex","baseFindIndex","fromIndex","fromRight","isFlattenable","baseFlatten","isStrict","getRawTag","nullTag","undefinedTag","symToStringTag","baseGetTag","baseIsNaN","strictIndexOf","isObjectLike","argsTag","baseIsArguments","isMasked","toSource","reRegExpChar","reIsHostCtor","funcProto","funcToString","reIsNative","baseIsNative","isLength","arrayTag","boolTag","dateTag","errorTag","funcTag","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","baseIsTypedArray","isPrototype","nativeKeysIn","baseKeysIn","isProto","identity","overRest","setToString","baseRest","baseSetToString","createSet","setToArray","baseUniq","seenIndex","cache","coreJsData","INFINITY","freeGlobal","isKeyable","getMapData","overArg","getPrototype","nativeObjectToString","isOwn","unmasked","nativeCreate","HASH_UNDEFINED","spreadableSymbol","isConcatSpreadable","reIsUint","isIterateeCall","maskSrcKey","IE_PROTO","Ctor","arrayProto","lastIndex","freeExports","nodeType","freeModule","moduleExports","freeProcess","nodeUtil","require","binding","nativeMax","otherArgs","freeSelf","shortOut","HOT_COUNT","HOT_SPAN","nativeNow","stamp","keysIn","sources","propsIndex","propsLength","isArrayLikeObject","other","stubFalse","nativeIsBuffer","asyncTag","genTag","proxyTag","objectCtorString","nodeIsTypedArray","arrays","db","extname","EXTRACT_TYPE_REGEXP","TEXT_TYPE_REGEXP","charset","charsets","extension","extensions","populateMaps","exts","preference","forEachMimeType","isWindows","minimatch","assertValidPattern","nocomment","Minimatch","GLOBSTAR","plTypes","qmark","twoStarDot","twoStarNoDot","charSet","reSpecials","addPatternStartSet","slashSplit","def","makeRe","braceExpand","nobrace","MAX_PATTERN_LENGTH","SUBPARSE","mm","nonull","globUnescape","charUnescape","regExpEscape","braExpEscape","windowsPathsNoEscape","allowWindowsEscape","regexp","make","parseNegate","globSet","globParts","nonegate","negateOffset","matchOne","fi","pi","fl","pl","fr","pr","swallowee","hit","isSub","noglobstar","hasMagic","escaping","patternListStack","negativeLists","stateChar","inClass","reClassStart","classStart","cs","sp","dotTravAllowed","dotFileAllowed","patternStart","subPatternStart","clearStateChar","noext","plEntry","reStart","reEnd","$1","$2","addPatternStart","nl","nlBefore","nlFirst","nlAfter","nlLast","closeParensBefore","openParensBefore","cleanAfter","dollar","nocase","_glob","_src","twoStar","matchBase","flipNegate","_0777","mkdirP","mkdirp","made","xfs","mkdirSync","err0","err1","Url","whatwgUrl","BUFFER","TYPE","blobParts","ab","relativeStart","relativeEnd","slicedBuffer","FetchError","systemError","errno","convert","INTERNALS","Body","_this","_ref","_ref$size","_ref$timeout","isURLSearchParams","isBlob","disturbed","bodyUsed","consumeBody","ct","_this2","textConverted","_this3","convertBody","mixIn","_this4","accum","accumBytes","resTimeout","getAll","p1","p2","extractContentType","getTotalBytes","_lengthRetrievers","writeToStream","invalidTokenRegex","invalidHeaderCharRegex","validateName","_pairs$i","createHeadersIterator","HeadersIteratorPrototype","_INTERNAL","exportNodeCompatibleHeaders","hostHeaderKey","createHeadersLenient","INTERNALS$1","STATUS_CODES","Response","redirected","INTERNALS$2","parse_url","format_url","parseURL","urlStr","streamDestructionSupported","isRequest","isAbortSignal","Request","parsedURL","inputBody","getNodeRequestOptions","contentLengthValue","URL$1","PassThrough$1","isDomainOrSubdomain","original","isSameProtocol","destroyStream","abortAndFinalize","reqTimeout","fixResponseChunkedTransferBadEnding","hadError","hasDataListener","isRedirect","locationURL","response_options","codings","zlibOptions","Z_SYNC_FLUSH","finishFlush","createGunzip","createInflate","createInflateRaw","createBrotliDecompress","errorCallback","stripTrailing","segs","wrappy","onceStrict","onceError","arg1","afterTickOne","afterTickTwo","afterTickThree","afterTick","pna","objectKeys","Duplex","allowHalfOpen","ended","onEndNT","destroyed","ReadableState","EE","EElistenerCount","OurUint8Array","_uint8ArrayToBuffer","_isUint8Array","debugUtil","BufferList","destroyImpl","StringDecoder","kProxyEvents","prependListener","isDuplex","readableObjectMode","readableHwm","defaultHwm","pipes","pipesCount","flowing","endEmitted","reading","needReadable","emittedReadable","readableListening","resumeScheduled","defaultEncoding","awaitDrain","readingMore","decoder","_undestroy","undestroy","skipChunkCheck","readableAddChunk","addToFront","onEofChunk","chunkInvalid","addChunk","maybeReadMore","needMoreData","emitReadable","isPaused","MAX_HWM","computeNewHighWaterMark","howMuchToRead","nOrig","endReadable","doRead","fromList","emitReadable_","flow","maybeReadMore_","pipeOpts","doEnd","endFn","onunpipe","unpipeInfo","hasUnpiped","ondrain","pipeOnDrain","cleanedUp","onclose","onfinish","onerror","ondata","needDrain","increasedAwaitDrain","dests","nReadingNextTick","resume_","_fromList","fromListPartial","hasStrings","copyFromBufferString","copyFromBuffer","nb","endReadableNT","xs","afterTransform","ts","_transformState","transforming","writecb","writechunk","needTransform","writeencoding","prefinish","WriteReq","CorkedRequest","onCorkedFinish","asyncWrite","browser","WritableState","internalUtil","deprecate","nop","writableObjectMode","writableHwm","finalCalled","ending","noDecode","decodeStrings","writing","corked","bufferProcessing","onwrite","writelen","bufferedRequest","lastBufferedRequest","pendingcb","prefinished","errorEmitted","bufferedRequestCount","corkedRequestsFree","realHasInstance","hasInstance","writev","_writev","final","_final","writeAfterEnd","validChunk","valid","isBuf","writeOrBuffer","cork","uncork","clearBuffer","setDefaultEncoding","decodeChunk","newChunk","doWrite","onwriteError","finishMaybe","onwriteStateUpdate","needFinish","afterWrite","onwriteDrain","holder","allBuffers","endWritable","callFinal","corkReq","_classCallCheck","Constructor","copyBuffer","readableDestroyed","writableDestroyed","emitErrorNT","READABLE_STREAM","SymbolDispose","codes","isNodeStream","isWebStream","kControllerErrorFunction","eos","ERR_INVALID_ARG_TYPE","addAbortListener","validateAbortSignal","addAbortSignal","addAbortSignalNoValidate","cause","disposable","StringPrototypeSlice","SymbolIterator","TypedArrayPrototypeSet","consume","_getString","_getBuffer","retLen","customInspect","destroyer","isReadable","isWritable","isTransformStream","isWritableStream","ERR_INVALID_ARG_VALUE","ERR_MISSING_ARGS","streams","orgStreams","onreadable","onfinished","getWriter","toRead","getReader","aggregateTwoErrors","ERR_MULTIPLE_CALLBACK","kIsDestroyed","isDestroyed","isFinished","isServerRequest","kDestroy","kConstruct","checkError","w","constructed","onDestroy","emitErrorCloseNT","emitCloseNT","closeEmitted","emitClose","errorOrDestroy","autoDestroy","construct","_construct","constructNT","onConstruct","emitConstructNT","emitCloseLegacy","emitErrorCloseLegacy","ObjectDefineProperties","ObjectGetOwnPropertyDescriptor","ObjectKeys","ObjectSetPrototypeOf","writableBuffer","writableLength","writableFinished","writableCorked","writableEnded","writableNeedDrain","webStreamsAdapters","lazyWebStreams","fromWeb","newStreamDuplexFromReadableWritablePair","toWeb","newReadableWritablePairFromDuplex","duplexify","bufferModule","isIterable","isReadableNodeStream","isWritableNodeStream","isDuplexNodeStream","ERR_INVALID_RETURN_VALUE","createDeferredPromise","FunctionPrototypeCall","Duplexify","_duplexify","fromAsyncGen","ac","ERR_STREAM_PREMATURE_CLOSE","kEmptyObject","validateFunction","validateObject","validateBoolean","PromisePrototypeThen","isClosed","isReadableFinished","isReadableErrored","isWritableFinished","isWritableErrored","willEmitClose","_willEmitClose","kIsClosedPromise","_options$readable","_options$writable","eosWeb","wState","rState","onlegacyfinish","readableFinished","onclosed","onrequest","endCallback","originalCallback","resolverFn","_opts","autoCleanup","SymbolAsyncIterator","ERR_STREAM_NULL_VALUES","iterable","hasThrow","throw","ArrayIsArray","_isStdio","didOnEnd","ERR_OUT_OF_RANGE","validateInteger","kWeakHandler","kResistStopPropagation","staticCompose","ArrayPrototypePush","MathFloor","NumberIsNaN","PromiseReject","PromiseResolve","kEmpty","kEof","composedStream","signalOpt","cnt","onCatch","afterItemProcessed","maybeResume","pump","asIndexedPairs","_options$signal","unused","forEachFn","filterFn","ReduceAwareErrMissingArgs","reducer","initialValue","_options$signal2","hasInitialValue","gotAnyItemFromStream","_options$signal3","_options$signal4","toIntegerOrInfinity","drop","_options$signal5","_options$signal6","_options$signal7","_options$signal8","streamReturningOperators","promiseReturningOperators","ERR_STREAM_DESTROYED","popCallback","makeAsyncIterable","fromReadable","pumpToNode","onresolve","pumpToWeb","pipelineImpl","outerSignal","lastStreamCleanup","finishImpl","destroys","finishCount","_disposable","isLastStream","_ret","_ret2","pt","ArrayPrototypeIndexOf","NumberIsInteger","NumberParseInt","SafeSet","SymbolAsyncDispose","getHighWaterMark","getDefaultHighWaterMark","ERR_METHOD_NOT_IMPLEMENTED","ERR_STREAM_PUSH_AFTER_EOF","ERR_STREAM_UNSHIFT_AFTER_END_EVENT","kPaused","kObjectMode","kEnded","kEndEmitted","kReading","kConstructed","kSync","kNeedReadable","kEmittedReadable","kReadableListening","kResumeScheduled","kErrorEmitted","kEmitClose","kAutoDestroy","kDestroyed","kClosed","kCloseEmitted","kMultiAwaitDrain","kReadingMore","kDataEmitted","makeBitMapDescriptor","bit","multiAwaitDrain","dataEmitted","awaitDrainWriters","captureRejectionSymbol","readableEnded","pipeOnDrainFunctionResult","updateReadableListening","streamKeys","streamToAsyncIterator","createAsyncIterator","destroyOnReturn","readableDidRead","readableAborted","readableBuffer","readableFlowing","readableLength","readableEncoding","endWritableNT","readableStream","newStreamReadableFromReadableStream","streamReadable","newReadableStreamFromStreamReadable","_src$readableObjectMo","defaultHighWaterMarkBytes","defaultHighWaterMarkObjectMode","highWaterMarkFrom","duplexKey","setDefaultHighWaterMark","kCallback","SymbolFor","kIsErrored","kIsReadable","kIsWritable","kIsDisturbed","_obj$_readableState","_obj$_writableState","pipeThrough","isWritableEnded","isReadableEnded","_stream$_writableStat","_stream$_writableStat2","writableErrored","_stream$_readableStat","_stream$_readableStat2","readableErrored","isOutgoingMessage","_defaultKeepAlive","_removedConnection","_removedContLen","isServerResponse","_sent100","_stream$req","_consuming","_dumped","upgradeOrConnect","isDisturbed","_stream$kIsDisturbed","isErrored","_ref2","_ref3","_ref4","_ref5","_stream$kIsErrored","_stream$_readableStat3","_stream$_writableStat3","_stream$_readableStat4","_stream$_writableStat4","ArrayPrototypeSlice","FunctionPrototypeSymbolHasInstance","ObjectDefineProperty","StringPrototypeToLowerCase","SymbolHasInstance","ERR_STREAM_CANNOT_PIPE","ERR_STREAM_ALREADY_FINISHED","ERR_STREAM_WRITE_AFTER_END","ERR_UNKNOWN_ENCODING","kOnFinished","afterWriteTickInfo","resetBuffer","buffered","bufferedIndex","allNoop","errorBuffer","afterWriteTick","_state$errored","onfinishCallbacks","_state$errored2","bufferedLength","onFinish","writableAborted","writableStream","newStreamWritableFromWritableStream","streamWritable","newWritableStreamFromStreamWritable","ArrayPrototypeIncludes","ArrayPrototypeJoin","ArrayPrototypeMap","NumberMAX_SAFE_INTEGER","NumberMIN_SAFE_INTEGER","ObjectPrototypeHasOwnProperty","RegExpPrototypeExec","StringPrototypeToUpperCase","StringPrototypeTrim","hideStackFrames","ERR_SOCKET_BAD_PORT","ERR_UNKNOWN_SIGNAL","normalizeEncoding","isAsyncFunction","isArrayBufferView","isInt32","isUint32","octalReg","modeDesc","parseFileMode","validateUint32","validateInt32","positive","validateString","validateNumber","validateOneOf","oneOf","allowed","getOwnPropertyValueOrDefault","allowArray","allowFunction","validateDictionary","validateArray","minLength","validateStringArray","validateBooleanArray","validateAbortSignalArray","indexedName","validateSignalName","validateBuffer","validateEncoding","normalizedEncoding","validatePort","allowZero","validatePlainFunction","validateUndefined","validateUnion","linkValueRegExp","validateLinkHeaderFormat","validateLinkHeaderValue","hints","hintsLength","AggregateError","CustomAggregateError","kIsNodeError","kTypes","classRegExp","nodeInternalPrefix","ERR_INTERNAL_ASSERTION","addNumericalSeparator","getMessage","expectedLength","E","Base","NodeError","hidden","outerError","actual","_actual$constructor","inspected","colors","_value$constructor","CustomStream","originalDestroy","ArrayPrototypePop","thisArgs","PromisePrototypeCatch","thenFn","catchFn","ReflectApply","RegExpPrototypeTest","asyncDispose","AsyncFunction","_unused","replacement","toFixed","_removeEventListener","AbortSignalAny","customPromisify","ERR_ILLEGAL_CONSTRUCTOR","internalBuffer","op","isUint8Array","lastArg","readdirGlob","withFileTypes","followSymlinks","statFunc","exploreWalkAsync","useStat","shouldSkip","explore","readOptions","ignore","nodir","mark","silent","ReaddirGlob","matchers","ignoreMatchers","ignorePatterns","skipMatchers","skipPatterns","_shouldSkipDirectory","inactive","_matches","_next","_fileMatches","copyProps","SafeBuffer","SlowBuffer","sax","SAXParser","SAXStream","createStream","MAX_BUFFER_LENGTH","EVENTS","clearBuffers","bufferCheckPosition","lowercase","lowercasetags","looseCase","closedRoot","sawRoot","noscript","S","BEGIN","strictEntities","ENTITIES","XML_ENTITIES","attribList","rootNS","trackPosition","F","newf","checkBufferLength","maxAllowed","maxActual","closeText","emitNode","script","flushBuffers","streamWraps","_parser","me","_decoder","SD","CDATA","DOCTYPE","XML_NAMESPACE","XMLNS_NAMESPACE","nameStart","nameBody","entityStart","entityBody","isWhitespace","isQuote","isAttribEnd","isMatch","regex","notMatch","STATE","BEGIN_WHITESPACE","TEXT","TEXT_ENTITY","OPEN_WAKA","SGML_DECL","SGML_DECL_QUOTED","DOCTYPE_QUOTED","DOCTYPE_DTD","DOCTYPE_DTD_QUOTED","COMMENT_STARTING","COMMENT","COMMENT_ENDING","COMMENT_ENDED","CDATA_ENDING","CDATA_ENDING_2","PROC_INST","PROC_INST_BODY","PROC_INST_ENDING","OPEN_TAG","OPEN_TAG_SLASH","ATTRIB","ATTRIB_NAME","ATTRIB_NAME_SAW_WHITE","ATTRIB_VALUE","ATTRIB_VALUE_QUOTED","ATTRIB_VALUE_CLOSED","ATTRIB_VALUE_UNQUOTED","ATTRIB_VALUE_ENTITY_Q","ATTRIB_VALUE_ENTITY_U","CLOSE_TAG","CLOSE_TAG_SAW_WHITE","SCRIPT","SCRIPT_ENDING","amp","gt","lt","quot","apos","AElig","Aacute","Acirc","Agrave","Aring","Atilde","Auml","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","Iacute","Icirc","Igrave","Iuml","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","aelig","agrave","aring","atilde","auml","ccedil","eacute","ecirc","egrave","eth","euml","iacute","icirc","igrave","iuml","ntilde","oacute","ocirc","ograve","oslash","otilde","ouml","szlig","thorn","uacute","ucirc","ugrave","uuml","yacute","yuml","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","ordf","laquo","not","shy","macr","deg","plusmn","sup1","sup2","sup3","acute","micro","para","middot","cedil","ordm","raquo","frac14","frac12","frac34","iquest","divide","OElig","oelig","Scaron","scaron","Yuml","fnof","circ","tilde","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","bull","hellip","permil","prime","Prime","lsaquo","rsaquo","oline","frasl","euro","image","weierp","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","exist","nabla","isin","notin","ni","prod","sum","lowast","radic","infin","ang","and","or","cap","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sub","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","rang","loz","spades","clubs","hearts","diams","textNode","textopts","strictFail","newTag","tagName","qname","attribute","qualName","local","attrib","attribName","attribValue","qn","openTag","selfClosing","nv","isSelfClosing","closeTag","closeTo","parseEntity","entity","entityLC","numStr","fromCodePoint","beginWhiteSpace","startTagPosition","starti","sgmlDecl","procInstName","procInstBody","returnState","unparsedEntities","parsedEntity","stringFromCharCode","MAX_SIZE","codeUnits","highSurrogate","lowSurrogate","codePoint","STREAM_DESTROYED","PREMATURE_CLOSE","queueTick","FIFO","OPENING","PREDESTROYING","DESTROYING","DESTROYED","NOT_OPENING","NOT_PREDESTROYING","READ_ACTIVE","READ_UPDATING","READ_PRIMARY","READ_QUEUED","READ_RESUMED","READ_PIPE_DRAINED","READ_ENDING","READ_EMIT_DATA","READ_EMIT_READABLE","READ_EMITTED_READABLE","READ_DONE","READ_NEXT_TICK","READ_NEEDS_PUSH","READ_READ_AHEAD","READ_FLOWING","READ_ACTIVE_AND_NEEDS_PUSH","READ_PRIMARY_AND_ACTIVE","READ_EMIT_READABLE_AND_QUEUED","READ_RESUMED_READ_AHEAD","READ_NOT_ACTIVE","READ_NON_PRIMARY","READ_NON_PRIMARY_AND_PUSHED","READ_PUSHED","READ_PAUSED","READ_NOT_QUEUED","READ_NOT_ENDING","READ_PIPE_NOT_DRAINED","READ_NOT_NEXT_TICK","READ_NOT_UPDATING","READ_NO_READ_AHEAD","READ_PAUSED_NO_READ_AHEAD","WRITE_ACTIVE","WRITE_UPDATING","WRITE_PRIMARY","WRITE_QUEUED","WRITE_UNDRAINED","WRITE_DONE","WRITE_EMIT_DRAIN","WRITE_NEXT_TICK","WRITE_WRITING","WRITE_FINISHING","WRITE_NOT_ACTIVE","WRITE_NON_PRIMARY","WRITE_NOT_FINISHING","WRITE_DRAINED","WRITE_NOT_QUEUED","WRITE_NOT_NEXT_TICK","WRITE_NOT_UPDATING","ACTIVE","NOT_ACTIVE","DONE","DESTROY_STATUS","OPEN_STATUS","AUTO_DESTROY","NON_PRIMARY","ACTIVE_OR_TICKING","TICKING","IS_OPENING","READ_PRIMARY_STATUS","READ_STATUS","READ_ENDING_STATUS","READ_READABLE_STATUS","SHOULD_NOT_READ","READ_BACKPRESSURE_STATUS","READ_UPDATE_SYNC_STATUS","WRITE_PRIMARY_STATUS","WRITE_QUEUED_AND_UNDRAINED","WRITE_QUEUED_AND_ACTIVE","WRITE_DRAIN_STATUS","WRITE_STATUS","WRITE_PRIMARY_AND_ACTIVE","WRITE_ACTIVE_AND_WRITING","WRITE_FINISHING_STATUS","WRITE_BACKPRESSURE_STATUS","WRITE_UPDATE_SYNC_STATUS","mapWritable","byteLengthWritable","drains","defaultByteLength","afterUpdateNextTick","updateWriteNT","_duplexState","autoBatch","updateNonPrimary","continueUpdate","afterFinal","afterDestroy","afterOpen","updateCallback","updateNextTick","mapReadable","byteLengthReadable","readAhead","pipeTo","afterRead","updateReadNT","isStreamx","afterDrain","TransformState","afterPipe","pipeToFinished","tickDrains","writes","newListener","predestroy","_predestroy","destroying","eagerOpen","_fromAsyncIterator","ite","isReadStreamx","isBackpressured","promiseResolve","promiseReject","isWritev","transformAfterFlush","pipelinePromise","errorHandle","fin","rd","wr","getStreamError","_normalizeEncoding","retried","nenc","utf16Text","utf16End","fillLast","utf8FillLast","base64Text","base64End","simpleWrite","simpleEnd","lastNeed","lastTotal","lastChar","utf8End","utf8Text","utf8CheckByte","utf8CheckIncomplete","utf8CheckExtraBytes","b4a","_offset","shiftFirst","_buffered","rem","Source","_parent","_stream","_update","_detach","_missing","overflow","Extract","_header","_longHeader","_locked","_finished","_pax","_paxGlobal","_gnuLongPath","_gnuLongLinkPath","_filenameEncoding","filenameEncoding","_allowUnknownFormat","allowUnknownFormat","_unlockBound","_unlock","_continueWrite","_consumeHeader","_applyLongHeaders","_createStream","linkpath","pax","_decodeLongHeader","decodeLongPath","decodePax","_consumeLongHeader","_consumeStream","entryStream","entryCallback","onentry","onnext","consumeCallback","ZEROS","SEVENS","ZERO_OFFSET","USTAR_MAGIC","USTAR_VER","GNU_MAGIC","GNU_VER","MASK","MAGIC_OFFSET","VERSION_OFFSET","decodeStr","encodePax","addLength","keyIndex","typeflag","encodeOct","encodeSize","toTypeflag","uname","gname","devmajor","devminor","cksum","decodeOct","toType","isUSTAR","isGNU","clamp","encodeSizeBin","parse256","tuple","digits","DMODE","FMODE","END_OF_TAR","Sink","written","_linkname","_isLinkname","_isVoid","_pack","_openCallback","_continueOpen","_continuePack","_finalized","_encode","_drain","_getError","Pack","_finalizing","modeToType","sink","_encodePax","paxHeader","newHeader","_doDrain","punycode","mappingTable","PROCESSING_OPTIONS","TRANSITIONAL","NONTRANSITIONAL","findStatus","regexAstralSymbols","countSymbols","mapChars","domain_name","useSTD3","processing_option","codePointAt","combiningMarksRegex","validateLabel","toUnicode","validation","toASCII","verifyDnsLength","domain","walk","deepEqual","notEqual","toS","circular","kx","ky","nodes","parents","immutable","alive","walker","node_","modifiers","before","isLeaf","notLeaf","notRoot","isLast","isFirst","__extends","__assign","__decorate","__param","__esDecorate","__runInitializers","__propKey","__setFunctionName","__metadata","__generator","__values","__read","__spread","__spreadArrays","__spreadArray","__makeTemplateObject","__classPrivateFieldGet","__classPrivateFieldSet","__classPrivateFieldIn","__addDisposableResource","__disposeResources","define","amd","createExporter","previous","exporter","extendStatics","decorators","paramIndex","decorator","descriptorIn","contextIn","initializers","extraInitializers","addInitializer","useValue","metadataKey","metadataValue","trys","ops","g","il","jl","settle","fulfill","cooked","receiver","_SuppressedError","SuppressedError","suppressed","fail","rec","net","tls","TunnelingAgent","createSocket","createSecureSocket","defaultMaxSockets","sockets","onFree","localAddress","toOptions","onSocket","removeSocket","addRequest","onCloseOrRemove","placeholder","connectOptions","connectReq","useChunkedEncodingByDefault","onUpgrade","onConnect","upgrade","hostHeader","getHeader","tlsOptions","servername","secureSocket","connect","overrides","keyLen","isValidErrorCode","httpStatusFromErrorCode","BadRouteError","InternalServerErrorWith","RequiredArgumentError","InvalidArgumentError","NotFoundError","Internal","withMeta","getMeta","addMeta","_originalCause","toJSON","fromObject","Unknown","validationMsg","InvalidArgument","Canceled","DeadlineExceeded","AlreadyExists","PermissionDenied","Unauthenticated","ResourceExhausted","FailedPrecondition","Aborted","OutOfRange","Unimplemented","Unavailable","DataLoss","Gateway","querystring_1","dotObject","request_1","server_1","routes","twirpRewrite","resp","rewrite","writeError","prepareTwirpBody","twirpUrl","originalUrl","responseBodyKey","reverseProxy","httpClientOption","NodeHttpRPC","jsonResponse","query_string","bodyKey","parseQueryString","getRequestData","jsonBody","matcher","isHook","chainHooks","hooks","serverHook","requestReceived","requestPrepared","responsePrepared","requestSent","responseSent","requestRouted","FetchRPC","wrapErrorResponseToTwirpError","url_1","responseChunks","requestData","errorResponse","typedRequest","parseTwirpPath","validateRequest","getContentType","mimeType","pathPrefix","pkgService","mimeContentType","reqWithRawBody","hooks_1","httpHandler","withPrefix","_httpHandler","middlewares","middleware","matchingPath","baseRegex","baseURI","createContext","invokeHook","mustBeTwirpError","headersSent","hookName","chainedHooks","twirpError","Entry","UnzipStream","unzipStream","unfinishedEntries","afterFlushWait","_processEntry","allDone","writeFileFn","pipedStream","_notifyAwaiter","MatcherStream","patternDesc","matchFn","requiredLength","requiredExtraSize","bytesSoFar","checkDataChunk","ignoreMatchZero","enoughData","matchIndex","packet","packetLen","firstIteration","ParserStream","transformOpts","drainAll","binary","states","STREAM_START","START","LOCAL_FILE_HEADER","LOCAL_FILE_HEADER_SUFFIX","FILE_DATA","FILE_DATA_END","DATA_DESCRIPTOR","CENTRAL_DIRECTORY_FILE_HEADER","CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX","CDIR64_END","CDIR64_END_DATA_SECTOR","CDIR64_LOCATOR","CENTRAL_DIRECTORY_END","CENTRAL_DIRECTORY_END_COMMENT","TRAILING_JUNK","FOUR_GIGS","SIG_LOCAL_FILE_HEADER","SIG_DATA_DESCRIPTOR","SIG_CDIR_RECORD","SIG_CDIR64_RECORD_END","SIG_CDIR64_LOCATOR_END","SIG_CDIR_RECORD_END","skippedBytes","outStreamInfo","processDataChunk","fileNameLength","extraFieldLength","fileCommentLength","centralDirectoryRecordSize","isStreamStart","toSkip","errMsg","sig","asString","_readFile","isUtf8","_decodeString","extraDataBuffer","_readExtraFields","uncompressedSize","extraFields","_prepareOutStream","_readCentralDirectoryEntry","isUnix","versionMadeBy","unixAttrs","isSymlink","externalFileAttributes","fileType","_readEndOfCentralDirectory64","_readEndOfCentralDirectory","fileSizeKnown","isVersionSupported","versionsNeededToExtract","zip64Mode","extraSize","searchPattern","matcherStream","matchedChunk","sizeSoFar","_readDataDescriptor","compressedSizeMatches","overflown","sliceOffset","isEncrypted","isCompressed","compressionMethod","inflater","_drainAllEntries","word16lu","word32lu","fieldType","extraId","z64vars","word64lu","timestampFields","readUInt8","atime","ctime","fieldVer","nameCrc32","pathBuffer","extraVer","uidSize","readUIntLE","gidSize","sizdev","symlinkName","cp437","_parseOrOutput","startDataLength","_v","_v2","_v3","_v4","_nil","_validate","_stringify","_interopRequireDefault","_crypto","md5","rng","rnds8Pool","poolPtr","randomFillSync","sha1","byteToHex","_rng","_nodeId","_clockseq","_lastMSecs","_lastNSecs","v1","clockseq","seedBytes","msecs","nsecs","dt","tl","tmh","_md","v3","DNS","stringToBytes","unescape","hashfunc","rnds","_sha","v5","_regex","validate","conversions","evenRound","round","createNumberConversion","bitLength","typeOpts","lowerBound","upperBound","moduloVal","moduloBitLength","moduloBound","enforceRange","treatNullAsEmptyString","U","usm","implementation","URLImpl","constructorArgs","parsedBase","basicURLParse","baseURL","serializeURL","serializeURLOrigin","stateOverride","cannotHaveAUsernamePasswordPort","setTheUsername","setThePassword","serializeHost","serializeInteger","cannotBeABaseURL","fragment","Impl","impl","implSymbol","setup","wrapperSymbol","interface","expose","Window","Worker","tr46","specialSchemes","ftp","gopher","wss","failure","ucs2","isASCIIDigit","isASCIIAlpha","isASCIIAlphanumeric","isASCIIHex","isSingleDot","isDoubleDot","isWindowsDriveLetterCodePoints","cp1","cp2","isWindowsDriveLetterString","isNormalizedWindowsDriveLetterString","containsForbiddenHostCodePoint","containsForbiddenHostCodePointExcludingPercent","isSpecialScheme","isSpecial","percentEncode","utf8PercentEncode","utf8PercentDecode","isC0ControlPercentEncode","extraPathPercentEncodeSet","isPathPercentEncode","extraUserinfoPercentEncodeSet","isUserinfoPercentEncode","percentEncodeChar","encodeSetPredicate","cStr","parseIPv4Number","R","parseIPv4","numbers","ipv4","serializeIPv4","address","parseIPv6","pieceIndex","numbersSeen","ipv4Piece","swaps","temp","serializeIPv6","seqResult","findLongestZeroSequence","ignore0","parseHost","isSpecialArg","parseOpaqueHost","asciiDomain","ipv4Host","maxIdx","maxLen","currStart","currLen","trimControlChars","trimTabAndNewline","shortenPath","isNormalizedWindowsDriveLetter","includesCredentials","URLStateMachine","encodingOverride","parseError","atFlag","arrFlag","passwordTokenSeenFlag","parseSchemeStart","parseScheme","parseNoScheme","parseSpecialRelativeOrAuthority","parsePathOrAuthority","parseRelative","parseRelativeSlash","parseSpecialAuthoritySlashes","parseSpecialAuthorityIgnoreSlashes","parseAuthority","encodedCodePoints","parseHostName","parsePort","fileOtherwiseCodePoints","parseFile","parseFileSlash","parseFileHost","parsePathStart","parseCannotBeABaseURLPath","parseQuery","parseFragment","excludeFragment","serializeOrigin","integer","mixin","wrapperForImpl","implForWrapper","stripBOM","escapeCDATA","requiresCDATA","wrapCDATA","hasProp","rootObj","rootElement","txt","ele","up","att","allowSurrogateChars","bom","processItem","processors","__super__","superClass","parseStringPromise","reset","assignOrPush","processAsync","xmlnskey","saxParser","errThrown","ontext","resultObject","EXPLICIT_CHARKEY","onopentag","processedKey","onclosetag","emptyStr","nodeName","objClone","old","xpath","charChild","oncdata","prefixMatch","firstCharLowerCase","stripPrefix","parseNumbers","parseBooleans","ValidationError","Disconnected","Preceding","Following","Contains","ContainedBy","ImplementationSpecific","Element","Attribute","Text","CData","EntityReference","EntityDeclaration","ProcessingInstruction","Comment","Document","DocType","DocumentFragment","NotationDeclaration","Declaration","Raw","AttributeDeclaration","ElementDeclaration","Dummy","None","OpenTag","InsideTag","CloseTag","NodeType","XMLAttribute","XMLNode","debugInfo","attValue","isId","schemaTypeInfo","filterOptions","isEqualNode","namespaceURI","XMLCData","XMLCharacterData","substringData","appendData","insertData","deleteData","replaceData","XMLComment","XMLDOMConfiguration","XMLDOMErrorHandler","XMLDOMStringList","clonedSelf","defaultParams","comments","entities","infoset","getParameter","canSetParameter","setParameter","XMLDOMImplementation","hasFeature","feature","createDocumentType","qualifiedName","publicId","systemId","createDocument","createHTMLDocument","getFeature","XMLDTDAttList","attributeName","attributeType","defaultValueType","dtdAttType","dtdAttDefault","dtdAttList","XMLDTDElement","dtdElementValue","dtdElement","XMLDTDEntity","pe","dtdEntityValue","internal","pubID","sysID","dtdPubID","dtdSysID","nData","dtdNData","dtdEntity","XMLDTDNotation","dtdNotation","XMLDeclaration","xmlVersion","xmlEncoding","xmlStandalone","declaration","XMLDocType","XMLNamedNodeMap","children","documentObject","attList","pEntity","notation","docType","ent","pent","XMLDocument","XMLStringWriter","XMLStringifier","documentURI","domConfig","rootObject","writerOptions","createElement","createDocumentFragment","createTextNode","createCDATASection","createProcessingInstruction","createAttribute","createEntityReference","getElementsByTagName","tagname","importNode","importedNode","deep","createElementNS","createAttributeNS","getElementsByTagNameNS","getElementById","elementId","adoptNode","normalizeDocument","renameNode","getElementsByClassName","classNames","createEvent","eventInterface","createRange","createNodeIterator","whatToShow","createTreeWalker","WriterState","XMLDocumentCB","XMLElement","XMLProcessingInstruction","XMLRaw","XMLText","onData","onEnd","onDataCallback","onEndCallback","currentNode","currentLevel","openTags","documentStarted","documentCompleted","createChildNode","attName","attribs","dummy","instruction","openCurrent","oldValidationFlag","noValidation","keepNullAttributes","insTarget","insValue","processingInstruction","rootNodeName","closeNode","openNode","isOpen","endline","nod","dat","com","ins","dtd","XMLDummy","attributeMap","clonedChild","removeAttribute","getAttribute","getAttributeNode","setAttributeNode","newAttr","removeAttributeNode","oldAttr","getAttributeNS","setAttributeNS","removeAttributeNS","getAttributeNodeNS","setAttributeNodeNS","hasAttribute","hasAttributeNS","setIdAttribute","setIdAttributeNS","setIdAttributeNode","idAttr","getNamedItem","setNamedItem","oldNode","removeNamedItem","getNamedItemNS","setNamedItemNS","removeNamedItemNS","DocumentPosition","XMLNodeList","parent1","childNodeList","textContent","setParent","childNode","lastChild","len1","ref3","ignoreDecorators","convertAttKey","separateArrayItems","keepNullNodes","convertTextKey","convertCDataKey","convertCommentKey","convertRawKey","convertPIKey","newChild","refChild","commentBefore","commentAfter","instructionBefore","instructionAfter","doc","importDocument","clonedRoot","importXMLBuilder","replaceChild","oldChild","removeChild","appendChild","hasChildNodes","cloneNode","isSupported","hasAttributes","compareDocumentPosition","isAncestor","isDescendant","isPreceding","isSameNode","lookupPrefix","isDefaultNamespace","lookupNamespaceURI","setUserData","getUserData","isDescendantChild","nodePos","thisPos","treePosition","isFollowing","foreachTreeNode","XMLStreamWriter","XMLWriterBase","isLastRootNode","writeChildNode","spaceBeforeSlash","childNodeCount","firstChildNode","prettySuppressed","allowEmpty","suppressPrettyCount","assertLegalName","assertLegalChar","textEscape","attEscape","ampregex","noDoubleEncoding","previousSibling","nextSibling","splitText","replaceWholeText","filteredOptions","ref4","ref5","ref6","dontPrettyTextNodes","dontprettytextnodes","spacebeforeslash","user","indentLevel","openAttribute","closeAttribute","stringWriter","streamWriter","writerState","ZipStream","_normalizeFileData","capturePolicy","find_process_1","autoCapture","policyFile","uploadName","shutdownIamLive","fileExists","uploadPolicy","pList","iamlive","fileName","policyName","retention","continueOnError","uploadResponse","eval","Glob","minimatch_1","path_scurry_1","pattern_js_1","walker_js_1","defaultPlatform","dotRelative","magicalBraces","maxDepth","realpath","scurry","fileURLToPath","Scurry","PathScurryWin32","PathScurryDarwin","PathScurryPosix","PathScurry","nocaseMagicOnly","mmo","optimizationLevel","mms","matchSet","GlobWalker","walkSync","GlobStream","streamSync","iterateSync","Ignore","relativeChildren","absoluteChildren","ignored","mmopts","ign","globString","isAbsolute","fullpaths","relatives","childrenIgnored","globIterate","globIterateSync","globSync","globStream","globStreamSync","glob_js_1","has_magic_js_1","glob_","minimatch_2","glob_js_2","has_magic_js_2","isPatternList","isGlobList","gl","patternList","globList","isDrive","isUNC","followGlobstar","p0","p3","prest","g0","g1","g2","g3","grest","isGlobstar","hasMore","checkFollowGlobstar","markFollowGlobstar","Processor","SubWalks","MatchRecord","HasWalkedCache","hasWalked","storeWalked","cached","ifDir","canReaddir","subs","hasWalkedCache","subwalks","processingSet","isENOENT","changed","rp","rrest","tp","subwalkTargets","filterEntries","testGlobstar","testRegExp","testString","ep","isNamed","GlobUtil","minipass_1","ignore_js_1","processor_js_1","makeIgnore","onResume","posix","matchCheck","realpathCached","needStat","isUnknown","matchCheckTest","matchCheckSync","realpathSync","matchFinish","matchEmit","fullpathPosix","rel","relativePosix","matchSync","walkCB","walkCB2","processor","childrenCached","readdirCached","calledReaddir","walkCB3","readdirCB","walkCBSync","walkCB2Sync","readdirSync","walkCB3Sync","Minipass","LRUCache","perf","performance","warned","PROCESS","emitWarning","AC","AS","_onabort","warnACPolyfill","printACPolyfillWarning","LRU_CACHE_IGNORE_AC_WARNING","shouldWarn","isPosInt","getUintArray","Uint16Array","Uint32Array","ZeroArray","Stack","static","HeapCls","constructing","disposeAfter","fetchMethod","ttl","ttlResolution","ttlAutopurge","updateAgeOnGet","updateAgeOnHas","allowStale","noDisposeOnSet","noUpdateTTL","maxEntrySize","sizeCalculation","noDeleteOnFetchRejection","noDeleteOnStaleGet","allowStaleOnFetchAbort","allowStaleOnFetchRejection","ignoreFetchAbort","calculatedSize","keyMap","keyList","valList","disposed","sizes","starts","ttls","hasDispose","hasFetchMethod","hasDisposeAfter","unsafeExposeInternals","isBackgroundFetch","backgroundFetch","moveToTail","indexes","rindexes","isStale","UintArray","initializeSizeTracking","initializeTTLTracking","getRemainingTTL","setItemTTL","updateItemAge","statusTTL","cachedNow","getNow","age","remainingTTL","removeItemSize","requireSize","addItemSize","evict","entrySize","totalCalculatedSize","_i","_s","_st","_k","isValidIndex","rentries","rkeys","rvalues","getOptions","__staleWhileFetching","thisp","rforEach","purgeStale","remain","dump","setOptions","maxEntrySizeExceeded","oldVal","__abortController","oldValue","hasOptions","peekOptions","fetchOpts","updateCache","ignoreAbort","fetchAborted","fetchAbortIgnored","fetchResolved","fetchFail","bf","fetchUpdated","eb","fetchRejected","allowStaleAborted","noDelete","returnedStale","__returned","pcall","fmp","fetchDispatched","fetchOptions","forceRefresh","stale","hasStale","staleVal","fetching","AST","brace_expressions_js_1","unescape_js_1","isExtglobType","startNoTraversal","startNoDot","justDots","starNoEmpty","uflag","parentIndex","negs","filledNegs","emptyExt","fillNegs","pp","copyIn","isStart","isEnd","parseAST","ast","inBrace","braceStart","braceNeg","fromGlob","toMMPattern","toRegExpSource","anyMagic","allowDot","noEmpty","parseGlob","aps","needNoTrav","needNoDot","partsToRegExp","bodyDotAllowed","_hasMagic","needUflag","consumed","magic","parseClass","posixClasses","braceEscape","regexpEscape","rangesToString","ranges","sawStart","endPos","rangeStart","WHILE","cls","unip","neg","sranges","snegs","comb","brace_expansion_1","assert_valid_pattern_js_1","ast_js_1","escape_js_1","starDotExtRE","starDotExtTest","starDotExtTestDot","starDotExtTestNocase","starDotExtTestNocaseDot","starDotStarRE","starDotStarTest","starDotStarTestDot","dotStarRE","dotStarTest","starRE","starTest","starTestDot","qmarksRE","qmarksTestNocase","$0","qmarksTestNoExt","qmarksTestNocaseDot","qmarksTestNoExtDot","qmarksTestDot","qmarksTest","__MINIMATCH_TESTING_PLATFORM__","globMagic","preserveMultipleSlashes","windowsNoMagicRoot","rawGlobParts","preprocess","ss","firstPhasePreProcess","secondPhasePreProcess","levelOneOptimize","adjascentGlobstarOptimize","gs","levelTwoFileOptimize","didSomething","dd","gss","needDot","splin","matched","partsMatch","emptyGSMatch","which","fileDrive","fileUNC","patternDrive","patternUNC","fdi","pdi","fastTest","ff","ast_js_2","escape_js_2","unescape_js_2","events_1","stream_1","string_decoder_1","EOF","MAYBE_EMIT_END","EMITTED_END","EMITTING_END","EMITTED_ERROR","CLOSED","READ","FLUSH","FLUSHCHUNK","ENCODING","DECODER","FLOWING","PAUSED","RESUME","PIPES","BUFFERLENGTH","BUFFERPUSH","BUFFERSHIFT","OBJECTMODE","EMITDATA","EMITEND","EMITEND2","ASYNC","ABORT","SIGNAL","DATALISTENERS","DISCARDED","nodefer","isEndish","isArrayBufferLike","Pipe","proxyErrors","_er","PipeProxyErrors","isObjectModeOptions","isEncodingOptions","debugExposeBuffer","debugExposePipes","_enc","_om","noDrain","emittedEnd","collect","dataLength","onerr","ondestroy","wc","Path","PathScurryBase","PathPosix","PathWin32","PathBase","ChildrenCache","ResolveCache","lru_cache_1","actualFS","native","defaultFS","readlink","fsFromOption","fsOption","uncDriveRegexp","uncToDrive","rootPath","eitherSep","UNKNOWN","IFIFO","IFCHR","IFDIR","IFBLK","IFREG","IFLNK","IFSOCK","IFMT","IFMT_UNKNOWN","READDIR_CALLED","LSTAT_CALLED","ENOTDIR","ENOENT","ENOREADLINK","ENOREALPATH","ENOCHILD","TYPEMASK","entToType","isCharacterDevice","isBlockDevice","isSocket","isFIFO","normalizeCache","normalizeNocaseCache","normalizeNocase","setAsCwd","roots","dev","nlink","rdev","blksize","ino","atimeMs","mtimeMs","ctimeMs","birthtimeMs","birthtime","linkTarget","childrenCache","getRootString","dirParts","splitSep","getRoot","resolveParts","provisional","pathPart","pchild","pv","fp","pfpp","fpp","getType","lstatCached","readlinkCached","canReadlink","ifmt","readlinkFail","readdirSuccess","markENOENT","markChildrenENOENT","markENOREALPATH","markENOTDIR","readdirFail","lstatFail","ter","readdirAddChild","readdirMaybePromoteChild","readdirAddNewChild","readdirPromoteChild","applyStat","onReaddirCB","readdirCBInFlight","callOnReaddirCB","cbs","allowZalgo","asyncReaddirInFlight","shouldWalk","dirs","walkFilter","oldCwd","sameRoot","_rootPath","resolveCache","resolvePosixCache","pathImpl","childrenCacheSize","cwdPath","parseRootPath","newRoot","joinSep","sawFirst","resolvePosix","onReaddir","didRealpaths","_dir","getDefaultExportFromCjs","CRC_TABLE","ensureBuffer","bufferizeInt","_crc32","signed","bufferCrc32","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","nmd","__dirname"],"sources":[".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/artifact.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/generated/google/protobuf/timestamp.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/generated/google/protobuf/wrappers.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/generated/index.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/generated/results/api/v1/artifact.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/generated/results/api/v1/artifact.twirp.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/client.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/delete/delete-artifact.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/download/download-artifact.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/find/get-artifact.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/find/list-artifacts.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/find/retry-options.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/shared/artifact-twirp-client.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/shared/config.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/shared/errors.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/shared/interfaces.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/shared/user-agent.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/shared/util.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/upload/blob-upload.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/upload/path-and-artifact-name-validation.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/upload/retention.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/upload/upload-artifact.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/upload/upload-zip-specification.js",".././node_modules/.pnpm/@actions+artifact@2.1.5/node_modules/@actions/artifact/lib/internal/upload/zip.js",".././node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/command.js",".././node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/core.js",".././node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/file-command.js",".././node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/oidc-utils.js",".././node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/path-utils.js",".././node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/summary.js",".././node_modules/.pnpm/@actions+core@1.10.1/node_modules/@actions/core/lib/utils.js",".././node_modules/.pnpm/@actions+github@5.1.1/node_modules/@actions/github/lib/context.js",".././node_modules/.pnpm/@actions+github@5.1.1/node_modules/@actions/github/lib/github.js",".././node_modules/.pnpm/@actions+github@5.1.1/node_modules/@actions/github/lib/internal/utils.js",".././node_modules/.pnpm/@actions+github@5.1.1/node_modules/@actions/github/lib/utils.js",".././node_modules/.pnpm/@actions+http-client@2.1.1/node_modules/@actions/http-client/lib/auth.js",".././node_modules/.pnpm/@actions+http-client@2.1.1/node_modules/@actions/http-client/lib/index.js",".././node_modules/.pnpm/@actions+http-client@2.1.1/node_modules/@actions/http-client/lib/proxy.js",".././node_modules/.pnpm/@azure+abort-controller@1.1.0/node_modules/@azure/abort-controller/dist/index.js",".././node_modules/.pnpm/@azure+core-auth@1.5.0/node_modules/@azure/core-auth/dist/index.js",".././node_modules/.pnpm/@azure+core-http@3.0.4/node_modules/@azure/core-http/dist/index.js",".././node_modules/.pnpm/@azure+core-lro@2.5.4/node_modules/@azure/core-lro/dist/index.js",".././node_modules/.pnpm/@azure+core-paging@1.5.0/node_modules/@azure/core-paging/dist/index.js",".././node_modules/.pnpm/@azure+core-tracing@1.0.0-preview.13/node_modules/@azure/core-tracing/dist/index.js",".././node_modules/.pnpm/@azure+core-util@1.6.1/node_modules/@azure/core-util/dist/index.js",".././node_modules/.pnpm/@azure+logger@1.0.4/node_modules/@azure/logger/dist/index.js",".././node_modules/.pnpm/@azure+storage-blob@12.17.0/node_modules/@azure/storage-blob/dist/index.js",".././node_modules/.pnpm/@octokit+auth-token@2.5.0/node_modules/@octokit/auth-token/dist-node/index.js",".././node_modules/.pnpm/@octokit+core@3.6.0/node_modules/@octokit/core/dist-node/index.js",".././node_modules/.pnpm/@octokit+endpoint@6.0.12/node_modules/@octokit/endpoint/dist-node/index.js",".././node_modules/.pnpm/@octokit+graphql@4.8.0/node_modules/@octokit/graphql/dist-node/index.js",".././node_modules/.pnpm/@octokit+plugin-paginate-rest@2.21.3_@octokit+core@3.6.0/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js",".././node_modules/.pnpm/@octokit+plugin-request-log@1.0.4_@octokit+core@3.6.0/node_modules/@octokit/plugin-request-log/dist-node/index.js",".././node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@5.16.2_@octokit+core@3.6.0/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js",".././node_modules/.pnpm/@octokit+plugin-retry@3.0.9/node_modules/@octokit/plugin-retry/dist-node/index.js",".././node_modules/.pnpm/@octokit+request-error@2.1.0/node_modules/@octokit/request-error/dist-node/index.js",".././node_modules/.pnpm/@octokit+request@5.6.3/node_modules/@octokit/request/dist-node/index.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/context.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/diag.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/metrics.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/propagation.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/trace.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/utils.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context-api.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context/context.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag-api.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/types.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/index.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/internal/global-utils.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/internal/semver.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics-api.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/Metric.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/index.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/node/index.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation-api.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace-api.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/context-utils.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/status.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js",".././node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/version.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/deferred.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/index.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/reflection-info.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-error.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-interceptor.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-options.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-output-stream.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-call-context.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/service-type.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js",".././node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.9.3/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/assert.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/base64.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/binary-format-contract.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/binary-reader.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/binary-writer.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/enum-object.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/goog-varint.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/index.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/json-format-contract.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/json-typings.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/lower-camel-case.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/message-type-contract.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/message-type.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/oneof.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/pb-long.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/protobufjs-utf8.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-reader.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-writer.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-contains-message-type.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-create.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-equals.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-info.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-reader.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-writer.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-long-convert.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-merge-partial.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-scalar-default.js",".././node_modules/.pnpm/@protobuf-ts+runtime@2.9.3/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-type-check.js",".././node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js",".././node_modules/.pnpm/archiver-utils@5.0.2/node_modules/archiver-utils/file.js",".././node_modules/.pnpm/archiver-utils@5.0.2/node_modules/archiver-utils/index.js",".././node_modules/.pnpm/archiver@7.0.1/node_modules/archiver/index.js",".././node_modules/.pnpm/archiver@7.0.1/node_modules/archiver/lib/core.js",".././node_modules/.pnpm/archiver@7.0.1/node_modules/archiver/lib/error.js",".././node_modules/.pnpm/archiver@7.0.1/node_modules/archiver/lib/plugins/json.js",".././node_modules/.pnpm/archiver@7.0.1/node_modules/archiver/lib/plugins/tar.js",".././node_modules/.pnpm/archiver@7.0.1/node_modules/archiver/lib/plugins/zip.js",".././node_modules/.pnpm/async@3.2.5/node_modules/async/dist/async.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js",".././node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js",".././node_modules/.pnpm/b4a@1.6.6/node_modules/b4a/index.js",".././node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js",".././node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/index.js",".././node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/add.js",".././node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/register.js",".././node_modules/.pnpm/before-after-hook@2.2.3/node_modules/before-after-hook/lib/remove.js",".././node_modules/.pnpm/binary@0.3.0/node_modules/binary/index.js",".././node_modules/.pnpm/binary@0.3.0/node_modules/binary/lib/vars.js",".././node_modules/.pnpm/bottleneck@2.19.5/node_modules/bottleneck/light.js",".././node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js",".././node_modules/.pnpm/buffers@0.1.1/node_modules/buffers/index.js",".././node_modules/.pnpm/chainsaw@0.1.0/node_modules/chainsaw/index.js",".././node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/archive-entry.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/archive-output-stream.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/zip/constants.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/zip/unix-stat.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/zip/util.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/compress-commons.js",".././node_modules/.pnpm/compress-commons@6.0.2/node_modules/compress-commons/lib/util/index.js",".././node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js",".././node_modules/.pnpm/crc-32@1.2.2/node_modules/crc-32/crc32.js",".././node_modules/.pnpm/crc32-stream@6.0.0/node_modules/crc32-stream/lib/crc32-stream.js",".././node_modules/.pnpm/crc32-stream@6.0.0/node_modules/crc32-stream/lib/deflate-crc32-stream.js",".././node_modules/.pnpm/crc32-stream@6.0.0/node_modules/crc32-stream/lib/index.js",".././node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js",".././node_modules/.pnpm/deprecation@2.3.1/node_modules/deprecation/dist-node/index.js",".././node_modules/.pnpm/dot-object@2.1.4/node_modules/dot-object/index.js",".././node_modules/.pnpm/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js",".././node_modules/.pnpm/fast-fifo@1.3.2/node_modules/fast-fifo/fixed-size.js",".././node_modules/.pnpm/fast-fifo@1.3.2/node_modules/fast-fifo/index.js",".././node_modules/.pnpm/find-process@1.4.7/node_modules/find-process/index.js",".././node_modules/.pnpm/find-process@1.4.7/node_modules/find-process/lib/find.js",".././node_modules/.pnpm/find-process@1.4.7/node_modules/find-process/lib/find_pid.js",".././node_modules/.pnpm/find-process@1.4.7/node_modules/find-process/lib/find_process.js",".././node_modules/.pnpm/find-process@1.4.7/node_modules/find-process/lib/utils.js",".././node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/form_data.js",".././node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/populate.js",".././node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js",".././node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js",".././node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js",".././node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js",".././node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js",".././node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js",".././node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js",".././node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js",".././node_modules/.pnpm/isarray@1.0.0/node_modules/isarray/index.js",".././node_modules/.pnpm/jwt-decode@3.1.2/node_modules/jwt-decode/build/jwt-decode.cjs.js",".././node_modules/.pnpm/lazystream@1.0.1/node_modules/lazystream/lib/lazystream.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNaN.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_strictIndexOf.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/noop.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js",".././node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/union.js",".././node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js",".././node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.js",".././node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js",".././node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js",".././node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js",".././node_modules/.pnpm/node-fetch@2.7.0/node_modules/node-fetch/lib/index.js",".././node_modules/.pnpm/normalize-path@3.0.0/node_modules/normalize-path/index.js",".././node_modules/.pnpm/once@1.4.0/node_modules/once/once.js",".././node_modules/.pnpm/process-nextick-args@2.0.1/node_modules/process-nextick-args/index.js",".././node_modules/.pnpm/process@0.11.10/node_modules/process/index.js",".././node_modules/.pnpm/queue-tick@1.0.1/node_modules/queue-tick/process-next-tick.js",".././node_modules/.pnpm/queue-tick@1.0.1/node_modules/queue-tick/queue-microtask.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_duplex.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_passthrough.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_readable.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_transform.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_writable.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/BufferList.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/destroy.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/stream.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/passthrough.js",".././node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/readable.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/compose.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/destroy.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/duplex.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/duplexify.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/from.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/legacy.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/operators.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/passthrough.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/pipeline.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/readable.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/state.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/transform.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/utils.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/streams/writable.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/internal/validators.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/ours/errors.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/ours/index.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/ours/primordials.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/ours/util.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/stream.js",".././node_modules/.pnpm/readable-stream@4.5.2/node_modules/readable-stream/lib/stream/promises.js",".././node_modules/.pnpm/readdir-glob@1.1.3/node_modules/readdir-glob/index.js",".././node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js",".././node_modules/.pnpm/sax@1.3.0/node_modules/sax/lib/sax.js",".././node_modules/.pnpm/streamx@2.16.1/node_modules/streamx/index.js",".././node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js",".././node_modules/.pnpm/tar-stream@3.1.7/node_modules/tar-stream/constants.js",".././node_modules/.pnpm/tar-stream@3.1.7/node_modules/tar-stream/extract.js",".././node_modules/.pnpm/tar-stream@3.1.7/node_modules/tar-stream/headers.js",".././node_modules/.pnpm/tar-stream@3.1.7/node_modules/tar-stream/index.js",".././node_modules/.pnpm/tar-stream@3.1.7/node_modules/tar-stream/pack.js",".././node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.js",".././node_modules/.pnpm/traverse@0.3.9/node_modules/traverse/index.js",".././node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.js",".././node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js",".././node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/context.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/errors.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/gateway.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/hooks.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/http.client.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/index.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/interceptors.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/request.js",".././node_modules/.pnpm/twirp-ts@2.5.0_@protobuf-ts+plugin@2.9.3/node_modules/twirp-ts/build/twirp/server.js",".././node_modules/.pnpm/universal-user-agent@6.0.1/node_modules/universal-user-agent/dist-node/index.js",".././node_modules/.pnpm/unzip-stream@0.3.1/node_modules/unzip-stream/lib/entry.js",".././node_modules/.pnpm/unzip-stream@0.3.1/node_modules/unzip-stream/lib/extract.js",".././node_modules/.pnpm/unzip-stream@0.3.1/node_modules/unzip-stream/lib/matcher-stream.js",".././node_modules/.pnpm/unzip-stream@0.3.1/node_modules/unzip-stream/lib/parser-stream.js",".././node_modules/.pnpm/unzip-stream@0.3.1/node_modules/unzip-stream/lib/unzip-stream.js",".././node_modules/.pnpm/unzip-stream@0.3.1/node_modules/unzip-stream/unzip.js",".././node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/index.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/md5.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/nil.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/parse.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/regex.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/rng.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/sha1.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/stringify.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v1.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v3.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v35.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v4.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/v5.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/validate.js",".././node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/version.js",".././node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js",".././node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.js",".././node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js",".././node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.js",".././node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js",".././node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.js",".././node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js",".././node_modules/.pnpm/xml2js@0.5.0/node_modules/xml2js/lib/bom.js",".././node_modules/.pnpm/xml2js@0.5.0/node_modules/xml2js/lib/builder.js",".././node_modules/.pnpm/xml2js@0.5.0/node_modules/xml2js/lib/defaults.js",".././node_modules/.pnpm/xml2js@0.5.0/node_modules/xml2js/lib/parser.js",".././node_modules/.pnpm/xml2js@0.5.0/node_modules/xml2js/lib/processors.js",".././node_modules/.pnpm/xml2js@0.5.0/node_modules/xml2js/lib/xml2js.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/DocumentPosition.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/NodeType.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/Utility.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/WriterState.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLAttribute.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCData.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCharacterData.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLComment.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDElement.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDeclaration.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocType.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocument.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDummy.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLElement.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNode.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNodeList.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLRaw.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringWriter.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringifier.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLText.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLWriterBase.js",".././node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/index.js",".././node_modules/.pnpm/zip-stream@6.0.1/node_modules/zip-stream/index.js",".././lib/upload-iam-policy.ts",".././node_modules/.pnpm/@vercel+ncc@0.38.1/node_modules/@vercel/ncc/dist/ncc/@@notfound.js","../external node-commonjs \"assert\"","../external node-commonjs \"buffer\"","../external node-commonjs \"child_process\"","../external node-commonjs \"constants\"","../external node-commonjs \"crypto\"","../external node-commonjs \"events\"","../external node-commonjs \"fs\"","../external node-commonjs \"fs/promises\"","../external node-commonjs \"http\"","../external node-commonjs \"https\"","../external node-commonjs \"net\"","../external node-commonjs \"os\"","../external node-commonjs \"path\"","../external node-commonjs \"punycode\"","../external node-commonjs \"querystring\"","../external node-commonjs \"stream\"","../external node-commonjs \"string_decoder\"","../external node-commonjs \"timers\"","../external node-commonjs \"tls\"","../external node-commonjs \"url\"","../external node-commonjs \"util\"","../external node-commonjs \"zlib\"",".././node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/commonjs/glob.js",".././node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/commonjs/has-magic.js",".././node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/commonjs/ignore.js",".././node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/commonjs/index.js",".././node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/commonjs/pattern.js",".././node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/commonjs/processor.js",".././node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/commonjs/walker.js",".././node_modules/.pnpm/lru-cache@10.2.0/node_modules/lru-cache/dist/commonjs/index.js",".././node_modules/.pnpm/minimatch@9.0.4/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js",".././node_modules/.pnpm/minimatch@9.0.4/node_modules/minimatch/dist/commonjs/ast.js",".././node_modules/.pnpm/minimatch@9.0.4/node_modules/minimatch/dist/commonjs/brace-expressions.js",".././node_modules/.pnpm/minimatch@9.0.4/node_modules/minimatch/dist/commonjs/escape.js",".././node_modules/.pnpm/minimatch@9.0.4/node_modules/minimatch/dist/commonjs/index.js",".././node_modules/.pnpm/minimatch@9.0.4/node_modules/minimatch/dist/commonjs/unescape.js",".././node_modules/.pnpm/minipass@7.0.4/node_modules/minipass/dist/commonjs/index.js",".././node_modules/.pnpm/path-scurry@1.10.2/node_modules/path-scurry/dist/commonjs/index.js",".././node_modules/.pnpm/buffer-crc32@1.0.0/node_modules/buffer-crc32/dist/index.cjs","../webpack/bootstrap","../webpack/runtime/node module decorator","../webpack/runtime/compat",".././capture-policy.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst client_1 = require(\"./internal/client\");\n__exportStar(require(\"./internal/shared/interfaces\"), exports);\n__exportStar(require(\"./internal/shared/errors\"), exports);\n__exportStar(require(\"./internal/client\"), exports);\nconst client = new client_1.DefaultArtifactClient();\nexports.default = client;\n//# sourceMappingURL=artifact.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Timestamp = void 0;\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\nconst runtime_2 = require(\"@protobuf-ts/runtime\");\nconst runtime_3 = require(\"@protobuf-ts/runtime\");\nconst runtime_4 = require(\"@protobuf-ts/runtime\");\nconst runtime_5 = require(\"@protobuf-ts/runtime\");\nconst runtime_6 = require(\"@protobuf-ts/runtime\");\nconst runtime_7 = require(\"@protobuf-ts/runtime\");\n// @generated message type with reflection information, may provide speed optimized methods\nclass Timestamp$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.Timestamp\", [\n { no: 1, name: \"seconds\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/ },\n { no: 2, name: \"nanos\", kind: \"scalar\", T: 5 /*ScalarType.INT32*/ }\n ]);\n }\n /**\n * Creates a new `Timestamp` for the current time.\n */\n now() {\n const msg = this.create();\n const ms = Date.now();\n msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();\n msg.nanos = (ms % 1000) * 1000000;\n return msg;\n }\n /**\n * Converts a `Timestamp` to a JavaScript Date.\n */\n toDate(message) {\n return new Date(runtime_6.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));\n }\n /**\n * Converts a JavaScript Date to a `Timestamp`.\n */\n fromDate(date) {\n const msg = this.create();\n const ms = date.getTime();\n msg.seconds = runtime_6.PbLong.from(Math.floor(ms / 1000)).toString();\n msg.nanos = (ms % 1000) * 1000000;\n return msg;\n }\n /**\n * In JSON format, the `Timestamp` type is encoded as a string\n * in the RFC 3339 format.\n */\n internalJsonWrite(message, options) {\n let ms = runtime_6.PbLong.from(message.seconds).toNumber() * 1000;\n if (ms < Date.parse(\"0001-01-01T00:00:00Z\") || ms > Date.parse(\"9999-12-31T23:59:59Z\"))\n throw new Error(\"Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.\");\n if (message.nanos < 0)\n throw new Error(\"Unable to encode invalid Timestamp to JSON. Nanos must not be negative.\");\n let z = \"Z\";\n if (message.nanos > 0) {\n let nanosStr = (message.nanos + 1000000000).toString().substring(1);\n if (nanosStr.substring(3) === \"000000\")\n z = \".\" + nanosStr.substring(0, 3) + \"Z\";\n else if (nanosStr.substring(6) === \"000\")\n z = \".\" + nanosStr.substring(0, 6) + \"Z\";\n else\n z = \".\" + nanosStr + \"Z\";\n }\n return new Date(ms).toISOString().replace(\".000Z\", z);\n }\n /**\n * In JSON format, the `Timestamp` type is encoded as a string\n * in the RFC 3339 format.\n */\n internalJsonRead(json, options, target) {\n if (typeof json !== \"string\")\n throw new Error(\"Unable to parse Timestamp from JSON \" + (0, runtime_5.typeofJsonValue)(json) + \".\");\n let matches = json.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]))$/);\n if (!matches)\n throw new Error(\"Unable to parse Timestamp from JSON. Invalid format.\");\n let ms = Date.parse(matches[1] + \"-\" + matches[2] + \"-\" + matches[3] + \"T\" + matches[4] + \":\" + matches[5] + \":\" + matches[6] + (matches[8] ? matches[8] : \"Z\"));\n if (Number.isNaN(ms))\n throw new Error(\"Unable to parse Timestamp from JSON. Invalid value.\");\n if (ms < Date.parse(\"0001-01-01T00:00:00Z\") || ms > Date.parse(\"9999-12-31T23:59:59Z\"))\n 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.\");\n if (!target)\n target = this.create();\n target.seconds = runtime_6.PbLong.from(ms / 1000).toString();\n target.nanos = 0;\n if (matches[7])\n target.nanos = (parseInt(\"1\" + matches[7] + \"0\".repeat(9 - matches[7].length)) - 1000000000);\n return target;\n }\n create(value) {\n const message = { seconds: \"0\", nanos: 0 };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* int64 seconds */ 1:\n message.seconds = reader.int64().toString();\n break;\n case /* int32 nanos */ 2:\n message.nanos = reader.int32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* int64 seconds = 1; */\n if (message.seconds !== \"0\")\n writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);\n /* int32 nanos = 2; */\n if (message.nanos !== 0)\n writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Timestamp\n */\nexports.Timestamp = new Timestamp$Type();\n//# sourceMappingURL=timestamp.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = void 0;\n// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies\n// @generated from protobuf file \"google/protobuf/wrappers.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n//\n// Wrappers for primitive (non-message) types. These types are useful\n// for embedding primitives in the `google.protobuf.Any` type and for places\n// where we need to distinguish between the absence of a primitive\n// typed field and its default value.\n//\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\nconst runtime_2 = require(\"@protobuf-ts/runtime\");\nconst runtime_3 = require(\"@protobuf-ts/runtime\");\nconst runtime_4 = require(\"@protobuf-ts/runtime\");\nconst runtime_5 = require(\"@protobuf-ts/runtime\");\nconst runtime_6 = require(\"@protobuf-ts/runtime\");\nconst runtime_7 = require(\"@protobuf-ts/runtime\");\n// @generated message type with reflection information, may provide speed optimized methods\nclass DoubleValue$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.DoubleValue\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 1 /*ScalarType.DOUBLE*/ }\n ]);\n }\n /**\n * Encode `DoubleValue` to JSON number.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.scalar(2, message.value, \"value\", false, true);\n }\n /**\n * Decode `DoubleValue` from JSON number.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, 1, undefined, \"value\");\n return target;\n }\n create(value) {\n const message = { value: 0 };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* double value */ 1:\n message.value = reader.double();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* double value = 1; */\n if (message.value !== 0)\n writer.tag(1, runtime_3.WireType.Bit64).double(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.DoubleValue\n */\nexports.DoubleValue = new DoubleValue$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FloatValue$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.FloatValue\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 2 /*ScalarType.FLOAT*/ }\n ]);\n }\n /**\n * Encode `FloatValue` to JSON number.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.scalar(1, message.value, \"value\", false, true);\n }\n /**\n * Decode `FloatValue` from JSON number.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, 1, undefined, \"value\");\n return target;\n }\n create(value) {\n const message = { value: 0 };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* float value */ 1:\n message.value = reader.float();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* float value = 1; */\n if (message.value !== 0)\n writer.tag(1, runtime_3.WireType.Bit32).float(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.FloatValue\n */\nexports.FloatValue = new FloatValue$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Int64Value$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.Int64Value\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/ }\n ]);\n }\n /**\n * Encode `Int64Value` to JSON string.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.scalar(runtime_1.ScalarType.INT64, message.value, \"value\", false, true);\n }\n /**\n * Decode `Int64Value` from JSON string.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, runtime_1.ScalarType.INT64, runtime_2.LongType.STRING, \"value\");\n return target;\n }\n create(value) {\n const message = { value: \"0\" };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* int64 value */ 1:\n message.value = reader.int64().toString();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* int64 value = 1; */\n if (message.value !== \"0\")\n writer.tag(1, runtime_3.WireType.Varint).int64(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Int64Value\n */\nexports.Int64Value = new Int64Value$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass UInt64Value$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.UInt64Value\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/ }\n ]);\n }\n /**\n * Encode `UInt64Value` to JSON string.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.scalar(runtime_1.ScalarType.UINT64, message.value, \"value\", false, true);\n }\n /**\n * Decode `UInt64Value` from JSON string.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, runtime_1.ScalarType.UINT64, runtime_2.LongType.STRING, \"value\");\n return target;\n }\n create(value) {\n const message = { value: \"0\" };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 value */ 1:\n message.value = reader.uint64().toString();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* uint64 value = 1; */\n if (message.value !== \"0\")\n writer.tag(1, runtime_3.WireType.Varint).uint64(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.UInt64Value\n */\nexports.UInt64Value = new UInt64Value$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Int32Value$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.Int32Value\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 5 /*ScalarType.INT32*/ }\n ]);\n }\n /**\n * Encode `Int32Value` to JSON string.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.scalar(5, message.value, \"value\", false, true);\n }\n /**\n * Decode `Int32Value` from JSON string.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, 5, undefined, \"value\");\n return target;\n }\n create(value) {\n const message = { value: 0 };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* int32 value */ 1:\n message.value = reader.int32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* int32 value = 1; */\n if (message.value !== 0)\n writer.tag(1, runtime_3.WireType.Varint).int32(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Int32Value\n */\nexports.Int32Value = new Int32Value$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass UInt32Value$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.UInt32Value\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n /**\n * Encode `UInt32Value` to JSON string.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.scalar(13, message.value, \"value\", false, true);\n }\n /**\n * Decode `UInt32Value` from JSON string.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, 13, undefined, \"value\");\n return target;\n }\n create(value) {\n const message = { value: 0 };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint32 value */ 1:\n message.value = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* uint32 value = 1; */\n if (message.value !== 0)\n writer.tag(1, runtime_3.WireType.Varint).uint32(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.UInt32Value\n */\nexports.UInt32Value = new UInt32Value$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass BoolValue$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.BoolValue\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ }\n ]);\n }\n /**\n * Encode `BoolValue` to JSON bool.\n */\n internalJsonWrite(message, options) {\n return message.value;\n }\n /**\n * Decode `BoolValue` from JSON bool.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, 8, undefined, \"value\");\n return target;\n }\n create(value) {\n const message = { value: false };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bool value */ 1:\n message.value = reader.bool();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* bool value = 1; */\n if (message.value !== false)\n writer.tag(1, runtime_3.WireType.Varint).bool(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.BoolValue\n */\nexports.BoolValue = new BoolValue$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass StringValue$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.StringValue\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n /**\n * Encode `StringValue` to JSON string.\n */\n internalJsonWrite(message, options) {\n return message.value;\n }\n /**\n * Decode `StringValue` from JSON string.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, 9, undefined, \"value\");\n return target;\n }\n create(value) {\n const message = { value: \"\" };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string value */ 1:\n message.value = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string value = 1; */\n if (message.value !== \"\")\n writer.tag(1, runtime_3.WireType.LengthDelimited).string(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.StringValue\n */\nexports.StringValue = new StringValue$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass BytesValue$Type extends runtime_7.MessageType {\n constructor() {\n super(\"google.protobuf.BytesValue\", [\n { no: 1, name: \"value\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n /**\n * Encode `BytesValue` to JSON string.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.scalar(12, message.value, \"value\", false, true);\n }\n /**\n * Decode `BytesValue` from JSON string.\n */\n internalJsonRead(json, options, target) {\n if (!target)\n target = this.create();\n target.value = this.refJsonReader.scalar(json, 12, undefined, \"value\");\n return target;\n }\n create(value) {\n const message = { value: new Uint8Array(0) };\n globalThis.Object.defineProperty(message, runtime_6.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_5.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes value */ 1:\n message.value = reader.bytes();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_4.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* bytes value = 1; */\n if (message.value.length)\n writer.tag(1, runtime_3.WireType.LengthDelimited).bytes(message.value);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_4.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.BytesValue\n */\nexports.BytesValue = new BytesValue$Type();\n//# sourceMappingURL=wrappers.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./google/protobuf/timestamp\"), exports);\n__exportStar(require(\"./google/protobuf/wrappers\"), exports);\n__exportStar(require(\"./results/api/v1/artifact\"), exports);\n__exportStar(require(\"./results/api/v1/artifact.twirp\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ArtifactService = exports.DeleteArtifactResponse = exports.DeleteArtifactRequest = exports.GetSignedArtifactURLResponse = exports.GetSignedArtifactURLRequest = exports.ListArtifactsResponse_MonolithArtifact = exports.ListArtifactsResponse = exports.ListArtifactsRequest = exports.FinalizeArtifactResponse = exports.FinalizeArtifactRequest = exports.CreateArtifactResponse = exports.CreateArtifactRequest = void 0;\n// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies\n// @generated from protobuf file \"results/api/v1/artifact.proto\" (package \"github.actions.results.api.v1\", syntax proto3)\n// tslint:disable\nconst runtime_rpc_1 = require(\"@protobuf-ts/runtime-rpc\");\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\nconst runtime_2 = require(\"@protobuf-ts/runtime\");\nconst runtime_3 = require(\"@protobuf-ts/runtime\");\nconst runtime_4 = require(\"@protobuf-ts/runtime\");\nconst runtime_5 = require(\"@protobuf-ts/runtime\");\nconst wrappers_1 = require(\"../../../google/protobuf/wrappers\");\nconst wrappers_2 = require(\"../../../google/protobuf/wrappers\");\nconst timestamp_1 = require(\"../../../google/protobuf/timestamp\");\n// @generated message type with reflection information, may provide speed optimized methods\nclass CreateArtifactRequest$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.CreateArtifactRequest\", [\n { no: 1, name: \"workflow_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"workflow_job_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"expires_at\", kind: \"message\", T: () => timestamp_1.Timestamp },\n { no: 5, name: \"version\", kind: \"scalar\", T: 5 /*ScalarType.INT32*/ }\n ]);\n }\n create(value) {\n const message = { workflowRunBackendId: \"\", workflowJobRunBackendId: \"\", name: \"\", version: 0 };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string workflow_run_backend_id */ 1:\n message.workflowRunBackendId = reader.string();\n break;\n case /* string workflow_job_run_backend_id */ 2:\n message.workflowJobRunBackendId = reader.string();\n break;\n case /* string name */ 3:\n message.name = reader.string();\n break;\n case /* google.protobuf.Timestamp expires_at */ 4:\n message.expiresAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);\n break;\n case /* int32 version */ 5:\n message.version = reader.int32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string workflow_run_backend_id = 1; */\n if (message.workflowRunBackendId !== \"\")\n writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.workflowRunBackendId);\n /* string workflow_job_run_backend_id = 2; */\n if (message.workflowJobRunBackendId !== \"\")\n writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.workflowJobRunBackendId);\n /* string name = 3; */\n if (message.name !== \"\")\n writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.name);\n /* google.protobuf.Timestamp expires_at = 4; */\n if (message.expiresAt)\n timestamp_1.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();\n /* int32 version = 5; */\n if (message.version !== 0)\n writer.tag(5, runtime_1.WireType.Varint).int32(message.version);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.CreateArtifactRequest\n */\nexports.CreateArtifactRequest = new CreateArtifactRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CreateArtifactResponse$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.CreateArtifactResponse\", [\n { no: 1, name: \"ok\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ },\n { no: 2, name: \"signed_upload_url\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value) {\n const message = { ok: false, signedUploadUrl: \"\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bool ok */ 1:\n message.ok = reader.bool();\n break;\n case /* string signed_upload_url */ 2:\n message.signedUploadUrl = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* bool ok = 1; */\n if (message.ok !== false)\n writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);\n /* string signed_upload_url = 2; */\n if (message.signedUploadUrl !== \"\")\n writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.CreateArtifactResponse\n */\nexports.CreateArtifactResponse = new CreateArtifactResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FinalizeArtifactRequest$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.FinalizeArtifactRequest\", [\n { no: 1, name: \"workflow_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"workflow_job_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"size\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/ },\n { no: 5, name: \"hash\", kind: \"message\", T: () => wrappers_2.StringValue }\n ]);\n }\n create(value) {\n const message = { workflowRunBackendId: \"\", workflowJobRunBackendId: \"\", name: \"\", size: \"0\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string workflow_run_backend_id */ 1:\n message.workflowRunBackendId = reader.string();\n break;\n case /* string workflow_job_run_backend_id */ 2:\n message.workflowJobRunBackendId = reader.string();\n break;\n case /* string name */ 3:\n message.name = reader.string();\n break;\n case /* int64 size */ 4:\n message.size = reader.int64().toString();\n break;\n case /* google.protobuf.StringValue hash */ 5:\n message.hash = wrappers_2.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.hash);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string workflow_run_backend_id = 1; */\n if (message.workflowRunBackendId !== \"\")\n writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.workflowRunBackendId);\n /* string workflow_job_run_backend_id = 2; */\n if (message.workflowJobRunBackendId !== \"\")\n writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.workflowJobRunBackendId);\n /* string name = 3; */\n if (message.name !== \"\")\n writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.name);\n /* int64 size = 4; */\n if (message.size !== \"0\")\n writer.tag(4, runtime_1.WireType.Varint).int64(message.size);\n /* google.protobuf.StringValue hash = 5; */\n if (message.hash)\n wrappers_2.StringValue.internalBinaryWrite(message.hash, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeArtifactRequest\n */\nexports.FinalizeArtifactRequest = new FinalizeArtifactRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass FinalizeArtifactResponse$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.FinalizeArtifactResponse\", [\n { no: 1, name: \"ok\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ },\n { no: 2, name: \"artifact_id\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/ }\n ]);\n }\n create(value) {\n const message = { ok: false, artifactId: \"0\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bool ok */ 1:\n message.ok = reader.bool();\n break;\n case /* int64 artifact_id */ 2:\n message.artifactId = reader.int64().toString();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* bool ok = 1; */\n if (message.ok !== false)\n writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);\n /* int64 artifact_id = 2; */\n if (message.artifactId !== \"0\")\n writer.tag(2, runtime_1.WireType.Varint).int64(message.artifactId);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.FinalizeArtifactResponse\n */\nexports.FinalizeArtifactResponse = new FinalizeArtifactResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListArtifactsRequest$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.ListArtifactsRequest\", [\n { no: 1, name: \"workflow_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"workflow_job_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"name_filter\", kind: \"message\", T: () => wrappers_2.StringValue },\n { no: 4, name: \"id_filter\", kind: \"message\", T: () => wrappers_1.Int64Value }\n ]);\n }\n create(value) {\n const message = { workflowRunBackendId: \"\", workflowJobRunBackendId: \"\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string workflow_run_backend_id */ 1:\n message.workflowRunBackendId = reader.string();\n break;\n case /* string workflow_job_run_backend_id */ 2:\n message.workflowJobRunBackendId = reader.string();\n break;\n case /* google.protobuf.StringValue name_filter */ 3:\n message.nameFilter = wrappers_2.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.nameFilter);\n break;\n case /* google.protobuf.Int64Value id_filter */ 4:\n message.idFilter = wrappers_1.Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.idFilter);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string workflow_run_backend_id = 1; */\n if (message.workflowRunBackendId !== \"\")\n writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.workflowRunBackendId);\n /* string workflow_job_run_backend_id = 2; */\n if (message.workflowJobRunBackendId !== \"\")\n writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.workflowJobRunBackendId);\n /* google.protobuf.StringValue name_filter = 3; */\n if (message.nameFilter)\n wrappers_2.StringValue.internalBinaryWrite(message.nameFilter, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();\n /* google.protobuf.Int64Value id_filter = 4; */\n if (message.idFilter)\n wrappers_1.Int64Value.internalBinaryWrite(message.idFilter, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.ListArtifactsRequest\n */\nexports.ListArtifactsRequest = new ListArtifactsRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListArtifactsResponse$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.ListArtifactsResponse\", [\n { no: 1, name: \"artifacts\", kind: \"message\", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.ListArtifactsResponse_MonolithArtifact }\n ]);\n }\n create(value) {\n const message = { artifacts: [] };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* repeated github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact artifacts */ 1:\n message.artifacts.push(exports.ListArtifactsResponse_MonolithArtifact.internalBinaryRead(reader, reader.uint32(), options));\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* repeated github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact artifacts = 1; */\n for (let i = 0; i < message.artifacts.length; i++)\n exports.ListArtifactsResponse_MonolithArtifact.internalBinaryWrite(message.artifacts[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.ListArtifactsResponse\n */\nexports.ListArtifactsResponse = new ListArtifactsResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ListArtifactsResponse_MonolithArtifact$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact\", [\n { no: 1, name: \"workflow_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"workflow_job_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"database_id\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/ },\n { no: 4, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 5, name: \"size\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/ },\n { no: 6, name: \"created_at\", kind: \"message\", T: () => timestamp_1.Timestamp }\n ]);\n }\n create(value) {\n const message = { workflowRunBackendId: \"\", workflowJobRunBackendId: \"\", databaseId: \"0\", name: \"\", size: \"0\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string workflow_run_backend_id */ 1:\n message.workflowRunBackendId = reader.string();\n break;\n case /* string workflow_job_run_backend_id */ 2:\n message.workflowJobRunBackendId = reader.string();\n break;\n case /* int64 database_id */ 3:\n message.databaseId = reader.int64().toString();\n break;\n case /* string name */ 4:\n message.name = reader.string();\n break;\n case /* int64 size */ 5:\n message.size = reader.int64().toString();\n break;\n case /* google.protobuf.Timestamp created_at */ 6:\n message.createdAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string workflow_run_backend_id = 1; */\n if (message.workflowRunBackendId !== \"\")\n writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.workflowRunBackendId);\n /* string workflow_job_run_backend_id = 2; */\n if (message.workflowJobRunBackendId !== \"\")\n writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.workflowJobRunBackendId);\n /* int64 database_id = 3; */\n if (message.databaseId !== \"0\")\n writer.tag(3, runtime_1.WireType.Varint).int64(message.databaseId);\n /* string name = 4; */\n if (message.name !== \"\")\n writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.name);\n /* int64 size = 5; */\n if (message.size !== \"0\")\n writer.tag(5, runtime_1.WireType.Varint).int64(message.size);\n /* google.protobuf.Timestamp created_at = 6; */\n if (message.createdAt)\n timestamp_1.Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.ListArtifactsResponse.MonolithArtifact\n */\nexports.ListArtifactsResponse_MonolithArtifact = new ListArtifactsResponse_MonolithArtifact$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetSignedArtifactURLRequest$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.GetSignedArtifactURLRequest\", [\n { no: 1, name: \"workflow_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"workflow_job_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value) {\n const message = { workflowRunBackendId: \"\", workflowJobRunBackendId: \"\", name: \"\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string workflow_run_backend_id */ 1:\n message.workflowRunBackendId = reader.string();\n break;\n case /* string workflow_job_run_backend_id */ 2:\n message.workflowJobRunBackendId = reader.string();\n break;\n case /* string name */ 3:\n message.name = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string workflow_run_backend_id = 1; */\n if (message.workflowRunBackendId !== \"\")\n writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.workflowRunBackendId);\n /* string workflow_job_run_backend_id = 2; */\n if (message.workflowJobRunBackendId !== \"\")\n writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.workflowJobRunBackendId);\n /* string name = 3; */\n if (message.name !== \"\")\n writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.name);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.GetSignedArtifactURLRequest\n */\nexports.GetSignedArtifactURLRequest = new GetSignedArtifactURLRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetSignedArtifactURLResponse$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.GetSignedArtifactURLResponse\", [\n { no: 1, name: \"signed_url\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value) {\n const message = { signedUrl: \"\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string signed_url */ 1:\n message.signedUrl = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string signed_url = 1; */\n if (message.signedUrl !== \"\")\n writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.signedUrl);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.GetSignedArtifactURLResponse\n */\nexports.GetSignedArtifactURLResponse = new GetSignedArtifactURLResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DeleteArtifactRequest$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.DeleteArtifactRequest\", [\n { no: 1, name: \"workflow_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"workflow_job_run_backend_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"name\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value) {\n const message = { workflowRunBackendId: \"\", workflowJobRunBackendId: \"\", name: \"\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string workflow_run_backend_id */ 1:\n message.workflowRunBackendId = reader.string();\n break;\n case /* string workflow_job_run_backend_id */ 2:\n message.workflowJobRunBackendId = reader.string();\n break;\n case /* string name */ 3:\n message.name = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* string workflow_run_backend_id = 1; */\n if (message.workflowRunBackendId !== \"\")\n writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.workflowRunBackendId);\n /* string workflow_job_run_backend_id = 2; */\n if (message.workflowJobRunBackendId !== \"\")\n writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.workflowJobRunBackendId);\n /* string name = 3; */\n if (message.name !== \"\")\n writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.name);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.DeleteArtifactRequest\n */\nexports.DeleteArtifactRequest = new DeleteArtifactRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DeleteArtifactResponse$Type extends runtime_5.MessageType {\n constructor() {\n super(\"github.actions.results.api.v1.DeleteArtifactResponse\", [\n { no: 1, name: \"ok\", kind: \"scalar\", T: 8 /*ScalarType.BOOL*/ },\n { no: 2, name: \"artifact_id\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/ }\n ]);\n }\n create(value) {\n const message = { ok: false, artifactId: \"0\" };\n globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });\n if (value !== undefined)\n (0, runtime_3.reflectionMergePartial)(this, message, value);\n return message;\n }\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bool ok */ 1:\n message.ok = reader.bool();\n break;\n case /* int64 artifact_id */ 2:\n message.artifactId = reader.int64().toString();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message, writer, options) {\n /* bool ok = 1; */\n if (message.ok !== false)\n writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);\n /* int64 artifact_id = 2; */\n if (message.artifactId !== \"0\")\n writer.tag(2, runtime_1.WireType.Varint).int64(message.artifactId);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message github.actions.results.api.v1.DeleteArtifactResponse\n */\nexports.DeleteArtifactResponse = new DeleteArtifactResponse$Type();\n/**\n * @generated ServiceType for protobuf service github.actions.results.api.v1.ArtifactService\n */\nexports.ArtifactService = new runtime_rpc_1.ServiceType(\"github.actions.results.api.v1.ArtifactService\", [\n { name: \"CreateArtifact\", options: {}, I: exports.CreateArtifactRequest, O: exports.CreateArtifactResponse },\n { name: \"FinalizeArtifact\", options: {}, I: exports.FinalizeArtifactRequest, O: exports.FinalizeArtifactResponse },\n { name: \"ListArtifacts\", options: {}, I: exports.ListArtifactsRequest, O: exports.ListArtifactsResponse },\n { name: \"GetSignedArtifactURL\", options: {}, I: exports.GetSignedArtifactURLRequest, O: exports.GetSignedArtifactURLResponse },\n { name: \"DeleteArtifact\", options: {}, I: exports.DeleteArtifactRequest, O: exports.DeleteArtifactResponse }\n]);\n//# sourceMappingURL=artifact.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createArtifactServiceServer = exports.ArtifactServiceMethodList = exports.ArtifactServiceMethod = exports.ArtifactServiceClientProtobuf = exports.ArtifactServiceClientJSON = void 0;\nconst twirp_ts_1 = require(\"twirp-ts\");\nconst artifact_1 = require(\"./artifact\");\nclass ArtifactServiceClientJSON {\n constructor(rpc) {\n this.rpc = rpc;\n this.CreateArtifact.bind(this);\n this.FinalizeArtifact.bind(this);\n this.ListArtifacts.bind(this);\n this.GetSignedArtifactURL.bind(this);\n this.DeleteArtifact.bind(this);\n }\n CreateArtifact(request) {\n const data = artifact_1.CreateArtifactRequest.toJson(request, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n });\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"CreateArtifact\", \"application/json\", data);\n return promise.then((data) => artifact_1.CreateArtifactResponse.fromJson(data, {\n ignoreUnknownFields: true,\n }));\n }\n FinalizeArtifact(request) {\n const data = artifact_1.FinalizeArtifactRequest.toJson(request, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n });\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"FinalizeArtifact\", \"application/json\", data);\n return promise.then((data) => artifact_1.FinalizeArtifactResponse.fromJson(data, {\n ignoreUnknownFields: true,\n }));\n }\n ListArtifacts(request) {\n const data = artifact_1.ListArtifactsRequest.toJson(request, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n });\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"ListArtifacts\", \"application/json\", data);\n return promise.then((data) => artifact_1.ListArtifactsResponse.fromJson(data, { ignoreUnknownFields: true }));\n }\n GetSignedArtifactURL(request) {\n const data = artifact_1.GetSignedArtifactURLRequest.toJson(request, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n });\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"GetSignedArtifactURL\", \"application/json\", data);\n return promise.then((data) => artifact_1.GetSignedArtifactURLResponse.fromJson(data, {\n ignoreUnknownFields: true,\n }));\n }\n DeleteArtifact(request) {\n const data = artifact_1.DeleteArtifactRequest.toJson(request, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n });\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"DeleteArtifact\", \"application/json\", data);\n return promise.then((data) => artifact_1.DeleteArtifactResponse.fromJson(data, {\n ignoreUnknownFields: true,\n }));\n }\n}\nexports.ArtifactServiceClientJSON = ArtifactServiceClientJSON;\nclass ArtifactServiceClientProtobuf {\n constructor(rpc) {\n this.rpc = rpc;\n this.CreateArtifact.bind(this);\n this.FinalizeArtifact.bind(this);\n this.ListArtifacts.bind(this);\n this.GetSignedArtifactURL.bind(this);\n this.DeleteArtifact.bind(this);\n }\n CreateArtifact(request) {\n const data = artifact_1.CreateArtifactRequest.toBinary(request);\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"CreateArtifact\", \"application/protobuf\", data);\n return promise.then((data) => artifact_1.CreateArtifactResponse.fromBinary(data));\n }\n FinalizeArtifact(request) {\n const data = artifact_1.FinalizeArtifactRequest.toBinary(request);\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"FinalizeArtifact\", \"application/protobuf\", data);\n return promise.then((data) => artifact_1.FinalizeArtifactResponse.fromBinary(data));\n }\n ListArtifacts(request) {\n const data = artifact_1.ListArtifactsRequest.toBinary(request);\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"ListArtifacts\", \"application/protobuf\", data);\n return promise.then((data) => artifact_1.ListArtifactsResponse.fromBinary(data));\n }\n GetSignedArtifactURL(request) {\n const data = artifact_1.GetSignedArtifactURLRequest.toBinary(request);\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"GetSignedArtifactURL\", \"application/protobuf\", data);\n return promise.then((data) => artifact_1.GetSignedArtifactURLResponse.fromBinary(data));\n }\n DeleteArtifact(request) {\n const data = artifact_1.DeleteArtifactRequest.toBinary(request);\n const promise = this.rpc.request(\"github.actions.results.api.v1.ArtifactService\", \"DeleteArtifact\", \"application/protobuf\", data);\n return promise.then((data) => artifact_1.DeleteArtifactResponse.fromBinary(data));\n }\n}\nexports.ArtifactServiceClientProtobuf = ArtifactServiceClientProtobuf;\nvar ArtifactServiceMethod;\n(function (ArtifactServiceMethod) {\n ArtifactServiceMethod[\"CreateArtifact\"] = \"CreateArtifact\";\n ArtifactServiceMethod[\"FinalizeArtifact\"] = \"FinalizeArtifact\";\n ArtifactServiceMethod[\"ListArtifacts\"] = \"ListArtifacts\";\n ArtifactServiceMethod[\"GetSignedArtifactURL\"] = \"GetSignedArtifactURL\";\n ArtifactServiceMethod[\"DeleteArtifact\"] = \"DeleteArtifact\";\n})(ArtifactServiceMethod || (exports.ArtifactServiceMethod = ArtifactServiceMethod = {}));\nexports.ArtifactServiceMethodList = [\n ArtifactServiceMethod.CreateArtifact,\n ArtifactServiceMethod.FinalizeArtifact,\n ArtifactServiceMethod.ListArtifacts,\n ArtifactServiceMethod.GetSignedArtifactURL,\n ArtifactServiceMethod.DeleteArtifact,\n];\nfunction createArtifactServiceServer(service) {\n return new twirp_ts_1.TwirpServer({\n service,\n packageName: \"github.actions.results.api.v1\",\n serviceName: \"ArtifactService\",\n methodList: exports.ArtifactServiceMethodList,\n matchRoute: matchArtifactServiceRoute,\n });\n}\nexports.createArtifactServiceServer = createArtifactServiceServer;\nfunction matchArtifactServiceRoute(method, events) {\n switch (method) {\n case \"CreateArtifact\":\n return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {\n ctx = Object.assign(Object.assign({}, ctx), { methodName: \"CreateArtifact\" });\n yield events.onMatch(ctx);\n return handleArtifactServiceCreateArtifactRequest(ctx, service, data, interceptors);\n });\n case \"FinalizeArtifact\":\n return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {\n ctx = Object.assign(Object.assign({}, ctx), { methodName: \"FinalizeArtifact\" });\n yield events.onMatch(ctx);\n return handleArtifactServiceFinalizeArtifactRequest(ctx, service, data, interceptors);\n });\n case \"ListArtifacts\":\n return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {\n ctx = Object.assign(Object.assign({}, ctx), { methodName: \"ListArtifacts\" });\n yield events.onMatch(ctx);\n return handleArtifactServiceListArtifactsRequest(ctx, service, data, interceptors);\n });\n case \"GetSignedArtifactURL\":\n return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {\n ctx = Object.assign(Object.assign({}, ctx), { methodName: \"GetSignedArtifactURL\" });\n yield events.onMatch(ctx);\n return handleArtifactServiceGetSignedArtifactURLRequest(ctx, service, data, interceptors);\n });\n case \"DeleteArtifact\":\n return (ctx, service, data, interceptors) => __awaiter(this, void 0, void 0, function* () {\n ctx = Object.assign(Object.assign({}, ctx), { methodName: \"DeleteArtifact\" });\n yield events.onMatch(ctx);\n return handleArtifactServiceDeleteArtifactRequest(ctx, service, data, interceptors);\n });\n default:\n events.onNotFound();\n const msg = `no handler found`;\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);\n }\n}\nfunction handleArtifactServiceCreateArtifactRequest(ctx, service, data, interceptors) {\n switch (ctx.contentType) {\n case twirp_ts_1.TwirpContentType.JSON:\n return handleArtifactServiceCreateArtifactJSON(ctx, service, data, interceptors);\n case twirp_ts_1.TwirpContentType.Protobuf:\n return handleArtifactServiceCreateArtifactProtobuf(ctx, service, data, interceptors);\n default:\n const msg = \"unexpected Content-Type\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);\n }\n}\nfunction handleArtifactServiceFinalizeArtifactRequest(ctx, service, data, interceptors) {\n switch (ctx.contentType) {\n case twirp_ts_1.TwirpContentType.JSON:\n return handleArtifactServiceFinalizeArtifactJSON(ctx, service, data, interceptors);\n case twirp_ts_1.TwirpContentType.Protobuf:\n return handleArtifactServiceFinalizeArtifactProtobuf(ctx, service, data, interceptors);\n default:\n const msg = \"unexpected Content-Type\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);\n }\n}\nfunction handleArtifactServiceListArtifactsRequest(ctx, service, data, interceptors) {\n switch (ctx.contentType) {\n case twirp_ts_1.TwirpContentType.JSON:\n return handleArtifactServiceListArtifactsJSON(ctx, service, data, interceptors);\n case twirp_ts_1.TwirpContentType.Protobuf:\n return handleArtifactServiceListArtifactsProtobuf(ctx, service, data, interceptors);\n default:\n const msg = \"unexpected Content-Type\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);\n }\n}\nfunction handleArtifactServiceGetSignedArtifactURLRequest(ctx, service, data, interceptors) {\n switch (ctx.contentType) {\n case twirp_ts_1.TwirpContentType.JSON:\n return handleArtifactServiceGetSignedArtifactURLJSON(ctx, service, data, interceptors);\n case twirp_ts_1.TwirpContentType.Protobuf:\n return handleArtifactServiceGetSignedArtifactURLProtobuf(ctx, service, data, interceptors);\n default:\n const msg = \"unexpected Content-Type\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);\n }\n}\nfunction handleArtifactServiceDeleteArtifactRequest(ctx, service, data, interceptors) {\n switch (ctx.contentType) {\n case twirp_ts_1.TwirpContentType.JSON:\n return handleArtifactServiceDeleteArtifactJSON(ctx, service, data, interceptors);\n case twirp_ts_1.TwirpContentType.Protobuf:\n return handleArtifactServiceDeleteArtifactProtobuf(ctx, service, data, interceptors);\n default:\n const msg = \"unexpected Content-Type\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.BadRoute, msg);\n }\n}\nfunction handleArtifactServiceCreateArtifactJSON(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n const body = JSON.parse(data.toString() || \"{}\");\n request = artifact_1.CreateArtifactRequest.fromJson(body, {\n ignoreUnknownFields: true,\n });\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the json request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.CreateArtifact(ctx, inputReq);\n });\n }\n else {\n response = yield service.CreateArtifact(ctx, request);\n }\n return JSON.stringify(artifact_1.CreateArtifactResponse.toJson(response, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n }));\n });\n}\nfunction handleArtifactServiceFinalizeArtifactJSON(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n const body = JSON.parse(data.toString() || \"{}\");\n request = artifact_1.FinalizeArtifactRequest.fromJson(body, {\n ignoreUnknownFields: true,\n });\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the json request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.FinalizeArtifact(ctx, inputReq);\n });\n }\n else {\n response = yield service.FinalizeArtifact(ctx, request);\n }\n return JSON.stringify(artifact_1.FinalizeArtifactResponse.toJson(response, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n }));\n });\n}\nfunction handleArtifactServiceListArtifactsJSON(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n const body = JSON.parse(data.toString() || \"{}\");\n request = artifact_1.ListArtifactsRequest.fromJson(body, {\n ignoreUnknownFields: true,\n });\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the json request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.ListArtifacts(ctx, inputReq);\n });\n }\n else {\n response = yield service.ListArtifacts(ctx, request);\n }\n return JSON.stringify(artifact_1.ListArtifactsResponse.toJson(response, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n }));\n });\n}\nfunction handleArtifactServiceGetSignedArtifactURLJSON(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n const body = JSON.parse(data.toString() || \"{}\");\n request = artifact_1.GetSignedArtifactURLRequest.fromJson(body, {\n ignoreUnknownFields: true,\n });\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the json request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.GetSignedArtifactURL(ctx, inputReq);\n });\n }\n else {\n response = yield service.GetSignedArtifactURL(ctx, request);\n }\n return JSON.stringify(artifact_1.GetSignedArtifactURLResponse.toJson(response, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n }));\n });\n}\nfunction handleArtifactServiceDeleteArtifactJSON(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n const body = JSON.parse(data.toString() || \"{}\");\n request = artifact_1.DeleteArtifactRequest.fromJson(body, {\n ignoreUnknownFields: true,\n });\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the json request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.DeleteArtifact(ctx, inputReq);\n });\n }\n else {\n response = yield service.DeleteArtifact(ctx, request);\n }\n return JSON.stringify(artifact_1.DeleteArtifactResponse.toJson(response, {\n useProtoFieldName: true,\n emitDefaultValues: false,\n }));\n });\n}\nfunction handleArtifactServiceCreateArtifactProtobuf(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n request = artifact_1.CreateArtifactRequest.fromBinary(data);\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the protobuf request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.CreateArtifact(ctx, inputReq);\n });\n }\n else {\n response = yield service.CreateArtifact(ctx, request);\n }\n return Buffer.from(artifact_1.CreateArtifactResponse.toBinary(response));\n });\n}\nfunction handleArtifactServiceFinalizeArtifactProtobuf(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n request = artifact_1.FinalizeArtifactRequest.fromBinary(data);\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the protobuf request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.FinalizeArtifact(ctx, inputReq);\n });\n }\n else {\n response = yield service.FinalizeArtifact(ctx, request);\n }\n return Buffer.from(artifact_1.FinalizeArtifactResponse.toBinary(response));\n });\n}\nfunction handleArtifactServiceListArtifactsProtobuf(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n request = artifact_1.ListArtifactsRequest.fromBinary(data);\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the protobuf request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.ListArtifacts(ctx, inputReq);\n });\n }\n else {\n response = yield service.ListArtifacts(ctx, request);\n }\n return Buffer.from(artifact_1.ListArtifactsResponse.toBinary(response));\n });\n}\nfunction handleArtifactServiceGetSignedArtifactURLProtobuf(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n request = artifact_1.GetSignedArtifactURLRequest.fromBinary(data);\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the protobuf request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.GetSignedArtifactURL(ctx, inputReq);\n });\n }\n else {\n response = yield service.GetSignedArtifactURL(ctx, request);\n }\n return Buffer.from(artifact_1.GetSignedArtifactURLResponse.toBinary(response));\n });\n}\nfunction handleArtifactServiceDeleteArtifactProtobuf(ctx, service, data, interceptors) {\n return __awaiter(this, void 0, void 0, function* () {\n let request;\n let response;\n try {\n request = artifact_1.DeleteArtifactRequest.fromBinary(data);\n }\n catch (e) {\n if (e instanceof Error) {\n const msg = \"the protobuf request could not be decoded\";\n throw new twirp_ts_1.TwirpError(twirp_ts_1.TwirpErrorCode.Malformed, msg).withCause(e, true);\n }\n }\n if (interceptors && interceptors.length > 0) {\n const interceptor = (0, twirp_ts_1.chainInterceptors)(...interceptors);\n response = yield interceptor(ctx, request, (ctx, inputReq) => {\n return service.DeleteArtifact(ctx, inputReq);\n });\n }\n else {\n response = yield service.DeleteArtifact(ctx, request);\n }\n return Buffer.from(artifact_1.DeleteArtifactResponse.toBinary(response));\n });\n}\n//# sourceMappingURL=artifact.twirp.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DefaultArtifactClient = void 0;\nconst core_1 = require(\"@actions/core\");\nconst config_1 = require(\"./shared/config\");\nconst upload_artifact_1 = require(\"./upload/upload-artifact\");\nconst download_artifact_1 = require(\"./download/download-artifact\");\nconst delete_artifact_1 = require(\"./delete/delete-artifact\");\nconst get_artifact_1 = require(\"./find/get-artifact\");\nconst list_artifacts_1 = require(\"./find/list-artifacts\");\nconst errors_1 = require(\"./shared/errors\");\n/**\n * The default artifact client that is used by the artifact action(s).\n */\nclass DefaultArtifactClient {\n uploadArtifact(name, files, rootDirectory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n if ((0, config_1.isGhes)()) {\n throw new errors_1.GHESNotSupportedError();\n }\n return (0, upload_artifact_1.uploadArtifact)(name, files, rootDirectory, options);\n }\n catch (error) {\n (0, core_1.warning)(`Artifact upload failed with error: ${error}.\n\nErrors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.\n\nIf the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`);\n throw error;\n }\n });\n }\n downloadArtifact(artifactId, options) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n if ((0, config_1.isGhes)()) {\n throw new errors_1.GHESNotSupportedError();\n }\n if (options === null || options === void 0 ? void 0 : options.findBy) {\n const { findBy: { repositoryOwner, repositoryName, token } } = options, downloadOptions = __rest(options, [\"findBy\"]);\n return (0, download_artifact_1.downloadArtifactPublic)(artifactId, repositoryOwner, repositoryName, token, downloadOptions);\n }\n return (0, download_artifact_1.downloadArtifactInternal)(artifactId, options);\n }\n catch (error) {\n (0, core_1.warning)(`Download Artifact failed with error: ${error}.\n\nErrors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.\n\nIf the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`);\n throw error;\n }\n });\n }\n listArtifacts(options) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n if ((0, config_1.isGhes)()) {\n throw new errors_1.GHESNotSupportedError();\n }\n if (options === null || options === void 0 ? void 0 : options.findBy) {\n const { findBy: { workflowRunId, repositoryOwner, repositoryName, token } } = options;\n return (0, list_artifacts_1.listArtifactsPublic)(workflowRunId, repositoryOwner, repositoryName, token, options === null || options === void 0 ? void 0 : options.latest);\n }\n return (0, list_artifacts_1.listArtifactsInternal)(options === null || options === void 0 ? void 0 : options.latest);\n }\n catch (error) {\n (0, core_1.warning)(`Listing Artifacts failed with error: ${error}.\n\nErrors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.\n\nIf the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`);\n throw error;\n }\n });\n }\n getArtifact(artifactName, options) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n if ((0, config_1.isGhes)()) {\n throw new errors_1.GHESNotSupportedError();\n }\n if (options === null || options === void 0 ? void 0 : options.findBy) {\n const { findBy: { workflowRunId, repositoryOwner, repositoryName, token } } = options;\n return (0, get_artifact_1.getArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);\n }\n return (0, get_artifact_1.getArtifactInternal)(artifactName);\n }\n catch (error) {\n (0, core_1.warning)(`Get Artifact failed with error: ${error}.\n\nErrors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.\n\nIf the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`);\n throw error;\n }\n });\n }\n deleteArtifact(artifactName, options) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n if ((0, config_1.isGhes)()) {\n throw new errors_1.GHESNotSupportedError();\n }\n if (options === null || options === void 0 ? void 0 : options.findBy) {\n const { findBy: { repositoryOwner, repositoryName, workflowRunId, token } } = options;\n return (0, delete_artifact_1.deleteArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);\n }\n return (0, delete_artifact_1.deleteArtifactInternal)(artifactName);\n }\n catch (error) {\n (0, core_1.warning)(`Delete Artifact failed with error: ${error}.\n\nErrors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.\n\nIf the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`);\n throw error;\n }\n });\n }\n}\nexports.DefaultArtifactClient = DefaultArtifactClient;\n//# sourceMappingURL=client.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.deleteArtifactInternal = exports.deleteArtifactPublic = void 0;\nconst core_1 = require(\"@actions/core\");\nconst github_1 = require(\"@actions/github\");\nconst user_agent_1 = require(\"../shared/user-agent\");\nconst retry_options_1 = require(\"../find/retry-options\");\nconst utils_1 = require(\"@actions/github/lib/utils\");\nconst plugin_request_log_1 = require(\"@octokit/plugin-request-log\");\nconst plugin_retry_1 = require(\"@octokit/plugin-retry\");\nconst artifact_twirp_client_1 = require(\"../shared/artifact-twirp-client\");\nconst util_1 = require(\"../shared/util\");\nconst generated_1 = require(\"../../generated\");\nconst get_artifact_1 = require(\"../find/get-artifact\");\nconst errors_1 = require(\"../shared/errors\");\nfunction deleteArtifactPublic(artifactName, workflowRunId, repositoryOwner, repositoryName, token) {\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n const [retryOpts, requestOpts] = (0, retry_options_1.getRetryOptions)(utils_1.defaults);\n const opts = {\n log: undefined,\n userAgent: (0, user_agent_1.getUserAgentString)(),\n previews: undefined,\n retry: retryOpts,\n request: requestOpts\n };\n const github = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);\n const getArtifactResp = yield (0, get_artifact_1.getArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);\n const deleteArtifactResp = yield github.rest.actions.deleteArtifact({\n owner: repositoryOwner,\n repo: repositoryName,\n artifact_id: getArtifactResp.artifact.id\n });\n if (deleteArtifactResp.status !== 204) {\n throw new errors_1.InvalidResponseError(`Invalid response from GitHub API: ${deleteArtifactResp.status} (${(_a = deleteArtifactResp === null || deleteArtifactResp === void 0 ? void 0 : deleteArtifactResp.headers) === null || _a === void 0 ? void 0 : _a['x-github-request-id']})`);\n }\n return {\n id: getArtifactResp.artifact.id\n };\n });\n}\nexports.deleteArtifactPublic = deleteArtifactPublic;\nfunction deleteArtifactInternal(artifactName) {\n return __awaiter(this, void 0, void 0, function* () {\n const artifactClient = (0, artifact_twirp_client_1.internalArtifactTwirpClient)();\n const { workflowRunBackendId, workflowJobRunBackendId } = (0, util_1.getBackendIdsFromToken)();\n const listReq = {\n workflowRunBackendId,\n workflowJobRunBackendId,\n nameFilter: generated_1.StringValue.create({ value: artifactName })\n };\n const listRes = yield artifactClient.ListArtifacts(listReq);\n if (listRes.artifacts.length === 0) {\n throw new errors_1.ArtifactNotFoundError(`Artifact not found for name: ${artifactName}`);\n }\n let artifact = listRes.artifacts[0];\n if (listRes.artifacts.length > 1) {\n artifact = listRes.artifacts.sort((a, b) => Number(b.databaseId) - Number(a.databaseId))[0];\n (0, core_1.debug)(`More than one artifact found for a single name, returning newest (id: ${artifact.databaseId})`);\n }\n const req = {\n workflowRunBackendId: artifact.workflowRunBackendId,\n workflowJobRunBackendId: artifact.workflowJobRunBackendId,\n name: artifact.name\n };\n const res = yield artifactClient.DeleteArtifact(req);\n (0, core_1.info)(`Artifact '${artifactName}' (ID: ${res.artifactId}) deleted`);\n return {\n id: Number(res.artifactId)\n };\n });\n}\nexports.deleteArtifactInternal = deleteArtifactInternal;\n//# sourceMappingURL=delete-artifact.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.downloadArtifactInternal = exports.downloadArtifactPublic = exports.streamExtractExternal = void 0;\nconst promises_1 = __importDefault(require(\"fs/promises\"));\nconst stream = __importStar(require(\"stream\"));\nconst fs_1 = require(\"fs\");\nconst path = __importStar(require(\"path\"));\nconst github = __importStar(require(\"@actions/github\"));\nconst core = __importStar(require(\"@actions/core\"));\nconst httpClient = __importStar(require(\"@actions/http-client\"));\nconst unzip_stream_1 = __importDefault(require(\"unzip-stream\"));\nconst user_agent_1 = require(\"../shared/user-agent\");\nconst config_1 = require(\"../shared/config\");\nconst artifact_twirp_client_1 = require(\"../shared/artifact-twirp-client\");\nconst generated_1 = require(\"../../generated\");\nconst util_1 = require(\"../shared/util\");\nconst errors_1 = require(\"../shared/errors\");\nconst scrubQueryParameters = (url) => {\n const parsed = new URL(url);\n parsed.search = '';\n return parsed.toString();\n};\nfunction exists(path) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield promises_1.default.access(path);\n return true;\n }\n catch (error) {\n if (error.code === 'ENOENT') {\n return false;\n }\n else {\n throw error;\n }\n }\n });\n}\nfunction streamExtract(url, directory) {\n return __awaiter(this, void 0, void 0, function* () {\n let retryCount = 0;\n while (retryCount < 5) {\n try {\n yield streamExtractExternal(url, directory);\n return;\n }\n catch (error) {\n if (error.message.includes('Malformed extraction path')) {\n throw new Error(`Artifact download failed with unretryable error: ${error.message}`);\n }\n retryCount++;\n core.debug(`Failed to download artifact after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`);\n // wait 5 seconds before retrying\n yield new Promise(resolve => setTimeout(resolve, 5000));\n }\n }\n throw new Error(`Artifact download failed after ${retryCount} retries.`);\n });\n}\nfunction streamExtractExternal(url, directory) {\n return __awaiter(this, void 0, void 0, function* () {\n const client = new httpClient.HttpClient((0, user_agent_1.getUserAgentString)());\n const response = yield client.get(url);\n if (response.message.statusCode !== 200) {\n throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`);\n }\n const timeout = 30 * 1000; // 30 seconds\n return new Promise((resolve, reject) => {\n const timerFn = () => {\n response.message.destroy(new Error(`Blob storage chunk did not respond in ${timeout}ms`));\n };\n const timer = setTimeout(timerFn, timeout);\n const createdDirectories = new Set();\n createdDirectories.add(directory);\n response.message\n .on('data', () => {\n timer.refresh();\n })\n .on('error', (error) => {\n core.debug(`response.message: Artifact download failed: ${error.message}`);\n clearTimeout(timer);\n reject(error);\n })\n .pipe(unzip_stream_1.default.Parse())\n .pipe(new stream.Transform({\n objectMode: true,\n transform: (entry, _, callback) => __awaiter(this, void 0, void 0, function* () {\n const fullPath = path.normalize(path.join(directory, entry.path));\n if (!directory.endsWith(path.sep)) {\n directory += path.sep;\n }\n if (!fullPath.startsWith(directory)) {\n reject(new Error(`Malformed extraction path: ${fullPath}`));\n }\n if (entry.type === 'Directory') {\n if (!createdDirectories.has(fullPath)) {\n createdDirectories.add(fullPath);\n yield resolveOrCreateDirectory(fullPath).then(() => {\n entry.autodrain();\n callback();\n });\n }\n else {\n entry.autodrain();\n callback();\n }\n }\n else {\n core.info(`Extracting artifact entry: ${fullPath}`);\n if (!createdDirectories.has(path.dirname(fullPath))) {\n createdDirectories.add(path.dirname(fullPath));\n yield resolveOrCreateDirectory(path.dirname(fullPath));\n }\n const writeStream = (0, fs_1.createWriteStream)(fullPath);\n writeStream.on('finish', callback);\n writeStream.on('error', reject);\n entry.pipe(writeStream);\n }\n })\n }))\n .on('finish', () => __awaiter(this, void 0, void 0, function* () {\n clearTimeout(timer);\n resolve();\n }))\n .on('error', (error) => {\n reject(error);\n });\n });\n });\n}\nexports.streamExtractExternal = streamExtractExternal;\nfunction downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const downloadPath = yield resolveOrCreateDirectory(options === null || options === void 0 ? void 0 : options.path);\n const api = github.getOctokit(token);\n core.info(`Downloading artifact '${artifactId}' from '${repositoryOwner}/${repositoryName}'`);\n const { headers, status } = yield api.rest.actions.downloadArtifact({\n owner: repositoryOwner,\n repo: repositoryName,\n artifact_id: artifactId,\n archive_format: 'zip',\n request: {\n redirect: 'manual'\n }\n });\n if (status !== 302) {\n throw new Error(`Unable to download artifact. Unexpected status: ${status}`);\n }\n const { location } = headers;\n if (!location) {\n throw new Error(`Unable to redirect to artifact download url`);\n }\n core.info(`Redirecting to blob download url: ${scrubQueryParameters(location)}`);\n try {\n core.info(`Starting download of artifact to: ${downloadPath}`);\n yield streamExtract(location, downloadPath);\n core.info(`Artifact download completed successfully.`);\n }\n catch (error) {\n throw new Error(`Unable to download and extract artifact: ${error.message}`);\n }\n return { downloadPath };\n });\n}\nexports.downloadArtifactPublic = downloadArtifactPublic;\nfunction downloadArtifactInternal(artifactId, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const downloadPath = yield resolveOrCreateDirectory(options === null || options === void 0 ? void 0 : options.path);\n const artifactClient = (0, artifact_twirp_client_1.internalArtifactTwirpClient)();\n const { workflowRunBackendId, workflowJobRunBackendId } = (0, util_1.getBackendIdsFromToken)();\n const listReq = {\n workflowRunBackendId,\n workflowJobRunBackendId,\n idFilter: generated_1.Int64Value.create({ value: artifactId.toString() })\n };\n const { artifacts } = yield artifactClient.ListArtifacts(listReq);\n if (artifacts.length === 0) {\n throw new errors_1.ArtifactNotFoundError(`No artifacts found for ID: ${artifactId}\\nAre you trying to download from a different run? Try specifying a github-token with \\`actions:read\\` scope.`);\n }\n if (artifacts.length > 1) {\n core.warning('Multiple artifacts found, defaulting to first.');\n }\n const signedReq = {\n workflowRunBackendId: artifacts[0].workflowRunBackendId,\n workflowJobRunBackendId: artifacts[0].workflowJobRunBackendId,\n name: artifacts[0].name\n };\n const { signedUrl } = yield artifactClient.GetSignedArtifactURL(signedReq);\n core.info(`Redirecting to blob download url: ${scrubQueryParameters(signedUrl)}`);\n try {\n core.info(`Starting download of artifact to: ${downloadPath}`);\n yield streamExtract(signedUrl, downloadPath);\n core.info(`Artifact download completed successfully.`);\n }\n catch (error) {\n throw new Error(`Unable to download and extract artifact: ${error.message}`);\n }\n return { downloadPath };\n });\n}\nexports.downloadArtifactInternal = downloadArtifactInternal;\nfunction resolveOrCreateDirectory(downloadPath = (0, config_1.getGitHubWorkspaceDir)()) {\n return __awaiter(this, void 0, void 0, function* () {\n if (!(yield exists(downloadPath))) {\n core.debug(`Artifact destination folder does not exist, creating: ${downloadPath}`);\n yield promises_1.default.mkdir(downloadPath, { recursive: true });\n }\n else {\n core.debug(`Artifact destination folder already exists: ${downloadPath}`);\n }\n return downloadPath;\n });\n}\n//# sourceMappingURL=download-artifact.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getArtifactInternal = exports.getArtifactPublic = void 0;\nconst github_1 = require(\"@actions/github\");\nconst plugin_retry_1 = require(\"@octokit/plugin-retry\");\nconst core = __importStar(require(\"@actions/core\"));\nconst utils_1 = require(\"@actions/github/lib/utils\");\nconst retry_options_1 = require(\"./retry-options\");\nconst plugin_request_log_1 = require(\"@octokit/plugin-request-log\");\nconst util_1 = require(\"../shared/util\");\nconst user_agent_1 = require(\"../shared/user-agent\");\nconst artifact_twirp_client_1 = require(\"../shared/artifact-twirp-client\");\nconst generated_1 = require(\"../../generated\");\nconst errors_1 = require(\"../shared/errors\");\nfunction getArtifactPublic(artifactName, workflowRunId, repositoryOwner, repositoryName, token) {\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n const [retryOpts, requestOpts] = (0, retry_options_1.getRetryOptions)(utils_1.defaults);\n const opts = {\n log: undefined,\n userAgent: (0, user_agent_1.getUserAgentString)(),\n previews: undefined,\n retry: retryOpts,\n request: requestOpts\n };\n const github = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);\n const getArtifactResp = yield github.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}', {\n owner: repositoryOwner,\n repo: repositoryName,\n run_id: workflowRunId,\n name: artifactName\n });\n if (getArtifactResp.status !== 200) {\n throw new errors_1.InvalidResponseError(`Invalid response from GitHub API: ${getArtifactResp.status} (${(_a = getArtifactResp === null || getArtifactResp === void 0 ? void 0 : getArtifactResp.headers) === null || _a === void 0 ? void 0 : _a['x-github-request-id']})`);\n }\n if (getArtifactResp.data.artifacts.length === 0) {\n throw new errors_1.ArtifactNotFoundError(`Artifact not found for name: ${artifactName}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);\n }\n let artifact = getArtifactResp.data.artifacts[0];\n if (getArtifactResp.data.artifacts.length > 1) {\n artifact = getArtifactResp.data.artifacts.sort((a, b) => b.id - a.id)[0];\n core.debug(`More than one artifact found for a single name, returning newest (id: ${artifact.id})`);\n }\n return {\n artifact: {\n name: artifact.name,\n id: artifact.id,\n size: artifact.size_in_bytes,\n createdAt: artifact.created_at ? new Date(artifact.created_at) : undefined\n }\n };\n });\n}\nexports.getArtifactPublic = getArtifactPublic;\nfunction getArtifactInternal(artifactName) {\n return __awaiter(this, void 0, void 0, function* () {\n const artifactClient = (0, artifact_twirp_client_1.internalArtifactTwirpClient)();\n const { workflowRunBackendId, workflowJobRunBackendId } = (0, util_1.getBackendIdsFromToken)();\n const req = {\n workflowRunBackendId,\n workflowJobRunBackendId,\n nameFilter: generated_1.StringValue.create({ value: artifactName })\n };\n const res = yield artifactClient.ListArtifacts(req);\n if (res.artifacts.length === 0) {\n throw new errors_1.ArtifactNotFoundError(`Artifact not found for name: ${artifactName}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);\n }\n let artifact = res.artifacts[0];\n if (res.artifacts.length > 1) {\n artifact = res.artifacts.sort((a, b) => Number(b.databaseId) - Number(a.databaseId))[0];\n core.debug(`More than one artifact found for a single name, returning newest (id: ${artifact.databaseId})`);\n }\n return {\n artifact: {\n name: artifact.name,\n id: Number(artifact.databaseId),\n size: Number(artifact.size),\n createdAt: artifact.createdAt\n ? generated_1.Timestamp.toDate(artifact.createdAt)\n : undefined\n }\n };\n });\n}\nexports.getArtifactInternal = getArtifactInternal;\n//# sourceMappingURL=get-artifact.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.listArtifactsInternal = exports.listArtifactsPublic = void 0;\nconst core_1 = require(\"@actions/core\");\nconst github_1 = require(\"@actions/github\");\nconst user_agent_1 = require(\"../shared/user-agent\");\nconst retry_options_1 = require(\"./retry-options\");\nconst utils_1 = require(\"@actions/github/lib/utils\");\nconst plugin_request_log_1 = require(\"@octokit/plugin-request-log\");\nconst plugin_retry_1 = require(\"@octokit/plugin-retry\");\nconst artifact_twirp_client_1 = require(\"../shared/artifact-twirp-client\");\nconst util_1 = require(\"../shared/util\");\nconst generated_1 = require(\"../../generated\");\n// Limiting to 1000 for perf reasons\nconst maximumArtifactCount = 1000;\nconst paginationCount = 100;\nconst maxNumberOfPages = maximumArtifactCount / paginationCount;\nfunction listArtifactsPublic(workflowRunId, repositoryOwner, repositoryName, token, latest = false) {\n return __awaiter(this, void 0, void 0, function* () {\n (0, core_1.info)(`Fetching artifact list for workflow run ${workflowRunId} in repository ${repositoryOwner}/${repositoryName}`);\n let artifacts = [];\n const [retryOpts, requestOpts] = (0, retry_options_1.getRetryOptions)(utils_1.defaults);\n const opts = {\n log: undefined,\n userAgent: (0, user_agent_1.getUserAgentString)(),\n previews: undefined,\n retry: retryOpts,\n request: requestOpts\n };\n const github = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);\n let currentPageNumber = 1;\n const { data: listArtifactResponse } = yield github.rest.actions.listWorkflowRunArtifacts({\n owner: repositoryOwner,\n repo: repositoryName,\n run_id: workflowRunId,\n per_page: paginationCount,\n page: currentPageNumber\n });\n let numberOfPages = Math.ceil(listArtifactResponse.total_count / paginationCount);\n const totalArtifactCount = listArtifactResponse.total_count;\n if (totalArtifactCount > maximumArtifactCount) {\n (0, core_1.warning)(`Workflow run ${workflowRunId} has more than 1000 artifacts. Results will be incomplete as only the first ${maximumArtifactCount} artifacts will be returned`);\n numberOfPages = maxNumberOfPages;\n }\n // Iterate over the first page\n for (const artifact of listArtifactResponse.artifacts) {\n artifacts.push({\n name: artifact.name,\n id: artifact.id,\n size: artifact.size_in_bytes,\n createdAt: artifact.created_at ? new Date(artifact.created_at) : undefined\n });\n }\n // Iterate over any remaining pages\n for (currentPageNumber; currentPageNumber < numberOfPages; currentPageNumber++) {\n currentPageNumber++;\n (0, core_1.debug)(`Fetching page ${currentPageNumber} of artifact list`);\n const { data: listArtifactResponse } = yield github.rest.actions.listWorkflowRunArtifacts({\n owner: repositoryOwner,\n repo: repositoryName,\n run_id: workflowRunId,\n per_page: paginationCount,\n page: currentPageNumber\n });\n for (const artifact of listArtifactResponse.artifacts) {\n artifacts.push({\n name: artifact.name,\n id: artifact.id,\n size: artifact.size_in_bytes,\n createdAt: artifact.created_at\n ? new Date(artifact.created_at)\n : undefined\n });\n }\n }\n if (latest) {\n artifacts = filterLatest(artifacts);\n }\n (0, core_1.info)(`Found ${artifacts.length} artifact(s)`);\n return {\n artifacts\n };\n });\n}\nexports.listArtifactsPublic = listArtifactsPublic;\nfunction listArtifactsInternal(latest = false) {\n return __awaiter(this, void 0, void 0, function* () {\n const artifactClient = (0, artifact_twirp_client_1.internalArtifactTwirpClient)();\n const { workflowRunBackendId, workflowJobRunBackendId } = (0, util_1.getBackendIdsFromToken)();\n const req = {\n workflowRunBackendId,\n workflowJobRunBackendId\n };\n const res = yield artifactClient.ListArtifacts(req);\n let artifacts = res.artifacts.map(artifact => ({\n name: artifact.name,\n id: Number(artifact.databaseId),\n size: Number(artifact.size),\n createdAt: artifact.createdAt\n ? generated_1.Timestamp.toDate(artifact.createdAt)\n : undefined\n }));\n if (latest) {\n artifacts = filterLatest(artifacts);\n }\n (0, core_1.info)(`Found ${artifacts.length} artifact(s)`);\n return {\n artifacts\n };\n });\n}\nexports.listArtifactsInternal = listArtifactsInternal;\n/**\n * Filters a list of artifacts to only include the latest artifact for each name\n * @param artifacts The artifacts to filter\n * @returns The filtered list of artifacts\n */\nfunction filterLatest(artifacts) {\n artifacts.sort((a, b) => b.id - a.id);\n const latestArtifacts = [];\n const seenArtifactNames = new Set();\n for (const artifact of artifacts) {\n if (!seenArtifactNames.has(artifact.name)) {\n latestArtifacts.push(artifact);\n seenArtifactNames.add(artifact.name);\n }\n }\n return latestArtifacts;\n}\n//# sourceMappingURL=list-artifacts.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRetryOptions = void 0;\nconst core = __importStar(require(\"@actions/core\"));\n// Defaults for fetching artifacts\nconst defaultMaxRetryNumber = 5;\nconst defaultExemptStatusCodes = [400, 401, 403, 404, 422]; // https://github.com/octokit/plugin-retry.js/blob/9a2443746c350b3beedec35cf26e197ea318a261/src/index.ts#L14\nfunction getRetryOptions(defaultOptions, retries = defaultMaxRetryNumber, exemptStatusCodes = defaultExemptStatusCodes) {\n var _a;\n if (retries <= 0) {\n return [{ enabled: false }, defaultOptions.request];\n }\n const retryOptions = {\n enabled: true\n };\n if (exemptStatusCodes.length > 0) {\n retryOptions.doNotRetry = exemptStatusCodes;\n }\n // The GitHub type has some defaults for `options.request`\n // see: https://github.com/actions/toolkit/blob/4fbc5c941a57249b19562015edbd72add14be93d/packages/github/src/utils.ts#L15\n // We pass these in here so they are not overridden.\n const requestOptions = Object.assign(Object.assign({}, defaultOptions.request), { retries });\n core.debug(`GitHub client configured with: (retries: ${requestOptions.retries}, retry-exempt-status-code: ${(_a = retryOptions.doNotRetry) !== null && _a !== void 0 ? _a : 'octokit default: [400, 401, 403, 404, 422]'})`);\n return [retryOptions, requestOptions];\n}\nexports.getRetryOptions = getRetryOptions;\n//# sourceMappingURL=retry-options.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.internalArtifactTwirpClient = void 0;\nconst http_client_1 = require(\"@actions/http-client\");\nconst auth_1 = require(\"@actions/http-client/lib/auth\");\nconst core_1 = require(\"@actions/core\");\nconst generated_1 = require(\"../../generated\");\nconst config_1 = require(\"./config\");\nconst user_agent_1 = require(\"./user-agent\");\nconst errors_1 = require(\"./errors\");\nclass ArtifactHttpClient {\n constructor(userAgent, maxAttempts, baseRetryIntervalMilliseconds, retryMultiplier) {\n this.maxAttempts = 5;\n this.baseRetryIntervalMilliseconds = 3000;\n this.retryMultiplier = 1.5;\n const token = (0, config_1.getRuntimeToken)();\n this.baseUrl = (0, config_1.getResultsServiceUrl)();\n if (maxAttempts) {\n this.maxAttempts = maxAttempts;\n }\n if (baseRetryIntervalMilliseconds) {\n this.baseRetryIntervalMilliseconds = baseRetryIntervalMilliseconds;\n }\n if (retryMultiplier) {\n this.retryMultiplier = retryMultiplier;\n }\n this.httpClient = new http_client_1.HttpClient(userAgent, [\n new auth_1.BearerCredentialHandler(token)\n ]);\n }\n // This function satisfies the Rpc interface. It is compatible with the JSON\n // JSON generated client.\n request(service, method, contentType, data) {\n return __awaiter(this, void 0, void 0, function* () {\n const url = new URL(`/twirp/${service}/${method}`, this.baseUrl).href;\n (0, core_1.debug)(`[Request] ${method} ${url}`);\n const headers = {\n 'Content-Type': contentType\n };\n try {\n const { body } = yield this.retryableRequest(() => __awaiter(this, void 0, void 0, function* () { return this.httpClient.post(url, JSON.stringify(data), headers); }));\n return body;\n }\n catch (error) {\n throw new Error(`Failed to ${method}: ${error.message}`);\n }\n });\n }\n retryableRequest(operation) {\n return __awaiter(this, void 0, void 0, function* () {\n let attempt = 0;\n let errorMessage = '';\n let rawBody = '';\n while (attempt < this.maxAttempts) {\n let isRetryable = false;\n try {\n const response = yield operation();\n const statusCode = response.message.statusCode;\n rawBody = yield response.readBody();\n (0, core_1.debug)(`[Response] - ${response.message.statusCode}`);\n (0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);\n const body = JSON.parse(rawBody);\n (0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`);\n if (this.isSuccessStatusCode(statusCode)) {\n return { response, body };\n }\n isRetryable = this.isRetryableHttpStatusCode(statusCode);\n errorMessage = `Failed request: (${statusCode}) ${response.message.statusMessage}`;\n if (body.msg) {\n if (errors_1.UsageError.isUsageErrorMessage(body.msg)) {\n throw new errors_1.UsageError();\n }\n errorMessage = `${errorMessage}: ${body.msg}`;\n }\n }\n catch (error) {\n if (error instanceof SyntaxError) {\n (0, core_1.debug)(`Raw Body: ${rawBody}`);\n throw error;\n }\n if (error instanceof errors_1.UsageError) {\n throw error;\n }\n if (errors_1.NetworkError.isNetworkErrorCode(error === null || error === void 0 ? void 0 : error.code)) {\n throw new errors_1.NetworkError(error === null || error === void 0 ? void 0 : error.code);\n }\n isRetryable = true;\n errorMessage = error.message;\n }\n if (!isRetryable) {\n throw new Error(`Received non-retryable error: ${errorMessage}`);\n }\n if (attempt + 1 === this.maxAttempts) {\n throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${errorMessage}`);\n }\n const retryTimeMilliseconds = this.getExponentialRetryTimeMilliseconds(attempt);\n (0, core_1.info)(`Attempt ${attempt + 1} of ${this.maxAttempts} failed with error: ${errorMessage}. Retrying request in ${retryTimeMilliseconds} ms...`);\n yield this.sleep(retryTimeMilliseconds);\n attempt++;\n }\n throw new Error(`Request failed`);\n });\n }\n isSuccessStatusCode(statusCode) {\n if (!statusCode)\n return false;\n return statusCode >= 200 && statusCode < 300;\n }\n isRetryableHttpStatusCode(statusCode) {\n if (!statusCode)\n return false;\n const retryableStatusCodes = [\n http_client_1.HttpCodes.BadGateway,\n http_client_1.HttpCodes.GatewayTimeout,\n http_client_1.HttpCodes.InternalServerError,\n http_client_1.HttpCodes.ServiceUnavailable,\n http_client_1.HttpCodes.TooManyRequests\n ];\n return retryableStatusCodes.includes(statusCode);\n }\n sleep(milliseconds) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise(resolve => setTimeout(resolve, milliseconds));\n });\n }\n getExponentialRetryTimeMilliseconds(attempt) {\n if (attempt < 0) {\n throw new Error('attempt should be a positive integer');\n }\n if (attempt === 0) {\n return this.baseRetryIntervalMilliseconds;\n }\n const minTime = this.baseRetryIntervalMilliseconds * Math.pow(this.retryMultiplier, attempt);\n const maxTime = minTime * this.retryMultiplier;\n // returns a random number between minTime and maxTime (exclusive)\n return Math.trunc(Math.random() * (maxTime - minTime) + minTime);\n }\n}\nfunction internalArtifactTwirpClient(options) {\n const client = new ArtifactHttpClient((0, user_agent_1.getUserAgentString)(), options === null || options === void 0 ? void 0 : options.maxAttempts, options === null || options === void 0 ? void 0 : options.retryIntervalMs, options === null || options === void 0 ? void 0 : options.retryMultiplier);\n return new generated_1.ArtifactServiceClientJSON(client);\n}\nexports.internalArtifactTwirpClient = internalArtifactTwirpClient;\n//# sourceMappingURL=artifact-twirp-client.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getConcurrency = exports.getGitHubWorkspaceDir = exports.isGhes = exports.getResultsServiceUrl = exports.getRuntimeToken = exports.getUploadChunkSize = void 0;\nconst os_1 = __importDefault(require(\"os\"));\n// Used for controlling the highWaterMark value of the zip that is being streamed\n// The same value is used as the chunk size that is use during upload to blob storage\nfunction getUploadChunkSize() {\n return 8 * 1024 * 1024; // 8 MB Chunks\n}\nexports.getUploadChunkSize = getUploadChunkSize;\nfunction getRuntimeToken() {\n const token = process.env['ACTIONS_RUNTIME_TOKEN'];\n if (!token) {\n throw new Error('Unable to get the ACTIONS_RUNTIME_TOKEN env variable');\n }\n return token;\n}\nexports.getRuntimeToken = getRuntimeToken;\nfunction getResultsServiceUrl() {\n const resultsUrl = process.env['ACTIONS_RESULTS_URL'];\n if (!resultsUrl) {\n throw new Error('Unable to get the ACTIONS_RESULTS_URL env variable');\n }\n return new URL(resultsUrl).origin;\n}\nexports.getResultsServiceUrl = getResultsServiceUrl;\nfunction isGhes() {\n const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');\n const hostname = ghUrl.hostname.trimEnd().toUpperCase();\n const isGitHubHost = hostname === 'GITHUB.COM';\n const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST');\n return !isGitHubHost && !isGheHost;\n}\nexports.isGhes = isGhes;\nfunction getGitHubWorkspaceDir() {\n const ghWorkspaceDir = process.env['GITHUB_WORKSPACE'];\n if (!ghWorkspaceDir) {\n throw new Error('Unable to get the GITHUB_WORKSPACE env variable');\n }\n return ghWorkspaceDir;\n}\nexports.getGitHubWorkspaceDir = getGitHubWorkspaceDir;\n// Mimics behavior of azcopy: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-optimize\n// If your machine has fewer than 5 CPUs, then the value of this variable is set to 32.\n// Otherwise, the default value is equal to 16 multiplied by the number of CPUs. The maximum value of this variable is 300.\nfunction getConcurrency() {\n const numCPUs = os_1.default.cpus().length;\n if (numCPUs <= 4) {\n return 32;\n }\n const concurrency = 16 * numCPUs;\n return concurrency > 300 ? 300 : concurrency;\n}\nexports.getConcurrency = getConcurrency;\n//# sourceMappingURL=config.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UsageError = exports.NetworkError = exports.GHESNotSupportedError = exports.ArtifactNotFoundError = exports.InvalidResponseError = exports.FilesNotFoundError = void 0;\nclass FilesNotFoundError extends Error {\n constructor(files = []) {\n let message = 'No files were found to upload';\n if (files.length > 0) {\n message += `: ${files.join(', ')}`;\n }\n super(message);\n this.files = files;\n this.name = 'FilesNotFoundError';\n }\n}\nexports.FilesNotFoundError = FilesNotFoundError;\nclass InvalidResponseError extends Error {\n constructor(message) {\n super(message);\n this.name = 'InvalidResponseError';\n }\n}\nexports.InvalidResponseError = InvalidResponseError;\nclass ArtifactNotFoundError extends Error {\n constructor(message = 'Artifact not found') {\n super(message);\n this.name = 'ArtifactNotFoundError';\n }\n}\nexports.ArtifactNotFoundError = ArtifactNotFoundError;\nclass GHESNotSupportedError extends Error {\n constructor(message = '@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES.') {\n super(message);\n this.name = 'GHESNotSupportedError';\n }\n}\nexports.GHESNotSupportedError = GHESNotSupportedError;\nclass NetworkError extends Error {\n constructor(code) {\n const message = `Unable to make request: ${code}\\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`;\n super(message);\n this.code = code;\n this.name = 'NetworkError';\n }\n}\nexports.NetworkError = NetworkError;\nNetworkError.isNetworkErrorCode = (code) => {\n if (!code)\n return false;\n return [\n 'ECONNRESET',\n 'ENOTFOUND',\n 'ETIMEDOUT',\n 'ECONNREFUSED',\n 'EHOSTUNREACH'\n ].includes(code);\n};\nclass UsageError extends Error {\n constructor() {\n const message = `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`;\n super(message);\n this.name = 'UsageError';\n }\n}\nexports.UsageError = UsageError;\nUsageError.isUsageErrorMessage = (msg) => {\n if (!msg)\n return false;\n return msg.includes('insufficient usage');\n};\n//# sourceMappingURL=errors.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=interfaces.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUserAgentString = void 0;\n// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports\nconst packageJson = require('../../../package.json');\n/**\n * Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package\n */\nfunction getUserAgentString() {\n return `@actions/artifact-${packageJson.version}`;\n}\nexports.getUserAgentString = getUserAgentString;\n//# sourceMappingURL=user-agent.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBackendIdsFromToken = void 0;\nconst core = __importStar(require(\"@actions/core\"));\nconst config_1 = require(\"./config\");\nconst jwt_decode_1 = __importDefault(require(\"jwt-decode\"));\nconst InvalidJwtError = new Error('Failed to get backend IDs: The provided JWT token is invalid and/or missing claims');\n// uses the JWT token claims to get the\n// workflow run and workflow job run backend ids\nfunction getBackendIdsFromToken() {\n const token = (0, config_1.getRuntimeToken)();\n const decoded = (0, jwt_decode_1.default)(token);\n if (!decoded.scp) {\n throw InvalidJwtError;\n }\n /*\n * example decoded:\n * {\n * scp: \"Actions.ExampleScope Actions.Results:ce7f54c7-61c7-4aae-887f-30da475f5f1a:ca395085-040a-526b-2ce8-bdc85f692774\"\n * }\n */\n const scpParts = decoded.scp.split(' ');\n if (scpParts.length === 0) {\n throw InvalidJwtError;\n }\n /*\n * example scpParts:\n * [\"Actions.ExampleScope\", \"Actions.Results:ce7f54c7-61c7-4aae-887f-30da475f5f1a:ca395085-040a-526b-2ce8-bdc85f692774\"]\n */\n for (const scopes of scpParts) {\n const scopeParts = scopes.split(':');\n if ((scopeParts === null || scopeParts === void 0 ? void 0 : scopeParts[0]) !== 'Actions.Results') {\n // not the Actions.Results scope\n continue;\n }\n /*\n * example scopeParts:\n * [\"Actions.Results\", \"ce7f54c7-61c7-4aae-887f-30da475f5f1a\", \"ca395085-040a-526b-2ce8-bdc85f692774\"]\n */\n if (scopeParts.length !== 3) {\n // missing expected number of claims\n throw InvalidJwtError;\n }\n const ids = {\n workflowRunBackendId: scopeParts[1],\n workflowJobRunBackendId: scopeParts[2]\n };\n core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`);\n core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`);\n return ids;\n }\n throw InvalidJwtError;\n}\nexports.getBackendIdsFromToken = getBackendIdsFromToken;\n//# sourceMappingURL=util.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uploadZipToBlobStorage = void 0;\nconst storage_blob_1 = require(\"@azure/storage-blob\");\nconst config_1 = require(\"../shared/config\");\nconst core = __importStar(require(\"@actions/core\"));\nconst crypto = __importStar(require(\"crypto\"));\nconst stream = __importStar(require(\"stream\"));\nconst errors_1 = require(\"../shared/errors\");\nfunction uploadZipToBlobStorage(authenticatedUploadURL, zipUploadStream) {\n return __awaiter(this, void 0, void 0, function* () {\n let uploadByteCount = 0;\n let lastProgressTime = Date.now();\n let timeoutId;\n const chunkTimer = (timeout) => {\n // clear the previous timeout\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n const now = Date.now();\n // if there's been more than 30 seconds since the\n // last progress event, then we'll consider the upload stalled\n if (now - lastProgressTime > timeout) {\n throw new Error('Upload progress stalled.');\n }\n }, timeout);\n return timeoutId;\n };\n const maxConcurrency = (0, config_1.getConcurrency)();\n const bufferSize = (0, config_1.getUploadChunkSize)();\n const blobClient = new storage_blob_1.BlobClient(authenticatedUploadURL);\n const blockBlobClient = blobClient.getBlockBlobClient();\n const timeoutDuration = 300000; // 30 seconds\n core.debug(`Uploading artifact zip to blob storage with maxConcurrency: ${maxConcurrency}, bufferSize: ${bufferSize}`);\n const uploadCallback = (progress) => {\n core.info(`Uploaded bytes ${progress.loadedBytes}`);\n uploadByteCount = progress.loadedBytes;\n chunkTimer(timeoutDuration);\n lastProgressTime = Date.now();\n };\n const options = {\n blobHTTPHeaders: { blobContentType: 'zip' },\n onProgress: uploadCallback\n };\n let sha256Hash = undefined;\n const uploadStream = new stream.PassThrough();\n const hashStream = crypto.createHash('sha256');\n zipUploadStream.pipe(uploadStream); // This stream is used for the upload\n zipUploadStream.pipe(hashStream).setEncoding('hex'); // This stream is used to compute a hash of the zip content that gets used. Integrity check\n core.info('Beginning upload of artifact content to blob storage');\n try {\n // Start the chunk timer\n timeoutId = chunkTimer(timeoutDuration);\n yield blockBlobClient.uploadStream(uploadStream, bufferSize, maxConcurrency, options);\n }\n catch (error) {\n if (errors_1.NetworkError.isNetworkErrorCode(error === null || error === void 0 ? void 0 : error.code)) {\n throw new errors_1.NetworkError(error === null || error === void 0 ? void 0 : error.code);\n }\n throw error;\n }\n finally {\n // clear the timeout whether or not the upload completes\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n }\n core.info('Finished uploading artifact content to blob storage!');\n hashStream.end();\n sha256Hash = hashStream.read();\n core.info(`SHA256 hash of uploaded artifact zip is ${sha256Hash}`);\n if (uploadByteCount === 0) {\n core.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`);\n }\n return {\n uploadSize: uploadByteCount,\n sha256Hash\n };\n });\n}\nexports.uploadZipToBlobStorage = uploadZipToBlobStorage;\n//# sourceMappingURL=blob-upload.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateFilePath = exports.validateArtifactName = void 0;\nconst core_1 = require(\"@actions/core\");\n/**\n * Invalid characters that cannot be in the artifact name or an uploaded file. Will be rejected\n * from the server if attempted to be sent over. These characters are not allowed due to limitations with certain\n * file systems such as NTFS. To maintain platform-agnostic behavior, all characters that are not supported by an\n * individual filesystem/platform will not be supported on all fileSystems/platforms\n *\n * FilePaths can include characters such as \\ and / which are not permitted in the artifact name alone\n */\nconst invalidArtifactFilePathCharacters = new Map([\n ['\"', ' Double quote \"'],\n [':', ' Colon :'],\n ['<', ' Less than <'],\n ['>', ' Greater than >'],\n ['|', ' Vertical bar |'],\n ['*', ' Asterisk *'],\n ['?', ' Question mark ?'],\n ['\\r', ' Carriage return \\\\r'],\n ['\\n', ' Line feed \\\\n']\n]);\nconst invalidArtifactNameCharacters = new Map([\n ...invalidArtifactFilePathCharacters,\n ['\\\\', ' Backslash \\\\'],\n ['/', ' Forward slash /']\n]);\n/**\n * Validates the name of the artifact to check to make sure there are no illegal characters\n */\nfunction validateArtifactName(name) {\n if (!name) {\n throw new Error(`Provided artifact name input during validation is empty`);\n }\n for (const [invalidCharacterKey, errorMessageForCharacter] of invalidArtifactNameCharacters) {\n if (name.includes(invalidCharacterKey)) {\n throw new Error(`The artifact name is not valid: ${name}. Contains the following character: ${errorMessageForCharacter}\n \nInvalid characters include: ${Array.from(invalidArtifactNameCharacters.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.`);\n }\n }\n (0, core_1.info)(`Artifact name is valid!`);\n}\nexports.validateArtifactName = validateArtifactName;\n/**\n * Validates file paths to check for any illegal characters that can cause problems on different file systems\n */\nfunction validateFilePath(path) {\n if (!path) {\n throw new Error(`Provided file path input during validation is empty`);\n }\n for (const [invalidCharacterKey, errorMessageForCharacter] of invalidArtifactFilePathCharacters) {\n if (path.includes(invalidCharacterKey)) {\n throw new Error(`The path for one of the files in artifact is not valid: ${path}. Contains the following character: ${errorMessageForCharacter}\n \nInvalid characters include: ${Array.from(invalidArtifactFilePathCharacters.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 `);\n }\n }\n}\nexports.validateFilePath = validateFilePath;\n//# sourceMappingURL=path-and-artifact-name-validation.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getExpiration = void 0;\nconst generated_1 = require(\"../../generated\");\nconst core = __importStar(require(\"@actions/core\"));\nfunction getExpiration(retentionDays) {\n if (!retentionDays) {\n return undefined;\n }\n const maxRetentionDays = getRetentionDays();\n if (maxRetentionDays && maxRetentionDays < retentionDays) {\n core.warning(`Retention days cannot be greater than the maximum allowed retention set within the repository. Using ${maxRetentionDays} instead.`);\n retentionDays = maxRetentionDays;\n }\n const expirationDate = new Date();\n expirationDate.setDate(expirationDate.getDate() + retentionDays);\n return generated_1.Timestamp.fromDate(expirationDate);\n}\nexports.getExpiration = getExpiration;\nfunction getRetentionDays() {\n const retentionDays = process.env['GITHUB_RETENTION_DAYS'];\n if (!retentionDays) {\n return undefined;\n }\n const days = parseInt(retentionDays);\n if (isNaN(days)) {\n return undefined;\n }\n return days;\n}\n//# sourceMappingURL=retention.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uploadArtifact = void 0;\nconst core = __importStar(require(\"@actions/core\"));\nconst retention_1 = require(\"./retention\");\nconst path_and_artifact_name_validation_1 = require(\"./path-and-artifact-name-validation\");\nconst artifact_twirp_client_1 = require(\"../shared/artifact-twirp-client\");\nconst upload_zip_specification_1 = require(\"./upload-zip-specification\");\nconst util_1 = require(\"../shared/util\");\nconst blob_upload_1 = require(\"./blob-upload\");\nconst zip_1 = require(\"./zip\");\nconst generated_1 = require(\"../../generated\");\nconst errors_1 = require(\"../shared/errors\");\nfunction uploadArtifact(name, files, rootDirectory, options) {\n return __awaiter(this, void 0, void 0, function* () {\n (0, path_and_artifact_name_validation_1.validateArtifactName)(name);\n (0, upload_zip_specification_1.validateRootDirectory)(rootDirectory);\n const zipSpecification = (0, upload_zip_specification_1.getUploadZipSpecification)(files, rootDirectory);\n if (zipSpecification.length === 0) {\n throw new errors_1.FilesNotFoundError(zipSpecification.flatMap(s => (s.sourcePath ? [s.sourcePath] : [])));\n }\n // get the IDs needed for the artifact creation\n const backendIds = (0, util_1.getBackendIdsFromToken)();\n // create the artifact client\n const artifactClient = (0, artifact_twirp_client_1.internalArtifactTwirpClient)();\n // create the artifact\n const createArtifactReq = {\n workflowRunBackendId: backendIds.workflowRunBackendId,\n workflowJobRunBackendId: backendIds.workflowJobRunBackendId,\n name,\n version: 4\n };\n // if there is a retention period, add it to the request\n const expiresAt = (0, retention_1.getExpiration)(options === null || options === void 0 ? void 0 : options.retentionDays);\n if (expiresAt) {\n createArtifactReq.expiresAt = expiresAt;\n }\n const createArtifactResp = yield artifactClient.CreateArtifact(createArtifactReq);\n if (!createArtifactResp.ok) {\n throw new errors_1.InvalidResponseError('CreateArtifact: response from backend was not ok');\n }\n const zipUploadStream = yield (0, zip_1.createZipUploadStream)(zipSpecification, options === null || options === void 0 ? void 0 : options.compressionLevel);\n // Upload zip to blob storage\n const uploadResult = yield (0, blob_upload_1.uploadZipToBlobStorage)(createArtifactResp.signedUploadUrl, zipUploadStream);\n // finalize the artifact\n const finalizeArtifactReq = {\n workflowRunBackendId: backendIds.workflowRunBackendId,\n workflowJobRunBackendId: backendIds.workflowJobRunBackendId,\n name,\n size: uploadResult.uploadSize ? uploadResult.uploadSize.toString() : '0'\n };\n if (uploadResult.sha256Hash) {\n finalizeArtifactReq.hash = generated_1.StringValue.create({\n value: `sha256:${uploadResult.sha256Hash}`\n });\n }\n core.info(`Finalizing artifact upload`);\n const finalizeArtifactResp = yield artifactClient.FinalizeArtifact(finalizeArtifactReq);\n if (!finalizeArtifactResp.ok) {\n throw new errors_1.InvalidResponseError('FinalizeArtifact: response from backend was not ok');\n }\n const artifactId = BigInt(finalizeArtifactResp.artifactId);\n core.info(`Artifact ${name}.zip successfully finalized. Artifact ID ${artifactId}`);\n return {\n size: uploadResult.uploadSize,\n id: Number(artifactId)\n };\n });\n}\nexports.uploadArtifact = uploadArtifact;\n//# sourceMappingURL=upload-artifact.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUploadZipSpecification = exports.validateRootDirectory = void 0;\nconst fs = __importStar(require(\"fs\"));\nconst core_1 = require(\"@actions/core\");\nconst path_1 = require(\"path\");\nconst path_and_artifact_name_validation_1 = require(\"./path-and-artifact-name-validation\");\n/**\n * Checks if a root directory exists and is valid\n * @param rootDirectory an absolute root directory path common to all input files that that will be trimmed from the final zip structure\n */\nfunction validateRootDirectory(rootDirectory) {\n if (!fs.existsSync(rootDirectory)) {\n throw new Error(`The provided rootDirectory ${rootDirectory} does not exist`);\n }\n if (!fs.statSync(rootDirectory).isDirectory()) {\n throw new Error(`The provided rootDirectory ${rootDirectory} is not a valid directory`);\n }\n (0, core_1.info)(`Root directory input is valid!`);\n}\nexports.validateRootDirectory = validateRootDirectory;\n/**\n * Creates a specification that describes how a zip file will be created for a set of input files\n * @param filesToZip a list of file that should be included in the zip\n * @param rootDirectory an absolute root directory path common to all input files that that will be trimmed from the final zip structure\n */\nfunction getUploadZipSpecification(filesToZip, rootDirectory) {\n const specification = [];\n // Normalize and resolve, this allows for either absolute or relative paths to be used\n rootDirectory = (0, path_1.normalize)(rootDirectory);\n rootDirectory = (0, path_1.resolve)(rootDirectory);\n /*\n Example\n \n Input:\n rootDirectory: '/home/user/files/plz-upload'\n artifactFiles: [\n '/home/user/files/plz-upload/file1.txt',\n '/home/user/files/plz-upload/file2.txt',\n '/home/user/files/plz-upload/dir/file3.txt'\n ]\n \n Output:\n specifications: [\n ['/home/user/files/plz-upload/file1.txt', '/file1.txt'],\n ['/home/user/files/plz-upload/file1.txt', '/file2.txt'],\n ['/home/user/files/plz-upload/file1.txt', '/dir/file3.txt']\n ]\n \n The final zip that is later uploaded will look like this:\n \n my-artifact.zip\n - file.txt\n - file2.txt\n - dir/\n - file3.txt\n */\n for (let file of filesToZip) {\n if (!fs.existsSync(file)) {\n throw new Error(`File ${file} does not exist`);\n }\n if (!fs.statSync(file).isDirectory()) {\n // Normalize and resolve, this allows for either absolute or relative paths to be used\n file = (0, path_1.normalize)(file);\n file = (0, path_1.resolve)(file);\n if (!file.startsWith(rootDirectory)) {\n throw new Error(`The rootDirectory: ${rootDirectory} is not a parent directory of the file: ${file}`);\n }\n // Check for forbidden characters in file paths that may cause ambiguous behavior if downloaded on different file systems\n const uploadPath = file.replace(rootDirectory, '');\n (0, path_and_artifact_name_validation_1.validateFilePath)(uploadPath);\n specification.push({\n sourcePath: file,\n destinationPath: uploadPath\n });\n }\n else {\n // Empty directory\n const directoryPath = file.replace(rootDirectory, '');\n (0, path_and_artifact_name_validation_1.validateFilePath)(directoryPath);\n specification.push({\n sourcePath: null,\n destinationPath: directoryPath\n });\n }\n }\n return specification;\n}\nexports.getUploadZipSpecification = getUploadZipSpecification;\n//# sourceMappingURL=upload-zip-specification.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createZipUploadStream = exports.ZipUploadStream = exports.DEFAULT_COMPRESSION_LEVEL = void 0;\nconst stream = __importStar(require(\"stream\"));\nconst archiver = __importStar(require(\"archiver\"));\nconst core = __importStar(require(\"@actions/core\"));\nconst fs_1 = require(\"fs\");\nconst config_1 = require(\"../shared/config\");\nexports.DEFAULT_COMPRESSION_LEVEL = 6;\n// Custom stream transformer so we can set the highWaterMark property\n// See https://github.com/nodejs/node/issues/8855\nclass ZipUploadStream extends stream.Transform {\n constructor(bufferSize) {\n super({\n highWaterMark: bufferSize\n });\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _transform(chunk, enc, cb) {\n cb(null, chunk);\n }\n}\nexports.ZipUploadStream = ZipUploadStream;\nfunction createZipUploadStream(uploadSpecification, compressionLevel = exports.DEFAULT_COMPRESSION_LEVEL) {\n return __awaiter(this, void 0, void 0, function* () {\n core.debug(`Creating Artifact archive with compressionLevel: ${compressionLevel}`);\n const zip = archiver.create('zip', {\n highWaterMark: (0, config_1.getUploadChunkSize)(),\n zlib: { level: compressionLevel }\n });\n // register callbacks for various events during the zip lifecycle\n zip.on('error', zipErrorCallback);\n zip.on('warning', zipWarningCallback);\n zip.on('finish', zipFinishCallback);\n zip.on('end', zipEndCallback);\n for (const file of uploadSpecification) {\n if (file.sourcePath !== null) {\n // Add a normal file to the zip\n zip.append((0, fs_1.createReadStream)(file.sourcePath), {\n name: file.destinationPath\n });\n }\n else {\n // Add a directory to the zip\n zip.append('', { name: file.destinationPath });\n }\n }\n const bufferSize = (0, config_1.getUploadChunkSize)();\n const zipUploadStream = new ZipUploadStream(bufferSize);\n core.debug(`Zip write high watermark value ${zipUploadStream.writableHighWaterMark}`);\n core.debug(`Zip read high watermark value ${zipUploadStream.readableHighWaterMark}`);\n zip.pipe(zipUploadStream);\n zip.finalize();\n return zipUploadStream;\n });\n}\nexports.createZipUploadStream = createZipUploadStream;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst zipErrorCallback = (error) => {\n core.error('An error has occurred while creating the zip file for upload');\n core.info(error);\n throw new Error('An error has occurred during zip creation for the artifact');\n};\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst zipWarningCallback = (error) => {\n if (error.code === 'ENOENT') {\n core.warning('ENOENT warning during artifact zip creation. No such file or directory');\n core.info(error);\n }\n else {\n core.warning(`A non-blocking warning has occurred during artifact zip creation: ${error.code}`);\n core.info(error);\n }\n};\nconst zipFinishCallback = () => {\n core.debug('Zip stream for upload has finished.');\n};\nconst zipEndCallback = () => {\n core.debug('Zip stream for upload has ended.');\n};\n//# sourceMappingURL=zip.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.issue = exports.issueCommand = void 0;\nconst os = __importStar(require(\"os\"));\nconst utils_1 = require(\"./utils\");\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */\nfunction issueCommand(command, properties, message) {\n const cmd = new Command(command, properties, message);\n process.stdout.write(cmd.toString() + os.EOL);\n}\nexports.issueCommand = issueCommand;\nfunction issue(name, message = '') {\n issueCommand(name, {}, message);\n}\nexports.issue = issue;\nconst CMD_STRING = '::';\nclass Command {\n constructor(command, properties, message) {\n if (!command) {\n command = 'missing.command';\n }\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += ' ';\n let first = true;\n for (const key in this.properties) {\n if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) {\n first = false;\n }\n else {\n cmdStr += ',';\n }\n cmdStr += `${key}=${escapeProperty(val)}`;\n }\n }\n }\n }\n cmdStr += `${CMD_STRING}${escapeData(this.message)}`;\n return cmdStr;\n }\n}\nfunction escapeData(s) {\n return utils_1.toCommandValue(s)\n .replace(/%/g, '%25')\n .replace(/\\r/g, '%0D')\n .replace(/\\n/g, '%0A');\n}\nfunction escapeProperty(s) {\n return utils_1.toCommandValue(s)\n .replace(/%/g, '%25')\n .replace(/\\r/g, '%0D')\n .replace(/\\n/g, '%0A')\n .replace(/:/g, '%3A')\n .replace(/,/g, '%2C');\n}\n//# sourceMappingURL=command.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;\nconst command_1 = require(\"./command\");\nconst file_command_1 = require(\"./file-command\");\nconst utils_1 = require(\"./utils\");\nconst os = __importStar(require(\"os\"));\nconst path = __importStar(require(\"path\"));\nconst oidc_utils_1 = require(\"./oidc-utils\");\n/**\n * The code to exit an action\n */\nvar ExitCode;\n(function (ExitCode) {\n /**\n * A code indicating that the action was successful\n */\n ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */\n ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction exportVariable(name, val) {\n const convertedVal = utils_1.toCommandValue(val);\n process.env[name] = convertedVal;\n const filePath = process.env['GITHUB_ENV'] || '';\n if (filePath) {\n return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));\n }\n command_1.issueCommand('set-env', { name }, convertedVal);\n}\nexports.exportVariable = exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */\nfunction setSecret(secret) {\n command_1.issueCommand('add-mask', {}, secret);\n}\nexports.setSecret = setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */\nfunction addPath(inputPath) {\n const filePath = process.env['GITHUB_PATH'] || '';\n if (filePath) {\n file_command_1.issueFileCommand('PATH', inputPath);\n }\n else {\n command_1.issueCommand('add-path', {}, inputPath);\n }\n process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;\n}\nexports.addPath = addPath;\n/**\n * Gets the value of an input.\n * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.\n * Returns an empty string if the value is not defined.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */\nfunction getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}\nexports.getInput = getInput;\n/**\n * Gets the values of an multiline input. Each value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string[]\n *\n */\nfunction getMultilineInput(name, options) {\n const inputs = getInput(name, options)\n .split('\\n')\n .filter(x => x !== '');\n if (options && options.trimWhitespace === false) {\n return inputs;\n }\n return inputs.map(input => input.trim());\n}\nexports.getMultilineInput = getMultilineInput;\n/**\n * Gets the input value of the boolean type in the YAML 1.2 \"core schema\" specification.\n * Support boolean input list: `true | True | TRUE | false | False | FALSE` .\n * The return value is also in boolean type.\n * ref: https://yaml.org/spec/1.2/spec.html#id2804923\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns boolean\n */\nfunction getBooleanInput(name, options) {\n const trueValue = ['true', 'True', 'TRUE'];\n const falseValue = ['false', 'False', 'FALSE'];\n const val = getInput(name, options);\n if (trueValue.includes(val))\n return true;\n if (falseValue.includes(val))\n return false;\n throw new TypeError(`Input does not meet YAML 1.2 \"Core Schema\" specification: ${name}\\n` +\n `Support boolean input list: \\`true | True | TRUE | false | False | FALSE\\``);\n}\nexports.getBooleanInput = getBooleanInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction setOutput(name, value) {\n const filePath = process.env['GITHUB_OUTPUT'] || '';\n if (filePath) {\n return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));\n }\n process.stdout.write(os.EOL);\n command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));\n}\nexports.setOutput = setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */\nfunction setCommandEcho(enabled) {\n command_1.issue('echo', enabled ? 'on' : 'off');\n}\nexports.setCommandEcho = setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */\nfunction setFailed(message) {\n process.exitCode = ExitCode.Failure;\n error(message);\n}\nexports.setFailed = setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */\nfunction isDebug() {\n return process.env['RUNNER_DEBUG'] === '1';\n}\nexports.isDebug = isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */\nfunction debug(message) {\n command_1.issueCommand('debug', {}, message);\n}\nexports.debug = debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */\nfunction error(message, properties = {}) {\n command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nexports.error = error;\n/**\n * Adds a warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */\nfunction warning(message, properties = {}) {\n command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nexports.warning = warning;\n/**\n * Adds a notice issue\n * @param message notice issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */\nfunction notice(message, properties = {}) {\n command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nexports.notice = notice;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */\nfunction info(message) {\n process.stdout.write(message + os.EOL);\n}\nexports.info = info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */\nfunction startGroup(name) {\n command_1.issue('group', name);\n}\nexports.startGroup = startGroup;\n/**\n * End an output group.\n */\nfunction endGroup() {\n command_1.issue('endgroup');\n}\nexports.endGroup = endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */\nfunction group(name, fn) {\n return __awaiter(this, void 0, void 0, function* () {\n startGroup(name);\n let result;\n try {\n result = yield fn();\n }\n finally {\n endGroup();\n }\n return result;\n });\n}\nexports.group = group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction saveState(name, value) {\n const filePath = process.env['GITHUB_STATE'] || '';\n if (filePath) {\n return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));\n }\n command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));\n}\nexports.saveState = saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */\nfunction getState(name) {\n return process.env[`STATE_${name}`] || '';\n}\nexports.getState = getState;\nfunction getIDToken(aud) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield oidc_utils_1.OidcClient.getIDToken(aud);\n });\n}\nexports.getIDToken = getIDToken;\n/**\n * Summary exports\n */\nvar summary_1 = require(\"./summary\");\nObject.defineProperty(exports, \"summary\", { enumerable: true, get: function () { return summary_1.summary; } });\n/**\n * @deprecated use core.summary\n */\nvar summary_2 = require(\"./summary\");\nObject.defineProperty(exports, \"markdownSummary\", { enumerable: true, get: function () { return summary_2.markdownSummary; } });\n/**\n * Path exports\n */\nvar path_utils_1 = require(\"./path-utils\");\nObject.defineProperty(exports, \"toPosixPath\", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } });\nObject.defineProperty(exports, \"toWin32Path\", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } });\nObject.defineProperty(exports, \"toPlatformPath\", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } });\n//# sourceMappingURL=core.js.map","\"use strict\";\n// For internal use, subject to change.\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.prepareKeyValueMessage = exports.issueFileCommand = void 0;\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */\nconst fs = __importStar(require(\"fs\"));\nconst os = __importStar(require(\"os\"));\nconst uuid_1 = require(\"uuid\");\nconst utils_1 = require(\"./utils\");\nfunction issueFileCommand(command, message) {\n const filePath = process.env[`GITHUB_${command}`];\n if (!filePath) {\n throw new Error(`Unable to find environment variable for file command ${command}`);\n }\n if (!fs.existsSync(filePath)) {\n throw new Error(`Missing file at path: ${filePath}`);\n }\n fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {\n encoding: 'utf8'\n });\n}\nexports.issueFileCommand = issueFileCommand;\nfunction prepareKeyValueMessage(key, value) {\n const delimiter = `ghadelimiter_${uuid_1.v4()}`;\n const convertedValue = utils_1.toCommandValue(value);\n // These should realistically never happen, but just in case someone finds a\n // way to exploit uuid generation let's not allow keys or values that contain\n // the delimiter.\n if (key.includes(delimiter)) {\n throw new Error(`Unexpected input: name should not contain the delimiter \"${delimiter}\"`);\n }\n if (convertedValue.includes(delimiter)) {\n throw new Error(`Unexpected input: value should not contain the delimiter \"${delimiter}\"`);\n }\n return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;\n}\nexports.prepareKeyValueMessage = prepareKeyValueMessage;\n//# sourceMappingURL=file-command.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OidcClient = void 0;\nconst http_client_1 = require(\"@actions/http-client\");\nconst auth_1 = require(\"@actions/http-client/lib/auth\");\nconst core_1 = require(\"./core\");\nclass OidcClient {\n static createHttpClient(allowRetry = true, maxRetry = 10) {\n const requestOptions = {\n allowRetries: allowRetry,\n maxRetries: maxRetry\n };\n return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);\n }\n static getRequestToken() {\n const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];\n if (!token) {\n throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');\n }\n return token;\n }\n static getIDTokenUrl() {\n const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];\n if (!runtimeUrl) {\n throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');\n }\n return runtimeUrl;\n }\n static getCall(id_token_url) {\n var _a;\n return __awaiter(this, void 0, void 0, function* () {\n const httpclient = OidcClient.createHttpClient();\n const res = yield httpclient\n .getJson(id_token_url)\n .catch(error => {\n throw new Error(`Failed to get ID Token. \\n \n Error Code : ${error.statusCode}\\n \n Error Message: ${error.message}`);\n });\n const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;\n if (!id_token) {\n throw new Error('Response json body do not have ID Token field');\n }\n return id_token;\n });\n }\n static getIDToken(audience) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n // New ID Token is requested from action service\n let id_token_url = OidcClient.getIDTokenUrl();\n if (audience) {\n const encodedAudience = encodeURIComponent(audience);\n id_token_url = `${id_token_url}&audience=${encodedAudience}`;\n }\n core_1.debug(`ID token url is ${id_token_url}`);\n const id_token = yield OidcClient.getCall(id_token_url);\n core_1.setSecret(id_token);\n return id_token;\n }\n catch (error) {\n throw new Error(`Error message: ${error.message}`);\n }\n });\n }\n}\nexports.OidcClient = OidcClient;\n//# sourceMappingURL=oidc-utils.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;\nconst path = __importStar(require(\"path\"));\n/**\n * toPosixPath converts the given path to the posix form. On Windows, \\\\ will be\n * replaced with /.\n *\n * @param pth. Path to transform.\n * @return string Posix path.\n */\nfunction toPosixPath(pth) {\n return pth.replace(/[\\\\]/g, '/');\n}\nexports.toPosixPath = toPosixPath;\n/**\n * toWin32Path converts the given path to the win32 form. On Linux, / will be\n * replaced with \\\\.\n *\n * @param pth. Path to transform.\n * @return string Win32 path.\n */\nfunction toWin32Path(pth) {\n return pth.replace(/[/]/g, '\\\\');\n}\nexports.toWin32Path = toWin32Path;\n/**\n * toPlatformPath converts the given path to a platform-specific path. It does\n * this by replacing instances of / and \\ with the platform-specific path\n * separator.\n *\n * @param pth The path to platformize.\n * @return string The platform-specific path.\n */\nfunction toPlatformPath(pth) {\n return pth.replace(/[/\\\\]/g, path.sep);\n}\nexports.toPlatformPath = toPlatformPath;\n//# sourceMappingURL=path-utils.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;\nconst os_1 = require(\"os\");\nconst fs_1 = require(\"fs\");\nconst { access, appendFile, writeFile } = fs_1.promises;\nexports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';\nexports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';\nclass Summary {\n constructor() {\n this._buffer = '';\n }\n /**\n * Finds the summary file path from the environment, rejects if env var is not found or file does not exist\n * Also checks r/w permissions.\n *\n * @returns step summary file path\n */\n filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }\n /**\n * Wraps content in an HTML tag, adding any HTML attributes\n *\n * @param {string} tag HTML tag to wrap\n * @param {string | null} content content within the tag\n * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add\n *\n * @returns {string} content wrapped in HTML element\n */\n wrap(tag, content, attrs = {}) {\n const htmlAttrs = Object.entries(attrs)\n .map(([key, value]) => ` ${key}=\"${value}\"`)\n .join('');\n if (!content) {\n return `<${tag}${htmlAttrs}>`;\n }\n return `<${tag}${htmlAttrs}>${content}`;\n }\n /**\n * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.\n *\n * @param {SummaryWriteOptions} [options] (optional) options for write operation\n *\n * @returns {Promise} summary instance\n */\n write(options) {\n return __awaiter(this, void 0, void 0, function* () {\n const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);\n const filePath = yield this.filePath();\n const writeFunc = overwrite ? writeFile : appendFile;\n yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });\n return this.emptyBuffer();\n });\n }\n /**\n * Clears the summary buffer and wipes the summary file\n *\n * @returns {Summary} summary instance\n */\n clear() {\n return __awaiter(this, void 0, void 0, function* () {\n return this.emptyBuffer().write({ overwrite: true });\n });\n }\n /**\n * Returns the current summary buffer as a string\n *\n * @returns {string} string of summary buffer\n */\n stringify() {\n return this._buffer;\n }\n /**\n * If the summary buffer is empty\n *\n * @returns {boolen} true if the buffer is empty\n */\n isEmptyBuffer() {\n return this._buffer.length === 0;\n }\n /**\n * Resets the summary buffer without writing to summary file\n *\n * @returns {Summary} summary instance\n */\n emptyBuffer() {\n this._buffer = '';\n return this;\n }\n /**\n * Adds raw text to the summary buffer\n *\n * @param {string} text content to add\n * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)\n *\n * @returns {Summary} summary instance\n */\n addRaw(text, addEOL = false) {\n this._buffer += text;\n return addEOL ? this.addEOL() : this;\n }\n /**\n * Adds the operating system-specific end-of-line marker to the buffer\n *\n * @returns {Summary} summary instance\n */\n addEOL() {\n return this.addRaw(os_1.EOL);\n }\n /**\n * Adds an HTML codeblock to the summary buffer\n *\n * @param {string} code content to render within fenced code block\n * @param {string} lang (optional) language to syntax highlight code\n *\n * @returns {Summary} summary instance\n */\n addCodeBlock(code, lang) {\n const attrs = Object.assign({}, (lang && { lang }));\n const element = this.wrap('pre', this.wrap('code', code), attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML list to the summary buffer\n *\n * @param {string[]} items list of items to render\n * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)\n *\n * @returns {Summary} summary instance\n */\n addList(items, ordered = false) {\n const tag = ordered ? 'ol' : 'ul';\n const listItems = items.map(item => this.wrap('li', item)).join('');\n const element = this.wrap(tag, listItems);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML table to the summary buffer\n *\n * @param {SummaryTableCell[]} rows table rows\n *\n * @returns {Summary} summary instance\n */\n addTable(rows) {\n const tableBody = rows\n .map(row => {\n const cells = row\n .map(cell => {\n if (typeof cell === 'string') {\n return this.wrap('td', cell);\n }\n const { header, data, colspan, rowspan } = cell;\n const tag = header ? 'th' : 'td';\n const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));\n return this.wrap(tag, data, attrs);\n })\n .join('');\n return this.wrap('tr', cells);\n })\n .join('');\n const element = this.wrap('table', tableBody);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds a collapsable HTML details element to the summary buffer\n *\n * @param {string} label text for the closed state\n * @param {string} content collapsable content\n *\n * @returns {Summary} summary instance\n */\n addDetails(label, content) {\n const element = this.wrap('details', this.wrap('summary', label) + content);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML image tag to the summary buffer\n *\n * @param {string} src path to the image you to embed\n * @param {string} alt text description of the image\n * @param {SummaryImageOptions} options (optional) addition image attributes\n *\n * @returns {Summary} summary instance\n */\n addImage(src, alt, options) {\n const { width, height } = options || {};\n const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));\n const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML section heading element\n *\n * @param {string} text heading text\n * @param {number | string} [level=1] (optional) the heading level, default: 1\n *\n * @returns {Summary} summary instance\n */\n addHeading(text, level) {\n const tag = `h${level}`;\n const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)\n ? tag\n : 'h1';\n const element = this.wrap(allowedTag, text);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML thematic break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */\n addSeparator() {\n const element = this.wrap('hr', null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML line break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */\n addBreak() {\n const element = this.wrap('br', null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML blockquote to the summary buffer\n *\n * @param {string} text quote text\n * @param {string} cite (optional) citation url\n *\n * @returns {Summary} summary instance\n */\n addQuote(text, cite) {\n const attrs = Object.assign({}, (cite && { cite }));\n const element = this.wrap('blockquote', text, attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML anchor tag to the summary buffer\n *\n * @param {string} text link text/content\n * @param {string} href hyperlink\n *\n * @returns {Summary} summary instance\n */\n addLink(text, href) {\n const element = this.wrap('a', text, { href });\n return this.addRaw(element).addEOL();\n }\n}\nconst _summary = new Summary();\n/**\n * @deprecated use `core.summary`\n */\nexports.markdownSummary = _summary;\nexports.summary = _summary;\n//# sourceMappingURL=summary.js.map","\"use strict\";\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toCommandProperties = exports.toCommandValue = void 0;\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */\nfunction toCommandValue(input) {\n if (input === null || input === undefined) {\n return '';\n }\n else if (typeof input === 'string' || input instanceof String) {\n return input;\n }\n return JSON.stringify(input);\n}\nexports.toCommandValue = toCommandValue;\n/**\n *\n * @param annotationProperties\n * @returns The command properties to send with the actual annotation command\n * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646\n */\nfunction toCommandProperties(annotationProperties) {\n if (!Object.keys(annotationProperties).length) {\n return {};\n }\n return {\n title: annotationProperties.title,\n file: annotationProperties.file,\n line: annotationProperties.startLine,\n endLine: annotationProperties.endLine,\n col: annotationProperties.startColumn,\n endColumn: annotationProperties.endColumn\n };\n}\nexports.toCommandProperties = toCommandProperties;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Context = void 0;\nconst fs_1 = require(\"fs\");\nconst os_1 = require(\"os\");\nclass Context {\n /**\n * Hydrate the context from the environment\n */\n constructor() {\n var _a, _b, _c;\n this.payload = {};\n if (process.env.GITHUB_EVENT_PATH) {\n if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) {\n this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));\n }\n else {\n const path = process.env.GITHUB_EVENT_PATH;\n process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);\n }\n }\n this.eventName = process.env.GITHUB_EVENT_NAME;\n this.sha = process.env.GITHUB_SHA;\n this.ref = process.env.GITHUB_REF;\n this.workflow = process.env.GITHUB_WORKFLOW;\n this.action = process.env.GITHUB_ACTION;\n this.actor = process.env.GITHUB_ACTOR;\n this.job = process.env.GITHUB_JOB;\n this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);\n this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);\n this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;\n this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`;\n this.graphqlUrl = (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`;\n }\n get issue() {\n const payload = this.payload;\n return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });\n }\n get repo() {\n if (process.env.GITHUB_REPOSITORY) {\n const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');\n return { owner, repo };\n }\n if (this.payload.repository) {\n return {\n owner: this.payload.repository.owner.login,\n repo: this.payload.repository.name\n };\n }\n throw new Error(\"context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'\");\n }\n}\nexports.Context = Context;\n//# sourceMappingURL=context.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getOctokit = exports.context = void 0;\nconst Context = __importStar(require(\"./context\"));\nconst utils_1 = require(\"./utils\");\nexports.context = new Context.Context();\n/**\n * Returns a hydrated octokit ready to use for GitHub Actions\n *\n * @param token the repo PAT or GITHUB_TOKEN\n * @param options other options to set\n */\nfunction getOctokit(token, options, ...additionalPlugins) {\n const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);\n return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options));\n}\nexports.getOctokit = getOctokit;\n//# sourceMappingURL=github.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getApiBaseUrl = exports.getProxyAgent = exports.getAuthString = void 0;\nconst httpClient = __importStar(require(\"@actions/http-client\"));\nfunction getAuthString(token, options) {\n if (!token && !options.auth) {\n throw new Error('Parameter token or opts.auth is required');\n }\n else if (token && options.auth) {\n throw new Error('Parameters token and opts.auth may not both be specified');\n }\n return typeof options.auth === 'string' ? options.auth : `token ${token}`;\n}\nexports.getAuthString = getAuthString;\nfunction getProxyAgent(destinationUrl) {\n const hc = new httpClient.HttpClient();\n return hc.getAgent(destinationUrl);\n}\nexports.getProxyAgent = getProxyAgent;\nfunction getApiBaseUrl() {\n return process.env['GITHUB_API_URL'] || 'https://api.github.com';\n}\nexports.getApiBaseUrl = getApiBaseUrl;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;\nconst Context = __importStar(require(\"./context\"));\nconst Utils = __importStar(require(\"./internal/utils\"));\n// octokit + plugins\nconst core_1 = require(\"@octokit/core\");\nconst plugin_rest_endpoint_methods_1 = require(\"@octokit/plugin-rest-endpoint-methods\");\nconst plugin_paginate_rest_1 = require(\"@octokit/plugin-paginate-rest\");\nexports.context = new Context.Context();\nconst baseUrl = Utils.getApiBaseUrl();\nexports.defaults = {\n baseUrl,\n request: {\n agent: Utils.getProxyAgent(baseUrl)\n }\n};\nexports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults);\n/**\n * Convience function to correctly format Octokit Options to pass into the constructor.\n *\n * @param token the repo PAT or GITHUB_TOKEN\n * @param options other options to set\n */\nfunction getOctokitOptions(token, options) {\n const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller\n // Auth\n const auth = Utils.getAuthString(token, opts);\n if (auth) {\n opts.auth = auth;\n }\n return opts;\n}\nexports.getOctokitOptions = getOctokitOptions;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0;\nclass BasicCredentialHandler {\n constructor(username, password) {\n this.username = username;\n this.password = password;\n }\n prepareRequest(options) {\n if (!options.headers) {\n throw Error('The request has no headers');\n }\n options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return __awaiter(this, void 0, void 0, function* () {\n throw new Error('not implemented');\n });\n }\n}\nexports.BasicCredentialHandler = BasicCredentialHandler;\nclass BearerCredentialHandler {\n constructor(token) {\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) {\n throw Error('The request has no headers');\n }\n options.headers['Authorization'] = `Bearer ${this.token}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return __awaiter(this, void 0, void 0, function* () {\n throw new Error('not implemented');\n });\n }\n}\nexports.BearerCredentialHandler = BearerCredentialHandler;\nclass PersonalAccessTokenCredentialHandler {\n constructor(token) {\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) {\n throw Error('The request has no headers');\n }\n options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return __awaiter(this, void 0, void 0, function* () {\n throw new Error('not implemented');\n });\n }\n}\nexports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;\n//# sourceMappingURL=auth.js.map","\"use strict\";\n/* eslint-disable @typescript-eslint/no-explicit-any */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;\nconst http = __importStar(require(\"http\"));\nconst https = __importStar(require(\"https\"));\nconst pm = __importStar(require(\"./proxy\"));\nconst tunnel = __importStar(require(\"tunnel\"));\nvar HttpCodes;\n(function (HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));\nvar Headers;\n(function (Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})(Headers = exports.Headers || (exports.Headers = {}));\nvar MediaTypes;\n(function (MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */\nfunction getProxyUrl(serverUrl) {\n const proxyUrl = pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : '';\n}\nexports.getProxyUrl = getProxyUrl;\nconst HttpRedirectCodes = [\n HttpCodes.MovedPermanently,\n HttpCodes.ResourceMoved,\n HttpCodes.SeeOther,\n HttpCodes.TemporaryRedirect,\n HttpCodes.PermanentRedirect\n];\nconst HttpResponseRetryCodes = [\n HttpCodes.BadGateway,\n HttpCodes.ServiceUnavailable,\n HttpCodes.GatewayTimeout\n];\nconst RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];\nconst ExponentialBackoffCeiling = 10;\nconst ExponentialBackoffTimeSlice = 5;\nclass HttpClientError extends Error {\n constructor(message, statusCode) {\n super(message);\n this.name = 'HttpClientError';\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, HttpClientError.prototype);\n }\n}\nexports.HttpClientError = HttpClientError;\nclass HttpClientResponse {\n constructor(message) {\n this.message = message;\n }\n readBody() {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {\n let output = Buffer.alloc(0);\n this.message.on('data', (chunk) => {\n output = Buffer.concat([output, chunk]);\n });\n this.message.on('end', () => {\n resolve(output.toString());\n });\n }));\n });\n }\n readBodyBuffer() {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {\n const chunks = [];\n this.message.on('data', (chunk) => {\n chunks.push(chunk);\n });\n this.message.on('end', () => {\n resolve(Buffer.concat(chunks));\n });\n }));\n });\n }\n}\nexports.HttpClientResponse = HttpClientResponse;\nfunction isHttps(requestUrl) {\n const parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === 'https:';\n}\nexports.isHttps = isHttps;\nclass HttpClient {\n constructor(userAgent, handlers, requestOptions) {\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) {\n this._ignoreSslError = requestOptions.ignoreSslError;\n }\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) {\n this._allowRedirects = requestOptions.allowRedirects;\n }\n if (requestOptions.allowRedirectDowngrade != null) {\n this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n }\n if (requestOptions.maxRedirects != null) {\n this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n }\n if (requestOptions.keepAlive != null) {\n this._keepAlive = requestOptions.keepAlive;\n }\n if (requestOptions.allowRetries != null) {\n this._allowRetries = requestOptions.allowRetries;\n }\n if (requestOptions.maxRetries != null) {\n this._maxRetries = requestOptions.maxRetries;\n }\n }\n }\n options(requestUrl, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});\n });\n }\n get(requestUrl, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request('GET', requestUrl, null, additionalHeaders || {});\n });\n }\n del(requestUrl, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request('DELETE', requestUrl, null, additionalHeaders || {});\n });\n }\n post(requestUrl, data, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request('POST', requestUrl, data, additionalHeaders || {});\n });\n }\n patch(requestUrl, data, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request('PATCH', requestUrl, data, additionalHeaders || {});\n });\n }\n put(requestUrl, data, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request('PUT', requestUrl, data, additionalHeaders || {});\n });\n }\n head(requestUrl, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request('HEAD', requestUrl, null, additionalHeaders || {});\n });\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n });\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */\n getJson(requestUrl, additionalHeaders = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n const res = yield this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n postJson(requestUrl, obj, additionalHeaders = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n const res = yield this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n putJson(requestUrl, obj, additionalHeaders = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n const res = yield this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n patchJson(requestUrl, obj, additionalHeaders = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n const res = yield this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */\n request(verb, requestUrl, data, headers) {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._disposed) {\n throw new Error('Client has already been disposed.');\n }\n const parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)\n ? this._maxRetries + 1\n : 1;\n let numTries = 0;\n let response;\n do {\n response = yield this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response &&\n response.message &&\n response.message.statusCode === HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (const handler of this.handlers) {\n if (handler.canHandleAuthentication(response)) {\n authenticationHandler = handler;\n break;\n }\n }\n if (authenticationHandler) {\n return authenticationHandler.handleAuthentication(this, info, data);\n }\n else {\n // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n }\n let redirectsRemaining = this._maxRedirects;\n while (response.message.statusCode &&\n HttpRedirectCodes.includes(response.message.statusCode) &&\n this._allowRedirects &&\n redirectsRemaining > 0) {\n const redirectUrl = response.message.headers['location'];\n if (!redirectUrl) {\n // if there's no location to redirect to, we won't\n break;\n }\n const parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol === 'https:' &&\n parsedUrl.protocol !== parsedRedirectUrl.protocol &&\n !this._allowRedirectDowngrade) {\n 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.');\n }\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n yield response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for (const header in headers) {\n // header names are case insensitive\n if (header.toLowerCase() === 'authorization') {\n delete headers[header];\n }\n }\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = yield this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (!response.message.statusCode ||\n !HttpResponseRetryCodes.includes(response.message.statusCode)) {\n // If not a retry code, return immediately instead of retrying\n return response;\n }\n numTries += 1;\n if (numTries < maxTries) {\n yield response.readBody();\n yield this._performExponentialBackoff(numTries);\n }\n } while (numTries < maxTries);\n return response;\n });\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */\n dispose() {\n if (this._agent) {\n this._agent.destroy();\n }\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */\n requestRaw(info, data) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve, reject) => {\n function callbackForResult(err, res) {\n if (err) {\n reject(err);\n }\n else if (!res) {\n // If `err` is not passed, then `res` must be passed.\n reject(new Error('Unknown error'));\n }\n else {\n resolve(res);\n }\n }\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */\n requestRawWithCallback(info, data, onResult) {\n if (typeof data === 'string') {\n if (!info.options.headers) {\n info.options.headers = {};\n }\n info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');\n }\n let callbackCalled = false;\n function handleResult(err, res) {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n }\n const req = info.httpModule.request(info.options, (msg) => {\n const res = new HttpClientResponse(msg);\n handleResult(undefined, res);\n });\n let socket;\n req.on('socket', sock => {\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 3 * 60000, () => {\n if (socket) {\n socket.end();\n }\n handleResult(new Error(`Request timeout: ${info.options.path}`));\n });\n req.on('error', function (err) {\n // err has statusCode property\n // res should have headers\n handleResult(err);\n });\n if (data && typeof data === 'string') {\n req.write(data, 'utf8');\n }\n if (data && typeof data !== 'string') {\n data.on('close', function () {\n req.end();\n });\n data.pipe(req);\n }\n else {\n req.end();\n }\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */\n getAgent(serverUrl) {\n const parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === 'https:';\n info.httpModule = usingSsl ? https : http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port\n ? parseInt(info.parsedUrl.port)\n : defaultPort;\n info.options.path =\n (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) {\n info.options.headers['user-agent'] = this.userAgent;\n }\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) {\n for (const handler of this.handlers) {\n handler.prepareRequest(info.options);\n }\n }\n return info;\n }\n _mergeHeaders(headers) {\n if (this.requestOptions && this.requestOptions.headers) {\n return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));\n }\n return lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) {\n clientHeader = lowercaseKeys(this.requestOptions.headers)[header];\n }\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n const proxyUrl = pm.getProxyUrl(parsedUrl);\n const useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) {\n agent = this._proxyAgent;\n }\n if (this._keepAlive && !useProxy) {\n agent = this._agent;\n }\n // if agent is already assigned use that agent.\n if (agent) {\n return agent;\n }\n const usingSsl = parsedUrl.protocol === 'https:';\n let maxSockets = 100;\n if (this.requestOptions) {\n maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;\n }\n // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.\n if (proxyUrl && proxyUrl.hostname) {\n const agentOptions = {\n maxSockets,\n keepAlive: this._keepAlive,\n proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n })), { host: proxyUrl.hostname, port: proxyUrl.port })\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === 'https:';\n if (usingSsl) {\n tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;\n }\n else {\n tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;\n }\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = { keepAlive: this._keepAlive, maxSockets };\n agent = usingSsl ? new https.Agent(options) : new http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) {\n agent = usingSsl ? https.globalAgent : http.globalAgent;\n }\n if (usingSsl && this._ignoreSslError) {\n // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n }\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n return __awaiter(this, void 0, void 0, function* () {\n retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);\n const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise(resolve => setTimeout(() => resolve(), ms));\n });\n }\n _processResponse(res, options) {\n return __awaiter(this, void 0, void 0, function* () {\n return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {\n const statusCode = res.message.statusCode || 0;\n const response = {\n statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode === HttpCodes.NotFound) {\n resolve(response);\n }\n // get the result from the body\n function dateTimeDeserializer(key, value) {\n if (typeof value === 'string') {\n const a = new Date(value);\n if (!isNaN(a.valueOf())) {\n return a;\n }\n }\n return value;\n }\n let obj;\n let contents;\n try {\n contents = yield res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) {\n obj = JSON.parse(contents, dateTimeDeserializer);\n }\n else {\n obj = JSON.parse(contents);\n }\n response.result = obj;\n }\n response.headers = res.message.headers;\n }\n catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) {\n msg = obj.message;\n }\n else if (contents && contents.length > 0) {\n // it may be the case that the exception is in the body message as string\n msg = contents;\n }\n else {\n msg = `Failed request: (${statusCode})`;\n }\n const err = new HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n }\n else {\n resolve(response);\n }\n }));\n });\n }\n}\nexports.HttpClient = HttpClient;\nconst lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkBypass = exports.getProxyUrl = void 0;\nfunction getProxyUrl(reqUrl) {\n const usingSsl = reqUrl.protocol === 'https:';\n if (checkBypass(reqUrl)) {\n return undefined;\n }\n const proxyVar = (() => {\n if (usingSsl) {\n return process.env['https_proxy'] || process.env['HTTPS_PROXY'];\n }\n else {\n return process.env['http_proxy'] || process.env['HTTP_PROXY'];\n }\n })();\n if (proxyVar) {\n try {\n return new URL(proxyVar);\n }\n catch (_a) {\n if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))\n return new URL(`http://${proxyVar}`);\n }\n }\n else {\n return undefined;\n }\n}\nexports.getProxyUrl = getProxyUrl;\nfunction checkBypass(reqUrl) {\n if (!reqUrl.hostname) {\n return false;\n }\n const reqHost = reqUrl.hostname;\n if (isLoopbackAddress(reqHost)) {\n return true;\n }\n const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';\n if (!noProxy) {\n return false;\n }\n // Determine the request port\n let reqPort;\n if (reqUrl.port) {\n reqPort = Number(reqUrl.port);\n }\n else if (reqUrl.protocol === 'http:') {\n reqPort = 80;\n }\n else if (reqUrl.protocol === 'https:') {\n reqPort = 443;\n }\n // Format the request hostname and hostname with port\n const upperReqHosts = [reqUrl.hostname.toUpperCase()];\n if (typeof reqPort === 'number') {\n upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n }\n // Compare request host against noproxy\n for (const upperNoProxyItem of noProxy\n .split(',')\n .map(x => x.trim().toUpperCase())\n .filter(x => x)) {\n if (upperNoProxyItem === '*' ||\n upperReqHosts.some(x => x === upperNoProxyItem ||\n x.endsWith(`.${upperNoProxyItem}`) ||\n (upperNoProxyItem.startsWith('.') &&\n x.endsWith(`${upperNoProxyItem}`)))) {\n return true;\n }\n }\n return false;\n}\nexports.checkBypass = checkBypass;\nfunction isLoopbackAddress(host) {\n const hostLower = host.toLowerCase();\n return (hostLower === 'localhost' ||\n hostLower.startsWith('127.') ||\n hostLower.startsWith('[::1]') ||\n hostLower.startsWith('[0:0:0:0:0:0:0:1]'));\n}\n//# sourceMappingURL=proxy.js.map","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/// \nconst listenersMap = new WeakMap();\nconst abortedMap = new WeakMap();\n/**\n * An aborter instance implements AbortSignal interface, can abort HTTP requests.\n *\n * - Call AbortSignal.none to create a new AbortSignal instance that cannot be cancelled.\n * Use `AbortSignal.none` when you are required to pass a cancellation token but the operation\n * cannot or will not ever be cancelled.\n *\n * @example\n * Abort without timeout\n * ```ts\n * await doAsyncWork(AbortSignal.none);\n * ```\n */\nclass AbortSignal {\n constructor() {\n /**\n * onabort event listener.\n */\n this.onabort = null;\n listenersMap.set(this, []);\n abortedMap.set(this, false);\n }\n /**\n * Status of whether aborted or not.\n *\n * @readonly\n */\n get aborted() {\n if (!abortedMap.has(this)) {\n throw new TypeError(\"Expected `this` to be an instance of AbortSignal.\");\n }\n return abortedMap.get(this);\n }\n /**\n * Creates a new AbortSignal instance that will never be aborted.\n *\n * @readonly\n */\n static get none() {\n return new AbortSignal();\n }\n /**\n * Added new \"abort\" event listener, only support \"abort\" event.\n *\n * @param _type - Only support \"abort\" event\n * @param listener - The listener to be added\n */\n addEventListener(\n // tslint:disable-next-line:variable-name\n _type, listener) {\n if (!listenersMap.has(this)) {\n throw new TypeError(\"Expected `this` to be an instance of AbortSignal.\");\n }\n const listeners = listenersMap.get(this);\n listeners.push(listener);\n }\n /**\n * Remove \"abort\" event listener, only support \"abort\" event.\n *\n * @param _type - Only support \"abort\" event\n * @param listener - The listener to be removed\n */\n removeEventListener(\n // tslint:disable-next-line:variable-name\n _type, listener) {\n if (!listenersMap.has(this)) {\n throw new TypeError(\"Expected `this` to be an instance of AbortSignal.\");\n }\n const listeners = listenersMap.get(this);\n const index = listeners.indexOf(listener);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n }\n /**\n * Dispatches a synthetic event to the AbortSignal.\n */\n dispatchEvent(_event) {\n throw new Error(\"This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.\");\n }\n}\n/**\n * Helper to trigger an abort event immediately, the onabort and all abort event listeners will be triggered.\n * Will try to trigger abort event for all linked AbortSignal nodes.\n *\n * - If there is a timeout, the timer will be cancelled.\n * - If aborted is true, nothing will happen.\n *\n * @internal\n */\n// eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters\nfunction abortSignal(signal) {\n if (signal.aborted) {\n return;\n }\n if (signal.onabort) {\n signal.onabort.call(signal);\n }\n const listeners = listenersMap.get(signal);\n if (listeners) {\n // Create a copy of listeners so mutations to the array\n // (e.g. via removeListener calls) don't affect the listeners\n // we invoke.\n listeners.slice().forEach((listener) => {\n listener.call(signal, { type: \"abort\" });\n });\n }\n abortedMap.set(signal, true);\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * This error is thrown when an asynchronous operation has been aborted.\n * Check for this error by testing the `name` that the name property of the\n * error matches `\"AbortError\"`.\n *\n * @example\n * ```ts\n * const controller = new AbortController();\n * controller.abort();\n * try {\n * doAsyncWork(controller.signal)\n * } catch (e) {\n * if (e.name === 'AbortError') {\n * // handle abort error here.\n * }\n * }\n * ```\n */\nclass AbortError extends Error {\n constructor(message) {\n super(message);\n this.name = \"AbortError\";\n }\n}\n/**\n * An AbortController provides an AbortSignal and the associated controls to signal\n * that an asynchronous operation should be aborted.\n *\n * @example\n * Abort an operation when another event fires\n * ```ts\n * const controller = new AbortController();\n * const signal = controller.signal;\n * doAsyncWork(signal);\n * button.addEventListener('click', () => controller.abort());\n * ```\n *\n * @example\n * Share aborter cross multiple operations in 30s\n * ```ts\n * // Upload the same data to 2 different data centers at the same time,\n * // abort another when any of them is finished\n * const controller = AbortController.withTimeout(30 * 1000);\n * doAsyncWork(controller.signal).then(controller.abort);\n * doAsyncWork(controller.signal).then(controller.abort);\n *```\n *\n * @example\n * Cascaded aborting\n * ```ts\n * // All operations can't take more than 30 seconds\n * const aborter = Aborter.timeout(30 * 1000);\n *\n * // Following 2 operations can't take more than 25 seconds\n * await doAsyncWork(aborter.withTimeout(25 * 1000));\n * await doAsyncWork(aborter.withTimeout(25 * 1000));\n * ```\n */\nclass AbortController {\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n constructor(parentSignals) {\n this._signal = new AbortSignal();\n if (!parentSignals) {\n return;\n }\n // coerce parentSignals into an array\n if (!Array.isArray(parentSignals)) {\n // eslint-disable-next-line prefer-rest-params\n parentSignals = arguments;\n }\n for (const parentSignal of parentSignals) {\n // if the parent signal has already had abort() called,\n // then call abort on this signal as well.\n if (parentSignal.aborted) {\n this.abort();\n }\n else {\n // when the parent signal aborts, this signal should as well.\n parentSignal.addEventListener(\"abort\", () => {\n this.abort();\n });\n }\n }\n }\n /**\n * The AbortSignal associated with this controller that will signal aborted\n * when the abort method is called on this controller.\n *\n * @readonly\n */\n get signal() {\n return this._signal;\n }\n /**\n * Signal that any operations passed this controller's associated abort signal\n * to cancel any remaining work and throw an `AbortError`.\n */\n abort() {\n abortSignal(this._signal);\n }\n /**\n * Creates a new AbortSignal instance that will abort after the provided ms.\n * @param ms - Elapsed time in milliseconds to trigger an abort.\n */\n static timeout(ms) {\n const signal = new AbortSignal();\n const timer = setTimeout(abortSignal, ms, signal);\n // Prevent the active Timer from keeping the Node.js event loop active.\n if (typeof timer.unref === \"function\") {\n timer.unref();\n }\n return signal;\n }\n}\n\nexports.AbortController = AbortController;\nexports.AbortError = AbortError;\nexports.AbortSignal = AbortSignal;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar coreUtil = require('@azure/core-util');\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * A static-key-based credential that supports updating\n * the underlying key value.\n */\nclass AzureKeyCredential {\n /**\n * The value of the key to be used in authentication\n */\n get key() {\n return this._key;\n }\n /**\n * Create an instance of an AzureKeyCredential for use\n * with a service client.\n *\n * @param key - The initial value of the key to use in authentication\n */\n constructor(key) {\n if (!key) {\n throw new Error(\"key must be a non-empty string\");\n }\n this._key = key;\n }\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newKey - The new key value to be used\n */\n update(newKey) {\n this._key = newKey;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A static name/key-based credential that supports updating\n * the underlying name and key values.\n */\nclass AzureNamedKeyCredential {\n /**\n * The value of the key to be used in authentication.\n */\n get key() {\n return this._key;\n }\n /**\n * The value of the name to be used in authentication.\n */\n get name() {\n return this._name;\n }\n /**\n * Create an instance of an AzureNamedKeyCredential for use\n * with a service client.\n *\n * @param name - The initial value of the name to use in authentication.\n * @param key - The initial value of the key to use in authentication.\n */\n constructor(name, key) {\n if (!name || !key) {\n throw new TypeError(\"name and key must be non-empty strings\");\n }\n this._name = name;\n this._key = key;\n }\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newName - The new name value to be used.\n * @param newKey - The new key value to be used.\n */\n update(newName, newKey) {\n if (!newName || !newKey) {\n throw new TypeError(\"newName and newKey must be non-empty strings\");\n }\n this._name = newName;\n this._key = newKey;\n }\n}\n/**\n * Tests an object to determine whether it implements NamedKeyCredential.\n *\n * @param credential - The assumed NamedKeyCredential to be tested.\n */\nfunction isNamedKeyCredential(credential) {\n return (coreUtil.isObjectWithProperties(credential, [\"name\", \"key\"]) &&\n typeof credential.key === \"string\" &&\n typeof credential.name === \"string\");\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A static-signature-based credential that supports updating\n * the underlying signature value.\n */\nclass AzureSASCredential {\n /**\n * The value of the shared access signature to be used in authentication\n */\n get signature() {\n return this._signature;\n }\n /**\n * Create an instance of an AzureSASCredential for use\n * with a service client.\n *\n * @param signature - The initial value of the shared access signature to use in authentication\n */\n constructor(signature) {\n if (!signature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n this._signature = signature;\n }\n /**\n * Change the value of the signature.\n *\n * Updates will take effect upon the next request after\n * updating the signature value.\n *\n * @param newSignature - The new shared access signature value to be used\n */\n update(newSignature) {\n if (!newSignature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n this._signature = newSignature;\n }\n}\n/**\n * Tests an object to determine whether it implements SASCredential.\n *\n * @param credential - The assumed SASCredential to be tested.\n */\nfunction isSASCredential(credential) {\n return (coreUtil.isObjectWithProperties(credential, [\"signature\"]) && typeof credential.signature === \"string\");\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Tests an object to determine whether it implements TokenCredential.\n *\n * @param credential - The assumed TokenCredential to be tested.\n */\nfunction isTokenCredential(credential) {\n // Check for an object with a 'getToken' function and possibly with\n // a 'signRequest' function. We do this check to make sure that\n // a ServiceClientCredentials implementor (like TokenClientCredentials\n // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if\n // it doesn't actually implement TokenCredential also.\n const castCredential = credential;\n return (castCredential &&\n typeof castCredential.getToken === \"function\" &&\n (castCredential.signRequest === undefined || castCredential.getToken.length > 0));\n}\n\nexports.AzureKeyCredential = AzureKeyCredential;\nexports.AzureNamedKeyCredential = AzureNamedKeyCredential;\nexports.AzureSASCredential = AzureSASCredential;\nexports.isNamedKeyCredential = isNamedKeyCredential;\nexports.isSASCredential = isSASCredential;\nexports.isTokenCredential = isTokenCredential;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar uuid = require('uuid');\nvar util = require('util');\nvar tslib = require('tslib');\nvar xml2js = require('xml2js');\nvar coreUtil = require('@azure/core-util');\nvar logger$1 = require('@azure/logger');\nvar coreAuth = require('@azure/core-auth');\nvar os = require('os');\nvar http = require('http');\nvar https = require('https');\nvar abortController = require('@azure/abort-controller');\nvar tunnel = require('tunnel');\nvar stream = require('stream');\nvar FormData = require('form-data');\nvar node_fetch = require('node-fetch');\nvar coreTracing = require('@azure/core-tracing');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nfunction _interopNamespace(e) {\n if (e && e.__esModule) return e;\n var n = Object.create(null);\n if (e) {\n Object.keys(e).forEach(function (k) {\n if (k !== 'default') {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function () { return e[k]; }\n });\n }\n });\n }\n n[\"default\"] = e;\n return Object.freeze(n);\n}\n\nvar xml2js__namespace = /*#__PURE__*/_interopNamespace(xml2js);\nvar os__namespace = /*#__PURE__*/_interopNamespace(os);\nvar http__namespace = /*#__PURE__*/_interopNamespace(http);\nvar https__namespace = /*#__PURE__*/_interopNamespace(https);\nvar tunnel__namespace = /*#__PURE__*/_interopNamespace(tunnel);\nvar FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData);\nvar node_fetch__default = /*#__PURE__*/_interopDefaultLegacy(node_fetch);\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * A collection of HttpHeaders that can be sent with a HTTP request.\n */\nfunction getHeaderKey(headerName) {\n return headerName.toLowerCase();\n}\nfunction isHttpHeadersLike(object) {\n if (object && typeof object === \"object\") {\n const castObject = object;\n if (typeof castObject.rawHeaders === \"function\" &&\n typeof castObject.clone === \"function\" &&\n typeof castObject.get === \"function\" &&\n typeof castObject.set === \"function\" &&\n typeof castObject.contains === \"function\" &&\n typeof castObject.remove === \"function\" &&\n typeof castObject.headersArray === \"function\" &&\n typeof castObject.headerValues === \"function\" &&\n typeof castObject.headerNames === \"function\" &&\n typeof castObject.toJson === \"function\") {\n return true;\n }\n }\n return false;\n}\n/**\n * A collection of HTTP header key/value pairs.\n */\nclass HttpHeaders {\n constructor(rawHeaders) {\n this._headersMap = {};\n if (rawHeaders) {\n for (const headerName in rawHeaders) {\n this.set(headerName, rawHeaders[headerName]);\n }\n }\n }\n /**\n * Set a header in this collection with the provided name and value. The name is\n * case-insensitive.\n * @param headerName - The name of the header to set. This value is case-insensitive.\n * @param headerValue - The value of the header to set.\n */\n set(headerName, headerValue) {\n this._headersMap[getHeaderKey(headerName)] = {\n name: headerName,\n value: headerValue.toString().trim(),\n };\n }\n /**\n * Get the header value for the provided header name, or undefined if no header exists in this\n * collection with the provided name.\n * @param headerName - The name of the header.\n */\n get(headerName) {\n const header = this._headersMap[getHeaderKey(headerName)];\n return !header ? undefined : header.value;\n }\n /**\n * Get whether or not this header collection contains a header entry for the provided header name.\n */\n contains(headerName) {\n return !!this._headersMap[getHeaderKey(headerName)];\n }\n /**\n * Remove the header with the provided headerName. Return whether or not the header existed and\n * was removed.\n * @param headerName - The name of the header to remove.\n */\n remove(headerName) {\n const result = this.contains(headerName);\n delete this._headersMap[getHeaderKey(headerName)];\n return result;\n }\n /**\n * Get the headers that are contained this collection as an object.\n */\n rawHeaders() {\n return this.toJson({ preserveCase: true });\n }\n /**\n * Get the headers that are contained in this collection as an array.\n */\n headersArray() {\n const headers = [];\n for (const headerKey in this._headersMap) {\n headers.push(this._headersMap[headerKey]);\n }\n return headers;\n }\n /**\n * Get the header names that are contained in this collection.\n */\n headerNames() {\n const headerNames = [];\n const headers = this.headersArray();\n for (let i = 0; i < headers.length; ++i) {\n headerNames.push(headers[i].name);\n }\n return headerNames;\n }\n /**\n * Get the header values that are contained in this collection.\n */\n headerValues() {\n const headerValues = [];\n const headers = this.headersArray();\n for (let i = 0; i < headers.length; ++i) {\n headerValues.push(headers[i].value);\n }\n return headerValues;\n }\n /**\n * Get the JSON object representation of this HTTP header collection.\n */\n toJson(options = {}) {\n const result = {};\n if (options.preserveCase) {\n for (const headerKey in this._headersMap) {\n const header = this._headersMap[headerKey];\n result[header.name] = header.value;\n }\n }\n else {\n for (const headerKey in this._headersMap) {\n const header = this._headersMap[headerKey];\n result[getHeaderKey(header.name)] = header.value;\n }\n }\n return result;\n }\n /**\n * Get the string representation of this HTTP header collection.\n */\n toString() {\n return JSON.stringify(this.toJson({ preserveCase: true }));\n }\n /**\n * Create a deep clone/copy of this HttpHeaders collection.\n */\n clone() {\n const resultPreservingCasing = {};\n for (const headerKey in this._headersMap) {\n const header = this._headersMap[headerKey];\n resultPreservingCasing[header.name] = header.value;\n }\n return new HttpHeaders(resultPreservingCasing);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Encodes a string in base64 format.\n * @param value - The string to encode\n */\nfunction encodeString(value) {\n return Buffer.from(value).toString(\"base64\");\n}\n/**\n * Encodes a byte array in base64 format.\n * @param value - The Uint8Aray to encode\n */\nfunction encodeByteArray(value) {\n // Buffer.from accepts | -- the TypeScript definition is off here\n // https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length\n const bufferValue = value instanceof Buffer ? value : Buffer.from(value.buffer);\n return bufferValue.toString(\"base64\");\n}\n/**\n * Decodes a base64 string into a byte array.\n * @param value - The base64 string to decode\n */\nfunction decodeString(value) {\n return Buffer.from(value, \"base64\");\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * A set of constants used internally when processing requests.\n */\nconst Constants = {\n /**\n * The core-http version\n */\n coreHttpVersion: \"3.0.4\",\n /**\n * Specifies HTTP.\n */\n HTTP: \"http:\",\n /**\n * Specifies HTTPS.\n */\n HTTPS: \"https:\",\n /**\n * Specifies HTTP Proxy.\n */\n HTTP_PROXY: \"HTTP_PROXY\",\n /**\n * Specifies HTTPS Proxy.\n */\n HTTPS_PROXY: \"HTTPS_PROXY\",\n /**\n * Specifies NO Proxy.\n */\n NO_PROXY: \"NO_PROXY\",\n /**\n * Specifies ALL Proxy.\n */\n ALL_PROXY: \"ALL_PROXY\",\n HttpConstants: {\n /**\n * Http Verbs\n */\n HttpVerbs: {\n PUT: \"PUT\",\n GET: \"GET\",\n DELETE: \"DELETE\",\n POST: \"POST\",\n MERGE: \"MERGE\",\n HEAD: \"HEAD\",\n PATCH: \"PATCH\",\n },\n StatusCodes: {\n TooManyRequests: 429,\n ServiceUnavailable: 503,\n },\n },\n /**\n * Defines constants for use with HTTP headers.\n */\n HeaderConstants: {\n /**\n * The Authorization header.\n */\n AUTHORIZATION: \"authorization\",\n AUTHORIZATION_SCHEME: \"Bearer\",\n /**\n * The Retry-After response-header field can be used with a 503 (Service\n * Unavailable) or 349 (Too Many Requests) responses to indicate how long\n * the service is expected to be unavailable to the requesting client.\n */\n RETRY_AFTER: \"Retry-After\",\n /**\n * The UserAgent header.\n */\n USER_AGENT: \"User-Agent\",\n },\n};\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Default key used to access the XML attributes.\n */\nconst XML_ATTRKEY = \"$\";\n/**\n * Default key used to access the XML value content.\n */\nconst XML_CHARKEY = \"_\";\n\n// Copyright (c) Microsoft Corporation.\nconst validUuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;\n/**\n * Encodes an URI.\n *\n * @param uri - The URI to be encoded.\n * @returns The encoded URI.\n */\nfunction encodeUri(uri) {\n return encodeURIComponent(uri)\n .replace(/!/g, \"%21\")\n .replace(/\"/g, \"%27\")\n .replace(/\\(/g, \"%28\")\n .replace(/\\)/g, \"%29\")\n .replace(/\\*/g, \"%2A\");\n}\n/**\n * Returns a stripped version of the Http Response which only contains body,\n * headers and the status.\n *\n * @param response - The Http Response\n * @returns The stripped version of Http Response.\n */\nfunction stripResponse(response) {\n const strippedResponse = {};\n strippedResponse.body = response.bodyAsText;\n strippedResponse.headers = response.headers;\n strippedResponse.status = response.status;\n return strippedResponse;\n}\n/**\n * Returns a stripped version of the Http Request that does not contain the\n * Authorization header.\n *\n * @param request - The Http Request object\n * @returns The stripped version of Http Request.\n */\nfunction stripRequest(request) {\n const strippedRequest = request.clone();\n if (strippedRequest.headers) {\n strippedRequest.headers.remove(\"authorization\");\n }\n return strippedRequest;\n}\n/**\n * Validates the given uuid as a string\n *\n * @param uuid - The uuid as a string that needs to be validated\n * @returns True if the uuid is valid; false otherwise.\n */\nfunction isValidUuid(uuid) {\n return validUuidRegex.test(uuid);\n}\n/**\n * Generated UUID\n *\n * @returns RFC4122 v4 UUID.\n */\nfunction generateUuid() {\n return uuid.v4();\n}\n/**\n * Executes an array of promises sequentially. Inspiration of this method is here:\n * https://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html. An awesome blog on promises!\n *\n * @param promiseFactories - An array of promise factories(A function that return a promise)\n * @param kickstart - Input to the first promise that is used to kickstart the promise chain.\n * If not provided then the promise chain starts with undefined.\n * @returns A chain of resolved or rejected promises\n */\nfunction executePromisesSequentially(promiseFactories, kickstart) {\n let result = Promise.resolve(kickstart);\n promiseFactories.forEach((promiseFactory) => {\n result = result.then(promiseFactory);\n });\n return result;\n}\n/**\n * Converts a Promise to a callback.\n * @param promise - The Promise to be converted to a callback\n * @returns A function that takes the callback `(cb: Function) => void`\n * @deprecated generated code should instead depend on responseToBody\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction promiseToCallback(promise) {\n if (typeof promise.then !== \"function\") {\n throw new Error(\"The provided input is not a Promise.\");\n }\n // eslint-disable-next-line @typescript-eslint/ban-types\n return (cb) => {\n promise\n .then((data) => {\n // eslint-disable-next-line promise/no-callback-in-promise\n return cb(undefined, data);\n })\n .catch((err) => {\n // eslint-disable-next-line promise/no-callback-in-promise\n cb(err);\n });\n };\n}\n/**\n * Converts a Promise to a service callback.\n * @param promise - The Promise of HttpOperationResponse to be converted to a service callback\n * @returns A function that takes the service callback (cb: ServiceCallback): void\n */\nfunction promiseToServiceCallback(promise) {\n if (typeof promise.then !== \"function\") {\n throw new Error(\"The provided input is not a Promise.\");\n }\n return (cb) => {\n promise\n .then((data) => {\n return process.nextTick(cb, undefined, data.parsedBody, data.request, data);\n })\n .catch((err) => {\n process.nextTick(cb, err);\n });\n };\n}\nfunction prepareXMLRootList(obj, elementName, xmlNamespaceKey, xmlNamespace) {\n if (!Array.isArray(obj)) {\n obj = [obj];\n }\n if (!xmlNamespaceKey || !xmlNamespace) {\n return { [elementName]: obj };\n }\n const result = { [elementName]: obj };\n result[XML_ATTRKEY] = { [xmlNamespaceKey]: xmlNamespace };\n return result;\n}\n/**\n * Applies the properties on the prototype of sourceCtors to the prototype of targetCtor\n * @param targetCtor - The target object on which the properties need to be applied.\n * @param sourceCtors - An array of source objects from which the properties need to be taken.\n */\nfunction applyMixins(targetCtorParam, sourceCtors) {\n const castTargetCtorParam = targetCtorParam;\n sourceCtors.forEach((sourceCtor) => {\n Object.getOwnPropertyNames(sourceCtor.prototype).forEach((name) => {\n castTargetCtorParam.prototype[name] = sourceCtor.prototype[name];\n });\n });\n}\nconst validateISODuration = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n/**\n * Indicates whether the given string is in ISO 8601 format.\n * @param value - The value to be validated for ISO 8601 duration format.\n * @returns `true` if valid, `false` otherwise.\n */\nfunction isDuration(value) {\n return validateISODuration.test(value);\n}\n/**\n * Replace all of the instances of searchValue in value with the provided replaceValue.\n * @param value - The value to search and replace in.\n * @param searchValue - The value to search for in the value argument.\n * @param replaceValue - The value to replace searchValue with in the value argument.\n * @returns The value where each instance of searchValue was replaced with replacedValue.\n */\nfunction replaceAll(value, searchValue, replaceValue) {\n return !value || !searchValue ? value : value.split(searchValue).join(replaceValue || \"\");\n}\n/**\n * Determines whether the given entity is a basic/primitive type\n * (string, number, boolean, null, undefined).\n * @param value - Any entity\n * @returns true is it is primitive type, false otherwise.\n */\nfunction isPrimitiveType(value) {\n return (typeof value !== \"object\" && typeof value !== \"function\") || value === null;\n}\nfunction getEnvironmentValue(name) {\n if (process.env[name]) {\n return process.env[name];\n }\n else if (process.env[name.toLowerCase()]) {\n return process.env[name.toLowerCase()];\n }\n return undefined;\n}\n/**\n * @internal\n * @returns true when input is an object type that is not null, Array, RegExp, or Date.\n */\nfunction isObject(input) {\n return (typeof input === \"object\" &&\n input !== null &&\n !Array.isArray(input) &&\n !(input instanceof RegExp) &&\n !(input instanceof Date));\n}\n\n// Copyright (c) Microsoft Corporation.\n// This file contains utility code to serialize and deserialize network operations according to `OperationSpec` objects generated by AutoRest.TypeScript from OpenAPI specifications.\n/**\n * Used to map raw response objects to final shapes.\n * Helps packing and unpacking Dates and other encoded types that are not intrinsic to JSON.\n * Also allows pulling values from headers, as well as inserting default values and constants.\n */\nclass Serializer {\n constructor(\n /**\n * The provided model mapper.\n */\n modelMappers = {}, \n /**\n * Whether the contents are XML or not.\n */\n isXML) {\n this.modelMappers = modelMappers;\n this.isXML = isXML;\n }\n /**\n * Validates constraints, if any. This function will throw if the provided value does not respect those constraints.\n * @param mapper - The definition of data models.\n * @param value - The value.\n * @param objectName - Name of the object. Used in the error messages.\n * @deprecated Removing the constraints validation on client side.\n */\n validateConstraints(mapper, value, objectName) {\n const failValidation = (constraintName, constraintValue) => {\n throw new Error(`\"${objectName}\" with value \"${value}\" should satisfy the constraint \"${constraintName}\": ${constraintValue}.`);\n };\n if (mapper.constraints && value != undefined) {\n const valueAsNumber = value;\n const { ExclusiveMaximum, ExclusiveMinimum, InclusiveMaximum, InclusiveMinimum, MaxItems, MaxLength, MinItems, MinLength, MultipleOf, Pattern, UniqueItems, } = mapper.constraints;\n if (ExclusiveMaximum != undefined && valueAsNumber >= ExclusiveMaximum) {\n failValidation(\"ExclusiveMaximum\", ExclusiveMaximum);\n }\n if (ExclusiveMinimum != undefined && valueAsNumber <= ExclusiveMinimum) {\n failValidation(\"ExclusiveMinimum\", ExclusiveMinimum);\n }\n if (InclusiveMaximum != undefined && valueAsNumber > InclusiveMaximum) {\n failValidation(\"InclusiveMaximum\", InclusiveMaximum);\n }\n if (InclusiveMinimum != undefined && valueAsNumber < InclusiveMinimum) {\n failValidation(\"InclusiveMinimum\", InclusiveMinimum);\n }\n const valueAsArray = value;\n if (MaxItems != undefined && valueAsArray.length > MaxItems) {\n failValidation(\"MaxItems\", MaxItems);\n }\n if (MaxLength != undefined && valueAsArray.length > MaxLength) {\n failValidation(\"MaxLength\", MaxLength);\n }\n if (MinItems != undefined && valueAsArray.length < MinItems) {\n failValidation(\"MinItems\", MinItems);\n }\n if (MinLength != undefined && valueAsArray.length < MinLength) {\n failValidation(\"MinLength\", MinLength);\n }\n if (MultipleOf != undefined && valueAsNumber % MultipleOf !== 0) {\n failValidation(\"MultipleOf\", MultipleOf);\n }\n if (Pattern) {\n const pattern = typeof Pattern === \"string\" ? new RegExp(Pattern) : Pattern;\n if (typeof value !== \"string\" || value.match(pattern) === null) {\n failValidation(\"Pattern\", Pattern);\n }\n }\n if (UniqueItems &&\n valueAsArray.some((item, i, ar) => ar.indexOf(item) !== i)) {\n failValidation(\"UniqueItems\", UniqueItems);\n }\n }\n }\n /**\n * Serialize the given object based on its metadata defined in the mapper.\n *\n * @param mapper - The mapper which defines the metadata of the serializable object.\n * @param object - A valid Javascript object to be serialized.\n * @param objectName - Name of the serialized object.\n * @param options - additional options to deserialization.\n * @returns A valid serialized Javascript object.\n */\n serialize(mapper, object, objectName, options = {}) {\n var _a, _b, _c;\n const updatedOptions = {\n rootName: (_a = options.rootName) !== null && _a !== void 0 ? _a : \"\",\n includeRoot: (_b = options.includeRoot) !== null && _b !== void 0 ? _b : false,\n xmlCharKey: (_c = options.xmlCharKey) !== null && _c !== void 0 ? _c : XML_CHARKEY,\n };\n let payload = {};\n const mapperType = mapper.type.name;\n if (!objectName) {\n objectName = mapper.serializedName;\n }\n if (mapperType.match(/^Sequence$/i) !== null) {\n payload = [];\n }\n if (mapper.isConstant) {\n object = mapper.defaultValue;\n }\n // This table of allowed values should help explain\n // the mapper.required and mapper.nullable properties.\n // X means \"neither undefined or null are allowed\".\n // || required\n // || true | false\n // nullable || ==========================\n // true || null | undefined/null\n // false || X | undefined\n // undefined || X | undefined/null\n const { required, nullable } = mapper;\n if (required && nullable && object === undefined) {\n throw new Error(`${objectName} cannot be undefined.`);\n }\n if (required && !nullable && object == undefined) {\n throw new Error(`${objectName} cannot be null or undefined.`);\n }\n if (!required && nullable === false && object === null) {\n throw new Error(`${objectName} cannot be null.`);\n }\n if (object == undefined) {\n payload = object;\n }\n else {\n if (mapperType.match(/^any$/i) !== null) {\n payload = object;\n }\n else if (mapperType.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i) !== null) {\n payload = serializeBasicTypes(mapperType, objectName, object);\n }\n else if (mapperType.match(/^Enum$/i) !== null) {\n const enumMapper = mapper;\n payload = serializeEnumType(objectName, enumMapper.type.allowedValues, object);\n }\n else if (mapperType.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i) !== null) {\n payload = serializeDateTypes(mapperType, object, objectName);\n }\n else if (mapperType.match(/^ByteArray$/i) !== null) {\n payload = serializeByteArrayType(objectName, object);\n }\n else if (mapperType.match(/^Base64Url$/i) !== null) {\n payload = serializeBase64UrlType(objectName, object);\n }\n else if (mapperType.match(/^Sequence$/i) !== null) {\n payload = serializeSequenceType(this, mapper, object, objectName, Boolean(this.isXML), updatedOptions);\n }\n else if (mapperType.match(/^Dictionary$/i) !== null) {\n payload = serializeDictionaryType(this, mapper, object, objectName, Boolean(this.isXML), updatedOptions);\n }\n else if (mapperType.match(/^Composite$/i) !== null) {\n payload = serializeCompositeType(this, mapper, object, objectName, Boolean(this.isXML), updatedOptions);\n }\n }\n return payload;\n }\n /**\n * Deserialize the given object based on its metadata defined in the mapper.\n *\n * @param mapper - The mapper which defines the metadata of the serializable object.\n * @param responseBody - A valid Javascript entity to be deserialized.\n * @param objectName - Name of the deserialized object.\n * @param options - Controls behavior of XML parser and builder.\n * @returns A valid deserialized Javascript object.\n */\n deserialize(mapper, responseBody, objectName, options = {}) {\n var _a, _b, _c;\n const updatedOptions = {\n rootName: (_a = options.rootName) !== null && _a !== void 0 ? _a : \"\",\n includeRoot: (_b = options.includeRoot) !== null && _b !== void 0 ? _b : false,\n xmlCharKey: (_c = options.xmlCharKey) !== null && _c !== void 0 ? _c : XML_CHARKEY,\n };\n if (responseBody == undefined) {\n if (this.isXML && mapper.type.name === \"Sequence\" && !mapper.xmlIsWrapped) {\n // Edge case for empty XML non-wrapped lists. xml2js can't distinguish\n // between the list being empty versus being missing,\n // so let's do the more user-friendly thing and return an empty list.\n responseBody = [];\n }\n // specifically check for undefined as default value can be a falsey value `0, \"\", false, null`\n if (mapper.defaultValue !== undefined) {\n responseBody = mapper.defaultValue;\n }\n return responseBody;\n }\n let payload;\n const mapperType = mapper.type.name;\n if (!objectName) {\n objectName = mapper.serializedName;\n }\n if (mapperType.match(/^Composite$/i) !== null) {\n payload = deserializeCompositeType(this, mapper, responseBody, objectName, updatedOptions);\n }\n else {\n if (this.isXML) {\n const xmlCharKey = updatedOptions.xmlCharKey;\n const castResponseBody = responseBody;\n /**\n * If the mapper specifies this as a non-composite type value but the responseBody contains\n * both header (\"$\" i.e., XML_ATTRKEY) and body (\"#\" i.e., XML_CHARKEY) properties,\n * then just reduce the responseBody value to the body (\"#\" i.e., XML_CHARKEY) property.\n */\n if (castResponseBody[XML_ATTRKEY] != undefined &&\n castResponseBody[xmlCharKey] != undefined) {\n responseBody = castResponseBody[xmlCharKey];\n }\n }\n if (mapperType.match(/^Number$/i) !== null) {\n payload = parseFloat(responseBody);\n if (isNaN(payload)) {\n payload = responseBody;\n }\n }\n else if (mapperType.match(/^Boolean$/i) !== null) {\n if (responseBody === \"true\") {\n payload = true;\n }\n else if (responseBody === \"false\") {\n payload = false;\n }\n else {\n payload = responseBody;\n }\n }\n else if (mapperType.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i) !== null) {\n payload = responseBody;\n }\n else if (mapperType.match(/^(Date|DateTime|DateTimeRfc1123)$/i) !== null) {\n payload = new Date(responseBody);\n }\n else if (mapperType.match(/^UnixTime$/i) !== null) {\n payload = unixTimeToDate(responseBody);\n }\n else if (mapperType.match(/^ByteArray$/i) !== null) {\n payload = decodeString(responseBody);\n }\n else if (mapperType.match(/^Base64Url$/i) !== null) {\n payload = base64UrlToByteArray(responseBody);\n }\n else if (mapperType.match(/^Sequence$/i) !== null) {\n payload = deserializeSequenceType(this, mapper, responseBody, objectName, updatedOptions);\n }\n else if (mapperType.match(/^Dictionary$/i) !== null) {\n payload = deserializeDictionaryType(this, mapper, responseBody, objectName, updatedOptions);\n }\n }\n if (mapper.isConstant) {\n payload = mapper.defaultValue;\n }\n return payload;\n }\n}\nfunction trimEnd(str, ch) {\n let len = str.length;\n while (len - 1 >= 0 && str[len - 1] === ch) {\n --len;\n }\n return str.substr(0, len);\n}\nfunction bufferToBase64Url(buffer) {\n if (!buffer) {\n return undefined;\n }\n if (!(buffer instanceof Uint8Array)) {\n throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);\n }\n // Uint8Array to Base64.\n const str = encodeByteArray(buffer);\n // Base64 to Base64Url.\n return trimEnd(str, \"=\").replace(/\\+/g, \"-\").replace(/\\//g, \"_\");\n}\nfunction base64UrlToByteArray(str) {\n if (!str) {\n return undefined;\n }\n if (str && typeof str.valueOf() !== \"string\") {\n throw new Error(\"Please provide an input of type string for converting to Uint8Array\");\n }\n // Base64Url to Base64.\n str = str.replace(/-/g, \"+\").replace(/_/g, \"/\");\n // Base64 to Uint8Array.\n return decodeString(str);\n}\nfunction splitSerializeName(prop) {\n const classes = [];\n let partialclass = \"\";\n if (prop) {\n const subwords = prop.split(\".\");\n for (const item of subwords) {\n if (item.charAt(item.length - 1) === \"\\\\\") {\n partialclass += item.substr(0, item.length - 1) + \".\";\n }\n else {\n partialclass += item;\n classes.push(partialclass);\n partialclass = \"\";\n }\n }\n }\n return classes;\n}\nfunction dateToUnixTime(d) {\n if (!d) {\n return undefined;\n }\n if (typeof d.valueOf() === \"string\") {\n d = new Date(d);\n }\n return Math.floor(d.getTime() / 1000);\n}\nfunction unixTimeToDate(n) {\n if (!n) {\n return undefined;\n }\n return new Date(n * 1000);\n}\nfunction serializeBasicTypes(typeName, objectName, value) {\n if (value !== null && value !== undefined) {\n if (typeName.match(/^Number$/i) !== null) {\n if (typeof value !== \"number\") {\n throw new Error(`${objectName} with value ${value} must be of type number.`);\n }\n }\n else if (typeName.match(/^String$/i) !== null) {\n if (typeof value.valueOf() !== \"string\") {\n throw new Error(`${objectName} with value \"${value}\" must be of type string.`);\n }\n }\n else if (typeName.match(/^Uuid$/i) !== null) {\n if (!(typeof value.valueOf() === \"string\" && isValidUuid(value))) {\n throw new Error(`${objectName} with value \"${value}\" must be of type string and a valid uuid.`);\n }\n }\n else if (typeName.match(/^Boolean$/i) !== null) {\n if (typeof value !== \"boolean\") {\n throw new Error(`${objectName} with value ${value} must be of type boolean.`);\n }\n }\n else if (typeName.match(/^Stream$/i) !== null) {\n const objectType = typeof value;\n if (objectType !== \"string\" &&\n objectType !== \"function\" &&\n !(value instanceof ArrayBuffer) &&\n !ArrayBuffer.isView(value) &&\n !((typeof Blob === \"function\" || typeof Blob === \"object\") && value instanceof Blob)) {\n throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`);\n }\n }\n }\n return value;\n}\nfunction serializeEnumType(objectName, allowedValues, value) {\n if (!allowedValues) {\n throw new Error(`Please provide a set of allowedValues to validate ${objectName} as an Enum Type.`);\n }\n const isPresent = allowedValues.some((item) => {\n if (typeof item.valueOf() === \"string\") {\n return item.toLowerCase() === value.toLowerCase();\n }\n return item === value;\n });\n if (!isPresent) {\n throw new Error(`${value} is not a valid value for ${objectName}. The valid values are: ${JSON.stringify(allowedValues)}.`);\n }\n return value;\n}\nfunction serializeByteArrayType(objectName, value) {\n let returnValue = \"\";\n if (value != undefined) {\n if (!(value instanceof Uint8Array)) {\n throw new Error(`${objectName} must be of type Uint8Array.`);\n }\n returnValue = encodeByteArray(value);\n }\n return returnValue;\n}\nfunction serializeBase64UrlType(objectName, value) {\n let returnValue = \"\";\n if (value != undefined) {\n if (!(value instanceof Uint8Array)) {\n throw new Error(`${objectName} must be of type Uint8Array.`);\n }\n returnValue = bufferToBase64Url(value) || \"\";\n }\n return returnValue;\n}\nfunction serializeDateTypes(typeName, value, objectName) {\n if (value != undefined) {\n if (typeName.match(/^Date$/i) !== null) {\n if (!(value instanceof Date ||\n (typeof value.valueOf() === \"string\" && !isNaN(Date.parse(value))))) {\n throw new Error(`${objectName} must be an instanceof Date or a string in ISO8601 format.`);\n }\n value =\n value instanceof Date\n ? value.toISOString().substring(0, 10)\n : new Date(value).toISOString().substring(0, 10);\n }\n else if (typeName.match(/^DateTime$/i) !== null) {\n if (!(value instanceof Date ||\n (typeof value.valueOf() === \"string\" && !isNaN(Date.parse(value))))) {\n throw new Error(`${objectName} must be an instanceof Date or a string in ISO8601 format.`);\n }\n value = value instanceof Date ? value.toISOString() : new Date(value).toISOString();\n }\n else if (typeName.match(/^DateTimeRfc1123$/i) !== null) {\n if (!(value instanceof Date ||\n (typeof value.valueOf() === \"string\" && !isNaN(Date.parse(value))))) {\n throw new Error(`${objectName} must be an instanceof Date or a string in RFC-1123 format.`);\n }\n value = value instanceof Date ? value.toUTCString() : new Date(value).toUTCString();\n }\n else if (typeName.match(/^UnixTime$/i) !== null) {\n if (!(value instanceof Date ||\n (typeof value.valueOf() === \"string\" && !isNaN(Date.parse(value))))) {\n throw new Error(`${objectName} must be an instanceof Date or a string in RFC-1123/ISO8601 format ` +\n `for it to be serialized in UnixTime/Epoch format.`);\n }\n value = dateToUnixTime(value);\n }\n else if (typeName.match(/^TimeSpan$/i) !== null) {\n if (!isDuration(value)) {\n throw new Error(`${objectName} must be a string in ISO 8601 format. Instead was \"${value}\".`);\n }\n }\n }\n return value;\n}\nfunction serializeSequenceType(serializer, mapper, object, objectName, isXml, options) {\n if (!Array.isArray(object)) {\n throw new Error(`${objectName} must be of type Array.`);\n }\n const elementType = mapper.type.element;\n if (!elementType || typeof elementType !== \"object\") {\n throw new Error(`element\" metadata for an Array must be defined in the ` +\n `mapper and it must of type \"object\" in ${objectName}.`);\n }\n const tempArray = [];\n for (let i = 0; i < object.length; i++) {\n const serializedValue = serializer.serialize(elementType, object[i], objectName, options);\n if (isXml && elementType.xmlNamespace) {\n const xmlnsKey = elementType.xmlNamespacePrefix\n ? `xmlns:${elementType.xmlNamespacePrefix}`\n : \"xmlns\";\n if (elementType.type.name === \"Composite\") {\n tempArray[i] = Object.assign({}, serializedValue);\n tempArray[i][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace };\n }\n else {\n tempArray[i] = {};\n tempArray[i][options.xmlCharKey] = serializedValue;\n tempArray[i][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace };\n }\n }\n else {\n tempArray[i] = serializedValue;\n }\n }\n return tempArray;\n}\nfunction serializeDictionaryType(serializer, mapper, object, objectName, isXml, options) {\n if (typeof object !== \"object\") {\n throw new Error(`${objectName} must be of type object.`);\n }\n const valueType = mapper.type.value;\n if (!valueType || typeof valueType !== \"object\") {\n throw new Error(`\"value\" metadata for a Dictionary must be defined in the ` +\n `mapper and it must of type \"object\" in ${objectName}.`);\n }\n const tempDictionary = {};\n for (const key of Object.keys(object)) {\n const serializedValue = serializer.serialize(valueType, object[key], objectName, options);\n // If the element needs an XML namespace we need to add it within the $ property\n tempDictionary[key] = getXmlObjectValue(valueType, serializedValue, isXml, options);\n }\n // Add the namespace to the root element if needed\n if (isXml && mapper.xmlNamespace) {\n const xmlnsKey = mapper.xmlNamespacePrefix ? `xmlns:${mapper.xmlNamespacePrefix}` : \"xmlns\";\n const result = tempDictionary;\n result[XML_ATTRKEY] = { [xmlnsKey]: mapper.xmlNamespace };\n return result;\n }\n return tempDictionary;\n}\n/**\n * Resolves the additionalProperties property from a referenced mapper.\n * @param serializer - The serializer containing the entire set of mappers.\n * @param mapper - The composite mapper to resolve.\n * @param objectName - Name of the object being serialized.\n */\nfunction resolveAdditionalProperties(serializer, mapper, objectName) {\n const additionalProperties = mapper.type.additionalProperties;\n if (!additionalProperties && mapper.type.className) {\n const modelMapper = resolveReferencedMapper(serializer, mapper, objectName);\n return modelMapper === null || modelMapper === void 0 ? void 0 : modelMapper.type.additionalProperties;\n }\n return additionalProperties;\n}\n/**\n * Finds the mapper referenced by `className`.\n * @param serializer - The serializer containing the entire set of mappers\n * @param mapper - The composite mapper to resolve\n * @param objectName - Name of the object being serialized\n */\nfunction resolveReferencedMapper(serializer, mapper, objectName) {\n const className = mapper.type.className;\n if (!className) {\n throw new Error(`Class name for model \"${objectName}\" is not provided in the mapper \"${JSON.stringify(mapper, undefined, 2)}\".`);\n }\n return serializer.modelMappers[className];\n}\n/**\n * Resolves a composite mapper's modelProperties.\n * @param serializer - The serializer containing the entire set of mappers\n * @param mapper - The composite mapper to resolve\n */\nfunction resolveModelProperties(serializer, mapper, objectName) {\n let modelProps = mapper.type.modelProperties;\n if (!modelProps) {\n const modelMapper = resolveReferencedMapper(serializer, mapper, objectName);\n if (!modelMapper) {\n throw new Error(`mapper() cannot be null or undefined for model \"${mapper.type.className}\".`);\n }\n modelProps = modelMapper === null || modelMapper === void 0 ? void 0 : modelMapper.type.modelProperties;\n if (!modelProps) {\n throw new Error(`modelProperties cannot be null or undefined in the ` +\n `mapper \"${JSON.stringify(modelMapper)}\" of type \"${mapper.type.className}\" for object \"${objectName}\".`);\n }\n }\n return modelProps;\n}\nfunction serializeCompositeType(serializer, mapper, object, objectName, isXml, options) {\n if (getPolymorphicDiscriminatorRecursively(serializer, mapper)) {\n mapper = getPolymorphicMapper(serializer, mapper, object, \"clientName\");\n }\n if (object != undefined) {\n const payload = {};\n const modelProps = resolveModelProperties(serializer, mapper, objectName);\n for (const key of Object.keys(modelProps)) {\n const propertyMapper = modelProps[key];\n if (propertyMapper.readOnly) {\n continue;\n }\n let propName;\n let parentObject = payload;\n if (serializer.isXML) {\n if (propertyMapper.xmlIsWrapped) {\n propName = propertyMapper.xmlName;\n }\n else {\n propName = propertyMapper.xmlElementName || propertyMapper.xmlName;\n }\n }\n else {\n const paths = splitSerializeName(propertyMapper.serializedName);\n propName = paths.pop();\n for (const pathName of paths) {\n const childObject = parentObject[pathName];\n if (childObject == undefined &&\n (object[key] != undefined || propertyMapper.defaultValue !== undefined)) {\n parentObject[pathName] = {};\n }\n parentObject = parentObject[pathName];\n }\n }\n if (parentObject != undefined) {\n if (isXml && mapper.xmlNamespace) {\n const xmlnsKey = mapper.xmlNamespacePrefix\n ? `xmlns:${mapper.xmlNamespacePrefix}`\n : \"xmlns\";\n parentObject[XML_ATTRKEY] = Object.assign(Object.assign({}, parentObject[XML_ATTRKEY]), { [xmlnsKey]: mapper.xmlNamespace });\n }\n const propertyObjectName = propertyMapper.serializedName !== \"\"\n ? objectName + \".\" + propertyMapper.serializedName\n : objectName;\n let toSerialize = object[key];\n const polymorphicDiscriminator = getPolymorphicDiscriminatorRecursively(serializer, mapper);\n if (polymorphicDiscriminator &&\n polymorphicDiscriminator.clientName === key &&\n toSerialize == undefined) {\n toSerialize = mapper.serializedName;\n }\n const serializedValue = serializer.serialize(propertyMapper, toSerialize, propertyObjectName, options);\n if (serializedValue !== undefined && propName != undefined) {\n const value = getXmlObjectValue(propertyMapper, serializedValue, isXml, options);\n if (isXml && propertyMapper.xmlIsAttribute) {\n // XML_ATTRKEY, i.e., $ is the key attributes are kept under in xml2js.\n // This keeps things simple while preventing name collision\n // with names in user documents.\n parentObject[XML_ATTRKEY] = parentObject[XML_ATTRKEY] || {};\n parentObject[XML_ATTRKEY][propName] = serializedValue;\n }\n else if (isXml && propertyMapper.xmlIsWrapped) {\n parentObject[propName] = { [propertyMapper.xmlElementName]: value };\n }\n else {\n parentObject[propName] = value;\n }\n }\n }\n }\n const additionalPropertiesMapper = resolveAdditionalProperties(serializer, mapper, objectName);\n if (additionalPropertiesMapper) {\n const propNames = Object.keys(modelProps);\n for (const clientPropName in object) {\n const isAdditionalProperty = propNames.every((pn) => pn !== clientPropName);\n if (isAdditionalProperty) {\n payload[clientPropName] = serializer.serialize(additionalPropertiesMapper, object[clientPropName], objectName + '[\"' + clientPropName + '\"]', options);\n }\n }\n }\n return payload;\n }\n return object;\n}\nfunction getXmlObjectValue(propertyMapper, serializedValue, isXml, options) {\n if (!isXml || !propertyMapper.xmlNamespace) {\n return serializedValue;\n }\n const xmlnsKey = propertyMapper.xmlNamespacePrefix\n ? `xmlns:${propertyMapper.xmlNamespacePrefix}`\n : \"xmlns\";\n const xmlNamespace = { [xmlnsKey]: propertyMapper.xmlNamespace };\n if ([\"Composite\"].includes(propertyMapper.type.name)) {\n if (serializedValue[XML_ATTRKEY]) {\n return serializedValue;\n }\n else {\n const result = Object.assign({}, serializedValue);\n result[XML_ATTRKEY] = xmlNamespace;\n return result;\n }\n }\n const result = {};\n result[options.xmlCharKey] = serializedValue;\n result[XML_ATTRKEY] = xmlNamespace;\n return result;\n}\nfunction isSpecialXmlProperty(propertyName, options) {\n return [XML_ATTRKEY, options.xmlCharKey].includes(propertyName);\n}\nfunction deserializeCompositeType(serializer, mapper, responseBody, objectName, options) {\n var _a, _b;\n const xmlCharKey = (_a = options.xmlCharKey) !== null && _a !== void 0 ? _a : XML_CHARKEY;\n if (getPolymorphicDiscriminatorRecursively(serializer, mapper)) {\n mapper = getPolymorphicMapper(serializer, mapper, responseBody, \"serializedName\");\n }\n const modelProps = resolveModelProperties(serializer, mapper, objectName);\n let instance = {};\n const handledPropertyNames = [];\n for (const key of Object.keys(modelProps)) {\n const propertyMapper = modelProps[key];\n const paths = splitSerializeName(modelProps[key].serializedName);\n handledPropertyNames.push(paths[0]);\n const { serializedName, xmlName, xmlElementName } = propertyMapper;\n let propertyObjectName = objectName;\n if (serializedName !== \"\" && serializedName !== undefined) {\n propertyObjectName = objectName + \".\" + serializedName;\n }\n const headerCollectionPrefix = propertyMapper.headerCollectionPrefix;\n if (headerCollectionPrefix) {\n const dictionary = {};\n for (const headerKey of Object.keys(responseBody)) {\n if (headerKey.startsWith(headerCollectionPrefix)) {\n dictionary[headerKey.substring(headerCollectionPrefix.length)] = serializer.deserialize(propertyMapper.type.value, responseBody[headerKey], propertyObjectName, options);\n }\n handledPropertyNames.push(headerKey);\n }\n instance[key] = dictionary;\n }\n else if (serializer.isXML) {\n if (propertyMapper.xmlIsAttribute && responseBody[XML_ATTRKEY]) {\n instance[key] = serializer.deserialize(propertyMapper, responseBody[XML_ATTRKEY][xmlName], propertyObjectName, options);\n }\n else if (propertyMapper.xmlIsMsText) {\n if (responseBody[xmlCharKey] !== undefined) {\n instance[key] = responseBody[xmlCharKey];\n }\n else if (typeof responseBody === \"string\") {\n // The special case where xml parser parses \"content\" into JSON of\n // `{ name: \"content\"}` instead of `{ name: { \"_\": \"content\" }}`\n instance[key] = responseBody;\n }\n }\n else {\n const propertyName = xmlElementName || xmlName || serializedName;\n if (propertyMapper.xmlIsWrapped) {\n /* a list of wrapped by \n For the xml example below\n \n ...\n ...\n \n the responseBody has\n {\n Cors: {\n CorsRule: [{...}, {...}]\n }\n }\n xmlName is \"Cors\" and xmlElementName is\"CorsRule\".\n */\n const wrapped = responseBody[xmlName];\n const elementList = (_b = wrapped === null || wrapped === void 0 ? void 0 : wrapped[xmlElementName]) !== null && _b !== void 0 ? _b : [];\n instance[key] = serializer.deserialize(propertyMapper, elementList, propertyObjectName, options);\n handledPropertyNames.push(xmlName);\n }\n else {\n const property = responseBody[propertyName];\n instance[key] = serializer.deserialize(propertyMapper, property, propertyObjectName, options);\n handledPropertyNames.push(propertyName);\n }\n }\n }\n else {\n // deserialize the property if it is present in the provided responseBody instance\n let propertyInstance;\n let res = responseBody;\n // traversing the object step by step.\n for (const item of paths) {\n if (!res)\n break;\n res = res[item];\n }\n propertyInstance = res;\n const polymorphicDiscriminator = mapper.type.polymorphicDiscriminator;\n // checking that the model property name (key)(ex: \"fishtype\") and the\n // clientName of the polymorphicDiscriminator {metadata} (ex: \"fishtype\")\n // instead of the serializedName of the polymorphicDiscriminator (ex: \"fish.type\")\n // is a better approach. The generator is not consistent with escaping '\\.' in the\n // serializedName of the property (ex: \"fish\\.type\") that is marked as polymorphic discriminator\n // and the serializedName of the metadata polymorphicDiscriminator (ex: \"fish.type\"). However,\n // the clientName transformation of the polymorphicDiscriminator (ex: \"fishtype\") and\n // the transformation of model property name (ex: \"fishtype\") is done consistently.\n // Hence, it is a safer bet to rely on the clientName of the polymorphicDiscriminator.\n if (polymorphicDiscriminator &&\n key === polymorphicDiscriminator.clientName &&\n propertyInstance == undefined) {\n propertyInstance = mapper.serializedName;\n }\n let serializedValue;\n // paging\n if (Array.isArray(responseBody[key]) && modelProps[key].serializedName === \"\") {\n propertyInstance = responseBody[key];\n const arrayInstance = serializer.deserialize(propertyMapper, propertyInstance, propertyObjectName, options);\n // Copy over any properties that have already been added into the instance, where they do\n // not exist on the newly de-serialized array\n for (const [k, v] of Object.entries(instance)) {\n if (!Object.prototype.hasOwnProperty.call(arrayInstance, k)) {\n arrayInstance[k] = v;\n }\n }\n instance = arrayInstance;\n }\n else if (propertyInstance !== undefined || propertyMapper.defaultValue !== undefined) {\n serializedValue = serializer.deserialize(propertyMapper, propertyInstance, propertyObjectName, options);\n instance[key] = serializedValue;\n }\n }\n }\n const additionalPropertiesMapper = mapper.type.additionalProperties;\n if (additionalPropertiesMapper) {\n const isAdditionalProperty = (responsePropName) => {\n for (const clientPropName in modelProps) {\n const paths = splitSerializeName(modelProps[clientPropName].serializedName);\n if (paths[0] === responsePropName) {\n return false;\n }\n }\n return true;\n };\n for (const responsePropName in responseBody) {\n if (isAdditionalProperty(responsePropName)) {\n instance[responsePropName] = serializer.deserialize(additionalPropertiesMapper, responseBody[responsePropName], objectName + '[\"' + responsePropName + '\"]', options);\n }\n }\n }\n else if (responseBody) {\n for (const key of Object.keys(responseBody)) {\n if (instance[key] === undefined &&\n !handledPropertyNames.includes(key) &&\n !isSpecialXmlProperty(key, options)) {\n instance[key] = responseBody[key];\n }\n }\n }\n return instance;\n}\nfunction deserializeDictionaryType(serializer, mapper, responseBody, objectName, options) {\n const value = mapper.type.value;\n if (!value || typeof value !== \"object\") {\n throw new Error(`\"value\" metadata for a Dictionary must be defined in the ` +\n `mapper and it must of type \"object\" in ${objectName}`);\n }\n if (responseBody) {\n const tempDictionary = {};\n for (const key of Object.keys(responseBody)) {\n tempDictionary[key] = serializer.deserialize(value, responseBody[key], objectName, options);\n }\n return tempDictionary;\n }\n return responseBody;\n}\nfunction deserializeSequenceType(serializer, mapper, responseBody, objectName, options) {\n const element = mapper.type.element;\n if (!element || typeof element !== \"object\") {\n throw new Error(`element\" metadata for an Array must be defined in the ` +\n `mapper and it must of type \"object\" in ${objectName}`);\n }\n if (responseBody) {\n if (!Array.isArray(responseBody)) {\n // xml2js will interpret a single element array as just the element, so force it to be an array\n responseBody = [responseBody];\n }\n const tempArray = [];\n for (let i = 0; i < responseBody.length; i++) {\n tempArray[i] = serializer.deserialize(element, responseBody[i], `${objectName}[${i}]`, options);\n }\n return tempArray;\n }\n return responseBody;\n}\nfunction getPolymorphicMapper(serializer, mapper, object, polymorphicPropertyName) {\n const polymorphicDiscriminator = getPolymorphicDiscriminatorRecursively(serializer, mapper);\n if (polymorphicDiscriminator) {\n const discriminatorName = polymorphicDiscriminator[polymorphicPropertyName];\n if (discriminatorName != undefined) {\n const discriminatorValue = object[discriminatorName];\n if (discriminatorValue != undefined) {\n const typeName = mapper.type.uberParent || mapper.type.className;\n const indexDiscriminator = discriminatorValue === typeName\n ? discriminatorValue\n : typeName + \".\" + discriminatorValue;\n const polymorphicMapper = serializer.modelMappers.discriminators[indexDiscriminator];\n if (polymorphicMapper) {\n mapper = polymorphicMapper;\n }\n }\n }\n }\n return mapper;\n}\nfunction getPolymorphicDiscriminatorRecursively(serializer, mapper) {\n return (mapper.type.polymorphicDiscriminator ||\n getPolymorphicDiscriminatorSafely(serializer, mapper.type.uberParent) ||\n getPolymorphicDiscriminatorSafely(serializer, mapper.type.className));\n}\nfunction getPolymorphicDiscriminatorSafely(serializer, typeName) {\n return (typeName &&\n serializer.modelMappers[typeName] &&\n serializer.modelMappers[typeName].type.polymorphicDiscriminator);\n}\n/**\n * Utility function that serializes an object that might contain binary information into a plain object, array or a string.\n */\nfunction serializeObject(toSerialize) {\n const castToSerialize = toSerialize;\n if (toSerialize == undefined)\n return undefined;\n if (toSerialize instanceof Uint8Array) {\n toSerialize = encodeByteArray(toSerialize);\n return toSerialize;\n }\n else if (toSerialize instanceof Date) {\n return toSerialize.toISOString();\n }\n else if (Array.isArray(toSerialize)) {\n const array = [];\n for (let i = 0; i < toSerialize.length; i++) {\n array.push(serializeObject(toSerialize[i]));\n }\n return array;\n }\n else if (typeof toSerialize === \"object\") {\n const dictionary = {};\n for (const property in toSerialize) {\n dictionary[property] = serializeObject(castToSerialize[property]);\n }\n return dictionary;\n }\n return toSerialize;\n}\n/**\n * Utility function to create a K:V from a list of strings\n */\nfunction strEnum(o) {\n const result = {};\n for (const key of o) {\n result[key] = key;\n }\n return result;\n}\n/**\n * String enum containing the string types of property mappers.\n */\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nconst MapperType = strEnum([\n \"Base64Url\",\n \"Boolean\",\n \"ByteArray\",\n \"Composite\",\n \"Date\",\n \"DateTime\",\n \"DateTimeRfc1123\",\n \"Dictionary\",\n \"Enum\",\n \"Number\",\n \"Object\",\n \"Sequence\",\n \"String\",\n \"Stream\",\n \"TimeSpan\",\n \"UnixTime\",\n]);\n\n// Copyright (c) Microsoft Corporation.\nfunction isWebResourceLike(object) {\n if (object && typeof object === \"object\") {\n const castObject = object;\n if (typeof castObject.url === \"string\" &&\n typeof castObject.method === \"string\" &&\n typeof castObject.headers === \"object\" &&\n isHttpHeadersLike(castObject.headers) &&\n typeof castObject.validateRequestProperties === \"function\" &&\n typeof castObject.prepare === \"function\" &&\n typeof castObject.clone === \"function\") {\n return true;\n }\n }\n return false;\n}\n/**\n * Creates a new WebResource object.\n *\n * This class provides an abstraction over a REST call by being library / implementation agnostic and wrapping the necessary\n * properties to initiate a request.\n */\nclass WebResource {\n constructor(url, method, body, query, headers, streamResponseBody, withCredentials, abortSignal, timeout, onUploadProgress, onDownloadProgress, proxySettings, keepAlive, decompressResponse, streamResponseStatusCodes) {\n this.streamResponseBody = streamResponseBody;\n this.streamResponseStatusCodes = streamResponseStatusCodes;\n this.url = url || \"\";\n this.method = method || \"GET\";\n this.headers = isHttpHeadersLike(headers) ? headers : new HttpHeaders(headers);\n this.body = body;\n this.query = query;\n this.formData = undefined;\n this.withCredentials = withCredentials || false;\n this.abortSignal = abortSignal;\n this.timeout = timeout || 0;\n this.onUploadProgress = onUploadProgress;\n this.onDownloadProgress = onDownloadProgress;\n this.proxySettings = proxySettings;\n this.keepAlive = keepAlive;\n this.decompressResponse = decompressResponse;\n this.requestId = this.headers.get(\"x-ms-client-request-id\") || generateUuid();\n }\n /**\n * Validates that the required properties such as method, url, headers[\"Content-Type\"],\n * headers[\"accept-language\"] are defined. It will throw an error if one of the above\n * mentioned properties are not defined.\n */\n validateRequestProperties() {\n if (!this.method) {\n throw new Error(\"WebResource.method is required.\");\n }\n if (!this.url) {\n throw new Error(\"WebResource.url is required.\");\n }\n }\n /**\n * Prepares the request.\n * @param options - Options to provide for preparing the request.\n * @returns Returns the prepared WebResource (HTTP Request) object that needs to be given to the request pipeline.\n */\n prepare(options) {\n if (!options) {\n throw new Error(\"options object is required\");\n }\n if (options.method === undefined ||\n options.method === null ||\n typeof options.method.valueOf() !== \"string\") {\n throw new Error(\"options.method must be a string.\");\n }\n if (options.url && options.pathTemplate) {\n throw new Error(\"options.url and options.pathTemplate are mutually exclusive. Please provide exactly one of them.\");\n }\n if ((options.pathTemplate === undefined ||\n options.pathTemplate === null ||\n typeof options.pathTemplate.valueOf() !== \"string\") &&\n (options.url === undefined ||\n options.url === null ||\n typeof options.url.valueOf() !== \"string\")) {\n throw new Error(\"Please provide exactly one of options.pathTemplate or options.url.\");\n }\n // set the url if it is provided.\n if (options.url) {\n if (typeof options.url !== \"string\") {\n throw new Error('options.url must be of type \"string\".');\n }\n this.url = options.url;\n }\n // set the method\n if (options.method) {\n const validMethods = [\"GET\", \"PUT\", \"HEAD\", \"DELETE\", \"OPTIONS\", \"POST\", \"PATCH\", \"TRACE\"];\n if (validMethods.indexOf(options.method.toUpperCase()) === -1) {\n throw new Error('The provided method \"' +\n options.method +\n '\" is invalid. Supported HTTP methods are: ' +\n JSON.stringify(validMethods));\n }\n }\n this.method = options.method.toUpperCase();\n // construct the url if path template is provided\n if (options.pathTemplate) {\n const { pathTemplate, pathParameters } = options;\n if (typeof pathTemplate !== \"string\") {\n throw new Error('options.pathTemplate must be of type \"string\".');\n }\n if (!options.baseUrl) {\n options.baseUrl = \"https://management.azure.com\";\n }\n const baseUrl = options.baseUrl;\n let url = baseUrl +\n (baseUrl.endsWith(\"/\") ? \"\" : \"/\") +\n (pathTemplate.startsWith(\"/\") ? pathTemplate.slice(1) : pathTemplate);\n const segments = url.match(/({[\\w-]*\\s*[\\w-]*})/gi);\n if (segments && segments.length) {\n if (!pathParameters) {\n throw new Error(`pathTemplate: ${pathTemplate} has been provided. Hence, options.pathParameters must also be provided.`);\n }\n segments.forEach(function (item) {\n const pathParamName = item.slice(1, -1);\n const pathParam = pathParameters[pathParamName];\n if (pathParam === null ||\n pathParam === undefined ||\n !(typeof pathParam === \"string\" || typeof pathParam === \"object\")) {\n const stringifiedPathParameters = JSON.stringify(pathParameters, undefined, 2);\n throw new Error(`pathTemplate: ${pathTemplate} contains the path parameter ${pathParamName}` +\n ` however, it is not present in parameters: ${stringifiedPathParameters}.` +\n `The value of the path parameter can either be a \"string\" of the form { ${pathParamName}: \"some sample value\" } or ` +\n `it can be an \"object\" of the form { \"${pathParamName}\": { value: \"some sample value\", skipUrlEncoding: true } }.`);\n }\n if (typeof pathParam.valueOf() === \"string\") {\n url = url.replace(item, encodeURIComponent(pathParam));\n }\n if (typeof pathParam.valueOf() === \"object\") {\n if (!pathParam.value) {\n throw new Error(`options.pathParameters[${pathParamName}] is of type \"object\" but it does not contain a \"value\" property.`);\n }\n if (pathParam.skipUrlEncoding) {\n url = url.replace(item, pathParam.value);\n }\n else {\n url = url.replace(item, encodeURIComponent(pathParam.value));\n }\n }\n });\n }\n this.url = url;\n }\n // append query parameters to the url if they are provided. They can be provided with pathTemplate or url option.\n if (options.queryParameters) {\n const queryParameters = options.queryParameters;\n if (typeof queryParameters !== \"object\") {\n throw new Error(`options.queryParameters must be of type object. It should be a JSON object ` +\n `of \"query-parameter-name\" as the key and the \"query-parameter-value\" as the value. ` +\n `The \"query-parameter-value\" may be fo type \"string\" or an \"object\" of the form { value: \"query-parameter-value\", skipUrlEncoding: true }.`);\n }\n // append question mark if it is not present in the url\n if (this.url && this.url.indexOf(\"?\") === -1) {\n this.url += \"?\";\n }\n // construct queryString\n const queryParams = [];\n // We need to populate this.query as a dictionary if the request is being used for Sway's validateRequest().\n this.query = {};\n for (const queryParamName in queryParameters) {\n const queryParam = queryParameters[queryParamName];\n if (queryParam) {\n if (typeof queryParam === \"string\") {\n queryParams.push(queryParamName + \"=\" + encodeURIComponent(queryParam));\n this.query[queryParamName] = encodeURIComponent(queryParam);\n }\n else if (typeof queryParam === \"object\") {\n if (!queryParam.value) {\n throw new Error(`options.queryParameters[${queryParamName}] is of type \"object\" but it does not contain a \"value\" property.`);\n }\n if (queryParam.skipUrlEncoding) {\n queryParams.push(queryParamName + \"=\" + queryParam.value);\n this.query[queryParamName] = queryParam.value;\n }\n else {\n queryParams.push(queryParamName + \"=\" + encodeURIComponent(queryParam.value));\n this.query[queryParamName] = encodeURIComponent(queryParam.value);\n }\n }\n }\n } // end-of-for\n // append the queryString\n this.url += queryParams.join(\"&\");\n }\n // add headers to the request if they are provided\n if (options.headers) {\n const headers = options.headers;\n for (const headerName of Object.keys(options.headers)) {\n this.headers.set(headerName, headers[headerName]);\n }\n }\n // ensure accept-language is set correctly\n if (!this.headers.get(\"accept-language\")) {\n this.headers.set(\"accept-language\", \"en-US\");\n }\n // ensure the request-id is set correctly\n if (!this.headers.get(\"x-ms-client-request-id\") && !options.disableClientRequestId) {\n this.headers.set(\"x-ms-client-request-id\", this.requestId);\n }\n // default\n if (!this.headers.get(\"Content-Type\")) {\n this.headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n // set the request body. request.js automatically sets the Content-Length request header, so we need not set it explicitly\n this.body = options.body;\n if (options.body !== undefined && options.body !== null) {\n // body as a stream special case. set the body as-is and check for some special request headers specific to sending a stream.\n if (options.bodyIsStream) {\n if (!this.headers.get(\"Transfer-Encoding\")) {\n this.headers.set(\"Transfer-Encoding\", \"chunked\");\n }\n if (this.headers.get(\"Content-Type\") !== \"application/octet-stream\") {\n this.headers.set(\"Content-Type\", \"application/octet-stream\");\n }\n }\n else {\n if (options.serializationMapper) {\n this.body = new Serializer(options.mappers).serialize(options.serializationMapper, options.body, \"requestBody\");\n }\n if (!options.disableJsonStringifyOnBody) {\n this.body = JSON.stringify(options.body);\n }\n }\n }\n if (options.spanOptions) {\n this.spanOptions = options.spanOptions;\n }\n if (options.tracingContext) {\n this.tracingContext = options.tracingContext;\n }\n this.abortSignal = options.abortSignal;\n this.onDownloadProgress = options.onDownloadProgress;\n this.onUploadProgress = options.onUploadProgress;\n return this;\n }\n /**\n * Clone this WebResource HTTP request object.\n * @returns The clone of this WebResource HTTP request object.\n */\n clone() {\n const result = new WebResource(this.url, this.method, this.body, this.query, this.headers && this.headers.clone(), this.streamResponseBody, this.withCredentials, this.abortSignal, this.timeout, this.onUploadProgress, this.onDownloadProgress, this.proxySettings, this.keepAlive, this.decompressResponse, this.streamResponseStatusCodes);\n if (this.formData) {\n result.formData = this.formData;\n }\n if (this.operationSpec) {\n result.operationSpec = this.operationSpec;\n }\n if (this.shouldDeserialize) {\n result.shouldDeserialize = this.shouldDeserialize;\n }\n if (this.operationResponseGetter) {\n result.operationResponseGetter = this.operationResponseGetter;\n }\n return result;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A class that handles the query portion of a URLBuilder.\n */\nclass URLQuery {\n constructor() {\n this._rawQuery = {};\n }\n /**\n * Get whether or not there any query parameters in this URLQuery.\n */\n any() {\n return Object.keys(this._rawQuery).length > 0;\n }\n /**\n * Get the keys of the query string.\n */\n keys() {\n return Object.keys(this._rawQuery);\n }\n /**\n * Set a query parameter with the provided name and value. If the parameterValue is undefined or\n * empty, then this will attempt to remove an existing query parameter with the provided\n * parameterName.\n */\n set(parameterName, parameterValue) {\n const caseParameterValue = parameterValue;\n if (parameterName) {\n if (caseParameterValue !== undefined && caseParameterValue !== null) {\n const newValue = Array.isArray(caseParameterValue)\n ? caseParameterValue\n : caseParameterValue.toString();\n this._rawQuery[parameterName] = newValue;\n }\n else {\n delete this._rawQuery[parameterName];\n }\n }\n }\n /**\n * Get the value of the query parameter with the provided name. If no parameter exists with the\n * provided parameter name, then undefined will be returned.\n */\n get(parameterName) {\n return parameterName ? this._rawQuery[parameterName] : undefined;\n }\n /**\n * Get the string representation of this query. The return value will not start with a \"?\".\n */\n toString() {\n let result = \"\";\n for (const parameterName in this._rawQuery) {\n if (result) {\n result += \"&\";\n }\n const parameterValue = this._rawQuery[parameterName];\n if (Array.isArray(parameterValue)) {\n const parameterStrings = [];\n for (const parameterValueElement of parameterValue) {\n parameterStrings.push(`${parameterName}=${parameterValueElement}`);\n }\n result += parameterStrings.join(\"&\");\n }\n else {\n result += `${parameterName}=${parameterValue}`;\n }\n }\n return result;\n }\n /**\n * Parse a URLQuery from the provided text.\n */\n static parse(text) {\n const result = new URLQuery();\n if (text) {\n if (text.startsWith(\"?\")) {\n text = text.substring(1);\n }\n let currentState = \"ParameterName\";\n let parameterName = \"\";\n let parameterValue = \"\";\n for (let i = 0; i < text.length; ++i) {\n const currentCharacter = text[i];\n switch (currentState) {\n case \"ParameterName\":\n switch (currentCharacter) {\n case \"=\":\n currentState = \"ParameterValue\";\n break;\n case \"&\":\n parameterName = \"\";\n parameterValue = \"\";\n break;\n default:\n parameterName += currentCharacter;\n break;\n }\n break;\n case \"ParameterValue\":\n switch (currentCharacter) {\n case \"&\":\n result.set(parameterName, parameterValue);\n parameterName = \"\";\n parameterValue = \"\";\n currentState = \"ParameterName\";\n break;\n default:\n parameterValue += currentCharacter;\n break;\n }\n break;\n default:\n throw new Error(\"Unrecognized URLQuery parse state: \" + currentState);\n }\n }\n if (currentState === \"ParameterValue\") {\n result.set(parameterName, parameterValue);\n }\n }\n return result;\n }\n}\n/**\n * A class that handles creating, modifying, and parsing URLs.\n */\nclass URLBuilder {\n /**\n * Set the scheme/protocol for this URL. If the provided scheme contains other parts of a URL\n * (such as a host, port, path, or query), those parts will be added to this URL as well.\n */\n setScheme(scheme) {\n if (!scheme) {\n this._scheme = undefined;\n }\n else {\n this.set(scheme, \"SCHEME\");\n }\n }\n /**\n * Get the scheme that has been set in this URL.\n */\n getScheme() {\n return this._scheme;\n }\n /**\n * Set the host for this URL. If the provided host contains other parts of a URL (such as a\n * port, path, or query), those parts will be added to this URL as well.\n */\n setHost(host) {\n if (!host) {\n this._host = undefined;\n }\n else {\n this.set(host, \"SCHEME_OR_HOST\");\n }\n }\n /**\n * Get the host that has been set in this URL.\n */\n getHost() {\n return this._host;\n }\n /**\n * Set the port for this URL. If the provided port contains other parts of a URL (such as a\n * path or query), those parts will be added to this URL as well.\n */\n setPort(port) {\n if (port === undefined || port === null || port === \"\") {\n this._port = undefined;\n }\n else {\n this.set(port.toString(), \"PORT\");\n }\n }\n /**\n * Get the port that has been set in this URL.\n */\n getPort() {\n return this._port;\n }\n /**\n * Set the path for this URL. If the provided path contains a query, then it will be added to\n * this URL as well.\n */\n setPath(path) {\n if (!path) {\n this._path = undefined;\n }\n else {\n const schemeIndex = path.indexOf(\"://\");\n if (schemeIndex !== -1) {\n const schemeStart = path.lastIndexOf(\"/\", schemeIndex);\n // Make sure to only grab the URL part of the path before setting the state back to SCHEME\n // this will handle cases such as \"/a/b/c/https://microsoft.com\" => \"https://microsoft.com\"\n this.set(schemeStart === -1 ? path : path.substr(schemeStart + 1), \"SCHEME\");\n }\n else {\n this.set(path, \"PATH\");\n }\n }\n }\n /**\n * Append the provided path to this URL's existing path. If the provided path contains a query,\n * then it will be added to this URL as well.\n */\n appendPath(path) {\n if (path) {\n let currentPath = this.getPath();\n if (currentPath) {\n if (!currentPath.endsWith(\"/\")) {\n currentPath += \"/\";\n }\n if (path.startsWith(\"/\")) {\n path = path.substring(1);\n }\n path = currentPath + path;\n }\n this.set(path, \"PATH\");\n }\n }\n /**\n * Get the path that has been set in this URL.\n */\n getPath() {\n return this._path;\n }\n /**\n * Set the query in this URL.\n */\n setQuery(query) {\n if (!query) {\n this._query = undefined;\n }\n else {\n this._query = URLQuery.parse(query);\n }\n }\n /**\n * Set a query parameter with the provided name and value in this URL's query. If the provided\n * query parameter value is undefined or empty, then the query parameter will be removed if it\n * existed.\n */\n setQueryParameter(queryParameterName, queryParameterValue) {\n if (queryParameterName) {\n if (!this._query) {\n this._query = new URLQuery();\n }\n this._query.set(queryParameterName, queryParameterValue);\n }\n }\n /**\n * Get the value of the query parameter with the provided query parameter name. If no query\n * parameter exists with the provided name, then undefined will be returned.\n */\n getQueryParameterValue(queryParameterName) {\n return this._query ? this._query.get(queryParameterName) : undefined;\n }\n /**\n * Get the query in this URL.\n */\n getQuery() {\n return this._query ? this._query.toString() : undefined;\n }\n /**\n * Set the parts of this URL by parsing the provided text using the provided startState.\n */\n set(text, startState) {\n const tokenizer = new URLTokenizer(text, startState);\n while (tokenizer.next()) {\n const token = tokenizer.current();\n let tokenPath;\n if (token) {\n switch (token.type) {\n case \"SCHEME\":\n this._scheme = token.text || undefined;\n break;\n case \"HOST\":\n this._host = token.text || undefined;\n break;\n case \"PORT\":\n this._port = token.text || undefined;\n break;\n case \"PATH\":\n tokenPath = token.text || undefined;\n if (!this._path || this._path === \"/\" || tokenPath !== \"/\") {\n this._path = tokenPath;\n }\n break;\n case \"QUERY\":\n this._query = URLQuery.parse(token.text);\n break;\n default:\n throw new Error(`Unrecognized URLTokenType: ${token.type}`);\n }\n }\n }\n }\n /**\n * Serializes the URL as a string.\n * @returns the URL as a string.\n */\n toString() {\n let result = \"\";\n if (this._scheme) {\n result += `${this._scheme}://`;\n }\n if (this._host) {\n result += this._host;\n }\n if (this._port) {\n result += `:${this._port}`;\n }\n if (this._path) {\n if (!this._path.startsWith(\"/\")) {\n result += \"/\";\n }\n result += this._path;\n }\n if (this._query && this._query.any()) {\n result += `?${this._query.toString()}`;\n }\n return result;\n }\n /**\n * If the provided searchValue is found in this URLBuilder, then replace it with the provided\n * replaceValue.\n */\n replaceAll(searchValue, replaceValue) {\n if (searchValue) {\n this.setScheme(replaceAll(this.getScheme(), searchValue, replaceValue));\n this.setHost(replaceAll(this.getHost(), searchValue, replaceValue));\n this.setPort(replaceAll(this.getPort(), searchValue, replaceValue));\n this.setPath(replaceAll(this.getPath(), searchValue, replaceValue));\n this.setQuery(replaceAll(this.getQuery(), searchValue, replaceValue));\n }\n }\n /**\n * Parses a given string URL into a new {@link URLBuilder}.\n */\n static parse(text) {\n const result = new URLBuilder();\n result.set(text, \"SCHEME_OR_HOST\");\n return result;\n }\n}\nclass URLToken {\n constructor(text, type) {\n this.text = text;\n this.type = type;\n }\n static scheme(text) {\n return new URLToken(text, \"SCHEME\");\n }\n static host(text) {\n return new URLToken(text, \"HOST\");\n }\n static port(text) {\n return new URLToken(text, \"PORT\");\n }\n static path(text) {\n return new URLToken(text, \"PATH\");\n }\n static query(text) {\n return new URLToken(text, \"QUERY\");\n }\n}\n/**\n * Get whether or not the provided character (single character string) is an alphanumeric (letter or\n * digit) character.\n */\nfunction isAlphaNumericCharacter(character) {\n const characterCode = character.charCodeAt(0);\n return ((48 /* '0' */ <= characterCode && characterCode <= 57) /* '9' */ ||\n (65 /* 'A' */ <= characterCode && characterCode <= 90) /* 'Z' */ ||\n (97 /* 'a' */ <= characterCode && characterCode <= 122) /* 'z' */);\n}\n/**\n * A class that tokenizes URL strings.\n */\nclass URLTokenizer {\n constructor(_text, state) {\n this._text = _text;\n this._textLength = _text ? _text.length : 0;\n this._currentState = state !== undefined && state !== null ? state : \"SCHEME_OR_HOST\";\n this._currentIndex = 0;\n }\n /**\n * Get the current URLToken this URLTokenizer is pointing at, or undefined if the URLTokenizer\n * hasn't started or has finished tokenizing.\n */\n current() {\n return this._currentToken;\n }\n /**\n * Advance to the next URLToken and return whether or not a URLToken was found.\n */\n next() {\n if (!hasCurrentCharacter(this)) {\n this._currentToken = undefined;\n }\n else {\n switch (this._currentState) {\n case \"SCHEME\":\n nextScheme(this);\n break;\n case \"SCHEME_OR_HOST\":\n nextSchemeOrHost(this);\n break;\n case \"HOST\":\n nextHost(this);\n break;\n case \"PORT\":\n nextPort(this);\n break;\n case \"PATH\":\n nextPath(this);\n break;\n case \"QUERY\":\n nextQuery(this);\n break;\n default:\n throw new Error(`Unrecognized URLTokenizerState: ${this._currentState}`);\n }\n }\n return !!this._currentToken;\n }\n}\n/**\n * Read the remaining characters from this Tokenizer's character stream.\n */\nfunction readRemaining(tokenizer) {\n let result = \"\";\n if (tokenizer._currentIndex < tokenizer._textLength) {\n result = tokenizer._text.substring(tokenizer._currentIndex);\n tokenizer._currentIndex = tokenizer._textLength;\n }\n return result;\n}\n/**\n * Whether or not this URLTokenizer has a current character.\n */\nfunction hasCurrentCharacter(tokenizer) {\n return tokenizer._currentIndex < tokenizer._textLength;\n}\n/**\n * Get the character in the text string at the current index.\n */\nfunction getCurrentCharacter(tokenizer) {\n return tokenizer._text[tokenizer._currentIndex];\n}\n/**\n * Advance to the character in text that is \"step\" characters ahead. If no step value is provided,\n * then step will default to 1.\n */\nfunction nextCharacter(tokenizer, step) {\n if (hasCurrentCharacter(tokenizer)) {\n if (!step) {\n step = 1;\n }\n tokenizer._currentIndex += step;\n }\n}\n/**\n * Starting with the current character, peek \"charactersToPeek\" number of characters ahead in this\n * Tokenizer's stream of characters.\n */\nfunction peekCharacters(tokenizer, charactersToPeek) {\n let endIndex = tokenizer._currentIndex + charactersToPeek;\n if (tokenizer._textLength < endIndex) {\n endIndex = tokenizer._textLength;\n }\n return tokenizer._text.substring(tokenizer._currentIndex, endIndex);\n}\n/**\n * Read characters from this Tokenizer until the end of the stream or until the provided condition\n * is false when provided the current character.\n */\nfunction readWhile(tokenizer, condition) {\n let result = \"\";\n while (hasCurrentCharacter(tokenizer)) {\n const currentCharacter = getCurrentCharacter(tokenizer);\n if (!condition(currentCharacter)) {\n break;\n }\n else {\n result += currentCharacter;\n nextCharacter(tokenizer);\n }\n }\n return result;\n}\n/**\n * Read characters from this Tokenizer until a non-alphanumeric character or the end of the\n * character stream is reached.\n */\nfunction readWhileLetterOrDigit(tokenizer) {\n return readWhile(tokenizer, (character) => isAlphaNumericCharacter(character));\n}\n/**\n * Read characters from this Tokenizer until one of the provided terminating characters is read or\n * the end of the character stream is reached.\n */\nfunction readUntilCharacter(tokenizer, ...terminatingCharacters) {\n return readWhile(tokenizer, (character) => terminatingCharacters.indexOf(character) === -1);\n}\nfunction nextScheme(tokenizer) {\n const scheme = readWhileLetterOrDigit(tokenizer);\n tokenizer._currentToken = URLToken.scheme(scheme);\n if (!hasCurrentCharacter(tokenizer)) {\n tokenizer._currentState = \"DONE\";\n }\n else {\n tokenizer._currentState = \"HOST\";\n }\n}\nfunction nextSchemeOrHost(tokenizer) {\n const schemeOrHost = readUntilCharacter(tokenizer, \":\", \"/\", \"?\");\n if (!hasCurrentCharacter(tokenizer)) {\n tokenizer._currentToken = URLToken.host(schemeOrHost);\n tokenizer._currentState = \"DONE\";\n }\n else if (getCurrentCharacter(tokenizer) === \":\") {\n if (peekCharacters(tokenizer, 3) === \"://\") {\n tokenizer._currentToken = URLToken.scheme(schemeOrHost);\n tokenizer._currentState = \"HOST\";\n }\n else {\n tokenizer._currentToken = URLToken.host(schemeOrHost);\n tokenizer._currentState = \"PORT\";\n }\n }\n else {\n tokenizer._currentToken = URLToken.host(schemeOrHost);\n if (getCurrentCharacter(tokenizer) === \"/\") {\n tokenizer._currentState = \"PATH\";\n }\n else {\n tokenizer._currentState = \"QUERY\";\n }\n }\n}\nfunction nextHost(tokenizer) {\n if (peekCharacters(tokenizer, 3) === \"://\") {\n nextCharacter(tokenizer, 3);\n }\n const host = readUntilCharacter(tokenizer, \":\", \"/\", \"?\");\n tokenizer._currentToken = URLToken.host(host);\n if (!hasCurrentCharacter(tokenizer)) {\n tokenizer._currentState = \"DONE\";\n }\n else if (getCurrentCharacter(tokenizer) === \":\") {\n tokenizer._currentState = \"PORT\";\n }\n else if (getCurrentCharacter(tokenizer) === \"/\") {\n tokenizer._currentState = \"PATH\";\n }\n else {\n tokenizer._currentState = \"QUERY\";\n }\n}\nfunction nextPort(tokenizer) {\n if (getCurrentCharacter(tokenizer) === \":\") {\n nextCharacter(tokenizer);\n }\n const port = readUntilCharacter(tokenizer, \"/\", \"?\");\n tokenizer._currentToken = URLToken.port(port);\n if (!hasCurrentCharacter(tokenizer)) {\n tokenizer._currentState = \"DONE\";\n }\n else if (getCurrentCharacter(tokenizer) === \"/\") {\n tokenizer._currentState = \"PATH\";\n }\n else {\n tokenizer._currentState = \"QUERY\";\n }\n}\nfunction nextPath(tokenizer) {\n const path = readUntilCharacter(tokenizer, \"?\");\n tokenizer._currentToken = URLToken.path(path);\n if (!hasCurrentCharacter(tokenizer)) {\n tokenizer._currentState = \"DONE\";\n }\n else {\n tokenizer._currentState = \"QUERY\";\n }\n}\nfunction nextQuery(tokenizer) {\n if (getCurrentCharacter(tokenizer) === \"?\") {\n nextCharacter(tokenizer);\n }\n const query = readRemaining(tokenizer);\n tokenizer._currentToken = URLToken.query(query);\n tokenizer._currentState = \"DONE\";\n}\n\n// Copyright (c) Microsoft Corporation.\nfunction createProxyAgent(requestUrl, proxySettings, headers) {\n const host = URLBuilder.parse(proxySettings.host).getHost();\n if (!host) {\n throw new Error(\"Expecting a non-empty host in proxy settings.\");\n }\n if (!isValidPort(proxySettings.port)) {\n throw new Error(\"Expecting a valid port number in the range of [0, 65535] in proxy settings.\");\n }\n const tunnelOptions = {\n proxy: {\n host: host,\n port: proxySettings.port,\n headers: (headers && headers.rawHeaders()) || {},\n },\n };\n if (proxySettings.username && proxySettings.password) {\n tunnelOptions.proxy.proxyAuth = `${proxySettings.username}:${proxySettings.password}`;\n }\n else if (proxySettings.username) {\n tunnelOptions.proxy.proxyAuth = `${proxySettings.username}`;\n }\n const isRequestHttps = isUrlHttps(requestUrl);\n const isProxyHttps = isUrlHttps(proxySettings.host);\n const proxyAgent = {\n isHttps: isRequestHttps,\n agent: createTunnel(isRequestHttps, isProxyHttps, tunnelOptions),\n };\n return proxyAgent;\n}\nfunction isUrlHttps(url) {\n const urlScheme = URLBuilder.parse(url).getScheme() || \"\";\n return urlScheme.toLowerCase() === \"https\";\n}\nfunction createTunnel(isRequestHttps, isProxyHttps, tunnelOptions) {\n if (isRequestHttps && isProxyHttps) {\n return tunnel__namespace.httpsOverHttps(tunnelOptions);\n }\n else if (isRequestHttps && !isProxyHttps) {\n return tunnel__namespace.httpsOverHttp(tunnelOptions);\n }\n else if (!isRequestHttps && isProxyHttps) {\n return tunnel__namespace.httpOverHttps(tunnelOptions);\n }\n else {\n return tunnel__namespace.httpOverHttp(tunnelOptions);\n }\n}\nfunction isValidPort(port) {\n // any port in 0-65535 range is valid (RFC 793) even though almost all implementations\n // will reserve 0 for a specific purpose, and a range of numbers for ephemeral ports\n return 0 <= port && port <= 65535;\n}\n\n// Copyright (c) Microsoft Corporation.\nconst RedactedString = \"REDACTED\";\nconst defaultAllowedHeaderNames = [\n \"x-ms-client-request-id\",\n \"x-ms-return-client-request-id\",\n \"x-ms-useragent\",\n \"x-ms-correlation-request-id\",\n \"x-ms-request-id\",\n \"client-request-id\",\n \"ms-cv\",\n \"return-client-request-id\",\n \"traceparent\",\n \"Access-Control-Allow-Credentials\",\n \"Access-Control-Allow-Headers\",\n \"Access-Control-Allow-Methods\",\n \"Access-Control-Allow-Origin\",\n \"Access-Control-Expose-Headers\",\n \"Access-Control-Max-Age\",\n \"Access-Control-Request-Headers\",\n \"Access-Control-Request-Method\",\n \"Origin\",\n \"Accept\",\n \"Accept-Encoding\",\n \"Cache-Control\",\n \"Connection\",\n \"Content-Length\",\n \"Content-Type\",\n \"Date\",\n \"ETag\",\n \"Expires\",\n \"If-Match\",\n \"If-Modified-Since\",\n \"If-None-Match\",\n \"If-Unmodified-Since\",\n \"Last-Modified\",\n \"Pragma\",\n \"Request-Id\",\n \"Retry-After\",\n \"Server\",\n \"Transfer-Encoding\",\n \"User-Agent\",\n \"WWW-Authenticate\",\n];\nconst defaultAllowedQueryParameters = [\"api-version\"];\nclass Sanitizer {\n constructor({ allowedHeaderNames = [], allowedQueryParameters = [] } = {}) {\n allowedHeaderNames = Array.isArray(allowedHeaderNames)\n ? defaultAllowedHeaderNames.concat(allowedHeaderNames)\n : defaultAllowedHeaderNames;\n allowedQueryParameters = Array.isArray(allowedQueryParameters)\n ? defaultAllowedQueryParameters.concat(allowedQueryParameters)\n : defaultAllowedQueryParameters;\n this.allowedHeaderNames = new Set(allowedHeaderNames.map((n) => n.toLowerCase()));\n this.allowedQueryParameters = new Set(allowedQueryParameters.map((p) => p.toLowerCase()));\n }\n sanitize(obj) {\n const seen = new Set();\n return JSON.stringify(obj, (key, value) => {\n // Ensure Errors include their interesting non-enumerable members\n if (value instanceof Error) {\n return Object.assign(Object.assign({}, value), { name: value.name, message: value.message });\n }\n if (key === \"_headersMap\") {\n return this.sanitizeHeaders(value);\n }\n else if (key === \"url\") {\n return this.sanitizeUrl(value);\n }\n else if (key === \"query\") {\n return this.sanitizeQuery(value);\n }\n else if (key === \"body\") {\n // Don't log the request body\n return undefined;\n }\n else if (key === \"response\") {\n // Don't log response again\n return undefined;\n }\n else if (key === \"operationSpec\") {\n // When using sendOperationRequest, the request carries a massive\n // field with the autorest spec. No need to log it.\n return undefined;\n }\n else if (Array.isArray(value) || isObject(value)) {\n if (seen.has(value)) {\n return \"[Circular]\";\n }\n seen.add(value);\n }\n return value;\n }, 2);\n }\n sanitizeHeaders(value) {\n return this.sanitizeObject(value, this.allowedHeaderNames, (v, k) => v[k].value);\n }\n sanitizeQuery(value) {\n return this.sanitizeObject(value, this.allowedQueryParameters, (v, k) => v[k]);\n }\n sanitizeObject(value, allowedKeys, accessor) {\n if (typeof value !== \"object\" || value === null) {\n return value;\n }\n const sanitized = {};\n for (const k of Object.keys(value)) {\n if (allowedKeys.has(k.toLowerCase())) {\n sanitized[k] = accessor(value, k);\n }\n else {\n sanitized[k] = RedactedString;\n }\n }\n return sanitized;\n }\n sanitizeUrl(value) {\n if (typeof value !== \"string\" || value === null) {\n return value;\n }\n const urlBuilder = URLBuilder.parse(value);\n const queryString = urlBuilder.getQuery();\n if (!queryString) {\n return value;\n }\n const query = URLQuery.parse(queryString);\n for (const k of query.keys()) {\n if (!this.allowedQueryParameters.has(k.toLowerCase())) {\n query.set(k, RedactedString);\n }\n }\n urlBuilder.setQuery(query.toString());\n return urlBuilder.toString();\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nconst custom = util.inspect.custom;\n\n// Copyright (c) Microsoft Corporation.\nconst errorSanitizer = new Sanitizer();\n/**\n * An error resulting from an HTTP request to a service endpoint.\n */\nclass RestError extends Error {\n constructor(message, code, statusCode, request, response) {\n super(message);\n this.name = \"RestError\";\n this.code = code;\n this.statusCode = statusCode;\n this.request = request;\n this.response = response;\n Object.setPrototypeOf(this, RestError.prototype);\n }\n /**\n * Logging method for util.inspect in Node\n */\n [custom]() {\n return `RestError: ${this.message} \\n ${errorSanitizer.sanitize(this)}`;\n }\n}\n/**\n * A constant string to identify errors that may arise when making an HTTP request that indicates an issue with the transport layer (e.g. the hostname of the URL cannot be resolved via DNS.)\n */\nRestError.REQUEST_SEND_ERROR = \"REQUEST_SEND_ERROR\";\n/**\n * A constant string to identify errors that may arise from parsing an incoming HTTP response. Usually indicates a malformed HTTP body, such as an encoded JSON payload that is incomplete.\n */\nRestError.PARSE_ERROR = \"PARSE_ERROR\";\n\n// Copyright (c) Microsoft Corporation.\nconst logger = logger$1.createClientLogger(\"core-http\");\n\n// Copyright (c) Microsoft Corporation.\nfunction getCachedAgent(isHttps, agentCache) {\n return isHttps ? agentCache.httpsAgent : agentCache.httpAgent;\n}\nclass ReportTransform extends stream.Transform {\n constructor(progressCallback) {\n super();\n this.progressCallback = progressCallback;\n this.loadedBytes = 0;\n }\n _transform(chunk, _encoding, callback) {\n this.push(chunk);\n this.loadedBytes += chunk.length;\n this.progressCallback({ loadedBytes: this.loadedBytes });\n callback(undefined);\n }\n}\nfunction isReadableStream(body) {\n return body && typeof body.pipe === \"function\";\n}\nfunction isStreamComplete(stream, aborter) {\n return new Promise((resolve) => {\n stream.once(\"close\", () => {\n aborter === null || aborter === void 0 ? void 0 : aborter.abort();\n resolve();\n });\n stream.once(\"end\", resolve);\n stream.once(\"error\", resolve);\n });\n}\n/**\n * Transforms a set of headers into the key/value pair defined by {@link HttpHeadersLike}\n */\nfunction parseHeaders(headers) {\n const httpHeaders = new HttpHeaders();\n headers.forEach((value, key) => {\n httpHeaders.set(key, value);\n });\n return httpHeaders;\n}\n/**\n * An HTTP client that uses `node-fetch`.\n */\nclass NodeFetchHttpClient {\n constructor() {\n // a mapping of proxy settings string `${host}:${port}:${username}:${password}` to agent\n this.proxyAgentMap = new Map();\n this.keepAliveAgents = {};\n }\n /**\n * Provides minimum viable error handling and the logic that executes the abstract methods.\n * @param httpRequest - Object representing the outgoing HTTP request.\n * @returns An object representing the incoming HTTP response.\n */\n async sendRequest(httpRequest) {\n var _a;\n if (!httpRequest && typeof httpRequest !== \"object\") {\n throw new Error(\"'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.\");\n }\n const abortController$1 = new abortController.AbortController();\n let abortListener;\n if (httpRequest.abortSignal) {\n if (httpRequest.abortSignal.aborted) {\n throw new abortController.AbortError(\"The operation was aborted.\");\n }\n abortListener = (event) => {\n if (event.type === \"abort\") {\n abortController$1.abort();\n }\n };\n httpRequest.abortSignal.addEventListener(\"abort\", abortListener);\n }\n if (httpRequest.timeout) {\n setTimeout(() => {\n abortController$1.abort();\n }, httpRequest.timeout);\n }\n if (httpRequest.formData) {\n const formData = httpRequest.formData;\n const requestForm = new FormData__default[\"default\"]();\n const appendFormValue = (key, value) => {\n // value function probably returns a stream so we can provide a fresh stream on each retry\n if (typeof value === \"function\") {\n value = value();\n }\n if (value &&\n Object.prototype.hasOwnProperty.call(value, \"value\") &&\n Object.prototype.hasOwnProperty.call(value, \"options\")) {\n requestForm.append(key, value.value, value.options);\n }\n else {\n requestForm.append(key, value);\n }\n };\n for (const formKey of Object.keys(formData)) {\n const formValue = formData[formKey];\n if (Array.isArray(formValue)) {\n for (let j = 0; j < formValue.length; j++) {\n appendFormValue(formKey, formValue[j]);\n }\n }\n else {\n appendFormValue(formKey, formValue);\n }\n }\n httpRequest.body = requestForm;\n httpRequest.formData = undefined;\n const contentType = httpRequest.headers.get(\"Content-Type\");\n if (contentType && contentType.indexOf(\"multipart/form-data\") !== -1) {\n if (typeof requestForm.getBoundary === \"function\") {\n httpRequest.headers.set(\"Content-Type\", `multipart/form-data; boundary=${requestForm.getBoundary()}`);\n }\n else {\n // browser will automatically apply a suitable content-type header\n httpRequest.headers.remove(\"Content-Type\");\n }\n }\n }\n let body = httpRequest.body\n ? typeof httpRequest.body === \"function\"\n ? httpRequest.body()\n : httpRequest.body\n : undefined;\n if (httpRequest.onUploadProgress && httpRequest.body) {\n const onUploadProgress = httpRequest.onUploadProgress;\n const uploadReportStream = new ReportTransform(onUploadProgress);\n if (isReadableStream(body)) {\n body.pipe(uploadReportStream);\n }\n else {\n uploadReportStream.end(body);\n }\n body = uploadReportStream;\n }\n const platformSpecificRequestInit = await this.prepareRequest(httpRequest);\n const requestInit = Object.assign({ body: body, headers: httpRequest.headers.rawHeaders(), method: httpRequest.method, \n // the types for RequestInit are from the browser, which expects AbortSignal to\n // have `reason` and `throwIfAborted`, but these don't exist on our polyfill\n // for Node.\n signal: abortController$1.signal, redirect: \"manual\" }, platformSpecificRequestInit);\n let operationResponse;\n try {\n const response = await this.fetch(httpRequest.url, requestInit);\n const headers = parseHeaders(response.headers);\n const streaming = ((_a = httpRequest.streamResponseStatusCodes) === null || _a === void 0 ? void 0 : _a.has(response.status)) ||\n httpRequest.streamResponseBody;\n operationResponse = {\n headers: headers,\n request: httpRequest,\n status: response.status,\n readableStreamBody: streaming\n ? response.body\n : undefined,\n bodyAsText: !streaming ? await response.text() : undefined,\n };\n const onDownloadProgress = httpRequest.onDownloadProgress;\n if (onDownloadProgress) {\n const responseBody = response.body || undefined;\n if (isReadableStream(responseBody)) {\n const downloadReportStream = new ReportTransform(onDownloadProgress);\n responseBody.pipe(downloadReportStream);\n operationResponse.readableStreamBody = downloadReportStream;\n }\n else {\n const length = parseInt(headers.get(\"Content-Length\")) || undefined;\n if (length) {\n // Calling callback for non-stream response for consistency with browser\n onDownloadProgress({ loadedBytes: length });\n }\n }\n }\n await this.processRequest(operationResponse);\n return operationResponse;\n }\n catch (error) {\n const fetchError = error;\n if (fetchError.code === \"ENOTFOUND\") {\n throw new RestError(fetchError.message, RestError.REQUEST_SEND_ERROR, undefined, httpRequest);\n }\n else if (fetchError.type === \"aborted\") {\n throw new abortController.AbortError(\"The operation was aborted.\");\n }\n throw fetchError;\n }\n finally {\n // clean up event listener\n if (httpRequest.abortSignal && abortListener) {\n let uploadStreamDone = Promise.resolve();\n if (isReadableStream(body)) {\n uploadStreamDone = isStreamComplete(body);\n }\n let downloadStreamDone = Promise.resolve();\n if (isReadableStream(operationResponse === null || operationResponse === void 0 ? void 0 : operationResponse.readableStreamBody)) {\n downloadStreamDone = isStreamComplete(operationResponse.readableStreamBody, abortController$1);\n }\n Promise.all([uploadStreamDone, downloadStreamDone])\n .then(() => {\n var _a;\n (_a = httpRequest.abortSignal) === null || _a === void 0 ? void 0 : _a.removeEventListener(\"abort\", abortListener);\n return;\n })\n .catch((e) => {\n logger.warning(\"Error when cleaning up abortListener on httpRequest\", e);\n });\n }\n }\n }\n getOrCreateAgent(httpRequest) {\n var _a;\n const isHttps = isUrlHttps(httpRequest.url);\n // At the moment, proxy settings and keepAlive are mutually\n // exclusive because the 'tunnel' library currently lacks the\n // ability to create a proxy with keepAlive turned on.\n if (httpRequest.proxySettings) {\n const { host, port, username, password } = httpRequest.proxySettings;\n const key = `${host}:${port}:${username}:${password}`;\n const proxyAgents = (_a = this.proxyAgentMap.get(key)) !== null && _a !== void 0 ? _a : {};\n let agent = getCachedAgent(isHttps, proxyAgents);\n if (agent) {\n return agent;\n }\n const tunnel = createProxyAgent(httpRequest.url, httpRequest.proxySettings, httpRequest.headers);\n agent = tunnel.agent;\n if (tunnel.isHttps) {\n proxyAgents.httpsAgent = tunnel.agent;\n }\n else {\n proxyAgents.httpAgent = tunnel.agent;\n }\n this.proxyAgentMap.set(key, proxyAgents);\n return agent;\n }\n else if (httpRequest.keepAlive) {\n let agent = getCachedAgent(isHttps, this.keepAliveAgents);\n if (agent) {\n return agent;\n }\n const agentOptions = {\n keepAlive: httpRequest.keepAlive,\n };\n if (isHttps) {\n agent = this.keepAliveAgents.httpsAgent = new https__namespace.Agent(agentOptions);\n }\n else {\n agent = this.keepAliveAgents.httpAgent = new http__namespace.Agent(agentOptions);\n }\n return agent;\n }\n else {\n return isHttps ? https__namespace.globalAgent : http__namespace.globalAgent;\n }\n }\n /**\n * Uses `node-fetch` to perform the request.\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-apisurface-standardized-verbs\n async fetch(input, init) {\n return node_fetch__default[\"default\"](input, init);\n }\n /**\n * Prepares a request based on the provided web resource.\n */\n async prepareRequest(httpRequest) {\n const requestInit = {};\n // Set the http(s) agent\n requestInit.agent = this.getOrCreateAgent(httpRequest);\n requestInit.compress = httpRequest.decompressResponse;\n return requestInit;\n }\n /**\n * Process an HTTP response.\n */\n async processRequest(_operationResponse) {\n /* no_op */\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * The different levels of logs that can be used with the HttpPipelineLogger.\n */\nexports.HttpPipelineLogLevel = void 0;\n(function (HttpPipelineLogLevel) {\n /**\n * A log level that indicates that no logs will be logged.\n */\n HttpPipelineLogLevel[HttpPipelineLogLevel[\"OFF\"] = 0] = \"OFF\";\n /**\n * An error log.\n */\n HttpPipelineLogLevel[HttpPipelineLogLevel[\"ERROR\"] = 1] = \"ERROR\";\n /**\n * A warning log.\n */\n HttpPipelineLogLevel[HttpPipelineLogLevel[\"WARNING\"] = 2] = \"WARNING\";\n /**\n * An information log.\n */\n HttpPipelineLogLevel[HttpPipelineLogLevel[\"INFO\"] = 3] = \"INFO\";\n})(exports.HttpPipelineLogLevel || (exports.HttpPipelineLogLevel = {}));\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Converts an OperationOptions to a RequestOptionsBase\n *\n * @param opts - OperationOptions object to convert to RequestOptionsBase\n */\nfunction operationOptionsToRequestOptionsBase(opts) {\n const { requestOptions, tracingOptions } = opts, additionalOptions = tslib.__rest(opts, [\"requestOptions\", \"tracingOptions\"]);\n let result = additionalOptions;\n if (requestOptions) {\n result = Object.assign(Object.assign({}, result), requestOptions);\n }\n if (tracingOptions) {\n result.tracingContext = tracingOptions.tracingContext;\n // By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier.\n result.spanOptions = tracingOptions === null || tracingOptions === void 0 ? void 0 : tracingOptions.spanOptions;\n }\n return result;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * The base class from which all request policies derive.\n */\nclass BaseRequestPolicy {\n /**\n * The main method to implement that manipulates a request/response.\n */\n constructor(\n /**\n * The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.\n */\n _nextPolicy, \n /**\n * The options that can be passed to a given request policy.\n */\n _options) {\n this._nextPolicy = _nextPolicy;\n this._options = _options;\n }\n /**\n * Get whether or not a log with the provided log level should be logged.\n * @param logLevel - The log level of the log that will be logged.\n * @returns Whether or not a log with the provided log level should be logged.\n */\n shouldLog(logLevel) {\n return this._options.shouldLog(logLevel);\n }\n /**\n * Attempt to log the provided message to the provided logger. If no logger was provided or if\n * the log level does not meat the logger's threshold, then nothing will be logged.\n * @param logLevel - The log level of this log.\n * @param message - The message of this log.\n */\n log(logLevel, message) {\n this._options.log(logLevel, message);\n }\n}\n/**\n * Optional properties that can be used when creating a RequestPolicy.\n */\nclass RequestPolicyOptions {\n constructor(_logger) {\n this._logger = _logger;\n }\n /**\n * Get whether or not a log with the provided log level should be logged.\n * @param logLevel - The log level of the log that will be logged.\n * @returns Whether or not a log with the provided log level should be logged.\n */\n shouldLog(logLevel) {\n return (!!this._logger &&\n logLevel !== exports.HttpPipelineLogLevel.OFF &&\n logLevel <= this._logger.minimumLogLevel);\n }\n /**\n * Attempt to log the provided message to the provided logger. If no logger was provided or if\n * the log level does not meet the logger's threshold, then nothing will be logged.\n * @param logLevel - The log level of this log.\n * @param message - The message of this log.\n */\n log(logLevel, message) {\n if (this._logger && this.shouldLog(logLevel)) {\n this._logger.log(logLevel, message);\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Note: The reason we re-define all of the xml2js default settings (version 2.0) here is because the default settings object exposed\n// by the xm2js library is mutable. See https://github.com/Leonidas-from-XIV/node-xml2js/issues/536\n// By creating a new copy of the settings each time we instantiate the parser,\n// we are safeguarding against the possibility of the default settings being mutated elsewhere unintentionally.\nconst xml2jsDefaultOptionsV2 = {\n explicitCharkey: false,\n trim: false,\n normalize: false,\n normalizeTags: false,\n attrkey: XML_ATTRKEY,\n explicitArray: true,\n ignoreAttrs: false,\n mergeAttrs: false,\n explicitRoot: true,\n validator: undefined,\n xmlns: false,\n explicitChildren: false,\n preserveChildrenOrder: false,\n childkey: \"$$\",\n charsAsChildren: false,\n includeWhiteChars: false,\n async: false,\n strict: true,\n attrNameProcessors: undefined,\n attrValueProcessors: undefined,\n tagNameProcessors: undefined,\n valueProcessors: undefined,\n rootName: \"root\",\n xmldec: {\n version: \"1.0\",\n encoding: \"UTF-8\",\n standalone: true,\n },\n doctype: undefined,\n renderOpts: {\n pretty: true,\n indent: \" \",\n newline: \"\\n\",\n },\n headless: false,\n chunkSize: 10000,\n emptyTag: \"\",\n cdata: false,\n};\n// The xml2js settings for general XML parsing operations.\nconst xml2jsParserSettings = Object.assign({}, xml2jsDefaultOptionsV2);\nxml2jsParserSettings.explicitArray = false;\n// The xml2js settings for general XML building operations.\nconst xml2jsBuilderSettings = Object.assign({}, xml2jsDefaultOptionsV2);\nxml2jsBuilderSettings.explicitArray = false;\nxml2jsBuilderSettings.renderOpts = {\n pretty: false,\n};\n/**\n * Converts given JSON object to XML string\n * @param obj - JSON object to be converted into XML string\n * @param opts - Options that govern the parsing of given JSON object\n */\nfunction stringifyXML(obj, opts = {}) {\n var _a;\n xml2jsBuilderSettings.rootName = opts.rootName;\n xml2jsBuilderSettings.charkey = (_a = opts.xmlCharKey) !== null && _a !== void 0 ? _a : XML_CHARKEY;\n const builder = new xml2js__namespace.Builder(xml2jsBuilderSettings);\n return builder.buildObject(obj);\n}\n/**\n * Converts given XML string into JSON\n * @param str - String containing the XML content to be parsed into JSON\n * @param opts - Options that govern the parsing of given xml string\n */\nfunction parseXML(str, opts = {}) {\n var _a;\n xml2jsParserSettings.explicitRoot = !!opts.includeRoot;\n xml2jsParserSettings.charkey = (_a = opts.xmlCharKey) !== null && _a !== void 0 ? _a : XML_CHARKEY;\n const xmlParser = new xml2js__namespace.Parser(xml2jsParserSettings);\n return new Promise((resolve, reject) => {\n if (!str) {\n reject(new Error(\"Document is empty\"));\n }\n else {\n xmlParser.parseString(str, (err, res) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(res);\n }\n });\n }\n });\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Create a new serialization RequestPolicyCreator that will serialized HTTP request bodies as they\n * pass through the HTTP pipeline.\n */\nfunction deserializationPolicy(deserializationContentTypes, parsingOptions) {\n return {\n create: (nextPolicy, options) => {\n return new DeserializationPolicy(nextPolicy, options, deserializationContentTypes, parsingOptions);\n },\n };\n}\nconst defaultJsonContentTypes = [\"application/json\", \"text/json\"];\nconst defaultXmlContentTypes = [\"application/xml\", \"application/atom+xml\"];\nconst DefaultDeserializationOptions = {\n expectedContentTypes: {\n json: defaultJsonContentTypes,\n xml: defaultXmlContentTypes,\n },\n};\n/**\n * A RequestPolicy that will deserialize HTTP response bodies and headers as they pass through the\n * HTTP pipeline.\n */\nclass DeserializationPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, requestPolicyOptions, deserializationContentTypes, parsingOptions = {}) {\n var _a;\n super(nextPolicy, requestPolicyOptions);\n this.jsonContentTypes =\n (deserializationContentTypes && deserializationContentTypes.json) || defaultJsonContentTypes;\n this.xmlContentTypes =\n (deserializationContentTypes && deserializationContentTypes.xml) || defaultXmlContentTypes;\n this.xmlCharKey = (_a = parsingOptions.xmlCharKey) !== null && _a !== void 0 ? _a : XML_CHARKEY;\n }\n async sendRequest(request) {\n return this._nextPolicy.sendRequest(request).then((response) => deserializeResponseBody(this.jsonContentTypes, this.xmlContentTypes, response, {\n xmlCharKey: this.xmlCharKey,\n }));\n }\n}\nfunction getOperationResponse(parsedResponse) {\n let result;\n const request = parsedResponse.request;\n const operationSpec = request.operationSpec;\n if (operationSpec) {\n const operationResponseGetter = request.operationResponseGetter;\n if (!operationResponseGetter) {\n result = operationSpec.responses[parsedResponse.status];\n }\n else {\n result = operationResponseGetter(operationSpec, parsedResponse);\n }\n }\n return result;\n}\nfunction shouldDeserializeResponse(parsedResponse) {\n const shouldDeserialize = parsedResponse.request.shouldDeserialize;\n let result;\n if (shouldDeserialize === undefined) {\n result = true;\n }\n else if (typeof shouldDeserialize === \"boolean\") {\n result = shouldDeserialize;\n }\n else {\n result = shouldDeserialize(parsedResponse);\n }\n return result;\n}\n/**\n * Given a particular set of content types to parse as either JSON or XML, consumes the HTTP response to produce the result object defined by the request's {@link OperationSpec}.\n * @param jsonContentTypes - Response content types to parse the body as JSON.\n * @param xmlContentTypes - Response content types to parse the body as XML.\n * @param response - HTTP Response from the pipeline.\n * @param options - Options to the serializer, mostly for configuring the XML parser if needed.\n * @returns A parsed {@link HttpOperationResponse} object that can be returned by the {@link ServiceClient}.\n */\nfunction deserializeResponseBody(jsonContentTypes, xmlContentTypes, response, options = {}) {\n var _a, _b, _c;\n const updatedOptions = {\n rootName: (_a = options.rootName) !== null && _a !== void 0 ? _a : \"\",\n includeRoot: (_b = options.includeRoot) !== null && _b !== void 0 ? _b : false,\n xmlCharKey: (_c = options.xmlCharKey) !== null && _c !== void 0 ? _c : XML_CHARKEY,\n };\n return parse(jsonContentTypes, xmlContentTypes, response, updatedOptions).then((parsedResponse) => {\n if (!shouldDeserializeResponse(parsedResponse)) {\n return parsedResponse;\n }\n const operationSpec = parsedResponse.request.operationSpec;\n if (!operationSpec || !operationSpec.responses) {\n return parsedResponse;\n }\n const responseSpec = getOperationResponse(parsedResponse);\n const { error, shouldReturnResponse } = handleErrorResponse(parsedResponse, operationSpec, responseSpec);\n if (error) {\n throw error;\n }\n else if (shouldReturnResponse) {\n return parsedResponse;\n }\n // An operation response spec does exist for current status code, so\n // use it to deserialize the response.\n if (responseSpec) {\n if (responseSpec.bodyMapper) {\n let valueToDeserialize = parsedResponse.parsedBody;\n if (operationSpec.isXML && responseSpec.bodyMapper.type.name === MapperType.Sequence) {\n valueToDeserialize =\n typeof valueToDeserialize === \"object\"\n ? valueToDeserialize[responseSpec.bodyMapper.xmlElementName]\n : [];\n }\n try {\n parsedResponse.parsedBody = operationSpec.serializer.deserialize(responseSpec.bodyMapper, valueToDeserialize, \"operationRes.parsedBody\", options);\n }\n catch (innerError) {\n const restError = new RestError(`Error ${innerError} occurred in deserializing the responseBody - ${parsedResponse.bodyAsText}`, undefined, parsedResponse.status, parsedResponse.request, parsedResponse);\n throw restError;\n }\n }\n else if (operationSpec.httpMethod === \"HEAD\") {\n // head methods never have a body, but we return a boolean to indicate presence/absence of the resource\n parsedResponse.parsedBody = response.status >= 200 && response.status < 300;\n }\n if (responseSpec.headersMapper) {\n parsedResponse.parsedHeaders = operationSpec.serializer.deserialize(responseSpec.headersMapper, parsedResponse.headers.toJson(), \"operationRes.parsedHeaders\", options);\n }\n }\n return parsedResponse;\n });\n}\nfunction isOperationSpecEmpty(operationSpec) {\n const expectedStatusCodes = Object.keys(operationSpec.responses);\n return (expectedStatusCodes.length === 0 ||\n (expectedStatusCodes.length === 1 && expectedStatusCodes[0] === \"default\"));\n}\nfunction handleErrorResponse(parsedResponse, operationSpec, responseSpec) {\n var _a;\n const isSuccessByStatus = 200 <= parsedResponse.status && parsedResponse.status < 300;\n const isExpectedStatusCode = isOperationSpecEmpty(operationSpec)\n ? isSuccessByStatus\n : !!responseSpec;\n if (isExpectedStatusCode) {\n if (responseSpec) {\n if (!responseSpec.isError) {\n return { error: null, shouldReturnResponse: false };\n }\n }\n else {\n return { error: null, shouldReturnResponse: false };\n }\n }\n const errorResponseSpec = responseSpec !== null && responseSpec !== void 0 ? responseSpec : operationSpec.responses.default;\n const streaming = ((_a = parsedResponse.request.streamResponseStatusCodes) === null || _a === void 0 ? void 0 : _a.has(parsedResponse.status)) ||\n parsedResponse.request.streamResponseBody;\n const initialErrorMessage = streaming\n ? `Unexpected status code: ${parsedResponse.status}`\n : parsedResponse.bodyAsText;\n const error = new RestError(initialErrorMessage, undefined, parsedResponse.status, parsedResponse.request, parsedResponse);\n // If the item failed but there's no error spec or default spec to deserialize the error,\n // we should fail so we just throw the parsed response\n if (!errorResponseSpec) {\n throw error;\n }\n const defaultBodyMapper = errorResponseSpec.bodyMapper;\n const defaultHeadersMapper = errorResponseSpec.headersMapper;\n try {\n // If error response has a body, try to deserialize it using default body mapper.\n // Then try to extract error code & message from it\n if (parsedResponse.parsedBody) {\n const parsedBody = parsedResponse.parsedBody;\n let parsedError;\n if (defaultBodyMapper) {\n let valueToDeserialize = parsedBody;\n if (operationSpec.isXML && defaultBodyMapper.type.name === MapperType.Sequence) {\n valueToDeserialize =\n typeof parsedBody === \"object\" ? parsedBody[defaultBodyMapper.xmlElementName] : [];\n }\n parsedError = operationSpec.serializer.deserialize(defaultBodyMapper, valueToDeserialize, \"error.response.parsedBody\");\n }\n const internalError = parsedBody.error || parsedError || parsedBody;\n error.code = internalError.code;\n if (internalError.message) {\n error.message = internalError.message;\n }\n if (defaultBodyMapper) {\n error.response.parsedBody = parsedError;\n }\n }\n // If error response has headers, try to deserialize it using default header mapper\n if (parsedResponse.headers && defaultHeadersMapper) {\n error.response.parsedHeaders = operationSpec.serializer.deserialize(defaultHeadersMapper, parsedResponse.headers.toJson(), \"operationRes.parsedHeaders\");\n }\n }\n catch (defaultError) {\n error.message = `Error \"${defaultError.message}\" occurred in deserializing the responseBody - \"${parsedResponse.bodyAsText}\" for the default response.`;\n }\n return { error, shouldReturnResponse: false };\n}\nfunction parse(jsonContentTypes, xmlContentTypes, operationResponse, opts) {\n var _a;\n const errorHandler = (err) => {\n const msg = `Error \"${err}\" occurred while parsing the response body - ${operationResponse.bodyAsText}.`;\n const errCode = err.code || RestError.PARSE_ERROR;\n const e = new RestError(msg, errCode, operationResponse.status, operationResponse.request, operationResponse);\n return Promise.reject(e);\n };\n const streaming = ((_a = operationResponse.request.streamResponseStatusCodes) === null || _a === void 0 ? void 0 : _a.has(operationResponse.status)) ||\n operationResponse.request.streamResponseBody;\n if (!streaming && operationResponse.bodyAsText) {\n const text = operationResponse.bodyAsText;\n const contentType = operationResponse.headers.get(\"Content-Type\") || \"\";\n const contentComponents = !contentType\n ? []\n : contentType.split(\";\").map((component) => component.toLowerCase());\n if (contentComponents.length === 0 ||\n contentComponents.some((component) => jsonContentTypes.indexOf(component) !== -1)) {\n return new Promise((resolve) => {\n operationResponse.parsedBody = JSON.parse(text);\n resolve(operationResponse);\n }).catch(errorHandler);\n }\n else if (contentComponents.some((component) => xmlContentTypes.indexOf(component) !== -1)) {\n return parseXML(text, opts)\n .then((body) => {\n operationResponse.parsedBody = body;\n return operationResponse;\n })\n .catch(errorHandler);\n }\n }\n return Promise.resolve(operationResponse);\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * By default, HTTP connections are maintained for future requests.\n */\nconst DefaultKeepAliveOptions = {\n enable: true,\n};\n/**\n * Creates a policy that controls whether HTTP connections are maintained on future requests.\n * @param keepAliveOptions - Keep alive options. By default, HTTP connections are maintained for future requests.\n * @returns An instance of the {@link KeepAlivePolicy}\n */\nfunction keepAlivePolicy(keepAliveOptions) {\n return {\n create: (nextPolicy, options) => {\n return new KeepAlivePolicy(nextPolicy, options, keepAliveOptions || DefaultKeepAliveOptions);\n },\n };\n}\n/**\n * KeepAlivePolicy is a policy used to control keep alive settings for every request.\n */\nclass KeepAlivePolicy extends BaseRequestPolicy {\n /**\n * Creates an instance of KeepAlivePolicy.\n *\n * @param nextPolicy -\n * @param options -\n * @param keepAliveOptions -\n */\n constructor(nextPolicy, options, keepAliveOptions) {\n super(nextPolicy, options);\n this.keepAliveOptions = keepAliveOptions;\n }\n /**\n * Sends out request.\n *\n * @param request -\n * @returns\n */\n async sendRequest(request) {\n request.keepAlive = this.keepAliveOptions.enable;\n return this._nextPolicy.sendRequest(request);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Methods that are allowed to follow redirects 301 and 302\n */\nconst allowedRedirect = [\"GET\", \"HEAD\"];\nconst DefaultRedirectOptions = {\n handleRedirects: true,\n maxRetries: 20,\n};\n/**\n * Creates a redirect policy, which sends a repeats the request to a new destination if a response arrives with a \"location\" header, and a status code between 300 and 307.\n * @param maximumRetries - Maximum number of redirects to follow.\n * @returns An instance of the {@link RedirectPolicy}\n */\nfunction redirectPolicy(maximumRetries = 20) {\n return {\n create: (nextPolicy, options) => {\n return new RedirectPolicy(nextPolicy, options, maximumRetries);\n },\n };\n}\n/**\n * Resends the request to a new destination if a response arrives with a \"location\" header, and a status code between 300 and 307.\n */\nclass RedirectPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, maxRetries = 20) {\n super(nextPolicy, options);\n this.maxRetries = maxRetries;\n }\n sendRequest(request) {\n return this._nextPolicy\n .sendRequest(request)\n .then((response) => handleRedirect(this, response, 0));\n }\n}\nfunction handleRedirect(policy, response, currentRetries) {\n const { request, status } = response;\n const locationHeader = response.headers.get(\"location\");\n if (locationHeader &&\n (status === 300 ||\n (status === 301 && allowedRedirect.includes(request.method)) ||\n (status === 302 && allowedRedirect.includes(request.method)) ||\n (status === 303 && request.method === \"POST\") ||\n status === 307) &&\n (!policy.maxRetries || currentRetries < policy.maxRetries)) {\n const builder = URLBuilder.parse(request.url);\n builder.setPath(locationHeader);\n request.url = builder.toString();\n // POST request with Status code 303 should be converted into a\n // redirected GET request if the redirect url is present in the location header\n if (status === 303) {\n request.method = \"GET\";\n delete request.body;\n }\n return policy._nextPolicy\n .sendRequest(request)\n .then((res) => handleRedirect(policy, res, currentRetries + 1));\n }\n return Promise.resolve(response);\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nconst DEFAULT_CLIENT_RETRY_COUNT = 3;\n// intervals are in ms\nconst DEFAULT_CLIENT_RETRY_INTERVAL = 1000 * 30;\nconst DEFAULT_CLIENT_MAX_RETRY_INTERVAL = 1000 * 90;\nconst DEFAULT_CLIENT_MIN_RETRY_INTERVAL = 1000 * 3;\nfunction isNumber(n) {\n return typeof n === \"number\";\n}\n/**\n * @internal\n * Determines if the operation should be retried.\n *\n * @param retryLimit - Specifies the max number of retries.\n * @param predicate - Initial chekck on whether to retry based on given responses or errors\n * @param retryData - The retry data.\n * @returns True if the operation qualifies for a retry; false otherwise.\n */\nfunction shouldRetry(retryLimit, predicate, retryData, response, error) {\n if (!predicate(response, error)) {\n return false;\n }\n return retryData.retryCount < retryLimit;\n}\n/**\n * @internal\n * Updates the retry data for the next attempt.\n *\n * @param retryOptions - specifies retry interval, and its lower bound and upper bound.\n * @param retryData - The retry data.\n * @param err - The operation\"s error, if any.\n */\nfunction updateRetryData(retryOptions, retryData = { retryCount: 0, retryInterval: 0 }, err) {\n if (err) {\n if (retryData.error) {\n err.innerError = retryData.error;\n }\n retryData.error = err;\n }\n // Adjust retry count\n retryData.retryCount++;\n // Adjust retry interval\n let incrementDelta = Math.pow(2, retryData.retryCount - 1) - 1;\n const boundedRandDelta = retryOptions.retryInterval * 0.8 +\n Math.floor(Math.random() * (retryOptions.retryInterval * 0.4));\n incrementDelta *= boundedRandDelta;\n retryData.retryInterval = Math.min(retryOptions.minRetryInterval + incrementDelta, retryOptions.maxRetryInterval);\n return retryData;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Policy that retries the request as many times as configured for as long as the max retry time interval specified, each retry waiting longer to begin than the last time.\n * @param retryCount - Maximum number of retries.\n * @param retryInterval - Base time between retries.\n * @param maxRetryInterval - Maximum time to wait between retries.\n */\nfunction exponentialRetryPolicy(retryCount, retryInterval, maxRetryInterval) {\n return {\n create: (nextPolicy, options) => {\n return new ExponentialRetryPolicy(nextPolicy, options, retryCount, retryInterval, maxRetryInterval);\n },\n };\n}\n/**\n * Describes the Retry Mode type. Currently supporting only Exponential.\n */\nexports.RetryMode = void 0;\n(function (RetryMode) {\n /**\n * Currently supported retry mode.\n * Each time a retry happens, it will take exponentially more time than the last time.\n */\n RetryMode[RetryMode[\"Exponential\"] = 0] = \"Exponential\";\n})(exports.RetryMode || (exports.RetryMode = {}));\nconst DefaultRetryOptions = {\n maxRetries: DEFAULT_CLIENT_RETRY_COUNT,\n retryDelayInMs: DEFAULT_CLIENT_RETRY_INTERVAL,\n maxRetryDelayInMs: DEFAULT_CLIENT_MAX_RETRY_INTERVAL,\n};\n/**\n * Instantiates a new \"ExponentialRetryPolicyFilter\" instance.\n */\nclass ExponentialRetryPolicy extends BaseRequestPolicy {\n /**\n * @param nextPolicy - The next RequestPolicy in the pipeline chain.\n * @param options - The options for this RequestPolicy.\n * @param retryCount - The client retry count.\n * @param retryInterval - The client retry interval, in milliseconds.\n * @param minRetryInterval - The minimum retry interval, in milliseconds.\n * @param maxRetryInterval - The maximum retry interval, in milliseconds.\n */\n constructor(nextPolicy, options, retryCount, retryInterval, maxRetryInterval) {\n super(nextPolicy, options);\n this.retryCount = isNumber(retryCount) ? retryCount : DEFAULT_CLIENT_RETRY_COUNT;\n this.retryInterval = isNumber(retryInterval) ? retryInterval : DEFAULT_CLIENT_RETRY_INTERVAL;\n this.maxRetryInterval = isNumber(maxRetryInterval)\n ? maxRetryInterval\n : DEFAULT_CLIENT_MAX_RETRY_INTERVAL;\n }\n sendRequest(request) {\n return this._nextPolicy\n .sendRequest(request.clone())\n .then((response) => retry$1(this, request, response))\n .catch((error) => retry$1(this, request, error.response, undefined, error));\n }\n}\nasync function retry$1(policy, request, response, retryData, requestError) {\n function shouldPolicyRetry(responseParam) {\n const statusCode = responseParam === null || responseParam === void 0 ? void 0 : responseParam.status;\n if (statusCode === 503 && (response === null || response === void 0 ? void 0 : response.headers.get(Constants.HeaderConstants.RETRY_AFTER))) {\n return false;\n }\n if (statusCode === undefined ||\n (statusCode < 500 && statusCode !== 408) ||\n statusCode === 501 ||\n statusCode === 505) {\n return false;\n }\n return true;\n }\n retryData = updateRetryData({\n retryInterval: policy.retryInterval,\n minRetryInterval: 0,\n maxRetryInterval: policy.maxRetryInterval,\n }, retryData, requestError);\n const isAborted = request.abortSignal && request.abortSignal.aborted;\n if (!isAborted && shouldRetry(policy.retryCount, shouldPolicyRetry, retryData, response)) {\n logger.info(`Retrying request in ${retryData.retryInterval}`);\n try {\n await coreUtil.delay(retryData.retryInterval);\n const res = await policy._nextPolicy.sendRequest(request.clone());\n return retry$1(policy, request, res, retryData);\n }\n catch (err) {\n return retry$1(policy, request, response, retryData, err);\n }\n }\n else if (isAborted || requestError || !response) {\n // If the operation failed in the end, return all errors instead of just the last one\n const err = retryData.error ||\n new RestError(\"Failed to send the request.\", RestError.REQUEST_SEND_ERROR, response && response.status, response && response.request, response);\n throw err;\n }\n else {\n return response;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Creates a policy that logs information about the outgoing request and the incoming responses.\n * @param loggingOptions - Logging options.\n * @returns An instance of the {@link LogPolicy}\n */\nfunction logPolicy(loggingOptions = {}) {\n return {\n create: (nextPolicy, options) => {\n return new LogPolicy(nextPolicy, options, loggingOptions);\n },\n };\n}\n/**\n * A policy that logs information about the outgoing request and the incoming responses.\n */\nclass LogPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, { logger: logger$1 = logger.info, allowedHeaderNames = [], allowedQueryParameters = [], } = {}) {\n super(nextPolicy, options);\n this.logger = logger$1;\n this.sanitizer = new Sanitizer({ allowedHeaderNames, allowedQueryParameters });\n }\n /**\n * Header names whose values will be logged when logging is enabled. Defaults to\n * Date, traceparent, x-ms-client-request-id, and x-ms-request id. Any headers\n * specified in this field will be added to that list. Any other values will\n * be written to logs as \"REDACTED\".\n * @deprecated Pass these into the constructor instead.\n */\n get allowedHeaderNames() {\n return this.sanitizer.allowedHeaderNames;\n }\n /**\n * Header names whose values will be logged when logging is enabled. Defaults to\n * Date, traceparent, x-ms-client-request-id, and x-ms-request id. Any headers\n * specified in this field will be added to that list. Any other values will\n * be written to logs as \"REDACTED\".\n * @deprecated Pass these into the constructor instead.\n */\n set allowedHeaderNames(allowedHeaderNames) {\n this.sanitizer.allowedHeaderNames = allowedHeaderNames;\n }\n /**\n * Query string names whose values will be logged when logging is enabled. By default no\n * query string values are logged.\n * @deprecated Pass these into the constructor instead.\n */\n get allowedQueryParameters() {\n return this.sanitizer.allowedQueryParameters;\n }\n /**\n * Query string names whose values will be logged when logging is enabled. By default no\n * query string values are logged.\n * @deprecated Pass these into the constructor instead.\n */\n set allowedQueryParameters(allowedQueryParameters) {\n this.sanitizer.allowedQueryParameters = allowedQueryParameters;\n }\n sendRequest(request) {\n if (!this.logger.enabled)\n return this._nextPolicy.sendRequest(request);\n this.logRequest(request);\n return this._nextPolicy.sendRequest(request).then((response) => this.logResponse(response));\n }\n logRequest(request) {\n this.logger(`Request: ${this.sanitizer.sanitize(request)}`);\n }\n logResponse(response) {\n this.logger(`Response status code: ${response.status}`);\n this.logger(`Headers: ${this.sanitizer.sanitize(response.headers)}`);\n return response;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Get the path to this parameter's value as a dotted string (a.b.c).\n * @param parameter - The parameter to get the path string for.\n * @returns The path to this parameter's value as a dotted string.\n */\nfunction getPathStringFromParameter(parameter) {\n return getPathStringFromParameterPath(parameter.parameterPath, parameter.mapper);\n}\nfunction getPathStringFromParameterPath(parameterPath, mapper) {\n let result;\n if (typeof parameterPath === \"string\") {\n result = parameterPath;\n }\n else if (Array.isArray(parameterPath)) {\n result = parameterPath.join(\".\");\n }\n else {\n result = mapper.serializedName;\n }\n return result;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Gets the list of status codes for streaming responses.\n * @internal\n */\nfunction getStreamResponseStatusCodes(operationSpec) {\n const result = new Set();\n for (const statusCode in operationSpec.responses) {\n const operationResponse = operationSpec.responses[statusCode];\n if (operationResponse.bodyMapper &&\n operationResponse.bodyMapper.type.name === MapperType.Stream) {\n result.add(Number(statusCode));\n }\n }\n return result;\n}\n\n// Copyright (c) Microsoft Corporation.\nfunction getDefaultUserAgentKey() {\n return Constants.HeaderConstants.USER_AGENT;\n}\nfunction getPlatformSpecificData() {\n const runtimeInfo = {\n key: \"Node\",\n value: process.version,\n };\n const osInfo = {\n key: \"OS\",\n value: `(${os__namespace.arch()}-${os__namespace.type()}-${os__namespace.release()})`,\n };\n return [runtimeInfo, osInfo];\n}\n\n// Copyright (c) Microsoft Corporation.\nfunction getRuntimeInfo() {\n const msRestRuntime = {\n key: \"core-http\",\n value: Constants.coreHttpVersion,\n };\n return [msRestRuntime];\n}\nfunction getUserAgentString(telemetryInfo, keySeparator = \" \", valueSeparator = \"/\") {\n return telemetryInfo\n .map((info) => {\n const value = info.value ? `${valueSeparator}${info.value}` : \"\";\n return `${info.key}${value}`;\n })\n .join(keySeparator);\n}\nconst getDefaultUserAgentHeaderName = getDefaultUserAgentKey;\n/**\n * The default approach to generate user agents.\n * Uses static information from this package, plus system information available from the runtime.\n */\nfunction getDefaultUserAgentValue() {\n const runtimeInfo = getRuntimeInfo();\n const platformSpecificData = getPlatformSpecificData();\n const userAgent = getUserAgentString(runtimeInfo.concat(platformSpecificData));\n return userAgent;\n}\n/**\n * Returns a policy that adds the user agent header to outgoing requests based on the given {@link TelemetryInfo}.\n * @param userAgentData - Telemetry information.\n * @returns A new {@link UserAgentPolicy}.\n */\nfunction userAgentPolicy(userAgentData) {\n const key = !userAgentData || userAgentData.key === undefined || userAgentData.key === null\n ? getDefaultUserAgentKey()\n : userAgentData.key;\n const value = !userAgentData || userAgentData.value === undefined || userAgentData.value === null\n ? getDefaultUserAgentValue()\n : userAgentData.value;\n return {\n create: (nextPolicy, options) => {\n return new UserAgentPolicy(nextPolicy, options, key, value);\n },\n };\n}\n/**\n * A policy that adds the user agent header to outgoing requests based on the given {@link TelemetryInfo}.\n */\nclass UserAgentPolicy extends BaseRequestPolicy {\n constructor(_nextPolicy, _options, headerKey, headerValue) {\n super(_nextPolicy, _options);\n this._nextPolicy = _nextPolicy;\n this._options = _options;\n this.headerKey = headerKey;\n this.headerValue = headerValue;\n }\n sendRequest(request) {\n this.addUserAgentHeader(request);\n return this._nextPolicy.sendRequest(request);\n }\n /**\n * Adds the user agent header to the outgoing request.\n */\n addUserAgentHeader(request) {\n if (!request.headers) {\n request.headers = new HttpHeaders();\n }\n if (!request.headers.get(this.headerKey) && this.headerValue) {\n request.headers.set(this.headerKey, this.headerValue);\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * The format that will be used to join an array of values together for a query parameter value.\n */\nexports.QueryCollectionFormat = void 0;\n(function (QueryCollectionFormat) {\n /**\n * CSV: Each pair of segments joined by a single comma.\n */\n QueryCollectionFormat[\"Csv\"] = \",\";\n /**\n * SSV: Each pair of segments joined by a single space character.\n */\n QueryCollectionFormat[\"Ssv\"] = \" \";\n /**\n * TSV: Each pair of segments joined by a single tab character.\n */\n QueryCollectionFormat[\"Tsv\"] = \"\\t\";\n /**\n * Pipes: Each pair of segments joined by a single pipe character.\n */\n QueryCollectionFormat[\"Pipes\"] = \"|\";\n /**\n * Denotes this is an array of values that should be passed to the server in multiple key/value pairs, e.g. `?queryParam=value1&queryParam=value2`\n */\n QueryCollectionFormat[\"Multi\"] = \"Multi\";\n})(exports.QueryCollectionFormat || (exports.QueryCollectionFormat = {}));\n\n// Copyright (c) Microsoft Corporation.\n// Default options for the cycler if none are provided\nconst DEFAULT_CYCLER_OPTIONS = {\n forcedRefreshWindowInMs: 1000,\n retryIntervalInMs: 3000,\n refreshWindowInMs: 1000 * 60 * 2, // Start refreshing 2m before expiry\n};\n/**\n * Converts an an unreliable access token getter (which may resolve with null)\n * into an AccessTokenGetter by retrying the unreliable getter in a regular\n * interval.\n *\n * @param getAccessToken - a function that produces a promise of an access\n * token that may fail by returning null\n * @param retryIntervalInMs - the time (in milliseconds) to wait between retry\n * attempts\n * @param timeoutInMs - the timestamp after which the refresh attempt will fail,\n * throwing an exception\n * @returns - a promise that, if it resolves, will resolve with an access token\n */\nasync function beginRefresh(getAccessToken, retryIntervalInMs, timeoutInMs) {\n // This wrapper handles exceptions gracefully as long as we haven't exceeded\n // the timeout.\n async function tryGetAccessToken() {\n if (Date.now() < timeoutInMs) {\n try {\n return await getAccessToken();\n }\n catch (_a) {\n return null;\n }\n }\n else {\n const finalToken = await getAccessToken();\n // Timeout is up, so throw if it's still null\n if (finalToken === null) {\n throw new Error(\"Failed to refresh access token.\");\n }\n return finalToken;\n }\n }\n let token = await tryGetAccessToken();\n while (token === null) {\n await coreUtil.delay(retryIntervalInMs);\n token = await tryGetAccessToken();\n }\n return token;\n}\n/**\n * Creates a token cycler from a credential, scopes, and optional settings.\n *\n * A token cycler represents a way to reliably retrieve a valid access token\n * from a TokenCredential. It will handle initializing the token, refreshing it\n * when it nears expiration, and synchronizes refresh attempts to avoid\n * concurrency hazards.\n *\n * @param credential - the underlying TokenCredential that provides the access\n * token\n * @param scopes - the scopes to request authorization for\n * @param tokenCyclerOptions - optionally override default settings for the cycler\n *\n * @returns - a function that reliably produces a valid access token\n */\nfunction createTokenCycler(credential, scopes, tokenCyclerOptions) {\n let refreshWorker = null;\n let token = null;\n const options = Object.assign(Object.assign({}, DEFAULT_CYCLER_OPTIONS), tokenCyclerOptions);\n /**\n * This little holder defines several predicates that we use to construct\n * the rules of refreshing the token.\n */\n const cycler = {\n /**\n * Produces true if a refresh job is currently in progress.\n */\n get isRefreshing() {\n return refreshWorker !== null;\n },\n /**\n * Produces true if the cycler SHOULD refresh (we are within the refresh\n * window and not already refreshing)\n */\n get shouldRefresh() {\n var _a;\n return (!cycler.isRefreshing &&\n ((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now());\n },\n /**\n * Produces true if the cycler MUST refresh (null or nearly-expired\n * token).\n */\n get mustRefresh() {\n return (token === null || token.expiresOnTimestamp - options.forcedRefreshWindowInMs < Date.now());\n },\n };\n /**\n * Starts a refresh job or returns the existing job if one is already\n * running.\n */\n function refresh(getTokenOptions) {\n var _a;\n if (!cycler.isRefreshing) {\n // We bind `scopes` here to avoid passing it around a lot\n const tryGetAccessToken = () => credential.getToken(scopes, getTokenOptions);\n // Take advantage of promise chaining to insert an assignment to `token`\n // before the refresh can be considered done.\n refreshWorker = beginRefresh(tryGetAccessToken, options.retryIntervalInMs, \n // If we don't have a token, then we should timeout immediately\n (_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : Date.now())\n .then((_token) => {\n refreshWorker = null;\n token = _token;\n return token;\n })\n .catch((reason) => {\n // We also should reset the refresher if we enter a failed state. All\n // existing awaiters will throw, but subsequent requests will start a\n // new retry chain.\n refreshWorker = null;\n token = null;\n throw reason;\n });\n }\n return refreshWorker;\n }\n return async (tokenOptions) => {\n //\n // Simple rules:\n // - If we MUST refresh, then return the refresh task, blocking\n // the pipeline until a token is available.\n // - If we SHOULD refresh, then run refresh but don't return it\n // (we can still use the cached token).\n // - Return the token, since it's fine if we didn't return in\n // step 1.\n //\n if (cycler.mustRefresh)\n return refresh(tokenOptions);\n if (cycler.shouldRefresh) {\n refresh(tokenOptions);\n }\n return token;\n };\n}\n// #endregion\n/**\n * Creates a new factory for a RequestPolicy that applies a bearer token to\n * the requests' `Authorization` headers.\n *\n * @param credential - The TokenCredential implementation that can supply the bearer token.\n * @param scopes - The scopes for which the bearer token applies.\n */\nfunction bearerTokenAuthenticationPolicy(credential, scopes) {\n // This simple function encapsulates the entire process of reliably retrieving the token\n const getToken = createTokenCycler(credential, scopes /* , options */);\n class BearerTokenAuthenticationPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options) {\n super(nextPolicy, options);\n }\n async sendRequest(webResource) {\n if (!webResource.url.toLowerCase().startsWith(\"https://\")) {\n throw new Error(\"Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.\");\n }\n const { token } = await getToken({\n abortSignal: webResource.abortSignal,\n tracingOptions: {\n tracingContext: webResource.tracingContext,\n },\n });\n webResource.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${token}`);\n return this._nextPolicy.sendRequest(webResource);\n }\n }\n return {\n create: (nextPolicy, options) => {\n return new BearerTokenAuthenticationPolicy(nextPolicy, options);\n },\n };\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Returns a request policy factory that can be used to create an instance of\n * {@link DisableResponseDecompressionPolicy}.\n */\nfunction disableResponseDecompressionPolicy() {\n return {\n create: (nextPolicy, options) => {\n return new DisableResponseDecompressionPolicy(nextPolicy, options);\n },\n };\n}\n/**\n * A policy to disable response decompression according to Accept-Encoding header\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding\n */\nclass DisableResponseDecompressionPolicy extends BaseRequestPolicy {\n /**\n * Creates an instance of DisableResponseDecompressionPolicy.\n *\n * @param nextPolicy -\n * @param options -\n */\n // The parent constructor is protected.\n /* eslint-disable-next-line @typescript-eslint/no-useless-constructor */\n constructor(nextPolicy, options) {\n super(nextPolicy, options);\n }\n /**\n * Sends out request.\n *\n * @param request -\n * @returns\n */\n async sendRequest(request) {\n request.decompressResponse = false;\n return this._nextPolicy.sendRequest(request);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Creates a policy that assigns a unique request id to outgoing requests.\n * @param requestIdHeaderName - The name of the header to use when assigning the unique id to the request.\n */\nfunction generateClientRequestIdPolicy(requestIdHeaderName = \"x-ms-client-request-id\") {\n return {\n create: (nextPolicy, options) => {\n return new GenerateClientRequestIdPolicy(nextPolicy, options, requestIdHeaderName);\n },\n };\n}\nclass GenerateClientRequestIdPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, _requestIdHeaderName) {\n super(nextPolicy, options);\n this._requestIdHeaderName = _requestIdHeaderName;\n }\n sendRequest(request) {\n if (!request.headers.contains(this._requestIdHeaderName)) {\n request.headers.set(this._requestIdHeaderName, request.requestId);\n }\n return this._nextPolicy.sendRequest(request);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nlet cachedHttpClient;\nfunction getCachedDefaultHttpClient() {\n if (!cachedHttpClient) {\n cachedHttpClient = new NodeFetchHttpClient();\n }\n return cachedHttpClient;\n}\n\n// Copyright (c) Microsoft Corporation.\nfunction ndJsonPolicy() {\n return {\n create: (nextPolicy, options) => {\n return new NdJsonPolicy(nextPolicy, options);\n },\n };\n}\n/**\n * NdJsonPolicy that formats a JSON array as newline-delimited JSON\n */\nclass NdJsonPolicy extends BaseRequestPolicy {\n /**\n * Creates an instance of KeepAlivePolicy.\n */\n constructor(nextPolicy, options) {\n super(nextPolicy, options);\n }\n /**\n * Sends a request.\n */\n async sendRequest(request) {\n // There currently isn't a good way to bypass the serializer\n if (typeof request.body === \"string\" && request.body.startsWith(\"[\")) {\n const body = JSON.parse(request.body);\n if (Array.isArray(body)) {\n request.body = body.map((item) => JSON.stringify(item) + \"\\n\").join(\"\");\n }\n }\n return this._nextPolicy.sendRequest(request);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Stores the patterns specified in NO_PROXY environment variable.\n * @internal\n */\nconst globalNoProxyList = [];\nlet noProxyListLoaded = false;\n/** A cache of whether a host should bypass the proxy. */\nconst globalBypassedMap = new Map();\nfunction loadEnvironmentProxyValue() {\n if (!process) {\n return undefined;\n }\n const httpsProxy = getEnvironmentValue(Constants.HTTPS_PROXY);\n const allProxy = getEnvironmentValue(Constants.ALL_PROXY);\n const httpProxy = getEnvironmentValue(Constants.HTTP_PROXY);\n return httpsProxy || allProxy || httpProxy;\n}\n/**\n * Check whether the host of a given `uri` matches any pattern in the no proxy list.\n * If there's a match, any request sent to the same host shouldn't have the proxy settings set.\n * This implementation is a port of https://github.com/Azure/azure-sdk-for-net/blob/8cca811371159e527159c7eb65602477898683e2/sdk/core/Azure.Core/src/Pipeline/Internal/HttpEnvironmentProxy.cs#L210\n */\nfunction isBypassed(uri, noProxyList, bypassedMap) {\n if (noProxyList.length === 0) {\n return false;\n }\n const host = URLBuilder.parse(uri).getHost();\n if (bypassedMap === null || bypassedMap === void 0 ? void 0 : bypassedMap.has(host)) {\n return bypassedMap.get(host);\n }\n let isBypassedFlag = false;\n for (const pattern of noProxyList) {\n if (pattern[0] === \".\") {\n // This should match either domain it self or any subdomain or host\n // .foo.com will match foo.com it self or *.foo.com\n if (host.endsWith(pattern)) {\n isBypassedFlag = true;\n }\n else {\n if (host.length === pattern.length - 1 && host === pattern.slice(1)) {\n isBypassedFlag = true;\n }\n }\n }\n else {\n if (host === pattern) {\n isBypassedFlag = true;\n }\n }\n }\n bypassedMap === null || bypassedMap === void 0 ? void 0 : bypassedMap.set(host, isBypassedFlag);\n return isBypassedFlag;\n}\n/**\n * @internal\n */\nfunction loadNoProxy() {\n const noProxy = getEnvironmentValue(Constants.NO_PROXY);\n noProxyListLoaded = true;\n if (noProxy) {\n return noProxy\n .split(\",\")\n .map((item) => item.trim())\n .filter((item) => item.length);\n }\n return [];\n}\n/**\n * Converts a given URL of a proxy server into `ProxySettings` or attempts to retrieve `ProxySettings` from the current environment if one is not passed.\n * @param proxyUrl - URL of the proxy\n * @returns The default proxy settings, or undefined.\n */\nfunction getDefaultProxySettings(proxyUrl) {\n if (!proxyUrl) {\n proxyUrl = loadEnvironmentProxyValue();\n if (!proxyUrl) {\n return undefined;\n }\n }\n const { username, password, urlWithoutAuth } = extractAuthFromUrl(proxyUrl);\n const parsedUrl = URLBuilder.parse(urlWithoutAuth);\n const schema = parsedUrl.getScheme() ? parsedUrl.getScheme() + \"://\" : \"\";\n return {\n host: schema + parsedUrl.getHost(),\n port: Number.parseInt(parsedUrl.getPort() || \"80\"),\n username,\n password,\n };\n}\n/**\n * A policy that allows one to apply proxy settings to all requests.\n * If not passed static settings, they will be retrieved from the HTTPS_PROXY\n * or HTTP_PROXY environment variables.\n * @param proxySettings - ProxySettings to use on each request.\n * @param options - additional settings, for example, custom NO_PROXY patterns\n */\nfunction proxyPolicy(proxySettings, options) {\n if (!proxySettings) {\n proxySettings = getDefaultProxySettings();\n }\n if (!noProxyListLoaded) {\n globalNoProxyList.push(...loadNoProxy());\n }\n return {\n create: (nextPolicy, requestPolicyOptions) => {\n return new ProxyPolicy(nextPolicy, requestPolicyOptions, proxySettings, options === null || options === void 0 ? void 0 : options.customNoProxyList);\n },\n };\n}\nfunction extractAuthFromUrl(url) {\n const atIndex = url.indexOf(\"@\");\n if (atIndex === -1) {\n return { urlWithoutAuth: url };\n }\n const schemeIndex = url.indexOf(\"://\");\n const authStart = schemeIndex !== -1 ? schemeIndex + 3 : 0;\n const auth = url.substring(authStart, atIndex);\n const colonIndex = auth.indexOf(\":\");\n const hasPassword = colonIndex !== -1;\n const username = hasPassword ? auth.substring(0, colonIndex) : auth;\n const password = hasPassword ? auth.substring(colonIndex + 1) : undefined;\n const urlWithoutAuth = url.substring(0, authStart) + url.substring(atIndex + 1);\n return {\n username,\n password,\n urlWithoutAuth,\n };\n}\nclass ProxyPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, proxySettings, customNoProxyList) {\n super(nextPolicy, options);\n this.proxySettings = proxySettings;\n this.customNoProxyList = customNoProxyList;\n }\n sendRequest(request) {\n var _a;\n if (!request.proxySettings &&\n !isBypassed(request.url, (_a = this.customNoProxyList) !== null && _a !== void 0 ? _a : globalNoProxyList, this.customNoProxyList ? undefined : globalBypassedMap)) {\n request.proxySettings = this.proxySettings;\n }\n return this._nextPolicy.sendRequest(request);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nfunction rpRegistrationPolicy(retryTimeout = 30) {\n return {\n create: (nextPolicy, options) => {\n return new RPRegistrationPolicy(nextPolicy, options, retryTimeout);\n },\n };\n}\nclass RPRegistrationPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, _retryTimeout = 30) {\n super(nextPolicy, options);\n this._retryTimeout = _retryTimeout;\n }\n sendRequest(request) {\n return this._nextPolicy\n .sendRequest(request.clone())\n .then((response) => registerIfNeeded(this, request, response));\n }\n}\nfunction registerIfNeeded(policy, request, response) {\n if (response.status === 409) {\n const rpName = checkRPNotRegisteredError(response.bodyAsText);\n if (rpName) {\n const urlPrefix = extractSubscriptionUrl(request.url);\n return (registerRP(policy, urlPrefix, rpName, request)\n // Autoregistration of ${provider} failed for some reason. We will not return this error\n // instead will return the initial response with 409 status code back to the user.\n // do nothing here as we are returning the original response at the end of this method.\n .catch(() => false)\n .then((registrationStatus) => {\n if (registrationStatus) {\n // Retry the original request. We have to change the x-ms-client-request-id\n // otherwise Azure endpoint will return the initial 409 (cached) response.\n request.headers.set(\"x-ms-client-request-id\", generateUuid());\n return policy._nextPolicy.sendRequest(request.clone());\n }\n return response;\n }));\n }\n }\n return Promise.resolve(response);\n}\n/**\n * Reuses the headers of the original request and url (if specified).\n * @param originalRequest - The original request\n * @param reuseUrlToo - Should the url from the original request be reused as well. Default false.\n * @returns A new request object with desired headers.\n */\nfunction getRequestEssentials(originalRequest, reuseUrlToo = false) {\n const reqOptions = originalRequest.clone();\n if (reuseUrlToo) {\n reqOptions.url = originalRequest.url;\n }\n // We have to change the x-ms-client-request-id otherwise Azure endpoint\n // will return the initial 409 (cached) response.\n reqOptions.headers.set(\"x-ms-client-request-id\", generateUuid());\n // Set content-type to application/json\n reqOptions.headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n return reqOptions;\n}\n/**\n * Validates the error code and message associated with 409 response status code. If it matches to that of\n * RP not registered then it returns the name of the RP else returns undefined.\n * @param body - The response body received after making the original request.\n * @returns The name of the RP if condition is satisfied else undefined.\n */\nfunction checkRPNotRegisteredError(body) {\n let result, responseBody;\n if (body) {\n try {\n responseBody = JSON.parse(body);\n }\n catch (err) {\n // do nothing;\n }\n if (responseBody &&\n responseBody.error &&\n responseBody.error.message &&\n responseBody.error.code &&\n responseBody.error.code === \"MissingSubscriptionRegistration\") {\n const matchRes = responseBody.error.message.match(/.*'(.*)'/i);\n if (matchRes) {\n result = matchRes.pop();\n }\n }\n }\n return result;\n}\n/**\n * Extracts the first part of the URL, just after subscription:\n * https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/\n * @param url - The original request url\n * @returns The url prefix as explained above.\n */\nfunction extractSubscriptionUrl(url) {\n let result;\n const matchRes = url.match(/.*\\/subscriptions\\/[a-f0-9-]+\\//gi);\n if (matchRes && matchRes[0]) {\n result = matchRes[0];\n }\n else {\n throw new Error(`Unable to extract subscriptionId from the given url - ${url}.`);\n }\n return result;\n}\n/**\n * Registers the given provider.\n * @param policy - The RPRegistrationPolicy this function is being called against.\n * @param urlPrefix - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/\n * @param provider - The provider name to be registered.\n * @param originalRequest - The original request sent by the user that returned a 409 response\n * with a message that the provider is not registered.\n */\nasync function registerRP(policy, urlPrefix, provider, originalRequest) {\n const postUrl = `${urlPrefix}providers/${provider}/register?api-version=2016-02-01`;\n const getUrl = `${urlPrefix}providers/${provider}?api-version=2016-02-01`;\n const reqOptions = getRequestEssentials(originalRequest);\n reqOptions.method = \"POST\";\n reqOptions.url = postUrl;\n const response = await policy._nextPolicy.sendRequest(reqOptions);\n if (response.status !== 200) {\n throw new Error(`Autoregistration of ${provider} failed. Please try registering manually.`);\n }\n return getRegistrationStatus(policy, getUrl, originalRequest);\n}\n/**\n * Polls the registration status of the provider that was registered. Polling happens at an interval of 30 seconds.\n * Polling will happen till the registrationState property of the response body is \"Registered\".\n * @param policy - The RPRegistrationPolicy this function is being called against.\n * @param url - The request url for polling\n * @param originalRequest - The original request sent by the user that returned a 409 response\n * with a message that the provider is not registered.\n * @returns True if RP Registration is successful.\n */\nasync function getRegistrationStatus(policy, url, originalRequest) {\n const reqOptions = getRequestEssentials(originalRequest);\n reqOptions.url = url;\n reqOptions.method = \"GET\";\n const res = await policy._nextPolicy.sendRequest(reqOptions);\n const obj = res.parsedBody;\n if (res.parsedBody && obj.registrationState && obj.registrationState === \"Registered\") {\n return true;\n }\n else {\n await coreUtil.delay(policy._retryTimeout * 1000);\n return getRegistrationStatus(policy, url, originalRequest);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Creates a policy that signs outgoing requests by calling to the provided `authenticationProvider`'s `signRequest` method.\n * @param authenticationProvider - The authentication provider.\n * @returns An instance of the {@link SigningPolicy}.\n */\nfunction signingPolicy(authenticationProvider) {\n return {\n create: (nextPolicy, options) => {\n return new SigningPolicy(nextPolicy, options, authenticationProvider);\n },\n };\n}\n/**\n * A policy that signs outgoing requests by calling to the provided `authenticationProvider`'s `signRequest` method.\n */\nclass SigningPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, authenticationProvider) {\n super(nextPolicy, options);\n this.authenticationProvider = authenticationProvider;\n }\n signRequest(request) {\n return this.authenticationProvider.signRequest(request);\n }\n sendRequest(request) {\n return this.signRequest(request).then((nextRequest) => this._nextPolicy.sendRequest(nextRequest));\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A policy that retries when there's a system error, identified by the codes \"ETIMEDOUT\", \"ESOCKETTIMEDOUT\", \"ECONNREFUSED\", \"ECONNRESET\" or \"ENOENT\".\n * @param retryCount - Maximum number of retries.\n * @param retryInterval - The client retry interval, in milliseconds.\n * @param minRetryInterval - The minimum retry interval, in milliseconds.\n * @param maxRetryInterval - The maximum retry interval, in milliseconds.\n * @returns An instance of the {@link SystemErrorRetryPolicy}\n */\nfunction systemErrorRetryPolicy(retryCount, retryInterval, minRetryInterval, maxRetryInterval) {\n return {\n create: (nextPolicy, options) => {\n return new SystemErrorRetryPolicy(nextPolicy, options, retryCount, retryInterval, minRetryInterval, maxRetryInterval);\n },\n };\n}\n/**\n * A policy that retries when there's a system error, identified by the codes \"ETIMEDOUT\", \"ESOCKETTIMEDOUT\", \"ECONNREFUSED\", \"ECONNRESET\" or \"ENOENT\".\n * @param retryCount - The client retry count.\n * @param retryInterval - The client retry interval, in milliseconds.\n * @param minRetryInterval - The minimum retry interval, in milliseconds.\n * @param maxRetryInterval - The maximum retry interval, in milliseconds.\n */\nclass SystemErrorRetryPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, retryCount, retryInterval, minRetryInterval, maxRetryInterval) {\n super(nextPolicy, options);\n this.retryCount = isNumber(retryCount) ? retryCount : DEFAULT_CLIENT_RETRY_COUNT;\n this.retryInterval = isNumber(retryInterval) ? retryInterval : DEFAULT_CLIENT_RETRY_INTERVAL;\n this.minRetryInterval = isNumber(minRetryInterval)\n ? minRetryInterval\n : DEFAULT_CLIENT_MIN_RETRY_INTERVAL;\n this.maxRetryInterval = isNumber(maxRetryInterval)\n ? maxRetryInterval\n : DEFAULT_CLIENT_MAX_RETRY_INTERVAL;\n }\n sendRequest(request) {\n return this._nextPolicy\n .sendRequest(request.clone())\n .catch((error) => retry(this, request, error.response, error));\n }\n}\nasync function retry(policy, request, operationResponse, err, retryData) {\n retryData = updateRetryData(policy, retryData, err);\n function shouldPolicyRetry(_response, error) {\n if (error &&\n error.code &&\n (error.code === \"ETIMEDOUT\" ||\n error.code === \"ESOCKETTIMEDOUT\" ||\n error.code === \"ECONNREFUSED\" ||\n error.code === \"ECONNRESET\" ||\n error.code === \"ENOENT\")) {\n return true;\n }\n return false;\n }\n if (shouldRetry(policy.retryCount, shouldPolicyRetry, retryData, operationResponse, err)) {\n // If previous operation ended with an error and the policy allows a retry, do that\n try {\n await coreUtil.delay(retryData.retryInterval);\n return policy._nextPolicy.sendRequest(request.clone());\n }\n catch (nestedErr) {\n return retry(policy, request, operationResponse, nestedErr, retryData);\n }\n }\n else {\n if (err) {\n // If the operation failed in the end, return all errors instead of just the last one\n return Promise.reject(retryData.error);\n }\n return operationResponse;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Maximum number of retries for the throttling retry policy\n */\nconst DEFAULT_CLIENT_MAX_RETRY_COUNT = 3;\n\n// Copyright (c) Microsoft Corporation.\nconst StatusCodes = Constants.HttpConstants.StatusCodes;\n/**\n * Creates a policy that re-sends the request if the response indicates the request failed because of throttling reasons.\n * For example, if the response contains a `Retry-After` header, it will retry sending the request based on the value of that header.\n *\n * To learn more, please refer to\n * https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-request-limits,\n * https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits and\n * https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshooting-throttling-errors\n * @returns\n */\nfunction throttlingRetryPolicy() {\n return {\n create: (nextPolicy, options) => {\n return new ThrottlingRetryPolicy(nextPolicy, options);\n },\n };\n}\nconst StandardAbortMessage = \"The operation was aborted.\";\n/**\n * Creates a policy that re-sends the request if the response indicates the request failed because of throttling reasons.\n * For example, if the response contains a `Retry-After` header, it will retry sending the request based on the value of that header.\n *\n * To learn more, please refer to\n * https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-request-limits,\n * https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits and\n * https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshooting-throttling-errors\n */\nclass ThrottlingRetryPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, _handleResponse) {\n super(nextPolicy, options);\n this.numberOfRetries = 0;\n this._handleResponse = _handleResponse || this._defaultResponseHandler;\n }\n async sendRequest(httpRequest) {\n const response = await this._nextPolicy.sendRequest(httpRequest.clone());\n if (response.status !== StatusCodes.TooManyRequests &&\n response.status !== StatusCodes.ServiceUnavailable) {\n return response;\n }\n else {\n return this._handleResponse(httpRequest, response);\n }\n }\n async _defaultResponseHandler(httpRequest, httpResponse) {\n var _a;\n const retryAfterHeader = httpResponse.headers.get(Constants.HeaderConstants.RETRY_AFTER);\n if (retryAfterHeader) {\n const delayInMs = ThrottlingRetryPolicy.parseRetryAfterHeader(retryAfterHeader);\n if (delayInMs) {\n this.numberOfRetries += 1;\n await coreUtil.delay(delayInMs, {\n abortSignal: httpRequest.abortSignal,\n abortErrorMsg: StandardAbortMessage,\n });\n if ((_a = httpRequest.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {\n throw new abortController.AbortError(StandardAbortMessage);\n }\n if (this.numberOfRetries < DEFAULT_CLIENT_MAX_RETRY_COUNT) {\n return this.sendRequest(httpRequest);\n }\n else {\n return this._nextPolicy.sendRequest(httpRequest);\n }\n }\n }\n return httpResponse;\n }\n static parseRetryAfterHeader(headerValue) {\n const retryAfterInSeconds = Number(headerValue);\n if (Number.isNaN(retryAfterInSeconds)) {\n return ThrottlingRetryPolicy.parseDateRetryAfterHeader(headerValue);\n }\n else {\n return retryAfterInSeconds * 1000;\n }\n }\n static parseDateRetryAfterHeader(headerValue) {\n try {\n const now = Date.now();\n const date = Date.parse(headerValue);\n const diff = date - now;\n return Number.isNaN(diff) ? undefined : diff;\n }\n catch (error) {\n return undefined;\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nconst createSpan = coreTracing.createSpanFunction({\n packagePrefix: \"\",\n namespace: \"\",\n});\n/**\n * Creates a policy that wraps outgoing requests with a tracing span.\n * @param tracingOptions - Tracing options.\n * @returns An instance of the {@link TracingPolicy} class.\n */\nfunction tracingPolicy(tracingOptions = {}) {\n return {\n create(nextPolicy, options) {\n return new TracingPolicy(nextPolicy, options, tracingOptions);\n },\n };\n}\n/**\n * A policy that wraps outgoing requests with a tracing span.\n */\nclass TracingPolicy extends BaseRequestPolicy {\n constructor(nextPolicy, options, tracingOptions) {\n super(nextPolicy, options);\n this.userAgent = tracingOptions.userAgent;\n }\n async sendRequest(request) {\n if (!request.tracingContext) {\n return this._nextPolicy.sendRequest(request);\n }\n const span = this.tryCreateSpan(request);\n if (!span) {\n return this._nextPolicy.sendRequest(request);\n }\n try {\n const response = await this._nextPolicy.sendRequest(request);\n this.tryProcessResponse(span, response);\n return response;\n }\n catch (err) {\n this.tryProcessError(span, err);\n throw err;\n }\n }\n tryCreateSpan(request) {\n var _a;\n try {\n // Passing spanOptions as part of tracingOptions to maintain compatibility @azure/core-tracing@preview.13 and earlier.\n // We can pass this as a separate parameter once we upgrade to the latest core-tracing.\n const { span } = createSpan(`HTTP ${request.method}`, {\n tracingOptions: {\n spanOptions: Object.assign(Object.assign({}, request.spanOptions), { kind: coreTracing.SpanKind.CLIENT }),\n tracingContext: request.tracingContext,\n },\n });\n // If the span is not recording, don't do any more work.\n if (!span.isRecording()) {\n span.end();\n return undefined;\n }\n const namespaceFromContext = (_a = request.tracingContext) === null || _a === void 0 ? void 0 : _a.getValue(Symbol.for(\"az.namespace\"));\n if (typeof namespaceFromContext === \"string\") {\n span.setAttribute(\"az.namespace\", namespaceFromContext);\n }\n span.setAttributes({\n \"http.method\": request.method,\n \"http.url\": request.url,\n requestId: request.requestId,\n });\n if (this.userAgent) {\n span.setAttribute(\"http.user_agent\", this.userAgent);\n }\n // set headers\n const spanContext = span.spanContext();\n const traceParentHeader = coreTracing.getTraceParentHeader(spanContext);\n if (traceParentHeader && coreTracing.isSpanContextValid(spanContext)) {\n request.headers.set(\"traceparent\", traceParentHeader);\n const traceState = spanContext.traceState && spanContext.traceState.serialize();\n // if tracestate is set, traceparent MUST be set, so only set tracestate after traceparent\n if (traceState) {\n request.headers.set(\"tracestate\", traceState);\n }\n }\n return span;\n }\n catch (error) {\n logger.warning(`Skipping creating a tracing span due to an error: ${error.message}`);\n return undefined;\n }\n }\n tryProcessError(span, err) {\n try {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: err.message,\n });\n if (err.statusCode) {\n span.setAttribute(\"http.status_code\", err.statusCode);\n }\n span.end();\n }\n catch (error) {\n logger.warning(`Skipping tracing span processing due to an error: ${error.message}`);\n }\n }\n tryProcessResponse(span, response) {\n try {\n span.setAttribute(\"http.status_code\", response.status);\n const serviceRequestId = response.headers.get(\"x-ms-request-id\");\n if (serviceRequestId) {\n span.setAttribute(\"serviceRequestId\", serviceRequestId);\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.OK,\n });\n span.end();\n }\n catch (error) {\n logger.warning(`Skipping tracing span processing due to an error: ${error.message}`);\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ServiceClient sends service requests and receives responses.\n */\nclass ServiceClient {\n /**\n * The ServiceClient constructor\n * @param credentials - The credentials used for authentication with the service.\n * @param options - The service client options that govern the behavior of the client.\n */\n constructor(credentials, \n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options) {\n if (!options) {\n options = {};\n }\n this._withCredentials = options.withCredentials || false;\n this._httpClient = options.httpClient || getCachedDefaultHttpClient();\n this._requestPolicyOptions = new RequestPolicyOptions(options.httpPipelineLogger);\n let requestPolicyFactories;\n if (Array.isArray(options.requestPolicyFactories)) {\n logger.info(\"ServiceClient: using custom request policies\");\n requestPolicyFactories = options.requestPolicyFactories;\n }\n else {\n let authPolicyFactory = undefined;\n if (coreAuth.isTokenCredential(credentials)) {\n logger.info(\"ServiceClient: creating bearer token authentication policy from provided credentials\");\n // Create a wrapped RequestPolicyFactory here so that we can provide the\n // correct scope to the BearerTokenAuthenticationPolicy at the first time\n // one is requested. This is needed because generated ServiceClient\n // implementations do not set baseUri until after ServiceClient's constructor\n // is finished, leaving baseUri empty at the time when it is needed to\n // build the correct scope name.\n const wrappedPolicyFactory = () => {\n let bearerTokenPolicyFactory = undefined;\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const serviceClient = this;\n const serviceClientOptions = options;\n return {\n create(nextPolicy, createOptions) {\n const credentialScopes = getCredentialScopes(serviceClientOptions, serviceClient.baseUri);\n if (!credentialScopes) {\n throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`);\n }\n if (bearerTokenPolicyFactory === undefined || bearerTokenPolicyFactory === null) {\n bearerTokenPolicyFactory = bearerTokenAuthenticationPolicy(credentials, credentialScopes);\n }\n return bearerTokenPolicyFactory.create(nextPolicy, createOptions);\n },\n };\n };\n authPolicyFactory = wrappedPolicyFactory();\n }\n else if (credentials && typeof credentials.signRequest === \"function\") {\n logger.info(\"ServiceClient: creating signing policy from provided credentials\");\n authPolicyFactory = signingPolicy(credentials);\n }\n else if (credentials !== undefined && credentials !== null) {\n throw new Error(\"The credentials argument must implement the TokenCredential interface\");\n }\n logger.info(\"ServiceClient: using default request policies\");\n requestPolicyFactories = createDefaultRequestPolicyFactories(authPolicyFactory, options);\n if (options.requestPolicyFactories) {\n // options.requestPolicyFactories can also be a function that manipulates\n // the default requestPolicyFactories array\n const newRequestPolicyFactories = options.requestPolicyFactories(requestPolicyFactories);\n if (newRequestPolicyFactories) {\n requestPolicyFactories = newRequestPolicyFactories;\n }\n }\n }\n this._requestPolicyFactories = requestPolicyFactories;\n }\n /**\n * Send the provided httpRequest.\n */\n sendRequest(options) {\n if (options === null || options === undefined || typeof options !== \"object\") {\n throw new Error(\"options cannot be null or undefined and it must be of type object.\");\n }\n let httpRequest;\n try {\n if (isWebResourceLike(options)) {\n options.validateRequestProperties();\n httpRequest = options;\n }\n else {\n httpRequest = new WebResource();\n httpRequest = httpRequest.prepare(options);\n }\n }\n catch (error) {\n return Promise.reject(error);\n }\n let httpPipeline = this._httpClient;\n if (this._requestPolicyFactories && this._requestPolicyFactories.length > 0) {\n for (let i = this._requestPolicyFactories.length - 1; i >= 0; --i) {\n httpPipeline = this._requestPolicyFactories[i].create(httpPipeline, this._requestPolicyOptions);\n }\n }\n return httpPipeline.sendRequest(httpRequest);\n }\n /**\n * Send an HTTP request that is populated using the provided OperationSpec.\n * @param operationArguments - The arguments that the HTTP request's templated values will be populated from.\n * @param operationSpec - The OperationSpec to use to populate the httpRequest.\n * @param callback - The callback to call when the response is received.\n */\n async sendOperationRequest(operationArguments, operationSpec, callback) {\n var _a;\n if (typeof operationArguments.options === \"function\") {\n callback = operationArguments.options;\n operationArguments.options = undefined;\n }\n const serializerOptions = (_a = operationArguments.options) === null || _a === void 0 ? void 0 : _a.serializerOptions;\n const httpRequest = new WebResource();\n let result;\n try {\n const baseUri = operationSpec.baseUrl || this.baseUri;\n if (!baseUri) {\n 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.\");\n }\n httpRequest.method = operationSpec.httpMethod;\n httpRequest.operationSpec = operationSpec;\n const requestUrl = URLBuilder.parse(baseUri);\n if (operationSpec.path) {\n requestUrl.appendPath(operationSpec.path);\n }\n if (operationSpec.urlParameters && operationSpec.urlParameters.length > 0) {\n for (const urlParameter of operationSpec.urlParameters) {\n let urlParameterValue = getOperationArgumentValueFromParameter(this, operationArguments, urlParameter, operationSpec.serializer);\n urlParameterValue = operationSpec.serializer.serialize(urlParameter.mapper, urlParameterValue, getPathStringFromParameter(urlParameter), serializerOptions);\n if (!urlParameter.skipEncoding) {\n urlParameterValue = encodeURIComponent(urlParameterValue);\n }\n requestUrl.replaceAll(`{${urlParameter.mapper.serializedName || getPathStringFromParameter(urlParameter)}}`, urlParameterValue);\n }\n }\n if (operationSpec.queryParameters && operationSpec.queryParameters.length > 0) {\n for (const queryParameter of operationSpec.queryParameters) {\n let queryParameterValue = getOperationArgumentValueFromParameter(this, operationArguments, queryParameter, operationSpec.serializer);\n if (queryParameterValue !== undefined && queryParameterValue !== null) {\n queryParameterValue = operationSpec.serializer.serialize(queryParameter.mapper, queryParameterValue, getPathStringFromParameter(queryParameter), serializerOptions);\n if (queryParameter.collectionFormat !== undefined &&\n queryParameter.collectionFormat !== null) {\n if (queryParameter.collectionFormat === exports.QueryCollectionFormat.Multi) {\n if (queryParameterValue.length === 0) {\n // The collection is empty, no need to try serializing the current queryParam\n continue;\n }\n else {\n for (const index in queryParameterValue) {\n const item = queryParameterValue[index];\n queryParameterValue[index] =\n item === undefined || item === null ? \"\" : item.toString();\n }\n }\n }\n else if (queryParameter.collectionFormat === exports.QueryCollectionFormat.Ssv ||\n queryParameter.collectionFormat === exports.QueryCollectionFormat.Tsv) {\n queryParameterValue = queryParameterValue.join(queryParameter.collectionFormat);\n }\n }\n if (!queryParameter.skipEncoding) {\n if (Array.isArray(queryParameterValue)) {\n for (const index in queryParameterValue) {\n if (queryParameterValue[index] !== undefined &&\n queryParameterValue[index] !== null) {\n queryParameterValue[index] = encodeURIComponent(queryParameterValue[index]);\n }\n }\n }\n else {\n queryParameterValue = encodeURIComponent(queryParameterValue);\n }\n }\n if (queryParameter.collectionFormat !== undefined &&\n queryParameter.collectionFormat !== null &&\n queryParameter.collectionFormat !== exports.QueryCollectionFormat.Multi &&\n queryParameter.collectionFormat !== exports.QueryCollectionFormat.Ssv &&\n queryParameter.collectionFormat !== exports.QueryCollectionFormat.Tsv) {\n queryParameterValue = queryParameterValue.join(queryParameter.collectionFormat);\n }\n requestUrl.setQueryParameter(queryParameter.mapper.serializedName || getPathStringFromParameter(queryParameter), queryParameterValue);\n }\n }\n }\n httpRequest.url = requestUrl.toString();\n const contentType = operationSpec.contentType || this.requestContentType;\n if (contentType && operationSpec.requestBody) {\n httpRequest.headers.set(\"Content-Type\", contentType);\n }\n if (operationSpec.headerParameters) {\n for (const headerParameter of operationSpec.headerParameters) {\n let headerValue = getOperationArgumentValueFromParameter(this, operationArguments, headerParameter, operationSpec.serializer);\n if (headerValue !== undefined && headerValue !== null) {\n headerValue = operationSpec.serializer.serialize(headerParameter.mapper, headerValue, getPathStringFromParameter(headerParameter), serializerOptions);\n const headerCollectionPrefix = headerParameter.mapper\n .headerCollectionPrefix;\n if (headerCollectionPrefix) {\n for (const key of Object.keys(headerValue)) {\n httpRequest.headers.set(headerCollectionPrefix + key, headerValue[key]);\n }\n }\n else {\n httpRequest.headers.set(headerParameter.mapper.serializedName ||\n getPathStringFromParameter(headerParameter), headerValue);\n }\n }\n }\n }\n const options = operationArguments.options;\n if (options) {\n if (options.customHeaders) {\n for (const customHeaderName in options.customHeaders) {\n httpRequest.headers.set(customHeaderName, options.customHeaders[customHeaderName]);\n }\n }\n if (options.abortSignal) {\n httpRequest.abortSignal = options.abortSignal;\n }\n if (options.timeout) {\n httpRequest.timeout = options.timeout;\n }\n if (options.onUploadProgress) {\n httpRequest.onUploadProgress = options.onUploadProgress;\n }\n if (options.onDownloadProgress) {\n httpRequest.onDownloadProgress = options.onDownloadProgress;\n }\n if (options.spanOptions) {\n // By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier.\n httpRequest.spanOptions = options.spanOptions;\n }\n if (options.tracingContext) {\n httpRequest.tracingContext = options.tracingContext;\n }\n if (options.shouldDeserialize !== undefined && options.shouldDeserialize !== null) {\n httpRequest.shouldDeserialize = options.shouldDeserialize;\n }\n }\n httpRequest.withCredentials = this._withCredentials;\n serializeRequestBody(this, httpRequest, operationArguments, operationSpec);\n if (httpRequest.streamResponseStatusCodes === undefined) {\n httpRequest.streamResponseStatusCodes = getStreamResponseStatusCodes(operationSpec);\n }\n let rawResponse;\n let sendRequestError;\n try {\n rawResponse = await this.sendRequest(httpRequest);\n }\n catch (error) {\n sendRequestError = error;\n }\n if (sendRequestError) {\n if (sendRequestError.response) {\n sendRequestError.details = flattenResponse(sendRequestError.response, operationSpec.responses[sendRequestError.statusCode] ||\n operationSpec.responses[\"default\"]);\n }\n result = Promise.reject(sendRequestError);\n }\n else {\n result = Promise.resolve(flattenResponse(rawResponse, operationSpec.responses[rawResponse.status]));\n }\n }\n catch (error) {\n result = Promise.reject(error);\n }\n const cb = callback;\n if (cb) {\n result\n .then((res) => cb(null, res._response.parsedBody, res._response.request, res._response))\n .catch((err) => cb(err));\n }\n return result;\n }\n}\nfunction serializeRequestBody(serviceClient, httpRequest, operationArguments, operationSpec) {\n var _a, _b, _c, _d, _e, _f;\n const serializerOptions = (_b = (_a = operationArguments.options) === null || _a === void 0 ? void 0 : _a.serializerOptions) !== null && _b !== void 0 ? _b : {};\n const updatedOptions = {\n rootName: (_c = serializerOptions.rootName) !== null && _c !== void 0 ? _c : \"\",\n includeRoot: (_d = serializerOptions.includeRoot) !== null && _d !== void 0 ? _d : false,\n xmlCharKey: (_e = serializerOptions.xmlCharKey) !== null && _e !== void 0 ? _e : XML_CHARKEY,\n };\n const xmlCharKey = serializerOptions.xmlCharKey;\n if (operationSpec.requestBody && operationSpec.requestBody.mapper) {\n httpRequest.body = getOperationArgumentValueFromParameter(serviceClient, operationArguments, operationSpec.requestBody, operationSpec.serializer);\n const bodyMapper = operationSpec.requestBody.mapper;\n const { required, xmlName, xmlElementName, serializedName, xmlNamespace, xmlNamespacePrefix } = bodyMapper;\n const typeName = bodyMapper.type.name;\n try {\n if ((httpRequest.body !== undefined && httpRequest.body !== null) || required) {\n const requestBodyParameterPathString = getPathStringFromParameter(operationSpec.requestBody);\n httpRequest.body = operationSpec.serializer.serialize(bodyMapper, httpRequest.body, requestBodyParameterPathString, updatedOptions);\n const isStream = typeName === MapperType.Stream;\n if (operationSpec.isXML) {\n const xmlnsKey = xmlNamespacePrefix ? `xmlns:${xmlNamespacePrefix}` : \"xmlns\";\n const value = getXmlValueWithNamespace(xmlNamespace, xmlnsKey, typeName, httpRequest.body, updatedOptions);\n if (typeName === MapperType.Sequence) {\n httpRequest.body = stringifyXML(prepareXMLRootList(value, xmlElementName || xmlName || serializedName, xmlnsKey, xmlNamespace), {\n rootName: xmlName || serializedName,\n xmlCharKey,\n });\n }\n else if (!isStream) {\n httpRequest.body = stringifyXML(value, {\n rootName: xmlName || serializedName,\n xmlCharKey,\n });\n }\n }\n else if (typeName === MapperType.String &&\n (((_f = operationSpec.contentType) === null || _f === void 0 ? void 0 : _f.match(\"text/plain\")) || operationSpec.mediaType === \"text\")) {\n // the String serializer has validated that request body is a string\n // so just send the string.\n return;\n }\n else if (!isStream) {\n httpRequest.body = JSON.stringify(httpRequest.body);\n }\n }\n }\n catch (error) {\n throw new Error(`Error \"${error.message}\" occurred in serializing the payload - ${JSON.stringify(serializedName, undefined, \" \")}.`);\n }\n }\n else if (operationSpec.formDataParameters && operationSpec.formDataParameters.length > 0) {\n httpRequest.formData = {};\n for (const formDataParameter of operationSpec.formDataParameters) {\n const formDataParameterValue = getOperationArgumentValueFromParameter(serviceClient, operationArguments, formDataParameter, operationSpec.serializer);\n if (formDataParameterValue !== undefined && formDataParameterValue !== null) {\n const formDataParameterPropertyName = formDataParameter.mapper.serializedName || getPathStringFromParameter(formDataParameter);\n httpRequest.formData[formDataParameterPropertyName] = operationSpec.serializer.serialize(formDataParameter.mapper, formDataParameterValue, getPathStringFromParameter(formDataParameter), updatedOptions);\n }\n }\n }\n}\n/**\n * Adds an xml namespace to the xml serialized object if needed, otherwise it just returns the value itself\n */\nfunction getXmlValueWithNamespace(xmlNamespace, xmlnsKey, typeName, serializedValue, options) {\n // Composite and Sequence schemas already got their root namespace set during serialization\n // We just need to add xmlns to the other schema types\n if (xmlNamespace && ![\"Composite\", \"Sequence\", \"Dictionary\"].includes(typeName)) {\n const result = {};\n result[options.xmlCharKey] = serializedValue;\n result[XML_ATTRKEY] = { [xmlnsKey]: xmlNamespace };\n return result;\n }\n return serializedValue;\n}\nfunction getValueOrFunctionResult(value, defaultValueCreator) {\n let result;\n if (typeof value === \"string\") {\n result = value;\n }\n else {\n result = defaultValueCreator();\n if (typeof value === \"function\") {\n result = value(result);\n }\n }\n return result;\n}\nfunction createDefaultRequestPolicyFactories(authPolicyFactory, options) {\n const factories = [];\n if (options.generateClientRequestIdHeader) {\n factories.push(generateClientRequestIdPolicy(options.clientRequestIdHeaderName));\n }\n if (authPolicyFactory) {\n factories.push(authPolicyFactory);\n }\n const userAgentHeaderName = getValueOrFunctionResult(options.userAgentHeaderName, getDefaultUserAgentHeaderName);\n const userAgentHeaderValue = getValueOrFunctionResult(options.userAgent, getDefaultUserAgentValue);\n if (userAgentHeaderName && userAgentHeaderValue) {\n factories.push(userAgentPolicy({ key: userAgentHeaderName, value: userAgentHeaderValue }));\n }\n factories.push(redirectPolicy());\n factories.push(rpRegistrationPolicy(options.rpRegistrationRetryTimeout));\n if (!options.noRetryPolicy) {\n factories.push(exponentialRetryPolicy());\n factories.push(systemErrorRetryPolicy());\n factories.push(throttlingRetryPolicy());\n }\n factories.push(deserializationPolicy(options.deserializationContentTypes));\n if (coreUtil.isNode) {\n factories.push(proxyPolicy(options.proxySettings));\n }\n factories.push(logPolicy({ logger: logger.info }));\n return factories;\n}\n/**\n * Creates an HTTP pipeline based on the given options.\n * @param pipelineOptions - Defines options that are used to configure policies in the HTTP pipeline for an SDK client.\n * @param authPolicyFactory - An optional authentication policy factory to use for signing requests.\n * @returns A set of options that can be passed to create a new {@link ServiceClient}.\n */\nfunction createPipelineFromOptions(pipelineOptions, authPolicyFactory) {\n const requestPolicyFactories = [];\n if (pipelineOptions.sendStreamingJson) {\n requestPolicyFactories.push(ndJsonPolicy());\n }\n let userAgentValue = undefined;\n if (pipelineOptions.userAgentOptions && pipelineOptions.userAgentOptions.userAgentPrefix) {\n const userAgentInfo = [];\n userAgentInfo.push(pipelineOptions.userAgentOptions.userAgentPrefix);\n // Add the default user agent value if it isn't already specified\n // by the userAgentPrefix option.\n const defaultUserAgentInfo = getDefaultUserAgentValue();\n if (userAgentInfo.indexOf(defaultUserAgentInfo) === -1) {\n userAgentInfo.push(defaultUserAgentInfo);\n }\n userAgentValue = userAgentInfo.join(\" \");\n }\n const keepAliveOptions = Object.assign(Object.assign({}, DefaultKeepAliveOptions), pipelineOptions.keepAliveOptions);\n const retryOptions = Object.assign(Object.assign({}, DefaultRetryOptions), pipelineOptions.retryOptions);\n const redirectOptions = Object.assign(Object.assign({}, DefaultRedirectOptions), pipelineOptions.redirectOptions);\n if (coreUtil.isNode) {\n requestPolicyFactories.push(proxyPolicy(pipelineOptions.proxyOptions));\n }\n const deserializationOptions = Object.assign(Object.assign({}, DefaultDeserializationOptions), pipelineOptions.deserializationOptions);\n const loggingOptions = Object.assign({}, pipelineOptions.loggingOptions);\n requestPolicyFactories.push(tracingPolicy({ userAgent: userAgentValue }), keepAlivePolicy(keepAliveOptions), userAgentPolicy({ value: userAgentValue }), generateClientRequestIdPolicy(), deserializationPolicy(deserializationOptions.expectedContentTypes), throttlingRetryPolicy(), systemErrorRetryPolicy(), exponentialRetryPolicy(retryOptions.maxRetries, retryOptions.retryDelayInMs, retryOptions.maxRetryDelayInMs));\n if (redirectOptions.handleRedirects) {\n requestPolicyFactories.push(redirectPolicy(redirectOptions.maxRetries));\n }\n if (authPolicyFactory) {\n requestPolicyFactories.push(authPolicyFactory);\n }\n requestPolicyFactories.push(logPolicy(loggingOptions));\n if (coreUtil.isNode && pipelineOptions.decompressResponse === false) {\n requestPolicyFactories.push(disableResponseDecompressionPolicy());\n }\n return {\n httpClient: pipelineOptions.httpClient,\n requestPolicyFactories,\n };\n}\nfunction getOperationArgumentValueFromParameter(serviceClient, operationArguments, parameter, serializer) {\n return getOperationArgumentValueFromParameterPath(serviceClient, operationArguments, parameter.parameterPath, parameter.mapper, serializer);\n}\nfunction getOperationArgumentValueFromParameterPath(serviceClient, operationArguments, parameterPath, parameterMapper, serializer) {\n var _a;\n let value;\n if (typeof parameterPath === \"string\") {\n parameterPath = [parameterPath];\n }\n const serializerOptions = (_a = operationArguments.options) === null || _a === void 0 ? void 0 : _a.serializerOptions;\n if (Array.isArray(parameterPath)) {\n if (parameterPath.length > 0) {\n if (parameterMapper.isConstant) {\n value = parameterMapper.defaultValue;\n }\n else {\n let propertySearchResult = getPropertyFromParameterPath(operationArguments, parameterPath);\n if (!propertySearchResult.propertyFound) {\n propertySearchResult = getPropertyFromParameterPath(serviceClient, parameterPath);\n }\n let useDefaultValue = false;\n if (!propertySearchResult.propertyFound) {\n useDefaultValue =\n parameterMapper.required ||\n (parameterPath[0] === \"options\" && parameterPath.length === 2);\n }\n value = useDefaultValue ? parameterMapper.defaultValue : propertySearchResult.propertyValue;\n }\n // Serialize just for validation purposes.\n const parameterPathString = getPathStringFromParameterPath(parameterPath, parameterMapper);\n serializer.serialize(parameterMapper, value, parameterPathString, serializerOptions);\n }\n }\n else {\n if (parameterMapper.required) {\n value = {};\n }\n for (const propertyName in parameterPath) {\n const propertyMapper = parameterMapper.type.modelProperties[propertyName];\n const propertyPath = parameterPath[propertyName];\n const propertyValue = getOperationArgumentValueFromParameterPath(serviceClient, operationArguments, propertyPath, propertyMapper, serializer);\n // Serialize just for validation purposes.\n const propertyPathString = getPathStringFromParameterPath(propertyPath, propertyMapper);\n serializer.serialize(propertyMapper, propertyValue, propertyPathString, serializerOptions);\n if (propertyValue !== undefined && propertyValue !== null) {\n if (!value) {\n value = {};\n }\n value[propertyName] = propertyValue;\n }\n }\n }\n return value;\n}\nfunction getPropertyFromParameterPath(parent, parameterPath) {\n const result = { propertyFound: false };\n let i = 0;\n for (; i < parameterPath.length; ++i) {\n const parameterPathPart = parameterPath[i];\n // Make sure to check inherited properties too, so don't use hasOwnProperty().\n if (parent !== undefined && parent !== null && parameterPathPart in parent) {\n parent = parent[parameterPathPart];\n }\n else {\n break;\n }\n }\n if (i === parameterPath.length) {\n result.propertyValue = parent;\n result.propertyFound = true;\n }\n return result;\n}\n/**\n * Parses an {@link HttpOperationResponse} into a normalized HTTP response object ({@link RestResponse}).\n * @param _response - Wrapper object for http response.\n * @param responseSpec - Mappers for how to parse the response properties.\n * @returns - A normalized response object.\n */\nfunction flattenResponse(_response, responseSpec) {\n const parsedHeaders = _response.parsedHeaders;\n const bodyMapper = responseSpec && responseSpec.bodyMapper;\n const addOperationResponse = (obj) => {\n return Object.defineProperty(obj, \"_response\", {\n value: _response,\n });\n };\n if (bodyMapper) {\n const typeName = bodyMapper.type.name;\n if (typeName === \"Stream\") {\n return addOperationResponse(Object.assign(Object.assign({}, parsedHeaders), { blobBody: _response.blobBody, readableStreamBody: _response.readableStreamBody }));\n }\n const modelProperties = (typeName === \"Composite\" && bodyMapper.type.modelProperties) || {};\n const isPageableResponse = Object.keys(modelProperties).some((k) => modelProperties[k].serializedName === \"\");\n if (typeName === \"Sequence\" || isPageableResponse) {\n const arrayResponse = [...(_response.parsedBody || [])];\n for (const key of Object.keys(modelProperties)) {\n if (modelProperties[key].serializedName) {\n arrayResponse[key] = _response.parsedBody[key];\n }\n }\n if (parsedHeaders) {\n for (const key of Object.keys(parsedHeaders)) {\n arrayResponse[key] = parsedHeaders[key];\n }\n }\n addOperationResponse(arrayResponse);\n return arrayResponse;\n }\n if (typeName === \"Composite\" || typeName === \"Dictionary\") {\n return addOperationResponse(Object.assign(Object.assign({}, parsedHeaders), _response.parsedBody));\n }\n }\n if (bodyMapper ||\n _response.request.method === \"HEAD\" ||\n isPrimitiveType(_response.parsedBody)) {\n // primitive body types and HEAD booleans\n return addOperationResponse(Object.assign(Object.assign({}, parsedHeaders), { body: _response.parsedBody }));\n }\n return addOperationResponse(Object.assign(Object.assign({}, parsedHeaders), _response.parsedBody));\n}\nfunction getCredentialScopes(options, baseUri) {\n if (options === null || options === void 0 ? void 0 : options.credentialScopes) {\n return options.credentialScopes;\n }\n if (baseUri) {\n return `${baseUri}/.default`;\n }\n return undefined;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * This function is only here for compatibility. Use createSpanFunction in core-tracing.\n *\n * @deprecated This function is only here for compatibility. Use createSpanFunction in core-tracing.\n * @hidden\n\n * @param spanConfig - The name of the operation being performed.\n * @param tracingOptions - The options for the underlying http request.\n */\nfunction createSpanFunction(args) {\n return coreTracing.createSpanFunction(args);\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Defines the default token refresh buffer duration.\n */\nconst TokenRefreshBufferMs = 2 * 60 * 1000; // 2 Minutes\n/**\n * Provides an {@link AccessTokenCache} implementation which clears\n * the cached {@link AccessToken}'s after the expiresOnTimestamp has\n * passed.\n *\n * @deprecated No longer used in the bearer authorization policy.\n */\nclass ExpiringAccessTokenCache {\n /**\n * Constructs an instance of {@link ExpiringAccessTokenCache} with\n * an optional expiration buffer time.\n */\n constructor(tokenRefreshBufferMs = TokenRefreshBufferMs) {\n this.cachedToken = undefined;\n this.tokenRefreshBufferMs = tokenRefreshBufferMs;\n }\n /**\n * Saves an access token into the internal in-memory cache.\n * @param accessToken - Access token or undefined to clear the cache.\n */\n setCachedToken(accessToken) {\n this.cachedToken = accessToken;\n }\n /**\n * Returns the cached access token, or `undefined` if one is not cached or the cached one is expiring soon.\n */\n getCachedToken() {\n if (this.cachedToken &&\n Date.now() + this.tokenRefreshBufferMs >= this.cachedToken.expiresOnTimestamp) {\n this.cachedToken = undefined;\n }\n return this.cachedToken;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Helps the core-http token authentication policies with requesting a new token if we're not currently waiting for a new token.\n *\n * @deprecated No longer used in the bearer authorization policy.\n */\nclass AccessTokenRefresher {\n constructor(credential, scopes, requiredMillisecondsBeforeNewRefresh = 30000) {\n this.credential = credential;\n this.scopes = scopes;\n this.requiredMillisecondsBeforeNewRefresh = requiredMillisecondsBeforeNewRefresh;\n this.lastCalled = 0;\n }\n /**\n * Returns true if the required milliseconds(defaulted to 30000) have been passed signifying\n * that we are ready for a new refresh.\n */\n isReady() {\n // We're only ready for a new refresh if the required milliseconds have passed.\n return (!this.lastCalled || Date.now() - this.lastCalled > this.requiredMillisecondsBeforeNewRefresh);\n }\n /**\n * Stores the time in which it is called,\n * then requests a new token,\n * then sets this.promise to undefined,\n * then returns the token.\n */\n async getToken(options) {\n this.lastCalled = Date.now();\n const token = await this.credential.getToken(this.scopes, options);\n this.promise = undefined;\n return token || undefined;\n }\n /**\n * Requests a new token if we're not currently waiting for a new token.\n * Returns null if the required time between each call hasn't been reached.\n */\n refresh(options) {\n if (!this.promise) {\n this.promise = this.getToken(options);\n }\n return this.promise;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nconst HeaderConstants = Constants.HeaderConstants;\nconst DEFAULT_AUTHORIZATION_SCHEME = \"Basic\";\n/**\n * A simple {@link ServiceClientCredential} that authenticates with a username and a password.\n */\nclass BasicAuthenticationCredentials {\n /**\n * Creates a new BasicAuthenticationCredentials object.\n *\n * @param userName - User name.\n * @param password - Password.\n * @param authorizationScheme - The authorization scheme.\n */\n constructor(userName, password, authorizationScheme = DEFAULT_AUTHORIZATION_SCHEME) {\n /**\n * Authorization scheme. Defaults to \"Basic\".\n * More information about authorization schemes is available here: https://developer.mozilla.org/docs/Web/HTTP/Authentication#authentication_schemes\n */\n this.authorizationScheme = DEFAULT_AUTHORIZATION_SCHEME;\n if (userName === null || userName === undefined || typeof userName.valueOf() !== \"string\") {\n throw new Error(\"userName cannot be null or undefined and must be of type string.\");\n }\n if (password === null || password === undefined || typeof password.valueOf() !== \"string\") {\n throw new Error(\"password cannot be null or undefined and must be of type string.\");\n }\n this.userName = userName;\n this.password = password;\n this.authorizationScheme = authorizationScheme;\n }\n /**\n * Signs a request with the Authentication header.\n *\n * @param webResource - The WebResourceLike to be signed.\n * @returns The signed request object.\n */\n signRequest(webResource) {\n const credentials = `${this.userName}:${this.password}`;\n const encodedCredentials = `${this.authorizationScheme} ${encodeString(credentials)}`;\n if (!webResource.headers)\n webResource.headers = new HttpHeaders();\n webResource.headers.set(HeaderConstants.AUTHORIZATION, encodedCredentials);\n return Promise.resolve(webResource);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Authenticates to a service using an API key.\n */\nclass ApiKeyCredentials {\n /**\n * @param options - Specifies the options to be provided for auth. Either header or query needs to be provided.\n */\n constructor(options) {\n if (!options || (options && !options.inHeader && !options.inQuery)) {\n throw new Error(`options cannot be null or undefined. Either \"inHeader\" or \"inQuery\" property of the options object needs to be provided.`);\n }\n this.inHeader = options.inHeader;\n this.inQuery = options.inQuery;\n }\n /**\n * Signs a request with the values provided in the inHeader and inQuery parameter.\n *\n * @param webResource - The WebResourceLike to be signed.\n * @returns The signed request object.\n */\n signRequest(webResource) {\n if (!webResource) {\n return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type \"object\".`));\n }\n if (this.inHeader) {\n if (!webResource.headers) {\n webResource.headers = new HttpHeaders();\n }\n for (const headerName in this.inHeader) {\n webResource.headers.set(headerName, this.inHeader[headerName]);\n }\n }\n if (this.inQuery) {\n if (!webResource.url) {\n return Promise.reject(new Error(`url cannot be null in the request object.`));\n }\n if (webResource.url.indexOf(\"?\") < 0) {\n webResource.url += \"?\";\n }\n for (const key in this.inQuery) {\n if (!webResource.url.endsWith(\"?\")) {\n webResource.url += \"&\";\n }\n webResource.url += `${key}=${this.inQuery[key]}`;\n }\n }\n return Promise.resolve(webResource);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A {@link TopicCredentials} object used for Azure Event Grid.\n */\nclass TopicCredentials extends ApiKeyCredentials {\n /**\n * Creates a new EventGrid TopicCredentials object.\n *\n * @param topicKey - The EventGrid topic key\n */\n constructor(topicKey) {\n if (!topicKey || (topicKey && typeof topicKey !== \"string\")) {\n throw new Error(\"topicKey cannot be null or undefined and must be of type string.\");\n }\n const options = {\n inHeader: {\n \"aeg-sas-key\": topicKey,\n },\n };\n super(options);\n }\n}\n\nObject.defineProperty(exports, 'delay', {\n enumerable: true,\n get: function () { return coreUtil.delay; }\n});\nObject.defineProperty(exports, 'isNode', {\n enumerable: true,\n get: function () { return coreUtil.isNode; }\n});\nObject.defineProperty(exports, 'isTokenCredential', {\n enumerable: true,\n get: function () { return coreAuth.isTokenCredential; }\n});\nexports.AccessTokenRefresher = AccessTokenRefresher;\nexports.ApiKeyCredentials = ApiKeyCredentials;\nexports.BaseRequestPolicy = BaseRequestPolicy;\nexports.BasicAuthenticationCredentials = BasicAuthenticationCredentials;\nexports.Constants = Constants;\nexports.DefaultHttpClient = NodeFetchHttpClient;\nexports.ExpiringAccessTokenCache = ExpiringAccessTokenCache;\nexports.HttpHeaders = HttpHeaders;\nexports.MapperType = MapperType;\nexports.RequestPolicyOptions = RequestPolicyOptions;\nexports.RestError = RestError;\nexports.Serializer = Serializer;\nexports.ServiceClient = ServiceClient;\nexports.TopicCredentials = TopicCredentials;\nexports.URLBuilder = URLBuilder;\nexports.URLQuery = URLQuery;\nexports.WebResource = WebResource;\nexports.XML_ATTRKEY = XML_ATTRKEY;\nexports.XML_CHARKEY = XML_CHARKEY;\nexports.applyMixins = applyMixins;\nexports.bearerTokenAuthenticationPolicy = bearerTokenAuthenticationPolicy;\nexports.createPipelineFromOptions = createPipelineFromOptions;\nexports.createSpanFunction = createSpanFunction;\nexports.deserializationPolicy = deserializationPolicy;\nexports.deserializeResponseBody = deserializeResponseBody;\nexports.disableResponseDecompressionPolicy = disableResponseDecompressionPolicy;\nexports.encodeUri = encodeUri;\nexports.executePromisesSequentially = executePromisesSequentially;\nexports.exponentialRetryPolicy = exponentialRetryPolicy;\nexports.flattenResponse = flattenResponse;\nexports.generateClientRequestIdPolicy = generateClientRequestIdPolicy;\nexports.generateUuid = generateUuid;\nexports.getDefaultProxySettings = getDefaultProxySettings;\nexports.getDefaultUserAgentValue = getDefaultUserAgentValue;\nexports.isDuration = isDuration;\nexports.isValidUuid = isValidUuid;\nexports.keepAlivePolicy = keepAlivePolicy;\nexports.logPolicy = logPolicy;\nexports.operationOptionsToRequestOptionsBase = operationOptionsToRequestOptionsBase;\nexports.parseXML = parseXML;\nexports.promiseToCallback = promiseToCallback;\nexports.promiseToServiceCallback = promiseToServiceCallback;\nexports.proxyPolicy = proxyPolicy;\nexports.redirectPolicy = redirectPolicy;\nexports.serializeObject = serializeObject;\nexports.signingPolicy = signingPolicy;\nexports.stringifyXML = stringifyXML;\nexports.stripRequest = stripRequest;\nexports.stripResponse = stripResponse;\nexports.systemErrorRetryPolicy = systemErrorRetryPolicy;\nexports.throttlingRetryPolicy = throttlingRetryPolicy;\nexports.tracingPolicy = tracingPolicy;\nexports.userAgentPolicy = userAgentPolicy;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar logger$1 = require('@azure/logger');\nvar abortController = require('@azure/abort-controller');\nvar coreUtil = require('@azure/core-util');\n\n// Copyright (c) Microsoft Corporation.\n/**\n * The `@azure/logger` configuration for this package.\n * @internal\n */\nconst logger = logger$1.createClientLogger(\"core-lro\");\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * The default time interval to wait before sending the next polling request.\n */\nconst POLL_INTERVAL_IN_MS = 2000;\n/**\n * The closed set of terminal states.\n */\nconst terminalStates = [\"succeeded\", \"canceled\", \"failed\"];\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Deserializes the state\n */\nfunction deserializeState(serializedState) {\n try {\n return JSON.parse(serializedState).state;\n }\n catch (e) {\n throw new Error(`Unable to deserialize input state: ${serializedState}`);\n }\n}\nfunction setStateError(inputs) {\n const { state, stateProxy, isOperationError } = inputs;\n return (error) => {\n if (isOperationError(error)) {\n stateProxy.setError(state, error);\n stateProxy.setFailed(state);\n }\n throw error;\n };\n}\nfunction appendReadableErrorMessage(currentMessage, innerMessage) {\n let message = currentMessage;\n if (message.slice(-1) !== \".\") {\n message = message + \".\";\n }\n return message + \" \" + innerMessage;\n}\nfunction simplifyError(err) {\n let message = err.message;\n let code = err.code;\n let curErr = err;\n while (curErr.innererror) {\n curErr = curErr.innererror;\n code = curErr.code;\n message = appendReadableErrorMessage(message, curErr.message);\n }\n return {\n code,\n message,\n };\n}\nfunction processOperationStatus(result) {\n const { state, stateProxy, status, isDone, processResult, getError, response, setErrorAsResult } = result;\n switch (status) {\n case \"succeeded\": {\n stateProxy.setSucceeded(state);\n break;\n }\n case \"failed\": {\n const err = getError === null || getError === void 0 ? void 0 : getError(response);\n let postfix = \"\";\n if (err) {\n const { code, message } = simplifyError(err);\n postfix = `. ${code}. ${message}`;\n }\n const errStr = `The long-running operation has failed${postfix}`;\n stateProxy.setError(state, new Error(errStr));\n stateProxy.setFailed(state);\n logger.warning(errStr);\n break;\n }\n case \"canceled\": {\n stateProxy.setCanceled(state);\n break;\n }\n }\n if ((isDone === null || isDone === void 0 ? void 0 : isDone(response, state)) ||\n (isDone === undefined &&\n [\"succeeded\", \"canceled\"].concat(setErrorAsResult ? [] : [\"failed\"]).includes(status))) {\n stateProxy.setResult(state, buildResult({\n response,\n state,\n processResult,\n }));\n }\n}\nfunction buildResult(inputs) {\n const { processResult, response, state } = inputs;\n return processResult ? processResult(response, state) : response;\n}\n/**\n * Initiates the long-running operation.\n */\nasync function initOperation(inputs) {\n const { init, stateProxy, processResult, getOperationStatus, withOperationLocation, setErrorAsResult, } = inputs;\n const { operationLocation, resourceLocation, metadata, response } = await init();\n if (operationLocation)\n withOperationLocation === null || withOperationLocation === void 0 ? void 0 : withOperationLocation(operationLocation, false);\n const config = {\n metadata,\n operationLocation,\n resourceLocation,\n };\n logger.verbose(`LRO: Operation description:`, config);\n const state = stateProxy.initState(config);\n const status = getOperationStatus({ response, state, operationLocation });\n processOperationStatus({ state, status, stateProxy, response, setErrorAsResult, processResult });\n return state;\n}\nasync function pollOperationHelper(inputs) {\n const { poll, state, stateProxy, operationLocation, getOperationStatus, getResourceLocation, isOperationError, options, } = inputs;\n const response = await poll(operationLocation, options).catch(setStateError({\n state,\n stateProxy,\n isOperationError,\n }));\n const status = getOperationStatus(response, state);\n logger.verbose(`LRO: Status:\\n\\tPolling from: ${state.config.operationLocation}\\n\\tOperation status: ${status}\\n\\tPolling status: ${terminalStates.includes(status) ? \"Stopped\" : \"Running\"}`);\n if (status === \"succeeded\") {\n const resourceLocation = getResourceLocation(response, state);\n if (resourceLocation !== undefined) {\n return {\n response: await poll(resourceLocation).catch(setStateError({ state, stateProxy, isOperationError })),\n status,\n };\n }\n }\n return { response, status };\n}\n/** Polls the long-running operation. */\nasync function pollOperation(inputs) {\n const { poll, state, stateProxy, options, getOperationStatus, getResourceLocation, getOperationLocation, isOperationError, withOperationLocation, getPollingInterval, processResult, getError, updateState, setDelay, isDone, setErrorAsResult, } = inputs;\n const { operationLocation } = state.config;\n if (operationLocation !== undefined) {\n const { response, status } = await pollOperationHelper({\n poll,\n getOperationStatus,\n state,\n stateProxy,\n operationLocation,\n getResourceLocation,\n isOperationError,\n options,\n });\n processOperationStatus({\n status,\n response,\n state,\n stateProxy,\n isDone,\n processResult,\n getError,\n setErrorAsResult,\n });\n if (!terminalStates.includes(status)) {\n const intervalInMs = getPollingInterval === null || getPollingInterval === void 0 ? void 0 : getPollingInterval(response);\n if (intervalInMs)\n setDelay(intervalInMs);\n const location = getOperationLocation === null || getOperationLocation === void 0 ? void 0 : getOperationLocation(response, state);\n if (location !== undefined) {\n const isUpdated = operationLocation !== location;\n state.config.operationLocation = location;\n withOperationLocation === null || withOperationLocation === void 0 ? void 0 : withOperationLocation(location, isUpdated);\n }\n else\n withOperationLocation === null || withOperationLocation === void 0 ? void 0 : withOperationLocation(operationLocation, false);\n }\n updateState === null || updateState === void 0 ? void 0 : updateState(state, response);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nfunction getOperationLocationPollingUrl(inputs) {\n const { azureAsyncOperation, operationLocation } = inputs;\n return operationLocation !== null && operationLocation !== void 0 ? operationLocation : azureAsyncOperation;\n}\nfunction getLocationHeader(rawResponse) {\n return rawResponse.headers[\"location\"];\n}\nfunction getOperationLocationHeader(rawResponse) {\n return rawResponse.headers[\"operation-location\"];\n}\nfunction getAzureAsyncOperationHeader(rawResponse) {\n return rawResponse.headers[\"azure-asyncoperation\"];\n}\nfunction findResourceLocation(inputs) {\n var _a;\n const { location, requestMethod, requestPath, resourceLocationConfig } = inputs;\n switch (requestMethod) {\n case \"PUT\": {\n return requestPath;\n }\n case \"DELETE\": {\n return undefined;\n }\n case \"PATCH\": {\n return (_a = getDefault()) !== null && _a !== void 0 ? _a : requestPath;\n }\n default: {\n return getDefault();\n }\n }\n function getDefault() {\n switch (resourceLocationConfig) {\n case \"azure-async-operation\": {\n return undefined;\n }\n case \"original-uri\": {\n return requestPath;\n }\n case \"location\":\n default: {\n return location;\n }\n }\n }\n}\nfunction inferLroMode(inputs) {\n const { rawResponse, requestMethod, requestPath, resourceLocationConfig } = inputs;\n const operationLocation = getOperationLocationHeader(rawResponse);\n const azureAsyncOperation = getAzureAsyncOperationHeader(rawResponse);\n const pollingUrl = getOperationLocationPollingUrl({ operationLocation, azureAsyncOperation });\n const location = getLocationHeader(rawResponse);\n const normalizedRequestMethod = requestMethod === null || requestMethod === void 0 ? void 0 : requestMethod.toLocaleUpperCase();\n if (pollingUrl !== undefined) {\n return {\n mode: \"OperationLocation\",\n operationLocation: pollingUrl,\n resourceLocation: findResourceLocation({\n requestMethod: normalizedRequestMethod,\n location,\n requestPath,\n resourceLocationConfig,\n }),\n };\n }\n else if (location !== undefined) {\n return {\n mode: \"ResourceLocation\",\n operationLocation: location,\n };\n }\n else if (normalizedRequestMethod === \"PUT\" && requestPath) {\n return {\n mode: \"Body\",\n operationLocation: requestPath,\n };\n }\n else {\n return undefined;\n }\n}\nfunction transformStatus(inputs) {\n const { status, statusCode } = inputs;\n if (typeof status !== \"string\" && status !== undefined) {\n throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${status}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);\n }\n switch (status === null || status === void 0 ? void 0 : status.toLocaleLowerCase()) {\n case undefined:\n return toOperationStatus(statusCode);\n case \"succeeded\":\n return \"succeeded\";\n case \"failed\":\n return \"failed\";\n case \"running\":\n case \"accepted\":\n case \"started\":\n case \"canceling\":\n case \"cancelling\":\n return \"running\";\n case \"canceled\":\n case \"cancelled\":\n return \"canceled\";\n default: {\n logger.verbose(`LRO: unrecognized operation status: ${status}`);\n return status;\n }\n }\n}\nfunction getStatus(rawResponse) {\n var _a;\n const { status } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {};\n return transformStatus({ status, statusCode: rawResponse.statusCode });\n}\nfunction getProvisioningState(rawResponse) {\n var _a, _b;\n const { properties, provisioningState } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {};\n const status = (_b = properties === null || properties === void 0 ? void 0 : properties.provisioningState) !== null && _b !== void 0 ? _b : provisioningState;\n return transformStatus({ status, statusCode: rawResponse.statusCode });\n}\nfunction toOperationStatus(statusCode) {\n if (statusCode === 202) {\n return \"running\";\n }\n else if (statusCode < 300) {\n return \"succeeded\";\n }\n else {\n return \"failed\";\n }\n}\nfunction parseRetryAfter({ rawResponse }) {\n const retryAfter = rawResponse.headers[\"retry-after\"];\n if (retryAfter !== undefined) {\n // Retry-After header value is either in HTTP date format, or in seconds\n const retryAfterInSeconds = parseInt(retryAfter);\n return isNaN(retryAfterInSeconds)\n ? calculatePollingIntervalFromDate(new Date(retryAfter))\n : retryAfterInSeconds * 1000;\n }\n return undefined;\n}\nfunction getErrorFromResponse(response) {\n const error = response.flatResponse.error;\n if (!error) {\n logger.warning(`The long-running operation failed but there is no error property in the response's body`);\n return;\n }\n if (!error.code || !error.message) {\n logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);\n return;\n }\n return error;\n}\nfunction calculatePollingIntervalFromDate(retryAfterDate) {\n const timeNow = Math.floor(new Date().getTime());\n const retryAfterTime = retryAfterDate.getTime();\n if (timeNow < retryAfterTime) {\n return retryAfterTime - timeNow;\n }\n return undefined;\n}\nfunction getStatusFromInitialResponse(inputs) {\n const { response, state, operationLocation } = inputs;\n function helper() {\n var _a;\n const mode = (_a = state.config.metadata) === null || _a === void 0 ? void 0 : _a[\"mode\"];\n switch (mode) {\n case undefined:\n return toOperationStatus(response.rawResponse.statusCode);\n case \"Body\":\n return getOperationStatus(response, state);\n default:\n return \"running\";\n }\n }\n const status = helper();\n return status === \"running\" && operationLocation === undefined ? \"succeeded\" : status;\n}\n/**\n * Initiates the long-running operation.\n */\nasync function initHttpOperation(inputs) {\n const { stateProxy, resourceLocationConfig, processResult, lro, setErrorAsResult } = inputs;\n return initOperation({\n init: async () => {\n const response = await lro.sendInitialRequest();\n const config = inferLroMode({\n rawResponse: response.rawResponse,\n requestPath: lro.requestPath,\n requestMethod: lro.requestMethod,\n resourceLocationConfig,\n });\n return Object.assign({ response, operationLocation: config === null || config === void 0 ? void 0 : config.operationLocation, resourceLocation: config === null || config === void 0 ? void 0 : config.resourceLocation }, ((config === null || config === void 0 ? void 0 : config.mode) ? { metadata: { mode: config.mode } } : {}));\n },\n stateProxy,\n processResult: processResult\n ? ({ flatResponse }, state) => processResult(flatResponse, state)\n : ({ flatResponse }) => flatResponse,\n getOperationStatus: getStatusFromInitialResponse,\n setErrorAsResult,\n });\n}\nfunction getOperationLocation({ rawResponse }, state) {\n var _a;\n const mode = (_a = state.config.metadata) === null || _a === void 0 ? void 0 : _a[\"mode\"];\n switch (mode) {\n case \"OperationLocation\": {\n return getOperationLocationPollingUrl({\n operationLocation: getOperationLocationHeader(rawResponse),\n azureAsyncOperation: getAzureAsyncOperationHeader(rawResponse),\n });\n }\n case \"ResourceLocation\": {\n return getLocationHeader(rawResponse);\n }\n case \"Body\":\n default: {\n return undefined;\n }\n }\n}\nfunction getOperationStatus({ rawResponse }, state) {\n var _a;\n const mode = (_a = state.config.metadata) === null || _a === void 0 ? void 0 : _a[\"mode\"];\n switch (mode) {\n case \"OperationLocation\": {\n return getStatus(rawResponse);\n }\n case \"ResourceLocation\": {\n return toOperationStatus(rawResponse.statusCode);\n }\n case \"Body\": {\n return getProvisioningState(rawResponse);\n }\n default:\n throw new Error(`Internal error: Unexpected operation mode: ${mode}`);\n }\n}\nfunction getResourceLocation({ flatResponse }, state) {\n if (typeof flatResponse === \"object\") {\n const resourceLocation = flatResponse.resourceLocation;\n if (resourceLocation !== undefined) {\n state.config.resourceLocation = resourceLocation;\n }\n }\n return state.config.resourceLocation;\n}\nfunction isOperationError(e) {\n return e.name === \"RestError\";\n}\n/** Polls the long-running operation. */\nasync function pollHttpOperation(inputs) {\n const { lro, stateProxy, options, processResult, updateState, setDelay, state, setErrorAsResult, } = inputs;\n return pollOperation({\n state,\n stateProxy,\n setDelay,\n processResult: processResult\n ? ({ flatResponse }, inputState) => processResult(flatResponse, inputState)\n : ({ flatResponse }) => flatResponse,\n getError: getErrorFromResponse,\n updateState,\n getPollingInterval: parseRetryAfter,\n getOperationLocation,\n getOperationStatus,\n isOperationError,\n getResourceLocation,\n options,\n /**\n * The expansion here is intentional because `lro` could be an object that\n * references an inner this, so we need to preserve a reference to it.\n */\n poll: async (location, inputOptions) => lro.sendPollRequest(location, inputOptions),\n setErrorAsResult,\n });\n}\n\n// Copyright (c) Microsoft Corporation.\nconst createStateProxy$1 = () => ({\n /**\n * The state at this point is created to be of type OperationState.\n * It will be updated later to be of type TState when the\n * customer-provided callback, `updateState`, is called during polling.\n */\n initState: (config) => ({ status: \"running\", config }),\n setCanceled: (state) => (state.status = \"canceled\"),\n setError: (state, error) => (state.error = error),\n setResult: (state, result) => (state.result = result),\n setRunning: (state) => (state.status = \"running\"),\n setSucceeded: (state) => (state.status = \"succeeded\"),\n setFailed: (state) => (state.status = \"failed\"),\n getError: (state) => state.error,\n getResult: (state) => state.result,\n isCanceled: (state) => state.status === \"canceled\",\n isFailed: (state) => state.status === \"failed\",\n isRunning: (state) => state.status === \"running\",\n isSucceeded: (state) => state.status === \"succeeded\",\n});\n/**\n * Returns a poller factory.\n */\nfunction buildCreatePoller(inputs) {\n const { getOperationLocation, getStatusFromInitialResponse, getStatusFromPollResponse, isOperationError, getResourceLocation, getPollingInterval, getError, resolveOnUnsuccessful, } = inputs;\n return async ({ init, poll }, options) => {\n const { processResult, updateState, withOperationLocation: withOperationLocationCallback, intervalInMs = POLL_INTERVAL_IN_MS, restoreFrom, } = options || {};\n const stateProxy = createStateProxy$1();\n const withOperationLocation = withOperationLocationCallback\n ? (() => {\n let called = false;\n return (operationLocation, isUpdated) => {\n if (isUpdated)\n withOperationLocationCallback(operationLocation);\n else if (!called)\n withOperationLocationCallback(operationLocation);\n called = true;\n };\n })()\n : undefined;\n const state = restoreFrom\n ? deserializeState(restoreFrom)\n : await initOperation({\n init,\n stateProxy,\n processResult,\n getOperationStatus: getStatusFromInitialResponse,\n withOperationLocation,\n setErrorAsResult: !resolveOnUnsuccessful,\n });\n let resultPromise;\n const abortController$1 = new abortController.AbortController();\n const handlers = new Map();\n const handleProgressEvents = async () => handlers.forEach((h) => h(state));\n const cancelErrMsg = \"Operation was canceled\";\n let currentPollIntervalInMs = intervalInMs;\n const poller = {\n getOperationState: () => state,\n getResult: () => state.result,\n isDone: () => [\"succeeded\", \"failed\", \"canceled\"].includes(state.status),\n isStopped: () => resultPromise === undefined,\n stopPolling: () => {\n abortController$1.abort();\n },\n toString: () => JSON.stringify({\n state,\n }),\n onProgress: (callback) => {\n const s = Symbol();\n handlers.set(s, callback);\n return () => handlers.delete(s);\n },\n pollUntilDone: (pollOptions) => (resultPromise !== null && resultPromise !== void 0 ? resultPromise : (resultPromise = (async () => {\n const { abortSignal: inputAbortSignal } = pollOptions || {};\n const { signal: abortSignal } = inputAbortSignal\n ? new abortController.AbortController([inputAbortSignal, abortController$1.signal])\n : abortController$1;\n if (!poller.isDone()) {\n await poller.poll({ abortSignal });\n while (!poller.isDone()) {\n await coreUtil.delay(currentPollIntervalInMs, { abortSignal });\n await poller.poll({ abortSignal });\n }\n }\n if (resolveOnUnsuccessful) {\n return poller.getResult();\n }\n else {\n switch (state.status) {\n case \"succeeded\":\n return poller.getResult();\n case \"canceled\":\n throw new Error(cancelErrMsg);\n case \"failed\":\n throw state.error;\n case \"notStarted\":\n case \"running\":\n throw new Error(`Polling completed without succeeding or failing`);\n }\n }\n })().finally(() => {\n resultPromise = undefined;\n }))),\n async poll(pollOptions) {\n if (resolveOnUnsuccessful) {\n if (poller.isDone())\n return;\n }\n else {\n switch (state.status) {\n case \"succeeded\":\n return;\n case \"canceled\":\n throw new Error(cancelErrMsg);\n case \"failed\":\n throw state.error;\n }\n }\n await pollOperation({\n poll,\n state,\n stateProxy,\n getOperationLocation,\n isOperationError,\n withOperationLocation,\n getPollingInterval,\n getOperationStatus: getStatusFromPollResponse,\n getResourceLocation,\n processResult,\n getError,\n updateState,\n options: pollOptions,\n setDelay: (pollIntervalInMs) => {\n currentPollIntervalInMs = pollIntervalInMs;\n },\n setErrorAsResult: !resolveOnUnsuccessful,\n });\n await handleProgressEvents();\n if (!resolveOnUnsuccessful) {\n switch (state.status) {\n case \"canceled\":\n throw new Error(cancelErrMsg);\n case \"failed\":\n throw state.error;\n }\n }\n },\n };\n return poller;\n };\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Creates a poller that can be used to poll a long-running operation.\n * @param lro - Description of the long-running operation\n * @param options - options to configure the poller\n * @returns an initialized poller\n */\nasync function createHttpPoller(lro, options) {\n const { resourceLocationConfig, intervalInMs, processResult, restoreFrom, updateState, withOperationLocation, resolveOnUnsuccessful = false, } = options || {};\n return buildCreatePoller({\n getStatusFromInitialResponse,\n getStatusFromPollResponse: getOperationStatus,\n isOperationError,\n getOperationLocation,\n getResourceLocation,\n getPollingInterval: parseRetryAfter,\n getError: getErrorFromResponse,\n resolveOnUnsuccessful,\n })({\n init: async () => {\n const response = await lro.sendInitialRequest();\n const config = inferLroMode({\n rawResponse: response.rawResponse,\n requestPath: lro.requestPath,\n requestMethod: lro.requestMethod,\n resourceLocationConfig,\n });\n return Object.assign({ response, operationLocation: config === null || config === void 0 ? void 0 : config.operationLocation, resourceLocation: config === null || config === void 0 ? void 0 : config.resourceLocation }, ((config === null || config === void 0 ? void 0 : config.mode) ? { metadata: { mode: config.mode } } : {}));\n },\n poll: lro.sendPollRequest,\n }, {\n intervalInMs,\n withOperationLocation,\n restoreFrom,\n updateState,\n processResult: processResult\n ? ({ flatResponse }, state) => processResult(flatResponse, state)\n : ({ flatResponse }) => flatResponse,\n });\n}\n\n// Copyright (c) Microsoft Corporation.\nconst createStateProxy = () => ({\n initState: (config) => ({ config, isStarted: true }),\n setCanceled: (state) => (state.isCancelled = true),\n setError: (state, error) => (state.error = error),\n setResult: (state, result) => (state.result = result),\n setRunning: (state) => (state.isStarted = true),\n setSucceeded: (state) => (state.isCompleted = true),\n setFailed: () => {\n /** empty body */\n },\n getError: (state) => state.error,\n getResult: (state) => state.result,\n isCanceled: (state) => !!state.isCancelled,\n isFailed: (state) => !!state.error,\n isRunning: (state) => !!state.isStarted,\n isSucceeded: (state) => Boolean(state.isCompleted && !state.isCancelled && !state.error),\n});\nclass GenericPollOperation {\n constructor(state, lro, setErrorAsResult, lroResourceLocationConfig, processResult, updateState, isDone) {\n this.state = state;\n this.lro = lro;\n this.setErrorAsResult = setErrorAsResult;\n this.lroResourceLocationConfig = lroResourceLocationConfig;\n this.processResult = processResult;\n this.updateState = updateState;\n this.isDone = isDone;\n }\n setPollerConfig(pollerConfig) {\n this.pollerConfig = pollerConfig;\n }\n async update(options) {\n var _a;\n const stateProxy = createStateProxy();\n if (!this.state.isStarted) {\n this.state = Object.assign(Object.assign({}, this.state), (await initHttpOperation({\n lro: this.lro,\n stateProxy,\n resourceLocationConfig: this.lroResourceLocationConfig,\n processResult: this.processResult,\n setErrorAsResult: this.setErrorAsResult,\n })));\n }\n const updateState = this.updateState;\n const isDone = this.isDone;\n if (!this.state.isCompleted && this.state.error === undefined) {\n await pollHttpOperation({\n lro: this.lro,\n state: this.state,\n stateProxy,\n processResult: this.processResult,\n updateState: updateState\n ? (state, { rawResponse }) => updateState(state, rawResponse)\n : undefined,\n isDone: isDone\n ? ({ flatResponse }, state) => isDone(flatResponse, state)\n : undefined,\n options,\n setDelay: (intervalInMs) => {\n this.pollerConfig.intervalInMs = intervalInMs;\n },\n setErrorAsResult: this.setErrorAsResult,\n });\n }\n (_a = options === null || options === void 0 ? void 0 : options.fireProgress) === null || _a === void 0 ? void 0 : _a.call(options, this.state);\n return this;\n }\n async cancel() {\n logger.error(\"`cancelOperation` is deprecated because it wasn't implemented\");\n return this;\n }\n /**\n * Serializes the Poller operation.\n */\n toString() {\n return JSON.stringify({\n state: this.state,\n });\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * When a poller is manually stopped through the `stopPolling` method,\n * the poller will be rejected with an instance of the PollerStoppedError.\n */\nclass PollerStoppedError extends Error {\n constructor(message) {\n super(message);\n this.name = \"PollerStoppedError\";\n Object.setPrototypeOf(this, PollerStoppedError.prototype);\n }\n}\n/**\n * When the operation is cancelled, the poller will be rejected with an instance\n * of the PollerCancelledError.\n */\nclass PollerCancelledError extends Error {\n constructor(message) {\n super(message);\n this.name = \"PollerCancelledError\";\n Object.setPrototypeOf(this, PollerCancelledError.prototype);\n }\n}\n/**\n * A class that represents the definition of a program that polls through consecutive requests\n * until it reaches a state of completion.\n *\n * A poller can be executed manually, by polling request by request by calling to the `poll()` method repeatedly, until its operation is completed.\n * It also provides a way to wait until the operation completes, by calling `pollUntilDone()` and waiting until the operation finishes.\n * Pollers can also request the cancellation of the ongoing process to whom is providing the underlying long running operation.\n *\n * ```ts\n * const poller = new MyPoller();\n *\n * // Polling just once:\n * await poller.poll();\n *\n * // We can try to cancel the request here, by calling:\n * //\n * // await poller.cancelOperation();\n * //\n *\n * // Getting the final result:\n * const result = await poller.pollUntilDone();\n * ```\n *\n * The Poller is defined by two types, a type representing the state of the poller, which\n * must include a basic set of properties from `PollOperationState`,\n * and a return type defined by `TResult`, which can be anything.\n *\n * The Poller class implements the `PollerLike` interface, which allows poller implementations to avoid having\n * to export the Poller's class directly, and instead only export the already instantiated poller with the PollerLike type.\n *\n * ```ts\n * class Client {\n * public async makePoller: PollerLike {\n * const poller = new MyPoller({});\n * // It might be preferred to return the poller after the first request is made,\n * // so that some information can be obtained right away.\n * await poller.poll();\n * return poller;\n * }\n * }\n *\n * const poller: PollerLike = myClient.makePoller();\n * ```\n *\n * A poller can be created through its constructor, then it can be polled until it's completed.\n * At any point in time, the state of the poller can be obtained without delay through the getOperationState method.\n * At any point in time, the intermediate forms of the result type can be requested without delay.\n * Once the underlying operation is marked as completed, the poller will stop and the final value will be returned.\n *\n * ```ts\n * const poller = myClient.makePoller();\n * const state: MyOperationState = poller.getOperationState();\n *\n * // The intermediate result can be obtained at any time.\n * const result: MyResult | undefined = poller.getResult();\n *\n * // The final result can only be obtained after the poller finishes.\n * const result: MyResult = await poller.pollUntilDone();\n * ```\n *\n */\n// eslint-disable-next-line no-use-before-define\nclass Poller {\n /**\n * A poller needs to be initialized by passing in at least the basic properties of the `PollOperation`.\n *\n * When writing an implementation of a Poller, this implementation needs to deal with the initialization\n * of any custom state beyond the basic definition of the poller. The basic poller assumes that the poller's\n * operation has already been defined, at least its basic properties. The code below shows how to approach\n * the definition of the constructor of a new custom poller.\n *\n * ```ts\n * export class MyPoller extends Poller {\n * constructor({\n * // Anything you might need outside of the basics\n * }) {\n * let state: MyOperationState = {\n * privateProperty: private,\n * publicProperty: public,\n * };\n *\n * const operation = {\n * state,\n * update,\n * cancel,\n * toString\n * }\n *\n * // Sending the operation to the parent's constructor.\n * super(operation);\n *\n * // You can assign more local properties here.\n * }\n * }\n * ```\n *\n * Inside of this constructor, a new promise is created. This will be used to\n * tell the user when the poller finishes (see `pollUntilDone()`). The promise's\n * resolve and reject methods are also used internally to control when to resolve\n * or reject anyone waiting for the poller to finish.\n *\n * The constructor of a custom implementation of a poller is where any serialized version of\n * a previous poller's operation should be deserialized into the operation sent to the\n * base constructor. For example:\n *\n * ```ts\n * export class MyPoller extends Poller {\n * constructor(\n * baseOperation: string | undefined\n * ) {\n * let state: MyOperationState = {};\n * if (baseOperation) {\n * state = {\n * ...JSON.parse(baseOperation).state,\n * ...state\n * };\n * }\n * const operation = {\n * state,\n * // ...\n * }\n * super(operation);\n * }\n * }\n * ```\n *\n * @param operation - Must contain the basic properties of `PollOperation`.\n */\n constructor(operation) {\n /** controls whether to throw an error if the operation failed or was canceled. */\n this.resolveOnUnsuccessful = false;\n this.stopped = true;\n this.pollProgressCallbacks = [];\n this.operation = operation;\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n // This prevents the UnhandledPromiseRejectionWarning in node.js from being thrown.\n // The above warning would get thrown if `poller.poll` is called, it returns an error,\n // and pullUntilDone did not have a .catch or await try/catch on it's return value.\n this.promise.catch(() => {\n /* intentionally blank */\n });\n }\n /**\n * Starts a loop that will break only if the poller is done\n * or if the poller is stopped.\n */\n async startPolling(pollOptions = {}) {\n if (this.stopped) {\n this.stopped = false;\n }\n while (!this.isStopped() && !this.isDone()) {\n await this.poll(pollOptions);\n await this.delay();\n }\n }\n /**\n * pollOnce does one polling, by calling to the update method of the underlying\n * poll operation to make any relevant change effective.\n *\n * It only optionally receives an object with an abortSignal property, from \\@azure/abort-controller's AbortSignalLike.\n *\n * @param options - Optional properties passed to the operation's update method.\n */\n async pollOnce(options = {}) {\n if (!this.isDone()) {\n this.operation = await this.operation.update({\n abortSignal: options.abortSignal,\n fireProgress: this.fireProgress.bind(this),\n });\n }\n this.processUpdatedState();\n }\n /**\n * fireProgress calls the functions passed in via onProgress the method of the poller.\n *\n * It loops over all of the callbacks received from onProgress, and executes them, sending them\n * the current operation state.\n *\n * @param state - The current operation state.\n */\n fireProgress(state) {\n for (const callback of this.pollProgressCallbacks) {\n callback(state);\n }\n }\n /**\n * Invokes the underlying operation's cancel method.\n */\n async cancelOnce(options = {}) {\n this.operation = await this.operation.cancel(options);\n }\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n *\n * It only optionally receives an object with an abortSignal property, from \\@azure/abort-controller's AbortSignalLike.\n *\n * @param options - Optional properties passed to the operation's update method.\n */\n poll(options = {}) {\n if (!this.pollOncePromise) {\n this.pollOncePromise = this.pollOnce(options);\n const clearPollOncePromise = () => {\n this.pollOncePromise = undefined;\n };\n this.pollOncePromise.then(clearPollOncePromise, clearPollOncePromise).catch(this.reject);\n }\n return this.pollOncePromise;\n }\n processUpdatedState() {\n if (this.operation.state.error) {\n this.stopped = true;\n if (!this.resolveOnUnsuccessful) {\n this.reject(this.operation.state.error);\n throw this.operation.state.error;\n }\n }\n if (this.operation.state.isCancelled) {\n this.stopped = true;\n if (!this.resolveOnUnsuccessful) {\n const error = new PollerCancelledError(\"Operation was canceled\");\n this.reject(error);\n throw error;\n }\n }\n if (this.isDone() && this.resolve) {\n // If the poller has finished polling, this means we now have a result.\n // However, it can be the case that TResult is instantiated to void, so\n // we are not expecting a result anyway. To assert that we might not\n // have a result eventually after finishing polling, we cast the result\n // to TResult.\n this.resolve(this.getResult());\n }\n }\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n async pollUntilDone(pollOptions = {}) {\n if (this.stopped) {\n this.startPolling(pollOptions).catch(this.reject);\n }\n // This is needed because the state could have been updated by\n // `cancelOperation`, e.g. the operation is canceled or an error occurred.\n this.processUpdatedState();\n return this.promise;\n }\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback) {\n this.pollProgressCallbacks.push(callback);\n return () => {\n this.pollProgressCallbacks = this.pollProgressCallbacks.filter((c) => c !== callback);\n };\n }\n /**\n * Returns true if the poller has finished polling.\n */\n isDone() {\n const state = this.operation.state;\n return Boolean(state.isCompleted || state.isCancelled || state.error);\n }\n /**\n * Stops the poller from continuing to poll.\n */\n stopPolling() {\n if (!this.stopped) {\n this.stopped = true;\n if (this.reject) {\n this.reject(new PollerStoppedError(\"This poller is already stopped\"));\n }\n }\n }\n /**\n * Returns true if the poller is stopped.\n */\n isStopped() {\n return this.stopped;\n }\n /**\n * Attempts to cancel the underlying operation.\n *\n * It only optionally receives an object with an abortSignal property, from \\@azure/abort-controller's AbortSignalLike.\n *\n * If it's called again before it finishes, it will throw an error.\n *\n * @param options - Optional properties passed to the operation's update method.\n */\n cancelOperation(options = {}) {\n if (!this.cancelPromise) {\n this.cancelPromise = this.cancelOnce(options);\n }\n else if (options.abortSignal) {\n throw new Error(\"A cancel request is currently pending\");\n }\n return this.cancelPromise;\n }\n /**\n * Returns the state of the operation.\n *\n * Even though TState will be the same type inside any of the methods of any extension of the Poller class,\n * implementations of the pollers can customize what's shared with the public by writing their own\n * version of the `getOperationState` method, and by defining two types, one representing the internal state of the poller\n * and a public type representing a safe to share subset of the properties of the internal state.\n * Their definition of getOperationState can then return their public type.\n *\n * Example:\n *\n * ```ts\n * // Let's say we have our poller's operation state defined as:\n * interface MyOperationState extends PollOperationState {\n * privateProperty?: string;\n * publicProperty?: string;\n * }\n *\n * // To allow us to have a true separation of public and private state, we have to define another interface:\n * interface PublicState extends PollOperationState {\n * publicProperty?: string;\n * }\n *\n * // Then, we define our Poller as follows:\n * export class MyPoller extends Poller {\n * // ... More content is needed here ...\n *\n * public getOperationState(): PublicState {\n * const state: PublicState = this.operation.state;\n * return {\n * // Properties from PollOperationState\n * isStarted: state.isStarted,\n * isCompleted: state.isCompleted,\n * isCancelled: state.isCancelled,\n * error: state.error,\n * result: state.result,\n *\n * // The only other property needed by PublicState.\n * publicProperty: state.publicProperty\n * }\n * }\n * }\n * ```\n *\n * You can see this in the tests of this repository, go to the file:\n * `../test/utils/testPoller.ts`\n * and look for the getOperationState implementation.\n */\n getOperationState() {\n return this.operation.state;\n }\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult() {\n const state = this.operation.state;\n return state.result;\n }\n /**\n * Returns a serialized version of the poller's operation\n * by invoking the operation's toString method.\n */\n toString() {\n return this.operation.toString();\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * The LRO Engine, a class that performs polling.\n */\nclass LroEngine extends Poller {\n constructor(lro, options) {\n const { intervalInMs = POLL_INTERVAL_IN_MS, resumeFrom, resolveOnUnsuccessful = false, isDone, lroResourceLocationConfig, processResult, updateState, } = options || {};\n const state = resumeFrom\n ? deserializeState(resumeFrom)\n : {};\n const operation = new GenericPollOperation(state, lro, !resolveOnUnsuccessful, lroResourceLocationConfig, processResult, updateState, isDone);\n super(operation);\n this.resolveOnUnsuccessful = resolveOnUnsuccessful;\n this.config = { intervalInMs: intervalInMs };\n operation.setPollerConfig(this.config);\n }\n /**\n * The method used by the poller to wait before attempting to update its operation.\n */\n delay() {\n return new Promise((resolve) => setTimeout(() => resolve(), this.config.intervalInMs));\n }\n}\n\nexports.LroEngine = LroEngine;\nexports.Poller = Poller;\nexports.PollerCancelledError = PollerCancelledError;\nexports.PollerStoppedError = PollerStoppedError;\nexports.createHttpPoller = createHttpPoller;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar tslib = require('tslib');\n\n// Copyright (c) Microsoft Corporation.\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator(pagedResult) {\n var _a;\n const iter = getItemAsyncIterator(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {\n const { continuationToken, maxPageSize } = settings !== null && settings !== void 0 ? settings : {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n maxPageSize,\n });\n }),\n };\n}\nfunction getItemAsyncIterator(pagedResult) {\n return tslib.__asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {\n var e_1, _a, e_2, _b;\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = yield tslib.__await(pages.next());\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(toElements(firstVal.value))));\n try {\n for (var pages_1 = tslib.__asyncValues(pages), pages_1_1; pages_1_1 = yield tslib.__await(pages_1.next()), !pages_1_1.done;) {\n const page = pages_1_1.value;\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(toElements(page))));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (pages_1_1 && !pages_1_1.done && (_a = pages_1.return)) yield tslib.__await(_a.call(pages_1));\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n else {\n yield yield tslib.__await(firstVal.value);\n // `pages` is of type `AsyncIterableIterator` but TPage = TElement in this case\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(pages)));\n }\n }\n else {\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(firstVal.value)));\n try {\n for (var pages_2 = tslib.__asyncValues(pages), pages_2_1; pages_2_1 = yield tslib.__await(pages_2.next()), !pages_2_1.done;) {\n const page = pages_2_1.value;\n // pages is of type `AsyncIterableIterator` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (pages_2_1 && !pages_2_1.done && (_b = pages_2.return)) yield tslib.__await(_b.call(pages_2));\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n });\n}\nfunction getPageAsyncIterator(pagedResult, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* getPageAsyncIterator_1() {\n const { pageLink, maxPageSize } = options;\n let response = yield tslib.__await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink, maxPageSize));\n if (!response) {\n return yield tslib.__await(void 0);\n }\n yield yield tslib.__await(response.page);\n while (response.nextPageLink) {\n response = yield tslib.__await(pagedResult.getPage(response.nextPageLink, maxPageSize));\n if (!response) {\n return yield tslib.__await(void 0);\n }\n yield yield tslib.__await(response.page);\n }\n });\n}\n\nexports.getPagedAsyncIterator = getPagedAsyncIterator;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar api = require('@opentelemetry/api');\n\n// Copyright (c) Microsoft Corporation.\n(function (SpanKind) {\n /** Default value. Indicates that the span is used internally. */\n SpanKind[SpanKind[\"INTERNAL\"] = 0] = \"INTERNAL\";\n /**\n * Indicates that the span covers server-side handling of an RPC or other\n * remote request.\n */\n SpanKind[SpanKind[\"SERVER\"] = 1] = \"SERVER\";\n /**\n * Indicates that the span covers the client-side wrapper around an RPC or\n * other remote request.\n */\n SpanKind[SpanKind[\"CLIENT\"] = 2] = \"CLIENT\";\n /**\n * Indicates that the span describes producer sending a message to a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n SpanKind[SpanKind[\"PRODUCER\"] = 3] = \"PRODUCER\";\n /**\n * Indicates that the span describes consumer receiving a message from a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n SpanKind[SpanKind[\"CONSUMER\"] = 4] = \"CONSUMER\";\n})(exports.SpanKind || (exports.SpanKind = {}));\n/**\n * Return the span if one exists\n *\n * @param context - context to get span from\n */\nfunction getSpan(context) {\n return api.trace.getSpan(context);\n}\n/**\n * Set the span on a context\n *\n * @param context - context to use as parent\n * @param span - span to set active\n */\nfunction setSpan(context, span) {\n return api.trace.setSpan(context, span);\n}\n/**\n * Wrap span context in a NoopSpan and set as span in a new\n * context\n *\n * @param context - context to set active span on\n * @param spanContext - span context to be wrapped\n */\nfunction setSpanContext(context, spanContext) {\n return api.trace.setSpanContext(context, spanContext);\n}\n/**\n * Get the span context of the span if it exists.\n *\n * @param context - context to get values from\n */\nfunction getSpanContext(context) {\n return api.trace.getSpanContext(context);\n}\n/**\n * Returns true of the given {@link SpanContext} is valid.\n * A valid {@link SpanContext} is one which has a valid trace ID and span ID as per the spec.\n *\n * @param context - the {@link SpanContext} to validate.\n *\n * @returns true if the {@link SpanContext} is valid, false otherwise.\n */\nfunction isSpanContextValid(context) {\n return api.trace.isSpanContextValid(context);\n}\nfunction getTracer(name, version) {\n return api.trace.getTracer(name || \"azure/core-tracing\", version);\n}\n/** Entrypoint for context API */\nconst context = api.context;\n(function (SpanStatusCode) {\n /**\n * The default status.\n */\n SpanStatusCode[SpanStatusCode[\"UNSET\"] = 0] = \"UNSET\";\n /**\n * The operation has been validated by an Application developer or\n * Operator to have completed successfully.\n */\n SpanStatusCode[SpanStatusCode[\"OK\"] = 1] = \"OK\";\n /**\n * The operation contains an error.\n */\n SpanStatusCode[SpanStatusCode[\"ERROR\"] = 2] = \"ERROR\";\n})(exports.SpanStatusCode || (exports.SpanStatusCode = {}));\n\n// Copyright (c) Microsoft Corporation.\nfunction isTracingDisabled() {\n var _a;\n if (typeof process === \"undefined\") {\n // not supported in browser for now without polyfills\n return false;\n }\n const azureTracingDisabledValue = (_a = process.env.AZURE_TRACING_DISABLED) === null || _a === void 0 ? void 0 : _a.toLowerCase();\n if (azureTracingDisabledValue === \"false\" || azureTracingDisabledValue === \"0\") {\n return false;\n }\n return Boolean(azureTracingDisabledValue);\n}\n/**\n * Creates a function that can be used to create spans using the global tracer.\n *\n * Usage:\n *\n * ```typescript\n * // once\n * const createSpan = createSpanFunction({ packagePrefix: \"Azure.Data.AppConfiguration\", namespace: \"Microsoft.AppConfiguration\" });\n *\n * // in each operation\n * const span = createSpan(\"deleteConfigurationSetting\", operationOptions);\n * // code...\n * span.end();\n * ```\n *\n * @hidden\n * @param args - allows configuration of the prefix for each span as well as the az.namespace field.\n */\nfunction createSpanFunction(args) {\n return function (operationName, operationOptions) {\n const tracer = getTracer();\n const tracingOptions = (operationOptions === null || operationOptions === void 0 ? void 0 : operationOptions.tracingOptions) || {};\n const spanOptions = Object.assign({ kind: exports.SpanKind.INTERNAL }, tracingOptions.spanOptions);\n const spanName = args.packagePrefix ? `${args.packagePrefix}.${operationName}` : operationName;\n let span;\n if (isTracingDisabled()) {\n span = api.trace.wrapSpanContext(api.INVALID_SPAN_CONTEXT);\n }\n else {\n span = tracer.startSpan(spanName, spanOptions, tracingOptions.tracingContext);\n }\n if (args.namespace) {\n span.setAttribute(\"az.namespace\", args.namespace);\n }\n let newSpanOptions = tracingOptions.spanOptions || {};\n if (span.isRecording() && args.namespace) {\n newSpanOptions = Object.assign(Object.assign({}, tracingOptions.spanOptions), { attributes: Object.assign(Object.assign({}, spanOptions.attributes), { \"az.namespace\": args.namespace }) });\n }\n const newTracingOptions = Object.assign(Object.assign({}, tracingOptions), { spanOptions: newSpanOptions, tracingContext: setSpan(tracingOptions.tracingContext || context.active(), span) });\n const newOperationOptions = Object.assign(Object.assign({}, operationOptions), { tracingOptions: newTracingOptions });\n return {\n span,\n updatedOptions: newOperationOptions\n };\n };\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nconst VERSION = \"00\";\n/**\n * Generates a `SpanContext` given a `traceparent` header value.\n * @param traceParent - Serialized span context data as a `traceparent` header value.\n * @returns The `SpanContext` generated from the `traceparent` value.\n */\nfunction extractSpanContextFromTraceParentHeader(traceParentHeader) {\n const parts = traceParentHeader.split(\"-\");\n if (parts.length !== 4) {\n return;\n }\n const [version, traceId, spanId, traceOptions] = parts;\n if (version !== VERSION) {\n return;\n }\n const traceFlags = parseInt(traceOptions, 16);\n const spanContext = {\n spanId,\n traceId,\n traceFlags\n };\n return spanContext;\n}\n/**\n * Generates a `traceparent` value given a span context.\n * @param spanContext - Contains context for a specific span.\n * @returns The `spanContext` represented as a `traceparent` value.\n */\nfunction getTraceParentHeader(spanContext) {\n const missingFields = [];\n if (!spanContext.traceId) {\n missingFields.push(\"traceId\");\n }\n if (!spanContext.spanId) {\n missingFields.push(\"spanId\");\n }\n if (missingFields.length) {\n return;\n }\n const flags = spanContext.traceFlags || 0 /* NONE */;\n const hexFlags = flags.toString(16);\n const traceFlags = hexFlags.length === 1 ? `0${hexFlags}` : hexFlags;\n // https://www.w3.org/TR/trace-context/#traceparent-header-field-values\n return `${VERSION}-${spanContext.traceId}-${spanContext.spanId}-${traceFlags}`;\n}\n\nexports.context = context;\nexports.createSpanFunction = createSpanFunction;\nexports.extractSpanContextFromTraceParentHeader = extractSpanContextFromTraceParentHeader;\nexports.getSpan = getSpan;\nexports.getSpanContext = getSpanContext;\nexports.getTraceParentHeader = getTraceParentHeader;\nexports.getTracer = getTracer;\nexports.isSpanContextValid = isSpanContextValid;\nexports.setSpan = setSpan;\nexports.setSpanContext = setSpanContext;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nvar abortController = require('@azure/abort-controller');\nvar crypto = require('crypto');\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Creates an abortable promise.\n * @param buildPromise - A function that takes the resolve and reject functions as parameters.\n * @param options - The options for the abortable promise.\n * @returns A promise that can be aborted.\n */\nfunction createAbortablePromise(buildPromise, options) {\n const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options !== null && options !== void 0 ? options : {};\n return new Promise((resolve, reject) => {\n function rejectOnAbort() {\n reject(new abortController.AbortError(abortErrorMsg !== null && abortErrorMsg !== void 0 ? abortErrorMsg : \"The operation was aborted.\"));\n }\n function removeListeners() {\n abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.removeEventListener(\"abort\", onAbort);\n }\n function onAbort() {\n cleanupBeforeAbort === null || cleanupBeforeAbort === void 0 ? void 0 : cleanupBeforeAbort();\n removeListeners();\n rejectOnAbort();\n }\n if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {\n return rejectOnAbort();\n }\n try {\n buildPromise((x) => {\n removeListeners();\n resolve(x);\n }, (x) => {\n removeListeners();\n reject(x);\n });\n }\n catch (err) {\n reject(err);\n }\n abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.addEventListener(\"abort\", onAbort);\n });\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nconst StandardAbortMessage = \"The delay was aborted.\";\n/**\n * A wrapper for setTimeout that resolves a promise after timeInMs milliseconds.\n * @param timeInMs - The number of milliseconds to be delayed.\n * @param options - The options for delay - currently abort options\n * @returns Promise that is resolved after timeInMs\n */\nfunction delay(timeInMs, options) {\n let token;\n const { abortSignal, abortErrorMsg } = options !== null && options !== void 0 ? options : {};\n return createAbortablePromise((resolve) => {\n token = setTimeout(resolve, timeInMs);\n }, {\n cleanupBeforeAbort: () => clearTimeout(token),\n abortSignal,\n abortErrorMsg: abortErrorMsg !== null && abortErrorMsg !== void 0 ? abortErrorMsg : StandardAbortMessage,\n });\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * promise.race() wrapper that aborts rest of promises as soon as the first promise settles.\n */\nasync function cancelablePromiseRace(abortablePromiseBuilders, options) {\n var _a, _b;\n const aborter = new abortController.AbortController();\n function abortHandler() {\n aborter.abort();\n }\n (_a = options === null || options === void 0 ? void 0 : options.abortSignal) === null || _a === void 0 ? void 0 : _a.addEventListener(\"abort\", abortHandler);\n try {\n return await Promise.race(abortablePromiseBuilders.map((p) => p({ abortSignal: aborter.signal })));\n }\n finally {\n aborter.abort();\n (_b = options === null || options === void 0 ? void 0 : options.abortSignal) === null || _b === void 0 ? void 0 : _b.removeEventListener(\"abort\", abortHandler);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Returns a random integer value between a lower and upper bound,\n * inclusive of both bounds.\n * Note that this uses Math.random and isn't secure. If you need to use\n * this for any kind of security purpose, find a better source of random.\n * @param min - The smallest integer value allowed.\n * @param max - The largest integer value allowed.\n */\nfunction getRandomIntegerInclusive(min, max) {\n // Make sure inputs are integers.\n min = Math.ceil(min);\n max = Math.floor(max);\n // Pick a random offset from zero to the size of the range.\n // Since Math.random() can never return 1, we have to make the range one larger\n // in order to be inclusive of the maximum value after we take the floor.\n const offset = Math.floor(Math.random() * (max - min + 1));\n return offset + min;\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Helper to determine when an input is a generic JS object.\n * @returns true when input is an object type that is not null, Array, RegExp, or Date.\n */\nfunction isObject(input) {\n return (typeof input === \"object\" &&\n input !== null &&\n !Array.isArray(input) &&\n !(input instanceof RegExp) &&\n !(input instanceof Date));\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Typeguard for an error object shape (has name and message)\n * @param e - Something caught by a catch clause.\n */\nfunction isError(e) {\n if (isObject(e)) {\n const hasName = typeof e.name === \"string\";\n const hasMessage = typeof e.message === \"string\";\n return hasName && hasMessage;\n }\n return false;\n}\n/**\n * Given what is thought to be an error object, return the message if possible.\n * If the message is missing, returns a stringified version of the input.\n * @param e - Something thrown from a try block\n * @returns The error message or a string of the input\n */\nfunction getErrorMessage(e) {\n if (isError(e)) {\n return e.message;\n }\n else {\n let stringified;\n try {\n if (typeof e === \"object\" && e) {\n stringified = JSON.stringify(e);\n }\n else {\n stringified = String(e);\n }\n }\n catch (err) {\n stringified = \"[unable to stringify input]\";\n }\n return `Unknown error ${stringified}`;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Generates a SHA-256 HMAC signature.\n * @param key - The HMAC key represented as a base64 string, used to generate the cryptographic HMAC hash.\n * @param stringToSign - The data to be signed.\n * @param encoding - The textual encoding to use for the returned HMAC digest.\n */\nasync function computeSha256Hmac(key, stringToSign, encoding) {\n const decodedKey = Buffer.from(key, \"base64\");\n return crypto.createHmac(\"sha256\", decodedKey).update(stringToSign).digest(encoding);\n}\n/**\n * Generates a SHA-256 hash.\n * @param content - The data to be included in the hash.\n * @param encoding - The textual encoding to use for the returned hash.\n */\nasync function computeSha256Hash(content, encoding) {\n return crypto.createHash(\"sha256\").update(content).digest(encoding);\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Helper TypeGuard that checks if something is defined or not.\n * @param thing - Anything\n */\nfunction isDefined(thing) {\n return typeof thing !== \"undefined\" && thing !== null;\n}\n/**\n * Helper TypeGuard that checks if the input is an object with the specified properties.\n * @param thing - Anything.\n * @param properties - The name of the properties that should appear in the object.\n */\nfunction isObjectWithProperties(thing, properties) {\n if (!isDefined(thing) || typeof thing !== \"object\") {\n return false;\n }\n for (const property of properties) {\n if (!objectHasProperty(thing, property)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Helper TypeGuard that checks if the input is an object with the specified property.\n * @param thing - Any object.\n * @param property - The name of the property that should appear in the object.\n */\nfunction objectHasProperty(thing, property) {\n return (isDefined(thing) && typeof thing === \"object\" && property in thing);\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/*\n * NOTE: When moving this file, please update \"react-native\" section in package.json.\n */\n/**\n * Generated Universally Unique Identifier\n *\n * @returns RFC4122 v4 UUID.\n */\nfunction generateUUID() {\n let uuid = \"\";\n for (let i = 0; i < 32; i++) {\n // Generate a random number between 0 and 15\n const randomNumber = Math.floor(Math.random() * 16);\n // Set the UUID version to 4 in the 13th position\n if (i === 12) {\n uuid += \"4\";\n }\n else if (i === 16) {\n // Set the UUID variant to \"10\" in the 17th position\n uuid += (randomNumber & 0x3) | 0x8;\n }\n else {\n // Add a random hexadecimal digit to the UUID string\n uuid += randomNumber.toString(16);\n }\n // Add hyphens to the UUID string at the appropriate positions\n if (i === 7 || i === 11 || i === 15 || i === 19) {\n uuid += \"-\";\n }\n }\n return uuid;\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nvar _a$1;\n// NOTE: This is a workaround until we can use `globalThis.crypto.randomUUID` in Node.js 19+.\nlet uuidFunction = typeof ((_a$1 = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto) === null || _a$1 === void 0 ? void 0 : _a$1.randomUUID) === \"function\"\n ? globalThis.crypto.randomUUID.bind(globalThis.crypto)\n : crypto.randomUUID;\n// Not defined in earlier versions of Node.js 14\nif (!uuidFunction) {\n uuidFunction = generateUUID;\n}\n/**\n * Generated Universally Unique Identifier\n *\n * @returns RFC4122 v4 UUID.\n */\nfunction randomUUID() {\n return uuidFunction();\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nvar _a, _b, _c, _d;\n/**\n * A constant that indicates whether the environment the code is running is a Web Browser.\n */\n// eslint-disable-next-line @azure/azure-sdk/ts-no-window\nconst isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n/**\n * A constant that indicates whether the environment the code is running is a Web Worker.\n */\nconst isWebWorker = typeof self === \"object\" &&\n typeof (self === null || self === void 0 ? void 0 : self.importScripts) === \"function\" &&\n (((_a = self.constructor) === null || _a === void 0 ? void 0 : _a.name) === \"DedicatedWorkerGlobalScope\" ||\n ((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === \"ServiceWorkerGlobalScope\" ||\n ((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === \"SharedWorkerGlobalScope\");\n/**\n * A constant that indicates whether the environment the code is running is Deno.\n */\nconst isDeno = typeof Deno !== \"undefined\" &&\n typeof Deno.version !== \"undefined\" &&\n typeof Deno.version.deno !== \"undefined\";\n/**\n * A constant that indicates whether the environment the code is running is Node.JS.\n */\nconst isNode = typeof process !== \"undefined\" &&\n Boolean(process.version) &&\n Boolean((_d = process.versions) === null || _d === void 0 ? void 0 : _d.node) &&\n // Deno thought it was a good idea to spoof process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions\n !isDeno;\n/**\n * A constant that indicates whether the environment the code is running is Bun.sh.\n */\nconst isBun = typeof Bun !== \"undefined\" && typeof Bun.version !== \"undefined\";\n/**\n * A constant that indicates whether the environment the code is running is in React-Native.\n */\n// https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js\nconst isReactNative = typeof navigator !== \"undefined\" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === \"ReactNative\";\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * The helper that transforms bytes with specific character encoding into string\n * @param bytes - the uint8array bytes\n * @param format - the format we use to encode the byte\n * @returns a string of the encoded string\n */\nfunction uint8ArrayToString(bytes, format) {\n return Buffer.from(bytes).toString(format);\n}\n/**\n * The helper that transforms string to specific character encoded bytes array.\n * @param value - the string to be converted\n * @param format - the format we use to decode the value\n * @returns a uint8array\n */\nfunction stringToUint8Array(value, format) {\n return Buffer.from(value, format);\n}\n\nexports.cancelablePromiseRace = cancelablePromiseRace;\nexports.computeSha256Hash = computeSha256Hash;\nexports.computeSha256Hmac = computeSha256Hmac;\nexports.createAbortablePromise = createAbortablePromise;\nexports.delay = delay;\nexports.getErrorMessage = getErrorMessage;\nexports.getRandomIntegerInclusive = getRandomIntegerInclusive;\nexports.isBrowser = isBrowser;\nexports.isBun = isBun;\nexports.isDefined = isDefined;\nexports.isDeno = isDeno;\nexports.isError = isError;\nexports.isNode = isNode;\nexports.isObject = isObject;\nexports.isObjectWithProperties = isObjectWithProperties;\nexports.isReactNative = isReactNative;\nexports.isWebWorker = isWebWorker;\nexports.objectHasProperty = objectHasProperty;\nexports.randomUUID = randomUUID;\nexports.stringToUint8Array = stringToUint8Array;\nexports.uint8ArrayToString = uint8ArrayToString;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar os = require('os');\nvar util = require('util');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nvar util__default = /*#__PURE__*/_interopDefaultLegacy(util);\n\n// Copyright (c) Microsoft Corporation.\nfunction log(message, ...args) {\n process.stderr.write(`${util__default[\"default\"].format(message, ...args)}${os.EOL}`);\n}\n\n// Copyright (c) Microsoft Corporation.\nconst debugEnvVariable = (typeof process !== \"undefined\" && process.env && process.env.DEBUG) || undefined;\nlet enabledString;\nlet enabledNamespaces = [];\nlet skippedNamespaces = [];\nconst debuggers = [];\nif (debugEnvVariable) {\n enable(debugEnvVariable);\n}\nconst debugObj = Object.assign((namespace) => {\n return createDebugger(namespace);\n}, {\n enable,\n enabled,\n disable,\n log,\n});\nfunction enable(namespaces) {\n enabledString = namespaces;\n enabledNamespaces = [];\n skippedNamespaces = [];\n const wildcard = /\\*/g;\n const namespaceList = namespaces.split(\",\").map((ns) => ns.trim().replace(wildcard, \".*?\"));\n for (const ns of namespaceList) {\n if (ns.startsWith(\"-\")) {\n skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`));\n }\n else {\n enabledNamespaces.push(new RegExp(`^${ns}$`));\n }\n }\n for (const instance of debuggers) {\n instance.enabled = enabled(instance.namespace);\n }\n}\nfunction enabled(namespace) {\n if (namespace.endsWith(\"*\")) {\n return true;\n }\n for (const skipped of skippedNamespaces) {\n if (skipped.test(namespace)) {\n return false;\n }\n }\n for (const enabledNamespace of enabledNamespaces) {\n if (enabledNamespace.test(namespace)) {\n return true;\n }\n }\n return false;\n}\nfunction disable() {\n const result = enabledString || \"\";\n enable(\"\");\n return result;\n}\nfunction createDebugger(namespace) {\n const newDebugger = Object.assign(debug, {\n enabled: enabled(namespace),\n destroy,\n log: debugObj.log,\n namespace,\n extend,\n });\n function debug(...args) {\n if (!newDebugger.enabled) {\n return;\n }\n if (args.length > 0) {\n args[0] = `${namespace} ${args[0]}`;\n }\n newDebugger.log(...args);\n }\n debuggers.push(newDebugger);\n return newDebugger;\n}\nfunction destroy() {\n const index = debuggers.indexOf(this);\n if (index >= 0) {\n debuggers.splice(index, 1);\n return true;\n }\n return false;\n}\nfunction extend(namespace) {\n const newDebugger = createDebugger(`${this.namespace}:${namespace}`);\n newDebugger.log = this.log;\n return newDebugger;\n}\nvar debug = debugObj;\n\n// Copyright (c) Microsoft Corporation.\nconst registeredLoggers = new Set();\nconst logLevelFromEnv = (typeof process !== \"undefined\" && process.env && process.env.AZURE_LOG_LEVEL) || undefined;\nlet azureLogLevel;\n/**\n * The AzureLogger provides a mechanism for overriding where logs are output to.\n * By default, logs are sent to stderr.\n * Override the `log` method to redirect logs to another location.\n */\nconst AzureLogger = debug(\"azure\");\nAzureLogger.log = (...args) => {\n debug.log(...args);\n};\nconst AZURE_LOG_LEVELS = [\"verbose\", \"info\", \"warning\", \"error\"];\nif (logLevelFromEnv) {\n // avoid calling setLogLevel because we don't want a mis-set environment variable to crash\n if (isAzureLogLevel(logLevelFromEnv)) {\n setLogLevel(logLevelFromEnv);\n }\n else {\n console.error(`AZURE_LOG_LEVEL set to unknown log level '${logLevelFromEnv}'; logging is not enabled. Acceptable values: ${AZURE_LOG_LEVELS.join(\", \")}.`);\n }\n}\n/**\n * Immediately enables logging at the specified log level. If no level is specified, logging is disabled.\n * @param level - The log level to enable for logging.\n * Options from most verbose to least verbose are:\n * - verbose\n * - info\n * - warning\n * - error\n */\nfunction setLogLevel(level) {\n if (level && !isAzureLogLevel(level)) {\n throw new Error(`Unknown log level '${level}'. Acceptable values: ${AZURE_LOG_LEVELS.join(\",\")}`);\n }\n azureLogLevel = level;\n const enabledNamespaces = [];\n for (const logger of registeredLoggers) {\n if (shouldEnable(logger)) {\n enabledNamespaces.push(logger.namespace);\n }\n }\n debug.enable(enabledNamespaces.join(\",\"));\n}\n/**\n * Retrieves the currently specified log level.\n */\nfunction getLogLevel() {\n return azureLogLevel;\n}\nconst levelMap = {\n verbose: 400,\n info: 300,\n warning: 200,\n error: 100,\n};\n/**\n * Creates a logger for use by the Azure SDKs that inherits from `AzureLogger`.\n * @param namespace - The name of the SDK package.\n * @hidden\n */\nfunction createClientLogger(namespace) {\n const clientRootLogger = AzureLogger.extend(namespace);\n patchLogMethod(AzureLogger, clientRootLogger);\n return {\n error: createLogger(clientRootLogger, \"error\"),\n warning: createLogger(clientRootLogger, \"warning\"),\n info: createLogger(clientRootLogger, \"info\"),\n verbose: createLogger(clientRootLogger, \"verbose\"),\n };\n}\nfunction patchLogMethod(parent, child) {\n child.log = (...args) => {\n parent.log(...args);\n };\n}\nfunction createLogger(parent, level) {\n const logger = Object.assign(parent.extend(level), {\n level,\n });\n patchLogMethod(parent, logger);\n if (shouldEnable(logger)) {\n const enabledNamespaces = debug.disable();\n debug.enable(enabledNamespaces + \",\" + logger.namespace);\n }\n registeredLoggers.add(logger);\n return logger;\n}\nfunction shouldEnable(logger) {\n return Boolean(azureLogLevel && levelMap[logger.level] <= levelMap[azureLogLevel]);\n}\nfunction isAzureLogLevel(logLevel) {\n return AZURE_LOG_LEVELS.includes(logLevel);\n}\n\nexports.AzureLogger = AzureLogger;\nexports.createClientLogger = createClientLogger;\nexports.getLogLevel = getLogLevel;\nexports.setLogLevel = setLogLevel;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar coreHttp = require('@azure/core-http');\nvar tslib = require('tslib');\nvar coreTracing = require('@azure/core-tracing');\nvar logger$1 = require('@azure/logger');\nvar abortController = require('@azure/abort-controller');\nvar os = require('os');\nvar crypto = require('crypto');\nvar stream = require('stream');\nrequire('@azure/core-paging');\nvar coreLro = require('@azure/core-lro');\nvar events = require('events');\nvar fs = require('fs');\nvar util = require('util');\n\nfunction _interopNamespace(e) {\n if (e && e.__esModule) return e;\n var n = Object.create(null);\n if (e) {\n Object.keys(e).forEach(function (k) {\n if (k !== 'default') {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function () { return e[k]; }\n });\n }\n });\n }\n n[\"default\"] = e;\n return Object.freeze(n);\n}\n\nvar coreHttp__namespace = /*#__PURE__*/_interopNamespace(coreHttp);\nvar os__namespace = /*#__PURE__*/_interopNamespace(os);\nvar fs__namespace = /*#__PURE__*/_interopNamespace(fs);\nvar util__namespace = /*#__PURE__*/_interopNamespace(util);\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nconst BlobServiceProperties = {\n serializedName: \"BlobServiceProperties\",\n xmlName: \"StorageServiceProperties\",\n type: {\n name: \"Composite\",\n className: \"BlobServiceProperties\",\n modelProperties: {\n blobAnalyticsLogging: {\n serializedName: \"Logging\",\n xmlName: \"Logging\",\n type: {\n name: \"Composite\",\n className: \"Logging\"\n }\n },\n hourMetrics: {\n serializedName: \"HourMetrics\",\n xmlName: \"HourMetrics\",\n type: {\n name: \"Composite\",\n className: \"Metrics\"\n }\n },\n minuteMetrics: {\n serializedName: \"MinuteMetrics\",\n xmlName: \"MinuteMetrics\",\n type: {\n name: \"Composite\",\n className: \"Metrics\"\n }\n },\n cors: {\n serializedName: \"Cors\",\n xmlName: \"Cors\",\n xmlIsWrapped: true,\n xmlElementName: \"CorsRule\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CorsRule\"\n }\n }\n }\n },\n defaultServiceVersion: {\n serializedName: \"DefaultServiceVersion\",\n xmlName: \"DefaultServiceVersion\",\n type: {\n name: \"String\"\n }\n },\n deleteRetentionPolicy: {\n serializedName: \"DeleteRetentionPolicy\",\n xmlName: \"DeleteRetentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n },\n staticWebsite: {\n serializedName: \"StaticWebsite\",\n xmlName: \"StaticWebsite\",\n type: {\n name: \"Composite\",\n className: \"StaticWebsite\"\n }\n }\n }\n }\n};\nconst Logging = {\n serializedName: \"Logging\",\n type: {\n name: \"Composite\",\n className: \"Logging\",\n modelProperties: {\n version: {\n serializedName: \"Version\",\n required: true,\n xmlName: \"Version\",\n type: {\n name: \"String\"\n }\n },\n deleteProperty: {\n serializedName: \"Delete\",\n required: true,\n xmlName: \"Delete\",\n type: {\n name: \"Boolean\"\n }\n },\n read: {\n serializedName: \"Read\",\n required: true,\n xmlName: \"Read\",\n type: {\n name: \"Boolean\"\n }\n },\n write: {\n serializedName: \"Write\",\n required: true,\n xmlName: \"Write\",\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"RetentionPolicy\",\n xmlName: \"RetentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\nconst RetentionPolicy = {\n serializedName: \"RetentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\",\n modelProperties: {\n enabled: {\n serializedName: \"Enabled\",\n required: true,\n xmlName: \"Enabled\",\n type: {\n name: \"Boolean\"\n }\n },\n days: {\n constraints: {\n InclusiveMinimum: 1\n },\n serializedName: \"Days\",\n xmlName: \"Days\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\nconst Metrics = {\n serializedName: \"Metrics\",\n type: {\n name: \"Composite\",\n className: \"Metrics\",\n modelProperties: {\n version: {\n serializedName: \"Version\",\n xmlName: \"Version\",\n type: {\n name: \"String\"\n }\n },\n enabled: {\n serializedName: \"Enabled\",\n required: true,\n xmlName: \"Enabled\",\n type: {\n name: \"Boolean\"\n }\n },\n includeAPIs: {\n serializedName: \"IncludeAPIs\",\n xmlName: \"IncludeAPIs\",\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"RetentionPolicy\",\n xmlName: \"RetentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\nconst CorsRule = {\n serializedName: \"CorsRule\",\n type: {\n name: \"Composite\",\n className: \"CorsRule\",\n modelProperties: {\n allowedOrigins: {\n serializedName: \"AllowedOrigins\",\n required: true,\n xmlName: \"AllowedOrigins\",\n type: {\n name: \"String\"\n }\n },\n allowedMethods: {\n serializedName: \"AllowedMethods\",\n required: true,\n xmlName: \"AllowedMethods\",\n type: {\n name: \"String\"\n }\n },\n allowedHeaders: {\n serializedName: \"AllowedHeaders\",\n required: true,\n xmlName: \"AllowedHeaders\",\n type: {\n name: \"String\"\n }\n },\n exposedHeaders: {\n serializedName: \"ExposedHeaders\",\n required: true,\n xmlName: \"ExposedHeaders\",\n type: {\n name: \"String\"\n }\n },\n maxAgeInSeconds: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"MaxAgeInSeconds\",\n required: true,\n xmlName: \"MaxAgeInSeconds\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\nconst StaticWebsite = {\n serializedName: \"StaticWebsite\",\n type: {\n name: \"Composite\",\n className: \"StaticWebsite\",\n modelProperties: {\n enabled: {\n serializedName: \"Enabled\",\n required: true,\n xmlName: \"Enabled\",\n type: {\n name: \"Boolean\"\n }\n },\n indexDocument: {\n serializedName: \"IndexDocument\",\n xmlName: \"IndexDocument\",\n type: {\n name: \"String\"\n }\n },\n errorDocument404Path: {\n serializedName: \"ErrorDocument404Path\",\n xmlName: \"ErrorDocument404Path\",\n type: {\n name: \"String\"\n }\n },\n defaultIndexDocumentPath: {\n serializedName: \"DefaultIndexDocumentPath\",\n xmlName: \"DefaultIndexDocumentPath\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst StorageError = {\n serializedName: \"StorageError\",\n type: {\n name: \"Composite\",\n className: \"StorageError\",\n modelProperties: {\n message: {\n serializedName: \"Message\",\n xmlName: \"Message\",\n type: {\n name: \"String\"\n }\n },\n code: {\n serializedName: \"Code\",\n xmlName: \"Code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobServiceStatistics = {\n serializedName: \"BlobServiceStatistics\",\n xmlName: \"StorageServiceStats\",\n type: {\n name: \"Composite\",\n className: \"BlobServiceStatistics\",\n modelProperties: {\n geoReplication: {\n serializedName: \"GeoReplication\",\n xmlName: \"GeoReplication\",\n type: {\n name: \"Composite\",\n className: \"GeoReplication\"\n }\n }\n }\n }\n};\nconst GeoReplication = {\n serializedName: \"GeoReplication\",\n type: {\n name: \"Composite\",\n className: \"GeoReplication\",\n modelProperties: {\n status: {\n serializedName: \"Status\",\n required: true,\n xmlName: \"Status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"live\", \"bootstrap\", \"unavailable\"]\n }\n },\n lastSyncOn: {\n serializedName: \"LastSyncTime\",\n required: true,\n xmlName: \"LastSyncTime\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst ListContainersSegmentResponse = {\n serializedName: \"ListContainersSegmentResponse\",\n xmlName: \"EnumerationResults\",\n type: {\n name: \"Composite\",\n className: \"ListContainersSegmentResponse\",\n modelProperties: {\n serviceEndpoint: {\n serializedName: \"ServiceEndpoint\",\n required: true,\n xmlName: \"ServiceEndpoint\",\n xmlIsAttribute: true,\n type: {\n name: \"String\"\n }\n },\n prefix: {\n serializedName: \"Prefix\",\n xmlName: \"Prefix\",\n type: {\n name: \"String\"\n }\n },\n marker: {\n serializedName: \"Marker\",\n xmlName: \"Marker\",\n type: {\n name: \"String\"\n }\n },\n maxPageSize: {\n serializedName: \"MaxResults\",\n xmlName: \"MaxResults\",\n type: {\n name: \"Number\"\n }\n },\n containerItems: {\n serializedName: \"ContainerItems\",\n required: true,\n xmlName: \"Containers\",\n xmlIsWrapped: true,\n xmlElementName: \"Container\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ContainerItem\"\n }\n }\n }\n },\n continuationToken: {\n serializedName: \"NextMarker\",\n xmlName: \"NextMarker\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerItem = {\n serializedName: \"ContainerItem\",\n xmlName: \"Container\",\n type: {\n name: \"Composite\",\n className: \"ContainerItem\",\n modelProperties: {\n name: {\n serializedName: \"Name\",\n required: true,\n xmlName: \"Name\",\n type: {\n name: \"String\"\n }\n },\n deleted: {\n serializedName: \"Deleted\",\n xmlName: \"Deleted\",\n type: {\n name: \"Boolean\"\n }\n },\n version: {\n serializedName: \"Version\",\n xmlName: \"Version\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"Properties\",\n xmlName: \"Properties\",\n type: {\n name: \"Composite\",\n className: \"ContainerProperties\"\n }\n },\n metadata: {\n serializedName: \"Metadata\",\n xmlName: \"Metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\nconst ContainerProperties = {\n serializedName: \"ContainerProperties\",\n type: {\n name: \"Composite\",\n className: \"ContainerProperties\",\n modelProperties: {\n lastModified: {\n serializedName: \"Last-Modified\",\n required: true,\n xmlName: \"Last-Modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n etag: {\n serializedName: \"Etag\",\n required: true,\n xmlName: \"Etag\",\n type: {\n name: \"String\"\n }\n },\n leaseStatus: {\n serializedName: \"LeaseStatus\",\n xmlName: \"LeaseStatus\",\n type: {\n name: \"Enum\",\n allowedValues: [\"locked\", \"unlocked\"]\n }\n },\n leaseState: {\n serializedName: \"LeaseState\",\n xmlName: \"LeaseState\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"available\",\n \"leased\",\n \"expired\",\n \"breaking\",\n \"broken\"\n ]\n }\n },\n leaseDuration: {\n serializedName: \"LeaseDuration\",\n xmlName: \"LeaseDuration\",\n type: {\n name: \"Enum\",\n allowedValues: [\"infinite\", \"fixed\"]\n }\n },\n publicAccess: {\n serializedName: \"PublicAccess\",\n xmlName: \"PublicAccess\",\n type: {\n name: \"Enum\",\n allowedValues: [\"container\", \"blob\"]\n }\n },\n hasImmutabilityPolicy: {\n serializedName: \"HasImmutabilityPolicy\",\n xmlName: \"HasImmutabilityPolicy\",\n type: {\n name: \"Boolean\"\n }\n },\n hasLegalHold: {\n serializedName: \"HasLegalHold\",\n xmlName: \"HasLegalHold\",\n type: {\n name: \"Boolean\"\n }\n },\n defaultEncryptionScope: {\n serializedName: \"DefaultEncryptionScope\",\n xmlName: \"DefaultEncryptionScope\",\n type: {\n name: \"String\"\n }\n },\n preventEncryptionScopeOverride: {\n serializedName: \"DenyEncryptionScopeOverride\",\n xmlName: \"DenyEncryptionScopeOverride\",\n type: {\n name: \"Boolean\"\n }\n },\n deletedOn: {\n serializedName: \"DeletedTime\",\n xmlName: \"DeletedTime\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n remainingRetentionDays: {\n serializedName: \"RemainingRetentionDays\",\n xmlName: \"RemainingRetentionDays\",\n type: {\n name: \"Number\"\n }\n },\n isImmutableStorageWithVersioningEnabled: {\n serializedName: \"ImmutableStorageWithVersioningEnabled\",\n xmlName: \"ImmutableStorageWithVersioningEnabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\nconst KeyInfo = {\n serializedName: \"KeyInfo\",\n type: {\n name: \"Composite\",\n className: \"KeyInfo\",\n modelProperties: {\n startsOn: {\n serializedName: \"Start\",\n required: true,\n xmlName: \"Start\",\n type: {\n name: \"String\"\n }\n },\n expiresOn: {\n serializedName: \"Expiry\",\n required: true,\n xmlName: \"Expiry\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst UserDelegationKey = {\n serializedName: \"UserDelegationKey\",\n type: {\n name: \"Composite\",\n className: \"UserDelegationKey\",\n modelProperties: {\n signedObjectId: {\n serializedName: \"SignedOid\",\n required: true,\n xmlName: \"SignedOid\",\n type: {\n name: \"String\"\n }\n },\n signedTenantId: {\n serializedName: \"SignedTid\",\n required: true,\n xmlName: \"SignedTid\",\n type: {\n name: \"String\"\n }\n },\n signedStartsOn: {\n serializedName: \"SignedStart\",\n required: true,\n xmlName: \"SignedStart\",\n type: {\n name: \"String\"\n }\n },\n signedExpiresOn: {\n serializedName: \"SignedExpiry\",\n required: true,\n xmlName: \"SignedExpiry\",\n type: {\n name: \"String\"\n }\n },\n signedService: {\n serializedName: \"SignedService\",\n required: true,\n xmlName: \"SignedService\",\n type: {\n name: \"String\"\n }\n },\n signedVersion: {\n serializedName: \"SignedVersion\",\n required: true,\n xmlName: \"SignedVersion\",\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"Value\",\n required: true,\n xmlName: \"Value\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst FilterBlobSegment = {\n serializedName: \"FilterBlobSegment\",\n xmlName: \"EnumerationResults\",\n type: {\n name: \"Composite\",\n className: \"FilterBlobSegment\",\n modelProperties: {\n serviceEndpoint: {\n serializedName: \"ServiceEndpoint\",\n required: true,\n xmlName: \"ServiceEndpoint\",\n xmlIsAttribute: true,\n type: {\n name: \"String\"\n }\n },\n where: {\n serializedName: \"Where\",\n required: true,\n xmlName: \"Where\",\n type: {\n name: \"String\"\n }\n },\n blobs: {\n serializedName: \"Blobs\",\n required: true,\n xmlName: \"Blobs\",\n xmlIsWrapped: true,\n xmlElementName: \"Blob\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"FilterBlobItem\"\n }\n }\n }\n },\n continuationToken: {\n serializedName: \"NextMarker\",\n xmlName: \"NextMarker\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst FilterBlobItem = {\n serializedName: \"FilterBlobItem\",\n xmlName: \"Blob\",\n type: {\n name: \"Composite\",\n className: \"FilterBlobItem\",\n modelProperties: {\n name: {\n serializedName: \"Name\",\n required: true,\n xmlName: \"Name\",\n type: {\n name: \"String\"\n }\n },\n containerName: {\n serializedName: \"ContainerName\",\n required: true,\n xmlName: \"ContainerName\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"Tags\",\n xmlName: \"Tags\",\n type: {\n name: \"Composite\",\n className: \"BlobTags\"\n }\n }\n }\n }\n};\nconst BlobTags = {\n serializedName: \"BlobTags\",\n xmlName: \"Tags\",\n type: {\n name: \"Composite\",\n className: \"BlobTags\",\n modelProperties: {\n blobTagSet: {\n serializedName: \"BlobTagSet\",\n required: true,\n xmlName: \"TagSet\",\n xmlIsWrapped: true,\n xmlElementName: \"Tag\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"BlobTag\"\n }\n }\n }\n }\n }\n }\n};\nconst BlobTag = {\n serializedName: \"BlobTag\",\n xmlName: \"Tag\",\n type: {\n name: \"Composite\",\n className: \"BlobTag\",\n modelProperties: {\n key: {\n serializedName: \"Key\",\n required: true,\n xmlName: \"Key\",\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"Value\",\n required: true,\n xmlName: \"Value\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst SignedIdentifier = {\n serializedName: \"SignedIdentifier\",\n xmlName: \"SignedIdentifier\",\n type: {\n name: \"Composite\",\n className: \"SignedIdentifier\",\n modelProperties: {\n id: {\n serializedName: \"Id\",\n required: true,\n xmlName: \"Id\",\n type: {\n name: \"String\"\n }\n },\n accessPolicy: {\n serializedName: \"AccessPolicy\",\n xmlName: \"AccessPolicy\",\n type: {\n name: \"Composite\",\n className: \"AccessPolicy\"\n }\n }\n }\n }\n};\nconst AccessPolicy = {\n serializedName: \"AccessPolicy\",\n type: {\n name: \"Composite\",\n className: \"AccessPolicy\",\n modelProperties: {\n startsOn: {\n serializedName: \"Start\",\n xmlName: \"Start\",\n type: {\n name: \"String\"\n }\n },\n expiresOn: {\n serializedName: \"Expiry\",\n xmlName: \"Expiry\",\n type: {\n name: \"String\"\n }\n },\n permissions: {\n serializedName: \"Permission\",\n xmlName: \"Permission\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ListBlobsFlatSegmentResponse = {\n serializedName: \"ListBlobsFlatSegmentResponse\",\n xmlName: \"EnumerationResults\",\n type: {\n name: \"Composite\",\n className: \"ListBlobsFlatSegmentResponse\",\n modelProperties: {\n serviceEndpoint: {\n serializedName: \"ServiceEndpoint\",\n required: true,\n xmlName: \"ServiceEndpoint\",\n xmlIsAttribute: true,\n type: {\n name: \"String\"\n }\n },\n containerName: {\n serializedName: \"ContainerName\",\n required: true,\n xmlName: \"ContainerName\",\n xmlIsAttribute: true,\n type: {\n name: \"String\"\n }\n },\n prefix: {\n serializedName: \"Prefix\",\n xmlName: \"Prefix\",\n type: {\n name: \"String\"\n }\n },\n marker: {\n serializedName: \"Marker\",\n xmlName: \"Marker\",\n type: {\n name: \"String\"\n }\n },\n maxPageSize: {\n serializedName: \"MaxResults\",\n xmlName: \"MaxResults\",\n type: {\n name: \"Number\"\n }\n },\n segment: {\n serializedName: \"Segment\",\n xmlName: \"Blobs\",\n type: {\n name: \"Composite\",\n className: \"BlobFlatListSegment\"\n }\n },\n continuationToken: {\n serializedName: \"NextMarker\",\n xmlName: \"NextMarker\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobFlatListSegment = {\n serializedName: \"BlobFlatListSegment\",\n xmlName: \"Blobs\",\n type: {\n name: \"Composite\",\n className: \"BlobFlatListSegment\",\n modelProperties: {\n blobItems: {\n serializedName: \"BlobItems\",\n required: true,\n xmlName: \"BlobItems\",\n xmlElementName: \"Blob\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"BlobItemInternal\"\n }\n }\n }\n }\n }\n }\n};\nconst BlobItemInternal = {\n serializedName: \"BlobItemInternal\",\n xmlName: \"Blob\",\n type: {\n name: \"Composite\",\n className: \"BlobItemInternal\",\n modelProperties: {\n name: {\n serializedName: \"Name\",\n xmlName: \"Name\",\n type: {\n name: \"Composite\",\n className: \"BlobName\"\n }\n },\n deleted: {\n serializedName: \"Deleted\",\n required: true,\n xmlName: \"Deleted\",\n type: {\n name: \"Boolean\"\n }\n },\n snapshot: {\n serializedName: \"Snapshot\",\n required: true,\n xmlName: \"Snapshot\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"VersionId\",\n xmlName: \"VersionId\",\n type: {\n name: \"String\"\n }\n },\n isCurrentVersion: {\n serializedName: \"IsCurrentVersion\",\n xmlName: \"IsCurrentVersion\",\n type: {\n name: \"Boolean\"\n }\n },\n properties: {\n serializedName: \"Properties\",\n xmlName: \"Properties\",\n type: {\n name: \"Composite\",\n className: \"BlobPropertiesInternal\"\n }\n },\n metadata: {\n serializedName: \"Metadata\",\n xmlName: \"Metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n blobTags: {\n serializedName: \"BlobTags\",\n xmlName: \"Tags\",\n type: {\n name: \"Composite\",\n className: \"BlobTags\"\n }\n },\n objectReplicationMetadata: {\n serializedName: \"ObjectReplicationMetadata\",\n xmlName: \"OrMetadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n hasVersionsOnly: {\n serializedName: \"HasVersionsOnly\",\n xmlName: \"HasVersionsOnly\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\nconst BlobName = {\n serializedName: \"BlobName\",\n type: {\n name: \"Composite\",\n className: \"BlobName\",\n modelProperties: {\n encoded: {\n serializedName: \"Encoded\",\n xmlName: \"Encoded\",\n xmlIsAttribute: true,\n type: {\n name: \"Boolean\"\n }\n },\n content: {\n serializedName: \"content\",\n xmlName: \"content\",\n xmlIsMsText: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobPropertiesInternal = {\n serializedName: \"BlobPropertiesInternal\",\n xmlName: \"Properties\",\n type: {\n name: \"Composite\",\n className: \"BlobPropertiesInternal\",\n modelProperties: {\n createdOn: {\n serializedName: \"Creation-Time\",\n xmlName: \"Creation-Time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n lastModified: {\n serializedName: \"Last-Modified\",\n required: true,\n xmlName: \"Last-Modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n etag: {\n serializedName: \"Etag\",\n required: true,\n xmlName: \"Etag\",\n type: {\n name: \"String\"\n }\n },\n contentLength: {\n serializedName: \"Content-Length\",\n xmlName: \"Content-Length\",\n type: {\n name: \"Number\"\n }\n },\n contentType: {\n serializedName: \"Content-Type\",\n xmlName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n },\n contentEncoding: {\n serializedName: \"Content-Encoding\",\n xmlName: \"Content-Encoding\",\n type: {\n name: \"String\"\n }\n },\n contentLanguage: {\n serializedName: \"Content-Language\",\n xmlName: \"Content-Language\",\n type: {\n name: \"String\"\n }\n },\n contentMD5: {\n serializedName: \"Content-MD5\",\n xmlName: \"Content-MD5\",\n type: {\n name: \"ByteArray\"\n }\n },\n contentDisposition: {\n serializedName: \"Content-Disposition\",\n xmlName: \"Content-Disposition\",\n type: {\n name: \"String\"\n }\n },\n cacheControl: {\n serializedName: \"Cache-Control\",\n xmlName: \"Cache-Control\",\n type: {\n name: \"String\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n blobType: {\n serializedName: \"BlobType\",\n xmlName: \"BlobType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"BlockBlob\", \"PageBlob\", \"AppendBlob\"]\n }\n },\n leaseStatus: {\n serializedName: \"LeaseStatus\",\n xmlName: \"LeaseStatus\",\n type: {\n name: \"Enum\",\n allowedValues: [\"locked\", \"unlocked\"]\n }\n },\n leaseState: {\n serializedName: \"LeaseState\",\n xmlName: \"LeaseState\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"available\",\n \"leased\",\n \"expired\",\n \"breaking\",\n \"broken\"\n ]\n }\n },\n leaseDuration: {\n serializedName: \"LeaseDuration\",\n xmlName: \"LeaseDuration\",\n type: {\n name: \"Enum\",\n allowedValues: [\"infinite\", \"fixed\"]\n }\n },\n copyId: {\n serializedName: \"CopyId\",\n xmlName: \"CopyId\",\n type: {\n name: \"String\"\n }\n },\n copyStatus: {\n serializedName: \"CopyStatus\",\n xmlName: \"CopyStatus\",\n type: {\n name: \"Enum\",\n allowedValues: [\"pending\", \"success\", \"aborted\", \"failed\"]\n }\n },\n copySource: {\n serializedName: \"CopySource\",\n xmlName: \"CopySource\",\n type: {\n name: \"String\"\n }\n },\n copyProgress: {\n serializedName: \"CopyProgress\",\n xmlName: \"CopyProgress\",\n type: {\n name: \"String\"\n }\n },\n copyCompletedOn: {\n serializedName: \"CopyCompletionTime\",\n xmlName: \"CopyCompletionTime\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n copyStatusDescription: {\n serializedName: \"CopyStatusDescription\",\n xmlName: \"CopyStatusDescription\",\n type: {\n name: \"String\"\n }\n },\n serverEncrypted: {\n serializedName: \"ServerEncrypted\",\n xmlName: \"ServerEncrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n incrementalCopy: {\n serializedName: \"IncrementalCopy\",\n xmlName: \"IncrementalCopy\",\n type: {\n name: \"Boolean\"\n }\n },\n destinationSnapshot: {\n serializedName: \"DestinationSnapshot\",\n xmlName: \"DestinationSnapshot\",\n type: {\n name: \"String\"\n }\n },\n deletedOn: {\n serializedName: \"DeletedTime\",\n xmlName: \"DeletedTime\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n remainingRetentionDays: {\n serializedName: \"RemainingRetentionDays\",\n xmlName: \"RemainingRetentionDays\",\n type: {\n name: \"Number\"\n }\n },\n accessTier: {\n serializedName: \"AccessTier\",\n xmlName: \"AccessTier\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"P4\",\n \"P6\",\n \"P10\",\n \"P15\",\n \"P20\",\n \"P30\",\n \"P40\",\n \"P50\",\n \"P60\",\n \"P70\",\n \"P80\",\n \"Hot\",\n \"Cool\",\n \"Archive\",\n \"Cold\"\n ]\n }\n },\n accessTierInferred: {\n serializedName: \"AccessTierInferred\",\n xmlName: \"AccessTierInferred\",\n type: {\n name: \"Boolean\"\n }\n },\n archiveStatus: {\n serializedName: \"ArchiveStatus\",\n xmlName: \"ArchiveStatus\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"rehydrate-pending-to-hot\",\n \"rehydrate-pending-to-cool\",\n \"rehydrate-pending-to-cold\"\n ]\n }\n },\n customerProvidedKeySha256: {\n serializedName: \"CustomerProvidedKeySha256\",\n xmlName: \"CustomerProvidedKeySha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"EncryptionScope\",\n xmlName: \"EncryptionScope\",\n type: {\n name: \"String\"\n }\n },\n accessTierChangedOn: {\n serializedName: \"AccessTierChangeTime\",\n xmlName: \"AccessTierChangeTime\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n tagCount: {\n serializedName: \"TagCount\",\n xmlName: \"TagCount\",\n type: {\n name: \"Number\"\n }\n },\n expiresOn: {\n serializedName: \"Expiry-Time\",\n xmlName: \"Expiry-Time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isSealed: {\n serializedName: \"Sealed\",\n xmlName: \"Sealed\",\n type: {\n name: \"Boolean\"\n }\n },\n rehydratePriority: {\n serializedName: \"RehydratePriority\",\n xmlName: \"RehydratePriority\",\n type: {\n name: \"Enum\",\n allowedValues: [\"High\", \"Standard\"]\n }\n },\n lastAccessedOn: {\n serializedName: \"LastAccessTime\",\n xmlName: \"LastAccessTime\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyExpiresOn: {\n serializedName: \"ImmutabilityPolicyUntilDate\",\n xmlName: \"ImmutabilityPolicyUntilDate\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyMode: {\n serializedName: \"ImmutabilityPolicyMode\",\n xmlName: \"ImmutabilityPolicyMode\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Mutable\", \"Unlocked\", \"Locked\"]\n }\n },\n legalHold: {\n serializedName: \"LegalHold\",\n xmlName: \"LegalHold\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\nconst ListBlobsHierarchySegmentResponse = {\n serializedName: \"ListBlobsHierarchySegmentResponse\",\n xmlName: \"EnumerationResults\",\n type: {\n name: \"Composite\",\n className: \"ListBlobsHierarchySegmentResponse\",\n modelProperties: {\n serviceEndpoint: {\n serializedName: \"ServiceEndpoint\",\n required: true,\n xmlName: \"ServiceEndpoint\",\n xmlIsAttribute: true,\n type: {\n name: \"String\"\n }\n },\n containerName: {\n serializedName: \"ContainerName\",\n required: true,\n xmlName: \"ContainerName\",\n xmlIsAttribute: true,\n type: {\n name: \"String\"\n }\n },\n prefix: {\n serializedName: \"Prefix\",\n xmlName: \"Prefix\",\n type: {\n name: \"String\"\n }\n },\n marker: {\n serializedName: \"Marker\",\n xmlName: \"Marker\",\n type: {\n name: \"String\"\n }\n },\n maxPageSize: {\n serializedName: \"MaxResults\",\n xmlName: \"MaxResults\",\n type: {\n name: \"Number\"\n }\n },\n delimiter: {\n serializedName: \"Delimiter\",\n xmlName: \"Delimiter\",\n type: {\n name: \"String\"\n }\n },\n segment: {\n serializedName: \"Segment\",\n xmlName: \"Blobs\",\n type: {\n name: \"Composite\",\n className: \"BlobHierarchyListSegment\"\n }\n },\n continuationToken: {\n serializedName: \"NextMarker\",\n xmlName: \"NextMarker\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobHierarchyListSegment = {\n serializedName: \"BlobHierarchyListSegment\",\n xmlName: \"Blobs\",\n type: {\n name: \"Composite\",\n className: \"BlobHierarchyListSegment\",\n modelProperties: {\n blobPrefixes: {\n serializedName: \"BlobPrefixes\",\n xmlName: \"BlobPrefixes\",\n xmlElementName: \"BlobPrefix\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"BlobPrefix\"\n }\n }\n }\n },\n blobItems: {\n serializedName: \"BlobItems\",\n required: true,\n xmlName: \"BlobItems\",\n xmlElementName: \"Blob\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"BlobItemInternal\"\n }\n }\n }\n }\n }\n }\n};\nconst BlobPrefix = {\n serializedName: \"BlobPrefix\",\n type: {\n name: \"Composite\",\n className: \"BlobPrefix\",\n modelProperties: {\n name: {\n serializedName: \"Name\",\n xmlName: \"Name\",\n type: {\n name: \"Composite\",\n className: \"BlobName\"\n }\n }\n }\n }\n};\nconst BlockLookupList = {\n serializedName: \"BlockLookupList\",\n xmlName: \"BlockList\",\n type: {\n name: \"Composite\",\n className: \"BlockLookupList\",\n modelProperties: {\n committed: {\n serializedName: \"Committed\",\n xmlName: \"Committed\",\n xmlElementName: \"Committed\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n uncommitted: {\n serializedName: \"Uncommitted\",\n xmlName: \"Uncommitted\",\n xmlElementName: \"Uncommitted\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n latest: {\n serializedName: \"Latest\",\n xmlName: \"Latest\",\n xmlElementName: \"Latest\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\nconst BlockList = {\n serializedName: \"BlockList\",\n type: {\n name: \"Composite\",\n className: \"BlockList\",\n modelProperties: {\n committedBlocks: {\n serializedName: \"CommittedBlocks\",\n xmlName: \"CommittedBlocks\",\n xmlIsWrapped: true,\n xmlElementName: \"Block\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Block\"\n }\n }\n }\n },\n uncommittedBlocks: {\n serializedName: \"UncommittedBlocks\",\n xmlName: \"UncommittedBlocks\",\n xmlIsWrapped: true,\n xmlElementName: \"Block\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Block\"\n }\n }\n }\n }\n }\n }\n};\nconst Block = {\n serializedName: \"Block\",\n type: {\n name: \"Composite\",\n className: \"Block\",\n modelProperties: {\n name: {\n serializedName: \"Name\",\n required: true,\n xmlName: \"Name\",\n type: {\n name: \"String\"\n }\n },\n size: {\n serializedName: \"Size\",\n required: true,\n xmlName: \"Size\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\nconst PageList = {\n serializedName: \"PageList\",\n type: {\n name: \"Composite\",\n className: \"PageList\",\n modelProperties: {\n pageRange: {\n serializedName: \"PageRange\",\n xmlName: \"PageRange\",\n xmlElementName: \"PageRange\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"PageRange\"\n }\n }\n }\n },\n clearRange: {\n serializedName: \"ClearRange\",\n xmlName: \"ClearRange\",\n xmlElementName: \"ClearRange\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ClearRange\"\n }\n }\n }\n },\n continuationToken: {\n serializedName: \"NextMarker\",\n xmlName: \"NextMarker\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageRange = {\n serializedName: \"PageRange\",\n xmlName: \"PageRange\",\n type: {\n name: \"Composite\",\n className: \"PageRange\",\n modelProperties: {\n start: {\n serializedName: \"Start\",\n required: true,\n xmlName: \"Start\",\n type: {\n name: \"Number\"\n }\n },\n end: {\n serializedName: \"End\",\n required: true,\n xmlName: \"End\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\nconst ClearRange = {\n serializedName: \"ClearRange\",\n xmlName: \"ClearRange\",\n type: {\n name: \"Composite\",\n className: \"ClearRange\",\n modelProperties: {\n start: {\n serializedName: \"Start\",\n required: true,\n xmlName: \"Start\",\n type: {\n name: \"Number\"\n }\n },\n end: {\n serializedName: \"End\",\n required: true,\n xmlName: \"End\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\nconst QueryRequest = {\n serializedName: \"QueryRequest\",\n xmlName: \"QueryRequest\",\n type: {\n name: \"Composite\",\n className: \"QueryRequest\",\n modelProperties: {\n queryType: {\n serializedName: \"QueryType\",\n required: true,\n xmlName: \"QueryType\",\n type: {\n name: \"String\"\n }\n },\n expression: {\n serializedName: \"Expression\",\n required: true,\n xmlName: \"Expression\",\n type: {\n name: \"String\"\n }\n },\n inputSerialization: {\n serializedName: \"InputSerialization\",\n xmlName: \"InputSerialization\",\n type: {\n name: \"Composite\",\n className: \"QuerySerialization\"\n }\n },\n outputSerialization: {\n serializedName: \"OutputSerialization\",\n xmlName: \"OutputSerialization\",\n type: {\n name: \"Composite\",\n className: \"QuerySerialization\"\n }\n }\n }\n }\n};\nconst QuerySerialization = {\n serializedName: \"QuerySerialization\",\n type: {\n name: \"Composite\",\n className: \"QuerySerialization\",\n modelProperties: {\n format: {\n serializedName: \"Format\",\n xmlName: \"Format\",\n type: {\n name: \"Composite\",\n className: \"QueryFormat\"\n }\n }\n }\n }\n};\nconst QueryFormat = {\n serializedName: \"QueryFormat\",\n type: {\n name: \"Composite\",\n className: \"QueryFormat\",\n modelProperties: {\n type: {\n serializedName: \"Type\",\n required: true,\n xmlName: \"Type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"delimited\", \"json\", \"arrow\", \"parquet\"]\n }\n },\n delimitedTextConfiguration: {\n serializedName: \"DelimitedTextConfiguration\",\n xmlName: \"DelimitedTextConfiguration\",\n type: {\n name: \"Composite\",\n className: \"DelimitedTextConfiguration\"\n }\n },\n jsonTextConfiguration: {\n serializedName: \"JsonTextConfiguration\",\n xmlName: \"JsonTextConfiguration\",\n type: {\n name: \"Composite\",\n className: \"JsonTextConfiguration\"\n }\n },\n arrowConfiguration: {\n serializedName: \"ArrowConfiguration\",\n xmlName: \"ArrowConfiguration\",\n type: {\n name: \"Composite\",\n className: \"ArrowConfiguration\"\n }\n },\n parquetTextConfiguration: {\n serializedName: \"ParquetTextConfiguration\",\n xmlName: \"ParquetTextConfiguration\",\n type: {\n name: \"any\"\n }\n }\n }\n }\n};\nconst DelimitedTextConfiguration = {\n serializedName: \"DelimitedTextConfiguration\",\n xmlName: \"DelimitedTextConfiguration\",\n type: {\n name: \"Composite\",\n className: \"DelimitedTextConfiguration\",\n modelProperties: {\n columnSeparator: {\n serializedName: \"ColumnSeparator\",\n xmlName: \"ColumnSeparator\",\n type: {\n name: \"String\"\n }\n },\n fieldQuote: {\n serializedName: \"FieldQuote\",\n xmlName: \"FieldQuote\",\n type: {\n name: \"String\"\n }\n },\n recordSeparator: {\n serializedName: \"RecordSeparator\",\n xmlName: \"RecordSeparator\",\n type: {\n name: \"String\"\n }\n },\n escapeChar: {\n serializedName: \"EscapeChar\",\n xmlName: \"EscapeChar\",\n type: {\n name: \"String\"\n }\n },\n headersPresent: {\n serializedName: \"HeadersPresent\",\n xmlName: \"HasHeaders\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\nconst JsonTextConfiguration = {\n serializedName: \"JsonTextConfiguration\",\n xmlName: \"JsonTextConfiguration\",\n type: {\n name: \"Composite\",\n className: \"JsonTextConfiguration\",\n modelProperties: {\n recordSeparator: {\n serializedName: \"RecordSeparator\",\n xmlName: \"RecordSeparator\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ArrowConfiguration = {\n serializedName: \"ArrowConfiguration\",\n xmlName: \"ArrowConfiguration\",\n type: {\n name: \"Composite\",\n className: \"ArrowConfiguration\",\n modelProperties: {\n schema: {\n serializedName: \"Schema\",\n required: true,\n xmlName: \"Schema\",\n xmlIsWrapped: true,\n xmlElementName: \"Field\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ArrowField\"\n }\n }\n }\n }\n }\n }\n};\nconst ArrowField = {\n serializedName: \"ArrowField\",\n xmlName: \"Field\",\n type: {\n name: \"Composite\",\n className: \"ArrowField\",\n modelProperties: {\n type: {\n serializedName: \"Type\",\n required: true,\n xmlName: \"Type\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"Name\",\n xmlName: \"Name\",\n type: {\n name: \"String\"\n }\n },\n precision: {\n serializedName: \"Precision\",\n xmlName: \"Precision\",\n type: {\n name: \"Number\"\n }\n },\n scale: {\n serializedName: \"Scale\",\n xmlName: \"Scale\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\nconst ServiceSetPropertiesHeaders = {\n serializedName: \"Service_setPropertiesHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceSetPropertiesHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceSetPropertiesExceptionHeaders = {\n serializedName: \"Service_setPropertiesExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceSetPropertiesExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetPropertiesHeaders = {\n serializedName: \"Service_getPropertiesHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetPropertiesHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetPropertiesExceptionHeaders = {\n serializedName: \"Service_getPropertiesExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetPropertiesExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetStatisticsHeaders = {\n serializedName: \"Service_getStatisticsHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetStatisticsHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetStatisticsExceptionHeaders = {\n serializedName: \"Service_getStatisticsExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetStatisticsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceListContainersSegmentHeaders = {\n serializedName: \"Service_listContainersSegmentHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceListContainersSegmentHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceListContainersSegmentExceptionHeaders = {\n serializedName: \"Service_listContainersSegmentExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceListContainersSegmentExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetUserDelegationKeyHeaders = {\n serializedName: \"Service_getUserDelegationKeyHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetUserDelegationKeyHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetUserDelegationKeyExceptionHeaders = {\n serializedName: \"Service_getUserDelegationKeyExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetUserDelegationKeyExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetAccountInfoHeaders = {\n serializedName: \"Service_getAccountInfoHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetAccountInfoHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n skuName: {\n serializedName: \"x-ms-sku-name\",\n xmlName: \"x-ms-sku-name\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Standard_LRS\",\n \"Standard_GRS\",\n \"Standard_RAGRS\",\n \"Standard_ZRS\",\n \"Premium_LRS\"\n ]\n }\n },\n accountKind: {\n serializedName: \"x-ms-account-kind\",\n xmlName: \"x-ms-account-kind\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Storage\",\n \"BlobStorage\",\n \"StorageV2\",\n \"FileStorage\",\n \"BlockBlobStorage\"\n ]\n }\n },\n isHierarchicalNamespaceEnabled: {\n serializedName: \"x-ms-is-hns-enabled\",\n xmlName: \"x-ms-is-hns-enabled\",\n type: {\n name: \"Boolean\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceGetAccountInfoExceptionHeaders = {\n serializedName: \"Service_getAccountInfoExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceGetAccountInfoExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceSubmitBatchHeaders = {\n serializedName: \"Service_submitBatchHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceSubmitBatchHeaders\",\n modelProperties: {\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceSubmitBatchExceptionHeaders = {\n serializedName: \"Service_submitBatchExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceSubmitBatchExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceFilterBlobsHeaders = {\n serializedName: \"Service_filterBlobsHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceFilterBlobsHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ServiceFilterBlobsExceptionHeaders = {\n serializedName: \"Service_filterBlobsExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ServiceFilterBlobsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerCreateHeaders = {\n serializedName: \"Container_createHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerCreateHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerCreateExceptionHeaders = {\n serializedName: \"Container_createExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerCreateExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerGetPropertiesHeaders = {\n serializedName: \"Container_getPropertiesHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerGetPropertiesHeaders\",\n modelProperties: {\n metadata: {\n serializedName: \"x-ms-meta\",\n xmlName: \"x-ms-meta\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n },\n headerCollectionPrefix: \"x-ms-meta-\"\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseDuration: {\n serializedName: \"x-ms-lease-duration\",\n xmlName: \"x-ms-lease-duration\",\n type: {\n name: \"Enum\",\n allowedValues: [\"infinite\", \"fixed\"]\n }\n },\n leaseState: {\n serializedName: \"x-ms-lease-state\",\n xmlName: \"x-ms-lease-state\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"available\",\n \"leased\",\n \"expired\",\n \"breaking\",\n \"broken\"\n ]\n }\n },\n leaseStatus: {\n serializedName: \"x-ms-lease-status\",\n xmlName: \"x-ms-lease-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"locked\", \"unlocked\"]\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobPublicAccess: {\n serializedName: \"x-ms-blob-public-access\",\n xmlName: \"x-ms-blob-public-access\",\n type: {\n name: \"Enum\",\n allowedValues: [\"container\", \"blob\"]\n }\n },\n hasImmutabilityPolicy: {\n serializedName: \"x-ms-has-immutability-policy\",\n xmlName: \"x-ms-has-immutability-policy\",\n type: {\n name: \"Boolean\"\n }\n },\n hasLegalHold: {\n serializedName: \"x-ms-has-legal-hold\",\n xmlName: \"x-ms-has-legal-hold\",\n type: {\n name: \"Boolean\"\n }\n },\n defaultEncryptionScope: {\n serializedName: \"x-ms-default-encryption-scope\",\n xmlName: \"x-ms-default-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n denyEncryptionScopeOverride: {\n serializedName: \"x-ms-deny-encryption-scope-override\",\n xmlName: \"x-ms-deny-encryption-scope-override\",\n type: {\n name: \"Boolean\"\n }\n },\n isImmutableStorageWithVersioningEnabled: {\n serializedName: \"x-ms-immutable-storage-with-versioning-enabled\",\n xmlName: \"x-ms-immutable-storage-with-versioning-enabled\",\n type: {\n name: \"Boolean\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerGetPropertiesExceptionHeaders = {\n serializedName: \"Container_getPropertiesExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerGetPropertiesExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerDeleteHeaders = {\n serializedName: \"Container_deleteHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerDeleteHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerDeleteExceptionHeaders = {\n serializedName: \"Container_deleteExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerDeleteExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerSetMetadataHeaders = {\n serializedName: \"Container_setMetadataHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerSetMetadataHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerSetMetadataExceptionHeaders = {\n serializedName: \"Container_setMetadataExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerSetMetadataExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerGetAccessPolicyHeaders = {\n serializedName: \"Container_getAccessPolicyHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerGetAccessPolicyHeaders\",\n modelProperties: {\n blobPublicAccess: {\n serializedName: \"x-ms-blob-public-access\",\n xmlName: \"x-ms-blob-public-access\",\n type: {\n name: \"Enum\",\n allowedValues: [\"container\", \"blob\"]\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerGetAccessPolicyExceptionHeaders = {\n serializedName: \"Container_getAccessPolicyExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerGetAccessPolicyExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerSetAccessPolicyHeaders = {\n serializedName: \"Container_setAccessPolicyHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerSetAccessPolicyHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerSetAccessPolicyExceptionHeaders = {\n serializedName: \"Container_setAccessPolicyExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerSetAccessPolicyExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerRestoreHeaders = {\n serializedName: \"Container_restoreHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerRestoreHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerRestoreExceptionHeaders = {\n serializedName: \"Container_restoreExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerRestoreExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerRenameHeaders = {\n serializedName: \"Container_renameHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerRenameHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerRenameExceptionHeaders = {\n serializedName: \"Container_renameExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerRenameExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerSubmitBatchHeaders = {\n serializedName: \"Container_submitBatchHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerSubmitBatchHeaders\",\n modelProperties: {\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerSubmitBatchExceptionHeaders = {\n serializedName: \"Container_submitBatchExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerSubmitBatchExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerFilterBlobsHeaders = {\n serializedName: \"Container_filterBlobsHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerFilterBlobsHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst ContainerFilterBlobsExceptionHeaders = {\n serializedName: \"Container_filterBlobsExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerFilterBlobsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerAcquireLeaseHeaders = {\n serializedName: \"Container_acquireLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerAcquireLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseId: {\n serializedName: \"x-ms-lease-id\",\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst ContainerAcquireLeaseExceptionHeaders = {\n serializedName: \"Container_acquireLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerAcquireLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerReleaseLeaseHeaders = {\n serializedName: \"Container_releaseLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerReleaseLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst ContainerReleaseLeaseExceptionHeaders = {\n serializedName: \"Container_releaseLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerReleaseLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerRenewLeaseHeaders = {\n serializedName: \"Container_renewLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerRenewLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseId: {\n serializedName: \"x-ms-lease-id\",\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst ContainerRenewLeaseExceptionHeaders = {\n serializedName: \"Container_renewLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerRenewLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerBreakLeaseHeaders = {\n serializedName: \"Container_breakLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerBreakLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseTime: {\n serializedName: \"x-ms-lease-time\",\n xmlName: \"x-ms-lease-time\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst ContainerBreakLeaseExceptionHeaders = {\n serializedName: \"Container_breakLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerBreakLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerChangeLeaseHeaders = {\n serializedName: \"Container_changeLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerChangeLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseId: {\n serializedName: \"x-ms-lease-id\",\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst ContainerChangeLeaseExceptionHeaders = {\n serializedName: \"Container_changeLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerChangeLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerListBlobFlatSegmentHeaders = {\n serializedName: \"Container_listBlobFlatSegmentHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerListBlobFlatSegmentHeaders\",\n modelProperties: {\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerListBlobFlatSegmentExceptionHeaders = {\n serializedName: \"Container_listBlobFlatSegmentExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerListBlobFlatSegmentExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerListBlobHierarchySegmentHeaders = {\n serializedName: \"Container_listBlobHierarchySegmentHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerListBlobHierarchySegmentHeaders\",\n modelProperties: {\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerListBlobHierarchySegmentExceptionHeaders = {\n serializedName: \"Container_listBlobHierarchySegmentExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerListBlobHierarchySegmentExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst ContainerGetAccountInfoHeaders = {\n serializedName: \"Container_getAccountInfoHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerGetAccountInfoHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n skuName: {\n serializedName: \"x-ms-sku-name\",\n xmlName: \"x-ms-sku-name\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Standard_LRS\",\n \"Standard_GRS\",\n \"Standard_RAGRS\",\n \"Standard_ZRS\",\n \"Premium_LRS\"\n ]\n }\n },\n accountKind: {\n serializedName: \"x-ms-account-kind\",\n xmlName: \"x-ms-account-kind\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Storage\",\n \"BlobStorage\",\n \"StorageV2\",\n \"FileStorage\",\n \"BlockBlobStorage\"\n ]\n }\n }\n }\n }\n};\nconst ContainerGetAccountInfoExceptionHeaders = {\n serializedName: \"Container_getAccountInfoExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"ContainerGetAccountInfoExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobDownloadHeaders = {\n serializedName: \"Blob_downloadHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobDownloadHeaders\",\n modelProperties: {\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n createdOn: {\n serializedName: \"x-ms-creation-time\",\n xmlName: \"x-ms-creation-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n metadata: {\n serializedName: \"x-ms-meta\",\n xmlName: \"x-ms-meta\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n },\n headerCollectionPrefix: \"x-ms-meta-\"\n },\n objectReplicationPolicyId: {\n serializedName: \"x-ms-or-policy-id\",\n xmlName: \"x-ms-or-policy-id\",\n type: {\n name: \"String\"\n }\n },\n objectReplicationRules: {\n serializedName: \"x-ms-or\",\n xmlName: \"x-ms-or\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n },\n headerCollectionPrefix: \"x-ms-or-\"\n },\n contentLength: {\n serializedName: \"content-length\",\n xmlName: \"content-length\",\n type: {\n name: \"Number\"\n }\n },\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n contentRange: {\n serializedName: \"content-range\",\n xmlName: \"content-range\",\n type: {\n name: \"String\"\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n contentEncoding: {\n serializedName: \"content-encoding\",\n xmlName: \"content-encoding\",\n type: {\n name: \"String\"\n }\n },\n cacheControl: {\n serializedName: \"cache-control\",\n xmlName: \"cache-control\",\n type: {\n name: \"String\"\n }\n },\n contentDisposition: {\n serializedName: \"content-disposition\",\n xmlName: \"content-disposition\",\n type: {\n name: \"String\"\n }\n },\n contentLanguage: {\n serializedName: \"content-language\",\n xmlName: \"content-language\",\n type: {\n name: \"String\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n blobType: {\n serializedName: \"x-ms-blob-type\",\n xmlName: \"x-ms-blob-type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"BlockBlob\", \"PageBlob\", \"AppendBlob\"]\n }\n },\n copyCompletedOn: {\n serializedName: \"x-ms-copy-completion-time\",\n xmlName: \"x-ms-copy-completion-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n copyStatusDescription: {\n serializedName: \"x-ms-copy-status-description\",\n xmlName: \"x-ms-copy-status-description\",\n type: {\n name: \"String\"\n }\n },\n copyId: {\n serializedName: \"x-ms-copy-id\",\n xmlName: \"x-ms-copy-id\",\n type: {\n name: \"String\"\n }\n },\n copyProgress: {\n serializedName: \"x-ms-copy-progress\",\n xmlName: \"x-ms-copy-progress\",\n type: {\n name: \"String\"\n }\n },\n copySource: {\n serializedName: \"x-ms-copy-source\",\n xmlName: \"x-ms-copy-source\",\n type: {\n name: \"String\"\n }\n },\n copyStatus: {\n serializedName: \"x-ms-copy-status\",\n xmlName: \"x-ms-copy-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"pending\", \"success\", \"aborted\", \"failed\"]\n }\n },\n leaseDuration: {\n serializedName: \"x-ms-lease-duration\",\n xmlName: \"x-ms-lease-duration\",\n type: {\n name: \"Enum\",\n allowedValues: [\"infinite\", \"fixed\"]\n }\n },\n leaseState: {\n serializedName: \"x-ms-lease-state\",\n xmlName: \"x-ms-lease-state\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"available\",\n \"leased\",\n \"expired\",\n \"breaking\",\n \"broken\"\n ]\n }\n },\n leaseStatus: {\n serializedName: \"x-ms-lease-status\",\n xmlName: \"x-ms-lease-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"locked\", \"unlocked\"]\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n isCurrentVersion: {\n serializedName: \"x-ms-is-current-version\",\n xmlName: \"x-ms-is-current-version\",\n type: {\n name: \"Boolean\"\n }\n },\n acceptRanges: {\n serializedName: \"accept-ranges\",\n xmlName: \"accept-ranges\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobCommittedBlockCount: {\n serializedName: \"x-ms-blob-committed-block-count\",\n xmlName: \"x-ms-blob-committed-block-count\",\n type: {\n name: \"Number\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-server-encrypted\",\n xmlName: \"x-ms-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n blobContentMD5: {\n serializedName: \"x-ms-blob-content-md5\",\n xmlName: \"x-ms-blob-content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n tagCount: {\n serializedName: \"x-ms-tag-count\",\n xmlName: \"x-ms-tag-count\",\n type: {\n name: \"Number\"\n }\n },\n isSealed: {\n serializedName: \"x-ms-blob-sealed\",\n xmlName: \"x-ms-blob-sealed\",\n type: {\n name: \"Boolean\"\n }\n },\n lastAccessed: {\n serializedName: \"x-ms-last-access-time\",\n xmlName: \"x-ms-last-access-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyExpiresOn: {\n serializedName: \"x-ms-immutability-policy-until-date\",\n xmlName: \"x-ms-immutability-policy-until-date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyMode: {\n serializedName: \"x-ms-immutability-policy-mode\",\n xmlName: \"x-ms-immutability-policy-mode\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Mutable\", \"Unlocked\", \"Locked\"]\n }\n },\n legalHold: {\n serializedName: \"x-ms-legal-hold\",\n xmlName: \"x-ms-legal-hold\",\n type: {\n name: \"Boolean\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n },\n contentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n }\n }\n }\n};\nconst BlobDownloadExceptionHeaders = {\n serializedName: \"Blob_downloadExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobDownloadExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobGetPropertiesHeaders = {\n serializedName: \"Blob_getPropertiesHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobGetPropertiesHeaders\",\n modelProperties: {\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n createdOn: {\n serializedName: \"x-ms-creation-time\",\n xmlName: \"x-ms-creation-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n metadata: {\n serializedName: \"x-ms-meta\",\n xmlName: \"x-ms-meta\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n },\n headerCollectionPrefix: \"x-ms-meta-\"\n },\n objectReplicationPolicyId: {\n serializedName: \"x-ms-or-policy-id\",\n xmlName: \"x-ms-or-policy-id\",\n type: {\n name: \"String\"\n }\n },\n objectReplicationRules: {\n serializedName: \"x-ms-or\",\n xmlName: \"x-ms-or\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n },\n headerCollectionPrefix: \"x-ms-or-\"\n },\n blobType: {\n serializedName: \"x-ms-blob-type\",\n xmlName: \"x-ms-blob-type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"BlockBlob\", \"PageBlob\", \"AppendBlob\"]\n }\n },\n copyCompletedOn: {\n serializedName: \"x-ms-copy-completion-time\",\n xmlName: \"x-ms-copy-completion-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n copyStatusDescription: {\n serializedName: \"x-ms-copy-status-description\",\n xmlName: \"x-ms-copy-status-description\",\n type: {\n name: \"String\"\n }\n },\n copyId: {\n serializedName: \"x-ms-copy-id\",\n xmlName: \"x-ms-copy-id\",\n type: {\n name: \"String\"\n }\n },\n copyProgress: {\n serializedName: \"x-ms-copy-progress\",\n xmlName: \"x-ms-copy-progress\",\n type: {\n name: \"String\"\n }\n },\n copySource: {\n serializedName: \"x-ms-copy-source\",\n xmlName: \"x-ms-copy-source\",\n type: {\n name: \"String\"\n }\n },\n copyStatus: {\n serializedName: \"x-ms-copy-status\",\n xmlName: \"x-ms-copy-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"pending\", \"success\", \"aborted\", \"failed\"]\n }\n },\n isIncrementalCopy: {\n serializedName: \"x-ms-incremental-copy\",\n xmlName: \"x-ms-incremental-copy\",\n type: {\n name: \"Boolean\"\n }\n },\n destinationSnapshot: {\n serializedName: \"x-ms-copy-destination-snapshot\",\n xmlName: \"x-ms-copy-destination-snapshot\",\n type: {\n name: \"String\"\n }\n },\n leaseDuration: {\n serializedName: \"x-ms-lease-duration\",\n xmlName: \"x-ms-lease-duration\",\n type: {\n name: \"Enum\",\n allowedValues: [\"infinite\", \"fixed\"]\n }\n },\n leaseState: {\n serializedName: \"x-ms-lease-state\",\n xmlName: \"x-ms-lease-state\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"available\",\n \"leased\",\n \"expired\",\n \"breaking\",\n \"broken\"\n ]\n }\n },\n leaseStatus: {\n serializedName: \"x-ms-lease-status\",\n xmlName: \"x-ms-lease-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"locked\", \"unlocked\"]\n }\n },\n contentLength: {\n serializedName: \"content-length\",\n xmlName: \"content-length\",\n type: {\n name: \"Number\"\n }\n },\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n contentEncoding: {\n serializedName: \"content-encoding\",\n xmlName: \"content-encoding\",\n type: {\n name: \"String\"\n }\n },\n contentDisposition: {\n serializedName: \"content-disposition\",\n xmlName: \"content-disposition\",\n type: {\n name: \"String\"\n }\n },\n contentLanguage: {\n serializedName: \"content-language\",\n xmlName: \"content-language\",\n type: {\n name: \"String\"\n }\n },\n cacheControl: {\n serializedName: \"cache-control\",\n xmlName: \"cache-control\",\n type: {\n name: \"String\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n acceptRanges: {\n serializedName: \"accept-ranges\",\n xmlName: \"accept-ranges\",\n type: {\n name: \"String\"\n }\n },\n blobCommittedBlockCount: {\n serializedName: \"x-ms-blob-committed-block-count\",\n xmlName: \"x-ms-blob-committed-block-count\",\n type: {\n name: \"Number\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-server-encrypted\",\n xmlName: \"x-ms-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n accessTier: {\n serializedName: \"x-ms-access-tier\",\n xmlName: \"x-ms-access-tier\",\n type: {\n name: \"String\"\n }\n },\n accessTierInferred: {\n serializedName: \"x-ms-access-tier-inferred\",\n xmlName: \"x-ms-access-tier-inferred\",\n type: {\n name: \"Boolean\"\n }\n },\n archiveStatus: {\n serializedName: \"x-ms-archive-status\",\n xmlName: \"x-ms-archive-status\",\n type: {\n name: \"String\"\n }\n },\n accessTierChangedOn: {\n serializedName: \"x-ms-access-tier-change-time\",\n xmlName: \"x-ms-access-tier-change-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n isCurrentVersion: {\n serializedName: \"x-ms-is-current-version\",\n xmlName: \"x-ms-is-current-version\",\n type: {\n name: \"Boolean\"\n }\n },\n tagCount: {\n serializedName: \"x-ms-tag-count\",\n xmlName: \"x-ms-tag-count\",\n type: {\n name: \"Number\"\n }\n },\n expiresOn: {\n serializedName: \"x-ms-expiry-time\",\n xmlName: \"x-ms-expiry-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isSealed: {\n serializedName: \"x-ms-blob-sealed\",\n xmlName: \"x-ms-blob-sealed\",\n type: {\n name: \"Boolean\"\n }\n },\n rehydratePriority: {\n serializedName: \"x-ms-rehydrate-priority\",\n xmlName: \"x-ms-rehydrate-priority\",\n type: {\n name: \"Enum\",\n allowedValues: [\"High\", \"Standard\"]\n }\n },\n lastAccessed: {\n serializedName: \"x-ms-last-access-time\",\n xmlName: \"x-ms-last-access-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyExpiresOn: {\n serializedName: \"x-ms-immutability-policy-until-date\",\n xmlName: \"x-ms-immutability-policy-until-date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyMode: {\n serializedName: \"x-ms-immutability-policy-mode\",\n xmlName: \"x-ms-immutability-policy-mode\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Mutable\", \"Unlocked\", \"Locked\"]\n }\n },\n legalHold: {\n serializedName: \"x-ms-legal-hold\",\n xmlName: \"x-ms-legal-hold\",\n type: {\n name: \"Boolean\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobGetPropertiesExceptionHeaders = {\n serializedName: \"Blob_getPropertiesExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobGetPropertiesExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobDeleteHeaders = {\n serializedName: \"Blob_deleteHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobDeleteHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobDeleteExceptionHeaders = {\n serializedName: \"Blob_deleteExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobDeleteExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobUndeleteHeaders = {\n serializedName: \"Blob_undeleteHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobUndeleteHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobUndeleteExceptionHeaders = {\n serializedName: \"Blob_undeleteExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobUndeleteExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetExpiryHeaders = {\n serializedName: \"Blob_setExpiryHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetExpiryHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst BlobSetExpiryExceptionHeaders = {\n serializedName: \"Blob_setExpiryExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetExpiryExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetHttpHeadersHeaders = {\n serializedName: \"Blob_setHttpHeadersHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetHttpHeadersHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetHttpHeadersExceptionHeaders = {\n serializedName: \"Blob_setHttpHeadersExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetHttpHeadersExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetImmutabilityPolicyHeaders = {\n serializedName: \"Blob_setImmutabilityPolicyHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetImmutabilityPolicyHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyExpiry: {\n serializedName: \"x-ms-immutability-policy-until-date\",\n xmlName: \"x-ms-immutability-policy-until-date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n immutabilityPolicyMode: {\n serializedName: \"x-ms-immutability-policy-mode\",\n xmlName: \"x-ms-immutability-policy-mode\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Mutable\", \"Unlocked\", \"Locked\"]\n }\n }\n }\n }\n};\nconst BlobSetImmutabilityPolicyExceptionHeaders = {\n serializedName: \"Blob_setImmutabilityPolicyExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetImmutabilityPolicyExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobDeleteImmutabilityPolicyHeaders = {\n serializedName: \"Blob_deleteImmutabilityPolicyHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobDeleteImmutabilityPolicyHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst BlobDeleteImmutabilityPolicyExceptionHeaders = {\n serializedName: \"Blob_deleteImmutabilityPolicyExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobDeleteImmutabilityPolicyExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetLegalHoldHeaders = {\n serializedName: \"Blob_setLegalHoldHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetLegalHoldHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n legalHold: {\n serializedName: \"x-ms-legal-hold\",\n xmlName: \"x-ms-legal-hold\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\nconst BlobSetLegalHoldExceptionHeaders = {\n serializedName: \"Blob_setLegalHoldExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetLegalHoldExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetMetadataHeaders = {\n serializedName: \"Blob_setMetadataHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetMetadataHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetMetadataExceptionHeaders = {\n serializedName: \"Blob_setMetadataExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetMetadataExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobAcquireLeaseHeaders = {\n serializedName: \"Blob_acquireLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobAcquireLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseId: {\n serializedName: \"x-ms-lease-id\",\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst BlobAcquireLeaseExceptionHeaders = {\n serializedName: \"Blob_acquireLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobAcquireLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobReleaseLeaseHeaders = {\n serializedName: \"Blob_releaseLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobReleaseLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst BlobReleaseLeaseExceptionHeaders = {\n serializedName: \"Blob_releaseLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobReleaseLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobRenewLeaseHeaders = {\n serializedName: \"Blob_renewLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobRenewLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseId: {\n serializedName: \"x-ms-lease-id\",\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst BlobRenewLeaseExceptionHeaders = {\n serializedName: \"Blob_renewLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobRenewLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobChangeLeaseHeaders = {\n serializedName: \"Blob_changeLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobChangeLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n leaseId: {\n serializedName: \"x-ms-lease-id\",\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst BlobChangeLeaseExceptionHeaders = {\n serializedName: \"Blob_changeLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobChangeLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobBreakLeaseHeaders = {\n serializedName: \"Blob_breakLeaseHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobBreakLeaseHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n leaseTime: {\n serializedName: \"x-ms-lease-time\",\n xmlName: \"x-ms-lease-time\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n }\n }\n};\nconst BlobBreakLeaseExceptionHeaders = {\n serializedName: \"Blob_breakLeaseExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobBreakLeaseExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobCreateSnapshotHeaders = {\n serializedName: \"Blob_createSnapshotHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobCreateSnapshotHeaders\",\n modelProperties: {\n snapshot: {\n serializedName: \"x-ms-snapshot\",\n xmlName: \"x-ms-snapshot\",\n type: {\n name: \"String\"\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobCreateSnapshotExceptionHeaders = {\n serializedName: \"Blob_createSnapshotExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobCreateSnapshotExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobStartCopyFromURLHeaders = {\n serializedName: \"Blob_startCopyFromURLHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobStartCopyFromURLHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n copyId: {\n serializedName: \"x-ms-copy-id\",\n xmlName: \"x-ms-copy-id\",\n type: {\n name: \"String\"\n }\n },\n copyStatus: {\n serializedName: \"x-ms-copy-status\",\n xmlName: \"x-ms-copy-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"pending\", \"success\", \"aborted\", \"failed\"]\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobStartCopyFromURLExceptionHeaders = {\n serializedName: \"Blob_startCopyFromURLExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobStartCopyFromURLExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobCopyFromURLHeaders = {\n serializedName: \"Blob_copyFromURLHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobCopyFromURLHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n copyId: {\n serializedName: \"x-ms-copy-id\",\n xmlName: \"x-ms-copy-id\",\n type: {\n name: \"String\"\n }\n },\n copyStatus: {\n defaultValue: \"success\",\n isConstant: true,\n serializedName: \"x-ms-copy-status\",\n type: {\n name: \"String\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobCopyFromURLExceptionHeaders = {\n serializedName: \"Blob_copyFromURLExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobCopyFromURLExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobAbortCopyFromURLHeaders = {\n serializedName: \"Blob_abortCopyFromURLHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobAbortCopyFromURLHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobAbortCopyFromURLExceptionHeaders = {\n serializedName: \"Blob_abortCopyFromURLExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobAbortCopyFromURLExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetTierHeaders = {\n serializedName: \"Blob_setTierHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetTierHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetTierExceptionHeaders = {\n serializedName: \"Blob_setTierExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetTierExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobGetAccountInfoHeaders = {\n serializedName: \"Blob_getAccountInfoHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobGetAccountInfoHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n skuName: {\n serializedName: \"x-ms-sku-name\",\n xmlName: \"x-ms-sku-name\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Standard_LRS\",\n \"Standard_GRS\",\n \"Standard_RAGRS\",\n \"Standard_ZRS\",\n \"Premium_LRS\"\n ]\n }\n },\n accountKind: {\n serializedName: \"x-ms-account-kind\",\n xmlName: \"x-ms-account-kind\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Storage\",\n \"BlobStorage\",\n \"StorageV2\",\n \"FileStorage\",\n \"BlockBlobStorage\"\n ]\n }\n }\n }\n }\n};\nconst BlobGetAccountInfoExceptionHeaders = {\n serializedName: \"Blob_getAccountInfoExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobGetAccountInfoExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobQueryHeaders = {\n serializedName: \"Blob_queryHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobQueryHeaders\",\n modelProperties: {\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n metadata: {\n serializedName: \"x-ms-meta\",\n xmlName: \"x-ms-meta\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n contentLength: {\n serializedName: \"content-length\",\n xmlName: \"content-length\",\n type: {\n name: \"Number\"\n }\n },\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n contentRange: {\n serializedName: \"content-range\",\n xmlName: \"content-range\",\n type: {\n name: \"String\"\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n contentEncoding: {\n serializedName: \"content-encoding\",\n xmlName: \"content-encoding\",\n type: {\n name: \"String\"\n }\n },\n cacheControl: {\n serializedName: \"cache-control\",\n xmlName: \"cache-control\",\n type: {\n name: \"String\"\n }\n },\n contentDisposition: {\n serializedName: \"content-disposition\",\n xmlName: \"content-disposition\",\n type: {\n name: \"String\"\n }\n },\n contentLanguage: {\n serializedName: \"content-language\",\n xmlName: \"content-language\",\n type: {\n name: \"String\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n blobType: {\n serializedName: \"x-ms-blob-type\",\n xmlName: \"x-ms-blob-type\",\n type: {\n name: \"Enum\",\n allowedValues: [\"BlockBlob\", \"PageBlob\", \"AppendBlob\"]\n }\n },\n copyCompletionTime: {\n serializedName: \"x-ms-copy-completion-time\",\n xmlName: \"x-ms-copy-completion-time\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n copyStatusDescription: {\n serializedName: \"x-ms-copy-status-description\",\n xmlName: \"x-ms-copy-status-description\",\n type: {\n name: \"String\"\n }\n },\n copyId: {\n serializedName: \"x-ms-copy-id\",\n xmlName: \"x-ms-copy-id\",\n type: {\n name: \"String\"\n }\n },\n copyProgress: {\n serializedName: \"x-ms-copy-progress\",\n xmlName: \"x-ms-copy-progress\",\n type: {\n name: \"String\"\n }\n },\n copySource: {\n serializedName: \"x-ms-copy-source\",\n xmlName: \"x-ms-copy-source\",\n type: {\n name: \"String\"\n }\n },\n copyStatus: {\n serializedName: \"x-ms-copy-status\",\n xmlName: \"x-ms-copy-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"pending\", \"success\", \"aborted\", \"failed\"]\n }\n },\n leaseDuration: {\n serializedName: \"x-ms-lease-duration\",\n xmlName: \"x-ms-lease-duration\",\n type: {\n name: \"Enum\",\n allowedValues: [\"infinite\", \"fixed\"]\n }\n },\n leaseState: {\n serializedName: \"x-ms-lease-state\",\n xmlName: \"x-ms-lease-state\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"available\",\n \"leased\",\n \"expired\",\n \"breaking\",\n \"broken\"\n ]\n }\n },\n leaseStatus: {\n serializedName: \"x-ms-lease-status\",\n xmlName: \"x-ms-lease-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"locked\", \"unlocked\"]\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n acceptRanges: {\n serializedName: \"accept-ranges\",\n xmlName: \"accept-ranges\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobCommittedBlockCount: {\n serializedName: \"x-ms-blob-committed-block-count\",\n xmlName: \"x-ms-blob-committed-block-count\",\n type: {\n name: \"Number\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-server-encrypted\",\n xmlName: \"x-ms-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n blobContentMD5: {\n serializedName: \"x-ms-blob-content-md5\",\n xmlName: \"x-ms-blob-content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n },\n contentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n }\n }\n }\n};\nconst BlobQueryExceptionHeaders = {\n serializedName: \"Blob_queryExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobQueryExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobGetTagsHeaders = {\n serializedName: \"Blob_getTagsHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobGetTagsHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobGetTagsExceptionHeaders = {\n serializedName: \"Blob_getTagsExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobGetTagsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetTagsHeaders = {\n serializedName: \"Blob_setTagsHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetTagsHeaders\",\n modelProperties: {\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlobSetTagsExceptionHeaders = {\n serializedName: \"Blob_setTagsExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlobSetTagsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobCreateHeaders = {\n serializedName: \"PageBlob_createHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobCreateHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobCreateExceptionHeaders = {\n serializedName: \"PageBlob_createExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobCreateExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobUploadPagesHeaders = {\n serializedName: \"PageBlob_uploadPagesHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobUploadPagesHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobUploadPagesExceptionHeaders = {\n serializedName: \"PageBlob_uploadPagesExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobUploadPagesExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobClearPagesHeaders = {\n serializedName: \"PageBlob_clearPagesHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobClearPagesHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobClearPagesExceptionHeaders = {\n serializedName: \"PageBlob_clearPagesExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobClearPagesExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobUploadPagesFromURLHeaders = {\n serializedName: \"PageBlob_uploadPagesFromURLHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobUploadPagesFromURLHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobUploadPagesFromURLExceptionHeaders = {\n serializedName: \"PageBlob_uploadPagesFromURLExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobUploadPagesFromURLExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobGetPageRangesHeaders = {\n serializedName: \"PageBlob_getPageRangesHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobGetPageRangesHeaders\",\n modelProperties: {\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n blobContentLength: {\n serializedName: \"x-ms-blob-content-length\",\n xmlName: \"x-ms-blob-content-length\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobGetPageRangesExceptionHeaders = {\n serializedName: \"PageBlob_getPageRangesExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobGetPageRangesExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobGetPageRangesDiffHeaders = {\n serializedName: \"PageBlob_getPageRangesDiffHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobGetPageRangesDiffHeaders\",\n modelProperties: {\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n blobContentLength: {\n serializedName: \"x-ms-blob-content-length\",\n xmlName: \"x-ms-blob-content-length\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobGetPageRangesDiffExceptionHeaders = {\n serializedName: \"PageBlob_getPageRangesDiffExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobGetPageRangesDiffExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobResizeHeaders = {\n serializedName: \"PageBlob_resizeHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobResizeHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobResizeExceptionHeaders = {\n serializedName: \"PageBlob_resizeExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobResizeExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobUpdateSequenceNumberHeaders = {\n serializedName: \"PageBlob_updateSequenceNumberHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobUpdateSequenceNumberHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobSequenceNumber: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobUpdateSequenceNumberExceptionHeaders = {\n serializedName: \"PageBlob_updateSequenceNumberExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobUpdateSequenceNumberExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobCopyIncrementalHeaders = {\n serializedName: \"PageBlob_copyIncrementalHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobCopyIncrementalHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n copyId: {\n serializedName: \"x-ms-copy-id\",\n xmlName: \"x-ms-copy-id\",\n type: {\n name: \"String\"\n }\n },\n copyStatus: {\n serializedName: \"x-ms-copy-status\",\n xmlName: \"x-ms-copy-status\",\n type: {\n name: \"Enum\",\n allowedValues: [\"pending\", \"success\", \"aborted\", \"failed\"]\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst PageBlobCopyIncrementalExceptionHeaders = {\n serializedName: \"PageBlob_copyIncrementalExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"PageBlobCopyIncrementalExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst AppendBlobCreateHeaders = {\n serializedName: \"AppendBlob_createHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobCreateHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst AppendBlobCreateExceptionHeaders = {\n serializedName: \"AppendBlob_createExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobCreateExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst AppendBlobAppendBlockHeaders = {\n serializedName: \"AppendBlob_appendBlockHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobAppendBlockHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobAppendOffset: {\n serializedName: \"x-ms-blob-append-offset\",\n xmlName: \"x-ms-blob-append-offset\",\n type: {\n name: \"String\"\n }\n },\n blobCommittedBlockCount: {\n serializedName: \"x-ms-blob-committed-block-count\",\n xmlName: \"x-ms-blob-committed-block-count\",\n type: {\n name: \"Number\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst AppendBlobAppendBlockExceptionHeaders = {\n serializedName: \"AppendBlob_appendBlockExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobAppendBlockExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst AppendBlobAppendBlockFromUrlHeaders = {\n serializedName: \"AppendBlob_appendBlockFromUrlHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobAppendBlockFromUrlHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n blobAppendOffset: {\n serializedName: \"x-ms-blob-append-offset\",\n xmlName: \"x-ms-blob-append-offset\",\n type: {\n name: \"String\"\n }\n },\n blobCommittedBlockCount: {\n serializedName: \"x-ms-blob-committed-block-count\",\n xmlName: \"x-ms-blob-committed-block-count\",\n type: {\n name: \"Number\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst AppendBlobAppendBlockFromUrlExceptionHeaders = {\n serializedName: \"AppendBlob_appendBlockFromUrlExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobAppendBlockFromUrlExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst AppendBlobSealHeaders = {\n serializedName: \"AppendBlob_sealHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobSealHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isSealed: {\n serializedName: \"x-ms-blob-sealed\",\n xmlName: \"x-ms-blob-sealed\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\nconst AppendBlobSealExceptionHeaders = {\n serializedName: \"AppendBlob_sealExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"AppendBlobSealExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobUploadHeaders = {\n serializedName: \"BlockBlob_uploadHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobUploadHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobUploadExceptionHeaders = {\n serializedName: \"BlockBlob_uploadExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobUploadExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobPutBlobFromUrlHeaders = {\n serializedName: \"BlockBlob_putBlobFromUrlHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobPutBlobFromUrlHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobPutBlobFromUrlExceptionHeaders = {\n serializedName: \"BlockBlob_putBlobFromUrlExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobPutBlobFromUrlExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobStageBlockHeaders = {\n serializedName: \"BlockBlob_stageBlockHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobStageBlockHeaders\",\n modelProperties: {\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobStageBlockExceptionHeaders = {\n serializedName: \"BlockBlob_stageBlockExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobStageBlockExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobStageBlockFromURLHeaders = {\n serializedName: \"BlockBlob_stageBlockFromURLHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobStageBlockFromURLHeaders\",\n modelProperties: {\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobStageBlockFromURLExceptionHeaders = {\n serializedName: \"BlockBlob_stageBlockFromURLExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobStageBlockFromURLExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobCommitBlockListHeaders = {\n serializedName: \"BlockBlob_commitBlockListHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobCommitBlockListHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n contentMD5: {\n serializedName: \"content-md5\",\n xmlName: \"content-md5\",\n type: {\n name: \"ByteArray\"\n }\n },\n xMsContentCrc64: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n versionId: {\n serializedName: \"x-ms-version-id\",\n xmlName: \"x-ms-version-id\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n isServerEncrypted: {\n serializedName: \"x-ms-request-server-encrypted\",\n xmlName: \"x-ms-request-server-encrypted\",\n type: {\n name: \"Boolean\"\n }\n },\n encryptionKeySha256: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n },\n encryptionScope: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobCommitBlockListExceptionHeaders = {\n serializedName: \"BlockBlob_commitBlockListExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobCommitBlockListExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobGetBlockListHeaders = {\n serializedName: \"BlockBlob_getBlockListHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobGetBlockListHeaders\",\n modelProperties: {\n lastModified: {\n serializedName: \"last-modified\",\n xmlName: \"last-modified\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n etag: {\n serializedName: \"etag\",\n xmlName: \"etag\",\n type: {\n name: \"String\"\n }\n },\n contentType: {\n serializedName: \"content-type\",\n xmlName: \"content-type\",\n type: {\n name: \"String\"\n }\n },\n blobContentLength: {\n serializedName: \"x-ms-blob-content-length\",\n xmlName: \"x-ms-blob-content-length\",\n type: {\n name: \"Number\"\n }\n },\n clientRequestId: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n },\n requestId: {\n serializedName: \"x-ms-request-id\",\n xmlName: \"x-ms-request-id\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"x-ms-version\",\n xmlName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n xmlName: \"date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n },\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\nconst BlockBlobGetBlockListExceptionHeaders = {\n serializedName: \"BlockBlob_getBlockListExceptionHeaders\",\n type: {\n name: \"Composite\",\n className: \"BlockBlobGetBlockListExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n xmlName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nvar Mappers = /*#__PURE__*/Object.freeze({\n __proto__: null,\n BlobServiceProperties: BlobServiceProperties,\n Logging: Logging,\n RetentionPolicy: RetentionPolicy,\n Metrics: Metrics,\n CorsRule: CorsRule,\n StaticWebsite: StaticWebsite,\n StorageError: StorageError,\n BlobServiceStatistics: BlobServiceStatistics,\n GeoReplication: GeoReplication,\n ListContainersSegmentResponse: ListContainersSegmentResponse,\n ContainerItem: ContainerItem,\n ContainerProperties: ContainerProperties,\n KeyInfo: KeyInfo,\n UserDelegationKey: UserDelegationKey,\n FilterBlobSegment: FilterBlobSegment,\n FilterBlobItem: FilterBlobItem,\n BlobTags: BlobTags,\n BlobTag: BlobTag,\n SignedIdentifier: SignedIdentifier,\n AccessPolicy: AccessPolicy,\n ListBlobsFlatSegmentResponse: ListBlobsFlatSegmentResponse,\n BlobFlatListSegment: BlobFlatListSegment,\n BlobItemInternal: BlobItemInternal,\n BlobName: BlobName,\n BlobPropertiesInternal: BlobPropertiesInternal,\n ListBlobsHierarchySegmentResponse: ListBlobsHierarchySegmentResponse,\n BlobHierarchyListSegment: BlobHierarchyListSegment,\n BlobPrefix: BlobPrefix,\n BlockLookupList: BlockLookupList,\n BlockList: BlockList,\n Block: Block,\n PageList: PageList,\n PageRange: PageRange,\n ClearRange: ClearRange,\n QueryRequest: QueryRequest,\n QuerySerialization: QuerySerialization,\n QueryFormat: QueryFormat,\n DelimitedTextConfiguration: DelimitedTextConfiguration,\n JsonTextConfiguration: JsonTextConfiguration,\n ArrowConfiguration: ArrowConfiguration,\n ArrowField: ArrowField,\n ServiceSetPropertiesHeaders: ServiceSetPropertiesHeaders,\n ServiceSetPropertiesExceptionHeaders: ServiceSetPropertiesExceptionHeaders,\n ServiceGetPropertiesHeaders: ServiceGetPropertiesHeaders,\n ServiceGetPropertiesExceptionHeaders: ServiceGetPropertiesExceptionHeaders,\n ServiceGetStatisticsHeaders: ServiceGetStatisticsHeaders,\n ServiceGetStatisticsExceptionHeaders: ServiceGetStatisticsExceptionHeaders,\n ServiceListContainersSegmentHeaders: ServiceListContainersSegmentHeaders,\n ServiceListContainersSegmentExceptionHeaders: ServiceListContainersSegmentExceptionHeaders,\n ServiceGetUserDelegationKeyHeaders: ServiceGetUserDelegationKeyHeaders,\n ServiceGetUserDelegationKeyExceptionHeaders: ServiceGetUserDelegationKeyExceptionHeaders,\n ServiceGetAccountInfoHeaders: ServiceGetAccountInfoHeaders,\n ServiceGetAccountInfoExceptionHeaders: ServiceGetAccountInfoExceptionHeaders,\n ServiceSubmitBatchHeaders: ServiceSubmitBatchHeaders,\n ServiceSubmitBatchExceptionHeaders: ServiceSubmitBatchExceptionHeaders,\n ServiceFilterBlobsHeaders: ServiceFilterBlobsHeaders,\n ServiceFilterBlobsExceptionHeaders: ServiceFilterBlobsExceptionHeaders,\n ContainerCreateHeaders: ContainerCreateHeaders,\n ContainerCreateExceptionHeaders: ContainerCreateExceptionHeaders,\n ContainerGetPropertiesHeaders: ContainerGetPropertiesHeaders,\n ContainerGetPropertiesExceptionHeaders: ContainerGetPropertiesExceptionHeaders,\n ContainerDeleteHeaders: ContainerDeleteHeaders,\n ContainerDeleteExceptionHeaders: ContainerDeleteExceptionHeaders,\n ContainerSetMetadataHeaders: ContainerSetMetadataHeaders,\n ContainerSetMetadataExceptionHeaders: ContainerSetMetadataExceptionHeaders,\n ContainerGetAccessPolicyHeaders: ContainerGetAccessPolicyHeaders,\n ContainerGetAccessPolicyExceptionHeaders: ContainerGetAccessPolicyExceptionHeaders,\n ContainerSetAccessPolicyHeaders: ContainerSetAccessPolicyHeaders,\n ContainerSetAccessPolicyExceptionHeaders: ContainerSetAccessPolicyExceptionHeaders,\n ContainerRestoreHeaders: ContainerRestoreHeaders,\n ContainerRestoreExceptionHeaders: ContainerRestoreExceptionHeaders,\n ContainerRenameHeaders: ContainerRenameHeaders,\n ContainerRenameExceptionHeaders: ContainerRenameExceptionHeaders,\n ContainerSubmitBatchHeaders: ContainerSubmitBatchHeaders,\n ContainerSubmitBatchExceptionHeaders: ContainerSubmitBatchExceptionHeaders,\n ContainerFilterBlobsHeaders: ContainerFilterBlobsHeaders,\n ContainerFilterBlobsExceptionHeaders: ContainerFilterBlobsExceptionHeaders,\n ContainerAcquireLeaseHeaders: ContainerAcquireLeaseHeaders,\n ContainerAcquireLeaseExceptionHeaders: ContainerAcquireLeaseExceptionHeaders,\n ContainerReleaseLeaseHeaders: ContainerReleaseLeaseHeaders,\n ContainerReleaseLeaseExceptionHeaders: ContainerReleaseLeaseExceptionHeaders,\n ContainerRenewLeaseHeaders: ContainerRenewLeaseHeaders,\n ContainerRenewLeaseExceptionHeaders: ContainerRenewLeaseExceptionHeaders,\n ContainerBreakLeaseHeaders: ContainerBreakLeaseHeaders,\n ContainerBreakLeaseExceptionHeaders: ContainerBreakLeaseExceptionHeaders,\n ContainerChangeLeaseHeaders: ContainerChangeLeaseHeaders,\n ContainerChangeLeaseExceptionHeaders: ContainerChangeLeaseExceptionHeaders,\n ContainerListBlobFlatSegmentHeaders: ContainerListBlobFlatSegmentHeaders,\n ContainerListBlobFlatSegmentExceptionHeaders: ContainerListBlobFlatSegmentExceptionHeaders,\n ContainerListBlobHierarchySegmentHeaders: ContainerListBlobHierarchySegmentHeaders,\n ContainerListBlobHierarchySegmentExceptionHeaders: ContainerListBlobHierarchySegmentExceptionHeaders,\n ContainerGetAccountInfoHeaders: ContainerGetAccountInfoHeaders,\n ContainerGetAccountInfoExceptionHeaders: ContainerGetAccountInfoExceptionHeaders,\n BlobDownloadHeaders: BlobDownloadHeaders,\n BlobDownloadExceptionHeaders: BlobDownloadExceptionHeaders,\n BlobGetPropertiesHeaders: BlobGetPropertiesHeaders,\n BlobGetPropertiesExceptionHeaders: BlobGetPropertiesExceptionHeaders,\n BlobDeleteHeaders: BlobDeleteHeaders,\n BlobDeleteExceptionHeaders: BlobDeleteExceptionHeaders,\n BlobUndeleteHeaders: BlobUndeleteHeaders,\n BlobUndeleteExceptionHeaders: BlobUndeleteExceptionHeaders,\n BlobSetExpiryHeaders: BlobSetExpiryHeaders,\n BlobSetExpiryExceptionHeaders: BlobSetExpiryExceptionHeaders,\n BlobSetHttpHeadersHeaders: BlobSetHttpHeadersHeaders,\n BlobSetHttpHeadersExceptionHeaders: BlobSetHttpHeadersExceptionHeaders,\n BlobSetImmutabilityPolicyHeaders: BlobSetImmutabilityPolicyHeaders,\n BlobSetImmutabilityPolicyExceptionHeaders: BlobSetImmutabilityPolicyExceptionHeaders,\n BlobDeleteImmutabilityPolicyHeaders: BlobDeleteImmutabilityPolicyHeaders,\n BlobDeleteImmutabilityPolicyExceptionHeaders: BlobDeleteImmutabilityPolicyExceptionHeaders,\n BlobSetLegalHoldHeaders: BlobSetLegalHoldHeaders,\n BlobSetLegalHoldExceptionHeaders: BlobSetLegalHoldExceptionHeaders,\n BlobSetMetadataHeaders: BlobSetMetadataHeaders,\n BlobSetMetadataExceptionHeaders: BlobSetMetadataExceptionHeaders,\n BlobAcquireLeaseHeaders: BlobAcquireLeaseHeaders,\n BlobAcquireLeaseExceptionHeaders: BlobAcquireLeaseExceptionHeaders,\n BlobReleaseLeaseHeaders: BlobReleaseLeaseHeaders,\n BlobReleaseLeaseExceptionHeaders: BlobReleaseLeaseExceptionHeaders,\n BlobRenewLeaseHeaders: BlobRenewLeaseHeaders,\n BlobRenewLeaseExceptionHeaders: BlobRenewLeaseExceptionHeaders,\n BlobChangeLeaseHeaders: BlobChangeLeaseHeaders,\n BlobChangeLeaseExceptionHeaders: BlobChangeLeaseExceptionHeaders,\n BlobBreakLeaseHeaders: BlobBreakLeaseHeaders,\n BlobBreakLeaseExceptionHeaders: BlobBreakLeaseExceptionHeaders,\n BlobCreateSnapshotHeaders: BlobCreateSnapshotHeaders,\n BlobCreateSnapshotExceptionHeaders: BlobCreateSnapshotExceptionHeaders,\n BlobStartCopyFromURLHeaders: BlobStartCopyFromURLHeaders,\n BlobStartCopyFromURLExceptionHeaders: BlobStartCopyFromURLExceptionHeaders,\n BlobCopyFromURLHeaders: BlobCopyFromURLHeaders,\n BlobCopyFromURLExceptionHeaders: BlobCopyFromURLExceptionHeaders,\n BlobAbortCopyFromURLHeaders: BlobAbortCopyFromURLHeaders,\n BlobAbortCopyFromURLExceptionHeaders: BlobAbortCopyFromURLExceptionHeaders,\n BlobSetTierHeaders: BlobSetTierHeaders,\n BlobSetTierExceptionHeaders: BlobSetTierExceptionHeaders,\n BlobGetAccountInfoHeaders: BlobGetAccountInfoHeaders,\n BlobGetAccountInfoExceptionHeaders: BlobGetAccountInfoExceptionHeaders,\n BlobQueryHeaders: BlobQueryHeaders,\n BlobQueryExceptionHeaders: BlobQueryExceptionHeaders,\n BlobGetTagsHeaders: BlobGetTagsHeaders,\n BlobGetTagsExceptionHeaders: BlobGetTagsExceptionHeaders,\n BlobSetTagsHeaders: BlobSetTagsHeaders,\n BlobSetTagsExceptionHeaders: BlobSetTagsExceptionHeaders,\n PageBlobCreateHeaders: PageBlobCreateHeaders,\n PageBlobCreateExceptionHeaders: PageBlobCreateExceptionHeaders,\n PageBlobUploadPagesHeaders: PageBlobUploadPagesHeaders,\n PageBlobUploadPagesExceptionHeaders: PageBlobUploadPagesExceptionHeaders,\n PageBlobClearPagesHeaders: PageBlobClearPagesHeaders,\n PageBlobClearPagesExceptionHeaders: PageBlobClearPagesExceptionHeaders,\n PageBlobUploadPagesFromURLHeaders: PageBlobUploadPagesFromURLHeaders,\n PageBlobUploadPagesFromURLExceptionHeaders: PageBlobUploadPagesFromURLExceptionHeaders,\n PageBlobGetPageRangesHeaders: PageBlobGetPageRangesHeaders,\n PageBlobGetPageRangesExceptionHeaders: PageBlobGetPageRangesExceptionHeaders,\n PageBlobGetPageRangesDiffHeaders: PageBlobGetPageRangesDiffHeaders,\n PageBlobGetPageRangesDiffExceptionHeaders: PageBlobGetPageRangesDiffExceptionHeaders,\n PageBlobResizeHeaders: PageBlobResizeHeaders,\n PageBlobResizeExceptionHeaders: PageBlobResizeExceptionHeaders,\n PageBlobUpdateSequenceNumberHeaders: PageBlobUpdateSequenceNumberHeaders,\n PageBlobUpdateSequenceNumberExceptionHeaders: PageBlobUpdateSequenceNumberExceptionHeaders,\n PageBlobCopyIncrementalHeaders: PageBlobCopyIncrementalHeaders,\n PageBlobCopyIncrementalExceptionHeaders: PageBlobCopyIncrementalExceptionHeaders,\n AppendBlobCreateHeaders: AppendBlobCreateHeaders,\n AppendBlobCreateExceptionHeaders: AppendBlobCreateExceptionHeaders,\n AppendBlobAppendBlockHeaders: AppendBlobAppendBlockHeaders,\n AppendBlobAppendBlockExceptionHeaders: AppendBlobAppendBlockExceptionHeaders,\n AppendBlobAppendBlockFromUrlHeaders: AppendBlobAppendBlockFromUrlHeaders,\n AppendBlobAppendBlockFromUrlExceptionHeaders: AppendBlobAppendBlockFromUrlExceptionHeaders,\n AppendBlobSealHeaders: AppendBlobSealHeaders,\n AppendBlobSealExceptionHeaders: AppendBlobSealExceptionHeaders,\n BlockBlobUploadHeaders: BlockBlobUploadHeaders,\n BlockBlobUploadExceptionHeaders: BlockBlobUploadExceptionHeaders,\n BlockBlobPutBlobFromUrlHeaders: BlockBlobPutBlobFromUrlHeaders,\n BlockBlobPutBlobFromUrlExceptionHeaders: BlockBlobPutBlobFromUrlExceptionHeaders,\n BlockBlobStageBlockHeaders: BlockBlobStageBlockHeaders,\n BlockBlobStageBlockExceptionHeaders: BlockBlobStageBlockExceptionHeaders,\n BlockBlobStageBlockFromURLHeaders: BlockBlobStageBlockFromURLHeaders,\n BlockBlobStageBlockFromURLExceptionHeaders: BlockBlobStageBlockFromURLExceptionHeaders,\n BlockBlobCommitBlockListHeaders: BlockBlobCommitBlockListHeaders,\n BlockBlobCommitBlockListExceptionHeaders: BlockBlobCommitBlockListExceptionHeaders,\n BlockBlobGetBlockListHeaders: BlockBlobGetBlockListHeaders,\n BlockBlobGetBlockListExceptionHeaders: BlockBlobGetBlockListExceptionHeaders\n});\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nconst contentType = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/xml\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobServiceProperties = {\n parameterPath: \"blobServiceProperties\",\n mapper: BlobServiceProperties\n};\nconst accept = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/xml\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\nconst url = {\n parameterPath: \"url\",\n mapper: {\n serializedName: \"url\",\n required: true,\n xmlName: \"url\",\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\nconst restype = {\n parameterPath: \"restype\",\n mapper: {\n defaultValue: \"service\",\n isConstant: true,\n serializedName: \"restype\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"properties\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst timeoutInSeconds = {\n parameterPath: [\"options\", \"timeoutInSeconds\"],\n mapper: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"timeout\",\n xmlName: \"timeout\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst version = {\n parameterPath: \"version\",\n mapper: {\n defaultValue: \"2023-11-03\",\n isConstant: true,\n serializedName: \"x-ms-version\",\n type: {\n name: \"String\"\n }\n }\n};\nconst requestId = {\n parameterPath: [\"options\", \"requestId\"],\n mapper: {\n serializedName: \"x-ms-client-request-id\",\n xmlName: \"x-ms-client-request-id\",\n type: {\n name: \"String\"\n }\n }\n};\nconst accept1 = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/xml\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp1 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"stats\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp2 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"list\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst prefix = {\n parameterPath: [\"options\", \"prefix\"],\n mapper: {\n serializedName: \"prefix\",\n xmlName: \"prefix\",\n type: {\n name: \"String\"\n }\n }\n};\nconst marker = {\n parameterPath: [\"options\", \"marker\"],\n mapper: {\n serializedName: \"marker\",\n xmlName: \"marker\",\n type: {\n name: \"String\"\n }\n }\n};\nconst maxPageSize = {\n parameterPath: [\"options\", \"maxPageSize\"],\n mapper: {\n constraints: {\n InclusiveMinimum: 1\n },\n serializedName: \"maxresults\",\n xmlName: \"maxresults\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst include = {\n parameterPath: [\"options\", \"include\"],\n mapper: {\n serializedName: \"include\",\n xmlName: \"include\",\n xmlElementName: \"ListContainersIncludeType\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\"metadata\", \"deleted\", \"system\"]\n }\n }\n }\n },\n collectionFormat: coreHttp.QueryCollectionFormat.Csv\n};\nconst keyInfo = {\n parameterPath: \"keyInfo\",\n mapper: KeyInfo\n};\nconst comp3 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"userdelegationkey\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst restype1 = {\n parameterPath: \"restype\",\n mapper: {\n defaultValue: \"account\",\n isConstant: true,\n serializedName: \"restype\",\n type: {\n name: \"String\"\n }\n }\n};\nconst body = {\n parameterPath: \"body\",\n mapper: {\n serializedName: \"body\",\n required: true,\n xmlName: \"body\",\n type: {\n name: \"Stream\"\n }\n }\n};\nconst comp4 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"batch\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst contentLength = {\n parameterPath: \"contentLength\",\n mapper: {\n serializedName: \"Content-Length\",\n required: true,\n xmlName: \"Content-Length\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst multipartContentType = {\n parameterPath: \"multipartContentType\",\n mapper: {\n serializedName: \"Content-Type\",\n required: true,\n xmlName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp5 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"blobs\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst where = {\n parameterPath: [\"options\", \"where\"],\n mapper: {\n serializedName: \"where\",\n xmlName: \"where\",\n type: {\n name: \"String\"\n }\n }\n};\nconst restype2 = {\n parameterPath: \"restype\",\n mapper: {\n defaultValue: \"container\",\n isConstant: true,\n serializedName: \"restype\",\n type: {\n name: \"String\"\n }\n }\n};\nconst metadata = {\n parameterPath: [\"options\", \"metadata\"],\n mapper: {\n serializedName: \"x-ms-meta\",\n xmlName: \"x-ms-meta\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n },\n headerCollectionPrefix: \"x-ms-meta-\"\n }\n};\nconst access = {\n parameterPath: [\"options\", \"access\"],\n mapper: {\n serializedName: \"x-ms-blob-public-access\",\n xmlName: \"x-ms-blob-public-access\",\n type: {\n name: \"Enum\",\n allowedValues: [\"container\", \"blob\"]\n }\n }\n};\nconst defaultEncryptionScope = {\n parameterPath: [\n \"options\",\n \"containerEncryptionScope\",\n \"defaultEncryptionScope\"\n ],\n mapper: {\n serializedName: \"x-ms-default-encryption-scope\",\n xmlName: \"x-ms-default-encryption-scope\",\n type: {\n name: \"String\"\n }\n }\n};\nconst preventEncryptionScopeOverride = {\n parameterPath: [\n \"options\",\n \"containerEncryptionScope\",\n \"preventEncryptionScopeOverride\"\n ],\n mapper: {\n serializedName: \"x-ms-deny-encryption-scope-override\",\n xmlName: \"x-ms-deny-encryption-scope-override\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nconst leaseId = {\n parameterPath: [\"options\", \"leaseAccessConditions\", \"leaseId\"],\n mapper: {\n serializedName: \"x-ms-lease-id\",\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n }\n};\nconst ifModifiedSince = {\n parameterPath: [\"options\", \"modifiedAccessConditions\", \"ifModifiedSince\"],\n mapper: {\n serializedName: \"If-Modified-Since\",\n xmlName: \"If-Modified-Since\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n};\nconst ifUnmodifiedSince = {\n parameterPath: [\"options\", \"modifiedAccessConditions\", \"ifUnmodifiedSince\"],\n mapper: {\n serializedName: \"If-Unmodified-Since\",\n xmlName: \"If-Unmodified-Since\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n};\nconst comp6 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"metadata\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp7 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"acl\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst containerAcl = {\n parameterPath: [\"options\", \"containerAcl\"],\n mapper: {\n serializedName: \"containerAcl\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SignedIdentifier\"\n }\n }\n }\n }\n};\nconst comp8 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"undelete\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst deletedContainerName = {\n parameterPath: [\"options\", \"deletedContainerName\"],\n mapper: {\n serializedName: \"x-ms-deleted-container-name\",\n xmlName: \"x-ms-deleted-container-name\",\n type: {\n name: \"String\"\n }\n }\n};\nconst deletedContainerVersion = {\n parameterPath: [\"options\", \"deletedContainerVersion\"],\n mapper: {\n serializedName: \"x-ms-deleted-container-version\",\n xmlName: \"x-ms-deleted-container-version\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp9 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"rename\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceContainerName = {\n parameterPath: \"sourceContainerName\",\n mapper: {\n serializedName: \"x-ms-source-container-name\",\n required: true,\n xmlName: \"x-ms-source-container-name\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceLeaseId = {\n parameterPath: [\"options\", \"sourceLeaseId\"],\n mapper: {\n serializedName: \"x-ms-source-lease-id\",\n xmlName: \"x-ms-source-lease-id\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp10 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"lease\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst action = {\n parameterPath: \"action\",\n mapper: {\n defaultValue: \"acquire\",\n isConstant: true,\n serializedName: \"x-ms-lease-action\",\n type: {\n name: \"String\"\n }\n }\n};\nconst duration = {\n parameterPath: [\"options\", \"duration\"],\n mapper: {\n serializedName: \"x-ms-lease-duration\",\n xmlName: \"x-ms-lease-duration\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst proposedLeaseId = {\n parameterPath: [\"options\", \"proposedLeaseId\"],\n mapper: {\n serializedName: \"x-ms-proposed-lease-id\",\n xmlName: \"x-ms-proposed-lease-id\",\n type: {\n name: \"String\"\n }\n }\n};\nconst action1 = {\n parameterPath: \"action\",\n mapper: {\n defaultValue: \"release\",\n isConstant: true,\n serializedName: \"x-ms-lease-action\",\n type: {\n name: \"String\"\n }\n }\n};\nconst leaseId1 = {\n parameterPath: \"leaseId\",\n mapper: {\n serializedName: \"x-ms-lease-id\",\n required: true,\n xmlName: \"x-ms-lease-id\",\n type: {\n name: \"String\"\n }\n }\n};\nconst action2 = {\n parameterPath: \"action\",\n mapper: {\n defaultValue: \"renew\",\n isConstant: true,\n serializedName: \"x-ms-lease-action\",\n type: {\n name: \"String\"\n }\n }\n};\nconst action3 = {\n parameterPath: \"action\",\n mapper: {\n defaultValue: \"break\",\n isConstant: true,\n serializedName: \"x-ms-lease-action\",\n type: {\n name: \"String\"\n }\n }\n};\nconst breakPeriod = {\n parameterPath: [\"options\", \"breakPeriod\"],\n mapper: {\n serializedName: \"x-ms-lease-break-period\",\n xmlName: \"x-ms-lease-break-period\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst action4 = {\n parameterPath: \"action\",\n mapper: {\n defaultValue: \"change\",\n isConstant: true,\n serializedName: \"x-ms-lease-action\",\n type: {\n name: \"String\"\n }\n }\n};\nconst proposedLeaseId1 = {\n parameterPath: \"proposedLeaseId\",\n mapper: {\n serializedName: \"x-ms-proposed-lease-id\",\n required: true,\n xmlName: \"x-ms-proposed-lease-id\",\n type: {\n name: \"String\"\n }\n }\n};\nconst include1 = {\n parameterPath: [\"options\", \"include\"],\n mapper: {\n serializedName: \"include\",\n xmlName: \"include\",\n xmlElementName: \"ListBlobsIncludeItem\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\n \"copy\",\n \"deleted\",\n \"metadata\",\n \"snapshots\",\n \"uncommittedblobs\",\n \"versions\",\n \"tags\",\n \"immutabilitypolicy\",\n \"legalhold\",\n \"deletedwithversions\"\n ]\n }\n }\n }\n },\n collectionFormat: coreHttp.QueryCollectionFormat.Csv\n};\nconst delimiter = {\n parameterPath: \"delimiter\",\n mapper: {\n serializedName: \"delimiter\",\n required: true,\n xmlName: \"delimiter\",\n type: {\n name: \"String\"\n }\n }\n};\nconst snapshot = {\n parameterPath: [\"options\", \"snapshot\"],\n mapper: {\n serializedName: \"snapshot\",\n xmlName: \"snapshot\",\n type: {\n name: \"String\"\n }\n }\n};\nconst versionId = {\n parameterPath: [\"options\", \"versionId\"],\n mapper: {\n serializedName: \"versionid\",\n xmlName: \"versionid\",\n type: {\n name: \"String\"\n }\n }\n};\nconst range = {\n parameterPath: [\"options\", \"range\"],\n mapper: {\n serializedName: \"x-ms-range\",\n xmlName: \"x-ms-range\",\n type: {\n name: \"String\"\n }\n }\n};\nconst rangeGetContentMD5 = {\n parameterPath: [\"options\", \"rangeGetContentMD5\"],\n mapper: {\n serializedName: \"x-ms-range-get-content-md5\",\n xmlName: \"x-ms-range-get-content-md5\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nconst rangeGetContentCRC64 = {\n parameterPath: [\"options\", \"rangeGetContentCRC64\"],\n mapper: {\n serializedName: \"x-ms-range-get-content-crc64\",\n xmlName: \"x-ms-range-get-content-crc64\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nconst encryptionKey = {\n parameterPath: [\"options\", \"cpkInfo\", \"encryptionKey\"],\n mapper: {\n serializedName: \"x-ms-encryption-key\",\n xmlName: \"x-ms-encryption-key\",\n type: {\n name: \"String\"\n }\n }\n};\nconst encryptionKeySha256 = {\n parameterPath: [\"options\", \"cpkInfo\", \"encryptionKeySha256\"],\n mapper: {\n serializedName: \"x-ms-encryption-key-sha256\",\n xmlName: \"x-ms-encryption-key-sha256\",\n type: {\n name: \"String\"\n }\n }\n};\nconst encryptionAlgorithm = {\n parameterPath: [\"options\", \"cpkInfo\", \"encryptionAlgorithm\"],\n mapper: {\n serializedName: \"x-ms-encryption-algorithm\",\n xmlName: \"x-ms-encryption-algorithm\",\n type: {\n name: \"String\"\n }\n }\n};\nconst ifMatch = {\n parameterPath: [\"options\", \"modifiedAccessConditions\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n xmlName: \"If-Match\",\n type: {\n name: \"String\"\n }\n }\n};\nconst ifNoneMatch = {\n parameterPath: [\"options\", \"modifiedAccessConditions\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n xmlName: \"If-None-Match\",\n type: {\n name: \"String\"\n }\n }\n};\nconst ifTags = {\n parameterPath: [\"options\", \"modifiedAccessConditions\", \"ifTags\"],\n mapper: {\n serializedName: \"x-ms-if-tags\",\n xmlName: \"x-ms-if-tags\",\n type: {\n name: \"String\"\n }\n }\n};\nconst deleteSnapshots = {\n parameterPath: [\"options\", \"deleteSnapshots\"],\n mapper: {\n serializedName: \"x-ms-delete-snapshots\",\n xmlName: \"x-ms-delete-snapshots\",\n type: {\n name: \"Enum\",\n allowedValues: [\"include\", \"only\"]\n }\n }\n};\nconst blobDeleteType = {\n parameterPath: [\"options\", \"blobDeleteType\"],\n mapper: {\n serializedName: \"deletetype\",\n xmlName: \"deletetype\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp11 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"expiry\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst expiryOptions = {\n parameterPath: \"expiryOptions\",\n mapper: {\n serializedName: \"x-ms-expiry-option\",\n required: true,\n xmlName: \"x-ms-expiry-option\",\n type: {\n name: \"String\"\n }\n }\n};\nconst expiresOn = {\n parameterPath: [\"options\", \"expiresOn\"],\n mapper: {\n serializedName: \"x-ms-expiry-time\",\n xmlName: \"x-ms-expiry-time\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobCacheControl = {\n parameterPath: [\"options\", \"blobHttpHeaders\", \"blobCacheControl\"],\n mapper: {\n serializedName: \"x-ms-blob-cache-control\",\n xmlName: \"x-ms-blob-cache-control\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobContentType = {\n parameterPath: [\"options\", \"blobHttpHeaders\", \"blobContentType\"],\n mapper: {\n serializedName: \"x-ms-blob-content-type\",\n xmlName: \"x-ms-blob-content-type\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobContentMD5 = {\n parameterPath: [\"options\", \"blobHttpHeaders\", \"blobContentMD5\"],\n mapper: {\n serializedName: \"x-ms-blob-content-md5\",\n xmlName: \"x-ms-blob-content-md5\",\n type: {\n name: \"ByteArray\"\n }\n }\n};\nconst blobContentEncoding = {\n parameterPath: [\"options\", \"blobHttpHeaders\", \"blobContentEncoding\"],\n mapper: {\n serializedName: \"x-ms-blob-content-encoding\",\n xmlName: \"x-ms-blob-content-encoding\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobContentLanguage = {\n parameterPath: [\"options\", \"blobHttpHeaders\", \"blobContentLanguage\"],\n mapper: {\n serializedName: \"x-ms-blob-content-language\",\n xmlName: \"x-ms-blob-content-language\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobContentDisposition = {\n parameterPath: [\"options\", \"blobHttpHeaders\", \"blobContentDisposition\"],\n mapper: {\n serializedName: \"x-ms-blob-content-disposition\",\n xmlName: \"x-ms-blob-content-disposition\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp12 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"immutabilityPolicies\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst immutabilityPolicyExpiry = {\n parameterPath: [\"options\", \"immutabilityPolicyExpiry\"],\n mapper: {\n serializedName: \"x-ms-immutability-policy-until-date\",\n xmlName: \"x-ms-immutability-policy-until-date\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n};\nconst immutabilityPolicyMode = {\n parameterPath: [\"options\", \"immutabilityPolicyMode\"],\n mapper: {\n serializedName: \"x-ms-immutability-policy-mode\",\n xmlName: \"x-ms-immutability-policy-mode\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Mutable\", \"Unlocked\", \"Locked\"]\n }\n }\n};\nconst comp13 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"legalhold\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst legalHold = {\n parameterPath: \"legalHold\",\n mapper: {\n serializedName: \"x-ms-legal-hold\",\n required: true,\n xmlName: \"x-ms-legal-hold\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nconst encryptionScope = {\n parameterPath: [\"options\", \"encryptionScope\"],\n mapper: {\n serializedName: \"x-ms-encryption-scope\",\n xmlName: \"x-ms-encryption-scope\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp14 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"snapshot\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst tier = {\n parameterPath: [\"options\", \"tier\"],\n mapper: {\n serializedName: \"x-ms-access-tier\",\n xmlName: \"x-ms-access-tier\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"P4\",\n \"P6\",\n \"P10\",\n \"P15\",\n \"P20\",\n \"P30\",\n \"P40\",\n \"P50\",\n \"P60\",\n \"P70\",\n \"P80\",\n \"Hot\",\n \"Cool\",\n \"Archive\",\n \"Cold\"\n ]\n }\n }\n};\nconst rehydratePriority = {\n parameterPath: [\"options\", \"rehydratePriority\"],\n mapper: {\n serializedName: \"x-ms-rehydrate-priority\",\n xmlName: \"x-ms-rehydrate-priority\",\n type: {\n name: \"Enum\",\n allowedValues: [\"High\", \"Standard\"]\n }\n }\n};\nconst sourceIfModifiedSince = {\n parameterPath: [\n \"options\",\n \"sourceModifiedAccessConditions\",\n \"sourceIfModifiedSince\"\n ],\n mapper: {\n serializedName: \"x-ms-source-if-modified-since\",\n xmlName: \"x-ms-source-if-modified-since\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n};\nconst sourceIfUnmodifiedSince = {\n parameterPath: [\n \"options\",\n \"sourceModifiedAccessConditions\",\n \"sourceIfUnmodifiedSince\"\n ],\n mapper: {\n serializedName: \"x-ms-source-if-unmodified-since\",\n xmlName: \"x-ms-source-if-unmodified-since\",\n type: {\n name: \"DateTimeRfc1123\"\n }\n }\n};\nconst sourceIfMatch = {\n parameterPath: [\"options\", \"sourceModifiedAccessConditions\", \"sourceIfMatch\"],\n mapper: {\n serializedName: \"x-ms-source-if-match\",\n xmlName: \"x-ms-source-if-match\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceIfNoneMatch = {\n parameterPath: [\n \"options\",\n \"sourceModifiedAccessConditions\",\n \"sourceIfNoneMatch\"\n ],\n mapper: {\n serializedName: \"x-ms-source-if-none-match\",\n xmlName: \"x-ms-source-if-none-match\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceIfTags = {\n parameterPath: [\"options\", \"sourceModifiedAccessConditions\", \"sourceIfTags\"],\n mapper: {\n serializedName: \"x-ms-source-if-tags\",\n xmlName: \"x-ms-source-if-tags\",\n type: {\n name: \"String\"\n }\n }\n};\nconst copySource = {\n parameterPath: \"copySource\",\n mapper: {\n serializedName: \"x-ms-copy-source\",\n required: true,\n xmlName: \"x-ms-copy-source\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobTagsString = {\n parameterPath: [\"options\", \"blobTagsString\"],\n mapper: {\n serializedName: \"x-ms-tags\",\n xmlName: \"x-ms-tags\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sealBlob = {\n parameterPath: [\"options\", \"sealBlob\"],\n mapper: {\n serializedName: \"x-ms-seal-blob\",\n xmlName: \"x-ms-seal-blob\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nconst legalHold1 = {\n parameterPath: [\"options\", \"legalHold\"],\n mapper: {\n serializedName: \"x-ms-legal-hold\",\n xmlName: \"x-ms-legal-hold\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nconst xMsRequiresSync = {\n parameterPath: \"xMsRequiresSync\",\n mapper: {\n defaultValue: \"true\",\n isConstant: true,\n serializedName: \"x-ms-requires-sync\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceContentMD5 = {\n parameterPath: [\"options\", \"sourceContentMD5\"],\n mapper: {\n serializedName: \"x-ms-source-content-md5\",\n xmlName: \"x-ms-source-content-md5\",\n type: {\n name: \"ByteArray\"\n }\n }\n};\nconst copySourceAuthorization = {\n parameterPath: [\"options\", \"copySourceAuthorization\"],\n mapper: {\n serializedName: \"x-ms-copy-source-authorization\",\n xmlName: \"x-ms-copy-source-authorization\",\n type: {\n name: \"String\"\n }\n }\n};\nconst copySourceTags = {\n parameterPath: [\"options\", \"copySourceTags\"],\n mapper: {\n serializedName: \"x-ms-copy-source-tag-option\",\n xmlName: \"x-ms-copy-source-tag-option\",\n type: {\n name: \"Enum\",\n allowedValues: [\"REPLACE\", \"COPY\"]\n }\n }\n};\nconst comp15 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"copy\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst copyActionAbortConstant = {\n parameterPath: \"copyActionAbortConstant\",\n mapper: {\n defaultValue: \"abort\",\n isConstant: true,\n serializedName: \"x-ms-copy-action\",\n type: {\n name: \"String\"\n }\n }\n};\nconst copyId = {\n parameterPath: \"copyId\",\n mapper: {\n serializedName: \"copyid\",\n required: true,\n xmlName: \"copyid\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp16 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"tier\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst tier1 = {\n parameterPath: \"tier\",\n mapper: {\n serializedName: \"x-ms-access-tier\",\n required: true,\n xmlName: \"x-ms-access-tier\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"P4\",\n \"P6\",\n \"P10\",\n \"P15\",\n \"P20\",\n \"P30\",\n \"P40\",\n \"P50\",\n \"P60\",\n \"P70\",\n \"P80\",\n \"Hot\",\n \"Cool\",\n \"Archive\",\n \"Cold\"\n ]\n }\n }\n};\nconst queryRequest = {\n parameterPath: [\"options\", \"queryRequest\"],\n mapper: QueryRequest\n};\nconst comp17 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"query\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp18 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"tags\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst tags = {\n parameterPath: [\"options\", \"tags\"],\n mapper: BlobTags\n};\nconst transactionalContentMD5 = {\n parameterPath: [\"options\", \"transactionalContentMD5\"],\n mapper: {\n serializedName: \"Content-MD5\",\n xmlName: \"Content-MD5\",\n type: {\n name: \"ByteArray\"\n }\n }\n};\nconst transactionalContentCrc64 = {\n parameterPath: [\"options\", \"transactionalContentCrc64\"],\n mapper: {\n serializedName: \"x-ms-content-crc64\",\n xmlName: \"x-ms-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n }\n};\nconst blobType = {\n parameterPath: \"blobType\",\n mapper: {\n defaultValue: \"PageBlob\",\n isConstant: true,\n serializedName: \"x-ms-blob-type\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobContentLength = {\n parameterPath: \"blobContentLength\",\n mapper: {\n serializedName: \"x-ms-blob-content-length\",\n required: true,\n xmlName: \"x-ms-blob-content-length\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst blobSequenceNumber = {\n parameterPath: [\"options\", \"blobSequenceNumber\"],\n mapper: {\n serializedName: \"x-ms-blob-sequence-number\",\n xmlName: \"x-ms-blob-sequence-number\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst contentType1 = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/octet-stream\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\nconst body1 = {\n parameterPath: \"body\",\n mapper: {\n serializedName: \"body\",\n required: true,\n xmlName: \"body\",\n type: {\n name: \"Stream\"\n }\n }\n};\nconst accept2 = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/xml\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp19 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"page\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst pageWrite = {\n parameterPath: \"pageWrite\",\n mapper: {\n defaultValue: \"update\",\n isConstant: true,\n serializedName: \"x-ms-page-write\",\n type: {\n name: \"String\"\n }\n }\n};\nconst ifSequenceNumberLessThanOrEqualTo = {\n parameterPath: [\n \"options\",\n \"sequenceNumberAccessConditions\",\n \"ifSequenceNumberLessThanOrEqualTo\"\n ],\n mapper: {\n serializedName: \"x-ms-if-sequence-number-le\",\n xmlName: \"x-ms-if-sequence-number-le\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst ifSequenceNumberLessThan = {\n parameterPath: [\n \"options\",\n \"sequenceNumberAccessConditions\",\n \"ifSequenceNumberLessThan\"\n ],\n mapper: {\n serializedName: \"x-ms-if-sequence-number-lt\",\n xmlName: \"x-ms-if-sequence-number-lt\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst ifSequenceNumberEqualTo = {\n parameterPath: [\n \"options\",\n \"sequenceNumberAccessConditions\",\n \"ifSequenceNumberEqualTo\"\n ],\n mapper: {\n serializedName: \"x-ms-if-sequence-number-eq\",\n xmlName: \"x-ms-if-sequence-number-eq\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst pageWrite1 = {\n parameterPath: \"pageWrite\",\n mapper: {\n defaultValue: \"clear\",\n isConstant: true,\n serializedName: \"x-ms-page-write\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceUrl = {\n parameterPath: \"sourceUrl\",\n mapper: {\n serializedName: \"x-ms-copy-source\",\n required: true,\n xmlName: \"x-ms-copy-source\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceRange = {\n parameterPath: \"sourceRange\",\n mapper: {\n serializedName: \"x-ms-source-range\",\n required: true,\n xmlName: \"x-ms-source-range\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sourceContentCrc64 = {\n parameterPath: [\"options\", \"sourceContentCrc64\"],\n mapper: {\n serializedName: \"x-ms-source-content-crc64\",\n xmlName: \"x-ms-source-content-crc64\",\n type: {\n name: \"ByteArray\"\n }\n }\n};\nconst range1 = {\n parameterPath: \"range\",\n mapper: {\n serializedName: \"x-ms-range\",\n required: true,\n xmlName: \"x-ms-range\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp20 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"pagelist\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst prevsnapshot = {\n parameterPath: [\"options\", \"prevsnapshot\"],\n mapper: {\n serializedName: \"prevsnapshot\",\n xmlName: \"prevsnapshot\",\n type: {\n name: \"String\"\n }\n }\n};\nconst prevSnapshotUrl = {\n parameterPath: [\"options\", \"prevSnapshotUrl\"],\n mapper: {\n serializedName: \"x-ms-previous-snapshot-url\",\n xmlName: \"x-ms-previous-snapshot-url\",\n type: {\n name: \"String\"\n }\n }\n};\nconst sequenceNumberAction = {\n parameterPath: \"sequenceNumberAction\",\n mapper: {\n serializedName: \"x-ms-sequence-number-action\",\n required: true,\n xmlName: \"x-ms-sequence-number-action\",\n type: {\n name: \"Enum\",\n allowedValues: [\"max\", \"update\", \"increment\"]\n }\n }\n};\nconst comp21 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"incrementalcopy\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobType1 = {\n parameterPath: \"blobType\",\n mapper: {\n defaultValue: \"AppendBlob\",\n isConstant: true,\n serializedName: \"x-ms-blob-type\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp22 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"appendblock\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst maxSize = {\n parameterPath: [\"options\", \"appendPositionAccessConditions\", \"maxSize\"],\n mapper: {\n serializedName: \"x-ms-blob-condition-maxsize\",\n xmlName: \"x-ms-blob-condition-maxsize\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst appendPosition = {\n parameterPath: [\n \"options\",\n \"appendPositionAccessConditions\",\n \"appendPosition\"\n ],\n mapper: {\n serializedName: \"x-ms-blob-condition-appendpos\",\n xmlName: \"x-ms-blob-condition-appendpos\",\n type: {\n name: \"Number\"\n }\n }\n};\nconst sourceRange1 = {\n parameterPath: [\"options\", \"sourceRange\"],\n mapper: {\n serializedName: \"x-ms-source-range\",\n xmlName: \"x-ms-source-range\",\n type: {\n name: \"String\"\n }\n }\n};\nconst comp23 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"seal\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blobType2 = {\n parameterPath: \"blobType\",\n mapper: {\n defaultValue: \"BlockBlob\",\n isConstant: true,\n serializedName: \"x-ms-blob-type\",\n type: {\n name: \"String\"\n }\n }\n};\nconst copySourceBlobProperties = {\n parameterPath: [\"options\", \"copySourceBlobProperties\"],\n mapper: {\n serializedName: \"x-ms-copy-source-blob-properties\",\n xmlName: \"x-ms-copy-source-blob-properties\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nconst comp24 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"block\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blockId = {\n parameterPath: \"blockId\",\n mapper: {\n serializedName: \"blockid\",\n required: true,\n xmlName: \"blockid\",\n type: {\n name: \"String\"\n }\n }\n};\nconst blocks = {\n parameterPath: \"blocks\",\n mapper: BlockLookupList\n};\nconst comp25 = {\n parameterPath: \"comp\",\n mapper: {\n defaultValue: \"blocklist\",\n isConstant: true,\n serializedName: \"comp\",\n type: {\n name: \"String\"\n }\n }\n};\nconst listType = {\n parameterPath: \"listType\",\n mapper: {\n defaultValue: \"committed\",\n serializedName: \"blocklisttype\",\n required: true,\n xmlName: \"blocklisttype\",\n type: {\n name: \"Enum\",\n allowedValues: [\"committed\", \"uncommitted\", \"all\"]\n }\n }\n};\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n/** Class representing a Service. */\nclass Service {\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client) {\n this.client = client;\n }\n /**\n * Sets properties for a storage account's Blob service endpoint, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules\n * @param blobServiceProperties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(blobServiceProperties, options) {\n const operationArguments = {\n blobServiceProperties,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);\n }\n /**\n * gets the properties of a storage account's Blob service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$2);\n }\n /**\n * Retrieves statistics related to replication for the Blob service. It is only available on the\n * secondary location endpoint when read-access geo-redundant replication is enabled for the storage\n * account.\n * @param options The options parameters.\n */\n getStatistics(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);\n }\n /**\n * The List Containers Segment operation returns a list of the containers under the specified account\n * @param options The options parameters.\n */\n listContainersSegment(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, listContainersSegmentOperationSpec);\n }\n /**\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n * @param keyInfo Key information\n * @param options The options parameters.\n */\n getUserDelegationKey(keyInfo, options) {\n const operationArguments = {\n keyInfo,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getUserDelegationKeyOperationSpec);\n }\n /**\n * Returns the sku name and account kind\n * @param options The options parameters.\n */\n getAccountInfo(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec$2);\n }\n /**\n * The Batch operation allows multiple API calls to be embedded into a single HTTP request.\n * @param contentLength The length of the request.\n * @param multipartContentType Required. The value of this header must be multipart/mixed with a batch\n * boundary. Example header value: multipart/mixed; boundary=batch_\n * @param body Initial data\n * @param options The options parameters.\n */\n submitBatch(contentLength, multipartContentType, body, options) {\n const operationArguments = {\n contentLength,\n multipartContentType,\n body,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec$1);\n }\n /**\n * The Filter Blobs operation enables callers to list blobs across all containers whose tags match a\n * given search expression. Filter blobs searches across all containers within a storage account but\n * can be scoped within the expression to a single container.\n * @param options The options parameters.\n */\n filterBlobs(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, filterBlobsOperationSpec$1);\n }\n}\n// Operation Specifications\nconst xmlSerializer$5 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);\nconst setPropertiesOperationSpec = {\n path: \"/\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: ServiceSetPropertiesHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceSetPropertiesExceptionHeaders\n }\n },\n requestBody: blobServiceProperties,\n queryParameters: [\n restype,\n comp,\n timeoutInSeconds\n ],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer$5\n};\nconst getPropertiesOperationSpec$2 = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: BlobServiceProperties,\n headersMapper: ServiceGetPropertiesHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n restype,\n comp,\n timeoutInSeconds\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$5\n};\nconst getStatisticsOperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: BlobServiceStatistics,\n headersMapper: ServiceGetStatisticsHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceGetStatisticsExceptionHeaders\n }\n },\n queryParameters: [\n restype,\n timeoutInSeconds,\n comp1\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$5\n};\nconst listContainersSegmentOperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: ListContainersSegmentResponse,\n headersMapper: ServiceListContainersSegmentHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceListContainersSegmentExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n comp2,\n prefix,\n marker,\n maxPageSize,\n include\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$5\n};\nconst getUserDelegationKeyOperationSpec = {\n path: \"/\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: UserDelegationKey,\n headersMapper: ServiceGetUserDelegationKeyHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceGetUserDelegationKeyExceptionHeaders\n }\n },\n requestBody: keyInfo,\n queryParameters: [\n restype,\n timeoutInSeconds,\n comp3\n ],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer$5\n};\nconst getAccountInfoOperationSpec$2 = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: ServiceGetAccountInfoHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceGetAccountInfoExceptionHeaders\n }\n },\n queryParameters: [comp, restype1],\n urlParameters: [url],\n headerParameters: [version, accept1],\n isXML: true,\n serializer: xmlSerializer$5\n};\nconst submitBatchOperationSpec$1 = {\n path: \"/\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: ServiceSubmitBatchHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceSubmitBatchExceptionHeaders\n }\n },\n requestBody: body,\n queryParameters: [timeoutInSeconds, comp4],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId,\n contentLength,\n multipartContentType\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer$5\n};\nconst filterBlobsOperationSpec$1 = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: FilterBlobSegment,\n headersMapper: ServiceFilterBlobsHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ServiceFilterBlobsExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n marker,\n maxPageSize,\n comp5,\n where\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$5\n};\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n/** Class representing a Container. */\nclass Container {\n /**\n * Initialize a new instance of the class Container class.\n * @param client Reference to the service client\n */\n constructor(client) {\n this.client = client;\n }\n /**\n * creates a new container under the specified account. If the container with the same name already\n * exists, the operation fails\n * @param options The options parameters.\n */\n create(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);\n }\n /**\n * returns all user-defined metadata and system properties for the specified container. The data\n * returned does not include the container's list of blobs\n * @param options The options parameters.\n */\n getProperties(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$1);\n }\n /**\n * operation marks the specified container for deletion. The container and any blobs contained within\n * it are later deleted during garbage collection\n * @param options The options parameters.\n */\n delete(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);\n }\n /**\n * operation sets one or more user-defined name-value pairs for the specified container.\n * @param options The options parameters.\n */\n setMetadata(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$1);\n }\n /**\n * gets the permissions for the specified container. The permissions indicate whether container data\n * may be accessed publicly.\n * @param options The options parameters.\n */\n getAccessPolicy(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getAccessPolicyOperationSpec);\n }\n /**\n * sets the permissions for the specified container. The permissions indicate whether blobs in a\n * container may be accessed publicly.\n * @param options The options parameters.\n */\n setAccessPolicy(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setAccessPolicyOperationSpec);\n }\n /**\n * Restores a previously-deleted container.\n * @param options The options parameters.\n */\n restore(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, restoreOperationSpec);\n }\n /**\n * Renames an existing container.\n * @param sourceContainerName Required. Specifies the name of the container to rename.\n * @param options The options parameters.\n */\n rename(sourceContainerName, options) {\n const operationArguments = {\n sourceContainerName,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, renameOperationSpec);\n }\n /**\n * The Batch operation allows multiple API calls to be embedded into a single HTTP request.\n * @param contentLength The length of the request.\n * @param multipartContentType Required. The value of this header must be multipart/mixed with a batch\n * boundary. Example header value: multipart/mixed; boundary=batch_\n * @param body Initial data\n * @param options The options parameters.\n */\n submitBatch(contentLength, multipartContentType, body, options) {\n const operationArguments = {\n contentLength,\n multipartContentType,\n body,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec);\n }\n /**\n * The Filter Blobs operation enables callers to list blobs in a container whose tags match a given\n * search expression. Filter blobs searches within the given container.\n * @param options The options parameters.\n */\n filterBlobs(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, filterBlobsOperationSpec);\n }\n /**\n * [Update] establishes and manages a lock on a container for delete operations. The lock duration can\n * be 15 to 60 seconds, or can be infinite\n * @param options The options parameters.\n */\n acquireLease(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec$1);\n }\n /**\n * [Update] establishes and manages a lock on a container for delete operations. The lock duration can\n * be 15 to 60 seconds, or can be infinite\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(leaseId, options) {\n const operationArguments = {\n leaseId,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec$1);\n }\n /**\n * [Update] establishes and manages a lock on a container for delete operations. The lock duration can\n * be 15 to 60 seconds, or can be infinite\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n renewLease(leaseId, options) {\n const operationArguments = {\n leaseId,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec$1);\n }\n /**\n * [Update] establishes and manages a lock on a container for delete operations. The lock duration can\n * be 15 to 60 seconds, or can be infinite\n * @param options The options parameters.\n */\n breakLease(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec$1);\n }\n /**\n * [Update] establishes and manages a lock on a container for delete operations. The lock duration can\n * be 15 to 60 seconds, or can be infinite\n * @param leaseId Specifies the current lease ID on the resource.\n * @param proposedLeaseId Proposed lease ID, in a GUID string format. The Blob service returns 400\n * (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor\n * (String) for a list of valid GUID string formats.\n * @param options The options parameters.\n */\n changeLease(leaseId, proposedLeaseId, options) {\n const operationArguments = {\n leaseId,\n proposedLeaseId,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec$1);\n }\n /**\n * [Update] The List Blobs operation returns a list of the blobs under the specified container\n * @param options The options parameters.\n */\n listBlobFlatSegment(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, listBlobFlatSegmentOperationSpec);\n }\n /**\n * [Update] The List Blobs operation returns a list of the blobs under the specified container\n * @param delimiter When the request includes this parameter, the operation returns a BlobPrefix\n * element in the response body that acts as a placeholder for all blobs whose names begin with the\n * same substring up to the appearance of the delimiter character. The delimiter may be a single\n * character or a string.\n * @param options The options parameters.\n */\n listBlobHierarchySegment(delimiter, options) {\n const operationArguments = {\n delimiter,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, listBlobHierarchySegmentOperationSpec);\n }\n /**\n * Returns the sku name and account kind\n * @param options The options parameters.\n */\n getAccountInfo(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec$1);\n }\n}\n// Operation Specifications\nconst xmlSerializer$4 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);\nconst createOperationSpec$2 = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: ContainerCreateHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerCreateExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, restype2],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n metadata,\n access,\n defaultEncryptionScope,\n preventEncryptionScopeOverride\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst getPropertiesOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: ContainerGetPropertiesHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, restype2],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst deleteOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n headersMapper: ContainerDeleteHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerDeleteExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, restype2],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst setMetadataOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: ContainerSetMetadataHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerSetMetadataExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp6\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n metadata,\n leaseId,\n ifModifiedSince\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst getAccessPolicyOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"SignedIdentifier\" }\n }\n },\n serializedName: \"SignedIdentifiers\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\"\n },\n headersMapper: ContainerGetAccessPolicyHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerGetAccessPolicyExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp7\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst setAccessPolicyOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: ContainerSetAccessPolicyHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerSetAccessPolicyExceptionHeaders\n }\n },\n requestBody: containerAcl,\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp7\n ],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId,\n access,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer$4\n};\nconst restoreOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: ContainerRestoreHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerRestoreExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp8\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n deletedContainerName,\n deletedContainerVersion\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst renameOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: ContainerRenameHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerRenameExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp9\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n sourceContainerName,\n sourceLeaseId\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst submitBatchOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: ContainerSubmitBatchHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerSubmitBatchExceptionHeaders\n }\n },\n requestBody: body,\n queryParameters: [\n timeoutInSeconds,\n comp4,\n restype2\n ],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId,\n contentLength,\n multipartContentType\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer$4\n};\nconst filterBlobsOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: FilterBlobSegment,\n headersMapper: ContainerFilterBlobsHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerFilterBlobsExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n marker,\n maxPageSize,\n comp5,\n where,\n restype2\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst acquireLeaseOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: ContainerAcquireLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerAcquireLeaseExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp10\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n action,\n duration,\n proposedLeaseId\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst releaseLeaseOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: ContainerReleaseLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerReleaseLeaseExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp10\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n action1,\n leaseId1\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst renewLeaseOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: ContainerRenewLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerRenewLeaseExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp10\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n leaseId1,\n action2\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst breakLeaseOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: ContainerBreakLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerBreakLeaseExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp10\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n action3,\n breakPeriod\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst changeLeaseOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: ContainerChangeLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerChangeLeaseExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n restype2,\n comp10\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n leaseId1,\n action4,\n proposedLeaseId1\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst listBlobFlatSegmentOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: ListBlobsFlatSegmentResponse,\n headersMapper: ContainerListBlobFlatSegmentHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerListBlobFlatSegmentExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n comp2,\n prefix,\n marker,\n maxPageSize,\n restype2,\n include1\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst listBlobHierarchySegmentOperationSpec = {\n path: \"/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: ListBlobsHierarchySegmentResponse,\n headersMapper: ContainerListBlobHierarchySegmentHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerListBlobHierarchySegmentExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n comp2,\n prefix,\n marker,\n maxPageSize,\n restype2,\n include1,\n delimiter\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$4\n};\nconst getAccountInfoOperationSpec$1 = {\n path: \"/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: ContainerGetAccountInfoHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: ContainerGetAccountInfoExceptionHeaders\n }\n },\n queryParameters: [comp, restype1],\n urlParameters: [url],\n headerParameters: [version, accept1],\n isXML: true,\n serializer: xmlSerializer$4\n};\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n/** Class representing a Blob. */\nclass Blob$1 {\n /**\n * Initialize a new instance of the class Blob class.\n * @param client Reference to the service client\n */\n constructor(client) {\n this.client = client;\n }\n /**\n * The Download operation reads or downloads a blob from the system, including its metadata and\n * properties. You can also call Download to read a snapshot.\n * @param options The options parameters.\n */\n download(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, downloadOperationSpec);\n }\n /**\n * The Get Properties operation returns all user-defined metadata, standard HTTP properties, and system\n * properties for the blob. It does not return the content of the blob.\n * @param options The options parameters.\n */\n getProperties(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);\n }\n /**\n * If the storage account's soft delete feature is disabled then, when a blob is deleted, it is\n * permanently removed from the storage account. If the storage account's soft delete feature is\n * enabled, then, when a blob is deleted, it is marked for deletion and becomes inaccessible\n * immediately. However, the blob service retains the blob or snapshot for the number of days specified\n * by the DeleteRetentionPolicy section of [Storage service properties]\n * (Set-Blob-Service-Properties.md). After the specified number of days has passed, the blob's data is\n * permanently removed from the storage account. Note that you continue to be charged for the\n * soft-deleted blob's storage until it is permanently removed. Use the List Blobs API and specify the\n * \"include=deleted\" query parameter to discover which blobs and snapshots have been soft deleted. You\n * can then use the Undelete Blob API to restore a soft-deleted blob. All other operations on a\n * soft-deleted blob or snapshot causes the service to return an HTTP status code of 404\n * (ResourceNotFound).\n * @param options The options parameters.\n */\n delete(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);\n }\n /**\n * Undelete a blob that was previously soft deleted\n * @param options The options parameters.\n */\n undelete(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, undeleteOperationSpec);\n }\n /**\n * Sets the time a blob will expire and be deleted.\n * @param expiryOptions Required. Indicates mode of the expiry time\n * @param options The options parameters.\n */\n setExpiry(expiryOptions, options) {\n const operationArguments = {\n expiryOptions,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setExpiryOperationSpec);\n }\n /**\n * The Set HTTP Headers operation sets system properties on the blob\n * @param options The options parameters.\n */\n setHttpHeaders(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setHttpHeadersOperationSpec);\n }\n /**\n * The Set Immutability Policy operation sets the immutability policy on the blob\n * @param options The options parameters.\n */\n setImmutabilityPolicy(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setImmutabilityPolicyOperationSpec);\n }\n /**\n * The Delete Immutability Policy operation deletes the immutability policy on the blob\n * @param options The options parameters.\n */\n deleteImmutabilityPolicy(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, deleteImmutabilityPolicyOperationSpec);\n }\n /**\n * The Set Legal Hold operation sets a legal hold on the blob.\n * @param legalHold Specified if a legal hold should be set on the blob.\n * @param options The options parameters.\n */\n setLegalHold(legalHold, options) {\n const operationArguments = {\n legalHold,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setLegalHoldOperationSpec);\n }\n /**\n * The Set Blob Metadata operation sets user-defined metadata for the specified blob as one or more\n * name-value pairs\n * @param options The options parameters.\n */\n setMetadata(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);\n }\n /**\n * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete\n * operations\n * @param options The options parameters.\n */\n acquireLease(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);\n }\n /**\n * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(leaseId, options) {\n const operationArguments = {\n leaseId,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);\n }\n /**\n * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n renewLease(leaseId, options) {\n const operationArguments = {\n leaseId,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec);\n }\n /**\n * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param proposedLeaseId Proposed lease ID, in a GUID string format. The Blob service returns 400\n * (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor\n * (String) for a list of valid GUID string formats.\n * @param options The options parameters.\n */\n changeLease(leaseId, proposedLeaseId, options) {\n const operationArguments = {\n leaseId,\n proposedLeaseId,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);\n }\n /**\n * [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete\n * operations\n * @param options The options parameters.\n */\n breakLease(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);\n }\n /**\n * The Create Snapshot operation creates a read-only snapshot of a blob\n * @param options The options parameters.\n */\n createSnapshot(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, createSnapshotOperationSpec);\n }\n /**\n * The Start Copy From URL operation copies a blob or an internet resource to a new blob.\n * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to\n * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would\n * appear in a request URI. The source blob must either be public or must be authenticated via a shared\n * access signature.\n * @param options The options parameters.\n */\n startCopyFromURL(copySource, options) {\n const operationArguments = {\n copySource,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, startCopyFromURLOperationSpec);\n }\n /**\n * The Copy From URL operation copies a blob or an internet resource to a new blob. It will not return\n * a response until the copy is complete.\n * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to\n * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would\n * appear in a request URI. The source blob must either be public or must be authenticated via a shared\n * access signature.\n * @param options The options parameters.\n */\n copyFromURL(copySource, options) {\n const operationArguments = {\n copySource,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, copyFromURLOperationSpec);\n }\n /**\n * The Abort Copy From URL operation aborts a pending Copy From URL operation, and leaves a destination\n * blob with zero length and full metadata.\n * @param copyId The copy identifier provided in the x-ms-copy-id header of the original Copy Blob\n * operation.\n * @param options The options parameters.\n */\n abortCopyFromURL(copyId, options) {\n const operationArguments = {\n copyId,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, abortCopyFromURLOperationSpec);\n }\n /**\n * The Set Tier operation sets the tier on a blob. The operation is allowed on a page blob in a premium\n * storage account and on a block blob in a blob storage account (locally redundant storage only). A\n * premium page blob's tier determines the allowed size, IOPS, and bandwidth of the blob. A block\n * blob's tier determines Hot/Cool/Archive storage type. This operation does not update the blob's\n * ETag.\n * @param tier Indicates the tier to be set on the blob.\n * @param options The options parameters.\n */\n setTier(tier, options) {\n const operationArguments = {\n tier,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setTierOperationSpec);\n }\n /**\n * Returns the sku name and account kind\n * @param options The options parameters.\n */\n getAccountInfo(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec);\n }\n /**\n * The Query operation enables users to select/project on blob data by providing simple query\n * expressions.\n * @param options The options parameters.\n */\n query(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, queryOperationSpec);\n }\n /**\n * The Get Tags operation enables users to get the tags associated with a blob.\n * @param options The options parameters.\n */\n getTags(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getTagsOperationSpec);\n }\n /**\n * The Set Tags operation enables users to set tags on a blob.\n * @param options The options parameters.\n */\n setTags(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, setTagsOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer$3 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);\nconst downloadOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: BlobDownloadHeaders\n },\n 206: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: BlobDownloadHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobDownloadExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n snapshot,\n versionId\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n range,\n rangeGetContentMD5,\n rangeGetContentCRC64,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst getPropertiesOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: BlobGetPropertiesHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n snapshot,\n versionId\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst deleteOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n headersMapper: BlobDeleteHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobDeleteExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n snapshot,\n versionId,\n blobDeleteType\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n ifMatch,\n ifNoneMatch,\n ifTags,\n deleteSnapshots\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst undeleteOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobUndeleteHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobUndeleteExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp8],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst setExpiryOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobSetExpiryHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobSetExpiryExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp11],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n expiryOptions,\n expiresOn\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst setHttpHeadersOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobSetHttpHeadersHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobSetHttpHeadersExceptionHeaders\n }\n },\n queryParameters: [comp, timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n ifMatch,\n ifNoneMatch,\n ifTags,\n blobCacheControl,\n blobContentType,\n blobContentMD5,\n blobContentEncoding,\n blobContentLanguage,\n blobContentDisposition\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst setImmutabilityPolicyOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobSetImmutabilityPolicyHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobSetImmutabilityPolicyExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp12],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifUnmodifiedSince,\n immutabilityPolicyExpiry,\n immutabilityPolicyMode\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst deleteImmutabilityPolicyOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: BlobDeleteImmutabilityPolicyHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobDeleteImmutabilityPolicyExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp12],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst setLegalHoldOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobSetLegalHoldHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobSetLegalHoldExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp13],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n legalHold\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst setMetadataOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobSetMetadataHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobSetMetadataExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp6],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst acquireLeaseOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: BlobAcquireLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobAcquireLeaseExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp10],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n action,\n duration,\n proposedLeaseId,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst releaseLeaseOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobReleaseLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobReleaseLeaseExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp10],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n action1,\n leaseId1,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst renewLeaseOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobRenewLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobRenewLeaseExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp10],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n leaseId1,\n action2,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst changeLeaseOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobChangeLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobChangeLeaseExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp10],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n leaseId1,\n action4,\n proposedLeaseId1,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst breakLeaseOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: BlobBreakLeaseHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobBreakLeaseExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp10],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n action3,\n breakPeriod,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst createSnapshotOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: BlobCreateSnapshotHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobCreateSnapshotExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp14],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst startCopyFromURLOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: BlobStartCopyFromURLHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobStartCopyFromURLExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n ifMatch,\n ifNoneMatch,\n ifTags,\n immutabilityPolicyExpiry,\n immutabilityPolicyMode,\n tier,\n rehydratePriority,\n sourceIfModifiedSince,\n sourceIfUnmodifiedSince,\n sourceIfMatch,\n sourceIfNoneMatch,\n sourceIfTags,\n copySource,\n blobTagsString,\n sealBlob,\n legalHold1\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst copyFromURLOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: BlobCopyFromURLHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobCopyFromURLExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n ifMatch,\n ifNoneMatch,\n ifTags,\n immutabilityPolicyExpiry,\n immutabilityPolicyMode,\n encryptionScope,\n tier,\n sourceIfModifiedSince,\n sourceIfUnmodifiedSince,\n sourceIfMatch,\n sourceIfNoneMatch,\n copySource,\n blobTagsString,\n legalHold1,\n xMsRequiresSync,\n sourceContentMD5,\n copySourceAuthorization,\n copySourceTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst abortCopyFromURLOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: BlobAbortCopyFromURLHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobAbortCopyFromURLExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n comp15,\n copyId\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n copyActionAbortConstant\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst setTierOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: BlobSetTierHeaders\n },\n 202: {\n headersMapper: BlobSetTierHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobSetTierExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n snapshot,\n versionId,\n comp16\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifTags,\n rehydratePriority,\n tier1\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst getAccountInfoOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: BlobGetAccountInfoHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobGetAccountInfoExceptionHeaders\n }\n },\n queryParameters: [comp, restype1],\n urlParameters: [url],\n headerParameters: [version, accept1],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst queryOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: BlobQueryHeaders\n },\n 206: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: BlobQueryHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobQueryExceptionHeaders\n }\n },\n requestBody: queryRequest,\n queryParameters: [\n timeoutInSeconds,\n snapshot,\n comp17\n ],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer$3\n};\nconst getTagsOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: BlobTags,\n headersMapper: BlobGetTagsHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobGetTagsExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n snapshot,\n versionId,\n comp18\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$3\n};\nconst setTagsOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: BlobSetTagsHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlobSetTagsExceptionHeaders\n }\n },\n requestBody: tags,\n queryParameters: [\n timeoutInSeconds,\n versionId,\n comp18\n ],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId,\n leaseId,\n ifTags,\n transactionalContentMD5,\n transactionalContentCrc64\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer$3\n};\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n/** Class representing a PageBlob. */\nclass PageBlob {\n /**\n * Initialize a new instance of the class PageBlob class.\n * @param client Reference to the service client\n */\n constructor(client) {\n this.client = client;\n }\n /**\n * The Create operation creates a new page blob.\n * @param contentLength The length of the request.\n * @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. The\n * page blob size must be aligned to a 512-byte boundary.\n * @param options The options parameters.\n */\n create(contentLength, blobContentLength, options) {\n const operationArguments = {\n contentLength,\n blobContentLength,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);\n }\n /**\n * The Upload Pages operation writes a range of pages to a page blob\n * @param contentLength The length of the request.\n * @param body Initial data\n * @param options The options parameters.\n */\n uploadPages(contentLength, body, options) {\n const operationArguments = {\n contentLength,\n body,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, uploadPagesOperationSpec);\n }\n /**\n * The Clear Pages operation clears a set of pages from a page blob\n * @param contentLength The length of the request.\n * @param options The options parameters.\n */\n clearPages(contentLength, options) {\n const operationArguments = {\n contentLength,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, clearPagesOperationSpec);\n }\n /**\n * The Upload Pages operation writes a range of pages to a page blob where the contents are read from a\n * URL\n * @param sourceUrl Specify a URL to the copy source.\n * @param sourceRange Bytes of source data in the specified range. The length of this range should\n * match the ContentLength header and x-ms-range/Range destination range header.\n * @param contentLength The length of the request.\n * @param range The range of bytes to which the source range would be written. The range should be 512\n * aligned and range-end is required.\n * @param options The options parameters.\n */\n uploadPagesFromURL(sourceUrl, sourceRange, contentLength, range, options) {\n const operationArguments = {\n sourceUrl,\n sourceRange,\n contentLength,\n range,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, uploadPagesFromURLOperationSpec);\n }\n /**\n * The Get Page Ranges operation returns the list of valid page ranges for a page blob or snapshot of a\n * page blob\n * @param options The options parameters.\n */\n getPageRanges(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getPageRangesOperationSpec);\n }\n /**\n * The Get Page Ranges Diff operation returns the list of valid page ranges for a page blob that were\n * changed between target blob and previous snapshot.\n * @param options The options parameters.\n */\n getPageRangesDiff(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getPageRangesDiffOperationSpec);\n }\n /**\n * Resize the Blob\n * @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. The\n * page blob size must be aligned to a 512-byte boundary.\n * @param options The options parameters.\n */\n resize(blobContentLength, options) {\n const operationArguments = {\n blobContentLength,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, resizeOperationSpec);\n }\n /**\n * Update the sequence number of the blob\n * @param sequenceNumberAction Required if the x-ms-blob-sequence-number header is set for the request.\n * This property applies to page blobs only. This property indicates how the service should modify the\n * blob's sequence number\n * @param options The options parameters.\n */\n updateSequenceNumber(sequenceNumberAction, options) {\n const operationArguments = {\n sequenceNumberAction,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, updateSequenceNumberOperationSpec);\n }\n /**\n * The Copy Incremental operation copies a snapshot of the source page blob to a destination page blob.\n * The snapshot is copied such that only the differential changes between the previously copied\n * snapshot are transferred to the destination. The copied snapshots are complete copies of the\n * original snapshot and can be read or copied from as usual. This API is supported since REST version\n * 2016-05-31.\n * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to\n * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would\n * appear in a request URI. The source blob must either be public or must be authenticated via a shared\n * access signature.\n * @param options The options parameters.\n */\n copyIncremental(copySource, options) {\n const operationArguments = {\n copySource,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, copyIncrementalOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer$2 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);\nconst serializer$2 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);\nconst createOperationSpec$1 = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: PageBlobCreateHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobCreateExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n contentLength,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n blobCacheControl,\n blobContentType,\n blobContentMD5,\n blobContentEncoding,\n blobContentLanguage,\n blobContentDisposition,\n immutabilityPolicyExpiry,\n immutabilityPolicyMode,\n encryptionScope,\n tier,\n blobTagsString,\n legalHold1,\n blobType,\n blobContentLength,\n blobSequenceNumber\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\nconst uploadPagesOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: PageBlobUploadPagesHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobUploadPagesExceptionHeaders\n }\n },\n requestBody: body1,\n queryParameters: [timeoutInSeconds, comp19],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n contentLength,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n range,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope,\n transactionalContentMD5,\n transactionalContentCrc64,\n contentType1,\n accept2,\n pageWrite,\n ifSequenceNumberLessThanOrEqualTo,\n ifSequenceNumberLessThan,\n ifSequenceNumberEqualTo\n ],\n mediaType: \"binary\",\n serializer: serializer$2\n};\nconst clearPagesOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: PageBlobClearPagesHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobClearPagesExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp19],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n contentLength,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n range,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope,\n ifSequenceNumberLessThanOrEqualTo,\n ifSequenceNumberLessThan,\n ifSequenceNumberEqualTo,\n pageWrite1\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\nconst uploadPagesFromURLOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: PageBlobUploadPagesFromURLHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobUploadPagesFromURLExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp19],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n contentLength,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope,\n sourceIfModifiedSince,\n sourceIfUnmodifiedSince,\n sourceIfMatch,\n sourceIfNoneMatch,\n sourceContentMD5,\n copySourceAuthorization,\n pageWrite,\n ifSequenceNumberLessThanOrEqualTo,\n ifSequenceNumberLessThan,\n ifSequenceNumberEqualTo,\n sourceUrl,\n sourceRange,\n sourceContentCrc64,\n range1\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\nconst getPageRangesOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: PageList,\n headersMapper: PageBlobGetPageRangesHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobGetPageRangesExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n marker,\n maxPageSize,\n snapshot,\n comp20\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n range,\n ifMatch,\n ifNoneMatch,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\nconst getPageRangesDiffOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: PageList,\n headersMapper: PageBlobGetPageRangesDiffHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobGetPageRangesDiffExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n marker,\n maxPageSize,\n snapshot,\n comp20,\n prevsnapshot\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n range,\n ifMatch,\n ifNoneMatch,\n ifTags,\n prevSnapshotUrl\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\nconst resizeOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: PageBlobResizeHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobResizeExceptionHeaders\n }\n },\n queryParameters: [comp, timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope,\n blobContentLength\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\nconst updateSequenceNumberOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: PageBlobUpdateSequenceNumberHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobUpdateSequenceNumberExceptionHeaders\n }\n },\n queryParameters: [comp, timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n ifMatch,\n ifNoneMatch,\n ifTags,\n blobSequenceNumber,\n sequenceNumberAction\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\nconst copyIncrementalOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: PageBlobCopyIncrementalHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: PageBlobCopyIncrementalExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp21],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n ifModifiedSince,\n ifUnmodifiedSince,\n ifMatch,\n ifNoneMatch,\n ifTags,\n copySource\n ],\n isXML: true,\n serializer: xmlSerializer$2\n};\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n/** Class representing a AppendBlob. */\nclass AppendBlob {\n /**\n * Initialize a new instance of the class AppendBlob class.\n * @param client Reference to the service client\n */\n constructor(client) {\n this.client = client;\n }\n /**\n * The Create Append Blob operation creates a new append blob.\n * @param contentLength The length of the request.\n * @param options The options parameters.\n */\n create(contentLength, options) {\n const operationArguments = {\n contentLength,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, createOperationSpec);\n }\n /**\n * The Append Block operation commits a new block of data to the end of an existing append blob. The\n * Append Block operation is permitted only if the blob was created with x-ms-blob-type set to\n * AppendBlob. Append Block is supported only on version 2015-02-21 version or later.\n * @param contentLength The length of the request.\n * @param body Initial data\n * @param options The options parameters.\n */\n appendBlock(contentLength, body, options) {\n const operationArguments = {\n contentLength,\n body,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, appendBlockOperationSpec);\n }\n /**\n * The Append Block operation commits a new block of data to the end of an existing append blob where\n * the contents are read from a source url. The Append Block operation is permitted only if the blob\n * was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on version\n * 2015-02-21 version or later.\n * @param sourceUrl Specify a URL to the copy source.\n * @param contentLength The length of the request.\n * @param options The options parameters.\n */\n appendBlockFromUrl(sourceUrl, contentLength, options) {\n const operationArguments = {\n sourceUrl,\n contentLength,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, appendBlockFromUrlOperationSpec);\n }\n /**\n * The Seal operation seals the Append Blob to make it read-only. Seal is supported only on version\n * 2019-12-12 version or later.\n * @param options The options parameters.\n */\n seal(options) {\n const operationArguments = {\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, sealOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);\nconst serializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);\nconst createOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: AppendBlobCreateHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: AppendBlobCreateExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n contentLength,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n blobCacheControl,\n blobContentType,\n blobContentMD5,\n blobContentEncoding,\n blobContentLanguage,\n blobContentDisposition,\n immutabilityPolicyExpiry,\n immutabilityPolicyMode,\n encryptionScope,\n blobTagsString,\n legalHold1,\n blobType1\n ],\n isXML: true,\n serializer: xmlSerializer$1\n};\nconst appendBlockOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: AppendBlobAppendBlockHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: AppendBlobAppendBlockExceptionHeaders\n }\n },\n requestBody: body1,\n queryParameters: [timeoutInSeconds, comp22],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n contentLength,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope,\n transactionalContentMD5,\n transactionalContentCrc64,\n contentType1,\n accept2,\n maxSize,\n appendPosition\n ],\n mediaType: \"binary\",\n serializer: serializer$1\n};\nconst appendBlockFromUrlOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: AppendBlobAppendBlockFromUrlHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: AppendBlobAppendBlockFromUrlExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp22],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n contentLength,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n encryptionScope,\n sourceIfModifiedSince,\n sourceIfUnmodifiedSince,\n sourceIfMatch,\n sourceIfNoneMatch,\n sourceContentMD5,\n copySourceAuthorization,\n transactionalContentMD5,\n sourceUrl,\n sourceContentCrc64,\n maxSize,\n appendPosition,\n sourceRange1\n ],\n isXML: true,\n serializer: xmlSerializer$1\n};\nconst sealOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: AppendBlobSealHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: AppendBlobSealExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds, comp23],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n ifMatch,\n ifNoneMatch,\n appendPosition\n ],\n isXML: true,\n serializer: xmlSerializer$1\n};\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n/** Class representing a BlockBlob. */\nclass BlockBlob {\n /**\n * Initialize a new instance of the class BlockBlob class.\n * @param client Reference to the service client\n */\n constructor(client) {\n this.client = client;\n }\n /**\n * The Upload Block Blob operation updates the content of an existing block blob. Updating an existing\n * block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put\n * Blob; the content of the existing blob is overwritten with the content of the new blob. To perform a\n * partial update of the content of a block blob, use the Put Block List operation.\n * @param contentLength The length of the request.\n * @param body Initial data\n * @param options The options parameters.\n */\n upload(contentLength, body, options) {\n const operationArguments = {\n contentLength,\n body,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, uploadOperationSpec);\n }\n /**\n * The Put Blob from URL operation creates a new Block Blob where the contents of the blob are read\n * from a given URL. This API is supported beginning with the 2020-04-08 version. Partial updates are\n * not supported with Put Blob from URL; the content of an existing blob is overwritten with the\n * content of the new blob. To perform partial updates to a block blob’s contents using a source URL,\n * use the Put Block from URL API in conjunction with Put Block List.\n * @param contentLength The length of the request.\n * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to\n * 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would\n * appear in a request URI. The source blob must either be public or must be authenticated via a shared\n * access signature.\n * @param options The options parameters.\n */\n putBlobFromUrl(contentLength, copySource, options) {\n const operationArguments = {\n contentLength,\n copySource,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, putBlobFromUrlOperationSpec);\n }\n /**\n * The Stage Block operation creates a new block to be committed as part of a blob\n * @param blockId A valid Base64 string value that identifies the block. Prior to encoding, the string\n * must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified\n * for the blockid parameter must be the same size for each block.\n * @param contentLength The length of the request.\n * @param body Initial data\n * @param options The options parameters.\n */\n stageBlock(blockId, contentLength, body, options) {\n const operationArguments = {\n blockId,\n contentLength,\n body,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, stageBlockOperationSpec);\n }\n /**\n * The Stage Block operation creates a new block to be committed as part of a blob where the contents\n * are read from a URL.\n * @param blockId A valid Base64 string value that identifies the block. Prior to encoding, the string\n * must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified\n * for the blockid parameter must be the same size for each block.\n * @param contentLength The length of the request.\n * @param sourceUrl Specify a URL to the copy source.\n * @param options The options parameters.\n */\n stageBlockFromURL(blockId, contentLength, sourceUrl, options) {\n const operationArguments = {\n blockId,\n contentLength,\n sourceUrl,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, stageBlockFromURLOperationSpec);\n }\n /**\n * The Commit Block List operation writes a blob by specifying the list of block IDs that make up the\n * blob. In order to be written as part of a blob, a block must have been successfully written to the\n * server in a prior Put Block operation. You can call Put Block List to update a blob by uploading\n * only those blocks that have changed, then committing the new and existing blocks together. You can\n * do this by specifying whether to commit a block from the committed block list or from the\n * uncommitted block list, or to commit the most recently uploaded version of the block, whichever list\n * it may belong to.\n * @param blocks Blob Blocks.\n * @param options The options parameters.\n */\n commitBlockList(blocks, options) {\n const operationArguments = {\n blocks,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, commitBlockListOperationSpec);\n }\n /**\n * The Get Block List operation retrieves the list of blocks that have been uploaded as part of a block\n * blob\n * @param listType Specifies whether to return the list of committed blocks, the list of uncommitted\n * blocks, or both lists together.\n * @param options The options parameters.\n */\n getBlockList(listType, options) {\n const operationArguments = {\n listType,\n options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getBlockListOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);\nconst serializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);\nconst uploadOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: BlockBlobUploadHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlockBlobUploadExceptionHeaders\n }\n },\n requestBody: body1,\n queryParameters: [timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n contentLength,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n blobCacheControl,\n blobContentType,\n blobContentMD5,\n blobContentEncoding,\n blobContentLanguage,\n blobContentDisposition,\n immutabilityPolicyExpiry,\n immutabilityPolicyMode,\n encryptionScope,\n tier,\n blobTagsString,\n legalHold1,\n transactionalContentMD5,\n transactionalContentCrc64,\n contentType1,\n accept2,\n blobType2\n ],\n mediaType: \"binary\",\n serializer\n};\nconst putBlobFromUrlOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: BlockBlobPutBlobFromUrlHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlockBlobPutBlobFromUrlExceptionHeaders\n }\n },\n queryParameters: [timeoutInSeconds],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n contentLength,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n blobCacheControl,\n blobContentType,\n blobContentMD5,\n blobContentEncoding,\n blobContentLanguage,\n blobContentDisposition,\n encryptionScope,\n tier,\n sourceIfModifiedSince,\n sourceIfUnmodifiedSince,\n sourceIfMatch,\n sourceIfNoneMatch,\n sourceIfTags,\n copySource,\n blobTagsString,\n sourceContentMD5,\n copySourceAuthorization,\n copySourceTags,\n transactionalContentMD5,\n blobType2,\n copySourceBlobProperties\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst stageBlockOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: BlockBlobStageBlockHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlockBlobStageBlockExceptionHeaders\n }\n },\n requestBody: body1,\n queryParameters: [\n timeoutInSeconds,\n comp24,\n blockId\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n contentLength,\n leaseId,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n encryptionScope,\n transactionalContentMD5,\n transactionalContentCrc64,\n contentType1,\n accept2\n ],\n mediaType: \"binary\",\n serializer\n};\nconst stageBlockFromURLOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: BlockBlobStageBlockFromURLHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlockBlobStageBlockFromURLExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n comp24,\n blockId\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n contentLength,\n leaseId,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n encryptionScope,\n sourceIfModifiedSince,\n sourceIfUnmodifiedSince,\n sourceIfMatch,\n sourceIfNoneMatch,\n sourceContentMD5,\n copySourceAuthorization,\n sourceUrl,\n sourceContentCrc64,\n sourceRange1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst commitBlockListOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: BlockBlobCommitBlockListHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlockBlobCommitBlockListExceptionHeaders\n }\n },\n requestBody: blocks,\n queryParameters: [timeoutInSeconds, comp25],\n urlParameters: [url],\n headerParameters: [\n contentType,\n accept,\n version,\n requestId,\n metadata,\n leaseId,\n ifModifiedSince,\n ifUnmodifiedSince,\n encryptionKey,\n encryptionKeySha256,\n encryptionAlgorithm,\n ifMatch,\n ifNoneMatch,\n ifTags,\n blobCacheControl,\n blobContentType,\n blobContentMD5,\n blobContentEncoding,\n blobContentLanguage,\n blobContentDisposition,\n immutabilityPolicyExpiry,\n immutabilityPolicyMode,\n encryptionScope,\n tier,\n blobTagsString,\n legalHold1,\n transactionalContentMD5,\n transactionalContentCrc64\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst getBlockListOperationSpec = {\n path: \"/{containerName}/{blob}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: BlockList,\n headersMapper: BlockBlobGetBlockListHeaders\n },\n default: {\n bodyMapper: StorageError,\n headersMapper: BlockBlobGetBlockListExceptionHeaders\n }\n },\n queryParameters: [\n timeoutInSeconds,\n snapshot,\n comp25,\n listType\n ],\n urlParameters: [url],\n headerParameters: [\n version,\n requestId,\n accept1,\n leaseId,\n ifTags\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n\n// Copyright (c) Microsoft Corporation.\n/**\n * The `@azure/logger` configuration for this package.\n */\nconst logger = logger$1.createClientLogger(\"storage-blob\");\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nconst SDK_VERSION = \"12.17.0\";\nconst SERVICE_VERSION = \"2023-11-03\";\nconst BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB\nconst BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB\nconst BLOCK_BLOB_MAX_BLOCKS = 50000;\nconst DEFAULT_BLOCK_BUFFER_SIZE_BYTES = 8 * 1024 * 1024; // 8MB\nconst DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES = 4 * 1024 * 1024; // 4MB\nconst DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;\nconst REQUEST_TIMEOUT = 100 * 1000; // In ms\n/**\n * The OAuth scope to use with Azure Storage.\n */\nconst StorageOAuthScopes = \"https://storage.azure.com/.default\";\nconst URLConstants = {\n Parameters: {\n FORCE_BROWSER_NO_CACHE: \"_\",\n SIGNATURE: \"sig\",\n SNAPSHOT: \"snapshot\",\n VERSIONID: \"versionid\",\n TIMEOUT: \"timeout\",\n },\n};\nconst HTTPURLConnection = {\n HTTP_ACCEPTED: 202,\n HTTP_CONFLICT: 409,\n HTTP_NOT_FOUND: 404,\n HTTP_PRECON_FAILED: 412,\n HTTP_RANGE_NOT_SATISFIABLE: 416,\n};\nconst HeaderConstants = {\n AUTHORIZATION: \"Authorization\",\n AUTHORIZATION_SCHEME: \"Bearer\",\n CONTENT_ENCODING: \"Content-Encoding\",\n CONTENT_ID: \"Content-ID\",\n CONTENT_LANGUAGE: \"Content-Language\",\n CONTENT_LENGTH: \"Content-Length\",\n CONTENT_MD5: \"Content-Md5\",\n CONTENT_TRANSFER_ENCODING: \"Content-Transfer-Encoding\",\n CONTENT_TYPE: \"Content-Type\",\n COOKIE: \"Cookie\",\n DATE: \"date\",\n IF_MATCH: \"if-match\",\n IF_MODIFIED_SINCE: \"if-modified-since\",\n IF_NONE_MATCH: \"if-none-match\",\n IF_UNMODIFIED_SINCE: \"if-unmodified-since\",\n PREFIX_FOR_STORAGE: \"x-ms-\",\n RANGE: \"Range\",\n USER_AGENT: \"User-Agent\",\n X_MS_CLIENT_REQUEST_ID: \"x-ms-client-request-id\",\n X_MS_COPY_SOURCE: \"x-ms-copy-source\",\n X_MS_DATE: \"x-ms-date\",\n X_MS_ERROR_CODE: \"x-ms-error-code\",\n X_MS_VERSION: \"x-ms-version\",\n};\nconst ETagNone = \"\";\nconst ETagAny = \"*\";\nconst SIZE_1_MB = 1 * 1024 * 1024;\nconst BATCH_MAX_REQUEST = 256;\nconst BATCH_MAX_PAYLOAD_IN_BYTES = 4 * SIZE_1_MB;\nconst HTTP_LINE_ENDING = \"\\r\\n\";\nconst HTTP_VERSION_1_1 = \"HTTP/1.1\";\nconst EncryptionAlgorithmAES25 = \"AES256\";\nconst DevelopmentConnectionString = `DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;\nconst StorageBlobLoggingAllowedHeaderNames = [\n \"Access-Control-Allow-Origin\",\n \"Cache-Control\",\n \"Content-Length\",\n \"Content-Type\",\n \"Date\",\n \"Request-Id\",\n \"traceparent\",\n \"Transfer-Encoding\",\n \"User-Agent\",\n \"x-ms-client-request-id\",\n \"x-ms-date\",\n \"x-ms-error-code\",\n \"x-ms-request-id\",\n \"x-ms-return-client-request-id\",\n \"x-ms-version\",\n \"Accept-Ranges\",\n \"Content-Disposition\",\n \"Content-Encoding\",\n \"Content-Language\",\n \"Content-MD5\",\n \"Content-Range\",\n \"ETag\",\n \"Last-Modified\",\n \"Server\",\n \"Vary\",\n \"x-ms-content-crc64\",\n \"x-ms-copy-action\",\n \"x-ms-copy-completion-time\",\n \"x-ms-copy-id\",\n \"x-ms-copy-progress\",\n \"x-ms-copy-status\",\n \"x-ms-has-immutability-policy\",\n \"x-ms-has-legal-hold\",\n \"x-ms-lease-state\",\n \"x-ms-lease-status\",\n \"x-ms-range\",\n \"x-ms-request-server-encrypted\",\n \"x-ms-server-encrypted\",\n \"x-ms-snapshot\",\n \"x-ms-source-range\",\n \"If-Match\",\n \"If-Modified-Since\",\n \"If-None-Match\",\n \"If-Unmodified-Since\",\n \"x-ms-access-tier\",\n \"x-ms-access-tier-change-time\",\n \"x-ms-access-tier-inferred\",\n \"x-ms-account-kind\",\n \"x-ms-archive-status\",\n \"x-ms-blob-append-offset\",\n \"x-ms-blob-cache-control\",\n \"x-ms-blob-committed-block-count\",\n \"x-ms-blob-condition-appendpos\",\n \"x-ms-blob-condition-maxsize\",\n \"x-ms-blob-content-disposition\",\n \"x-ms-blob-content-encoding\",\n \"x-ms-blob-content-language\",\n \"x-ms-blob-content-length\",\n \"x-ms-blob-content-md5\",\n \"x-ms-blob-content-type\",\n \"x-ms-blob-public-access\",\n \"x-ms-blob-sequence-number\",\n \"x-ms-blob-type\",\n \"x-ms-copy-destination-snapshot\",\n \"x-ms-creation-time\",\n \"x-ms-default-encryption-scope\",\n \"x-ms-delete-snapshots\",\n \"x-ms-delete-type-permanent\",\n \"x-ms-deny-encryption-scope-override\",\n \"x-ms-encryption-algorithm\",\n \"x-ms-if-sequence-number-eq\",\n \"x-ms-if-sequence-number-le\",\n \"x-ms-if-sequence-number-lt\",\n \"x-ms-incremental-copy\",\n \"x-ms-lease-action\",\n \"x-ms-lease-break-period\",\n \"x-ms-lease-duration\",\n \"x-ms-lease-id\",\n \"x-ms-lease-time\",\n \"x-ms-page-write\",\n \"x-ms-proposed-lease-id\",\n \"x-ms-range-get-content-md5\",\n \"x-ms-rehydrate-priority\",\n \"x-ms-sequence-number-action\",\n \"x-ms-sku-name\",\n \"x-ms-source-content-md5\",\n \"x-ms-source-if-match\",\n \"x-ms-source-if-modified-since\",\n \"x-ms-source-if-none-match\",\n \"x-ms-source-if-unmodified-since\",\n \"x-ms-tag-count\",\n \"x-ms-encryption-key-sha256\",\n \"x-ms-if-tags\",\n \"x-ms-source-if-tags\",\n];\nconst StorageBlobLoggingAllowedQueryParameters = [\n \"comp\",\n \"maxresults\",\n \"rscc\",\n \"rscd\",\n \"rsce\",\n \"rscl\",\n \"rsct\",\n \"se\",\n \"si\",\n \"sip\",\n \"sp\",\n \"spr\",\n \"sr\",\n \"srt\",\n \"ss\",\n \"st\",\n \"sv\",\n \"include\",\n \"marker\",\n \"prefix\",\n \"copyid\",\n \"restype\",\n \"blockid\",\n \"blocklisttype\",\n \"delimiter\",\n \"prevsnapshot\",\n \"ske\",\n \"skoid\",\n \"sks\",\n \"skt\",\n \"sktid\",\n \"skv\",\n \"snapshot\",\n];\nconst BlobUsesCustomerSpecifiedEncryptionMsg = \"BlobUsesCustomerSpecifiedEncryption\";\nconst BlobDoesNotUseCustomerSpecifiedEncryption = \"BlobDoesNotUseCustomerSpecifiedEncryption\";\n/// List of ports used for path style addressing.\n/// Path style addressing means that storage account is put in URI's Path segment in instead of in host.\nconst PathStylePorts = [\n \"10000\",\n \"10001\",\n \"10002\",\n \"10003\",\n \"10004\",\n \"10100\",\n \"10101\",\n \"10102\",\n \"10103\",\n \"10104\",\n \"11000\",\n \"11001\",\n \"11002\",\n \"11003\",\n \"11004\",\n \"11100\",\n \"11101\",\n \"11102\",\n \"11103\",\n \"11104\",\n];\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Reserved URL characters must be properly escaped for Storage services like Blob or File.\n *\n * ## URL encode and escape strategy for JS SDKs\n *\n * When customers pass a URL string into XxxClient classes constructor, the URL string may already be URL encoded or not.\n * But before sending to Azure Storage server, the URL must be encoded. However, it's hard for a SDK to guess whether the URL\n * string has been encoded or not. We have 2 potential strategies, and chose strategy two for the XxxClient constructors.\n *\n * ### Strategy One: Assume the customer URL string is not encoded, and always encode URL string in SDK.\n *\n * This is what legacy V2 SDK does, simple and works for most of the cases.\n * - When customer URL string is \"http://account.blob.core.windows.net/con/b:\",\n * SDK will encode it to \"http://account.blob.core.windows.net/con/b%3A\" and send to server. A blob named \"b:\" will be created.\n * - When customer URL string is \"http://account.blob.core.windows.net/con/b%3A\",\n * SDK will encode it to \"http://account.blob.core.windows.net/con/b%253A\" and send to server. A blob named \"b%3A\" will be created.\n *\n * But this strategy will make it not possible to create a blob with \"?\" in it's name. Because when customer URL string is\n * \"http://account.blob.core.windows.net/con/blob?name\", the \"?name\" will be treated as URL paramter instead of blob name.\n * If customer URL string is \"http://account.blob.core.windows.net/con/blob%3Fname\", a blob named \"blob%3Fname\" will be created.\n * V2 SDK doesn't have this issue because it doesn't allow customer pass in a full URL, it accepts a separate blob name and encodeURIComponent for it.\n * We cannot accept a SDK cannot create a blob name with \"?\". So we implement strategy two:\n *\n * ### Strategy Two: SDK doesn't assume the URL has been encoded or not. It will just escape the special characters.\n *\n * This is what V10 Blob Go SDK does. It accepts a URL type in Go, and call url.EscapedPath() to escape the special chars unescaped.\n * - When customer URL string is \"http://account.blob.core.windows.net/con/b:\",\n * SDK will escape \":\" like \"http://account.blob.core.windows.net/con/b%3A\" and send to server. A blob named \"b:\" will be created.\n * - When customer URL string is \"http://account.blob.core.windows.net/con/b%3A\",\n * There is no special characters, so send \"http://account.blob.core.windows.net/con/b%3A\" to server. A blob named \"b:\" will be created.\n * - When customer URL string is \"http://account.blob.core.windows.net/con/b%253A\",\n * There is no special characters, so send \"http://account.blob.core.windows.net/con/b%253A\" to server. A blob named \"b%3A\" will be created.\n *\n * This strategy gives us flexibility to create with any special characters. But \"%\" will be treated as a special characters, if the URL string\n * is not encoded, there shouldn't a \"%\" in the URL string, otherwise the URL is not a valid URL.\n * If customer needs to create a blob with \"%\" in it's blob name, use \"%25\" instead of \"%\". Just like above 3rd sample.\n * And following URL strings are invalid:\n * - \"http://account.blob.core.windows.net/con/b%\"\n * - \"http://account.blob.core.windows.net/con/b%2\"\n * - \"http://account.blob.core.windows.net/con/b%G\"\n *\n * Another special character is \"?\", use \"%2F\" to represent a blob name with \"?\" in a URL string.\n *\n * ### Strategy for containerName, blobName or other specific XXXName parameters in methods such as `containerClient.getBlobClient(blobName)`\n *\n * We will apply strategy one, and call encodeURIComponent for these parameters like blobName. Because what customers passes in is a plain name instead of a URL.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata\n *\n * @param url -\n */\nfunction escapeURLPath(url) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n let path = urlParsed.getPath();\n path = path || \"/\";\n path = escape(path);\n urlParsed.setPath(path);\n return urlParsed.toString();\n}\nfunction getProxyUriFromDevConnString(connectionString) {\n // Development Connection String\n // https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string#connect-to-the-emulator-account-using-the-well-known-account-name-and-key\n let proxyUri = \"\";\n if (connectionString.search(\"DevelopmentStorageProxyUri=\") !== -1) {\n // CONNECTION_STRING=UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://myProxyUri\n const matchCredentials = connectionString.split(\";\");\n for (const element of matchCredentials) {\n if (element.trim().startsWith(\"DevelopmentStorageProxyUri=\")) {\n proxyUri = element.trim().match(\"DevelopmentStorageProxyUri=(.*)\")[1];\n }\n }\n }\n return proxyUri;\n}\nfunction getValueInConnString(connectionString, argument) {\n const elements = connectionString.split(\";\");\n for (const element of elements) {\n if (element.trim().startsWith(argument)) {\n return element.trim().match(argument + \"=(.*)\")[1];\n }\n }\n return \"\";\n}\n/**\n * Extracts the parts of an Azure Storage account connection string.\n *\n * @param connectionString - Connection string.\n * @returns String key value pairs of the storage account's url and credentials.\n */\nfunction extractConnectionStringParts(connectionString) {\n let proxyUri = \"\";\n if (connectionString.startsWith(\"UseDevelopmentStorage=true\")) {\n // Development connection string\n proxyUri = getProxyUriFromDevConnString(connectionString);\n connectionString = DevelopmentConnectionString;\n }\n // Matching BlobEndpoint in the Account connection string\n let blobEndpoint = getValueInConnString(connectionString, \"BlobEndpoint\");\n // Slicing off '/' at the end if exists\n // (The methods that use `extractConnectionStringParts` expect the url to not have `/` at the end)\n blobEndpoint = blobEndpoint.endsWith(\"/\") ? blobEndpoint.slice(0, -1) : blobEndpoint;\n if (connectionString.search(\"DefaultEndpointsProtocol=\") !== -1 &&\n connectionString.search(\"AccountKey=\") !== -1) {\n // Account connection string\n let defaultEndpointsProtocol = \"\";\n let accountName = \"\";\n let accountKey = Buffer.from(\"accountKey\", \"base64\");\n let endpointSuffix = \"\";\n // Get account name and key\n accountName = getValueInConnString(connectionString, \"AccountName\");\n accountKey = Buffer.from(getValueInConnString(connectionString, \"AccountKey\"), \"base64\");\n if (!blobEndpoint) {\n // BlobEndpoint is not present in the Account connection string\n // Can be obtained from `${defaultEndpointsProtocol}://${accountName}.blob.${endpointSuffix}`\n defaultEndpointsProtocol = getValueInConnString(connectionString, \"DefaultEndpointsProtocol\");\n const protocol = defaultEndpointsProtocol.toLowerCase();\n if (protocol !== \"https\" && protocol !== \"http\") {\n throw new Error(\"Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'\");\n }\n endpointSuffix = getValueInConnString(connectionString, \"EndpointSuffix\");\n if (!endpointSuffix) {\n throw new Error(\"Invalid EndpointSuffix in the provided Connection String\");\n }\n blobEndpoint = `${defaultEndpointsProtocol}://${accountName}.blob.${endpointSuffix}`;\n }\n if (!accountName) {\n throw new Error(\"Invalid AccountName in the provided Connection String\");\n }\n else if (accountKey.length === 0) {\n throw new Error(\"Invalid AccountKey in the provided Connection String\");\n }\n return {\n kind: \"AccountConnString\",\n url: blobEndpoint,\n accountName,\n accountKey,\n proxyUri,\n };\n }\n else {\n // SAS connection string\n const accountSas = getValueInConnString(connectionString, \"SharedAccessSignature\");\n let accountName = getValueInConnString(connectionString, \"AccountName\");\n // if accountName is empty, try to read it from BlobEndpoint\n if (!accountName) {\n accountName = getAccountNameFromUrl(blobEndpoint);\n }\n if (!blobEndpoint) {\n throw new Error(\"Invalid BlobEndpoint in the provided SAS Connection String\");\n }\n else if (!accountSas) {\n throw new Error(\"Invalid SharedAccessSignature in the provided SAS Connection String\");\n }\n return { kind: \"SASConnString\", url: blobEndpoint, accountName, accountSas };\n }\n}\n/**\n * Internal escape method implemented Strategy Two mentioned in escapeURL() description.\n *\n * @param text -\n */\nfunction escape(text) {\n return encodeURIComponent(text)\n .replace(/%2F/g, \"/\") // Don't escape for \"/\"\n .replace(/'/g, \"%27\") // Escape for \"'\"\n .replace(/\\+/g, \"%20\")\n .replace(/%25/g, \"%\"); // Revert encoded \"%\"\n}\n/**\n * Append a string to URL path. Will remove duplicated \"/\" in front of the string\n * when URL path ends with a \"/\".\n *\n * @param url - Source URL string\n * @param name - String to be appended to URL\n * @returns An updated URL string\n */\nfunction appendToURLPath(url, name) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n let path = urlParsed.getPath();\n path = path ? (path.endsWith(\"/\") ? `${path}${name}` : `${path}/${name}`) : name;\n urlParsed.setPath(path);\n const normalizedUrl = new URL(urlParsed.toString());\n return normalizedUrl.toString();\n}\n/**\n * Set URL parameter name and value. If name exists in URL parameters, old value\n * will be replaced by name key. If not provide value, the parameter will be deleted.\n *\n * @param url - Source URL string\n * @param name - Parameter name\n * @param value - Parameter value\n * @returns An updated URL string\n */\nfunction setURLParameter(url, name, value) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n urlParsed.setQueryParameter(name, value);\n return urlParsed.toString();\n}\n/**\n * Get URL parameter by name.\n *\n * @param url -\n * @param name -\n */\nfunction getURLParameter(url, name) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n return urlParsed.getQueryParameterValue(name);\n}\n/**\n * Set URL host.\n *\n * @param url - Source URL string\n * @param host - New host string\n * @returns An updated URL string\n */\nfunction setURLHost(url, host) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n urlParsed.setHost(host);\n return urlParsed.toString();\n}\n/**\n * Get URL path from an URL string.\n *\n * @param url - Source URL string\n */\nfunction getURLPath(url) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n return urlParsed.getPath();\n}\n/**\n * Get URL scheme from an URL string.\n *\n * @param url - Source URL string\n */\nfunction getURLScheme(url) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n return urlParsed.getScheme();\n}\n/**\n * Get URL path and query from an URL string.\n *\n * @param url - Source URL string\n */\nfunction getURLPathAndQuery(url) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n const pathString = urlParsed.getPath();\n if (!pathString) {\n throw new RangeError(\"Invalid url without valid path.\");\n }\n let queryString = urlParsed.getQuery() || \"\";\n queryString = queryString.trim();\n if (queryString !== \"\") {\n queryString = queryString.startsWith(\"?\") ? queryString : `?${queryString}`; // Ensure query string start with '?'\n }\n return `${pathString}${queryString}`;\n}\n/**\n * Get URL query key value pairs from an URL string.\n *\n * @param url -\n */\nfunction getURLQueries(url) {\n let queryString = coreHttp.URLBuilder.parse(url).getQuery();\n if (!queryString) {\n return {};\n }\n queryString = queryString.trim();\n queryString = queryString.startsWith(\"?\") ? queryString.substr(1) : queryString;\n let querySubStrings = queryString.split(\"&\");\n querySubStrings = querySubStrings.filter((value) => {\n const indexOfEqual = value.indexOf(\"=\");\n const lastIndexOfEqual = value.lastIndexOf(\"=\");\n return (indexOfEqual > 0 && indexOfEqual === lastIndexOfEqual && lastIndexOfEqual < value.length - 1);\n });\n const queries = {};\n for (const querySubString of querySubStrings) {\n const splitResults = querySubString.split(\"=\");\n const key = splitResults[0];\n const value = splitResults[1];\n queries[key] = value;\n }\n return queries;\n}\n/**\n * Append a string to URL query.\n *\n * @param url - Source URL string.\n * @param queryParts - String to be appended to the URL query.\n * @returns An updated URL string.\n */\nfunction appendToURLQuery(url, queryParts) {\n const urlParsed = coreHttp.URLBuilder.parse(url);\n let query = urlParsed.getQuery();\n if (query) {\n query += \"&\" + queryParts;\n }\n else {\n query = queryParts;\n }\n urlParsed.setQuery(query);\n return urlParsed.toString();\n}\n/**\n * Rounds a date off to seconds.\n *\n * @param date -\n * @param withMilliseconds - If true, YYYY-MM-DDThh:mm:ss.fffffffZ will be returned;\n * If false, YYYY-MM-DDThh:mm:ssZ will be returned.\n * @returns Date string in ISO8061 format, with or without 7 milliseconds component\n */\nfunction truncatedISO8061Date(date, withMilliseconds = true) {\n // Date.toISOString() will return like \"2018-10-29T06:34:36.139Z\"\n const dateString = date.toISOString();\n return withMilliseconds\n ? dateString.substring(0, dateString.length - 1) + \"0000\" + \"Z\"\n : dateString.substring(0, dateString.length - 5) + \"Z\";\n}\n/**\n * Base64 encode.\n *\n * @param content -\n */\nfunction base64encode(content) {\n return !coreHttp.isNode ? btoa(content) : Buffer.from(content).toString(\"base64\");\n}\n/**\n * Generate a 64 bytes base64 block ID string.\n *\n * @param blockIndex -\n */\nfunction generateBlockID(blockIDPrefix, blockIndex) {\n // To generate a 64 bytes base64 string, source string should be 48\n const maxSourceStringLength = 48;\n // A blob can have a maximum of 100,000 uncommitted blocks at any given time\n const maxBlockIndexLength = 6;\n const maxAllowedBlockIDPrefixLength = maxSourceStringLength - maxBlockIndexLength;\n if (blockIDPrefix.length > maxAllowedBlockIDPrefixLength) {\n blockIDPrefix = blockIDPrefix.slice(0, maxAllowedBlockIDPrefixLength);\n }\n const res = blockIDPrefix +\n padStart(blockIndex.toString(), maxSourceStringLength - blockIDPrefix.length, \"0\");\n return base64encode(res);\n}\n/**\n * Delay specified time interval.\n *\n * @param timeInMs -\n * @param aborter -\n * @param abortError -\n */\nasync function delay(timeInMs, aborter, abortError) {\n return new Promise((resolve, reject) => {\n /* eslint-disable-next-line prefer-const */\n let timeout;\n const abortHandler = () => {\n if (timeout !== undefined) {\n clearTimeout(timeout);\n }\n reject(abortError);\n };\n const resolveHandler = () => {\n if (aborter !== undefined) {\n aborter.removeEventListener(\"abort\", abortHandler);\n }\n resolve();\n };\n timeout = setTimeout(resolveHandler, timeInMs);\n if (aborter !== undefined) {\n aborter.addEventListener(\"abort\", abortHandler);\n }\n });\n}\n/**\n * String.prototype.padStart()\n *\n * @param currentString -\n * @param targetLength -\n * @param padString -\n */\nfunction padStart(currentString, targetLength, padString = \" \") {\n // @ts-expect-error: TS doesn't know this code needs to run downlevel sometimes\n if (String.prototype.padStart) {\n return currentString.padStart(targetLength, padString);\n }\n padString = padString || \" \";\n if (currentString.length > targetLength) {\n return currentString;\n }\n else {\n targetLength = targetLength - currentString.length;\n if (targetLength > padString.length) {\n padString += padString.repeat(targetLength / padString.length);\n }\n return padString.slice(0, targetLength) + currentString;\n }\n}\n/**\n * If two strings are equal when compared case insensitive.\n *\n * @param str1 -\n * @param str2 -\n */\nfunction iEqual(str1, str2) {\n return str1.toLocaleLowerCase() === str2.toLocaleLowerCase();\n}\n/**\n * Extracts account name from the url\n * @param url - url to extract the account name from\n * @returns with the account name\n */\nfunction getAccountNameFromUrl(url) {\n const parsedUrl = coreHttp.URLBuilder.parse(url);\n let accountName;\n try {\n if (parsedUrl.getHost().split(\".\")[1] === \"blob\") {\n // `${defaultEndpointsProtocol}://${accountName}.blob.${endpointSuffix}`;\n accountName = parsedUrl.getHost().split(\".\")[0];\n }\n else if (isIpEndpointStyle(parsedUrl)) {\n // IPv4/IPv6 address hosts... Example - http://192.0.0.10:10001/devstoreaccount1/\n // Single word domain without a [dot] in the endpoint... Example - http://localhost:10001/devstoreaccount1/\n // .getPath() -> /devstoreaccount1/\n accountName = parsedUrl.getPath().split(\"/\")[1];\n }\n else {\n // Custom domain case: \"https://customdomain.com/containername/blob\".\n accountName = \"\";\n }\n return accountName;\n }\n catch (error) {\n throw new Error(\"Unable to extract accountName with provided information.\");\n }\n}\nfunction isIpEndpointStyle(parsedUrl) {\n if (parsedUrl.getHost() === undefined) {\n return false;\n }\n const host = parsedUrl.getHost() + (parsedUrl.getPort() === undefined ? \"\" : \":\" + parsedUrl.getPort());\n // Case 1: Ipv6, use a broad regex to find out candidates whose host contains two ':'.\n // Case 2: localhost(:port) or host.docker.internal, use broad regex to match port part.\n // Case 3: Ipv4, use broad regex which just check if host contains Ipv4.\n // For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html.\n 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(host) ||\n (parsedUrl.getPort() !== undefined && PathStylePorts.includes(parsedUrl.getPort())));\n}\n/**\n * Convert Tags to encoded string.\n *\n * @param tags -\n */\nfunction toBlobTagsString(tags) {\n if (tags === undefined) {\n return undefined;\n }\n const tagPairs = [];\n for (const key in tags) {\n if (Object.prototype.hasOwnProperty.call(tags, key)) {\n const value = tags[key];\n tagPairs.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);\n }\n }\n return tagPairs.join(\"&\");\n}\n/**\n * Convert Tags type to BlobTags.\n *\n * @param tags -\n */\nfunction toBlobTags(tags) {\n if (tags === undefined) {\n return undefined;\n }\n const res = {\n blobTagSet: [],\n };\n for (const key in tags) {\n if (Object.prototype.hasOwnProperty.call(tags, key)) {\n const value = tags[key];\n res.blobTagSet.push({\n key,\n value,\n });\n }\n }\n return res;\n}\n/**\n * Covert BlobTags to Tags type.\n *\n * @param tags -\n */\nfunction toTags(tags) {\n if (tags === undefined) {\n return undefined;\n }\n const res = {};\n for (const blobTag of tags.blobTagSet) {\n res[blobTag.key] = blobTag.value;\n }\n return res;\n}\n/**\n * Convert BlobQueryTextConfiguration to QuerySerialization type.\n *\n * @param textConfiguration -\n */\nfunction toQuerySerialization(textConfiguration) {\n if (textConfiguration === undefined) {\n return undefined;\n }\n switch (textConfiguration.kind) {\n case \"csv\":\n return {\n format: {\n type: \"delimited\",\n delimitedTextConfiguration: {\n columnSeparator: textConfiguration.columnSeparator || \",\",\n fieldQuote: textConfiguration.fieldQuote || \"\",\n recordSeparator: textConfiguration.recordSeparator,\n escapeChar: textConfiguration.escapeCharacter || \"\",\n headersPresent: textConfiguration.hasHeaders || false,\n },\n },\n };\n case \"json\":\n return {\n format: {\n type: \"json\",\n jsonTextConfiguration: {\n recordSeparator: textConfiguration.recordSeparator,\n },\n },\n };\n case \"arrow\":\n return {\n format: {\n type: \"arrow\",\n arrowConfiguration: {\n schema: textConfiguration.schema,\n },\n },\n };\n case \"parquet\":\n return {\n format: {\n type: \"parquet\",\n },\n };\n default:\n throw Error(\"Invalid BlobQueryTextConfiguration.\");\n }\n}\nfunction parseObjectReplicationRecord(objectReplicationRecord) {\n if (!objectReplicationRecord) {\n return undefined;\n }\n if (\"policy-id\" in objectReplicationRecord) {\n // If the dictionary contains a key with policy id, we are not required to do any parsing since\n // the policy id should already be stored in the ObjectReplicationDestinationPolicyId.\n return undefined;\n }\n const orProperties = [];\n for (const key in objectReplicationRecord) {\n const ids = key.split(\"_\");\n const policyPrefix = \"or-\";\n if (ids[0].startsWith(policyPrefix)) {\n ids[0] = ids[0].substring(policyPrefix.length);\n }\n const rule = {\n ruleId: ids[1],\n replicationStatus: objectReplicationRecord[key],\n };\n const policyIndex = orProperties.findIndex((policy) => policy.policyId === ids[0]);\n if (policyIndex > -1) {\n orProperties[policyIndex].rules.push(rule);\n }\n else {\n orProperties.push({\n policyId: ids[0],\n rules: [rule],\n });\n }\n }\n return orProperties;\n}\n/**\n * Attach a TokenCredential to an object.\n *\n * @param thing -\n * @param credential -\n */\nfunction attachCredential(thing, credential) {\n thing.credential = credential;\n return thing;\n}\nfunction httpAuthorizationToString(httpAuthorization) {\n return httpAuthorization ? httpAuthorization.scheme + \" \" + httpAuthorization.value : undefined;\n}\nfunction BlobNameToString(name) {\n if (name.encoded) {\n return decodeURIComponent(name.content);\n }\n else {\n return name.content;\n }\n}\nfunction ConvertInternalResponseOfListBlobFlat(internalResponse) {\n return Object.assign(Object.assign({}, internalResponse), { segment: {\n blobItems: internalResponse.segment.blobItems.map((blobItemInteral) => {\n const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name) });\n return blobItem;\n }),\n } });\n}\nfunction ConvertInternalResponseOfListBlobHierarchy(internalResponse) {\n var _a;\n return Object.assign(Object.assign({}, internalResponse), { segment: {\n blobPrefixes: (_a = internalResponse.segment.blobPrefixes) === null || _a === void 0 ? void 0 : _a.map((blobPrefixInternal) => {\n const blobPrefix = Object.assign(Object.assign({}, blobPrefixInternal), { name: BlobNameToString(blobPrefixInternal.name) });\n return blobPrefix;\n }),\n blobItems: internalResponse.segment.blobItems.map((blobItemInteral) => {\n const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name) });\n return blobItem;\n }),\n } });\n}\nfunction* ExtractPageRangeInfoItems(getPageRangesSegment) {\n let pageRange = [];\n let clearRange = [];\n if (getPageRangesSegment.pageRange)\n pageRange = getPageRangesSegment.pageRange;\n if (getPageRangesSegment.clearRange)\n clearRange = getPageRangesSegment.clearRange;\n let pageRangeIndex = 0;\n let clearRangeIndex = 0;\n while (pageRangeIndex < pageRange.length && clearRangeIndex < clearRange.length) {\n if (pageRange[pageRangeIndex].start < clearRange[clearRangeIndex].start) {\n yield {\n start: pageRange[pageRangeIndex].start,\n end: pageRange[pageRangeIndex].end,\n isClear: false,\n };\n ++pageRangeIndex;\n }\n else {\n yield {\n start: clearRange[clearRangeIndex].start,\n end: clearRange[clearRangeIndex].end,\n isClear: true,\n };\n ++clearRangeIndex;\n }\n }\n for (; pageRangeIndex < pageRange.length; ++pageRangeIndex) {\n yield {\n start: pageRange[pageRangeIndex].start,\n end: pageRange[pageRangeIndex].end,\n isClear: false,\n };\n }\n for (; clearRangeIndex < clearRange.length; ++clearRangeIndex) {\n yield {\n start: clearRange[clearRangeIndex].start,\n end: clearRange[clearRangeIndex].end,\n isClear: true,\n };\n }\n}\n/**\n * Escape the blobName but keep path separator ('/').\n */\nfunction EscapePath(blobName) {\n const split = blobName.split(\"/\");\n for (let i = 0; i < split.length; i++) {\n split[i] = encodeURIComponent(split[i]);\n }\n return split.join(\"/\");\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:\n *\n * 1. Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE'.\n * StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD request URL\n * thus avoid the browser cache.\n *\n * 2. Remove cookie header for security\n *\n * 3. Remove content-length header to avoid browsers warning\n */\nclass StorageBrowserPolicy extends coreHttp.BaseRequestPolicy {\n /**\n * Creates an instance of StorageBrowserPolicy.\n * @param nextPolicy -\n * @param options -\n */\n // The base class has a protected constructor. Adding a public one to enable constructing of this class.\n /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/\n constructor(nextPolicy, options) {\n super(nextPolicy, options);\n }\n /**\n * Sends out request.\n *\n * @param request -\n */\n async sendRequest(request) {\n if (coreHttp.isNode) {\n return this._nextPolicy.sendRequest(request);\n }\n if (request.method.toUpperCase() === \"GET\" || request.method.toUpperCase() === \"HEAD\") {\n request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());\n }\n request.headers.remove(HeaderConstants.COOKIE);\n // According to XHR standards, content-length should be fully controlled by browsers\n request.headers.remove(HeaderConstants.CONTENT_LENGTH);\n return this._nextPolicy.sendRequest(request);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * StorageBrowserPolicyFactory is a factory class helping generating StorageBrowserPolicy objects.\n */\nclass StorageBrowserPolicyFactory {\n /**\n * Creates a StorageBrowserPolicyFactory object.\n *\n * @param nextPolicy -\n * @param options -\n */\n create(nextPolicy, options) {\n return new StorageBrowserPolicy(nextPolicy, options);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * RetryPolicy types.\n */\nexports.StorageRetryPolicyType = void 0;\n(function (StorageRetryPolicyType) {\n /**\n * Exponential retry. Retry time delay grows exponentially.\n */\n StorageRetryPolicyType[StorageRetryPolicyType[\"EXPONENTIAL\"] = 0] = \"EXPONENTIAL\";\n /**\n * Linear retry. Retry time delay grows linearly.\n */\n StorageRetryPolicyType[StorageRetryPolicyType[\"FIXED\"] = 1] = \"FIXED\";\n})(exports.StorageRetryPolicyType || (exports.StorageRetryPolicyType = {}));\n// Default values of StorageRetryOptions\nconst DEFAULT_RETRY_OPTIONS = {\n maxRetryDelayInMs: 120 * 1000,\n maxTries: 4,\n retryDelayInMs: 4 * 1000,\n retryPolicyType: exports.StorageRetryPolicyType.EXPONENTIAL,\n secondaryHost: \"\",\n tryTimeoutInMs: undefined, // Use server side default timeout strategy\n};\nconst RETRY_ABORT_ERROR = new abortController.AbortError(\"The operation was aborted.\");\n/**\n * Retry policy with exponential retry and linear retry implemented.\n */\nclass StorageRetryPolicy extends coreHttp.BaseRequestPolicy {\n /**\n * Creates an instance of RetryPolicy.\n *\n * @param nextPolicy -\n * @param options -\n * @param retryOptions -\n */\n constructor(nextPolicy, options, retryOptions = DEFAULT_RETRY_OPTIONS) {\n super(nextPolicy, options);\n // Initialize retry options\n this.retryOptions = {\n retryPolicyType: retryOptions.retryPolicyType\n ? retryOptions.retryPolicyType\n : DEFAULT_RETRY_OPTIONS.retryPolicyType,\n maxTries: retryOptions.maxTries && retryOptions.maxTries >= 1\n ? Math.floor(retryOptions.maxTries)\n : DEFAULT_RETRY_OPTIONS.maxTries,\n tryTimeoutInMs: retryOptions.tryTimeoutInMs && retryOptions.tryTimeoutInMs >= 0\n ? retryOptions.tryTimeoutInMs\n : DEFAULT_RETRY_OPTIONS.tryTimeoutInMs,\n retryDelayInMs: retryOptions.retryDelayInMs && retryOptions.retryDelayInMs >= 0\n ? Math.min(retryOptions.retryDelayInMs, retryOptions.maxRetryDelayInMs\n ? retryOptions.maxRetryDelayInMs\n : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs)\n : DEFAULT_RETRY_OPTIONS.retryDelayInMs,\n maxRetryDelayInMs: retryOptions.maxRetryDelayInMs && retryOptions.maxRetryDelayInMs >= 0\n ? retryOptions.maxRetryDelayInMs\n : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs,\n secondaryHost: retryOptions.secondaryHost\n ? retryOptions.secondaryHost\n : DEFAULT_RETRY_OPTIONS.secondaryHost,\n };\n }\n /**\n * Sends request.\n *\n * @param request -\n */\n async sendRequest(request) {\n return this.attemptSendRequest(request, false, 1);\n }\n /**\n * Decide and perform next retry. Won't mutate request parameter.\n *\n * @param request -\n * @param secondaryHas404 - If attempt was against the secondary & it returned a StatusNotFound (404), then\n * the resource was not found. This may be due to replication delay. So, in this\n * case, we'll never try the secondary again for this operation.\n * @param attempt - How many retries has been attempted to performed, starting from 1, which includes\n * the attempt will be performed by this method call.\n */\n async attemptSendRequest(request, secondaryHas404, attempt) {\n const newRequest = request.clone();\n const isPrimaryRetry = secondaryHas404 ||\n !this.retryOptions.secondaryHost ||\n !(request.method === \"GET\" || request.method === \"HEAD\" || request.method === \"OPTIONS\") ||\n attempt % 2 === 1;\n if (!isPrimaryRetry) {\n newRequest.url = setURLHost(newRequest.url, this.retryOptions.secondaryHost);\n }\n // Set the server-side timeout query parameter \"timeout=[seconds]\"\n if (this.retryOptions.tryTimeoutInMs) {\n newRequest.url = setURLParameter(newRequest.url, URLConstants.Parameters.TIMEOUT, Math.floor(this.retryOptions.tryTimeoutInMs / 1000).toString());\n }\n let response;\n try {\n logger.info(`RetryPolicy: =====> Try=${attempt} ${isPrimaryRetry ? \"Primary\" : \"Secondary\"}`);\n response = await this._nextPolicy.sendRequest(newRequest);\n if (!this.shouldRetry(isPrimaryRetry, attempt, response)) {\n return response;\n }\n secondaryHas404 = secondaryHas404 || (!isPrimaryRetry && response.status === 404);\n }\n catch (err) {\n logger.error(`RetryPolicy: Caught error, message: ${err.message}, code: ${err.code}`);\n if (!this.shouldRetry(isPrimaryRetry, attempt, response, err)) {\n throw err;\n }\n }\n await this.delay(isPrimaryRetry, attempt, request.abortSignal);\n return this.attemptSendRequest(request, secondaryHas404, ++attempt);\n }\n /**\n * Decide whether to retry according to last HTTP response and retry counters.\n *\n * @param isPrimaryRetry -\n * @param attempt -\n * @param response -\n * @param err -\n */\n shouldRetry(isPrimaryRetry, attempt, response, err) {\n if (attempt >= this.retryOptions.maxTries) {\n logger.info(`RetryPolicy: Attempt(s) ${attempt} >= maxTries ${this.retryOptions\n .maxTries}, no further try.`);\n return false;\n }\n // Handle network failures, you may need to customize the list when you implement\n // your own http client\n const retriableErrors = [\n \"ETIMEDOUT\",\n \"ESOCKETTIMEDOUT\",\n \"ECONNREFUSED\",\n \"ECONNRESET\",\n \"ENOENT\",\n \"ENOTFOUND\",\n \"TIMEOUT\",\n \"EPIPE\",\n \"REQUEST_SEND_ERROR\", // For default xhr based http client provided in ms-rest-js\n ];\n if (err) {\n for (const retriableError of retriableErrors) {\n if (err.name.toUpperCase().includes(retriableError) ||\n err.message.toUpperCase().includes(retriableError) ||\n (err.code && err.code.toString().toUpperCase() === retriableError)) {\n logger.info(`RetryPolicy: Network error ${retriableError} found, will retry.`);\n return true;\n }\n }\n }\n // If attempt was against the secondary & it returned a StatusNotFound (404), then\n // the resource was not found. This may be due to replication delay. So, in this\n // case, we'll never try the secondary again for this operation.\n if (response || err) {\n const statusCode = response ? response.status : err ? err.statusCode : 0;\n if (!isPrimaryRetry && statusCode === 404) {\n logger.info(`RetryPolicy: Secondary access with 404, will retry.`);\n return true;\n }\n // Server internal error or server timeout\n if (statusCode === 503 || statusCode === 500) {\n logger.info(`RetryPolicy: Will retry for status code ${statusCode}.`);\n return true;\n }\n }\n if ((err === null || err === void 0 ? void 0 : err.code) === \"PARSE_ERROR\" && (err === null || err === void 0 ? void 0 : err.message.startsWith(`Error \"Error: Unclosed root tag`))) {\n logger.info(\"RetryPolicy: Incomplete XML response likely due to service timeout, will retry.\");\n return true;\n }\n return false;\n }\n /**\n * Delay a calculated time between retries.\n *\n * @param isPrimaryRetry -\n * @param attempt -\n * @param abortSignal -\n */\n async delay(isPrimaryRetry, attempt, abortSignal) {\n let delayTimeInMs = 0;\n if (isPrimaryRetry) {\n switch (this.retryOptions.retryPolicyType) {\n case exports.StorageRetryPolicyType.EXPONENTIAL:\n delayTimeInMs = Math.min((Math.pow(2, attempt - 1) - 1) * this.retryOptions.retryDelayInMs, this.retryOptions.maxRetryDelayInMs);\n break;\n case exports.StorageRetryPolicyType.FIXED:\n delayTimeInMs = this.retryOptions.retryDelayInMs;\n break;\n }\n }\n else {\n delayTimeInMs = Math.random() * 1000;\n }\n logger.info(`RetryPolicy: Delay for ${delayTimeInMs}ms`);\n return delay(delayTimeInMs, abortSignal, RETRY_ABORT_ERROR);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.\n */\nclass StorageRetryPolicyFactory {\n /**\n * Creates an instance of StorageRetryPolicyFactory.\n * @param retryOptions -\n */\n constructor(retryOptions) {\n this.retryOptions = retryOptions;\n }\n /**\n * Creates a StorageRetryPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n create(nextPolicy, options) {\n return new StorageRetryPolicy(nextPolicy, options, this.retryOptions);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Credential policy used to sign HTTP(S) requests before sending. This is an\n * abstract class.\n */\nclass CredentialPolicy extends coreHttp.BaseRequestPolicy {\n /**\n * Sends out request.\n *\n * @param request -\n */\n sendRequest(request) {\n return this._nextPolicy.sendRequest(this.signRequest(request));\n }\n /**\n * Child classes must implement this method with request signing. This method\n * will be executed in {@link sendRequest}.\n *\n * @param request -\n */\n signRequest(request) {\n // Child classes must override this method with request signing. This method\n // will be executed in sendRequest().\n return request;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources\n * or for use with Shared Access Signatures (SAS).\n */\nclass AnonymousCredentialPolicy extends CredentialPolicy {\n /**\n * Creates an instance of AnonymousCredentialPolicy.\n * @param nextPolicy -\n * @param options -\n */\n // The base class has a protected constructor. Adding a public one to enable constructing of this class.\n /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/\n constructor(nextPolicy, options) {\n super(nextPolicy, options);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Credential is an abstract class for Azure Storage HTTP requests signing. This\n * class will host an credentialPolicyCreator factory which generates CredentialPolicy.\n */\nclass Credential {\n /**\n * Creates a RequestPolicy object.\n *\n * @param _nextPolicy -\n * @param _options -\n */\n create(_nextPolicy, _options) {\n throw new Error(\"Method should be implemented in children classes.\");\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * AnonymousCredential provides a credentialPolicyCreator member used to create\n * AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with\n * HTTP(S) requests that read public resources or for use with Shared Access\n * Signatures (SAS).\n */\nclass AnonymousCredential extends Credential {\n /**\n * Creates an {@link AnonymousCredentialPolicy} object.\n *\n * @param nextPolicy -\n * @param options -\n */\n create(nextPolicy, options) {\n return new AnonymousCredentialPolicy(nextPolicy, options);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * TelemetryPolicy is a policy used to tag user-agent header for every requests.\n */\nclass TelemetryPolicy extends coreHttp.BaseRequestPolicy {\n /**\n * Creates an instance of TelemetryPolicy.\n * @param nextPolicy -\n * @param options -\n * @param telemetry -\n */\n constructor(nextPolicy, options, telemetry) {\n super(nextPolicy, options);\n this.telemetry = telemetry;\n }\n /**\n * Sends out request.\n *\n * @param request -\n */\n async sendRequest(request) {\n if (coreHttp.isNode) {\n if (!request.headers) {\n request.headers = new coreHttp.HttpHeaders();\n }\n if (!request.headers.get(HeaderConstants.USER_AGENT)) {\n request.headers.set(HeaderConstants.USER_AGENT, this.telemetry);\n }\n }\n return this._nextPolicy.sendRequest(request);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * TelemetryPolicyFactory is a factory class helping generating {@link TelemetryPolicy} objects.\n */\nclass TelemetryPolicyFactory {\n /**\n * Creates an instance of TelemetryPolicyFactory.\n * @param telemetry -\n */\n constructor(telemetry) {\n const userAgentInfo = [];\n if (coreHttp.isNode) {\n if (telemetry) {\n const telemetryString = telemetry.userAgentPrefix || \"\";\n if (telemetryString.length > 0 && userAgentInfo.indexOf(telemetryString) === -1) {\n userAgentInfo.push(telemetryString);\n }\n }\n // e.g. azsdk-js-storageblob/10.0.0\n const libInfo = `azsdk-js-storageblob/${SDK_VERSION}`;\n if (userAgentInfo.indexOf(libInfo) === -1) {\n userAgentInfo.push(libInfo);\n }\n // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)\n let runtimeInfo = `(NODE-VERSION ${process.version})`;\n if (os__namespace) {\n runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;\n }\n if (userAgentInfo.indexOf(runtimeInfo) === -1) {\n userAgentInfo.push(runtimeInfo);\n }\n }\n this.telemetryString = userAgentInfo.join(\" \");\n }\n /**\n * Creates a TelemetryPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n create(nextPolicy, options) {\n return new TelemetryPolicy(nextPolicy, options, this.telemetryString);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nconst _defaultHttpClient = new coreHttp.DefaultHttpClient();\nfunction getCachedDefaultHttpClient() {\n return _defaultHttpClient;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A set of constants used internally when processing requests.\n */\nconst Constants = {\n DefaultScope: \"/.default\",\n /**\n * Defines constants for use with HTTP headers.\n */\n HeaderConstants: {\n /**\n * The Authorization header.\n */\n AUTHORIZATION: \"authorization\",\n },\n};\n// Default options for the cycler if none are provided\nconst DEFAULT_CYCLER_OPTIONS = {\n forcedRefreshWindowInMs: 1000,\n retryIntervalInMs: 3000,\n refreshWindowInMs: 1000 * 60 * 2, // Start refreshing 2m before expiry\n};\n/**\n * Converts an an unreliable access token getter (which may resolve with null)\n * into an AccessTokenGetter by retrying the unreliable getter in a regular\n * interval.\n *\n * @param getAccessToken - a function that produces a promise of an access\n * token that may fail by returning null\n * @param retryIntervalInMs - the time (in milliseconds) to wait between retry\n * attempts\n * @param timeoutInMs - the timestamp after which the refresh attempt will fail,\n * throwing an exception\n * @returns - a promise that, if it resolves, will resolve with an access token\n */\nasync function beginRefresh(getAccessToken, retryIntervalInMs, timeoutInMs) {\n // This wrapper handles exceptions gracefully as long as we haven't exceeded\n // the timeout.\n async function tryGetAccessToken() {\n if (Date.now() < timeoutInMs) {\n try {\n return await getAccessToken();\n }\n catch (_a) {\n return null;\n }\n }\n else {\n const finalToken = await getAccessToken();\n // Timeout is up, so throw if it's still null\n if (finalToken === null) {\n throw new Error(\"Failed to refresh access token.\");\n }\n return finalToken;\n }\n }\n let token = await tryGetAccessToken();\n while (token === null) {\n await coreHttp.delay(retryIntervalInMs);\n token = await tryGetAccessToken();\n }\n return token;\n}\n/**\n * Creates a token cycler from a credential, scopes, and optional settings.\n *\n * A token cycler represents a way to reliably retrieve a valid access token\n * from a TokenCredential. It will handle initializing the token, refreshing it\n * when it nears expiration, and synchronizes refresh attempts to avoid\n * concurrency hazards.\n *\n * @param credential - the underlying TokenCredential that provides the access\n * token\n * @param scopes - the scopes to request authorization for\n * @param tokenCyclerOptions - optionally override default settings for the cycler\n *\n * @returns - a function that reliably produces a valid access token\n */\nfunction createTokenCycler(credential, scopes, tokenCyclerOptions) {\n let refreshWorker = null;\n let token = null;\n const options = Object.assign(Object.assign({}, DEFAULT_CYCLER_OPTIONS), tokenCyclerOptions);\n /**\n * This little holder defines several predicates that we use to construct\n * the rules of refreshing the token.\n */\n const cycler = {\n /**\n * Produces true if a refresh job is currently in progress.\n */\n get isRefreshing() {\n return refreshWorker !== null;\n },\n /**\n * Produces true if the cycler SHOULD refresh (we are within the refresh\n * window and not already refreshing)\n */\n get shouldRefresh() {\n var _a;\n return (!cycler.isRefreshing &&\n ((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now());\n },\n /**\n * Produces true if the cycler MUST refresh (null or nearly-expired\n * token).\n */\n get mustRefresh() {\n return (token === null || token.expiresOnTimestamp - options.forcedRefreshWindowInMs < Date.now());\n },\n };\n /**\n * Starts a refresh job or returns the existing job if one is already\n * running.\n */\n function refresh(getTokenOptions) {\n var _a;\n if (!cycler.isRefreshing) {\n // We bind `scopes` here to avoid passing it around a lot\n const tryGetAccessToken = () => credential.getToken(scopes, getTokenOptions);\n // Take advantage of promise chaining to insert an assignment to `token`\n // before the refresh can be considered done.\n refreshWorker = beginRefresh(tryGetAccessToken, options.retryIntervalInMs, \n // If we don't have a token, then we should timeout immediately\n (_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : Date.now())\n .then((_token) => {\n refreshWorker = null;\n token = _token;\n return token;\n })\n .catch((reason) => {\n // We also should reset the refresher if we enter a failed state. All\n // existing awaiters will throw, but subsequent requests will start a\n // new retry chain.\n refreshWorker = null;\n token = null;\n throw reason;\n });\n }\n return refreshWorker;\n }\n return async (tokenOptions) => {\n //\n // Simple rules:\n // - If we MUST refresh, then return the refresh task, blocking\n // the pipeline until a token is available.\n // - If we SHOULD refresh, then run refresh but don't return it\n // (we can still use the cached token).\n // - Return the token, since it's fine if we didn't return in\n // step 1.\n //\n if (cycler.mustRefresh)\n return refresh(tokenOptions);\n if (cycler.shouldRefresh) {\n refresh(tokenOptions);\n }\n return token;\n };\n}\n/**\n * We will retrieve the challenge only if the response status code was 401,\n * and if the response contained the header \"WWW-Authenticate\" with a non-empty value.\n */\nfunction getChallenge(response) {\n const challenge = response.headers.get(\"WWW-Authenticate\");\n if (response.status === 401 && challenge) {\n return challenge;\n }\n return;\n}\n/**\n * Converts: `Bearer a=\"b\" c=\"d\"`.\n * Into: `[ { a: 'b', c: 'd' }]`.\n *\n * @internal\n */\nfunction parseChallenge(challenge) {\n const bearerChallenge = challenge.slice(\"Bearer \".length);\n const challengeParts = `${bearerChallenge.trim()} `.split(\" \").filter((x) => x);\n const keyValuePairs = challengeParts.map((keyValue) => (([key, value]) => ({ [key]: value }))(keyValue.trim().split(\"=\")));\n // Key-value pairs to plain object:\n return keyValuePairs.reduce((a, b) => (Object.assign(Object.assign({}, a), b)), {});\n}\n// #endregion\n/**\n * Creates a new factory for a RequestPolicy that applies a bearer token to\n * the requests' `Authorization` headers.\n *\n * @param credential - The TokenCredential implementation that can supply the bearer token.\n * @param scopes - The scopes for which the bearer token applies.\n */\nfunction storageBearerTokenChallengeAuthenticationPolicy(credential, scopes) {\n // This simple function encapsulates the entire process of reliably retrieving the token\n let getToken = createTokenCycler(credential, scopes);\n class StorageBearerTokenChallengeAuthenticationPolicy extends coreHttp.BaseRequestPolicy {\n constructor(nextPolicy, options) {\n super(nextPolicy, options);\n }\n async sendRequest(webResource) {\n if (!webResource.url.toLowerCase().startsWith(\"https://\")) {\n throw new Error(\"Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.\");\n }\n const getTokenInternal = getToken;\n const token = (await getTokenInternal({\n abortSignal: webResource.abortSignal,\n tracingOptions: {\n tracingContext: webResource.tracingContext,\n },\n })).token;\n webResource.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${token}`);\n const response = await this._nextPolicy.sendRequest(webResource);\n if ((response === null || response === void 0 ? void 0 : response.status) === 401) {\n const challenge = getChallenge(response);\n if (challenge) {\n const challengeInfo = parseChallenge(challenge);\n const challengeScopes = challengeInfo.resource_id + Constants.DefaultScope;\n const parsedAuthUri = coreHttp.URLBuilder.parse(challengeInfo.authorization_uri);\n const pathSegments = parsedAuthUri.getPath().split(\"/\");\n const tenantId = pathSegments[1];\n const getTokenForChallenge = createTokenCycler(credential, challengeScopes);\n const tokenForChallenge = (await getTokenForChallenge({\n abortSignal: webResource.abortSignal,\n tracingOptions: {\n tracingContext: webResource.tracingContext,\n },\n tenantId: tenantId,\n })).token;\n getToken = getTokenForChallenge;\n webResource.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${tokenForChallenge}`);\n return this._nextPolicy.sendRequest(webResource);\n }\n }\n return response;\n }\n }\n return {\n create: (nextPolicy, options) => {\n return new StorageBearerTokenChallengeAuthenticationPolicy(nextPolicy, options);\n },\n };\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A helper to decide if a given argument satisfies the Pipeline contract\n * @param pipeline - An argument that may be a Pipeline\n * @returns true when the argument satisfies the Pipeline contract\n */\nfunction isPipelineLike(pipeline) {\n if (!pipeline || typeof pipeline !== \"object\") {\n return false;\n }\n const castPipeline = pipeline;\n return (Array.isArray(castPipeline.factories) &&\n typeof castPipeline.options === \"object\" &&\n typeof castPipeline.toServiceClientOptions === \"function\");\n}\n/**\n * A Pipeline class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nclass Pipeline {\n /**\n * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.\n *\n * @param factories -\n * @param options -\n */\n constructor(factories, options = {}) {\n this.factories = factories;\n // when options.httpClient is not specified, passing in a DefaultHttpClient instance to\n // avoid each client creating its own http client.\n this.options = Object.assign(Object.assign({}, options), { httpClient: options.httpClient || getCachedDefaultHttpClient() });\n }\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n toServiceClientOptions() {\n return {\n httpClient: this.options.httpClient,\n requestPolicyFactories: this.factories,\n };\n }\n}\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nfunction newPipeline(credential, pipelineOptions = {}) {\n var _a;\n if (credential === undefined) {\n credential = new AnonymousCredential();\n }\n // Order is important. Closer to the API at the top & closer to the network at the bottom.\n // The credential's policy factory must appear close to the wire so it can sign any\n // changes made by other factories (like UniqueRequestIDPolicyFactory)\n const telemetryPolicy = new TelemetryPolicyFactory(pipelineOptions.userAgentOptions);\n const factories = [\n coreHttp.tracingPolicy({ userAgent: telemetryPolicy.telemetryString }),\n coreHttp.keepAlivePolicy(pipelineOptions.keepAliveOptions),\n telemetryPolicy,\n coreHttp.generateClientRequestIdPolicy(),\n new StorageBrowserPolicyFactory(),\n new StorageRetryPolicyFactory(pipelineOptions.retryOptions),\n // Default deserializationPolicy is provided by protocol layer\n // Use customized XML char key of \"#\" so we could deserialize metadata\n // with \"_\" key\n coreHttp.deserializationPolicy(undefined, { xmlCharKey: \"#\" }),\n coreHttp.logPolicy({\n logger: logger.info,\n allowedHeaderNames: StorageBlobLoggingAllowedHeaderNames,\n allowedQueryParameters: StorageBlobLoggingAllowedQueryParameters,\n }),\n ];\n if (coreHttp.isNode) {\n // policies only available in Node.js runtime, not in browsers\n factories.push(coreHttp.proxyPolicy(pipelineOptions.proxyOptions));\n factories.push(coreHttp.disableResponseDecompressionPolicy());\n }\n factories.push(coreHttp.isTokenCredential(credential)\n ? attachCredential(storageBearerTokenChallengeAuthenticationPolicy(credential, (_a = pipelineOptions.audience) !== null && _a !== void 0 ? _a : StorageOAuthScopes), credential)\n : credential);\n return new Pipeline(factories, pipelineOptions);\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * StorageSharedKeyCredentialPolicy is a policy used to sign HTTP request with a shared key.\n */\nclass StorageSharedKeyCredentialPolicy extends CredentialPolicy {\n /**\n * Creates an instance of StorageSharedKeyCredentialPolicy.\n * @param nextPolicy -\n * @param options -\n * @param factory -\n */\n constructor(nextPolicy, options, factory) {\n super(nextPolicy, options);\n this.factory = factory;\n }\n /**\n * Signs request.\n *\n * @param request -\n */\n signRequest(request) {\n request.headers.set(HeaderConstants.X_MS_DATE, new Date().toUTCString());\n if (request.body &&\n (typeof request.body === \"string\" || request.body !== undefined) &&\n request.body.length > 0) {\n request.headers.set(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(request.body));\n }\n const stringToSign = [\n request.method.toUpperCase(),\n this.getHeaderValueToSign(request, HeaderConstants.CONTENT_LANGUAGE),\n this.getHeaderValueToSign(request, HeaderConstants.CONTENT_ENCODING),\n this.getHeaderValueToSign(request, HeaderConstants.CONTENT_LENGTH),\n this.getHeaderValueToSign(request, HeaderConstants.CONTENT_MD5),\n this.getHeaderValueToSign(request, HeaderConstants.CONTENT_TYPE),\n this.getHeaderValueToSign(request, HeaderConstants.DATE),\n this.getHeaderValueToSign(request, HeaderConstants.IF_MODIFIED_SINCE),\n this.getHeaderValueToSign(request, HeaderConstants.IF_MATCH),\n this.getHeaderValueToSign(request, HeaderConstants.IF_NONE_MATCH),\n this.getHeaderValueToSign(request, HeaderConstants.IF_UNMODIFIED_SINCE),\n this.getHeaderValueToSign(request, HeaderConstants.RANGE),\n ].join(\"\\n\") +\n \"\\n\" +\n this.getCanonicalizedHeadersString(request) +\n this.getCanonicalizedResourceString(request);\n const signature = this.factory.computeHMACSHA256(stringToSign);\n request.headers.set(HeaderConstants.AUTHORIZATION, `SharedKey ${this.factory.accountName}:${signature}`);\n // console.log(`[URL]:${request.url}`);\n // console.log(`[HEADERS]:${request.headers.toString()}`);\n // console.log(`[STRING TO SIGN]:${JSON.stringify(stringToSign)}`);\n // console.log(`[KEY]: ${request.headers.get(HeaderConstants.AUTHORIZATION)}`);\n return request;\n }\n /**\n * Retrieve header value according to shared key sign rules.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key\n *\n * @param request -\n * @param headerName -\n */\n getHeaderValueToSign(request, headerName) {\n const value = request.headers.get(headerName);\n if (!value) {\n return \"\";\n }\n // When using version 2015-02-21 or later, if Content-Length is zero, then\n // set the Content-Length part of the StringToSign to an empty string.\n // https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-shared-key\n if (headerName === HeaderConstants.CONTENT_LENGTH && value === \"0\") {\n return \"\";\n }\n return value;\n }\n /**\n * To construct the CanonicalizedHeaders portion of the signature string, follow these steps:\n * 1. Retrieve all headers for the resource that begin with x-ms-, including the x-ms-date header.\n * 2. Convert each HTTP header name to lowercase.\n * 3. Sort the headers lexicographically by header name, in ascending order.\n * Each header may appear only once in the string.\n * 4. Replace any linear whitespace in the header value with a single space.\n * 5. Trim any whitespace around the colon in the header.\n * 6. Finally, append a new-line character to each canonicalized header in the resulting list.\n * Construct the CanonicalizedHeaders string by concatenating all headers in this list into a single string.\n *\n * @param request -\n */\n getCanonicalizedHeadersString(request) {\n let headersArray = request.headers.headersArray().filter((value) => {\n return value.name.toLowerCase().startsWith(HeaderConstants.PREFIX_FOR_STORAGE);\n });\n headersArray.sort((a, b) => {\n return a.name.toLowerCase().localeCompare(b.name.toLowerCase());\n });\n // Remove duplicate headers\n headersArray = headersArray.filter((value, index, array) => {\n if (index > 0 && value.name.toLowerCase() === array[index - 1].name.toLowerCase()) {\n return false;\n }\n return true;\n });\n let canonicalizedHeadersStringToSign = \"\";\n headersArray.forEach((header) => {\n canonicalizedHeadersStringToSign += `${header.name\n .toLowerCase()\n .trimRight()}:${header.value.trimLeft()}\\n`;\n });\n return canonicalizedHeadersStringToSign;\n }\n /**\n * Retrieves the webResource canonicalized resource string.\n *\n * @param request -\n */\n getCanonicalizedResourceString(request) {\n const path = getURLPath(request.url) || \"/\";\n let canonicalizedResourceString = \"\";\n canonicalizedResourceString += `/${this.factory.accountName}${path}`;\n const queries = getURLQueries(request.url);\n const lowercaseQueries = {};\n if (queries) {\n const queryKeys = [];\n for (const key in queries) {\n if (Object.prototype.hasOwnProperty.call(queries, key)) {\n const lowercaseKey = key.toLowerCase();\n lowercaseQueries[lowercaseKey] = queries[key];\n queryKeys.push(lowercaseKey);\n }\n }\n queryKeys.sort();\n for (const key of queryKeys) {\n canonicalizedResourceString += `\\n${key}:${decodeURIComponent(lowercaseQueries[key])}`;\n }\n }\n return canonicalizedResourceString;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * StorageSharedKeyCredential for account key authorization of Azure Storage service.\n */\nclass StorageSharedKeyCredential extends Credential {\n /**\n * Creates an instance of StorageSharedKeyCredential.\n * @param accountName -\n * @param accountKey -\n */\n constructor(accountName, accountKey) {\n super();\n this.accountName = accountName;\n this.accountKey = Buffer.from(accountKey, \"base64\");\n }\n /**\n * Creates a StorageSharedKeyCredentialPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n create(nextPolicy, options) {\n return new StorageSharedKeyCredentialPolicy(nextPolicy, options, this);\n }\n /**\n * Generates a hash signature for an HTTP request or for a SAS.\n *\n * @param stringToSign -\n */\n computeHMACSHA256(stringToSign) {\n return crypto.createHmac(\"sha256\", this.accountKey).update(stringToSign, \"utf8\").digest(\"base64\");\n }\n}\n\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nconst packageName = \"azure-storage-blob\";\nconst packageVersion = \"12.17.0\";\nclass StorageClientContext extends coreHttp__namespace.ServiceClient {\n /**\n * Initializes a new instance of the StorageClientContext class.\n * @param url The URL of the service account, container, or blob that is the target of the desired\n * operation.\n * @param options The parameter options\n */\n constructor(url, options) {\n if (url === undefined) {\n throw new Error(\"'url' cannot be null\");\n }\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n super(undefined, options);\n this.requestContentType = \"application/json; charset=utf-8\";\n this.baseUri = options.endpoint || \"{url}\";\n // Parameter assignments\n this.url = url;\n // Assigning values to Constant parameters\n this.version = options.version || \"2023-11-03\";\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A StorageClient represents a based URL class for {@link BlobServiceClient}, {@link ContainerClient}\n * and etc.\n */\nclass StorageClient {\n /**\n * Creates an instance of StorageClient.\n * @param url - url to resource\n * @param pipeline - request policy pipeline.\n */\n constructor(url, pipeline) {\n // URL should be encoded and only once, protocol layer shouldn't encode URL again\n this.url = escapeURLPath(url);\n this.accountName = getAccountNameFromUrl(url);\n this.pipeline = pipeline;\n this.storageClientContext = new StorageClientContext(this.url, pipeline.toServiceClientOptions());\n this.isHttps = iEqual(getURLScheme(this.url) || \"\", \"https\");\n this.credential = new AnonymousCredential();\n for (const factory of this.pipeline.factories) {\n if ((coreHttp.isNode && factory instanceof StorageSharedKeyCredential) ||\n factory instanceof AnonymousCredential) {\n this.credential = factory;\n }\n else if (coreHttp.isTokenCredential(factory.credential)) {\n // Only works if the factory has been attached a \"credential\" property.\n // We do that in newPipeline() when using TokenCredential.\n this.credential = factory.credential;\n }\n }\n // Override protocol layer's default content-type\n const storageClientContext = this.storageClientContext;\n storageClientContext.requestContentType = undefined;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Creates a span using the global tracer.\n * @internal\n */\nconst createSpan = coreTracing.createSpanFunction({\n packagePrefix: \"Azure.Storage.Blob\",\n namespace: \"Microsoft.Storage\",\n});\n/**\n * @internal\n *\n * Adapt the tracing options from OperationOptions to what they need to be for\n * RequestOptionsBase (when we update to later OpenTelemetry versions this is now\n * two separate fields, not just one).\n */\nfunction convertTracingToRequestOptionsBase(options) {\n var _a, _b;\n return {\n // By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier.\n spanOptions: (_a = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _a === void 0 ? void 0 : _a.spanOptions,\n tracingContext: (_b = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _b === void 0 ? void 0 : _b.tracingContext,\n };\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a blob. Setting\n * a value to true means that any SAS which uses these permissions will grant permissions for that operation. Once all\n * the values are set, this should be serialized with toString and set as the permissions field on a\n * {@link BlobSASSignatureValues} object. It is possible to construct the permissions string without this class, but\n * the order of the permissions is particular and this class guarantees correctness.\n */\nclass BlobSASPermissions {\n constructor() {\n /**\n * Specifies Read access granted.\n */\n this.read = false;\n /**\n * Specifies Add access granted.\n */\n this.add = false;\n /**\n * Specifies Create access granted.\n */\n this.create = false;\n /**\n * Specifies Write access granted.\n */\n this.write = false;\n /**\n * Specifies Delete access granted.\n */\n this.delete = false;\n /**\n * Specifies Delete version access granted.\n */\n this.deleteVersion = false;\n /**\n * Specfies Tag access granted.\n */\n this.tag = false;\n /**\n * Specifies Move access granted.\n */\n this.move = false;\n /**\n * Specifies Execute access granted.\n */\n this.execute = false;\n /**\n * Specifies SetImmutabilityPolicy access granted.\n */\n this.setImmutabilityPolicy = false;\n /**\n * Specifies that Permanent Delete is permitted.\n */\n this.permanentDelete = false;\n }\n /**\n * Creates a {@link BlobSASPermissions} from the specified permissions string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid permission.\n *\n * @param permissions -\n */\n static parse(permissions) {\n const blobSASPermissions = new BlobSASPermissions();\n for (const char of permissions) {\n switch (char) {\n case \"r\":\n blobSASPermissions.read = true;\n break;\n case \"a\":\n blobSASPermissions.add = true;\n break;\n case \"c\":\n blobSASPermissions.create = true;\n break;\n case \"w\":\n blobSASPermissions.write = true;\n break;\n case \"d\":\n blobSASPermissions.delete = true;\n break;\n case \"x\":\n blobSASPermissions.deleteVersion = true;\n break;\n case \"t\":\n blobSASPermissions.tag = true;\n break;\n case \"m\":\n blobSASPermissions.move = true;\n break;\n case \"e\":\n blobSASPermissions.execute = true;\n break;\n case \"i\":\n blobSASPermissions.setImmutabilityPolicy = true;\n break;\n case \"y\":\n blobSASPermissions.permanentDelete = true;\n break;\n default:\n throw new RangeError(`Invalid permission: ${char}`);\n }\n }\n return blobSASPermissions;\n }\n /**\n * Creates a {@link BlobSASPermissions} from a raw object which contains same keys as it\n * and boolean values for them.\n *\n * @param permissionLike -\n */\n static from(permissionLike) {\n const blobSASPermissions = new BlobSASPermissions();\n if (permissionLike.read) {\n blobSASPermissions.read = true;\n }\n if (permissionLike.add) {\n blobSASPermissions.add = true;\n }\n if (permissionLike.create) {\n blobSASPermissions.create = true;\n }\n if (permissionLike.write) {\n blobSASPermissions.write = true;\n }\n if (permissionLike.delete) {\n blobSASPermissions.delete = true;\n }\n if (permissionLike.deleteVersion) {\n blobSASPermissions.deleteVersion = true;\n }\n if (permissionLike.tag) {\n blobSASPermissions.tag = true;\n }\n if (permissionLike.move) {\n blobSASPermissions.move = true;\n }\n if (permissionLike.execute) {\n blobSASPermissions.execute = true;\n }\n if (permissionLike.setImmutabilityPolicy) {\n blobSASPermissions.setImmutabilityPolicy = true;\n }\n if (permissionLike.permanentDelete) {\n blobSASPermissions.permanentDelete = true;\n }\n return blobSASPermissions;\n }\n /**\n * Converts the given permissions to a string. Using this method will guarantee the permissions are in an\n * order accepted by the service.\n *\n * @returns A string which represents the BlobSASPermissions\n */\n toString() {\n const permissions = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.deleteVersion) {\n permissions.push(\"x\");\n }\n if (this.tag) {\n permissions.push(\"t\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.setImmutabilityPolicy) {\n permissions.push(\"i\");\n }\n if (this.permanentDelete) {\n permissions.push(\"y\");\n }\n return permissions.join(\"\");\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a container.\n * Setting a value to true means that any SAS which uses these permissions will grant permissions for that operation.\n * Once all the values are set, this should be serialized with toString and set as the permissions field on a\n * {@link BlobSASSignatureValues} object. It is possible to construct the permissions string without this class, but\n * the order of the permissions is particular and this class guarantees correctness.\n */\nclass ContainerSASPermissions {\n constructor() {\n /**\n * Specifies Read access granted.\n */\n this.read = false;\n /**\n * Specifies Add access granted.\n */\n this.add = false;\n /**\n * Specifies Create access granted.\n */\n this.create = false;\n /**\n * Specifies Write access granted.\n */\n this.write = false;\n /**\n * Specifies Delete access granted.\n */\n this.delete = false;\n /**\n * Specifies Delete version access granted.\n */\n this.deleteVersion = false;\n /**\n * Specifies List access granted.\n */\n this.list = false;\n /**\n * Specfies Tag access granted.\n */\n this.tag = false;\n /**\n * Specifies Move access granted.\n */\n this.move = false;\n /**\n * Specifies Execute access granted.\n */\n this.execute = false;\n /**\n * Specifies SetImmutabilityPolicy access granted.\n */\n this.setImmutabilityPolicy = false;\n /**\n * Specifies that Permanent Delete is permitted.\n */\n this.permanentDelete = false;\n /**\n * Specifies that Filter Blobs by Tags is permitted.\n */\n this.filterByTags = false;\n }\n /**\n * Creates an {@link ContainerSASPermissions} from the specified permissions string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid permission.\n *\n * @param permissions -\n */\n static parse(permissions) {\n const containerSASPermissions = new ContainerSASPermissions();\n for (const char of permissions) {\n switch (char) {\n case \"r\":\n containerSASPermissions.read = true;\n break;\n case \"a\":\n containerSASPermissions.add = true;\n break;\n case \"c\":\n containerSASPermissions.create = true;\n break;\n case \"w\":\n containerSASPermissions.write = true;\n break;\n case \"d\":\n containerSASPermissions.delete = true;\n break;\n case \"l\":\n containerSASPermissions.list = true;\n break;\n case \"t\":\n containerSASPermissions.tag = true;\n break;\n case \"x\":\n containerSASPermissions.deleteVersion = true;\n break;\n case \"m\":\n containerSASPermissions.move = true;\n break;\n case \"e\":\n containerSASPermissions.execute = true;\n break;\n case \"i\":\n containerSASPermissions.setImmutabilityPolicy = true;\n break;\n case \"y\":\n containerSASPermissions.permanentDelete = true;\n break;\n case \"f\":\n containerSASPermissions.filterByTags = true;\n break;\n default:\n throw new RangeError(`Invalid permission ${char}`);\n }\n }\n return containerSASPermissions;\n }\n /**\n * Creates a {@link ContainerSASPermissions} from a raw object which contains same keys as it\n * and boolean values for them.\n *\n * @param permissionLike -\n */\n static from(permissionLike) {\n const containerSASPermissions = new ContainerSASPermissions();\n if (permissionLike.read) {\n containerSASPermissions.read = true;\n }\n if (permissionLike.add) {\n containerSASPermissions.add = true;\n }\n if (permissionLike.create) {\n containerSASPermissions.create = true;\n }\n if (permissionLike.write) {\n containerSASPermissions.write = true;\n }\n if (permissionLike.delete) {\n containerSASPermissions.delete = true;\n }\n if (permissionLike.list) {\n containerSASPermissions.list = true;\n }\n if (permissionLike.deleteVersion) {\n containerSASPermissions.deleteVersion = true;\n }\n if (permissionLike.tag) {\n containerSASPermissions.tag = true;\n }\n if (permissionLike.move) {\n containerSASPermissions.move = true;\n }\n if (permissionLike.execute) {\n containerSASPermissions.execute = true;\n }\n if (permissionLike.setImmutabilityPolicy) {\n containerSASPermissions.setImmutabilityPolicy = true;\n }\n if (permissionLike.permanentDelete) {\n containerSASPermissions.permanentDelete = true;\n }\n if (permissionLike.filterByTags) {\n containerSASPermissions.filterByTags = true;\n }\n return containerSASPermissions;\n }\n /**\n * Converts the given permissions to a string. Using this method will guarantee the permissions are in an\n * order accepted by the service.\n *\n * The order of the characters should be as specified here to ensure correctness.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas\n *\n */\n toString() {\n const permissions = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.deleteVersion) {\n permissions.push(\"x\");\n }\n if (this.list) {\n permissions.push(\"l\");\n }\n if (this.tag) {\n permissions.push(\"t\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.setImmutabilityPolicy) {\n permissions.push(\"i\");\n }\n if (this.permanentDelete) {\n permissions.push(\"y\");\n }\n if (this.filterByTags) {\n permissions.push(\"f\");\n }\n return permissions.join(\"\");\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * UserDelegationKeyCredential is only used for generation of user delegation SAS.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas\n */\nclass UserDelegationKeyCredential {\n /**\n * Creates an instance of UserDelegationKeyCredential.\n * @param accountName -\n * @param userDelegationKey -\n */\n constructor(accountName, userDelegationKey) {\n this.accountName = accountName;\n this.userDelegationKey = userDelegationKey;\n this.key = Buffer.from(userDelegationKey.value, \"base64\");\n }\n /**\n * Generates a hash signature for an HTTP request or for a SAS.\n *\n * @param stringToSign -\n */\n computeHMACSHA256(stringToSign) {\n // console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);\n return crypto.createHmac(\"sha256\", this.key).update(stringToSign, \"utf8\").digest(\"base64\");\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Generate SasIPRange format string. For example:\n *\n * \"8.8.8.8\" or \"1.1.1.1-255.255.255.255\"\n *\n * @param ipRange -\n */\nfunction ipRangeToString(ipRange) {\n return ipRange.end ? `${ipRange.start}-${ipRange.end}` : ipRange.start;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Protocols for generated SAS.\n */\nexports.SASProtocol = void 0;\n(function (SASProtocol) {\n /**\n * Protocol that allows HTTPS only\n */\n SASProtocol[\"Https\"] = \"https\";\n /**\n * Protocol that allows both HTTPS and HTTP\n */\n SASProtocol[\"HttpsAndHttp\"] = \"https,http\";\n})(exports.SASProtocol || (exports.SASProtocol = {}));\n/**\n * Represents the components that make up an Azure Storage SAS' query parameters. This type is not constructed directly\n * by the user; it is only generated by the {@link AccountSASSignatureValues} and {@link BlobSASSignatureValues}\n * types. Once generated, it can be encoded into a {@link String} and appended to a URL directly (though caution should\n * be taken here in case there are existing query parameters, which might affect the appropriate means of appending\n * these query parameters).\n *\n * NOTE: Instances of this class are immutable.\n */\nclass SASQueryParameters {\n constructor(version, signature, permissionsOrOptions, services, resourceTypes, protocol, startsOn, expiresOn, ipRange, identifier, resource, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType, userDelegationKey, preauthorizedAgentObjectId, correlationId, encryptionScope) {\n this.version = version;\n this.signature = signature;\n if (permissionsOrOptions !== undefined && typeof permissionsOrOptions !== \"string\") {\n // SASQueryParametersOptions\n this.permissions = permissionsOrOptions.permissions;\n this.services = permissionsOrOptions.services;\n this.resourceTypes = permissionsOrOptions.resourceTypes;\n this.protocol = permissionsOrOptions.protocol;\n this.startsOn = permissionsOrOptions.startsOn;\n this.expiresOn = permissionsOrOptions.expiresOn;\n this.ipRangeInner = permissionsOrOptions.ipRange;\n this.identifier = permissionsOrOptions.identifier;\n this.encryptionScope = permissionsOrOptions.encryptionScope;\n this.resource = permissionsOrOptions.resource;\n this.cacheControl = permissionsOrOptions.cacheControl;\n this.contentDisposition = permissionsOrOptions.contentDisposition;\n this.contentEncoding = permissionsOrOptions.contentEncoding;\n this.contentLanguage = permissionsOrOptions.contentLanguage;\n this.contentType = permissionsOrOptions.contentType;\n if (permissionsOrOptions.userDelegationKey) {\n this.signedOid = permissionsOrOptions.userDelegationKey.signedObjectId;\n this.signedTenantId = permissionsOrOptions.userDelegationKey.signedTenantId;\n this.signedStartsOn = permissionsOrOptions.userDelegationKey.signedStartsOn;\n this.signedExpiresOn = permissionsOrOptions.userDelegationKey.signedExpiresOn;\n this.signedService = permissionsOrOptions.userDelegationKey.signedService;\n this.signedVersion = permissionsOrOptions.userDelegationKey.signedVersion;\n this.preauthorizedAgentObjectId = permissionsOrOptions.preauthorizedAgentObjectId;\n this.correlationId = permissionsOrOptions.correlationId;\n }\n }\n else {\n this.services = services;\n this.resourceTypes = resourceTypes;\n this.expiresOn = expiresOn;\n this.permissions = permissionsOrOptions;\n this.protocol = protocol;\n this.startsOn = startsOn;\n this.ipRangeInner = ipRange;\n this.encryptionScope = encryptionScope;\n this.identifier = identifier;\n this.resource = resource;\n this.cacheControl = cacheControl;\n this.contentDisposition = contentDisposition;\n this.contentEncoding = contentEncoding;\n this.contentLanguage = contentLanguage;\n this.contentType = contentType;\n if (userDelegationKey) {\n this.signedOid = userDelegationKey.signedObjectId;\n this.signedTenantId = userDelegationKey.signedTenantId;\n this.signedStartsOn = userDelegationKey.signedStartsOn;\n this.signedExpiresOn = userDelegationKey.signedExpiresOn;\n this.signedService = userDelegationKey.signedService;\n this.signedVersion = userDelegationKey.signedVersion;\n this.preauthorizedAgentObjectId = preauthorizedAgentObjectId;\n this.correlationId = correlationId;\n }\n }\n }\n /**\n * Optional. IP range allowed for this SAS.\n *\n * @readonly\n */\n get ipRange() {\n if (this.ipRangeInner) {\n return {\n end: this.ipRangeInner.end,\n start: this.ipRangeInner.start,\n };\n }\n return undefined;\n }\n /**\n * Encodes all SAS query parameters into a string that can be appended to a URL.\n *\n */\n toString() {\n const params = [\n \"sv\",\n \"ss\",\n \"srt\",\n \"spr\",\n \"st\",\n \"se\",\n \"sip\",\n \"si\",\n \"ses\",\n \"skoid\",\n \"sktid\",\n \"skt\",\n \"ske\",\n \"sks\",\n \"skv\",\n \"sr\",\n \"sp\",\n \"sig\",\n \"rscc\",\n \"rscd\",\n \"rsce\",\n \"rscl\",\n \"rsct\",\n \"saoid\",\n \"scid\",\n ];\n const queries = [];\n for (const param of params) {\n switch (param) {\n case \"sv\":\n this.tryAppendQueryParameter(queries, param, this.version);\n break;\n case \"ss\":\n this.tryAppendQueryParameter(queries, param, this.services);\n break;\n case \"srt\":\n this.tryAppendQueryParameter(queries, param, this.resourceTypes);\n break;\n case \"spr\":\n this.tryAppendQueryParameter(queries, param, this.protocol);\n break;\n case \"st\":\n this.tryAppendQueryParameter(queries, param, this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined);\n break;\n case \"se\":\n this.tryAppendQueryParameter(queries, param, this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined);\n break;\n case \"sip\":\n this.tryAppendQueryParameter(queries, param, this.ipRange ? ipRangeToString(this.ipRange) : undefined);\n break;\n case \"si\":\n this.tryAppendQueryParameter(queries, param, this.identifier);\n break;\n case \"ses\":\n this.tryAppendQueryParameter(queries, param, this.encryptionScope);\n break;\n case \"skoid\": // Signed object ID\n this.tryAppendQueryParameter(queries, param, this.signedOid);\n break;\n case \"sktid\": // Signed tenant ID\n this.tryAppendQueryParameter(queries, param, this.signedTenantId);\n break;\n case \"skt\": // Signed key start time\n this.tryAppendQueryParameter(queries, param, this.signedStartsOn ? truncatedISO8061Date(this.signedStartsOn, false) : undefined);\n break;\n case \"ske\": // Signed key expiry time\n this.tryAppendQueryParameter(queries, param, this.signedExpiresOn ? truncatedISO8061Date(this.signedExpiresOn, false) : undefined);\n break;\n case \"sks\": // Signed key service\n this.tryAppendQueryParameter(queries, param, this.signedService);\n break;\n case \"skv\": // Signed key version\n this.tryAppendQueryParameter(queries, param, this.signedVersion);\n break;\n case \"sr\":\n this.tryAppendQueryParameter(queries, param, this.resource);\n break;\n case \"sp\":\n this.tryAppendQueryParameter(queries, param, this.permissions);\n break;\n case \"sig\":\n this.tryAppendQueryParameter(queries, param, this.signature);\n break;\n case \"rscc\":\n this.tryAppendQueryParameter(queries, param, this.cacheControl);\n break;\n case \"rscd\":\n this.tryAppendQueryParameter(queries, param, this.contentDisposition);\n break;\n case \"rsce\":\n this.tryAppendQueryParameter(queries, param, this.contentEncoding);\n break;\n case \"rscl\":\n this.tryAppendQueryParameter(queries, param, this.contentLanguage);\n break;\n case \"rsct\":\n this.tryAppendQueryParameter(queries, param, this.contentType);\n break;\n case \"saoid\":\n this.tryAppendQueryParameter(queries, param, this.preauthorizedAgentObjectId);\n break;\n case \"scid\":\n this.tryAppendQueryParameter(queries, param, this.correlationId);\n break;\n }\n }\n return queries.join(\"&\");\n }\n /**\n * A private helper method used to filter and append query key/value pairs into an array.\n *\n * @param queries -\n * @param key -\n * @param value -\n */\n tryAppendQueryParameter(queries, key, value) {\n if (!value) {\n return;\n }\n key = encodeURIComponent(key);\n value = encodeURIComponent(value);\n if (key.length > 0 && value.length > 0) {\n queries.push(`${key}=${value}`);\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nfunction generateBlobSASQueryParameters(blobSASSignatureValues, sharedKeyCredentialOrUserDelegationKey, accountName) {\n const version = blobSASSignatureValues.version ? blobSASSignatureValues.version : SERVICE_VERSION;\n const sharedKeyCredential = sharedKeyCredentialOrUserDelegationKey instanceof StorageSharedKeyCredential\n ? sharedKeyCredentialOrUserDelegationKey\n : undefined;\n let userDelegationKeyCredential;\n if (sharedKeyCredential === undefined && accountName !== undefined) {\n userDelegationKeyCredential = new UserDelegationKeyCredential(accountName, sharedKeyCredentialOrUserDelegationKey);\n }\n if (sharedKeyCredential === undefined && userDelegationKeyCredential === undefined) {\n throw TypeError(\"Invalid sharedKeyCredential, userDelegationKey or accountName.\");\n }\n // Version 2020-12-06 adds support for encryptionscope in SAS.\n if (version >= \"2020-12-06\") {\n if (sharedKeyCredential !== undefined) {\n return generateBlobSASQueryParameters20201206(blobSASSignatureValues, sharedKeyCredential);\n }\n else {\n return generateBlobSASQueryParametersUDK20201206(blobSASSignatureValues, userDelegationKeyCredential);\n }\n }\n // Version 2019-12-12 adds support for the blob tags permission.\n // Version 2018-11-09 adds support for the signed resource and signed blob snapshot time fields.\n // https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas#constructing-the-signature-string\n if (version >= \"2018-11-09\") {\n if (sharedKeyCredential !== undefined) {\n return generateBlobSASQueryParameters20181109(blobSASSignatureValues, sharedKeyCredential);\n }\n else {\n // Version 2020-02-10 delegation SAS signature construction includes preauthorizedAgentObjectId, agentObjectId, correlationId.\n if (version >= \"2020-02-10\") {\n return generateBlobSASQueryParametersUDK20200210(blobSASSignatureValues, userDelegationKeyCredential);\n }\n else {\n return generateBlobSASQueryParametersUDK20181109(blobSASSignatureValues, userDelegationKeyCredential);\n }\n }\n }\n if (version >= \"2015-04-05\") {\n if (sharedKeyCredential !== undefined) {\n return generateBlobSASQueryParameters20150405(blobSASSignatureValues, sharedKeyCredential);\n }\n else {\n throw new RangeError(\"'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.\");\n }\n }\n throw new RangeError(\"'version' must be >= '2015-04-05'.\");\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n * IMPLEMENTATION FOR API VERSION FROM 2015-04-05 AND BEFORE 2018-11-09.\n *\n * Creates an instance of SASQueryParameters.\n *\n * Only accepts required settings needed to create a SAS. For optional settings please\n * set corresponding properties directly, such as permissions, startsOn and identifier.\n *\n * WARNING: When identifier is not provided, permissions and expiresOn are required.\n * You MUST assign value to identifier or expiresOn & permissions manually if you initial with\n * this constructor.\n *\n * @param blobSASSignatureValues -\n * @param sharedKeyCredential -\n */\nfunction generateBlobSASQueryParameters20150405(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n let resource = \"c\";\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\",\n ].join(\"\\n\");\n const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n * IMPLEMENTATION FOR API VERSION FROM 2018-11-09.\n *\n * Creates an instance of SASQueryParameters.\n *\n * Only accepts required settings needed to create a SAS. For optional settings please\n * set corresponding properties directly, such as permissions, startsOn and identifier.\n *\n * WARNING: When identifier is not provided, permissions and expiresOn are required.\n * You MUST assign value to identifier or expiresOn & permissions manually if you initial with\n * this constructor.\n *\n * @param blobSASSignatureValues -\n * @param sharedKeyCredential -\n */\nfunction generateBlobSASQueryParameters20181109(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n let resource = \"c\";\n let timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\",\n ].join(\"\\n\");\n const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n * IMPLEMENTATION FOR API VERSION FROM 2020-12-06.\n *\n * Creates an instance of SASQueryParameters.\n *\n * Only accepts required settings needed to create a SAS. For optional settings please\n * set corresponding properties directly, such as permissions, startsOn and identifier.\n *\n * WARNING: When identifier is not provided, permissions and expiresOn are required.\n * You MUST assign value to identifier or expiresOn & permissions manually if you initial with\n * this constructor.\n *\n * @param blobSASSignatureValues -\n * @param sharedKeyCredential -\n */\nfunction generateBlobSASQueryParameters20201206(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n let resource = \"c\";\n let timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.encryptionScope,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\",\n ].join(\"\\n\");\n const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, undefined, undefined, undefined, blobSASSignatureValues.encryptionScope);\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n * IMPLEMENTATION FOR API VERSION FROM 2018-11-09.\n *\n * Creates an instance of SASQueryParameters.\n *\n * Only accepts required settings needed to create a SAS. For optional settings please\n * set corresponding properties directly, such as permissions, startsOn.\n *\n * WARNING: identifier will be ignored, permissions and expiresOn are required.\n *\n * @param blobSASSignatureValues -\n * @param userDelegationKeyCredential -\n */\nfunction generateBlobSASQueryParametersUDK20181109(blobSASSignatureValues, userDelegationKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n // Stored access policies are not supported for a user delegation SAS.\n if (!blobSASSignatureValues.permissions || !blobSASSignatureValues.expiresOn) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.\");\n }\n let resource = \"c\";\n let timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(userDelegationKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n userDelegationKeyCredential.userDelegationKey.signedObjectId,\n userDelegationKeyCredential.userDelegationKey.signedTenantId,\n userDelegationKeyCredential.userDelegationKey.signedStartsOn\n ? truncatedISO8061Date(userDelegationKeyCredential.userDelegationKey.signedStartsOn, false)\n : \"\",\n userDelegationKeyCredential.userDelegationKey.signedExpiresOn\n ? truncatedISO8061Date(userDelegationKeyCredential.userDelegationKey.signedExpiresOn, false)\n : \"\",\n userDelegationKeyCredential.userDelegationKey.signedService,\n userDelegationKeyCredential.userDelegationKey.signedVersion,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.cacheControl,\n blobSASSignatureValues.contentDisposition,\n blobSASSignatureValues.contentEncoding,\n blobSASSignatureValues.contentLanguage,\n blobSASSignatureValues.contentType,\n ].join(\"\\n\");\n const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey);\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n * IMPLEMENTATION FOR API VERSION FROM 2020-02-10.\n *\n * Creates an instance of SASQueryParameters.\n *\n * Only accepts required settings needed to create a SAS. For optional settings please\n * set corresponding properties directly, such as permissions, startsOn.\n *\n * WARNING: identifier will be ignored, permissions and expiresOn are required.\n *\n * @param blobSASSignatureValues -\n * @param userDelegationKeyCredential -\n */\nfunction generateBlobSASQueryParametersUDK20200210(blobSASSignatureValues, userDelegationKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n // Stored access policies are not supported for a user delegation SAS.\n if (!blobSASSignatureValues.permissions || !blobSASSignatureValues.expiresOn) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.\");\n }\n let resource = \"c\";\n let timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(userDelegationKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n userDelegationKeyCredential.userDelegationKey.signedObjectId,\n userDelegationKeyCredential.userDelegationKey.signedTenantId,\n userDelegationKeyCredential.userDelegationKey.signedStartsOn\n ? truncatedISO8061Date(userDelegationKeyCredential.userDelegationKey.signedStartsOn, false)\n : \"\",\n userDelegationKeyCredential.userDelegationKey.signedExpiresOn\n ? truncatedISO8061Date(userDelegationKeyCredential.userDelegationKey.signedExpiresOn, false)\n : \"\",\n userDelegationKeyCredential.userDelegationKey.signedService,\n userDelegationKeyCredential.userDelegationKey.signedVersion,\n blobSASSignatureValues.preauthorizedAgentObjectId,\n undefined,\n blobSASSignatureValues.correlationId,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.cacheControl,\n blobSASSignatureValues.contentDisposition,\n blobSASSignatureValues.contentEncoding,\n blobSASSignatureValues.contentLanguage,\n blobSASSignatureValues.contentType,\n ].join(\"\\n\");\n const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, blobSASSignatureValues.correlationId);\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n * IMPLEMENTATION FOR API VERSION FROM 2020-12-06.\n *\n * Creates an instance of SASQueryParameters.\n *\n * Only accepts required settings needed to create a SAS. For optional settings please\n * set corresponding properties directly, such as permissions, startsOn.\n *\n * WARNING: identifier will be ignored, permissions and expiresOn are required.\n *\n * @param blobSASSignatureValues -\n * @param userDelegationKeyCredential -\n */\nfunction generateBlobSASQueryParametersUDK20201206(blobSASSignatureValues, userDelegationKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n // Stored access policies are not supported for a user delegation SAS.\n if (!blobSASSignatureValues.permissions || !blobSASSignatureValues.expiresOn) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.\");\n }\n let resource = \"c\";\n let timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(userDelegationKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n userDelegationKeyCredential.userDelegationKey.signedObjectId,\n userDelegationKeyCredential.userDelegationKey.signedTenantId,\n userDelegationKeyCredential.userDelegationKey.signedStartsOn\n ? truncatedISO8061Date(userDelegationKeyCredential.userDelegationKey.signedStartsOn, false)\n : \"\",\n userDelegationKeyCredential.userDelegationKey.signedExpiresOn\n ? truncatedISO8061Date(userDelegationKeyCredential.userDelegationKey.signedExpiresOn, false)\n : \"\",\n userDelegationKeyCredential.userDelegationKey.signedService,\n userDelegationKeyCredential.userDelegationKey.signedVersion,\n blobSASSignatureValues.preauthorizedAgentObjectId,\n undefined,\n blobSASSignatureValues.correlationId,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.encryptionScope,\n blobSASSignatureValues.cacheControl,\n blobSASSignatureValues.contentDisposition,\n blobSASSignatureValues.contentEncoding,\n blobSASSignatureValues.contentLanguage,\n blobSASSignatureValues.contentType,\n ].join(\"\\n\");\n const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, blobSASSignatureValues.correlationId, blobSASSignatureValues.encryptionScope);\n}\nfunction getCanonicalName(accountName, containerName, blobName) {\n // Container: \"/blob/account/containerName\"\n // Blob: \"/blob/account/containerName/blobName\"\n const elements = [`/blob/${accountName}/${containerName}`];\n if (blobName) {\n elements.push(`/${blobName}`);\n }\n return elements.join(\"\");\n}\nfunction SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues) {\n const version = blobSASSignatureValues.version ? blobSASSignatureValues.version : SERVICE_VERSION;\n if (blobSASSignatureValues.snapshotTime && version < \"2018-11-09\") {\n throw RangeError(\"'version' must be >= '2018-11-09' when providing 'snapshotTime'.\");\n }\n if (blobSASSignatureValues.blobName === undefined && blobSASSignatureValues.snapshotTime) {\n throw RangeError(\"Must provide 'blobName' when providing 'snapshotTime'.\");\n }\n if (blobSASSignatureValues.versionId && version < \"2019-10-10\") {\n throw RangeError(\"'version' must be >= '2019-10-10' when providing 'versionId'.\");\n }\n if (blobSASSignatureValues.blobName === undefined && blobSASSignatureValues.versionId) {\n throw RangeError(\"Must provide 'blobName' when providing 'versionId'.\");\n }\n if (blobSASSignatureValues.permissions &&\n blobSASSignatureValues.permissions.setImmutabilityPolicy &&\n version < \"2020-08-04\") {\n throw RangeError(\"'version' must be >= '2020-08-04' when provided 'i' permission.\");\n }\n if (blobSASSignatureValues.permissions &&\n blobSASSignatureValues.permissions.deleteVersion &&\n version < \"2019-10-10\") {\n throw RangeError(\"'version' must be >= '2019-10-10' when providing 'x' permission.\");\n }\n if (blobSASSignatureValues.permissions &&\n blobSASSignatureValues.permissions.permanentDelete &&\n version < \"2019-10-10\") {\n throw RangeError(\"'version' must be >= '2019-10-10' when providing 'y' permission.\");\n }\n if (blobSASSignatureValues.permissions &&\n blobSASSignatureValues.permissions.tag &&\n version < \"2019-12-12\") {\n throw RangeError(\"'version' must be >= '2019-12-12' when providing 't' permission.\");\n }\n if (version < \"2020-02-10\" &&\n blobSASSignatureValues.permissions &&\n (blobSASSignatureValues.permissions.move || blobSASSignatureValues.permissions.execute)) {\n throw RangeError(\"'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.\");\n }\n if (version < \"2021-04-10\" &&\n blobSASSignatureValues.permissions &&\n blobSASSignatureValues.permissions.filterByTags) {\n throw RangeError(\"'version' must be >= '2021-04-10' when providing the 'f' permission.\");\n }\n if (version < \"2020-02-10\" &&\n (blobSASSignatureValues.preauthorizedAgentObjectId || blobSASSignatureValues.correlationId)) {\n throw RangeError(\"'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.\");\n }\n if (blobSASSignatureValues.encryptionScope && version < \"2020-12-06\") {\n throw RangeError(\"'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.\");\n }\n blobSASSignatureValues.version = version;\n return blobSASSignatureValues;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A client that manages leases for a {@link ContainerClient} or a {@link BlobClient}.\n */\nclass BlobLeaseClient {\n /**\n * Creates an instance of BlobLeaseClient.\n * @param client - The client to make the lease operation requests.\n * @param leaseId - Initial proposed lease id.\n */\n constructor(client, leaseId) {\n const clientContext = new StorageClientContext(client.url, client.pipeline.toServiceClientOptions());\n this._url = client.url;\n if (client.name === undefined) {\n this._isContainer = true;\n this._containerOrBlobOperation = new Container(clientContext);\n }\n else {\n this._isContainer = false;\n this._containerOrBlobOperation = new Blob$1(clientContext);\n }\n if (!leaseId) {\n leaseId = coreHttp.generateUuid();\n }\n this._leaseId = leaseId;\n }\n /**\n * Gets the lease Id.\n *\n * @readonly\n */\n get leaseId() {\n return this._leaseId;\n }\n /**\n * Gets the url.\n *\n * @readonly\n */\n get url() {\n return this._url;\n }\n /**\n * Establishes and manages a lock on a container for delete operations, or on a blob\n * for write and delete operations.\n * The lock duration can be 15 to 60 seconds, or can be infinite.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-container\n * and\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-blob\n *\n * @param duration - Must be between 15 to 60 seconds, or infinite (-1)\n * @param options - option to configure lease management operations.\n * @returns Response data for acquire lease operation.\n */\n async acquireLease(duration, options = {}) {\n var _a, _b, _c, _d, _e, _f;\n const { span, updatedOptions } = createSpan(\"BlobLeaseClient-acquireLease\", options);\n if (this._isContainer &&\n ((((_a = options.conditions) === null || _a === void 0 ? void 0 : _a.ifMatch) && ((_b = options.conditions) === null || _b === void 0 ? void 0 : _b.ifMatch) !== ETagNone) ||\n (((_c = options.conditions) === null || _c === void 0 ? void 0 : _c.ifNoneMatch) && ((_d = options.conditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch) !== ETagNone) ||\n ((_e = options.conditions) === null || _e === void 0 ? void 0 : _e.tagConditions))) {\n 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.\");\n }\n try {\n return await this._containerOrBlobOperation.acquireLease(Object.assign({ abortSignal: options.abortSignal, duration, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_f = options.conditions) === null || _f === void 0 ? void 0 : _f.tagConditions }), proposedLeaseId: this._leaseId }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * To change the ID of the lease.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-container\n * and\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-blob\n *\n * @param proposedLeaseId - the proposed new lease Id.\n * @param options - option to configure lease management operations.\n * @returns Response data for change lease operation.\n */\n async changeLease(proposedLeaseId, options = {}) {\n var _a, _b, _c, _d, _e, _f;\n const { span, updatedOptions } = createSpan(\"BlobLeaseClient-changeLease\", options);\n if (this._isContainer &&\n ((((_a = options.conditions) === null || _a === void 0 ? void 0 : _a.ifMatch) && ((_b = options.conditions) === null || _b === void 0 ? void 0 : _b.ifMatch) !== ETagNone) ||\n (((_c = options.conditions) === null || _c === void 0 ? void 0 : _c.ifNoneMatch) && ((_d = options.conditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch) !== ETagNone) ||\n ((_e = options.conditions) === null || _e === void 0 ? void 0 : _e.tagConditions))) {\n 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.\");\n }\n try {\n const response = await this._containerOrBlobOperation.changeLease(this._leaseId, proposedLeaseId, Object.assign({ abortSignal: options.abortSignal, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_f = options.conditions) === null || _f === void 0 ? void 0 : _f.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n this._leaseId = proposedLeaseId;\n return response;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * To free the lease if it is no longer needed so that another client may\n * immediately acquire a lease against the container or the blob.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-container\n * and\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-blob\n *\n * @param options - option to configure lease management operations.\n * @returns Response data for release lease operation.\n */\n async releaseLease(options = {}) {\n var _a, _b, _c, _d, _e, _f;\n const { span, updatedOptions } = createSpan(\"BlobLeaseClient-releaseLease\", options);\n if (this._isContainer &&\n ((((_a = options.conditions) === null || _a === void 0 ? void 0 : _a.ifMatch) && ((_b = options.conditions) === null || _b === void 0 ? void 0 : _b.ifMatch) !== ETagNone) ||\n (((_c = options.conditions) === null || _c === void 0 ? void 0 : _c.ifNoneMatch) && ((_d = options.conditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch) !== ETagNone) ||\n ((_e = options.conditions) === null || _e === void 0 ? void 0 : _e.tagConditions))) {\n 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.\");\n }\n try {\n return await this._containerOrBlobOperation.releaseLease(this._leaseId, Object.assign({ abortSignal: options.abortSignal, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_f = options.conditions) === null || _f === void 0 ? void 0 : _f.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * To renew the lease.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-container\n * and\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-blob\n *\n * @param options - Optional option to configure lease management operations.\n * @returns Response data for renew lease operation.\n */\n async renewLease(options = {}) {\n var _a, _b, _c, _d, _e, _f;\n const { span, updatedOptions } = createSpan(\"BlobLeaseClient-renewLease\", options);\n if (this._isContainer &&\n ((((_a = options.conditions) === null || _a === void 0 ? void 0 : _a.ifMatch) && ((_b = options.conditions) === null || _b === void 0 ? void 0 : _b.ifMatch) !== ETagNone) ||\n (((_c = options.conditions) === null || _c === void 0 ? void 0 : _c.ifNoneMatch) && ((_d = options.conditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch) !== ETagNone) ||\n ((_e = options.conditions) === null || _e === void 0 ? void 0 : _e.tagConditions))) {\n 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.\");\n }\n try {\n return await this._containerOrBlobOperation.renewLease(this._leaseId, Object.assign({ abortSignal: options.abortSignal, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_f = options.conditions) === null || _f === void 0 ? void 0 : _f.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * To end the lease but ensure that another client cannot acquire a new lease\n * until the current lease period has expired.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-container\n * and\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/lease-blob\n *\n * @param breakPeriod - Break period\n * @param options - Optional options to configure lease management operations.\n * @returns Response data for break lease operation.\n */\n async breakLease(breakPeriod, options = {}) {\n var _a, _b, _c, _d, _e, _f;\n const { span, updatedOptions } = createSpan(\"BlobLeaseClient-breakLease\", options);\n if (this._isContainer &&\n ((((_a = options.conditions) === null || _a === void 0 ? void 0 : _a.ifMatch) && ((_b = options.conditions) === null || _b === void 0 ? void 0 : _b.ifMatch) !== ETagNone) ||\n (((_c = options.conditions) === null || _c === void 0 ? void 0 : _c.ifNoneMatch) && ((_d = options.conditions) === null || _d === void 0 ? void 0 : _d.ifNoneMatch) !== ETagNone) ||\n ((_e = options.conditions) === null || _e === void 0 ? void 0 : _e.tagConditions))) {\n 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.\");\n }\n try {\n const operationOptions = Object.assign({ abortSignal: options.abortSignal, breakPeriod, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_f = options.conditions) === null || _f === void 0 ? void 0 : _f.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions));\n return await this._containerOrBlobOperation.breakLease(operationOptions);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * A Node.js ReadableStream will internally retry when internal ReadableStream unexpected ends.\n */\nclass RetriableReadableStream extends stream.Readable {\n /**\n * Creates an instance of RetriableReadableStream.\n *\n * @param source - The current ReadableStream returned from getter\n * @param getter - A method calling downloading request returning\n * a new ReadableStream from specified offset\n * @param offset - Offset position in original data source to read\n * @param count - How much data in original data source to read\n * @param options -\n */\n constructor(source, getter, offset, count, options = {}) {\n super({ highWaterMark: options.highWaterMark });\n this.retries = 0;\n this.sourceDataHandler = (data) => {\n if (this.options.doInjectErrorOnce) {\n this.options.doInjectErrorOnce = undefined;\n this.source.pause();\n this.source.removeAllListeners(\"data\");\n this.source.emit(\"end\");\n return;\n }\n // console.log(\n // `Offset: ${this.offset}, Received ${data.length} from internal stream`\n // );\n this.offset += data.length;\n if (this.onProgress) {\n this.onProgress({ loadedBytes: this.offset - this.start });\n }\n if (!this.push(data)) {\n this.source.pause();\n }\n };\n this.sourceErrorOrEndHandler = (err) => {\n if (err && err.name === \"AbortError\") {\n this.destroy(err);\n return;\n }\n // console.log(\n // `Source stream emits end or error, offset: ${\n // this.offset\n // }, dest end : ${this.end}`\n // );\n this.removeSourceEventHandlers();\n if (this.offset - 1 === this.end) {\n this.push(null);\n }\n else if (this.offset <= this.end) {\n // console.log(\n // `retries: ${this.retries}, max retries: ${this.maxRetries}`\n // );\n if (this.retries < this.maxRetryRequests) {\n this.retries += 1;\n this.getter(this.offset)\n .then((newSource) => {\n this.source = newSource;\n this.setSourceEventHandlers();\n return;\n })\n .catch((error) => {\n this.destroy(error);\n });\n }\n else {\n 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}`));\n }\n }\n else {\n this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset - 1}`));\n }\n };\n this.getter = getter;\n this.source = source;\n this.start = offset;\n this.offset = offset;\n this.end = offset + count - 1;\n this.maxRetryRequests =\n options.maxRetryRequests && options.maxRetryRequests >= 0 ? options.maxRetryRequests : 0;\n this.onProgress = options.onProgress;\n this.options = options;\n this.setSourceEventHandlers();\n }\n _read() {\n this.source.resume();\n }\n setSourceEventHandlers() {\n this.source.on(\"data\", this.sourceDataHandler);\n this.source.on(\"end\", this.sourceErrorOrEndHandler);\n this.source.on(\"error\", this.sourceErrorOrEndHandler);\n }\n removeSourceEventHandlers() {\n this.source.removeListener(\"data\", this.sourceDataHandler);\n this.source.removeListener(\"end\", this.sourceErrorOrEndHandler);\n this.source.removeListener(\"error\", this.sourceErrorOrEndHandler);\n }\n _destroy(error, callback) {\n // remove listener from source and release source\n this.removeSourceEventHandlers();\n this.source.destroy();\n callback(error === null ? undefined : error);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * BlobDownloadResponse implements BlobDownloadResponseParsed interface, and in Node.js runtime it will\n * automatically retry when internal read stream unexpected ends. (This kind of unexpected ends cannot\n * trigger retries defined in pipeline retry policy.)\n *\n * The {@link readableStreamBody} stream will retry underlayer, you can just use it as a normal Node.js\n * Readable stream.\n */\nclass BlobDownloadResponse {\n /**\n * Creates an instance of BlobDownloadResponse.\n *\n * @param originalResponse -\n * @param getter -\n * @param offset -\n * @param count -\n * @param options -\n */\n constructor(originalResponse, getter, offset, count, options = {}) {\n this.originalResponse = originalResponse;\n this.blobDownloadStream = new RetriableReadableStream(this.originalResponse.readableStreamBody, getter, offset, count, options);\n }\n /**\n * Indicates that the service supports\n * requests for partial file content.\n *\n * @readonly\n */\n get acceptRanges() {\n return this.originalResponse.acceptRanges;\n }\n /**\n * Returns if it was previously specified\n * for the file.\n *\n * @readonly\n */\n get cacheControl() {\n return this.originalResponse.cacheControl;\n }\n /**\n * Returns the value that was specified\n * for the 'x-ms-content-disposition' header and specifies how to process the\n * response.\n *\n * @readonly\n */\n get contentDisposition() {\n return this.originalResponse.contentDisposition;\n }\n /**\n * Returns the value that was specified\n * for the Content-Encoding request header.\n *\n * @readonly\n */\n get contentEncoding() {\n return this.originalResponse.contentEncoding;\n }\n /**\n * Returns the value that was specified\n * for the Content-Language request header.\n *\n * @readonly\n */\n get contentLanguage() {\n return this.originalResponse.contentLanguage;\n }\n /**\n * The current sequence number for a\n * page blob. This header is not returned for block blobs or append blobs.\n *\n * @readonly\n */\n get blobSequenceNumber() {\n return this.originalResponse.blobSequenceNumber;\n }\n /**\n * The blob's type. Possible values include:\n * 'BlockBlob', 'PageBlob', 'AppendBlob'.\n *\n * @readonly\n */\n get blobType() {\n return this.originalResponse.blobType;\n }\n /**\n * The number of bytes present in the\n * response body.\n *\n * @readonly\n */\n get contentLength() {\n return this.originalResponse.contentLength;\n }\n /**\n * If the file has an MD5 hash and the\n * request is to read the full file, this response header is returned so that\n * the client can check for message content integrity. If the request is to\n * read a specified range and the 'x-ms-range-get-content-md5' is set to\n * true, then the request returns an MD5 hash for the range, as long as the\n * range size is less than or equal to 4 MB. If neither of these sets of\n * conditions is true, then no value is returned for the 'Content-MD5'\n * header.\n *\n * @readonly\n */\n get contentMD5() {\n return this.originalResponse.contentMD5;\n }\n /**\n * Indicates the range of bytes returned if\n * the client requested a subset of the file by setting the Range request\n * header.\n *\n * @readonly\n */\n get contentRange() {\n return this.originalResponse.contentRange;\n }\n /**\n * The content type specified for the file.\n * The default content type is 'application/octet-stream'\n *\n * @readonly\n */\n get contentType() {\n return this.originalResponse.contentType;\n }\n /**\n * Conclusion time of the last attempted\n * Copy File operation where this file was the destination file. This value\n * can specify the time of a completed, aborted, or failed copy attempt.\n *\n * @readonly\n */\n get copyCompletedOn() {\n return this.originalResponse.copyCompletedOn;\n }\n /**\n * String identifier for the last attempted Copy\n * File operation where this file was the destination file.\n *\n * @readonly\n */\n get copyId() {\n return this.originalResponse.copyId;\n }\n /**\n * Contains the number of bytes copied and\n * the total bytes in the source in the last attempted Copy File operation\n * where this file was the destination file. Can show between 0 and\n * Content-Length bytes copied.\n *\n * @readonly\n */\n get copyProgress() {\n return this.originalResponse.copyProgress;\n }\n /**\n * URL up to 2KB in length that specifies the\n * source file used in the last attempted Copy File operation where this file\n * was the destination file.\n *\n * @readonly\n */\n get copySource() {\n return this.originalResponse.copySource;\n }\n /**\n * State of the copy operation\n * identified by 'x-ms-copy-id'. Possible values include: 'pending',\n * 'success', 'aborted', 'failed'\n *\n * @readonly\n */\n get copyStatus() {\n return this.originalResponse.copyStatus;\n }\n /**\n * Only appears when\n * x-ms-copy-status is failed or pending. Describes cause of fatal or\n * non-fatal copy operation failure.\n *\n * @readonly\n */\n get copyStatusDescription() {\n return this.originalResponse.copyStatusDescription;\n }\n /**\n * When a blob is leased,\n * specifies whether the lease is of infinite or fixed duration. Possible\n * values include: 'infinite', 'fixed'.\n *\n * @readonly\n */\n get leaseDuration() {\n return this.originalResponse.leaseDuration;\n }\n /**\n * Lease state of the blob. Possible\n * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.\n *\n * @readonly\n */\n get leaseState() {\n return this.originalResponse.leaseState;\n }\n /**\n * The current lease status of the\n * blob. Possible values include: 'locked', 'unlocked'.\n *\n * @readonly\n */\n get leaseStatus() {\n return this.originalResponse.leaseStatus;\n }\n /**\n * A UTC date/time value generated by the service that\n * indicates the time at which the response was initiated.\n *\n * @readonly\n */\n get date() {\n return this.originalResponse.date;\n }\n /**\n * The number of committed blocks\n * present in the blob. This header is returned only for append blobs.\n *\n * @readonly\n */\n get blobCommittedBlockCount() {\n return this.originalResponse.blobCommittedBlockCount;\n }\n /**\n * The ETag contains a value that you can use to\n * perform operations conditionally, in quotes.\n *\n * @readonly\n */\n get etag() {\n return this.originalResponse.etag;\n }\n /**\n * The number of tags associated with the blob\n *\n * @readonly\n */\n get tagCount() {\n return this.originalResponse.tagCount;\n }\n /**\n * The error code.\n *\n * @readonly\n */\n get errorCode() {\n return this.originalResponse.errorCode;\n }\n /**\n * The value of this header is set to\n * true if the file data and application metadata are completely encrypted\n * using the specified algorithm. Otherwise, the value is set to false (when\n * the file is unencrypted, or if only parts of the file/application metadata\n * are encrypted).\n *\n * @readonly\n */\n get isServerEncrypted() {\n return this.originalResponse.isServerEncrypted;\n }\n /**\n * If the blob has a MD5 hash, and if\n * request contains range header (Range or x-ms-range), this response header\n * is returned with the value of the whole blob's MD5 value. This value may\n * or may not be equal to the value returned in Content-MD5 header, with the\n * latter calculated from the requested range.\n *\n * @readonly\n */\n get blobContentMD5() {\n return this.originalResponse.blobContentMD5;\n }\n /**\n * Returns the date and time the file was last\n * modified. Any operation that modifies the file or its properties updates\n * the last modified time.\n *\n * @readonly\n */\n get lastModified() {\n return this.originalResponse.lastModified;\n }\n /**\n * Returns the UTC date and time generated by the service that indicates the time at which the blob was\n * last read or written to.\n *\n * @readonly\n */\n get lastAccessed() {\n return this.originalResponse.lastAccessed;\n }\n /**\n * Returns the date and time the blob was created.\n *\n * @readonly\n */\n get createdOn() {\n return this.originalResponse.createdOn;\n }\n /**\n * A name-value pair\n * to associate with a file storage object.\n *\n * @readonly\n */\n get metadata() {\n return this.originalResponse.metadata;\n }\n /**\n * This header uniquely identifies the request\n * that was made and can be used for troubleshooting the request.\n *\n * @readonly\n */\n get requestId() {\n return this.originalResponse.requestId;\n }\n /**\n * If a client request id header is sent in the request, this header will be present in the\n * response with the same value.\n *\n * @readonly\n */\n get clientRequestId() {\n return this.originalResponse.clientRequestId;\n }\n /**\n * Indicates the version of the Blob service used\n * to execute the request.\n *\n * @readonly\n */\n get version() {\n return this.originalResponse.version;\n }\n /**\n * Indicates the versionId of the downloaded blob version.\n *\n * @readonly\n */\n get versionId() {\n return this.originalResponse.versionId;\n }\n /**\n * Indicates whether version of this blob is a current version.\n *\n * @readonly\n */\n get isCurrentVersion() {\n return this.originalResponse.isCurrentVersion;\n }\n /**\n * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned\n * when the blob was encrypted with a customer-provided key.\n *\n * @readonly\n */\n get encryptionKeySha256() {\n return this.originalResponse.encryptionKeySha256;\n }\n /**\n * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to\n * true, then the request returns a crc64 for the range, as long as the range size is less than\n * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is\n * specified in the same request, it will fail with 400(Bad Request)\n */\n get contentCrc64() {\n return this.originalResponse.contentCrc64;\n }\n /**\n * Object Replication Policy Id of the destination blob.\n *\n * @readonly\n */\n get objectReplicationDestinationPolicyId() {\n return this.originalResponse.objectReplicationDestinationPolicyId;\n }\n /**\n * Parsed Object Replication Policy Id, Rule Id(s) and status of the source blob.\n *\n * @readonly\n */\n get objectReplicationSourceProperties() {\n return this.originalResponse.objectReplicationSourceProperties;\n }\n /**\n * If this blob has been sealed.\n *\n * @readonly\n */\n get isSealed() {\n return this.originalResponse.isSealed;\n }\n /**\n * UTC date/time value generated by the service that indicates the time at which the blob immutability policy will expire.\n *\n * @readonly\n */\n get immutabilityPolicyExpiresOn() {\n return this.originalResponse.immutabilityPolicyExpiresOn;\n }\n /**\n * Indicates immutability policy mode.\n *\n * @readonly\n */\n get immutabilityPolicyMode() {\n return this.originalResponse.immutabilityPolicyMode;\n }\n /**\n * Indicates if a legal hold is present on the blob.\n *\n * @readonly\n */\n get legalHold() {\n return this.originalResponse.legalHold;\n }\n /**\n * The response body as a browser Blob.\n * Always undefined in node.js.\n *\n * @readonly\n */\n get contentAsBlob() {\n return this.originalResponse.blobBody;\n }\n /**\n * The response body as a node.js Readable stream.\n * Always undefined in the browser.\n *\n * It will automatically retry when internal read stream unexpected ends.\n *\n * @readonly\n */\n get readableStreamBody() {\n return coreHttp.isNode ? this.blobDownloadStream : undefined;\n }\n /**\n * The HTTP response.\n */\n get _response() {\n return this.originalResponse._response;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nconst AVRO_SYNC_MARKER_SIZE = 16;\nconst AVRO_INIT_BYTES = new Uint8Array([79, 98, 106, 1]);\nconst AVRO_CODEC_KEY = \"avro.codec\";\nconst AVRO_SCHEMA_KEY = \"avro.schema\";\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nclass AvroParser {\n /**\n * Reads a fixed number of bytes from the stream.\n *\n * @param stream -\n * @param length -\n * @param options -\n */\n static async readFixedBytes(stream, length, options = {}) {\n const bytes = await stream.read(length, { abortSignal: options.abortSignal });\n if (bytes.length !== length) {\n throw new Error(\"Hit stream end.\");\n }\n return bytes;\n }\n /**\n * Reads a single byte from the stream.\n *\n * @param stream -\n * @param options -\n */\n static async readByte(stream, options = {}) {\n const buf = await AvroParser.readFixedBytes(stream, 1, options);\n return buf[0];\n }\n // int and long are stored in variable-length zig-zag coding.\n // variable-length: https://lucene.apache.org/core/3_5_0/fileformats.html#VInt\n // zig-zag: https://developers.google.com/protocol-buffers/docs/encoding?csw=1#types\n static async readZigZagLong(stream, options = {}) {\n let zigZagEncoded = 0;\n let significanceInBit = 0;\n let byte, haveMoreByte, significanceInFloat;\n do {\n byte = await AvroParser.readByte(stream, options);\n haveMoreByte = byte & 0x80;\n zigZagEncoded |= (byte & 0x7f) << significanceInBit;\n significanceInBit += 7;\n } while (haveMoreByte && significanceInBit < 28); // bitwise operation only works for 32-bit integers\n if (haveMoreByte) {\n // Switch to float arithmetic\n // eslint-disable-next-line no-self-assign\n zigZagEncoded = zigZagEncoded;\n significanceInFloat = 268435456; // 2 ** 28.\n do {\n byte = await AvroParser.readByte(stream, options);\n zigZagEncoded += (byte & 0x7f) * significanceInFloat;\n significanceInFloat *= 128; // 2 ** 7\n } while (byte & 0x80);\n const res = (zigZagEncoded % 2 ? -(zigZagEncoded + 1) : zigZagEncoded) / 2;\n if (res < Number.MIN_SAFE_INTEGER || res > Number.MAX_SAFE_INTEGER) {\n throw new Error(\"Integer overflow.\");\n }\n return res;\n }\n return (zigZagEncoded >> 1) ^ -(zigZagEncoded & 1);\n }\n static async readLong(stream, options = {}) {\n return AvroParser.readZigZagLong(stream, options);\n }\n static async readInt(stream, options = {}) {\n return AvroParser.readZigZagLong(stream, options);\n }\n static async readNull() {\n return null;\n }\n static async readBoolean(stream, options = {}) {\n const b = await AvroParser.readByte(stream, options);\n if (b === 1) {\n return true;\n }\n else if (b === 0) {\n return false;\n }\n else {\n throw new Error(\"Byte was not a boolean.\");\n }\n }\n static async readFloat(stream, options = {}) {\n const u8arr = await AvroParser.readFixedBytes(stream, 4, options);\n const view = new DataView(u8arr.buffer, u8arr.byteOffset, u8arr.byteLength);\n return view.getFloat32(0, true); // littleEndian = true\n }\n static async readDouble(stream, options = {}) {\n const u8arr = await AvroParser.readFixedBytes(stream, 8, options);\n const view = new DataView(u8arr.buffer, u8arr.byteOffset, u8arr.byteLength);\n return view.getFloat64(0, true); // littleEndian = true\n }\n static async readBytes(stream, options = {}) {\n const size = await AvroParser.readLong(stream, options);\n if (size < 0) {\n throw new Error(\"Bytes size was negative.\");\n }\n return stream.read(size, { abortSignal: options.abortSignal });\n }\n static async readString(stream, options = {}) {\n const u8arr = await AvroParser.readBytes(stream, options);\n const utf8decoder = new TextDecoder();\n return utf8decoder.decode(u8arr);\n }\n static async readMapPair(stream, readItemMethod, options = {}) {\n const key = await AvroParser.readString(stream, options);\n // FUTURE: this won't work with readFixed (currently not supported) which needs a length as the parameter.\n const value = await readItemMethod(stream, options);\n return { key, value };\n }\n static async readMap(stream, readItemMethod, options = {}) {\n const readPairMethod = (s, opts = {}) => {\n return AvroParser.readMapPair(s, readItemMethod, opts);\n };\n const pairs = await AvroParser.readArray(stream, readPairMethod, options);\n const dict = {};\n for (const pair of pairs) {\n dict[pair.key] = pair.value;\n }\n return dict;\n }\n static async readArray(stream, readItemMethod, options = {}) {\n const items = [];\n for (let count = await AvroParser.readLong(stream, options); count !== 0; count = await AvroParser.readLong(stream, options)) {\n if (count < 0) {\n // Ignore block sizes\n await AvroParser.readLong(stream, options);\n count = -count;\n }\n while (count--) {\n const item = await readItemMethod(stream, options);\n items.push(item);\n }\n }\n return items;\n }\n}\nvar AvroComplex;\n(function (AvroComplex) {\n AvroComplex[\"RECORD\"] = \"record\";\n AvroComplex[\"ENUM\"] = \"enum\";\n AvroComplex[\"ARRAY\"] = \"array\";\n AvroComplex[\"MAP\"] = \"map\";\n AvroComplex[\"UNION\"] = \"union\";\n AvroComplex[\"FIXED\"] = \"fixed\";\n})(AvroComplex || (AvroComplex = {}));\nvar AvroPrimitive;\n(function (AvroPrimitive) {\n AvroPrimitive[\"NULL\"] = \"null\";\n AvroPrimitive[\"BOOLEAN\"] = \"boolean\";\n AvroPrimitive[\"INT\"] = \"int\";\n AvroPrimitive[\"LONG\"] = \"long\";\n AvroPrimitive[\"FLOAT\"] = \"float\";\n AvroPrimitive[\"DOUBLE\"] = \"double\";\n AvroPrimitive[\"BYTES\"] = \"bytes\";\n AvroPrimitive[\"STRING\"] = \"string\";\n})(AvroPrimitive || (AvroPrimitive = {}));\nclass AvroType {\n /**\n * Determines the AvroType from the Avro Schema.\n */\n static fromSchema(schema) {\n if (typeof schema === \"string\") {\n return AvroType.fromStringSchema(schema);\n }\n else if (Array.isArray(schema)) {\n return AvroType.fromArraySchema(schema);\n }\n else {\n return AvroType.fromObjectSchema(schema);\n }\n }\n static fromStringSchema(schema) {\n switch (schema) {\n case AvroPrimitive.NULL:\n case AvroPrimitive.BOOLEAN:\n case AvroPrimitive.INT:\n case AvroPrimitive.LONG:\n case AvroPrimitive.FLOAT:\n case AvroPrimitive.DOUBLE:\n case AvroPrimitive.BYTES:\n case AvroPrimitive.STRING:\n return new AvroPrimitiveType(schema);\n default:\n throw new Error(`Unexpected Avro type ${schema}`);\n }\n }\n static fromArraySchema(schema) {\n return new AvroUnionType(schema.map(AvroType.fromSchema));\n }\n static fromObjectSchema(schema) {\n const type = schema.type;\n // Primitives can be defined as strings or objects\n try {\n return AvroType.fromStringSchema(type);\n }\n catch (err) {\n // eslint-disable-line no-empty\n }\n switch (type) {\n case AvroComplex.RECORD:\n if (schema.aliases) {\n throw new Error(`aliases currently is not supported, schema: ${schema}`);\n }\n if (!schema.name) {\n throw new Error(`Required attribute 'name' doesn't exist on schema: ${schema}`);\n }\n // eslint-disable-next-line no-case-declarations\n const fields = {};\n if (!schema.fields) {\n throw new Error(`Required attribute 'fields' doesn't exist on schema: ${schema}`);\n }\n for (const field of schema.fields) {\n fields[field.name] = AvroType.fromSchema(field.type);\n }\n return new AvroRecordType(fields, schema.name);\n case AvroComplex.ENUM:\n if (schema.aliases) {\n throw new Error(`aliases currently is not supported, schema: ${schema}`);\n }\n if (!schema.symbols) {\n throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${schema}`);\n }\n return new AvroEnumType(schema.symbols);\n case AvroComplex.MAP:\n if (!schema.values) {\n throw new Error(`Required attribute 'values' doesn't exist on schema: ${schema}`);\n }\n return new AvroMapType(AvroType.fromSchema(schema.values));\n case AvroComplex.ARRAY: // Unused today\n case AvroComplex.FIXED: // Unused today\n default:\n throw new Error(`Unexpected Avro type ${type} in ${schema}`);\n }\n }\n}\nclass AvroPrimitiveType extends AvroType {\n constructor(primitive) {\n super();\n this._primitive = primitive;\n }\n read(stream, options = {}) {\n switch (this._primitive) {\n case AvroPrimitive.NULL:\n return AvroParser.readNull();\n case AvroPrimitive.BOOLEAN:\n return AvroParser.readBoolean(stream, options);\n case AvroPrimitive.INT:\n return AvroParser.readInt(stream, options);\n case AvroPrimitive.LONG:\n return AvroParser.readLong(stream, options);\n case AvroPrimitive.FLOAT:\n return AvroParser.readFloat(stream, options);\n case AvroPrimitive.DOUBLE:\n return AvroParser.readDouble(stream, options);\n case AvroPrimitive.BYTES:\n return AvroParser.readBytes(stream, options);\n case AvroPrimitive.STRING:\n return AvroParser.readString(stream, options);\n default:\n throw new Error(\"Unknown Avro Primitive\");\n }\n }\n}\nclass AvroEnumType extends AvroType {\n constructor(symbols) {\n super();\n this._symbols = symbols;\n }\n async read(stream, options = {}) {\n const value = await AvroParser.readInt(stream, options);\n return this._symbols[value];\n }\n}\nclass AvroUnionType extends AvroType {\n constructor(types) {\n super();\n this._types = types;\n }\n async read(stream, options = {}) {\n // eslint-disable-line @typescript-eslint/ban-types\n const typeIndex = await AvroParser.readInt(stream, options);\n return this._types[typeIndex].read(stream, options);\n }\n}\nclass AvroMapType extends AvroType {\n constructor(itemType) {\n super();\n this._itemType = itemType;\n }\n read(stream, options = {}) {\n const readItemMethod = (s, opts) => {\n return this._itemType.read(s, opts);\n };\n return AvroParser.readMap(stream, readItemMethod, options);\n }\n}\nclass AvroRecordType extends AvroType {\n constructor(fields, name) {\n super();\n this._fields = fields;\n this._name = name;\n }\n async read(stream, options = {}) {\n const record = {};\n record[\"$schema\"] = this._name;\n for (const key in this._fields) {\n if (Object.prototype.hasOwnProperty.call(this._fields, key)) {\n record[key] = await this._fields[key].read(stream, options);\n }\n }\n return record;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nfunction arraysEqual(a, b) {\n if (a === b)\n return true;\n // eslint-disable-next-line eqeqeq\n if (a == null || b == null)\n return false;\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; ++i) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n}\n\n// Copyright (c) Microsoft Corporation.\nclass AvroReader {\n constructor(dataStream, headerStream, currentBlockOffset, indexWithinCurrentBlock) {\n this._dataStream = dataStream;\n this._headerStream = headerStream || dataStream;\n this._initialized = false;\n this._blockOffset = currentBlockOffset || 0;\n this._objectIndex = indexWithinCurrentBlock || 0;\n this._initialBlockOffset = currentBlockOffset || 0;\n }\n get blockOffset() {\n return this._blockOffset;\n }\n get objectIndex() {\n return this._objectIndex;\n }\n async initialize(options = {}) {\n const header = await AvroParser.readFixedBytes(this._headerStream, AVRO_INIT_BYTES.length, {\n abortSignal: options.abortSignal,\n });\n if (!arraysEqual(header, AVRO_INIT_BYTES)) {\n throw new Error(\"Stream is not an Avro file.\");\n }\n // File metadata is written as if defined by the following map schema:\n // { \"type\": \"map\", \"values\": \"bytes\"}\n this._metadata = await AvroParser.readMap(this._headerStream, AvroParser.readString, {\n abortSignal: options.abortSignal,\n });\n // Validate codec\n const codec = this._metadata[AVRO_CODEC_KEY];\n if (!(codec === undefined || codec === null || codec === \"null\")) {\n throw new Error(\"Codecs are not supported\");\n }\n // The 16-byte, randomly-generated sync marker for this file.\n this._syncMarker = await AvroParser.readFixedBytes(this._headerStream, AVRO_SYNC_MARKER_SIZE, {\n abortSignal: options.abortSignal,\n });\n // Parse the schema\n const schema = JSON.parse(this._metadata[AVRO_SCHEMA_KEY]);\n this._itemType = AvroType.fromSchema(schema);\n if (this._blockOffset === 0) {\n this._blockOffset = this._initialBlockOffset + this._dataStream.position;\n }\n this._itemsRemainingInBlock = await AvroParser.readLong(this._dataStream, {\n abortSignal: options.abortSignal,\n });\n // skip block length\n await AvroParser.readLong(this._dataStream, { abortSignal: options.abortSignal });\n this._initialized = true;\n if (this._objectIndex && this._objectIndex > 0) {\n for (let i = 0; i < this._objectIndex; i++) {\n await this._itemType.read(this._dataStream, { abortSignal: options.abortSignal });\n this._itemsRemainingInBlock--;\n }\n }\n }\n hasNext() {\n return !this._initialized || this._itemsRemainingInBlock > 0;\n }\n parseObjects(options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* parseObjects_1() {\n if (!this._initialized) {\n yield tslib.__await(this.initialize(options));\n }\n while (this.hasNext()) {\n const result = yield tslib.__await(this._itemType.read(this._dataStream, {\n abortSignal: options.abortSignal,\n }));\n this._itemsRemainingInBlock--;\n this._objectIndex++;\n if (this._itemsRemainingInBlock === 0) {\n const marker = yield tslib.__await(AvroParser.readFixedBytes(this._dataStream, AVRO_SYNC_MARKER_SIZE, {\n abortSignal: options.abortSignal,\n }));\n this._blockOffset = this._initialBlockOffset + this._dataStream.position;\n this._objectIndex = 0;\n if (!arraysEqual(this._syncMarker, marker)) {\n throw new Error(\"Stream is not a valid Avro file.\");\n }\n try {\n this._itemsRemainingInBlock = yield tslib.__await(AvroParser.readLong(this._dataStream, {\n abortSignal: options.abortSignal,\n }));\n }\n catch (err) {\n // We hit the end of the stream.\n this._itemsRemainingInBlock = 0;\n }\n if (this._itemsRemainingInBlock > 0) {\n // Ignore block size\n yield tslib.__await(AvroParser.readLong(this._dataStream, { abortSignal: options.abortSignal }));\n }\n }\n yield yield tslib.__await(result);\n }\n });\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nclass AvroReadable {\n}\n\n// Copyright (c) Microsoft Corporation.\nconst ABORT_ERROR = new abortController.AbortError(\"Reading from the avro stream was aborted.\");\nclass AvroReadableFromStream extends AvroReadable {\n constructor(readable) {\n super();\n this._readable = readable;\n this._position = 0;\n }\n toUint8Array(data) {\n if (typeof data === \"string\") {\n return Buffer.from(data);\n }\n return data;\n }\n get position() {\n return this._position;\n }\n async read(size, options = {}) {\n var _a;\n if ((_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {\n throw ABORT_ERROR;\n }\n if (size < 0) {\n throw new Error(`size parameter should be positive: ${size}`);\n }\n if (size === 0) {\n return new Uint8Array();\n }\n if (!this._readable.readable) {\n throw new Error(\"Stream no longer readable.\");\n }\n // See if there is already enough data.\n const chunk = this._readable.read(size);\n if (chunk) {\n this._position += chunk.length;\n // chunk.length maybe less than desired size if the stream ends.\n return this.toUint8Array(chunk);\n }\n else {\n // register callback to wait for enough data to read\n return new Promise((resolve, reject) => {\n /* eslint-disable @typescript-eslint/no-use-before-define */\n const cleanUp = () => {\n this._readable.removeListener(\"readable\", readableCallback);\n this._readable.removeListener(\"error\", rejectCallback);\n this._readable.removeListener(\"end\", rejectCallback);\n this._readable.removeListener(\"close\", rejectCallback);\n if (options.abortSignal) {\n options.abortSignal.removeEventListener(\"abort\", abortHandler);\n }\n };\n const readableCallback = () => {\n const callbackChunk = this._readable.read(size);\n if (callbackChunk) {\n this._position += callbackChunk.length;\n cleanUp();\n // callbackChunk.length maybe less than desired size if the stream ends.\n resolve(this.toUint8Array(callbackChunk));\n }\n };\n const rejectCallback = () => {\n cleanUp();\n reject();\n };\n const abortHandler = () => {\n cleanUp();\n reject(ABORT_ERROR);\n };\n this._readable.on(\"readable\", readableCallback);\n this._readable.once(\"error\", rejectCallback);\n this._readable.once(\"end\", rejectCallback);\n this._readable.once(\"close\", rejectCallback);\n if (options.abortSignal) {\n options.abortSignal.addEventListener(\"abort\", abortHandler);\n }\n /* eslint-enable @typescript-eslint/no-use-before-define */\n });\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * A Node.js BlobQuickQueryStream will internally parse avro data stream for blob query.\n */\nclass BlobQuickQueryStream extends stream.Readable {\n /**\n * Creates an instance of BlobQuickQueryStream.\n *\n * @param source - The current ReadableStream returned from getter\n * @param options -\n */\n constructor(source, options = {}) {\n super();\n this.avroPaused = true;\n this.source = source;\n this.onProgress = options.onProgress;\n this.onError = options.onError;\n this.avroReader = new AvroReader(new AvroReadableFromStream(this.source));\n this.avroIter = this.avroReader.parseObjects({ abortSignal: options.abortSignal });\n }\n _read() {\n if (this.avroPaused) {\n this.readInternal().catch((err) => {\n this.emit(\"error\", err);\n });\n }\n }\n async readInternal() {\n this.avroPaused = false;\n let avroNext;\n do {\n avroNext = await this.avroIter.next();\n if (avroNext.done) {\n break;\n }\n const obj = avroNext.value;\n const schema = obj.$schema;\n if (typeof schema !== \"string\") {\n throw Error(\"Missing schema in avro record.\");\n }\n switch (schema) {\n case \"com.microsoft.azure.storage.queryBlobContents.resultData\":\n {\n const data = obj.data;\n if (data instanceof Uint8Array === false) {\n throw Error(\"Invalid data in avro result record.\");\n }\n if (!this.push(Buffer.from(data))) {\n this.avroPaused = true;\n }\n }\n break;\n case \"com.microsoft.azure.storage.queryBlobContents.progress\":\n {\n const bytesScanned = obj.bytesScanned;\n if (typeof bytesScanned !== \"number\") {\n throw Error(\"Invalid bytesScanned in avro progress record.\");\n }\n if (this.onProgress) {\n this.onProgress({ loadedBytes: bytesScanned });\n }\n }\n break;\n case \"com.microsoft.azure.storage.queryBlobContents.end\":\n if (this.onProgress) {\n const totalBytes = obj.totalBytes;\n if (typeof totalBytes !== \"number\") {\n throw Error(\"Invalid totalBytes in avro end record.\");\n }\n this.onProgress({ loadedBytes: totalBytes });\n }\n this.push(null);\n break;\n case \"com.microsoft.azure.storage.queryBlobContents.error\":\n if (this.onError) {\n const fatal = obj.fatal;\n if (typeof fatal !== \"boolean\") {\n throw Error(\"Invalid fatal in avro error record.\");\n }\n const name = obj.name;\n if (typeof name !== \"string\") {\n throw Error(\"Invalid name in avro error record.\");\n }\n const description = obj.description;\n if (typeof description !== \"string\") {\n throw Error(\"Invalid description in avro error record.\");\n }\n const position = obj.position;\n if (typeof position !== \"number\") {\n throw Error(\"Invalid position in avro error record.\");\n }\n this.onError({\n position,\n name,\n isFatal: fatal,\n description,\n });\n }\n break;\n default:\n throw Error(`Unknown schema ${schema} in avro progress record.`);\n }\n } while (!avroNext.done && !this.avroPaused);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * BlobQueryResponse implements BlobDownloadResponseModel interface, and in Node.js runtime it will\n * parse avor data returned by blob query.\n */\nclass BlobQueryResponse {\n /**\n * Creates an instance of BlobQueryResponse.\n *\n * @param originalResponse -\n * @param options -\n */\n constructor(originalResponse, options = {}) {\n this.originalResponse = originalResponse;\n this.blobDownloadStream = new BlobQuickQueryStream(this.originalResponse.readableStreamBody, options);\n }\n /**\n * Indicates that the service supports\n * requests for partial file content.\n *\n * @readonly\n */\n get acceptRanges() {\n return this.originalResponse.acceptRanges;\n }\n /**\n * Returns if it was previously specified\n * for the file.\n *\n * @readonly\n */\n get cacheControl() {\n return this.originalResponse.cacheControl;\n }\n /**\n * Returns the value that was specified\n * for the 'x-ms-content-disposition' header and specifies how to process the\n * response.\n *\n * @readonly\n */\n get contentDisposition() {\n return this.originalResponse.contentDisposition;\n }\n /**\n * Returns the value that was specified\n * for the Content-Encoding request header.\n *\n * @readonly\n */\n get contentEncoding() {\n return this.originalResponse.contentEncoding;\n }\n /**\n * Returns the value that was specified\n * for the Content-Language request header.\n *\n * @readonly\n */\n get contentLanguage() {\n return this.originalResponse.contentLanguage;\n }\n /**\n * The current sequence number for a\n * page blob. This header is not returned for block blobs or append blobs.\n *\n * @readonly\n */\n get blobSequenceNumber() {\n return this.originalResponse.blobSequenceNumber;\n }\n /**\n * The blob's type. Possible values include:\n * 'BlockBlob', 'PageBlob', 'AppendBlob'.\n *\n * @readonly\n */\n get blobType() {\n return this.originalResponse.blobType;\n }\n /**\n * The number of bytes present in the\n * response body.\n *\n * @readonly\n */\n get contentLength() {\n return this.originalResponse.contentLength;\n }\n /**\n * If the file has an MD5 hash and the\n * request is to read the full file, this response header is returned so that\n * the client can check for message content integrity. If the request is to\n * read a specified range and the 'x-ms-range-get-content-md5' is set to\n * true, then the request returns an MD5 hash for the range, as long as the\n * range size is less than or equal to 4 MB. If neither of these sets of\n * conditions is true, then no value is returned for the 'Content-MD5'\n * header.\n *\n * @readonly\n */\n get contentMD5() {\n return this.originalResponse.contentMD5;\n }\n /**\n * Indicates the range of bytes returned if\n * the client requested a subset of the file by setting the Range request\n * header.\n *\n * @readonly\n */\n get contentRange() {\n return this.originalResponse.contentRange;\n }\n /**\n * The content type specified for the file.\n * The default content type is 'application/octet-stream'\n *\n * @readonly\n */\n get contentType() {\n return this.originalResponse.contentType;\n }\n /**\n * Conclusion time of the last attempted\n * Copy File operation where this file was the destination file. This value\n * can specify the time of a completed, aborted, or failed copy attempt.\n *\n * @readonly\n */\n get copyCompletedOn() {\n return undefined;\n }\n /**\n * String identifier for the last attempted Copy\n * File operation where this file was the destination file.\n *\n * @readonly\n */\n get copyId() {\n return this.originalResponse.copyId;\n }\n /**\n * Contains the number of bytes copied and\n * the total bytes in the source in the last attempted Copy File operation\n * where this file was the destination file. Can show between 0 and\n * Content-Length bytes copied.\n *\n * @readonly\n */\n get copyProgress() {\n return this.originalResponse.copyProgress;\n }\n /**\n * URL up to 2KB in length that specifies the\n * source file used in the last attempted Copy File operation where this file\n * was the destination file.\n *\n * @readonly\n */\n get copySource() {\n return this.originalResponse.copySource;\n }\n /**\n * State of the copy operation\n * identified by 'x-ms-copy-id'. Possible values include: 'pending',\n * 'success', 'aborted', 'failed'\n *\n * @readonly\n */\n get copyStatus() {\n return this.originalResponse.copyStatus;\n }\n /**\n * Only appears when\n * x-ms-copy-status is failed or pending. Describes cause of fatal or\n * non-fatal copy operation failure.\n *\n * @readonly\n */\n get copyStatusDescription() {\n return this.originalResponse.copyStatusDescription;\n }\n /**\n * When a blob is leased,\n * specifies whether the lease is of infinite or fixed duration. Possible\n * values include: 'infinite', 'fixed'.\n *\n * @readonly\n */\n get leaseDuration() {\n return this.originalResponse.leaseDuration;\n }\n /**\n * Lease state of the blob. Possible\n * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.\n *\n * @readonly\n */\n get leaseState() {\n return this.originalResponse.leaseState;\n }\n /**\n * The current lease status of the\n * blob. Possible values include: 'locked', 'unlocked'.\n *\n * @readonly\n */\n get leaseStatus() {\n return this.originalResponse.leaseStatus;\n }\n /**\n * A UTC date/time value generated by the service that\n * indicates the time at which the response was initiated.\n *\n * @readonly\n */\n get date() {\n return this.originalResponse.date;\n }\n /**\n * The number of committed blocks\n * present in the blob. This header is returned only for append blobs.\n *\n * @readonly\n */\n get blobCommittedBlockCount() {\n return this.originalResponse.blobCommittedBlockCount;\n }\n /**\n * The ETag contains a value that you can use to\n * perform operations conditionally, in quotes.\n *\n * @readonly\n */\n get etag() {\n return this.originalResponse.etag;\n }\n /**\n * The error code.\n *\n * @readonly\n */\n get errorCode() {\n return this.originalResponse.errorCode;\n }\n /**\n * The value of this header is set to\n * true if the file data and application metadata are completely encrypted\n * using the specified algorithm. Otherwise, the value is set to false (when\n * the file is unencrypted, or if only parts of the file/application metadata\n * are encrypted).\n *\n * @readonly\n */\n get isServerEncrypted() {\n return this.originalResponse.isServerEncrypted;\n }\n /**\n * If the blob has a MD5 hash, and if\n * request contains range header (Range or x-ms-range), this response header\n * is returned with the value of the whole blob's MD5 value. This value may\n * or may not be equal to the value returned in Content-MD5 header, with the\n * latter calculated from the requested range.\n *\n * @readonly\n */\n get blobContentMD5() {\n return this.originalResponse.blobContentMD5;\n }\n /**\n * Returns the date and time the file was last\n * modified. Any operation that modifies the file or its properties updates\n * the last modified time.\n *\n * @readonly\n */\n get lastModified() {\n return this.originalResponse.lastModified;\n }\n /**\n * A name-value pair\n * to associate with a file storage object.\n *\n * @readonly\n */\n get metadata() {\n return this.originalResponse.metadata;\n }\n /**\n * This header uniquely identifies the request\n * that was made and can be used for troubleshooting the request.\n *\n * @readonly\n */\n get requestId() {\n return this.originalResponse.requestId;\n }\n /**\n * If a client request id header is sent in the request, this header will be present in the\n * response with the same value.\n *\n * @readonly\n */\n get clientRequestId() {\n return this.originalResponse.clientRequestId;\n }\n /**\n * Indicates the version of the File service used\n * to execute the request.\n *\n * @readonly\n */\n get version() {\n return this.originalResponse.version;\n }\n /**\n * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned\n * when the blob was encrypted with a customer-provided key.\n *\n * @readonly\n */\n get encryptionKeySha256() {\n return this.originalResponse.encryptionKeySha256;\n }\n /**\n * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to\n * true, then the request returns a crc64 for the range, as long as the range size is less than\n * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is\n * specified in the same request, it will fail with 400(Bad Request)\n */\n get contentCrc64() {\n return this.originalResponse.contentCrc64;\n }\n /**\n * The response body as a browser Blob.\n * Always undefined in node.js.\n *\n * @readonly\n */\n get blobBody() {\n return undefined;\n }\n /**\n * The response body as a node.js Readable stream.\n * Always undefined in the browser.\n *\n * It will parse avor data returned by blob query.\n *\n * @readonly\n */\n get readableStreamBody() {\n return coreHttp.isNode ? this.blobDownloadStream : undefined;\n }\n /**\n * The HTTP response.\n */\n get _response() {\n return this.originalResponse._response;\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Represents the access tier on a blob.\n * For detailed information about block blob level tiering see {@link https://docs.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers|Hot, cool and archive storage tiers.}\n */\nexports.BlockBlobTier = void 0;\n(function (BlockBlobTier) {\n /**\n * Optimized for storing data that is accessed frequently.\n */\n BlockBlobTier[\"Hot\"] = \"Hot\";\n /**\n * Optimized for storing data that is infrequently accessed and stored for at least 30 days.\n */\n BlockBlobTier[\"Cool\"] = \"Cool\";\n /**\n * Optimized for storing data that is rarely accessed.\n */\n BlockBlobTier[\"Cold\"] = \"Cold\";\n /**\n * Optimized for storing data that is rarely accessed and stored for at least 180 days\n * with flexible latency requirements (on the order of hours).\n */\n BlockBlobTier[\"Archive\"] = \"Archive\";\n})(exports.BlockBlobTier || (exports.BlockBlobTier = {}));\n/**\n * Specifies the page blob tier to set the blob to. This is only applicable to page blobs on premium storage accounts.\n * Please see {@link https://docs.microsoft.com/azure/storage/storage-premium-storage#scalability-and-performance-targets|here}\n * for detailed information on the corresponding IOPS and throughput per PageBlobTier.\n */\nexports.PremiumPageBlobTier = void 0;\n(function (PremiumPageBlobTier) {\n /**\n * P4 Tier.\n */\n PremiumPageBlobTier[\"P4\"] = \"P4\";\n /**\n * P6 Tier.\n */\n PremiumPageBlobTier[\"P6\"] = \"P6\";\n /**\n * P10 Tier.\n */\n PremiumPageBlobTier[\"P10\"] = \"P10\";\n /**\n * P15 Tier.\n */\n PremiumPageBlobTier[\"P15\"] = \"P15\";\n /**\n * P20 Tier.\n */\n PremiumPageBlobTier[\"P20\"] = \"P20\";\n /**\n * P30 Tier.\n */\n PremiumPageBlobTier[\"P30\"] = \"P30\";\n /**\n * P40 Tier.\n */\n PremiumPageBlobTier[\"P40\"] = \"P40\";\n /**\n * P50 Tier.\n */\n PremiumPageBlobTier[\"P50\"] = \"P50\";\n /**\n * P60 Tier.\n */\n PremiumPageBlobTier[\"P60\"] = \"P60\";\n /**\n * P70 Tier.\n */\n PremiumPageBlobTier[\"P70\"] = \"P70\";\n /**\n * P80 Tier.\n */\n PremiumPageBlobTier[\"P80\"] = \"P80\";\n})(exports.PremiumPageBlobTier || (exports.PremiumPageBlobTier = {}));\nfunction toAccessTier(tier) {\n if (tier === undefined) {\n return undefined;\n }\n return tier; // No more check if string is a valid AccessTier, and left this to underlay logic to decide(service).\n}\nfunction ensureCpkIfSpecified(cpk, isHttps) {\n if (cpk && !isHttps) {\n throw new RangeError(\"Customer-provided encryption key must be used over HTTPS.\");\n }\n if (cpk && !cpk.encryptionAlgorithm) {\n cpk.encryptionAlgorithm = EncryptionAlgorithmAES25;\n }\n}\n/**\n * Defines the known cloud audiences for Storage.\n */\nexports.StorageBlobAudience = void 0;\n(function (StorageBlobAudience) {\n /**\n * The OAuth scope to use to retrieve an AAD token for Azure Storage.\n */\n StorageBlobAudience[\"StorageOAuthScopes\"] = \"https://storage.azure.com/.default\";\n /**\n * The OAuth scope to use to retrieve an AAD token for Azure Disk.\n */\n StorageBlobAudience[\"DiskComputeOAuthScopes\"] = \"https://disk.compute.azure.com/.default\";\n})(exports.StorageBlobAudience || (exports.StorageBlobAudience = {}));\nfunction getBlobServiceAccountAudience(storageAccountName) {\n return `https://${storageAccountName}.blob.core.windows.net/.default`;\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Function that converts PageRange and ClearRange to a common Range object.\n * PageRange and ClearRange have start and end while Range offset and count\n * this function normalizes to Range.\n * @param response - Model PageBlob Range response\n */\nfunction rangeResponseFromModel(response) {\n const pageRange = (response._response.parsedBody.pageRange || []).map((x) => ({\n offset: x.start,\n count: x.end - x.start,\n }));\n const clearRange = (response._response.parsedBody.clearRange || []).map((x) => ({\n offset: x.start,\n count: x.end - x.start,\n }));\n return Object.assign(Object.assign({}, response), { pageRange,\n clearRange, _response: Object.assign(Object.assign({}, response._response), { parsedBody: {\n pageRange,\n clearRange,\n } }) });\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * This is the poller returned by {@link BlobClient.beginCopyFromURL}.\n * This can not be instantiated directly outside of this package.\n *\n * @hidden\n */\nclass BlobBeginCopyFromUrlPoller extends coreLro.Poller {\n constructor(options) {\n const { blobClient, copySource, intervalInMs = 15000, onProgress, resumeFrom, startCopyFromURLOptions, } = options;\n let state;\n if (resumeFrom) {\n state = JSON.parse(resumeFrom).state;\n }\n const operation = makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({}, state), { blobClient,\n copySource,\n startCopyFromURLOptions }));\n super(operation);\n if (typeof onProgress === \"function\") {\n this.onProgress(onProgress);\n }\n this.intervalInMs = intervalInMs;\n }\n delay() {\n return coreHttp.delay(this.intervalInMs);\n }\n}\n/**\n * Note: Intentionally using function expression over arrow function expression\n * so that the function can be invoked with a different context.\n * This affects what `this` refers to.\n * @hidden\n */\nconst cancel = async function cancel(options = {}) {\n const state = this.state;\n const { copyId } = state;\n if (state.isCompleted) {\n return makeBlobBeginCopyFromURLPollOperation(state);\n }\n if (!copyId) {\n state.isCancelled = true;\n return makeBlobBeginCopyFromURLPollOperation(state);\n }\n // if abortCopyFromURL throws, it will bubble up to user's poller.cancelOperation call\n await state.blobClient.abortCopyFromURL(copyId, {\n abortSignal: options.abortSignal,\n });\n state.isCancelled = true;\n return makeBlobBeginCopyFromURLPollOperation(state);\n};\n/**\n * Note: Intentionally using function expression over arrow function expression\n * so that the function can be invoked with a different context.\n * This affects what `this` refers to.\n * @hidden\n */\nconst update = async function update(options = {}) {\n const state = this.state;\n const { blobClient, copySource, startCopyFromURLOptions } = state;\n if (!state.isStarted) {\n state.isStarted = true;\n const result = await blobClient.startCopyFromURL(copySource, startCopyFromURLOptions);\n // copyId is needed to abort\n state.copyId = result.copyId;\n if (result.copyStatus === \"success\") {\n state.result = result;\n state.isCompleted = true;\n }\n }\n else if (!state.isCompleted) {\n try {\n const result = await state.blobClient.getProperties({ abortSignal: options.abortSignal });\n const { copyStatus, copyProgress } = result;\n const prevCopyProgress = state.copyProgress;\n if (copyProgress) {\n state.copyProgress = copyProgress;\n }\n if (copyStatus === \"pending\" &&\n copyProgress !== prevCopyProgress &&\n typeof options.fireProgress === \"function\") {\n // trigger in setTimeout, or swallow error?\n options.fireProgress(state);\n }\n else if (copyStatus === \"success\") {\n state.result = result;\n state.isCompleted = true;\n }\n else if (copyStatus === \"failed\") {\n state.error = new Error(`Blob copy failed with reason: \"${result.copyStatusDescription || \"unknown\"}\"`);\n state.isCompleted = true;\n }\n }\n catch (err) {\n state.error = err;\n state.isCompleted = true;\n }\n }\n return makeBlobBeginCopyFromURLPollOperation(state);\n};\n/**\n * Note: Intentionally using function expression over arrow function expression\n * so that the function can be invoked with a different context.\n * This affects what `this` refers to.\n * @hidden\n */\nconst toString = function toString() {\n return JSON.stringify({ state: this.state }, (key, value) => {\n // remove blobClient from serialized state since a client can't be hydrated from this info.\n if (key === \"blobClient\") {\n return undefined;\n }\n return value;\n });\n};\n/**\n * Creates a poll operation given the provided state.\n * @hidden\n */\nfunction makeBlobBeginCopyFromURLPollOperation(state) {\n return {\n state: Object.assign({}, state),\n cancel,\n toString,\n update,\n };\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * Generate a range string. For example:\n *\n * \"bytes=255-\" or \"bytes=0-511\"\n *\n * @param iRange -\n */\nfunction rangeToString(iRange) {\n if (iRange.offset < 0) {\n throw new RangeError(`Range.offset cannot be smaller than 0.`);\n }\n if (iRange.count && iRange.count <= 0) {\n throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);\n }\n return iRange.count\n ? `bytes=${iRange.offset}-${iRange.offset + iRange.count - 1}`\n : `bytes=${iRange.offset}-`;\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * States for Batch.\n */\nvar BatchStates;\n(function (BatchStates) {\n BatchStates[BatchStates[\"Good\"] = 0] = \"Good\";\n BatchStates[BatchStates[\"Error\"] = 1] = \"Error\";\n})(BatchStates || (BatchStates = {}));\n/**\n * Batch provides basic parallel execution with concurrency limits.\n * Will stop execute left operations when one of the executed operation throws an error.\n * But Batch cannot cancel ongoing operations, you need to cancel them by yourself.\n */\nclass Batch {\n /**\n * Creates an instance of Batch.\n * @param concurrency -\n */\n constructor(concurrency = 5) {\n /**\n * Number of active operations under execution.\n */\n this.actives = 0;\n /**\n * Number of completed operations under execution.\n */\n this.completed = 0;\n /**\n * Offset of next operation to be executed.\n */\n this.offset = 0;\n /**\n * Operation array to be executed.\n */\n this.operations = [];\n /**\n * States of Batch. When an error happens, state will turn into error.\n * Batch will stop execute left operations.\n */\n this.state = BatchStates.Good;\n if (concurrency < 1) {\n throw new RangeError(\"concurrency must be larger than 0\");\n }\n this.concurrency = concurrency;\n this.emitter = new events.EventEmitter();\n }\n /**\n * Add a operation into queue.\n *\n * @param operation -\n */\n addOperation(operation) {\n this.operations.push(async () => {\n try {\n this.actives++;\n await operation();\n this.actives--;\n this.completed++;\n this.parallelExecute();\n }\n catch (error) {\n this.emitter.emit(\"error\", error);\n }\n });\n }\n /**\n * Start execute operations in the queue.\n *\n */\n async do() {\n if (this.operations.length === 0) {\n return Promise.resolve();\n }\n this.parallelExecute();\n return new Promise((resolve, reject) => {\n this.emitter.on(\"finish\", resolve);\n this.emitter.on(\"error\", (error) => {\n this.state = BatchStates.Error;\n reject(error);\n });\n });\n }\n /**\n * Get next operation to be executed. Return null when reaching ends.\n *\n */\n nextOperation() {\n if (this.offset < this.operations.length) {\n return this.operations[this.offset++];\n }\n return null;\n }\n /**\n * Start execute operations. One one the most important difference between\n * this method with do() is that do() wraps as an sync method.\n *\n */\n parallelExecute() {\n if (this.state === BatchStates.Error) {\n return;\n }\n if (this.completed >= this.operations.length) {\n this.emitter.emit(\"finish\");\n return;\n }\n while (this.actives < this.concurrency) {\n const operation = this.nextOperation();\n if (operation) {\n operation();\n }\n else {\n return;\n }\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * This class generates a readable stream from the data in an array of buffers.\n */\nclass BuffersStream extends stream.Readable {\n /**\n * Creates an instance of BuffersStream that will emit the data\n * contained in the array of buffers.\n *\n * @param buffers - Array of buffers containing the data\n * @param byteLength - The total length of data contained in the buffers\n */\n constructor(buffers, byteLength, options) {\n super(options);\n this.buffers = buffers;\n this.byteLength = byteLength;\n this.byteOffsetInCurrentBuffer = 0;\n this.bufferIndex = 0;\n this.pushedBytesLength = 0;\n // check byteLength is no larger than buffers[] total length\n let buffersLength = 0;\n for (const buf of this.buffers) {\n buffersLength += buf.byteLength;\n }\n if (buffersLength < this.byteLength) {\n throw new Error(\"Data size shouldn't be larger than the total length of buffers.\");\n }\n }\n /**\n * Internal _read() that will be called when the stream wants to pull more data in.\n *\n * @param size - Optional. The size of data to be read\n */\n _read(size) {\n if (this.pushedBytesLength >= this.byteLength) {\n this.push(null);\n }\n if (!size) {\n size = this.readableHighWaterMark;\n }\n const outBuffers = [];\n let i = 0;\n while (i < size && this.pushedBytesLength < this.byteLength) {\n // The last buffer may be longer than the data it contains.\n const remainingDataInAllBuffers = this.byteLength - this.pushedBytesLength;\n const remainingCapacityInThisBuffer = this.buffers[this.bufferIndex].byteLength - this.byteOffsetInCurrentBuffer;\n const remaining = Math.min(remainingCapacityInThisBuffer, remainingDataInAllBuffers);\n if (remaining > size - i) {\n // chunkSize = size - i\n const end = this.byteOffsetInCurrentBuffer + size - i;\n outBuffers.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer, end));\n this.pushedBytesLength += size - i;\n this.byteOffsetInCurrentBuffer = end;\n i = size;\n break;\n }\n else {\n // chunkSize = remaining\n const end = this.byteOffsetInCurrentBuffer + remaining;\n outBuffers.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer, end));\n if (remaining === remainingCapacityInThisBuffer) {\n // this.buffers[this.bufferIndex] used up, shift to next one\n this.byteOffsetInCurrentBuffer = 0;\n this.bufferIndex++;\n }\n else {\n this.byteOffsetInCurrentBuffer = end;\n }\n this.pushedBytesLength += remaining;\n i += remaining;\n }\n }\n if (outBuffers.length > 1) {\n this.push(Buffer.concat(outBuffers));\n }\n else if (outBuffers.length === 1) {\n this.push(outBuffers[0]);\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * maxBufferLength is max size of each buffer in the pooled buffers.\n */\n// Can't use import as Typescript doesn't recognize \"buffer\".\nconst maxBufferLength = require(\"buffer\").constants.MAX_LENGTH;\n/**\n * This class provides a buffer container which conceptually has no hard size limit.\n * It accepts a capacity, an array of input buffers and the total length of input data.\n * It will allocate an internal \"buffer\" of the capacity and fill the data in the input buffers\n * into the internal \"buffer\" serially with respect to the total length.\n * Then by calling PooledBuffer.getReadableStream(), you can get a readable stream\n * assembled from all the data in the internal \"buffer\".\n */\nclass PooledBuffer {\n constructor(capacity, buffers, totalLength) {\n /**\n * Internal buffers used to keep the data.\n * Each buffer has a length of the maxBufferLength except last one.\n */\n this.buffers = [];\n this.capacity = capacity;\n this._size = 0;\n // allocate\n const bufferNum = Math.ceil(capacity / maxBufferLength);\n for (let i = 0; i < bufferNum; i++) {\n let len = i === bufferNum - 1 ? capacity % maxBufferLength : maxBufferLength;\n if (len === 0) {\n len = maxBufferLength;\n }\n this.buffers.push(Buffer.allocUnsafe(len));\n }\n if (buffers) {\n this.fill(buffers, totalLength);\n }\n }\n /**\n * The size of the data contained in the pooled buffers.\n */\n get size() {\n return this._size;\n }\n /**\n * Fill the internal buffers with data in the input buffers serially\n * with respect to the total length and the total capacity of the internal buffers.\n * Data copied will be shift out of the input buffers.\n *\n * @param buffers - Input buffers containing the data to be filled in the pooled buffer\n * @param totalLength - Total length of the data to be filled in.\n *\n */\n fill(buffers, totalLength) {\n this._size = Math.min(this.capacity, totalLength);\n let i = 0, j = 0, targetOffset = 0, sourceOffset = 0, totalCopiedNum = 0;\n while (totalCopiedNum < this._size) {\n const source = buffers[i];\n const target = this.buffers[j];\n const copiedNum = source.copy(target, targetOffset, sourceOffset);\n totalCopiedNum += copiedNum;\n sourceOffset += copiedNum;\n targetOffset += copiedNum;\n if (sourceOffset === source.length) {\n i++;\n sourceOffset = 0;\n }\n if (targetOffset === target.length) {\n j++;\n targetOffset = 0;\n }\n }\n // clear copied from source buffers\n buffers.splice(0, i);\n if (buffers.length > 0) {\n buffers[0] = buffers[0].slice(sourceOffset);\n }\n }\n /**\n * Get the readable stream assembled from all the data in the internal buffers.\n *\n */\n getReadableStream() {\n return new BuffersStream(this.buffers, this.size);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * This class accepts a Node.js Readable stream as input, and keeps reading data\n * from the stream into the internal buffer structure, until it reaches maxBuffers.\n * Every available buffer will try to trigger outgoingHandler.\n *\n * The internal buffer structure includes an incoming buffer array, and a outgoing\n * buffer array. The incoming buffer array includes the \"empty\" buffers can be filled\n * with new incoming data. The outgoing array includes the filled buffers to be\n * handled by outgoingHandler. Every above buffer size is defined by parameter bufferSize.\n *\n * NUM_OF_ALL_BUFFERS = BUFFERS_IN_INCOMING + BUFFERS_IN_OUTGOING + BUFFERS_UNDER_HANDLING\n *\n * NUM_OF_ALL_BUFFERS lesser than or equal to maxBuffers\n *\n * PERFORMANCE IMPROVEMENT TIPS:\n * 1. Input stream highWaterMark is better to set a same value with bufferSize\n * parameter, which will avoid Buffer.concat() operations.\n * 2. concurrency should set a smaller value than maxBuffers, which is helpful to\n * reduce the possibility when a outgoing handler waits for the stream data.\n * in this situation, outgoing handlers are blocked.\n * Outgoing queue shouldn't be empty.\n */\nclass BufferScheduler {\n /**\n * Creates an instance of BufferScheduler.\n *\n * @param readable - A Node.js Readable stream\n * @param bufferSize - Buffer size of every maintained buffer\n * @param maxBuffers - How many buffers can be allocated\n * @param outgoingHandler - An async function scheduled to be\n * triggered when a buffer fully filled\n * with stream data\n * @param concurrency - Concurrency of executing outgoingHandlers (>0)\n * @param encoding - [Optional] Encoding of Readable stream when it's a string stream\n */\n constructor(readable, bufferSize, maxBuffers, outgoingHandler, concurrency, encoding) {\n /**\n * An internal event emitter.\n */\n this.emitter = new events.EventEmitter();\n /**\n * An internal offset marker to track data offset in bytes of next outgoingHandler.\n */\n this.offset = 0;\n /**\n * An internal marker to track whether stream is end.\n */\n this.isStreamEnd = false;\n /**\n * An internal marker to track whether stream or outgoingHandler returns error.\n */\n this.isError = false;\n /**\n * How many handlers are executing.\n */\n this.executingOutgoingHandlers = 0;\n /**\n * How many buffers have been allocated.\n */\n this.numBuffers = 0;\n /**\n * Because this class doesn't know how much data every time stream pops, which\n * is defined by highWaterMarker of the stream. So BufferScheduler will cache\n * data received from the stream, when data in unresolvedDataArray exceeds the\n * blockSize defined, it will try to concat a blockSize of buffer, fill into available\n * buffers from incoming and push to outgoing array.\n */\n this.unresolvedDataArray = [];\n /**\n * How much data consisted in unresolvedDataArray.\n */\n this.unresolvedLength = 0;\n /**\n * The array includes all the available buffers can be used to fill data from stream.\n */\n this.incoming = [];\n /**\n * The array (queue) includes all the buffers filled from stream data.\n */\n this.outgoing = [];\n if (bufferSize <= 0) {\n throw new RangeError(`bufferSize must be larger than 0, current is ${bufferSize}`);\n }\n if (maxBuffers <= 0) {\n throw new RangeError(`maxBuffers must be larger than 0, current is ${maxBuffers}`);\n }\n if (concurrency <= 0) {\n throw new RangeError(`concurrency must be larger than 0, current is ${concurrency}`);\n }\n this.bufferSize = bufferSize;\n this.maxBuffers = maxBuffers;\n this.readable = readable;\n this.outgoingHandler = outgoingHandler;\n this.concurrency = concurrency;\n this.encoding = encoding;\n }\n /**\n * Start the scheduler, will return error when stream of any of the outgoingHandlers\n * returns error.\n *\n */\n async do() {\n return new Promise((resolve, reject) => {\n this.readable.on(\"data\", (data) => {\n data = typeof data === \"string\" ? Buffer.from(data, this.encoding) : data;\n this.appendUnresolvedData(data);\n if (!this.resolveData()) {\n this.readable.pause();\n }\n });\n this.readable.on(\"error\", (err) => {\n this.emitter.emit(\"error\", err);\n });\n this.readable.on(\"end\", () => {\n this.isStreamEnd = true;\n this.emitter.emit(\"checkEnd\");\n });\n this.emitter.on(\"error\", (err) => {\n this.isError = true;\n this.readable.pause();\n reject(err);\n });\n this.emitter.on(\"checkEnd\", () => {\n if (this.outgoing.length > 0) {\n this.triggerOutgoingHandlers();\n return;\n }\n if (this.isStreamEnd && this.executingOutgoingHandlers === 0) {\n if (this.unresolvedLength > 0 && this.unresolvedLength < this.bufferSize) {\n const buffer = this.shiftBufferFromUnresolvedDataArray();\n this.outgoingHandler(() => buffer.getReadableStream(), buffer.size, this.offset)\n .then(resolve)\n .catch(reject);\n }\n else if (this.unresolvedLength >= this.bufferSize) {\n return;\n }\n else {\n resolve();\n }\n }\n });\n });\n }\n /**\n * Insert a new data into unresolved array.\n *\n * @param data -\n */\n appendUnresolvedData(data) {\n this.unresolvedDataArray.push(data);\n this.unresolvedLength += data.length;\n }\n /**\n * Try to shift a buffer with size in blockSize. The buffer returned may be less\n * than blockSize when data in unresolvedDataArray is less than bufferSize.\n *\n */\n shiftBufferFromUnresolvedDataArray(buffer) {\n if (!buffer) {\n buffer = new PooledBuffer(this.bufferSize, this.unresolvedDataArray, this.unresolvedLength);\n }\n else {\n buffer.fill(this.unresolvedDataArray, this.unresolvedLength);\n }\n this.unresolvedLength -= buffer.size;\n return buffer;\n }\n /**\n * Resolve data in unresolvedDataArray. For every buffer with size in blockSize\n * shifted, it will try to get (or allocate a buffer) from incoming, and fill it,\n * then push it into outgoing to be handled by outgoing handler.\n *\n * Return false when available buffers in incoming are not enough, else true.\n *\n * @returns Return false when buffers in incoming are not enough, else true.\n */\n resolveData() {\n while (this.unresolvedLength >= this.bufferSize) {\n let buffer;\n if (this.incoming.length > 0) {\n buffer = this.incoming.shift();\n this.shiftBufferFromUnresolvedDataArray(buffer);\n }\n else {\n if (this.numBuffers < this.maxBuffers) {\n buffer = this.shiftBufferFromUnresolvedDataArray();\n this.numBuffers++;\n }\n else {\n // No available buffer, wait for buffer returned\n return false;\n }\n }\n this.outgoing.push(buffer);\n this.triggerOutgoingHandlers();\n }\n return true;\n }\n /**\n * Try to trigger a outgoing handler for every buffer in outgoing. Stop when\n * concurrency reaches.\n */\n async triggerOutgoingHandlers() {\n let buffer;\n do {\n if (this.executingOutgoingHandlers >= this.concurrency) {\n return;\n }\n buffer = this.outgoing.shift();\n if (buffer) {\n this.triggerOutgoingHandler(buffer);\n }\n } while (buffer);\n }\n /**\n * Trigger a outgoing handler for a buffer shifted from outgoing.\n *\n * @param buffer -\n */\n async triggerOutgoingHandler(buffer) {\n const bufferLength = buffer.size;\n this.executingOutgoingHandlers++;\n this.offset += bufferLength;\n try {\n await this.outgoingHandler(() => buffer.getReadableStream(), bufferLength, this.offset - bufferLength);\n }\n catch (err) {\n this.emitter.emit(\"error\", err);\n return;\n }\n this.executingOutgoingHandlers--;\n this.reuseBuffer(buffer);\n this.emitter.emit(\"checkEnd\");\n }\n /**\n * Return buffer used by outgoing handler into incoming.\n *\n * @param buffer -\n */\n reuseBuffer(buffer) {\n this.incoming.push(buffer);\n if (!this.isError && this.resolveData() && !this.isStreamEnd) {\n this.readable.resume();\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * Reads a readable stream into buffer. Fill the buffer from offset to end.\n *\n * @param stream - A Node.js Readable stream\n * @param buffer - Buffer to be filled, length must greater than or equal to offset\n * @param offset - From which position in the buffer to be filled, inclusive\n * @param end - To which position in the buffer to be filled, exclusive\n * @param encoding - Encoding of the Readable stream\n */\nasync function streamToBuffer(stream, buffer, offset, end, encoding) {\n let pos = 0; // Position in stream\n const count = end - offset; // Total amount of data needed in stream\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => reject(new Error(`The operation cannot be completed in timeout.`)), REQUEST_TIMEOUT);\n stream.on(\"readable\", () => {\n if (pos >= count) {\n clearTimeout(timeout);\n resolve();\n return;\n }\n let chunk = stream.read();\n if (!chunk) {\n return;\n }\n if (typeof chunk === \"string\") {\n chunk = Buffer.from(chunk, encoding);\n }\n // How much data needed in this chunk\n const chunkLength = pos + chunk.length > count ? count - pos : chunk.length;\n buffer.fill(chunk.slice(0, chunkLength), offset + pos, offset + pos + chunkLength);\n pos += chunkLength;\n });\n stream.on(\"end\", () => {\n clearTimeout(timeout);\n if (pos < count) {\n reject(new Error(`Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`));\n }\n resolve();\n });\n stream.on(\"error\", (msg) => {\n clearTimeout(timeout);\n reject(msg);\n });\n });\n}\n/**\n * Reads a readable stream into buffer entirely.\n *\n * @param stream - A Node.js Readable stream\n * @param buffer - Buffer to be filled, length must greater than or equal to offset\n * @param encoding - Encoding of the Readable stream\n * @returns with the count of bytes read.\n * @throws `RangeError` If buffer size is not big enough.\n */\nasync function streamToBuffer2(stream, buffer, encoding) {\n let pos = 0; // Position in stream\n const bufferSize = buffer.length;\n return new Promise((resolve, reject) => {\n stream.on(\"readable\", () => {\n let chunk = stream.read();\n if (!chunk) {\n return;\n }\n if (typeof chunk === \"string\") {\n chunk = Buffer.from(chunk, encoding);\n }\n if (pos + chunk.length > bufferSize) {\n reject(new Error(`Stream exceeds buffer size. Buffer size: ${bufferSize}`));\n return;\n }\n buffer.fill(chunk, pos, pos + chunk.length);\n pos += chunk.length;\n });\n stream.on(\"end\", () => {\n resolve(pos);\n });\n stream.on(\"error\", reject);\n });\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * Writes the content of a readstream to a local file. Returns a Promise which is completed after the file handle is closed.\n *\n * @param rs - The read stream.\n * @param file - Destination file path.\n */\nasync function readStreamToLocalFile(rs, file) {\n return new Promise((resolve, reject) => {\n const ws = fs__namespace.createWriteStream(file);\n rs.on(\"error\", (err) => {\n reject(err);\n });\n ws.on(\"error\", (err) => {\n reject(err);\n });\n ws.on(\"close\", resolve);\n rs.pipe(ws);\n });\n}\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * Promisified version of fs.stat().\n */\nconst fsStat = util__namespace.promisify(fs__namespace.stat);\nconst fsCreateReadStream = fs__namespace.createReadStream;\n\n/**\n * A BlobClient represents a URL to an Azure Storage blob; the blob may be a block blob,\n * append blob, or page blob.\n */\nclass BlobClient extends StorageClient {\n constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n options = options || {};\n let pipeline;\n let url;\n if (isPipelineLike(credentialOrPipelineOrContainerName)) {\n // (url: string, pipeline: Pipeline)\n url = urlOrConnectionString;\n pipeline = credentialOrPipelineOrContainerName;\n }\n else if ((coreHttp.isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||\n credentialOrPipelineOrContainerName instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrPipelineOrContainerName)) {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n url = urlOrConnectionString;\n options = blobNameOrOptions;\n pipeline = newPipeline(credentialOrPipelineOrContainerName, options);\n }\n else if (!credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName !== \"string\") {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n // The second parameter is undefined. Use anonymous credential.\n url = urlOrConnectionString;\n if (blobNameOrOptions && typeof blobNameOrOptions !== \"string\") {\n options = blobNameOrOptions;\n }\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else if (credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName === \"string\" &&\n blobNameOrOptions &&\n typeof blobNameOrOptions === \"string\") {\n // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)\n const containerName = credentialOrPipelineOrContainerName;\n const blobName = blobNameOrOptions;\n const extractedCreds = extractConnectionStringParts(urlOrConnectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (coreHttp.isNode) {\n const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);\n url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));\n if (!options.proxyOptions) {\n options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);\n }\n pipeline = newPipeline(sharedKeyCredential, options);\n }\n else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n }\n else if (extractedCreds.kind === \"SASConnString\") {\n url =\n appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +\n \"?\" +\n extractedCreds.accountSas;\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else {\n throw new Error(\"Connection string must be either an Account connection string or a SAS connection string\");\n }\n }\n else {\n throw new Error(\"Expecting non-empty strings for containerName and blobName parameters\");\n }\n super(url, pipeline);\n ({ blobName: this._name, containerName: this._containerName } =\n this.getBlobAndContainerNamesFromUrl());\n this.blobContext = new Blob$1(this.storageClientContext);\n this._snapshot = getURLParameter(this.url, URLConstants.Parameters.SNAPSHOT);\n this._versionId = getURLParameter(this.url, URLConstants.Parameters.VERSIONID);\n }\n /**\n * The name of the blob.\n */\n get name() {\n return this._name;\n }\n /**\n * The name of the storage container the blob is associated with.\n */\n get containerName() {\n return this._containerName;\n }\n /**\n * Creates a new BlobClient object identical to the source but with the specified snapshot timestamp.\n * Provide \"\" will remove the snapshot and return a Client to the base blob.\n *\n * @param snapshot - The snapshot timestamp.\n * @returns A new BlobClient object identical to the source but with the specified snapshot timestamp\n */\n withSnapshot(snapshot) {\n return new BlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);\n }\n /**\n * Creates a new BlobClient object pointing to a version of this blob.\n * Provide \"\" will remove the versionId and return a Client to the base blob.\n *\n * @param versionId - The versionId.\n * @returns A new BlobClient object pointing to the version of this blob.\n */\n withVersion(versionId) {\n return new BlobClient(setURLParameter(this.url, URLConstants.Parameters.VERSIONID, versionId.length === 0 ? undefined : versionId), this.pipeline);\n }\n /**\n * Creates a AppendBlobClient object.\n *\n */\n getAppendBlobClient() {\n return new AppendBlobClient(this.url, this.pipeline);\n }\n /**\n * Creates a BlockBlobClient object.\n *\n */\n getBlockBlobClient() {\n return new BlockBlobClient(this.url, this.pipeline);\n }\n /**\n * Creates a PageBlobClient object.\n *\n */\n getPageBlobClient() {\n return new PageBlobClient(this.url, this.pipeline);\n }\n /**\n * Reads or downloads a blob from the system, including its metadata and properties.\n * You can also call Get Blob to read a snapshot.\n *\n * * In Node.js, data returns in a Readable stream readableStreamBody\n * * In browsers, data returns in a promise blobBody\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob\n *\n * @param offset - From which position of the blob to download, greater than or equal to 0\n * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined\n * @param options - Optional options to Blob Download operation.\n *\n *\n * Example usage (Node.js):\n *\n * ```js\n * // Download and convert a blob to a string\n * const downloadBlockBlobResponse = await blobClient.download();\n * const downloaded = await streamToBuffer(downloadBlockBlobResponse.readableStreamBody);\n * console.log(\"Downloaded blob content:\", downloaded.toString());\n *\n * async function streamToBuffer(readableStream) {\n * return new Promise((resolve, reject) => {\n * const chunks = [];\n * readableStream.on(\"data\", (data) => {\n * chunks.push(data instanceof Buffer ? data : Buffer.from(data));\n * });\n * readableStream.on(\"end\", () => {\n * resolve(Buffer.concat(chunks));\n * });\n * readableStream.on(\"error\", reject);\n * });\n * }\n * ```\n *\n * Example usage (browser):\n *\n * ```js\n * // Download and convert a blob to a string\n * const downloadBlockBlobResponse = await blobClient.download();\n * const downloaded = await blobToString(await downloadBlockBlobResponse.blobBody);\n * console.log(\n * \"Downloaded blob content\",\n * downloaded\n * );\n *\n * async function blobToString(blob: Blob): Promise {\n * const fileReader = new FileReader();\n * return new Promise((resolve, reject) => {\n * fileReader.onloadend = (ev: any) => {\n * resolve(ev.target!.result);\n * };\n * fileReader.onerror = reject;\n * fileReader.readAsText(blob);\n * });\n * }\n * ```\n */\n async download(offset = 0, count, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n options.conditions = options.conditions || {};\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n const { span, updatedOptions } = createSpan(\"BlobClient-download\", options);\n try {\n const res = await this.blobContext.download(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {\n onDownloadProgress: coreHttp.isNode ? undefined : options.onProgress, // for Node.js, progress is reported by RetriableReadableStream\n }, range: offset === 0 && !count ? undefined : rangeToString({ offset, count }), rangeGetContentMD5: options.rangeGetContentMD5, rangeGetContentCRC64: options.rangeGetContentCrc64, snapshot: options.snapshot, cpkInfo: options.customerProvidedKey }, convertTracingToRequestOptionsBase(updatedOptions)));\n const wrappedRes = Object.assign(Object.assign({}, res), { _response: res._response, objectReplicationDestinationPolicyId: res.objectReplicationPolicyId, objectReplicationSourceProperties: parseObjectReplicationRecord(res.objectReplicationRules) });\n // Return browser response immediately\n if (!coreHttp.isNode) {\n return wrappedRes;\n }\n // We support retrying when download stream unexpected ends in Node.js runtime\n // Following code shouldn't be bundled into browser build, however some\n // bundlers may try to bundle following code and \"FileReadResponse.ts\".\n // In this case, \"FileDownloadResponse.browser.ts\" will be used as a shim of \"FileDownloadResponse.ts\"\n // The config is in package.json \"browser\" field\n if (options.maxRetryRequests === undefined || options.maxRetryRequests < 0) {\n // TODO: Default value or make it a required parameter?\n options.maxRetryRequests = DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS;\n }\n if (res.contentLength === undefined) {\n throw new RangeError(`File download response doesn't contain valid content length header`);\n }\n if (!res.etag) {\n throw new RangeError(`File download response doesn't contain valid etag header`);\n }\n return new BlobDownloadResponse(wrappedRes, async (start) => {\n var _a;\n const updatedDownloadOptions = {\n leaseAccessConditions: options.conditions,\n modifiedAccessConditions: {\n ifMatch: options.conditions.ifMatch || res.etag,\n ifModifiedSince: options.conditions.ifModifiedSince,\n ifNoneMatch: options.conditions.ifNoneMatch,\n ifUnmodifiedSince: options.conditions.ifUnmodifiedSince,\n ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions,\n },\n range: rangeToString({\n count: offset + res.contentLength - start,\n offset: start,\n }),\n rangeGetContentMD5: options.rangeGetContentMD5,\n rangeGetContentCRC64: options.rangeGetContentCrc64,\n snapshot: options.snapshot,\n cpkInfo: options.customerProvidedKey,\n };\n // Debug purpose only\n // console.log(\n // `Read from internal stream, range: ${\n // updatedOptions.range\n // }, options: ${JSON.stringify(updatedOptions)}`\n // );\n return (await this.blobContext.download(Object.assign({ abortSignal: options.abortSignal }, updatedDownloadOptions))).readableStreamBody;\n }, offset, res.contentLength, {\n maxRetryRequests: options.maxRetryRequests,\n onProgress: options.onProgress,\n });\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns true if the Azure blob resource represented by this client exists; false otherwise.\n *\n * NOTE: use this function with care since an existing blob might be deleted by other clients or\n * applications. Vice versa new blobs might be added by other clients or applications after this\n * function completes.\n *\n * @param options - options to Exists operation.\n */\n async exists(options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobClient-exists\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n await this.getProperties({\n abortSignal: options.abortSignal,\n customerProvidedKey: options.customerProvidedKey,\n conditions: options.conditions,\n tracingOptions: updatedOptions.tracingOptions,\n });\n return true;\n }\n catch (e) {\n if (e.statusCode === 404) {\n // Expected exception when checking blob existence\n return false;\n }\n else if (e.statusCode === 409 &&\n (e.details.errorCode === BlobUsesCustomerSpecifiedEncryptionMsg ||\n e.details.errorCode === BlobDoesNotUseCustomerSpecifiedEncryption)) {\n // Expected exception when checking blob existence\n return true;\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns all user-defined metadata, standard HTTP properties, and system properties\n * for the blob. It does not return the content of the blob.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-properties\n *\n * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if\n * they originally contained uppercase characters. This differs from the metadata keys returned by\n * the methods of {@link ContainerClient} that list blobs using the `includeMetadata` option, which\n * will retain their original casing.\n *\n * @param options - Optional options to Get Properties operation.\n */\n async getProperties(options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-getProperties\", options);\n try {\n options.conditions = options.conditions || {};\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n const res = await this.blobContext.getProperties(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), cpkInfo: options.customerProvidedKey }, convertTracingToRequestOptionsBase(updatedOptions)));\n return Object.assign(Object.assign({}, res), { _response: res._response, objectReplicationDestinationPolicyId: res.objectReplicationPolicyId, objectReplicationSourceProperties: parseObjectReplicationRecord(res.objectReplicationRules) });\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Marks the specified blob or snapshot for deletion. The blob is later deleted\n * during garbage collection. Note that in order to delete a blob, you must delete\n * all of its snapshots. You can delete both at the same time with the Delete\n * Blob operation.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob\n *\n * @param options - Optional options to Blob Delete operation.\n */\n async delete(options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-delete\", options);\n options.conditions = options.conditions || {};\n try {\n return await this.blobContext.delete(Object.assign({ abortSignal: options.abortSignal, deleteSnapshots: options.deleteSnapshots, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Marks the specified blob or snapshot for deletion if it exists. The blob is later deleted\n * during garbage collection. Note that in order to delete a blob, you must delete\n * all of its snapshots. You can delete both at the same time with the Delete\n * Blob operation.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob\n *\n * @param options - Optional options to Blob Delete operation.\n */\n async deleteIfExists(options = {}) {\n var _a, _b;\n const { span, updatedOptions } = createSpan(\"BlobClient-deleteIfExists\", options);\n try {\n const res = await this.delete(updatedOptions);\n return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });\n }\n catch (e) {\n if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === \"BlobNotFound\") {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: \"Expected exception when deleting a blob or snapshot only if it exists.\",\n });\n return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Restores the contents and metadata of soft deleted blob and any associated\n * soft deleted snapshots. Undelete Blob is supported only on version 2017-07-29\n * or later.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/undelete-blob\n *\n * @param options - Optional options to Blob Undelete operation.\n */\n async undelete(options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobClient-undelete\", options);\n try {\n return await this.blobContext.undelete(Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets system properties on the blob.\n *\n * If no value provided, or no value provided for the specified blob HTTP headers,\n * these blob HTTP headers without a value will be cleared.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties\n *\n * @param blobHTTPHeaders - If no value provided, or no value provided for\n * the specified blob HTTP headers, these blob HTTP\n * headers without a value will be cleared.\n * A common header to set is `blobContentType`\n * enabling the browser to provide functionality\n * based on file type.\n * @param options - Optional options to Blob Set HTTP Headers operation.\n */\n async setHTTPHeaders(blobHTTPHeaders, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-setHTTPHeaders\", options);\n options.conditions = options.conditions || {};\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blobContext.setHttpHeaders(Object.assign({ abortSignal: options.abortSignal, blobHttpHeaders: blobHTTPHeaders, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets user-defined metadata for the specified blob as one or more name-value pairs.\n *\n * If no option provided, or no metadata defined in the parameter, the blob\n * metadata will be removed.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata\n *\n * @param metadata - Replace existing metadata with this value.\n * If no value provided the existing metadata will be removed.\n * @param options - Optional options to Set Metadata operation.\n */\n async setMetadata(metadata, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-setMetadata\", options);\n options.conditions = options.conditions || {};\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blobContext.setMetadata(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets tags on the underlying blob.\n * A blob can have up to 10 tags. Tag keys must be between 1 and 128 characters. Tag values must be between 0 and 256 characters.\n * Valid tag key and value characters include lower and upper case letters, digits (0-9),\n * space (' '), plus ('+'), minus ('-'), period ('.'), foward slash ('/'), colon (':'), equals ('='), and underscore ('_').\n *\n * @param tags -\n * @param options -\n */\n async setTags(tags, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-setTags\", options);\n try {\n return await this.blobContext.setTags(Object.assign(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)), { tags: toBlobTags(tags) }));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Gets the tags associated with the underlying blob.\n *\n * @param options -\n */\n async getTags(options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-getTags\", options);\n try {\n const response = await this.blobContext.getTags(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n const wrappedResponse = Object.assign(Object.assign({}, response), { _response: response._response, tags: toTags({ blobTagSet: response.blobTagSet }) || {} });\n return wrappedResponse;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Get a {@link BlobLeaseClient} that manages leases on the blob.\n *\n * @param proposeLeaseId - Initial proposed lease Id.\n * @returns A new BlobLeaseClient object for managing leases on the blob.\n */\n getBlobLeaseClient(proposeLeaseId) {\n return new BlobLeaseClient(this, proposeLeaseId);\n }\n /**\n * Creates a read-only snapshot of a blob.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/snapshot-blob\n *\n * @param options - Optional options to the Blob Create Snapshot operation.\n */\n async createSnapshot(options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-createSnapshot\", options);\n options.conditions = options.conditions || {};\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blobContext.createSnapshot(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, metadata: options.metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Asynchronously copies a blob to a destination within the storage account.\n * This method returns a long running operation poller that allows you to wait\n * indefinitely until the copy is completed.\n * You can also cancel a copy before it is completed by calling `cancelOperation` on the poller.\n * Note that the onProgress callback will not be invoked if the operation completes in the first\n * request, and attempting to cancel a completed copy will result in an error being thrown.\n *\n * In version 2012-02-12 and later, the source for a Copy Blob operation can be\n * a committed blob in any Azure storage account.\n * Beginning with version 2015-02-21, the source for a Copy Blob operation can be\n * an Azure file in any Azure storage account.\n * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob\n * operation to copy from another storage account.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob\n *\n * Example using automatic polling:\n *\n * ```js\n * const copyPoller = await blobClient.beginCopyFromURL('url');\n * const result = await copyPoller.pollUntilDone();\n * ```\n *\n * Example using manual polling:\n *\n * ```js\n * const copyPoller = await blobClient.beginCopyFromURL('url');\n * while (!poller.isDone()) {\n * await poller.poll();\n * }\n * const result = copyPoller.getResult();\n * ```\n *\n * Example using progress updates:\n *\n * ```js\n * const copyPoller = await blobClient.beginCopyFromURL('url', {\n * onProgress(state) {\n * console.log(`Progress: ${state.copyProgress}`);\n * }\n * });\n * const result = await copyPoller.pollUntilDone();\n * ```\n *\n * Example using a changing polling interval (default 15 seconds):\n *\n * ```js\n * const copyPoller = await blobClient.beginCopyFromURL('url', {\n * intervalInMs: 1000 // poll blob every 1 second for copy progress\n * });\n * const result = await copyPoller.pollUntilDone();\n * ```\n *\n * Example using copy cancellation:\n *\n * ```js\n * const copyPoller = await blobClient.beginCopyFromURL('url');\n * // cancel operation after starting it.\n * try {\n * await copyPoller.cancelOperation();\n * // calls to get the result now throw PollerCancelledError\n * await copyPoller.getResult();\n * } catch (err) {\n * if (err.name === 'PollerCancelledError') {\n * console.log('The copy was cancelled.');\n * }\n * }\n * ```\n *\n * @param copySource - url to the source Azure Blob/File.\n * @param options - Optional options to the Blob Start Copy From URL operation.\n */\n async beginCopyFromURL(copySource, options = {}) {\n const client = {\n abortCopyFromURL: (...args) => this.abortCopyFromURL(...args),\n getProperties: (...args) => this.getProperties(...args),\n startCopyFromURL: (...args) => this.startCopyFromURL(...args),\n };\n const poller = new BlobBeginCopyFromUrlPoller({\n blobClient: client,\n copySource,\n intervalInMs: options.intervalInMs,\n onProgress: options.onProgress,\n resumeFrom: options.resumeFrom,\n startCopyFromURLOptions: options,\n });\n // Trigger the startCopyFromURL call by calling poll.\n // Any errors from this method should be surfaced to the user.\n await poller.poll();\n return poller;\n }\n /**\n * Aborts a pending asynchronous Copy Blob operation, and leaves a destination blob with zero\n * length and full metadata. Version 2012-02-12 and newer.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/abort-copy-blob\n *\n * @param copyId - Id of the Copy From URL operation.\n * @param options - Optional options to the Blob Abort Copy From URL operation.\n */\n async abortCopyFromURL(copyId, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobClient-abortCopyFromURL\", options);\n try {\n return await this.blobContext.abortCopyFromURL(copyId, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * The synchronous Copy From URL operation copies a blob or an internet resource to a new blob. It will not\n * return a response until the copy is complete.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url\n *\n * @param copySource - The source URL to copy from, Shared Access Signature(SAS) maybe needed for authentication\n * @param options -\n */\n async syncCopyFromURL(copySource, options = {}) {\n var _a, _b, _c;\n const { span, updatedOptions } = createSpan(\"BlobClient-syncCopyFromURL\", options);\n options.conditions = options.conditions || {};\n options.sourceConditions = options.sourceConditions || {};\n try {\n return await this.blobContext.copyFromURL(copySource, Object.assign({ abortSignal: options.abortSignal, metadata: options.metadata, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), sourceModifiedAccessConditions: {\n sourceIfMatch: options.sourceConditions.ifMatch,\n sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,\n sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,\n sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,\n }, sourceContentMD5: options.sourceContentMD5, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, encryptionScope: options.encryptionScope, copySourceTags: options.copySourceTags }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets the tier on a blob. The operation is allowed on a page blob in a premium\n * storage account and on a block blob in a blob storage account (locally redundant\n * storage only). A premium page blob's tier determines the allowed size, IOPS,\n * and bandwidth of the blob. A block blob's tier determines Hot/Cool/Archive\n * storage type. This operation does not update the blob's ETag.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-tier\n *\n * @param tier - The tier to be set on the blob. Valid values are Hot, Cool, or Archive.\n * @param options - Optional options to the Blob Set Tier operation.\n */\n async setAccessTier(tier, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobClient-setAccessTier\", options);\n try {\n return await this.blobContext.setTier(toAccessTier(tier), Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), rehydratePriority: options.rehydratePriority }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n async downloadToBuffer(param1, param2, param3, param4 = {}) {\n let buffer;\n let offset = 0;\n let count = 0;\n let options = param4;\n if (param1 instanceof Buffer) {\n buffer = param1;\n offset = param2 || 0;\n count = typeof param3 === \"number\" ? param3 : 0;\n }\n else {\n offset = typeof param1 === \"number\" ? param1 : 0;\n count = typeof param2 === \"number\" ? param2 : 0;\n options = param3 || {};\n }\n const { span, updatedOptions } = createSpan(\"BlobClient-downloadToBuffer\", options);\n try {\n if (!options.blockSize) {\n options.blockSize = 0;\n }\n if (options.blockSize < 0) {\n throw new RangeError(\"blockSize option must be >= 0\");\n }\n if (options.blockSize === 0) {\n options.blockSize = DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES;\n }\n if (offset < 0) {\n throw new RangeError(\"offset option must be >= 0\");\n }\n if (count && count <= 0) {\n throw new RangeError(\"count option must be greater than 0\");\n }\n if (!options.conditions) {\n options.conditions = {};\n }\n // Customer doesn't specify length, get it\n if (!count) {\n const response = await this.getProperties(Object.assign(Object.assign({}, options), { tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)) }));\n count = response.contentLength - offset;\n if (count < 0) {\n throw new RangeError(`offset ${offset} shouldn't be larger than blob size ${response.contentLength}`);\n }\n }\n // Allocate the buffer of size = count if the buffer is not provided\n if (!buffer) {\n try {\n buffer = Buffer.alloc(count);\n }\n catch (error) {\n throw new Error(`Unable to allocate the buffer of size: ${count}(in bytes). Please try passing your own buffer to the \"downloadToBuffer\" method or try using other methods like \"download\" or \"downloadToFile\".\\t ${error.message}`);\n }\n }\n if (buffer.length < count) {\n throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${count}`);\n }\n let transferProgress = 0;\n const batch = new Batch(options.concurrency);\n for (let off = offset; off < offset + count; off = off + options.blockSize) {\n batch.addOperation(async () => {\n // Exclusive chunk end position\n let chunkEnd = offset + count;\n if (off + options.blockSize < chunkEnd) {\n chunkEnd = off + options.blockSize;\n }\n const response = await this.download(off, chunkEnd - off, {\n abortSignal: options.abortSignal,\n conditions: options.conditions,\n maxRetryRequests: options.maxRetryRequestsPerBlock,\n customerProvidedKey: options.customerProvidedKey,\n tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),\n });\n const stream = response.readableStreamBody;\n await streamToBuffer(stream, buffer, off - offset, chunkEnd - offset);\n // Update progress after block is downloaded, in case of block trying\n // Could provide finer grained progress updating inside HTTP requests,\n // only if convenience layer download try is enabled\n transferProgress += chunkEnd - off;\n if (options.onProgress) {\n options.onProgress({ loadedBytes: transferProgress });\n }\n });\n }\n await batch.do();\n return buffer;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * Downloads an Azure Blob to a local file.\n * Fails if the the given file path already exits.\n * Offset and count are optional, pass 0 and undefined respectively to download the entire blob.\n *\n * @param filePath -\n * @param offset - From which position of the block blob to download.\n * @param count - How much data to be downloaded. Will download to the end when passing undefined.\n * @param options - Options to Blob download options.\n * @returns The response data for blob download operation,\n * but with readableStreamBody set to undefined since its\n * content is already read and written into a local file\n * at the specified path.\n */\n async downloadToFile(filePath, offset = 0, count, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobClient-downloadToFile\", options);\n try {\n const response = await this.download(offset, count, Object.assign(Object.assign({}, options), { tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)) }));\n if (response.readableStreamBody) {\n await readStreamToLocalFile(response.readableStreamBody, filePath);\n }\n // The stream is no longer accessible so setting it to undefined.\n response.blobDownloadStream = undefined;\n return response;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n getBlobAndContainerNamesFromUrl() {\n let containerName;\n let blobName;\n try {\n // URL may look like the following\n // \"https://myaccount.blob.core.windows.net/mycontainer/blob?sasString\";\n // \"https://myaccount.blob.core.windows.net/mycontainer/blob\";\n // \"https://myaccount.blob.core.windows.net/mycontainer/blob/a.txt?sasString\";\n // \"https://myaccount.blob.core.windows.net/mycontainer/blob/a.txt\";\n // IPv4/IPv6 address hosts, Endpoints - `http://127.0.0.1:10000/devstoreaccount1/containername/blob`\n // http://localhost:10001/devstoreaccount1/containername/blob\n const parsedUrl = coreHttp.URLBuilder.parse(this.url);\n if (parsedUrl.getHost().split(\".\")[1] === \"blob\") {\n // \"https://myaccount.blob.core.windows.net/containername/blob\".\n // .getPath() -> /containername/blob\n const pathComponents = parsedUrl.getPath().match(\"/([^/]*)(/(.*))?\");\n containerName = pathComponents[1];\n blobName = pathComponents[3];\n }\n else if (isIpEndpointStyle(parsedUrl)) {\n // IPv4/IPv6 address hosts... Example - http://192.0.0.10:10001/devstoreaccount1/containername/blob\n // Single word domain without a [dot] in the endpoint... Example - http://localhost:10001/devstoreaccount1/containername/blob\n // .getPath() -> /devstoreaccount1/containername/blob\n const pathComponents = parsedUrl.getPath().match(\"/([^/]*)/([^/]*)(/(.*))?\");\n containerName = pathComponents[2];\n blobName = pathComponents[4];\n }\n else {\n // \"https://customdomain.com/containername/blob\".\n // .getPath() -> /containername/blob\n const pathComponents = parsedUrl.getPath().match(\"/([^/]*)(/(.*))?\");\n containerName = pathComponents[1];\n blobName = pathComponents[3];\n }\n // decode the encoded blobName, containerName - to get all the special characters that might be present in them\n containerName = decodeURIComponent(containerName);\n blobName = decodeURIComponent(blobName);\n // Azure Storage Server will replace \"\\\" with \"/\" in the blob names\n // doing the same in the SDK side so that the user doesn't have to replace \"\\\" instances in the blobName\n blobName = blobName.replace(/\\\\/g, \"/\");\n if (!containerName) {\n throw new Error(\"Provided containerName is invalid.\");\n }\n return { blobName, containerName };\n }\n catch (error) {\n throw new Error(\"Unable to extract blobName and containerName with provided information.\");\n }\n }\n /**\n * Asynchronously copies a blob to a destination within the storage account.\n * In version 2012-02-12 and later, the source for a Copy Blob operation can be\n * a committed blob in any Azure storage account.\n * Beginning with version 2015-02-21, the source for a Copy Blob operation can be\n * an Azure file in any Azure storage account.\n * Only storage accounts created on or after June 7th, 2012 allow the Copy Blob\n * operation to copy from another storage account.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob\n *\n * @param copySource - url to the source Azure Blob/File.\n * @param options - Optional options to the Blob Start Copy From URL operation.\n */\n async startCopyFromURL(copySource, options = {}) {\n var _a, _b, _c;\n const { span, updatedOptions } = createSpan(\"BlobClient-startCopyFromURL\", options);\n options.conditions = options.conditions || {};\n options.sourceConditions = options.sourceConditions || {};\n try {\n return await this.blobContext.startCopyFromURL(copySource, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, metadata: options.metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), sourceModifiedAccessConditions: {\n sourceIfMatch: options.sourceConditions.ifMatch,\n sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,\n sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,\n sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,\n sourceIfTags: options.sourceConditions.tagConditions,\n }, immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, rehydratePriority: options.rehydratePriority, tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), sealBlob: options.sealBlob }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Only available for BlobClient constructed with a shared key credential.\n *\n * Generates a Blob Service Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas\n *\n * @param options - Optional parameters.\n * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n generateSasUrl(options) {\n return new Promise((resolve) => {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw new RangeError(\"Can only generate the SAS when the client is initialized with a shared key credential\");\n }\n const sas = generateBlobSASQueryParameters(Object.assign({ containerName: this._containerName, blobName: this._name, snapshotTime: this._snapshot, versionId: this._versionId }, options), this.credential).toString();\n resolve(appendToURLQuery(this.url, sas));\n });\n }\n /**\n * Delete the immutablility policy on the blob.\n *\n * @param options - Optional options to delete immutability policy on the blob.\n */\n async deleteImmutabilityPolicy(options) {\n const { span, updatedOptions } = createSpan(\"BlobClient-deleteImmutabilityPolicy\", options);\n try {\n return await this.blobContext.deleteImmutabilityPolicy(Object.assign({ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Set immutablility policy on the blob.\n *\n * @param options - Optional options to set immutability policy on the blob.\n */\n async setImmutabilityPolicy(immutabilityPolicy, options) {\n const { span, updatedOptions } = createSpan(\"BlobClient-setImmutabilityPolicy\", options);\n try {\n return await this.blobContext.setImmutabilityPolicy(Object.assign({ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal, immutabilityPolicyExpiry: immutabilityPolicy.expiriesOn, immutabilityPolicyMode: immutabilityPolicy.policyMode, modifiedAccessConditions: options === null || options === void 0 ? void 0 : options.modifiedAccessCondition }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Set legal hold on the blob.\n *\n * @param options - Optional options to set legal hold on the blob.\n */\n async setLegalHold(legalHoldEnabled, options) {\n const { span, updatedOptions } = createSpan(\"BlobClient-setLegalHold\", options);\n try {\n return await this.blobContext.setLegalHold(legalHoldEnabled, Object.assign({ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n}\n/**\n * AppendBlobClient defines a set of operations applicable to append blobs.\n */\nclass AppendBlobClient extends BlobClient {\n constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead.\n // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options);\n let pipeline;\n let url;\n options = options || {};\n if (isPipelineLike(credentialOrPipelineOrContainerName)) {\n // (url: string, pipeline: Pipeline)\n url = urlOrConnectionString;\n pipeline = credentialOrPipelineOrContainerName;\n }\n else if ((coreHttp.isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||\n credentialOrPipelineOrContainerName instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrPipelineOrContainerName)) {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions) url = urlOrConnectionString;\n url = urlOrConnectionString;\n options = blobNameOrOptions;\n pipeline = newPipeline(credentialOrPipelineOrContainerName, options);\n }\n else if (!credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName !== \"string\") {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n url = urlOrConnectionString;\n // The second parameter is undefined. Use anonymous credential.\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else if (credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName === \"string\" &&\n blobNameOrOptions &&\n typeof blobNameOrOptions === \"string\") {\n // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)\n const containerName = credentialOrPipelineOrContainerName;\n const blobName = blobNameOrOptions;\n const extractedCreds = extractConnectionStringParts(urlOrConnectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (coreHttp.isNode) {\n const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);\n url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));\n if (!options.proxyOptions) {\n options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);\n }\n pipeline = newPipeline(sharedKeyCredential, options);\n }\n else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n }\n else if (extractedCreds.kind === \"SASConnString\") {\n url =\n appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +\n \"?\" +\n extractedCreds.accountSas;\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else {\n throw new Error(\"Connection string must be either an Account connection string or a SAS connection string\");\n }\n }\n else {\n throw new Error(\"Expecting non-empty strings for containerName and blobName parameters\");\n }\n super(url, pipeline);\n this.appendBlobContext = new AppendBlob(this.storageClientContext);\n }\n /**\n * Creates a new AppendBlobClient object identical to the source but with the\n * specified snapshot timestamp.\n * Provide \"\" will remove the snapshot and return a Client to the base blob.\n *\n * @param snapshot - The snapshot timestamp.\n * @returns A new AppendBlobClient object identical to the source but with the specified snapshot timestamp.\n */\n withSnapshot(snapshot) {\n return new AppendBlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);\n }\n /**\n * Creates a 0-length append blob. Call AppendBlock to append data to an append blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-blob\n *\n * @param options - Options to the Append Block Create operation.\n *\n *\n * Example usage:\n *\n * ```js\n * const appendBlobClient = containerClient.getAppendBlobClient(\"\");\n * await appendBlobClient.create();\n * ```\n */\n async create(options = {}) {\n var _a, _b, _c;\n const { span, updatedOptions } = createSpan(\"AppendBlobClient-create\", options);\n options.conditions = options.conditions || {};\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.appendBlobContext.create(0, Object.assign({ abortSignal: options.abortSignal, blobHttpHeaders: options.blobHTTPHeaders, leaseAccessConditions: options.conditions, metadata: options.metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, blobTagsString: toBlobTagsString(options.tags) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Creates a 0-length append blob. Call AppendBlock to append data to an append blob.\n * If the blob with the same name already exists, the content of the existing blob will remain unchanged.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-blob\n *\n * @param options -\n */\n async createIfNotExists(options = {}) {\n var _a, _b;\n const { span, updatedOptions } = createSpan(\"AppendBlobClient-createIfNotExists\", options);\n const conditions = { ifNoneMatch: ETagAny };\n try {\n const res = await this.create(Object.assign(Object.assign({}, updatedOptions), { conditions }));\n return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });\n }\n catch (e) {\n if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === \"BlobAlreadyExists\") {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: \"Expected exception when creating a blob only if it does not already exist.\",\n });\n return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Seals the append blob, making it read only.\n *\n * @param options -\n */\n async seal(options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"AppendBlobClient-seal\", options);\n options.conditions = options.conditions || {};\n try {\n return await this.appendBlobContext.seal(Object.assign({ abortSignal: options.abortSignal, appendPositionAccessConditions: options.conditions, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Commits a new block of data to the end of the existing append blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/append-block\n *\n * @param body - Data to be appended.\n * @param contentLength - Length of the body in bytes.\n * @param options - Options to the Append Block operation.\n *\n *\n * Example usage:\n *\n * ```js\n * const content = \"Hello World!\";\n *\n * // Create a new append blob and append data to the blob.\n * const newAppendBlobClient = containerClient.getAppendBlobClient(\"\");\n * await newAppendBlobClient.create();\n * await newAppendBlobClient.appendBlock(content, content.length);\n *\n * // Append data to an existing append blob.\n * const existingAppendBlobClient = containerClient.getAppendBlobClient(\"\");\n * await existingAppendBlobClient.appendBlock(content, content.length);\n * ```\n */\n async appendBlock(body, contentLength, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"AppendBlobClient-appendBlock\", options);\n options.conditions = options.conditions || {};\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.appendBlobContext.appendBlock(contentLength, body, Object.assign({ abortSignal: options.abortSignal, appendPositionAccessConditions: options.conditions, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {\n onUploadProgress: options.onProgress,\n }, transactionalContentMD5: options.transactionalContentMD5, transactionalContentCrc64: options.transactionalContentCrc64, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * The Append Block operation commits a new block of data to the end of an existing append blob\n * where the contents are read from a source url.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/append-block-from-url\n *\n * @param sourceURL -\n * The url to the blob that will be the source of the copy. A source blob in the same storage account can\n * be authenticated via Shared Key. However, if the source is a blob in another account, the source blob\n * must either be public or must be authenticated via a shared access signature. If the source blob is\n * public, no authentication is required to perform the operation.\n * @param sourceOffset - Offset in source to be appended\n * @param count - Number of bytes to be appended as a block\n * @param options -\n */\n async appendBlockFromURL(sourceURL, sourceOffset, count, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"AppendBlobClient-appendBlockFromURL\", options);\n options.conditions = options.conditions || {};\n options.sourceConditions = options.sourceConditions || {};\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.appendBlobContext.appendBlockFromUrl(sourceURL, 0, Object.assign({ abortSignal: options.abortSignal, sourceRange: rangeToString({ offset: sourceOffset, count }), sourceContentMD5: options.sourceContentMD5, sourceContentCrc64: options.sourceContentCrc64, leaseAccessConditions: options.conditions, appendPositionAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), sourceModifiedAccessConditions: {\n sourceIfMatch: options.sourceConditions.ifMatch,\n sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,\n sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,\n sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,\n }, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n}\n/**\n * BlockBlobClient defines a set of operations applicable to block blobs.\n */\nclass BlockBlobClient extends BlobClient {\n constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead.\n // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options);\n let pipeline;\n let url;\n options = options || {};\n if (isPipelineLike(credentialOrPipelineOrContainerName)) {\n // (url: string, pipeline: Pipeline)\n url = urlOrConnectionString;\n pipeline = credentialOrPipelineOrContainerName;\n }\n else if ((coreHttp.isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||\n credentialOrPipelineOrContainerName instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrPipelineOrContainerName)) {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n url = urlOrConnectionString;\n options = blobNameOrOptions;\n pipeline = newPipeline(credentialOrPipelineOrContainerName, options);\n }\n else if (!credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName !== \"string\") {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n // The second parameter is undefined. Use anonymous credential.\n url = urlOrConnectionString;\n if (blobNameOrOptions && typeof blobNameOrOptions !== \"string\") {\n options = blobNameOrOptions;\n }\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else if (credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName === \"string\" &&\n blobNameOrOptions &&\n typeof blobNameOrOptions === \"string\") {\n // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)\n const containerName = credentialOrPipelineOrContainerName;\n const blobName = blobNameOrOptions;\n const extractedCreds = extractConnectionStringParts(urlOrConnectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (coreHttp.isNode) {\n const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);\n url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));\n if (!options.proxyOptions) {\n options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);\n }\n pipeline = newPipeline(sharedKeyCredential, options);\n }\n else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n }\n else if (extractedCreds.kind === \"SASConnString\") {\n url =\n appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +\n \"?\" +\n extractedCreds.accountSas;\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else {\n throw new Error(\"Connection string must be either an Account connection string or a SAS connection string\");\n }\n }\n else {\n throw new Error(\"Expecting non-empty strings for containerName and blobName parameters\");\n }\n super(url, pipeline);\n this.blockBlobContext = new BlockBlob(this.storageClientContext);\n this._blobContext = new Blob$1(this.storageClientContext);\n }\n /**\n * Creates a new BlockBlobClient object identical to the source but with the\n * specified snapshot timestamp.\n * Provide \"\" will remove the snapshot and return a URL to the base blob.\n *\n * @param snapshot - The snapshot timestamp.\n * @returns A new BlockBlobClient object identical to the source but with the specified snapshot timestamp.\n */\n withSnapshot(snapshot) {\n return new BlockBlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);\n }\n /**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * Quick query for a JSON or CSV formatted blob.\n *\n * Example usage (Node.js):\n *\n * ```js\n * // Query and convert a blob to a string\n * const queryBlockBlobResponse = await blockBlobClient.query(\"select * from BlobStorage\");\n * const downloaded = (await streamToBuffer(queryBlockBlobResponse.readableStreamBody)).toString();\n * console.log(\"Query blob content:\", downloaded);\n *\n * async function streamToBuffer(readableStream) {\n * return new Promise((resolve, reject) => {\n * const chunks = [];\n * readableStream.on(\"data\", (data) => {\n * chunks.push(data instanceof Buffer ? data : Buffer.from(data));\n * });\n * readableStream.on(\"end\", () => {\n * resolve(Buffer.concat(chunks));\n * });\n * readableStream.on(\"error\", reject);\n * });\n * }\n * ```\n *\n * @param query -\n * @param options -\n */\n async query(query, options = {}) {\n var _a;\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-query\", options);\n try {\n if (!coreHttp.isNode) {\n throw new Error(\"This operation currently is only supported in Node.js.\");\n }\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n const response = await this._blobContext.query(Object.assign({ abortSignal: options.abortSignal, queryRequest: {\n queryType: \"SQL\",\n expression: query,\n inputSerialization: toQuerySerialization(options.inputTextConfiguration),\n outputSerialization: toQuerySerialization(options.outputTextConfiguration),\n }, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), cpkInfo: options.customerProvidedKey }, convertTracingToRequestOptionsBase(updatedOptions)));\n return new BlobQueryResponse(response, {\n abortSignal: options.abortSignal,\n onProgress: options.onProgress,\n onError: options.onError,\n });\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Creates a new block blob, or updates the content of an existing block blob.\n * Updating an existing block blob overwrites any existing metadata on the blob.\n * Partial updates are not supported; the content of the existing blob is\n * overwritten with the new content. To perform a partial update of a block blob's,\n * use {@link stageBlock} and {@link commitBlockList}.\n *\n * This is a non-parallel uploading method, please use {@link uploadFile},\n * {@link uploadStream} or {@link uploadBrowserData} for better performance\n * with concurrency uploading.\n *\n * @see https://docs.microsoft.com/rest/api/storageservices/put-blob\n *\n * @param body - Blob, string, ArrayBuffer, ArrayBufferView or a function\n * which returns a new Readable stream whose offset is from data source beginning.\n * @param contentLength - Length of body in bytes. Use Buffer.byteLength() to calculate body length for a\n * string including non non-Base64/Hex-encoded characters.\n * @param options - Options to the Block Blob Upload operation.\n * @returns Response data for the Block Blob Upload operation.\n *\n * Example usage:\n *\n * ```js\n * const content = \"Hello world!\";\n * const uploadBlobResponse = await blockBlobClient.upload(content, content.length);\n * ```\n */\n async upload(body, contentLength, options = {}) {\n var _a, _b, _c;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-upload\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blockBlobContext.upload(contentLength, body, Object.assign({ abortSignal: options.abortSignal, blobHttpHeaders: options.blobHTTPHeaders, leaseAccessConditions: options.conditions, metadata: options.metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {\n onUploadProgress: options.onProgress,\n }, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Creates a new Block Blob where the contents of the blob are read from a given URL.\n * This API is supported beginning with the 2020-04-08 version. Partial updates\n * are not supported with Put Blob from URL; the content of an existing blob is overwritten with\n * the content of the new blob. To perform partial updates to a block blob’s contents using a\n * source URL, use {@link stageBlockFromURL} and {@link commitBlockList}.\n *\n * @param sourceURL - Specifies the URL of the blob. The value\n * may be a URL of up to 2 KB in length that specifies a blob.\n * The value should be URL-encoded as it would appear\n * in a request URI. The source blob must either be public\n * or must be authenticated via a shared access signature.\n * If the source blob is public, no authentication is required\n * to perform the operation. Here are some examples of source object URLs:\n * - https://myaccount.blob.core.windows.net/mycontainer/myblob\n * - https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=\n * @param options - Optional parameters.\n */\n async syncUploadFromURL(sourceURL, options = {}) {\n var _a, _b, _c, _d, _e;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-syncUploadFromURL\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blockBlobContext.putBlobFromUrl(0, sourceURL, Object.assign(Object.assign(Object.assign({}, options), { blobHttpHeaders: options.blobHTTPHeaders, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: options.conditions.tagConditions }), sourceModifiedAccessConditions: {\n sourceIfMatch: (_a = options.sourceConditions) === null || _a === void 0 ? void 0 : _a.ifMatch,\n sourceIfModifiedSince: (_b = options.sourceConditions) === null || _b === void 0 ? void 0 : _b.ifModifiedSince,\n sourceIfNoneMatch: (_c = options.sourceConditions) === null || _c === void 0 ? void 0 : _c.ifNoneMatch,\n sourceIfUnmodifiedSince: (_d = options.sourceConditions) === null || _d === void 0 ? void 0 : _d.ifUnmodifiedSince,\n sourceIfTags: (_e = options.sourceConditions) === null || _e === void 0 ? void 0 : _e.tagConditions,\n }, cpkInfo: options.customerProvidedKey, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), copySourceTags: options.copySourceTags }), convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Uploads the specified block to the block blob's \"staging area\" to be later\n * committed by a call to commitBlockList.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-block\n *\n * @param blockId - A 64-byte value that is base64-encoded\n * @param body - Data to upload to the staging area.\n * @param contentLength - Number of bytes to upload.\n * @param options - Options to the Block Blob Stage Block operation.\n * @returns Response data for the Block Blob Stage Block operation.\n */\n async stageBlock(blockId, body, contentLength, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-stageBlock\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blockBlobContext.stageBlock(blockId, contentLength, body, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, requestOptions: {\n onUploadProgress: options.onProgress,\n }, transactionalContentMD5: options.transactionalContentMD5, transactionalContentCrc64: options.transactionalContentCrc64, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * The Stage Block From URL operation creates a new block to be committed as part\n * of a blob where the contents are read from a URL.\n * This API is available starting in version 2018-03-28.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/put-block-from-url\n *\n * @param blockId - A 64-byte value that is base64-encoded\n * @param sourceURL - Specifies the URL of the blob. The value\n * may be a URL of up to 2 KB in length that specifies a blob.\n * The value should be URL-encoded as it would appear\n * in a request URI. The source blob must either be public\n * or must be authenticated via a shared access signature.\n * If the source blob is public, no authentication is required\n * to perform the operation. Here are some examples of source object URLs:\n * - https://myaccount.blob.core.windows.net/mycontainer/myblob\n * - https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=\n * @param offset - From which position of the blob to download, greater than or equal to 0\n * @param count - How much data to be downloaded, greater than 0. Will download to the end when undefined\n * @param options - Options to the Block Blob Stage Block From URL operation.\n * @returns Response data for the Block Blob Stage Block From URL operation.\n */\n async stageBlockFromURL(blockId, sourceURL, offset = 0, count, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-stageBlockFromURL\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blockBlobContext.stageBlockFromURL(blockId, 0, sourceURL, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, sourceContentMD5: options.sourceContentMD5, sourceContentCrc64: options.sourceContentCrc64, sourceRange: offset === 0 && !count ? undefined : rangeToString({ offset, count }), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Writes a blob by specifying the list of block IDs that make up the blob.\n * In order to be written as part of a blob, a block must have been successfully written\n * to the server in a prior {@link stageBlock} operation. You can call {@link commitBlockList} to\n * update a blob by uploading only those blocks that have changed, then committing the new and existing\n * blocks together. Any blocks not specified in the block list and permanently deleted.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-block-list\n *\n * @param blocks - Array of 64-byte value that is base64-encoded\n * @param options - Options to the Block Blob Commit Block List operation.\n * @returns Response data for the Block Blob Commit Block List operation.\n */\n async commitBlockList(blocks, options = {}) {\n var _a, _b, _c;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-commitBlockList\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.blockBlobContext.commitBlockList({ latest: blocks }, Object.assign({ abortSignal: options.abortSignal, blobHttpHeaders: options.blobHTTPHeaders, leaseAccessConditions: options.conditions, metadata: options.metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns the list of blocks that have been uploaded as part of a block blob\n * using the specified block list filter.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-block-list\n *\n * @param listType - Specifies whether to return the list of committed blocks,\n * the list of uncommitted blocks, or both lists together.\n * @param options - Options to the Block Blob Get Block List operation.\n * @returns Response data for the Block Blob Get Block List operation.\n */\n async getBlockList(listType, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-getBlockList\", options);\n try {\n const res = await this.blockBlobContext.getBlockList(listType, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n if (!res.committedBlocks) {\n res.committedBlocks = [];\n }\n if (!res.uncommittedBlocks) {\n res.uncommittedBlocks = [];\n }\n return res;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n // High level functions\n /**\n * Uploads a Buffer(Node.js)/Blob(browsers)/ArrayBuffer/ArrayBufferView object to a BlockBlob.\n *\n * When data length is no more than the specifiled {@link BlockBlobParallelUploadOptions.maxSingleShotSize} (default is\n * {@link BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}), this method will use 1 {@link upload} call to finish the upload.\n * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call {@link commitBlockList}\n * to commit the block list.\n *\n * A common {@link BlockBlobParallelUploadOptions.blobHTTPHeaders} option to set is\n * `blobContentType`, enabling the browser to provide\n * functionality based on file type.\n *\n * @param data - Buffer(Node.js), Blob, ArrayBuffer or ArrayBufferView\n * @param options -\n */\n async uploadData(data, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-uploadData\", options);\n try {\n if (coreHttp.isNode) {\n let buffer;\n if (data instanceof Buffer) {\n buffer = data;\n }\n else if (data instanceof ArrayBuffer) {\n buffer = Buffer.from(data);\n }\n else {\n data = data;\n buffer = Buffer.from(data.buffer, data.byteOffset, data.byteLength);\n }\n return this.uploadSeekableInternal((offset, size) => buffer.slice(offset, offset + size), buffer.byteLength, updatedOptions);\n }\n else {\n const browserBlob = new Blob([data]);\n return this.uploadSeekableInternal((offset, size) => browserBlob.slice(offset, offset + size), browserBlob.size, updatedOptions);\n }\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * ONLY AVAILABLE IN BROWSERS.\n *\n * Uploads a browser Blob/File/ArrayBuffer/ArrayBufferView object to block blob.\n *\n * When buffer length lesser than or equal to 256MB, this method will use 1 upload call to finish the upload.\n * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call\n * {@link commitBlockList} to commit the block list.\n *\n * A common {@link BlockBlobParallelUploadOptions.blobHTTPHeaders} option to set is\n * `blobContentType`, enabling the browser to provide\n * functionality based on file type.\n *\n * @deprecated Use {@link uploadData} instead.\n *\n * @param browserData - Blob, File, ArrayBuffer or ArrayBufferView\n * @param options - Options to upload browser data.\n * @returns Response data for the Blob Upload operation.\n */\n async uploadBrowserData(browserData, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-uploadBrowserData\", options);\n try {\n const browserBlob = new Blob([browserData]);\n return await this.uploadSeekableInternal((offset, size) => browserBlob.slice(offset, offset + size), browserBlob.size, updatedOptions);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n *\n * Uploads data to block blob. Requires a bodyFactory as the data source,\n * which need to return a {@link HttpRequestBody} object with the offset and size provided.\n *\n * When data length is no more than the specified {@link BlockBlobParallelUploadOptions.maxSingleShotSize} (default is\n * {@link BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}), this method will use 1 {@link upload} call to finish the upload.\n * Otherwise, this method will call {@link stageBlock} to upload blocks, and finally call {@link commitBlockList}\n * to commit the block list.\n *\n * @param bodyFactory -\n * @param size - size of the data to upload.\n * @param options - Options to Upload to Block Blob operation.\n * @returns Response data for the Blob Upload operation.\n */\n async uploadSeekableInternal(bodyFactory, size, options = {}) {\n if (!options.blockSize) {\n options.blockSize = 0;\n }\n if (options.blockSize < 0 || options.blockSize > BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES) {\n throw new RangeError(`blockSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`);\n }\n if (options.maxSingleShotSize !== 0 && !options.maxSingleShotSize) {\n options.maxSingleShotSize = BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;\n }\n if (options.maxSingleShotSize < 0 ||\n options.maxSingleShotSize > BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES) {\n throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`);\n }\n if (options.blockSize === 0) {\n if (size > BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES * BLOCK_BLOB_MAX_BLOCKS) {\n throw new RangeError(`${size} is too larger to upload to a block blob.`);\n }\n if (size > options.maxSingleShotSize) {\n options.blockSize = Math.ceil(size / BLOCK_BLOB_MAX_BLOCKS);\n if (options.blockSize < DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES) {\n options.blockSize = DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES;\n }\n }\n }\n if (!options.blobHTTPHeaders) {\n options.blobHTTPHeaders = {};\n }\n if (!options.conditions) {\n options.conditions = {};\n }\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-uploadSeekableInternal\", options);\n try {\n if (size <= options.maxSingleShotSize) {\n return await this.upload(bodyFactory(0, size), size, updatedOptions);\n }\n const numBlocks = Math.floor((size - 1) / options.blockSize) + 1;\n if (numBlocks > BLOCK_BLOB_MAX_BLOCKS) {\n throw new RangeError(`The buffer's size is too big or the BlockSize is too small;` +\n `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}`);\n }\n const blockList = [];\n const blockIDPrefix = coreHttp.generateUuid();\n let transferProgress = 0;\n const batch = new Batch(options.concurrency);\n for (let i = 0; i < numBlocks; i++) {\n batch.addOperation(async () => {\n const blockID = generateBlockID(blockIDPrefix, i);\n const start = options.blockSize * i;\n const end = i === numBlocks - 1 ? size : start + options.blockSize;\n const contentLength = end - start;\n blockList.push(blockID);\n await this.stageBlock(blockID, bodyFactory(start, contentLength), contentLength, {\n abortSignal: options.abortSignal,\n conditions: options.conditions,\n encryptionScope: options.encryptionScope,\n tracingOptions: updatedOptions.tracingOptions,\n });\n // Update progress after block is successfully uploaded to server, in case of block trying\n // TODO: Hook with convenience layer progress event in finer level\n transferProgress += contentLength;\n if (options.onProgress) {\n options.onProgress({\n loadedBytes: transferProgress,\n });\n }\n });\n }\n await batch.do();\n return this.commitBlockList(blockList, updatedOptions);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * Uploads a local file in blocks to a block blob.\n *\n * When file size lesser than or equal to 256MB, this method will use 1 upload call to finish the upload.\n * Otherwise, this method will call stageBlock to upload blocks, and finally call commitBlockList\n * to commit the block list.\n *\n * @param filePath - Full path of local file\n * @param options - Options to Upload to Block Blob operation.\n * @returns Response data for the Blob Upload operation.\n */\n async uploadFile(filePath, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-uploadFile\", options);\n try {\n const size = (await fsStat(filePath)).size;\n return await this.uploadSeekableInternal((offset, count) => {\n return () => fsCreateReadStream(filePath, {\n autoClose: true,\n end: count ? offset + count - 1 : Infinity,\n start: offset,\n });\n }, size, Object.assign(Object.assign({}, options), { tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)) }));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * Uploads a Node.js Readable stream into block blob.\n *\n * PERFORMANCE IMPROVEMENT TIPS:\n * * Input stream highWaterMark is better to set a same value with bufferSize\n * parameter, which will avoid Buffer.concat() operations.\n *\n * @param stream - Node.js Readable stream\n * @param bufferSize - Size of every buffer allocated, also the block size in the uploaded block blob. Default value is 8MB\n * @param maxConcurrency - Max concurrency indicates the max number of buffers that can be allocated,\n * positive correlation with max uploading concurrency. Default value is 5\n * @param options - Options to Upload Stream to Block Blob operation.\n * @returns Response data for the Blob Upload operation.\n */\n async uploadStream(stream, bufferSize = DEFAULT_BLOCK_BUFFER_SIZE_BYTES, maxConcurrency = 5, options = {}) {\n if (!options.blobHTTPHeaders) {\n options.blobHTTPHeaders = {};\n }\n if (!options.conditions) {\n options.conditions = {};\n }\n const { span, updatedOptions } = createSpan(\"BlockBlobClient-uploadStream\", options);\n try {\n let blockNum = 0;\n const blockIDPrefix = coreHttp.generateUuid();\n let transferProgress = 0;\n const blockList = [];\n const scheduler = new BufferScheduler(stream, bufferSize, maxConcurrency, async (body, length) => {\n const blockID = generateBlockID(blockIDPrefix, blockNum);\n blockList.push(blockID);\n blockNum++;\n await this.stageBlock(blockID, body, length, {\n conditions: options.conditions,\n encryptionScope: options.encryptionScope,\n tracingOptions: updatedOptions.tracingOptions,\n });\n // Update progress after block is successfully uploaded to server, in case of block trying\n transferProgress += length;\n if (options.onProgress) {\n options.onProgress({ loadedBytes: transferProgress });\n }\n }, \n // concurrency should set a smaller value than maxConcurrency, which is helpful to\n // reduce the possibility when a outgoing handler waits for stream data, in\n // this situation, outgoing handlers are blocked.\n // Outgoing queue shouldn't be empty.\n Math.ceil((maxConcurrency / 4) * 3));\n await scheduler.do();\n return await this.commitBlockList(blockList, Object.assign(Object.assign({}, options), { tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)) }));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n}\n/**\n * PageBlobClient defines a set of operations applicable to page blobs.\n */\nclass PageBlobClient extends BlobClient {\n constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, blobNameOrOptions, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead.\n // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options);\n let pipeline;\n let url;\n options = options || {};\n if (isPipelineLike(credentialOrPipelineOrContainerName)) {\n // (url: string, pipeline: Pipeline)\n url = urlOrConnectionString;\n pipeline = credentialOrPipelineOrContainerName;\n }\n else if ((coreHttp.isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||\n credentialOrPipelineOrContainerName instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrPipelineOrContainerName)) {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n url = urlOrConnectionString;\n options = blobNameOrOptions;\n pipeline = newPipeline(credentialOrPipelineOrContainerName, options);\n }\n else if (!credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName !== \"string\") {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n // The second parameter is undefined. Use anonymous credential.\n url = urlOrConnectionString;\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else if (credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName === \"string\" &&\n blobNameOrOptions &&\n typeof blobNameOrOptions === \"string\") {\n // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)\n const containerName = credentialOrPipelineOrContainerName;\n const blobName = blobNameOrOptions;\n const extractedCreds = extractConnectionStringParts(urlOrConnectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (coreHttp.isNode) {\n const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);\n url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));\n if (!options.proxyOptions) {\n options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);\n }\n pipeline = newPipeline(sharedKeyCredential, options);\n }\n else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n }\n else if (extractedCreds.kind === \"SASConnString\") {\n url =\n appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName)) +\n \"?\" +\n extractedCreds.accountSas;\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else {\n throw new Error(\"Connection string must be either an Account connection string or a SAS connection string\");\n }\n }\n else {\n throw new Error(\"Expecting non-empty strings for containerName and blobName parameters\");\n }\n super(url, pipeline);\n this.pageBlobContext = new PageBlob(this.storageClientContext);\n }\n /**\n * Creates a new PageBlobClient object identical to the source but with the\n * specified snapshot timestamp.\n * Provide \"\" will remove the snapshot and return a Client to the base blob.\n *\n * @param snapshot - The snapshot timestamp.\n * @returns A new PageBlobClient object identical to the source but with the specified snapshot timestamp.\n */\n withSnapshot(snapshot) {\n return new PageBlobClient(setURLParameter(this.url, URLConstants.Parameters.SNAPSHOT, snapshot.length === 0 ? undefined : snapshot), this.pipeline);\n }\n /**\n * Creates a page blob of the specified length. Call uploadPages to upload data\n * data to a page blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-blob\n *\n * @param size - size of the page blob.\n * @param options - Options to the Page Blob Create operation.\n * @returns Response data for the Page Blob Create operation.\n */\n async create(size, options = {}) {\n var _a, _b, _c;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-create\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.pageBlobContext.create(0, size, Object.assign({ abortSignal: options.abortSignal, blobHttpHeaders: options.blobHTTPHeaders, blobSequenceNumber: options.blobSequenceNumber, leaseAccessConditions: options.conditions, metadata: options.metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Creates a page blob of the specified length. Call uploadPages to upload data\n * data to a page blob. If the blob with the same name already exists, the content\n * of the existing blob will remain unchanged.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-blob\n *\n * @param size - size of the page blob.\n * @param options -\n */\n async createIfNotExists(size, options = {}) {\n var _a, _b;\n const { span, updatedOptions } = createSpan(\"PageBlobClient-createIfNotExists\", options);\n try {\n const conditions = { ifNoneMatch: ETagAny };\n const res = await this.create(size, Object.assign(Object.assign({}, options), { conditions, tracingOptions: updatedOptions.tracingOptions }));\n return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });\n }\n catch (e) {\n if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === \"BlobAlreadyExists\") {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: \"Expected exception when creating a blob only if it does not already exist.\",\n });\n return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Writes 1 or more pages to the page blob. The start and end offsets must be a multiple of 512.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-page\n *\n * @param body - Data to upload\n * @param offset - Offset of destination page blob\n * @param count - Content length of the body, also number of bytes to be uploaded\n * @param options - Options to the Page Blob Upload Pages operation.\n * @returns Response data for the Page Blob Upload Pages operation.\n */\n async uploadPages(body, offset, count, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-uploadPages\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.pageBlobContext.uploadPages(count, body, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {\n onUploadProgress: options.onProgress,\n }, range: rangeToString({ offset, count }), sequenceNumberAccessConditions: options.conditions, transactionalContentMD5: options.transactionalContentMD5, transactionalContentCrc64: options.transactionalContentCrc64, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * The Upload Pages operation writes a range of pages to a page blob where the\n * contents are read from a URL.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/put-page-from-url\n *\n * @param sourceURL - Specify a URL to the copy source, Shared Access Signature(SAS) maybe needed for authentication\n * @param sourceOffset - The source offset to copy from. Pass 0 to copy from the beginning of source page blob\n * @param destOffset - Offset of destination page blob\n * @param count - Number of bytes to be uploaded from source page blob\n * @param options -\n */\n async uploadPagesFromURL(sourceURL, sourceOffset, destOffset, count, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n options.sourceConditions = options.sourceConditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-uploadPagesFromURL\", options);\n try {\n ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);\n return await this.pageBlobContext.uploadPagesFromURL(sourceURL, rangeToString({ offset: sourceOffset, count }), 0, rangeToString({ offset: destOffset, count }), Object.assign({ abortSignal: options.abortSignal, sourceContentMD5: options.sourceContentMD5, sourceContentCrc64: options.sourceContentCrc64, leaseAccessConditions: options.conditions, sequenceNumberAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), sourceModifiedAccessConditions: {\n sourceIfMatch: options.sourceConditions.ifMatch,\n sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,\n sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,\n sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,\n }, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Frees the specified pages from the page blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/put-page\n *\n * @param offset - Starting byte position of the pages to clear.\n * @param count - Number of bytes to clear.\n * @param options - Options to the Page Blob Clear Pages operation.\n * @returns Response data for the Page Blob Clear Pages operation.\n */\n async clearPages(offset = 0, count, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-clearPages\", options);\n try {\n return await this.pageBlobContext.clearPages(0, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), range: rangeToString({ offset, count }), sequenceNumberAccessConditions: options.conditions, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns the list of valid page ranges for a page blob or snapshot of a page blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges\n *\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param options - Options to the Page Blob Get Ranges operation.\n * @returns Response data for the Page Blob Get Ranges operation.\n */\n async getPageRanges(offset = 0, count, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-getPageRanges\", options);\n try {\n return await this.pageBlobContext\n .getPageRanges(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), range: rangeToString({ offset, count }) }, convertTracingToRequestOptionsBase(updatedOptions)))\n .then(rangeResponseFromModel);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * getPageRangesSegment returns a single segment of page ranges starting from the\n * specified Marker. Use an empty Marker to start enumeration from the beginning.\n * After getting a segment, process it, and then call getPageRangesSegment again\n * (passing the the previously-returned Marker) to get the next segment.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges\n *\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param marker - A string value that identifies the portion of the list to be returned with the next list operation.\n * @param options - Options to PageBlob Get Page Ranges Segment operation.\n */\n async listPageRangesSegment(offset = 0, count, marker, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"PageBlobClient-getPageRangesSegment\", options);\n try {\n return await this.pageBlobContext.getPageRanges(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), range: rangeToString({ offset, count }), marker: marker, maxPageSize: options.maxPageSize }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns an AsyncIterableIterator for {@link PageBlobGetPageRangesResponseModel}\n *\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param marker - A string value that identifies the portion of\n * the get of page ranges to be returned with the next getting operation. The\n * operation returns the ContinuationToken value within the response body if the\n * getting operation did not return all page ranges remaining within the current page.\n * The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of get\n * items. The marker value is opaque to the client.\n * @param options - Options to List Page Ranges operation.\n */\n listPageRangeItemSegments(offset = 0, count, marker, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listPageRangeItemSegments_1() {\n let getPageRangeItemSegmentsResponse;\n if (!!marker || marker === undefined) {\n do {\n getPageRangeItemSegmentsResponse = yield tslib.__await(this.listPageRangesSegment(offset, count, marker, options));\n marker = getPageRangeItemSegmentsResponse.continuationToken;\n yield yield tslib.__await(yield tslib.__await(getPageRangeItemSegmentsResponse));\n } while (marker);\n }\n });\n }\n /**\n * Returns an AsyncIterableIterator of {@link PageRangeInfo} objects\n *\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param options - Options to List Page Ranges operation.\n */\n listPageRangeItems(offset = 0, count, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listPageRangeItems_1() {\n var e_1, _a;\n let marker;\n try {\n for (var _b = tslib.__asyncValues(this.listPageRangeItemSegments(offset, count, marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {\n const getPageRangesSegment = _c.value;\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(ExtractPageRangeInfoItems(getPageRangesSegment))));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));\n }\n finally { if (e_1) throw e_1.error; }\n }\n });\n }\n /**\n * Returns an async iterable iterator to list of page ranges for a page blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges\n *\n * .byPage() returns an async iterable iterator to list of page ranges for a page blob.\n *\n * Example using `for await` syntax:\n *\n * ```js\n * // Get the pageBlobClient before you run these snippets,\n * // Can be obtained from `blobServiceClient.getContainerClient(\"\").getPageBlobClient(\"\");`\n * let i = 1;\n * for await (const pageRange of pageBlobClient.listPageRanges()) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```js\n * let i = 1;\n * let iter = pageBlobClient.listPageRanges();\n * let pageRangeItem = await iter.next();\n * while (!pageRangeItem.done) {\n * console.log(`Page range ${i++}: ${pageRangeItem.value.start} - ${pageRangeItem.value.end}, IsClear: ${pageRangeItem.value.isClear}`);\n * pageRangeItem = await iter.next();\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```js\n * // passing optional maxPageSize in the page settings\n * let i = 1;\n * for await (const response of pageBlobClient.listPageRanges().byPage({ maxPageSize: 20 })) {\n * for (const pageRange of response) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```js\n * let i = 1;\n * let iterator = pageBlobClient.listPageRanges().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * // Prints 2 page ranges\n * for (const pageRange of response) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n *\n * // Passing next marker as continuationToken\n *\n * iterator = pageBlobClient.listPageRanges().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * // Prints 10 page ranges\n * for (const blob of response) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n * ```\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param options - Options to the Page Blob Get Ranges operation.\n * @returns An asyncIterableIterator that supports paging.\n */\n listPageRanges(offset = 0, count, options = {}) {\n options.conditions = options.conditions || {};\n // AsyncIterableIterator to iterate over blobs\n const iter = this.listPageRangeItems(offset, count, options);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings = {}) => {\n return this.listPageRangeItemSegments(offset, count, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));\n },\n };\n }\n /**\n * Gets the collection of page ranges that differ between a specified snapshot and this page blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges\n *\n * @param offset - Starting byte position of the page blob\n * @param count - Number of bytes to get ranges diff.\n * @param prevSnapshot - Timestamp of snapshot to retrieve the difference.\n * @param options - Options to the Page Blob Get Page Ranges Diff operation.\n * @returns Response data for the Page Blob Get Page Range Diff operation.\n */\n async getPageRangesDiff(offset, count, prevSnapshot, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-getPageRangesDiff\", options);\n try {\n return await this.pageBlobContext\n .getPageRangesDiff(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), prevsnapshot: prevSnapshot, range: rangeToString({ offset, count }) }, convertTracingToRequestOptionsBase(updatedOptions)))\n .then(rangeResponseFromModel);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * getPageRangesDiffSegment returns a single segment of page ranges starting from the\n * specified Marker for difference between previous snapshot and the target page blob.\n * Use an empty Marker to start enumeration from the beginning.\n * After getting a segment, process it, and then call getPageRangesDiffSegment again\n * (passing the the previously-returned Marker) to get the next segment.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges\n *\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference.\n * @param marker - A string value that identifies the portion of the get to be returned with the next get operation.\n * @param options - Options to the Page Blob Get Page Ranges Diff operation.\n */\n async listPageRangesDiffSegment(offset, count, prevSnapshotOrUrl, marker, options) {\n var _a;\n const { span, updatedOptions } = createSpan(\"PageBlobClient-getPageRangesDiffSegment\", options);\n try {\n return await this.pageBlobContext.getPageRangesDiff(Object.assign({ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal, leaseAccessConditions: options === null || options === void 0 ? void 0 : options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.conditions), { ifTags: (_a = options === null || options === void 0 ? void 0 : options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), prevsnapshot: prevSnapshotOrUrl, range: rangeToString({\n offset: offset,\n count: count,\n }), marker: marker, maxPageSize: options === null || options === void 0 ? void 0 : options.maxPageSize }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns an AsyncIterableIterator for {@link PageBlobGetPageRangesDiffResponseModel}\n *\n *\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference.\n * @param marker - A string value that identifies the portion of\n * the get of page ranges to be returned with the next getting operation. The\n * operation returns the ContinuationToken value within the response body if the\n * getting operation did not return all page ranges remaining within the current page.\n * The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of get\n * items. The marker value is opaque to the client.\n * @param options - Options to the Page Blob Get Page Ranges Diff operation.\n */\n listPageRangeDiffItemSegments(offset, count, prevSnapshotOrUrl, marker, options) {\n return tslib.__asyncGenerator(this, arguments, function* listPageRangeDiffItemSegments_1() {\n let getPageRangeItemSegmentsResponse;\n if (!!marker || marker === undefined) {\n do {\n getPageRangeItemSegmentsResponse = yield tslib.__await(this.listPageRangesDiffSegment(offset, count, prevSnapshotOrUrl, marker, options));\n marker = getPageRangeItemSegmentsResponse.continuationToken;\n yield yield tslib.__await(yield tslib.__await(getPageRangeItemSegmentsResponse));\n } while (marker);\n }\n });\n }\n /**\n * Returns an AsyncIterableIterator of {@link PageRangeInfo} objects\n *\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param prevSnapshotOrUrl - Timestamp of snapshot to retrieve the difference or URL of snapshot to retrieve the difference.\n * @param options - Options to the Page Blob Get Page Ranges Diff operation.\n */\n listPageRangeDiffItems(offset, count, prevSnapshotOrUrl, options) {\n return tslib.__asyncGenerator(this, arguments, function* listPageRangeDiffItems_1() {\n var e_2, _a;\n let marker;\n try {\n for (var _b = tslib.__asyncValues(this.listPageRangeDiffItemSegments(offset, count, prevSnapshotOrUrl, marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {\n const getPageRangesSegment = _c.value;\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(ExtractPageRangeInfoItems(getPageRangesSegment))));\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));\n }\n finally { if (e_2) throw e_2.error; }\n }\n });\n }\n /**\n * Returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges\n *\n * .byPage() returns an async iterable iterator to list of page ranges that differ between a specified snapshot and this page blob.\n *\n * Example using `for await` syntax:\n *\n * ```js\n * // Get the pageBlobClient before you run these snippets,\n * // Can be obtained from `blobServiceClient.getContainerClient(\"\").getPageBlobClient(\"\");`\n * let i = 1;\n * for await (const pageRange of pageBlobClient.listPageRangesDiff()) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```js\n * let i = 1;\n * let iter = pageBlobClient.listPageRangesDiff();\n * let pageRangeItem = await iter.next();\n * while (!pageRangeItem.done) {\n * console.log(`Page range ${i++}: ${pageRangeItem.value.start} - ${pageRangeItem.value.end}, IsClear: ${pageRangeItem.value.isClear}`);\n * pageRangeItem = await iter.next();\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```js\n * // passing optional maxPageSize in the page settings\n * let i = 1;\n * for await (const response of pageBlobClient.listPageRangesDiff().byPage({ maxPageSize: 20 })) {\n * for (const pageRange of response) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```js\n * let i = 1;\n * let iterator = pageBlobClient.listPageRangesDiff().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * // Prints 2 page ranges\n * for (const pageRange of response) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n *\n * // Passing next marker as continuationToken\n *\n * iterator = pageBlobClient.listPageRangesDiff().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * // Prints 10 page ranges\n * for (const blob of response) {\n * console.log(`Page range ${i++}: ${pageRange.start} - ${pageRange.end}`);\n * }\n * ```\n * @param offset - Starting byte position of the page ranges.\n * @param count - Number of bytes to get.\n * @param prevSnapshot - Timestamp of snapshot to retrieve the difference.\n * @param options - Options to the Page Blob Get Ranges operation.\n * @returns An asyncIterableIterator that supports paging.\n */\n listPageRangesDiff(offset, count, prevSnapshot, options = {}) {\n options.conditions = options.conditions || {};\n // AsyncIterableIterator to iterate over blobs\n const iter = this.listPageRangeDiffItems(offset, count, prevSnapshot, Object.assign({}, options));\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings = {}) => {\n return this.listPageRangeDiffItemSegments(offset, count, prevSnapshot, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));\n },\n };\n }\n /**\n * Gets the collection of page ranges that differ between a specified snapshot and this page blob for managed disks.\n * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges\n *\n * @param offset - Starting byte position of the page blob\n * @param count - Number of bytes to get ranges diff.\n * @param prevSnapshotUrl - URL of snapshot to retrieve the difference.\n * @param options - Options to the Page Blob Get Page Ranges Diff operation.\n * @returns Response data for the Page Blob Get Page Range Diff operation.\n */\n async getPageRangesDiffForManagedDisks(offset, count, prevSnapshotUrl, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-GetPageRangesDiffForManagedDisks\", options);\n try {\n return await this.pageBlobContext\n .getPageRangesDiff(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), prevSnapshotUrl, range: rangeToString({ offset, count }) }, convertTracingToRequestOptionsBase(updatedOptions)))\n .then(rangeResponseFromModel);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Resizes the page blob to the specified size (which must be a multiple of 512).\n * @see https://docs.microsoft.com/rest/api/storageservices/set-blob-properties\n *\n * @param size - Target size\n * @param options - Options to the Page Blob Resize operation.\n * @returns Response data for the Page Blob Resize operation.\n */\n async resize(size, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-resize\", options);\n try {\n return await this.pageBlobContext.resize(size, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets a page blob's sequence number.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties\n *\n * @param sequenceNumberAction - Indicates how the service should modify the blob's sequence number.\n * @param sequenceNumber - Required if sequenceNumberAction is max or update\n * @param options - Options to the Page Blob Update Sequence Number operation.\n * @returns Response data for the Page Blob Update Sequence Number operation.\n */\n async updateSequenceNumber(sequenceNumberAction, sequenceNumber, options = {}) {\n var _a;\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"PageBlobClient-updateSequenceNumber\", options);\n try {\n return await this.pageBlobContext.updateSequenceNumber(sequenceNumberAction, Object.assign({ abortSignal: options.abortSignal, blobSequenceNumber: sequenceNumber, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Begins an operation to start an incremental copy from one page blob's snapshot to this page blob.\n * The snapshot is copied such that only the differential changes between the previously\n * copied snapshot are transferred to the destination.\n * The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual.\n * @see https://docs.microsoft.com/rest/api/storageservices/incremental-copy-blob\n * @see https://docs.microsoft.com/en-us/azure/virtual-machines/windows/incremental-snapshots\n *\n * @param copySource - Specifies the name of the source page blob snapshot. For example,\n * https://myaccount.blob.core.windows.net/mycontainer/myblob?snapshot=\n * @param options - Options to the Page Blob Copy Incremental operation.\n * @returns Response data for the Page Blob Copy Incremental operation.\n */\n async startCopyIncremental(copySource, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"PageBlobClient-startCopyIncremental\", options);\n try {\n return await this.pageBlobContext.copyIncremental(copySource, Object.assign({ abortSignal: options.abortSignal, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n}\n\n// Copyright (c) Microsoft Corporation.\nasync function getBodyAsText(batchResponse) {\n let buffer = Buffer.alloc(BATCH_MAX_PAYLOAD_IN_BYTES);\n const responseLength = await streamToBuffer2(batchResponse.readableStreamBody, buffer);\n // Slice the buffer to trim the empty ending.\n buffer = buffer.slice(0, responseLength);\n return buffer.toString();\n}\nfunction utf8ByteLength(str) {\n return Buffer.byteLength(str);\n}\n\n// Copyright (c) Microsoft Corporation.\nconst HTTP_HEADER_DELIMITER = \": \";\nconst SPACE_DELIMITER = \" \";\nconst NOT_FOUND = -1;\n/**\n * Util class for parsing batch response.\n */\nclass BatchResponseParser {\n constructor(batchResponse, subRequests) {\n if (!batchResponse || !batchResponse.contentType) {\n // In special case(reported), server may return invalid content-type which could not be parsed.\n throw new RangeError(\"batchResponse is malformed or doesn't contain valid content-type.\");\n }\n if (!subRequests || subRequests.size === 0) {\n // This should be prevent during coding.\n throw new RangeError(\"Invalid state: subRequests is not provided or size is 0.\");\n }\n this.batchResponse = batchResponse;\n this.subRequests = subRequests;\n this.responseBatchBoundary = this.batchResponse.contentType.split(\"=\")[1];\n this.perResponsePrefix = `--${this.responseBatchBoundary}${HTTP_LINE_ENDING}`;\n this.batchResponseEnding = `--${this.responseBatchBoundary}--`;\n }\n // For example of response, please refer to https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#response\n async parseBatchResponse() {\n // When logic reach here, suppose batch request has already succeeded with 202, so we can further parse\n // sub request's response.\n if (this.batchResponse._response.status !== HTTPURLConnection.HTTP_ACCEPTED) {\n throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`);\n }\n const responseBodyAsText = await getBodyAsText(this.batchResponse);\n const subResponses = responseBodyAsText\n .split(this.batchResponseEnding)[0] // string after ending is useless\n .split(this.perResponsePrefix)\n .slice(1); // string before first response boundary is useless\n const subResponseCount = subResponses.length;\n // Defensive coding in case of potential error parsing.\n // Note: subResponseCount == 1 is special case where sub request is invalid.\n // We try to prevent such cases through early validation, e.g. validate sub request count >= 1.\n // While in unexpected sub request invalid case, we allow sub response to be parsed and return to user.\n if (subResponseCount !== this.subRequests.size && subResponseCount !== 1) {\n throw new Error(\"Invalid state: sub responses' count is not equal to sub requests' count.\");\n }\n const deserializedSubResponses = new Array(subResponseCount);\n let subResponsesSucceededCount = 0;\n let subResponsesFailedCount = 0;\n // Parse sub subResponses.\n for (let index = 0; index < subResponseCount; index++) {\n const subResponse = subResponses[index];\n const deserializedSubResponse = {};\n deserializedSubResponse.headers = new coreHttp.HttpHeaders();\n const responseLines = subResponse.split(`${HTTP_LINE_ENDING}`);\n let subRespHeaderStartFound = false;\n let subRespHeaderEndFound = false;\n let subRespFailed = false;\n let contentId = NOT_FOUND;\n for (const responseLine of responseLines) {\n if (!subRespHeaderStartFound) {\n // Convention line to indicate content ID\n if (responseLine.startsWith(HeaderConstants.CONTENT_ID)) {\n contentId = parseInt(responseLine.split(HTTP_HEADER_DELIMITER)[1]);\n }\n // Http version line with status code indicates the start of sub request's response.\n // Example: HTTP/1.1 202 Accepted\n if (responseLine.startsWith(HTTP_VERSION_1_1)) {\n subRespHeaderStartFound = true;\n const tokens = responseLine.split(SPACE_DELIMITER);\n deserializedSubResponse.status = parseInt(tokens[1]);\n deserializedSubResponse.statusMessage = tokens.slice(2).join(SPACE_DELIMITER);\n }\n continue; // Skip convention headers not specifically for sub request i.e. Content-Type: application/http and Content-ID: *\n }\n if (responseLine.trim() === \"\") {\n // Sub response's header start line already found, and the first empty line indicates header end line found.\n if (!subRespHeaderEndFound) {\n subRespHeaderEndFound = true;\n }\n continue; // Skip empty line\n }\n // Note: when code reach here, it indicates subRespHeaderStartFound == true\n if (!subRespHeaderEndFound) {\n if (responseLine.indexOf(HTTP_HEADER_DELIMITER) === -1) {\n // Defensive coding to prevent from missing valuable lines.\n throw new Error(`Invalid state: find non-empty line '${responseLine}' without HTTP header delimiter '${HTTP_HEADER_DELIMITER}'.`);\n }\n // Parse headers of sub response.\n const tokens = responseLine.split(HTTP_HEADER_DELIMITER);\n deserializedSubResponse.headers.set(tokens[0], tokens[1]);\n if (tokens[0] === HeaderConstants.X_MS_ERROR_CODE) {\n deserializedSubResponse.errorCode = tokens[1];\n subRespFailed = true;\n }\n }\n else {\n // Assemble body of sub response.\n if (!deserializedSubResponse.bodyAsText) {\n deserializedSubResponse.bodyAsText = \"\";\n }\n deserializedSubResponse.bodyAsText += responseLine;\n }\n } // Inner for end\n // The response will contain the Content-ID header for each corresponding subrequest response to use for tracking.\n // The Content-IDs are set to a valid index in the subrequests we sent. In the status code 202 path, we could expect it\n // to be 1-1 mapping from the [0, subRequests.size) to the Content-IDs returned. If not, we simply don't return that\n // unexpected subResponse in the parsed reponse and we can always look it up in the raw response for debugging purpose.\n if (contentId !== NOT_FOUND &&\n Number.isInteger(contentId) &&\n contentId >= 0 &&\n contentId < this.subRequests.size &&\n deserializedSubResponses[contentId] === undefined) {\n deserializedSubResponse._request = this.subRequests.get(contentId);\n deserializedSubResponses[contentId] = deserializedSubResponse;\n }\n else {\n logger.error(`subResponses[${index}] is dropped as the Content-ID is not found or invalid, Content-ID: ${contentId}`);\n }\n if (subRespFailed) {\n subResponsesFailedCount++;\n }\n else {\n subResponsesSucceededCount++;\n }\n }\n return {\n subResponses: deserializedSubResponses,\n subResponsesSucceededCount: subResponsesSucceededCount,\n subResponsesFailedCount: subResponsesFailedCount,\n };\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nvar MutexLockStatus;\n(function (MutexLockStatus) {\n MutexLockStatus[MutexLockStatus[\"LOCKED\"] = 0] = \"LOCKED\";\n MutexLockStatus[MutexLockStatus[\"UNLOCKED\"] = 1] = \"UNLOCKED\";\n})(MutexLockStatus || (MutexLockStatus = {}));\n/**\n * An async mutex lock.\n */\nclass Mutex {\n /**\n * Lock for a specific key. If the lock has been acquired by another customer, then\n * will wait until getting the lock.\n *\n * @param key - lock key\n */\n static async lock(key) {\n return new Promise((resolve) => {\n if (this.keys[key] === undefined || this.keys[key] === MutexLockStatus.UNLOCKED) {\n this.keys[key] = MutexLockStatus.LOCKED;\n resolve();\n }\n else {\n this.onUnlockEvent(key, () => {\n this.keys[key] = MutexLockStatus.LOCKED;\n resolve();\n });\n }\n });\n }\n /**\n * Unlock a key.\n *\n * @param key -\n */\n static async unlock(key) {\n return new Promise((resolve) => {\n if (this.keys[key] === MutexLockStatus.LOCKED) {\n this.emitUnlockEvent(key);\n }\n delete this.keys[key];\n resolve();\n });\n }\n static onUnlockEvent(key, handler) {\n if (this.listeners[key] === undefined) {\n this.listeners[key] = [handler];\n }\n else {\n this.listeners[key].push(handler);\n }\n }\n static emitUnlockEvent(key) {\n if (this.listeners[key] !== undefined && this.listeners[key].length > 0) {\n const handler = this.listeners[key].shift();\n setImmediate(() => {\n handler.call(this);\n });\n }\n }\n}\nMutex.keys = {};\nMutex.listeners = {};\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A BlobBatch represents an aggregated set of operations on blobs.\n * Currently, only `delete` and `setAccessTier` are supported.\n */\nclass BlobBatch {\n constructor() {\n this.batch = \"batch\";\n this.batchRequest = new InnerBatchRequest();\n }\n /**\n * Get the value of Content-Type for a batch request.\n * The value must be multipart/mixed with a batch boundary.\n * Example: multipart/mixed; boundary=batch_a81786c8-e301-4e42-a729-a32ca24ae252\n */\n getMultiPartContentType() {\n return this.batchRequest.getMultipartContentType();\n }\n /**\n * Get assembled HTTP request body for sub requests.\n */\n getHttpRequestBody() {\n return this.batchRequest.getHttpRequestBody();\n }\n /**\n * Get sub requests that are added into the batch request.\n */\n getSubRequests() {\n return this.batchRequest.getSubRequests();\n }\n async addSubRequestInternal(subRequest, assembleSubRequestFunc) {\n await Mutex.lock(this.batch);\n try {\n this.batchRequest.preAddSubRequest(subRequest);\n await assembleSubRequestFunc();\n this.batchRequest.postAddSubRequest(subRequest);\n }\n finally {\n await Mutex.unlock(this.batch);\n }\n }\n setBatchType(batchType) {\n if (!this.batchType) {\n this.batchType = batchType;\n }\n if (this.batchType !== batchType) {\n throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`);\n }\n }\n async deleteBlob(urlOrBlobClient, credentialOrOptions, options) {\n let url;\n let credential;\n if (typeof urlOrBlobClient === \"string\" &&\n ((coreHttp.isNode && credentialOrOptions instanceof StorageSharedKeyCredential) ||\n credentialOrOptions instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrOptions))) {\n // First overload\n url = urlOrBlobClient;\n credential = credentialOrOptions;\n }\n else if (urlOrBlobClient instanceof BlobClient) {\n // Second overload\n url = urlOrBlobClient.url;\n credential = urlOrBlobClient.credential;\n options = credentialOrOptions;\n }\n else {\n throw new RangeError(\"Invalid arguments. Either url and credential, or BlobClient need be provided.\");\n }\n if (!options) {\n options = {};\n }\n const { span, updatedOptions } = createSpan(\"BatchDeleteRequest-addSubRequest\", options);\n try {\n this.setBatchType(\"delete\");\n await this.addSubRequestInternal({\n url: url,\n credential: credential,\n }, async () => {\n await new BlobClient(url, this.batchRequest.createPipeline(credential)).delete(updatedOptions);\n });\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n async setBlobAccessTier(urlOrBlobClient, credentialOrTier, tierOrOptions, options) {\n let url;\n let credential;\n let tier;\n if (typeof urlOrBlobClient === \"string\" &&\n ((coreHttp.isNode && credentialOrTier instanceof StorageSharedKeyCredential) ||\n credentialOrTier instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrTier))) {\n // First overload\n url = urlOrBlobClient;\n credential = credentialOrTier;\n tier = tierOrOptions;\n }\n else if (urlOrBlobClient instanceof BlobClient) {\n // Second overload\n url = urlOrBlobClient.url;\n credential = urlOrBlobClient.credential;\n tier = credentialOrTier;\n options = tierOrOptions;\n }\n else {\n throw new RangeError(\"Invalid arguments. Either url and credential, or BlobClient need be provided.\");\n }\n if (!options) {\n options = {};\n }\n const { span, updatedOptions } = createSpan(\"BatchSetTierRequest-addSubRequest\", options);\n try {\n this.setBatchType(\"setAccessTier\");\n await this.addSubRequestInternal({\n url: url,\n credential: credential,\n }, async () => {\n await new BlobClient(url, this.batchRequest.createPipeline(credential)).setAccessTier(tier, updatedOptions);\n });\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n}\n/**\n * Inner batch request class which is responsible for assembling and serializing sub requests.\n * See https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch#request-body for how requests are assembled.\n */\nclass InnerBatchRequest {\n constructor() {\n this.operationCount = 0;\n this.body = \"\";\n const tempGuid = coreHttp.generateUuid();\n // batch_{batchid}\n this.boundary = `batch_${tempGuid}`;\n // --batch_{batchid}\n // Content-Type: application/http\n // Content-Transfer-Encoding: binary\n this.subRequestPrefix = `--${this.boundary}${HTTP_LINE_ENDING}${HeaderConstants.CONTENT_TYPE}: application/http${HTTP_LINE_ENDING}${HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;\n // multipart/mixed; boundary=batch_{batchid}\n this.multipartContentType = `multipart/mixed; boundary=${this.boundary}`;\n // --batch_{batchid}--\n this.batchRequestEnding = `--${this.boundary}--`;\n this.subRequests = new Map();\n }\n /**\n * Create pipeline to assemble sub requests. The idea here is to use existing\n * credential and serialization/deserialization components, with additional policies to\n * filter unnecessary headers, assemble sub requests into request's body\n * and intercept request from going to wire.\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n */\n createPipeline(credential) {\n const isAnonymousCreds = credential instanceof AnonymousCredential;\n const policyFactoryLength = 3 + (isAnonymousCreds ? 0 : 1); // [deserializationPolicy, BatchHeaderFilterPolicyFactory, (Optional)Credential, BatchRequestAssemblePolicyFactory]\n const factories = new Array(policyFactoryLength);\n factories[0] = coreHttp.deserializationPolicy(); // Default deserializationPolicy is provided by protocol layer\n factories[1] = new BatchHeaderFilterPolicyFactory(); // Use batch header filter policy to exclude unnecessary headers\n if (!isAnonymousCreds) {\n factories[2] = coreHttp.isTokenCredential(credential)\n ? attachCredential(coreHttp.bearerTokenAuthenticationPolicy(credential, StorageOAuthScopes), credential)\n : credential;\n }\n factories[policyFactoryLength - 1] = new BatchRequestAssemblePolicyFactory(this); // Use batch assemble policy to assemble request and intercept request from going to wire\n return new Pipeline(factories, {});\n }\n appendSubRequestToBody(request) {\n // Start to assemble sub request\n this.body += [\n this.subRequestPrefix,\n `${HeaderConstants.CONTENT_ID}: ${this.operationCount}`,\n \"\",\n `${request.method.toString()} ${getURLPathAndQuery(request.url)} ${HTTP_VERSION_1_1}${HTTP_LINE_ENDING}`, // sub request start line with method\n ].join(HTTP_LINE_ENDING);\n for (const header of request.headers.headersArray()) {\n this.body += `${header.name}: ${header.value}${HTTP_LINE_ENDING}`;\n }\n this.body += HTTP_LINE_ENDING; // sub request's headers need be ending with an empty line\n // No body to assemble for current batch request support\n // End to assemble sub request\n }\n preAddSubRequest(subRequest) {\n if (this.operationCount >= BATCH_MAX_REQUEST) {\n throw new RangeError(`Cannot exceed ${BATCH_MAX_REQUEST} sub requests in a single batch`);\n }\n // Fast fail if url for sub request is invalid\n const path = getURLPath(subRequest.url);\n if (!path || path === \"\") {\n throw new RangeError(`Invalid url for sub request: '${subRequest.url}'`);\n }\n }\n postAddSubRequest(subRequest) {\n this.subRequests.set(this.operationCount, subRequest);\n this.operationCount++;\n }\n // Return the http request body with assembling the ending line to the sub request body.\n getHttpRequestBody() {\n return `${this.body}${this.batchRequestEnding}${HTTP_LINE_ENDING}`;\n }\n getMultipartContentType() {\n return this.multipartContentType;\n }\n getSubRequests() {\n return this.subRequests;\n }\n}\nclass BatchRequestAssemblePolicy extends coreHttp.BaseRequestPolicy {\n constructor(batchRequest, nextPolicy, options) {\n super(nextPolicy, options);\n this.dummyResponse = {\n request: new coreHttp.WebResource(),\n status: 200,\n headers: new coreHttp.HttpHeaders(),\n };\n this.batchRequest = batchRequest;\n }\n async sendRequest(request) {\n await this.batchRequest.appendSubRequestToBody(request);\n return this.dummyResponse; // Intercept request from going to wire\n }\n}\nclass BatchRequestAssemblePolicyFactory {\n constructor(batchRequest) {\n this.batchRequest = batchRequest;\n }\n create(nextPolicy, options) {\n return new BatchRequestAssemblePolicy(this.batchRequest, nextPolicy, options);\n }\n}\nclass BatchHeaderFilterPolicy extends coreHttp.BaseRequestPolicy {\n // The base class has a protected constructor. Adding a public one to enable constructing of this class.\n /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/\n constructor(nextPolicy, options) {\n super(nextPolicy, options);\n }\n async sendRequest(request) {\n let xMsHeaderName = \"\";\n for (const header of request.headers.headersArray()) {\n if (iEqual(header.name, HeaderConstants.X_MS_VERSION)) {\n xMsHeaderName = header.name;\n }\n }\n if (xMsHeaderName !== \"\") {\n request.headers.remove(xMsHeaderName); // The subrequests should not have the x-ms-version header.\n }\n return this._nextPolicy.sendRequest(request);\n }\n}\nclass BatchHeaderFilterPolicyFactory {\n create(nextPolicy, options) {\n return new BatchHeaderFilterPolicy(nextPolicy, options);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * A BlobBatchClient allows you to make batched requests to the Azure Storage Blob service.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch\n */\nclass BlobBatchClient {\n constructor(url, credentialOrPipeline, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n let pipeline;\n if (isPipelineLike(credentialOrPipeline)) {\n pipeline = credentialOrPipeline;\n }\n else if (!credentialOrPipeline) {\n // no credential provided\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else {\n pipeline = newPipeline(credentialOrPipeline, options);\n }\n const storageClientContext = new StorageClientContext(url, pipeline.toServiceClientOptions());\n const path = getURLPath(url);\n if (path && path !== \"/\") {\n // Container scoped.\n this.serviceOrContainerContext = new Container(storageClientContext);\n }\n else {\n this.serviceOrContainerContext = new Service(storageClientContext);\n }\n }\n /**\n * Creates a {@link BlobBatch}.\n * A BlobBatch represents an aggregated set of operations on blobs.\n */\n createBatch() {\n return new BlobBatch();\n }\n async deleteBlobs(urlsOrBlobClients, credentialOrOptions, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n const batch = new BlobBatch();\n for (const urlOrBlobClient of urlsOrBlobClients) {\n if (typeof urlOrBlobClient === \"string\") {\n await batch.deleteBlob(urlOrBlobClient, credentialOrOptions, options);\n }\n else {\n await batch.deleteBlob(urlOrBlobClient, credentialOrOptions);\n }\n }\n return this.submitBatch(batch);\n }\n async setBlobsAccessTier(urlsOrBlobClients, credentialOrTier, tierOrOptions, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n const batch = new BlobBatch();\n for (const urlOrBlobClient of urlsOrBlobClients) {\n if (typeof urlOrBlobClient === \"string\") {\n await batch.setBlobAccessTier(urlOrBlobClient, credentialOrTier, tierOrOptions, options);\n }\n else {\n await batch.setBlobAccessTier(urlOrBlobClient, credentialOrTier, tierOrOptions);\n }\n }\n return this.submitBatch(batch);\n }\n /**\n * Submit batch request which consists of multiple subrequests.\n *\n * Get `blobBatchClient` and other details before running the snippets.\n * `blobServiceClient.getBlobBatchClient()` gives the `blobBatchClient`\n *\n * Example usage:\n *\n * ```js\n * let batchRequest = new BlobBatch();\n * await batchRequest.deleteBlob(urlInString0, credential0);\n * await batchRequest.deleteBlob(urlInString1, credential1, {\n * deleteSnapshots: \"include\"\n * });\n * const batchResp = await blobBatchClient.submitBatch(batchRequest);\n * console.log(batchResp.subResponsesSucceededCount);\n * ```\n *\n * Example using a lease:\n *\n * ```js\n * let batchRequest = new BlobBatch();\n * await batchRequest.setBlobAccessTier(blockBlobClient0, \"Cool\");\n * await batchRequest.setBlobAccessTier(blockBlobClient1, \"Cool\", {\n * conditions: { leaseId: leaseId }\n * });\n * const batchResp = await blobBatchClient.submitBatch(batchRequest);\n * console.log(batchResp.subResponsesSucceededCount);\n * ```\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch\n *\n * @param batchRequest - A set of Delete or SetTier operations.\n * @param options -\n */\n async submitBatch(batchRequest, options = {}) {\n if (!batchRequest || batchRequest.getSubRequests().size === 0) {\n throw new RangeError(\"Batch request should contain one or more sub requests.\");\n }\n const { span, updatedOptions } = createSpan(\"BlobBatchClient-submitBatch\", options);\n try {\n const batchRequestBody = batchRequest.getHttpRequestBody();\n // ServiceSubmitBatchResponseModel and ContainerSubmitBatchResponse are compatible for now.\n const rawBatchResponse = await this.serviceOrContainerContext.submitBatch(utf8ByteLength(batchRequestBody), batchRequest.getMultiPartContentType(), batchRequestBody, Object.assign(Object.assign({}, options), convertTracingToRequestOptionsBase(updatedOptions)));\n // Parse the sub responses result, if logic reaches here(i.e. the batch request succeeded with status code 202).\n const batchResponseParser = new BatchResponseParser(rawBatchResponse, batchRequest.getSubRequests());\n const responseSummary = await batchResponseParser.parseBatchResponse();\n const res = {\n _response: rawBatchResponse._response,\n contentType: rawBatchResponse.contentType,\n errorCode: rawBatchResponse.errorCode,\n requestId: rawBatchResponse.requestId,\n clientRequestId: rawBatchResponse.clientRequestId,\n version: rawBatchResponse.version,\n subResponses: responseSummary.subResponses,\n subResponsesSucceededCount: responseSummary.subResponsesSucceededCount,\n subResponsesFailedCount: responseSummary.subResponsesFailedCount,\n };\n return res;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n}\n\n/**\n * A ContainerClient represents a URL to the Azure Storage container allowing you to manipulate its blobs.\n */\nclass ContainerClient extends StorageClient {\n constructor(urlOrConnectionString, credentialOrPipelineOrContainerName, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n let pipeline;\n let url;\n options = options || {};\n if (isPipelineLike(credentialOrPipelineOrContainerName)) {\n // (url: string, pipeline: Pipeline)\n url = urlOrConnectionString;\n pipeline = credentialOrPipelineOrContainerName;\n }\n else if ((coreHttp.isNode && credentialOrPipelineOrContainerName instanceof StorageSharedKeyCredential) ||\n credentialOrPipelineOrContainerName instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrPipelineOrContainerName)) {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n url = urlOrConnectionString;\n pipeline = newPipeline(credentialOrPipelineOrContainerName, options);\n }\n else if (!credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName !== \"string\") {\n // (url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)\n // The second parameter is undefined. Use anonymous credential.\n url = urlOrConnectionString;\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else if (credentialOrPipelineOrContainerName &&\n typeof credentialOrPipelineOrContainerName === \"string\") {\n // (connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions)\n const containerName = credentialOrPipelineOrContainerName;\n const extractedCreds = extractConnectionStringParts(urlOrConnectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (coreHttp.isNode) {\n const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);\n url = appendToURLPath(extractedCreds.url, encodeURIComponent(containerName));\n if (!options.proxyOptions) {\n options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);\n }\n pipeline = newPipeline(sharedKeyCredential, options);\n }\n else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n }\n else if (extractedCreds.kind === \"SASConnString\") {\n url =\n appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)) +\n \"?\" +\n extractedCreds.accountSas;\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n else {\n throw new Error(\"Connection string must be either an Account connection string or a SAS connection string\");\n }\n }\n else {\n throw new Error(\"Expecting non-empty strings for containerName parameter\");\n }\n super(url, pipeline);\n this._containerName = this.getContainerNameFromUrl();\n this.containerContext = new Container(this.storageClientContext);\n }\n /**\n * The name of the container.\n */\n get containerName() {\n return this._containerName;\n }\n /**\n * Creates a new container under the specified account. If the container with\n * the same name already exists, the operation fails.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container\n * Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata\n *\n * @param options - Options to Container Create operation.\n *\n *\n * Example usage:\n *\n * ```js\n * const containerClient = blobServiceClient.getContainerClient(\"\");\n * const createContainerResponse = await containerClient.create();\n * console.log(\"Container was created successfully\", createContainerResponse.requestId);\n * ```\n */\n async create(options = {}) {\n const { span, updatedOptions } = createSpan(\"ContainerClient-create\", options);\n try {\n // Spread operator in destructuring assignments,\n // this will filter out unwanted properties from the response object into result object\n return await this.containerContext.create(Object.assign(Object.assign({}, options), convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Creates a new container under the specified account. If the container with\n * the same name already exists, it is not changed.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container\n * Naming rules: @see https://learn.microsoft.com/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata\n *\n * @param options -\n */\n async createIfNotExists(options = {}) {\n var _a, _b;\n const { span, updatedOptions } = createSpan(\"ContainerClient-createIfNotExists\", options);\n try {\n const res = await this.create(updatedOptions);\n return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });\n }\n catch (e) {\n if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === \"ContainerAlreadyExists\") {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: \"Expected exception when creating a container only if it does not already exist.\",\n });\n return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns true if the Azure container resource represented by this client exists; false otherwise.\n *\n * NOTE: use this function with care since an existing container might be deleted by other clients or\n * applications. Vice versa new containers with the same name might be added by other clients or\n * applications after this function completes.\n *\n * @param options -\n */\n async exists(options = {}) {\n const { span, updatedOptions } = createSpan(\"ContainerClient-exists\", options);\n try {\n await this.getProperties({\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n return true;\n }\n catch (e) {\n if (e.statusCode === 404) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: \"Expected exception when checking container existence\",\n });\n return false;\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Creates a {@link BlobClient}\n *\n * @param blobName - A blob name\n * @returns A new BlobClient object for the given blob name.\n */\n getBlobClient(blobName) {\n return new BlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);\n }\n /**\n * Creates an {@link AppendBlobClient}\n *\n * @param blobName - An append blob name\n */\n getAppendBlobClient(blobName) {\n return new AppendBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);\n }\n /**\n * Creates a {@link BlockBlobClient}\n *\n * @param blobName - A block blob name\n *\n *\n * Example usage:\n *\n * ```js\n * const content = \"Hello world!\";\n *\n * const blockBlobClient = containerClient.getBlockBlobClient(\"\");\n * const uploadBlobResponse = await blockBlobClient.upload(content, content.length);\n * ```\n */\n getBlockBlobClient(blobName) {\n return new BlockBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);\n }\n /**\n * Creates a {@link PageBlobClient}\n *\n * @param blobName - A page blob name\n */\n getPageBlobClient(blobName) {\n return new PageBlobClient(appendToURLPath(this.url, EscapePath(blobName)), this.pipeline);\n }\n /**\n * Returns all user-defined metadata and system properties for the specified\n * container. The data returned does not include the container's list of blobs.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-container-properties\n *\n * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if\n * they originally contained uppercase characters. This differs from the metadata keys returned by\n * the `listContainers` method of {@link BlobServiceClient} using the `includeMetadata` option, which\n * will retain their original casing.\n *\n * @param options - Options to Container Get Properties operation.\n */\n async getProperties(options = {}) {\n if (!options.conditions) {\n options.conditions = {};\n }\n const { span, updatedOptions } = createSpan(\"ContainerClient-getProperties\", options);\n try {\n return await this.containerContext.getProperties(Object.assign(Object.assign({ abortSignal: options.abortSignal }, options.conditions), convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Marks the specified container for deletion. The container and any blobs\n * contained within it are later deleted during garbage collection.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-container\n *\n * @param options - Options to Container Delete operation.\n */\n async delete(options = {}) {\n if (!options.conditions) {\n options.conditions = {};\n }\n const { span, updatedOptions } = createSpan(\"ContainerClient-delete\", options);\n try {\n return await this.containerContext.delete(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Marks the specified container for deletion if it exists. The container and any blobs\n * contained within it are later deleted during garbage collection.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-container\n *\n * @param options - Options to Container Delete operation.\n */\n async deleteIfExists(options = {}) {\n var _a, _b;\n const { span, updatedOptions } = createSpan(\"ContainerClient-deleteIfExists\", options);\n try {\n const res = await this.delete(updatedOptions);\n return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });\n }\n catch (e) {\n if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === \"ContainerNotFound\") {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: \"Expected exception when deleting a container only if it exists.\",\n });\n return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });\n }\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets one or more user-defined name-value pairs for the specified container.\n *\n * If no option provided, or no metadata defined in the parameter, the container\n * metadata will be removed.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-container-metadata\n *\n * @param metadata - Replace existing metadata with this value.\n * If no value provided the existing metadata will be removed.\n * @param options - Options to Container Set Metadata operation.\n */\n async setMetadata(metadata, options = {}) {\n if (!options.conditions) {\n options.conditions = {};\n }\n if (options.conditions.ifUnmodifiedSince) {\n throw new RangeError(\"the IfUnmodifiedSince must have their default values because they are ignored by the blob service\");\n }\n const { span, updatedOptions } = createSpan(\"ContainerClient-setMetadata\", options);\n try {\n return await this.containerContext.setMetadata(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, metadata, modifiedAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Gets the permissions for the specified container. The permissions indicate\n * whether container data may be accessed publicly.\n *\n * WARNING: JavaScript Date will potentially lose precision when parsing startsOn and expiresOn strings.\n * For example, new Date(\"2018-12-31T03:44:23.8827891Z\").toISOString() will get \"2018-12-31T03:44:23.882Z\".\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-container-acl\n *\n * @param options - Options to Container Get Access Policy operation.\n */\n async getAccessPolicy(options = {}) {\n if (!options.conditions) {\n options.conditions = {};\n }\n const { span, updatedOptions } = createSpan(\"ContainerClient-getAccessPolicy\", options);\n try {\n const response = await this.containerContext.getAccessPolicy(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)));\n const res = {\n _response: response._response,\n blobPublicAccess: response.blobPublicAccess,\n date: response.date,\n etag: response.etag,\n errorCode: response.errorCode,\n lastModified: response.lastModified,\n requestId: response.requestId,\n clientRequestId: response.clientRequestId,\n signedIdentifiers: [],\n version: response.version,\n };\n for (const identifier of response) {\n let accessPolicy = undefined;\n if (identifier.accessPolicy) {\n accessPolicy = {\n permissions: identifier.accessPolicy.permissions,\n };\n if (identifier.accessPolicy.expiresOn) {\n accessPolicy.expiresOn = new Date(identifier.accessPolicy.expiresOn);\n }\n if (identifier.accessPolicy.startsOn) {\n accessPolicy.startsOn = new Date(identifier.accessPolicy.startsOn);\n }\n }\n res.signedIdentifiers.push({\n accessPolicy,\n id: identifier.id,\n });\n }\n return res;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets the permissions for the specified container. The permissions indicate\n * whether blobs in a container may be accessed publicly.\n *\n * When you set permissions for a container, the existing permissions are replaced.\n * If no access or containerAcl provided, the existing container ACL will be\n * removed.\n *\n * When you establish a stored access policy on a container, it may take up to 30 seconds to take effect.\n * During this interval, a shared access signature that is associated with the stored access policy will\n * fail with status code 403 (Forbidden), until the access policy becomes active.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-container-acl\n *\n * @param access - The level of public access to data in the container.\n * @param containerAcl - Array of elements each having a unique Id and details of the access policy.\n * @param options - Options to Container Set Access Policy operation.\n */\n async setAccessPolicy(access, containerAcl, options = {}) {\n options.conditions = options.conditions || {};\n const { span, updatedOptions } = createSpan(\"ContainerClient-setAccessPolicy\", options);\n try {\n const acl = [];\n for (const identifier of containerAcl || []) {\n acl.push({\n accessPolicy: {\n expiresOn: identifier.accessPolicy.expiresOn\n ? truncatedISO8061Date(identifier.accessPolicy.expiresOn)\n : \"\",\n permissions: identifier.accessPolicy.permissions,\n startsOn: identifier.accessPolicy.startsOn\n ? truncatedISO8061Date(identifier.accessPolicy.startsOn)\n : \"\",\n },\n id: identifier.id,\n });\n }\n return await this.containerContext.setAccessPolicy(Object.assign({ abortSignal: options.abortSignal, access, containerAcl: acl, leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Get a {@link BlobLeaseClient} that manages leases on the container.\n *\n * @param proposeLeaseId - Initial proposed lease Id.\n * @returns A new BlobLeaseClient object for managing leases on the container.\n */\n getBlobLeaseClient(proposeLeaseId) {\n return new BlobLeaseClient(this, proposeLeaseId);\n }\n /**\n * Creates a new block blob, or updates the content of an existing block blob.\n *\n * Updating an existing block blob overwrites any existing metadata on the blob.\n * Partial updates are not supported; the content of the existing blob is\n * overwritten with the new content. To perform a partial update of a block blob's,\n * use {@link BlockBlobClient.stageBlock} and {@link BlockBlobClient.commitBlockList}.\n *\n * This is a non-parallel uploading method, please use {@link BlockBlobClient.uploadFile},\n * {@link BlockBlobClient.uploadStream} or {@link BlockBlobClient.uploadBrowserData} for better\n * performance with concurrency uploading.\n *\n * @see https://docs.microsoft.com/rest/api/storageservices/put-blob\n *\n * @param blobName - Name of the block blob to create or update.\n * @param body - Blob, string, ArrayBuffer, ArrayBufferView or a function\n * which returns a new Readable stream whose offset is from data source beginning.\n * @param contentLength - Length of body in bytes. Use Buffer.byteLength() to calculate body length for a\n * string including non non-Base64/Hex-encoded characters.\n * @param options - Options to configure the Block Blob Upload operation.\n * @returns Block Blob upload response data and the corresponding BlockBlobClient instance.\n */\n async uploadBlockBlob(blobName, body, contentLength, options = {}) {\n const { span, updatedOptions } = createSpan(\"ContainerClient-uploadBlockBlob\", options);\n try {\n const blockBlobClient = this.getBlockBlobClient(blobName);\n const response = await blockBlobClient.upload(body, contentLength, updatedOptions);\n return {\n blockBlobClient,\n response,\n };\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Marks the specified blob or snapshot for deletion. The blob is later deleted\n * during garbage collection. Note that in order to delete a blob, you must delete\n * all of its snapshots. You can delete both at the same time with the Delete\n * Blob operation.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob\n *\n * @param blobName -\n * @param options - Options to Blob Delete operation.\n * @returns Block blob deletion response data.\n */\n async deleteBlob(blobName, options = {}) {\n const { span, updatedOptions } = createSpan(\"ContainerClient-deleteBlob\", options);\n try {\n let blobClient = this.getBlobClient(blobName);\n if (options.versionId) {\n blobClient = blobClient.withVersion(options.versionId);\n }\n return await blobClient.delete(updatedOptions);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * listBlobFlatSegment returns a single segment of blobs starting from the\n * specified Marker. Use an empty Marker to start enumeration from the beginning.\n * After getting a segment, process it, and then call listBlobsFlatSegment again\n * (passing the the previously-returned Marker) to get the next segment.\n * @see https://docs.microsoft.com/rest/api/storageservices/list-blobs\n *\n * @param marker - A string value that identifies the portion of the list to be returned with the next list operation.\n * @param options - Options to Container List Blob Flat Segment operation.\n */\n async listBlobFlatSegment(marker, options = {}) {\n const { span, updatedOptions } = createSpan(\"ContainerClient-listBlobFlatSegment\", options);\n try {\n const response = await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));\n const wrappedResponse = Object.assign(Object.assign({}, response), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListBlobFlat(response._response.parsedBody) }), segment: Object.assign(Object.assign({}, response.segment), { blobItems: response.segment.blobItems.map((blobItemInteral) => {\n const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name), tags: toTags(blobItemInteral.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInteral.objectReplicationMetadata) });\n return blobItem;\n }) }) });\n return wrappedResponse;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * listBlobHierarchySegment returns a single segment of blobs starting from\n * the specified Marker. Use an empty Marker to start enumeration from the\n * beginning. After getting a segment, process it, and then call listBlobsHierarchicalSegment\n * again (passing the the previously-returned Marker) to get the next segment.\n * @see https://docs.microsoft.com/rest/api/storageservices/list-blobs\n *\n * @param delimiter - The character or string used to define the virtual hierarchy\n * @param marker - A string value that identifies the portion of the list to be returned with the next list operation.\n * @param options - Options to Container List Blob Hierarchy Segment operation.\n */\n async listBlobHierarchySegment(delimiter, marker, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"ContainerClient-listBlobHierarchySegment\", options);\n try {\n const response = await this.containerContext.listBlobHierarchySegment(delimiter, Object.assign(Object.assign({ marker }, options), convertTracingToRequestOptionsBase(updatedOptions)));\n const wrappedResponse = Object.assign(Object.assign({}, response), { _response: Object.assign(Object.assign({}, response._response), { parsedBody: ConvertInternalResponseOfListBlobHierarchy(response._response.parsedBody) }), segment: Object.assign(Object.assign({}, response.segment), { blobItems: response.segment.blobItems.map((blobItemInteral) => {\n const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name), tags: toTags(blobItemInteral.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord(blobItemInteral.objectReplicationMetadata) });\n return blobItem;\n }), blobPrefixes: (_a = response.segment.blobPrefixes) === null || _a === void 0 ? void 0 : _a.map((blobPrefixInternal) => {\n const blobPrefix = Object.assign(Object.assign({}, blobPrefixInternal), { name: BlobNameToString(blobPrefixInternal.name) });\n return blobPrefix;\n }) }) });\n return wrappedResponse;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns an AsyncIterableIterator for ContainerListBlobFlatSegmentResponse\n *\n * @param marker - A string value that identifies the portion of\n * the list of blobs to be returned with the next listing operation. The\n * operation returns the ContinuationToken value within the response body if the\n * listing operation did not return all blobs remaining to be listed\n * with the current page. The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to list blobs operation.\n */\n listSegments(marker, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listSegments_1() {\n let listBlobsFlatSegmentResponse;\n if (!!marker || marker === undefined) {\n do {\n listBlobsFlatSegmentResponse = yield tslib.__await(this.listBlobFlatSegment(marker, options));\n marker = listBlobsFlatSegmentResponse.continuationToken;\n yield yield tslib.__await(yield tslib.__await(listBlobsFlatSegmentResponse));\n } while (marker);\n }\n });\n }\n /**\n * Returns an AsyncIterableIterator of {@link BlobItem} objects\n *\n * @param options - Options to list blobs operation.\n */\n listItems(options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listItems_1() {\n var e_1, _a;\n let marker;\n try {\n for (var _b = tslib.__asyncValues(this.listSegments(marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {\n const listBlobsFlatSegmentResponse = _c.value;\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(listBlobsFlatSegmentResponse.segment.blobItems)));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));\n }\n finally { if (e_1) throw e_1.error; }\n }\n });\n }\n /**\n * Returns an async iterable iterator to list all the blobs\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the blobs in pages.\n *\n * Example using `for await` syntax:\n *\n * ```js\n * // Get the containerClient before you run these snippets,\n * // Can be obtained from `blobServiceClient.getContainerClient(\"\");`\n * let i = 1;\n * for await (const blob of containerClient.listBlobsFlat()) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```js\n * let i = 1;\n * let iter = containerClient.listBlobsFlat();\n * let blobItem = await iter.next();\n * while (!blobItem.done) {\n * console.log(`Blob ${i++}: ${blobItem.value.name}`);\n * blobItem = await iter.next();\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```js\n * // passing optional maxPageSize in the page settings\n * let i = 1;\n * for await (const response of containerClient.listBlobsFlat().byPage({ maxPageSize: 20 })) {\n * for (const blob of response.segment.blobItems) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```js\n * let i = 1;\n * let iterator = containerClient.listBlobsFlat().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * // Prints 2 blob names\n * for (const blob of response.segment.blobItems) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n *\n * // Passing next marker as continuationToken\n *\n * iterator = containerClient.listBlobsFlat().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * // Prints 10 blob names\n * for (const blob of response.segment.blobItems) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * ```\n *\n * @param options - Options to list blobs.\n * @returns An asyncIterableIterator that supports paging.\n */\n listBlobsFlat(options = {}) {\n const include = [];\n if (options.includeCopy) {\n include.push(\"copy\");\n }\n if (options.includeDeleted) {\n include.push(\"deleted\");\n }\n if (options.includeMetadata) {\n include.push(\"metadata\");\n }\n if (options.includeSnapshots) {\n include.push(\"snapshots\");\n }\n if (options.includeVersions) {\n include.push(\"versions\");\n }\n if (options.includeUncommitedBlobs) {\n include.push(\"uncommittedblobs\");\n }\n if (options.includeTags) {\n include.push(\"tags\");\n }\n if (options.includeDeletedWithVersions) {\n include.push(\"deletedwithversions\");\n }\n if (options.includeImmutabilityPolicy) {\n include.push(\"immutabilitypolicy\");\n }\n if (options.includeLegalHold) {\n include.push(\"legalhold\");\n }\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n const updatedOptions = Object.assign(Object.assign({}, options), (include.length > 0 ? { include: include } : {}));\n // AsyncIterableIterator to iterate over blobs\n const iter = this.listItems(updatedOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings = {}) => {\n return this.listSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, updatedOptions));\n },\n };\n }\n /**\n * Returns an AsyncIterableIterator for ContainerListBlobHierarchySegmentResponse\n *\n * @param delimiter - The character or string used to define the virtual hierarchy\n * @param marker - A string value that identifies the portion of\n * the list of blobs to be returned with the next listing operation. The\n * operation returns the ContinuationToken value within the response body if the\n * listing operation did not return all blobs remaining to be listed\n * with the current page. The ContinuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to list blobs operation.\n */\n listHierarchySegments(delimiter, marker, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listHierarchySegments_1() {\n let listBlobsHierarchySegmentResponse;\n if (!!marker || marker === undefined) {\n do {\n listBlobsHierarchySegmentResponse = yield tslib.__await(this.listBlobHierarchySegment(delimiter, marker, options));\n marker = listBlobsHierarchySegmentResponse.continuationToken;\n yield yield tslib.__await(yield tslib.__await(listBlobsHierarchySegmentResponse));\n } while (marker);\n }\n });\n }\n /**\n * Returns an AsyncIterableIterator for {@link BlobPrefix} and {@link BlobItem} objects.\n *\n * @param delimiter - The character or string used to define the virtual hierarchy\n * @param options - Options to list blobs operation.\n */\n listItemsByHierarchy(delimiter, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listItemsByHierarchy_1() {\n var e_2, _a;\n let marker;\n try {\n for (var _b = tslib.__asyncValues(this.listHierarchySegments(delimiter, marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {\n const listBlobsHierarchySegmentResponse = _c.value;\n const segment = listBlobsHierarchySegmentResponse.segment;\n if (segment.blobPrefixes) {\n for (const prefix of segment.blobPrefixes) {\n yield yield tslib.__await(Object.assign({ kind: \"prefix\" }, prefix));\n }\n }\n for (const blob of segment.blobItems) {\n yield yield tslib.__await(Object.assign({ kind: \"blob\" }, blob));\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));\n }\n finally { if (e_2) throw e_2.error; }\n }\n });\n }\n /**\n * Returns an async iterable iterator to list all the blobs by hierarchy.\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the blobs by hierarchy in pages.\n *\n * Example using `for await` syntax:\n *\n * ```js\n * for await (const item of containerClient.listBlobsByHierarchy(\"/\")) {\n * if (item.kind === \"prefix\") {\n * console.log(`\\tBlobPrefix: ${item.name}`);\n * } else {\n * console.log(`\\tBlobItem: name - ${item.name}`);\n * }\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```js\n * let iter = containerClient.listBlobsByHierarchy(\"/\", { prefix: \"prefix1/\" });\n * let entity = await iter.next();\n * while (!entity.done) {\n * let item = entity.value;\n * if (item.kind === \"prefix\") {\n * console.log(`\\tBlobPrefix: ${item.name}`);\n * } else {\n * console.log(`\\tBlobItem: name - ${item.name}`);\n * }\n * entity = await iter.next();\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```js\n * console.log(\"Listing blobs by hierarchy by page\");\n * for await (const response of containerClient.listBlobsByHierarchy(\"/\").byPage()) {\n * const segment = response.segment;\n * if (segment.blobPrefixes) {\n * for (const prefix of segment.blobPrefixes) {\n * console.log(`\\tBlobPrefix: ${prefix.name}`);\n * }\n * }\n * for (const blob of response.segment.blobItems) {\n * console.log(`\\tBlobItem: name - ${blob.name}`);\n * }\n * }\n * ```\n *\n * Example using paging with a max page size:\n *\n * ```js\n * console.log(\"Listing blobs by hierarchy by page, specifying a prefix and a max page size\");\n *\n * let i = 1;\n * for await (const response of containerClient\n * .listBlobsByHierarchy(\"/\", { prefix: \"prefix2/sub1/\" })\n * .byPage({ maxPageSize: 2 })) {\n * console.log(`Page ${i++}`);\n * const segment = response.segment;\n *\n * if (segment.blobPrefixes) {\n * for (const prefix of segment.blobPrefixes) {\n * console.log(`\\tBlobPrefix: ${prefix.name}`);\n * }\n * }\n *\n * for (const blob of response.segment.blobItems) {\n * console.log(`\\tBlobItem: name - ${blob.name}`);\n * }\n * }\n * ```\n *\n * @param delimiter - The character or string used to define the virtual hierarchy\n * @param options - Options to list blobs operation.\n */\n listBlobsByHierarchy(delimiter, options = {}) {\n if (delimiter === \"\") {\n throw new RangeError(\"delimiter should contain one or more characters\");\n }\n const include = [];\n if (options.includeCopy) {\n include.push(\"copy\");\n }\n if (options.includeDeleted) {\n include.push(\"deleted\");\n }\n if (options.includeMetadata) {\n include.push(\"metadata\");\n }\n if (options.includeSnapshots) {\n include.push(\"snapshots\");\n }\n if (options.includeVersions) {\n include.push(\"versions\");\n }\n if (options.includeUncommitedBlobs) {\n include.push(\"uncommittedblobs\");\n }\n if (options.includeTags) {\n include.push(\"tags\");\n }\n if (options.includeDeletedWithVersions) {\n include.push(\"deletedwithversions\");\n }\n if (options.includeImmutabilityPolicy) {\n include.push(\"immutabilitypolicy\");\n }\n if (options.includeLegalHold) {\n include.push(\"legalhold\");\n }\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n const updatedOptions = Object.assign(Object.assign({}, options), (include.length > 0 ? { include: include } : {}));\n // AsyncIterableIterator to iterate over blob prefixes and blobs\n const iter = this.listItemsByHierarchy(delimiter, updatedOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n async next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings = {}) => {\n return this.listHierarchySegments(delimiter, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, updatedOptions));\n },\n };\n }\n /**\n * The Filter Blobs operation enables callers to list blobs in the container whose tags\n * match a given search expression.\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param marker - A string value that identifies the portion of\n * the list of blobs to be returned with the next listing operation. The\n * operation returns the continuationToken value within the response body if the\n * listing operation did not return all blobs remaining to be listed\n * with the current page. The continuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to find blobs by tags.\n */\n async findBlobsByTagsSegment(tagFilterSqlExpression, marker, options = {}) {\n const { span, updatedOptions } = createSpan(\"ContainerClient-findBlobsByTagsSegment\", options);\n try {\n const response = await this.containerContext.filterBlobs(Object.assign({ abortSignal: options.abortSignal, where: tagFilterSqlExpression, marker, maxPageSize: options.maxPageSize }, convertTracingToRequestOptionsBase(updatedOptions)));\n const wrappedResponse = Object.assign(Object.assign({}, response), { _response: response._response, blobs: response.blobs.map((blob) => {\n var _a;\n let tagValue = \"\";\n if (((_a = blob.tags) === null || _a === void 0 ? void 0 : _a.blobTagSet.length) === 1) {\n tagValue = blob.tags.blobTagSet[0].value;\n }\n return Object.assign(Object.assign({}, blob), { tags: toTags(blob.tags), tagValue });\n }) });\n return wrappedResponse;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns an AsyncIterableIterator for ContainerFindBlobsByTagsSegmentResponse.\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param marker - A string value that identifies the portion of\n * the list of blobs to be returned with the next listing operation. The\n * operation returns the continuationToken value within the response body if the\n * listing operation did not return all blobs remaining to be listed\n * with the current page. The continuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to find blobs by tags.\n */\n findBlobsByTagsSegments(tagFilterSqlExpression, marker, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* findBlobsByTagsSegments_1() {\n let response;\n if (!!marker || marker === undefined) {\n do {\n response = yield tslib.__await(this.findBlobsByTagsSegment(tagFilterSqlExpression, marker, options));\n response.blobs = response.blobs || [];\n marker = response.continuationToken;\n yield yield tslib.__await(response);\n } while (marker);\n }\n });\n }\n /**\n * Returns an AsyncIterableIterator for blobs.\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param options - Options to findBlobsByTagsItems.\n */\n findBlobsByTagsItems(tagFilterSqlExpression, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* findBlobsByTagsItems_1() {\n var e_3, _a;\n let marker;\n try {\n for (var _b = tslib.__asyncValues(this.findBlobsByTagsSegments(tagFilterSqlExpression, marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {\n const segment = _c.value;\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(segment.blobs)));\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));\n }\n finally { if (e_3) throw e_3.error; }\n }\n });\n }\n /**\n * Returns an async iterable iterator to find all blobs with specified tag\n * under the specified container.\n *\n * .byPage() returns an async iterable iterator to list the blobs in pages.\n *\n * Example using `for await` syntax:\n *\n * ```js\n * let i = 1;\n * for await (const blob of containerClient.findBlobsByTags(\"tagkey='tagvalue'\")) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```js\n * let i = 1;\n * const iter = containerClient.findBlobsByTags(\"tagkey='tagvalue'\");\n * let blobItem = await iter.next();\n * while (!blobItem.done) {\n * console.log(`Blob ${i++}: ${blobItem.value.name}`);\n * blobItem = await iter.next();\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```js\n * // passing optional maxPageSize in the page settings\n * let i = 1;\n * for await (const response of containerClient.findBlobsByTags(\"tagkey='tagvalue'\").byPage({ maxPageSize: 20 })) {\n * if (response.blobs) {\n * for (const blob of response.blobs) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```js\n * let i = 1;\n * let iterator = containerClient.findBlobsByTags(\"tagkey='tagvalue'\").byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * // Prints 2 blob names\n * if (response.blobs) {\n * for (const blob of response.blobs) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * iterator = containerClient\n * .findBlobsByTags(\"tagkey='tagvalue'\")\n * .byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * // Prints blob names\n * if (response.blobs) {\n * for (const blob of response.blobs) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * }\n * ```\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param options - Options to find blobs by tags.\n */\n findBlobsByTags(tagFilterSqlExpression, options = {}) {\n // AsyncIterableIterator to iterate over blobs\n const listSegmentOptions = Object.assign({}, options);\n const iter = this.findBlobsByTagsItems(tagFilterSqlExpression, listSegmentOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings = {}) => {\n return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));\n },\n };\n }\n getContainerNameFromUrl() {\n let containerName;\n try {\n // URL may look like the following\n // \"https://myaccount.blob.core.windows.net/mycontainer?sasString\";\n // \"https://myaccount.blob.core.windows.net/mycontainer\";\n // IPv4/IPv6 address hosts, Endpoints - `http://127.0.0.1:10000/devstoreaccount1/containername`\n // http://localhost:10001/devstoreaccount1/containername\n const parsedUrl = coreHttp.URLBuilder.parse(this.url);\n if (parsedUrl.getHost().split(\".\")[1] === \"blob\") {\n // \"https://myaccount.blob.core.windows.net/containername\".\n // \"https://customdomain.com/containername\".\n // .getPath() -> /containername\n containerName = parsedUrl.getPath().split(\"/\")[1];\n }\n else if (isIpEndpointStyle(parsedUrl)) {\n // IPv4/IPv6 address hosts... Example - http://192.0.0.10:10001/devstoreaccount1/containername\n // Single word domain without a [dot] in the endpoint... Example - http://localhost:10001/devstoreaccount1/containername\n // .getPath() -> /devstoreaccount1/containername\n containerName = parsedUrl.getPath().split(\"/\")[2];\n }\n else {\n // \"https://customdomain.com/containername\".\n // .getPath() -> /containername\n containerName = parsedUrl.getPath().split(\"/\")[1];\n }\n // decode the encoded containerName - to get all the special characters that might be present in it\n containerName = decodeURIComponent(containerName);\n if (!containerName) {\n throw new Error(\"Provided containerName is invalid.\");\n }\n return containerName;\n }\n catch (error) {\n throw new Error(\"Unable to extract containerName with provided information.\");\n }\n }\n /**\n * Only available for ContainerClient constructed with a shared key credential.\n *\n * Generates a Blob Container Service Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas\n *\n * @param options - Optional parameters.\n * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n generateSasUrl(options) {\n return new Promise((resolve) => {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw new RangeError(\"Can only generate the SAS when the client is initialized with a shared key credential\");\n }\n const sas = generateBlobSASQueryParameters(Object.assign({ containerName: this._containerName }, options), this.credential).toString();\n resolve(appendToURLQuery(this.url, sas));\n });\n }\n /**\n * Creates a BlobBatchClient object to conduct batch operations.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch\n *\n * @returns A new BlobBatchClient object for this container.\n */\n getBlobBatchClient() {\n return new BlobBatchClient(this.url, this.pipeline);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * This is a helper class to construct a string representing the permissions granted by an AccountSAS. Setting a value\n * to true means that any SAS which uses these permissions will grant permissions for that operation. Once all the\n * values are set, this should be serialized with toString and set as the permissions field on an\n * {@link AccountSASSignatureValues} object. It is possible to construct the permissions string without this class, but\n * the order of the permissions is particular and this class guarantees correctness.\n */\nclass AccountSASPermissions {\n constructor() {\n /**\n * Permission to read resources and list queues and tables granted.\n */\n this.read = false;\n /**\n * Permission to write resources granted.\n */\n this.write = false;\n /**\n * Permission to create blobs and files granted.\n */\n this.delete = false;\n /**\n * Permission to delete versions granted.\n */\n this.deleteVersion = false;\n /**\n * Permission to list blob containers, blobs, shares, directories, and files granted.\n */\n this.list = false;\n /**\n * Permission to add messages, table entities, and append to blobs granted.\n */\n this.add = false;\n /**\n * Permission to create blobs and files granted.\n */\n this.create = false;\n /**\n * Permissions to update messages and table entities granted.\n */\n this.update = false;\n /**\n * Permission to get and delete messages granted.\n */\n this.process = false;\n /**\n * Specfies Tag access granted.\n */\n this.tag = false;\n /**\n * Permission to filter blobs.\n */\n this.filter = false;\n /**\n * Permission to set immutability policy.\n */\n this.setImmutabilityPolicy = false;\n /**\n * Specifies that Permanent Delete is permitted.\n */\n this.permanentDelete = false;\n }\n /**\n * Parse initializes the AccountSASPermissions fields from a string.\n *\n * @param permissions -\n */\n static parse(permissions) {\n const accountSASPermissions = new AccountSASPermissions();\n for (const c of permissions) {\n switch (c) {\n case \"r\":\n accountSASPermissions.read = true;\n break;\n case \"w\":\n accountSASPermissions.write = true;\n break;\n case \"d\":\n accountSASPermissions.delete = true;\n break;\n case \"x\":\n accountSASPermissions.deleteVersion = true;\n break;\n case \"l\":\n accountSASPermissions.list = true;\n break;\n case \"a\":\n accountSASPermissions.add = true;\n break;\n case \"c\":\n accountSASPermissions.create = true;\n break;\n case \"u\":\n accountSASPermissions.update = true;\n break;\n case \"p\":\n accountSASPermissions.process = true;\n break;\n case \"t\":\n accountSASPermissions.tag = true;\n break;\n case \"f\":\n accountSASPermissions.filter = true;\n break;\n case \"i\":\n accountSASPermissions.setImmutabilityPolicy = true;\n break;\n case \"y\":\n accountSASPermissions.permanentDelete = true;\n break;\n default:\n throw new RangeError(`Invalid permission character: ${c}`);\n }\n }\n return accountSASPermissions;\n }\n /**\n * Creates a {@link AccountSASPermissions} from a raw object which contains same keys as it\n * and boolean values for them.\n *\n * @param permissionLike -\n */\n static from(permissionLike) {\n const accountSASPermissions = new AccountSASPermissions();\n if (permissionLike.read) {\n accountSASPermissions.read = true;\n }\n if (permissionLike.write) {\n accountSASPermissions.write = true;\n }\n if (permissionLike.delete) {\n accountSASPermissions.delete = true;\n }\n if (permissionLike.deleteVersion) {\n accountSASPermissions.deleteVersion = true;\n }\n if (permissionLike.filter) {\n accountSASPermissions.filter = true;\n }\n if (permissionLike.tag) {\n accountSASPermissions.tag = true;\n }\n if (permissionLike.list) {\n accountSASPermissions.list = true;\n }\n if (permissionLike.add) {\n accountSASPermissions.add = true;\n }\n if (permissionLike.create) {\n accountSASPermissions.create = true;\n }\n if (permissionLike.update) {\n accountSASPermissions.update = true;\n }\n if (permissionLike.process) {\n accountSASPermissions.process = true;\n }\n if (permissionLike.setImmutabilityPolicy) {\n accountSASPermissions.setImmutabilityPolicy = true;\n }\n if (permissionLike.permanentDelete) {\n accountSASPermissions.permanentDelete = true;\n }\n return accountSASPermissions;\n }\n /**\n * Produces the SAS permissions string for an Azure Storage account.\n * Call this method to set AccountSASSignatureValues Permissions field.\n *\n * Using this method will guarantee the resource types are in\n * an order accepted by the service.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas\n *\n */\n toString() {\n // The order of the characters should be as specified here to ensure correctness:\n // https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas\n // Use a string array instead of string concatenating += operator for performance\n const permissions = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.deleteVersion) {\n permissions.push(\"x\");\n }\n if (this.filter) {\n permissions.push(\"f\");\n }\n if (this.tag) {\n permissions.push(\"t\");\n }\n if (this.list) {\n permissions.push(\"l\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.update) {\n permissions.push(\"u\");\n }\n if (this.process) {\n permissions.push(\"p\");\n }\n if (this.setImmutabilityPolicy) {\n permissions.push(\"i\");\n }\n if (this.permanentDelete) {\n permissions.push(\"y\");\n }\n return permissions.join(\"\");\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * This is a helper class to construct a string representing the resources accessible by an AccountSAS. Setting a value\n * to true means that any SAS which uses these permissions will grant access to that resource type. Once all the\n * values are set, this should be serialized with toString and set as the resources field on an\n * {@link AccountSASSignatureValues} object. It is possible to construct the resources string without this class, but\n * the order of the resources is particular and this class guarantees correctness.\n */\nclass AccountSASResourceTypes {\n constructor() {\n /**\n * Permission to access service level APIs granted.\n */\n this.service = false;\n /**\n * Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.\n */\n this.container = false;\n /**\n * Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.\n */\n this.object = false;\n }\n /**\n * Creates an {@link AccountSASResourceTypes} from the specified resource types string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid resource type.\n *\n * @param resourceTypes -\n */\n static parse(resourceTypes) {\n const accountSASResourceTypes = new AccountSASResourceTypes();\n for (const c of resourceTypes) {\n switch (c) {\n case \"s\":\n accountSASResourceTypes.service = true;\n break;\n case \"c\":\n accountSASResourceTypes.container = true;\n break;\n case \"o\":\n accountSASResourceTypes.object = true;\n break;\n default:\n throw new RangeError(`Invalid resource type: ${c}`);\n }\n }\n return accountSASResourceTypes;\n }\n /**\n * Converts the given resource types to a string.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas\n *\n */\n toString() {\n const resourceTypes = [];\n if (this.service) {\n resourceTypes.push(\"s\");\n }\n if (this.container) {\n resourceTypes.push(\"c\");\n }\n if (this.object) {\n resourceTypes.push(\"o\");\n }\n return resourceTypes.join(\"\");\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * This is a helper class to construct a string representing the services accessible by an AccountSAS. Setting a value\n * to true means that any SAS which uses these permissions will grant access to that service. Once all the\n * values are set, this should be serialized with toString and set as the services field on an\n * {@link AccountSASSignatureValues} object. It is possible to construct the services string without this class, but\n * the order of the services is particular and this class guarantees correctness.\n */\nclass AccountSASServices {\n constructor() {\n /**\n * Permission to access blob resources granted.\n */\n this.blob = false;\n /**\n * Permission to access file resources granted.\n */\n this.file = false;\n /**\n * Permission to access queue resources granted.\n */\n this.queue = false;\n /**\n * Permission to access table resources granted.\n */\n this.table = false;\n }\n /**\n * Creates an {@link AccountSASServices} from the specified services string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid service.\n *\n * @param services -\n */\n static parse(services) {\n const accountSASServices = new AccountSASServices();\n for (const c of services) {\n switch (c) {\n case \"b\":\n accountSASServices.blob = true;\n break;\n case \"f\":\n accountSASServices.file = true;\n break;\n case \"q\":\n accountSASServices.queue = true;\n break;\n case \"t\":\n accountSASServices.table = true;\n break;\n default:\n throw new RangeError(`Invalid service character: ${c}`);\n }\n }\n return accountSASServices;\n }\n /**\n * Converts the given services to a string.\n *\n */\n toString() {\n const services = [];\n if (this.blob) {\n services.push(\"b\");\n }\n if (this.table) {\n services.push(\"t\");\n }\n if (this.queue) {\n services.push(\"q\");\n }\n if (this.file) {\n services.push(\"f\");\n }\n return services.join(\"\");\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * Generates a {@link SASQueryParameters} object which contains all SAS query parameters needed to make an actual\n * REST request.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas\n *\n * @param accountSASSignatureValues -\n * @param sharedKeyCredential -\n */\nfunction generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyCredential) {\n const version = accountSASSignatureValues.version\n ? accountSASSignatureValues.version\n : SERVICE_VERSION;\n if (accountSASSignatureValues.permissions &&\n accountSASSignatureValues.permissions.setImmutabilityPolicy &&\n version < \"2020-08-04\") {\n throw RangeError(\"'version' must be >= '2020-08-04' when provided 'i' permission.\");\n }\n if (accountSASSignatureValues.permissions &&\n accountSASSignatureValues.permissions.deleteVersion &&\n version < \"2019-10-10\") {\n throw RangeError(\"'version' must be >= '2019-10-10' when provided 'x' permission.\");\n }\n if (accountSASSignatureValues.permissions &&\n accountSASSignatureValues.permissions.permanentDelete &&\n version < \"2019-10-10\") {\n throw RangeError(\"'version' must be >= '2019-10-10' when provided 'y' permission.\");\n }\n if (accountSASSignatureValues.permissions &&\n accountSASSignatureValues.permissions.tag &&\n version < \"2019-12-12\") {\n throw RangeError(\"'version' must be >= '2019-12-12' when provided 't' permission.\");\n }\n if (accountSASSignatureValues.permissions &&\n accountSASSignatureValues.permissions.filter &&\n version < \"2019-12-12\") {\n throw RangeError(\"'version' must be >= '2019-12-12' when provided 'f' permission.\");\n }\n if (accountSASSignatureValues.encryptionScope && version < \"2020-12-06\") {\n throw RangeError(\"'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.\");\n }\n const parsedPermissions = AccountSASPermissions.parse(accountSASSignatureValues.permissions.toString());\n const parsedServices = AccountSASServices.parse(accountSASSignatureValues.services).toString();\n const parsedResourceTypes = AccountSASResourceTypes.parse(accountSASSignatureValues.resourceTypes).toString();\n let stringToSign;\n if (version >= \"2020-12-06\") {\n stringToSign = [\n sharedKeyCredential.accountName,\n parsedPermissions,\n parsedServices,\n parsedResourceTypes,\n accountSASSignatureValues.startsOn\n ? truncatedISO8061Date(accountSASSignatureValues.startsOn, false)\n : \"\",\n truncatedISO8061Date(accountSASSignatureValues.expiresOn, false),\n accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : \"\",\n accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : \"\",\n version,\n accountSASSignatureValues.encryptionScope ? accountSASSignatureValues.encryptionScope : \"\",\n \"\", // Account SAS requires an additional newline character\n ].join(\"\\n\");\n }\n else {\n stringToSign = [\n sharedKeyCredential.accountName,\n parsedPermissions,\n parsedServices,\n parsedResourceTypes,\n accountSASSignatureValues.startsOn\n ? truncatedISO8061Date(accountSASSignatureValues.startsOn, false)\n : \"\",\n truncatedISO8061Date(accountSASSignatureValues.expiresOn, false),\n accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : \"\",\n accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : \"\",\n version,\n \"\", // Account SAS requires an additional newline character\n ].join(\"\\n\");\n }\n const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(version, signature, parsedPermissions.toString(), parsedServices, parsedResourceTypes, accountSASSignatureValues.protocol, accountSASSignatureValues.startsOn, accountSASSignatureValues.expiresOn, accountSASSignatureValues.ipRange, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, accountSASSignatureValues.encryptionScope);\n}\n\n/**\n * A BlobServiceClient represents a Client to the Azure Storage Blob service allowing you\n * to manipulate blob containers.\n */\nclass BlobServiceClient extends StorageClient {\n constructor(url, credentialOrPipeline, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n let pipeline;\n if (isPipelineLike(credentialOrPipeline)) {\n pipeline = credentialOrPipeline;\n }\n else if ((coreHttp.isNode && credentialOrPipeline instanceof StorageSharedKeyCredential) ||\n credentialOrPipeline instanceof AnonymousCredential ||\n coreHttp.isTokenCredential(credentialOrPipeline)) {\n pipeline = newPipeline(credentialOrPipeline, options);\n }\n else {\n // The second parameter is undefined. Use anonymous credential\n pipeline = newPipeline(new AnonymousCredential(), options);\n }\n super(url, pipeline);\n this.serviceContext = new Service(this.storageClientContext);\n }\n /**\n *\n * Creates an instance of BlobServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n static fromConnectionString(connectionString, \n // Legacy, no fix for eslint error without breaking. Disable it for this interface.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/\n options) {\n options = options || {};\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (coreHttp.isNode) {\n const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);\n if (!options.proxyOptions) {\n options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);\n }\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new BlobServiceClient(extractedCreds.url, pipeline);\n }\n else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n }\n else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new BlobServiceClient(extractedCreds.url + \"?\" + extractedCreds.accountSas, pipeline);\n }\n else {\n throw new Error(\"Connection string must be either an Account connection string or a SAS connection string\");\n }\n }\n /**\n * Creates a {@link ContainerClient} object\n *\n * @param containerName - A container name\n * @returns A new ContainerClient object for the given container name.\n *\n * Example usage:\n *\n * ```js\n * const containerClient = blobServiceClient.getContainerClient(\"\");\n * ```\n */\n getContainerClient(containerName) {\n return new ContainerClient(appendToURLPath(this.url, encodeURIComponent(containerName)), this.pipeline);\n }\n /**\n * Create a Blob container. @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-container\n *\n * @param containerName - Name of the container to create.\n * @param options - Options to configure Container Create operation.\n * @returns Container creation response and the corresponding container client.\n */\n async createContainer(containerName, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-createContainer\", options);\n try {\n const containerClient = this.getContainerClient(containerName);\n const containerCreateResponse = await containerClient.create(updatedOptions);\n return {\n containerClient,\n containerCreateResponse,\n };\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Deletes a Blob container.\n *\n * @param containerName - Name of the container to delete.\n * @param options - Options to configure Container Delete operation.\n * @returns Container deletion response.\n */\n async deleteContainer(containerName, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-deleteContainer\", options);\n try {\n const containerClient = this.getContainerClient(containerName);\n return await containerClient.delete(updatedOptions);\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Restore a previously deleted Blob container.\n * This API is only functional if Container Soft Delete is enabled for the storage account associated with the container.\n *\n * @param deletedContainerName - Name of the previously deleted container.\n * @param deletedContainerVersion - Version of the previously deleted container, used to uniquely identify the deleted container.\n * @param options - Options to configure Container Restore operation.\n * @returns Container deletion response.\n */\n async undeleteContainer(deletedContainerName, deletedContainerVersion, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-undeleteContainer\", options);\n try {\n const containerClient = this.getContainerClient(options.destinationContainerName || deletedContainerName);\n // Hack to access a protected member.\n const containerContext = new Container(containerClient[\"storageClientContext\"]);\n const containerUndeleteResponse = await containerContext.restore(Object.assign({ deletedContainerName,\n deletedContainerVersion }, updatedOptions));\n return { containerClient, containerUndeleteResponse };\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Rename an existing Blob Container.\n *\n * @param sourceContainerName - The name of the source container.\n * @param destinationContainerName - The new name of the container.\n * @param options - Options to configure Container Rename operation.\n */\n /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */\n // @ts-ignore Need to hide this interface for now. Make it public and turn on the live tests for it when the service is ready.\n async renameContainer(sourceContainerName, destinationContainerName, options = {}) {\n var _a;\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-renameContainer\", options);\n try {\n const containerClient = this.getContainerClient(destinationContainerName);\n // Hack to access a protected member.\n const containerContext = new Container(containerClient[\"storageClientContext\"]);\n const containerRenameResponse = await containerContext.rename(sourceContainerName, Object.assign(Object.assign({}, updatedOptions), { sourceLeaseId: (_a = options.sourceCondition) === null || _a === void 0 ? void 0 : _a.leaseId }));\n return { containerClient, containerRenameResponse };\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Gets the properties of a storage account’s Blob service, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties\n *\n * @param options - Options to the Service Get Properties operation.\n * @returns Response data for the Service Get Properties operation.\n */\n async getProperties(options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-getProperties\", options);\n try {\n return await this.serviceContext.getProperties(Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Sets properties for a storage account’s Blob service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties\n *\n * @param properties -\n * @param options - Options to the Service Set Properties operation.\n * @returns Response data for the Service Set Properties operation.\n */\n async setProperties(properties, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-setProperties\", options);\n try {\n return await this.serviceContext.setProperties(properties, Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Retrieves statistics related to replication for the Blob service. It is only\n * available on the secondary location endpoint when read-access geo-redundant\n * replication is enabled for the storage account.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-stats\n *\n * @param options - Options to the Service Get Statistics operation.\n * @returns Response data for the Service Get Statistics operation.\n */\n async getStatistics(options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-getStatistics\", options);\n try {\n return await this.serviceContext.getStatistics(Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * The Get Account Information operation returns the sku name and account kind\n * for the specified account.\n * The Get Account Information operation is available on service versions beginning\n * with version 2018-03-28.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-account-information\n *\n * @param options - Options to the Service Get Account Info operation.\n * @returns Response data for the Service Get Account Info operation.\n */\n async getAccountInfo(options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-getAccountInfo\", options);\n try {\n return await this.serviceContext.getAccountInfo(Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns a list of the containers under the specified account.\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/list-containers2\n *\n * @param marker - A string value that identifies the portion of\n * the list of containers to be returned with the next listing operation. The\n * operation returns the continuationToken value within the response body if the\n * listing operation did not return all containers remaining to be listed\n * with the current page. The continuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to the Service List Container Segment operation.\n * @returns Response data for the Service List Container Segment operation.\n */\n async listContainersSegment(marker, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-listContainersSegment\", options);\n try {\n return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({ abortSignal: options.abortSignal, marker }, options), { include: typeof options.include === \"string\" ? [options.include] : options.include }), convertTracingToRequestOptionsBase(updatedOptions)));\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * The Filter Blobs operation enables callers to list blobs across all containers whose tags\n * match a given search expression. Filter blobs searches across all containers within a\n * storage account but can be scoped within the expression to a single container.\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param marker - A string value that identifies the portion of\n * the list of blobs to be returned with the next listing operation. The\n * operation returns the continuationToken value within the response body if the\n * listing operation did not return all blobs remaining to be listed\n * with the current page. The continuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to find blobs by tags.\n */\n async findBlobsByTagsSegment(tagFilterSqlExpression, marker, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-findBlobsByTagsSegment\", options);\n try {\n const response = await this.serviceContext.filterBlobs(Object.assign({ abortSignal: options.abortSignal, where: tagFilterSqlExpression, marker, maxPageSize: options.maxPageSize }, convertTracingToRequestOptionsBase(updatedOptions)));\n const wrappedResponse = Object.assign(Object.assign({}, response), { _response: response._response, blobs: response.blobs.map((blob) => {\n var _a;\n let tagValue = \"\";\n if (((_a = blob.tags) === null || _a === void 0 ? void 0 : _a.blobTagSet.length) === 1) {\n tagValue = blob.tags.blobTagSet[0].value;\n }\n return Object.assign(Object.assign({}, blob), { tags: toTags(blob.tags), tagValue });\n }) });\n return wrappedResponse;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Returns an AsyncIterableIterator for ServiceFindBlobsByTagsSegmentResponse.\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param marker - A string value that identifies the portion of\n * the list of blobs to be returned with the next listing operation. The\n * operation returns the continuationToken value within the response body if the\n * listing operation did not return all blobs remaining to be listed\n * with the current page. The continuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to find blobs by tags.\n */\n findBlobsByTagsSegments(tagFilterSqlExpression, marker, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* findBlobsByTagsSegments_1() {\n let response;\n if (!!marker || marker === undefined) {\n do {\n response = yield tslib.__await(this.findBlobsByTagsSegment(tagFilterSqlExpression, marker, options));\n response.blobs = response.blobs || [];\n marker = response.continuationToken;\n yield yield tslib.__await(response);\n } while (marker);\n }\n });\n }\n /**\n * Returns an AsyncIterableIterator for blobs.\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param options - Options to findBlobsByTagsItems.\n */\n findBlobsByTagsItems(tagFilterSqlExpression, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* findBlobsByTagsItems_1() {\n var e_1, _a;\n let marker;\n try {\n for (var _b = tslib.__asyncValues(this.findBlobsByTagsSegments(tagFilterSqlExpression, marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {\n const segment = _c.value;\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(segment.blobs)));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));\n }\n finally { if (e_1) throw e_1.error; }\n }\n });\n }\n /**\n * Returns an async iterable iterator to find all blobs with specified tag\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the blobs in pages.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties\n *\n * Example using `for await` syntax:\n *\n * ```js\n * let i = 1;\n * for await (const blob of blobServiceClient.findBlobsByTags(\"tagkey='tagvalue'\")) {\n * console.log(`Blob ${i++}: ${container.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```js\n * let i = 1;\n * const iter = blobServiceClient.findBlobsByTags(\"tagkey='tagvalue'\");\n * let blobItem = await iter.next();\n * while (!blobItem.done) {\n * console.log(`Blob ${i++}: ${blobItem.value.name}`);\n * blobItem = await iter.next();\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```js\n * // passing optional maxPageSize in the page settings\n * let i = 1;\n * for await (const response of blobServiceClient.findBlobsByTags(\"tagkey='tagvalue'\").byPage({ maxPageSize: 20 })) {\n * if (response.blobs) {\n * for (const blob of response.blobs) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```js\n * let i = 1;\n * let iterator = blobServiceClient.findBlobsByTags(\"tagkey='tagvalue'\").byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * // Prints 2 blob names\n * if (response.blobs) {\n * for (const blob of response.blobs) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * iterator = blobServiceClient\n * .findBlobsByTags(\"tagkey='tagvalue'\")\n * .byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * // Prints blob names\n * if (response.blobs) {\n * for (const blob of response.blobs) {\n * console.log(`Blob ${i++}: ${blob.name}`);\n * }\n * }\n * ```\n *\n * @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.\n * The given expression must evaluate to true for a blob to be returned in the results.\n * The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;\n * however, only a subset of the OData filter syntax is supported in the Blob service.\n * @param options - Options to find blobs by tags.\n */\n findBlobsByTags(tagFilterSqlExpression, options = {}) {\n // AsyncIterableIterator to iterate over blobs\n const listSegmentOptions = Object.assign({}, options);\n const iter = this.findBlobsByTagsItems(tagFilterSqlExpression, listSegmentOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings = {}) => {\n return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));\n },\n };\n }\n /**\n * Returns an AsyncIterableIterator for ServiceListContainersSegmentResponses\n *\n * @param marker - A string value that identifies the portion of\n * the list of containers to be returned with the next listing operation. The\n * operation returns the continuationToken value within the response body if the\n * listing operation did not return all containers remaining to be listed\n * with the current page. The continuationToken value can be used as the value for\n * the marker parameter in a subsequent call to request the next page of list\n * items. The marker value is opaque to the client.\n * @param options - Options to list containers operation.\n */\n listSegments(marker, options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listSegments_1() {\n let listContainersSegmentResponse;\n if (!!marker || marker === undefined) {\n do {\n listContainersSegmentResponse = yield tslib.__await(this.listContainersSegment(marker, options));\n listContainersSegmentResponse.containerItems =\n listContainersSegmentResponse.containerItems || [];\n marker = listContainersSegmentResponse.continuationToken;\n yield yield tslib.__await(yield tslib.__await(listContainersSegmentResponse));\n } while (marker);\n }\n });\n }\n /**\n * Returns an AsyncIterableIterator for Container Items\n *\n * @param options - Options to list containers operation.\n */\n listItems(options = {}) {\n return tslib.__asyncGenerator(this, arguments, function* listItems_1() {\n var e_2, _a;\n let marker;\n try {\n for (var _b = tslib.__asyncValues(this.listSegments(marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {\n const segment = _c.value;\n yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(segment.containerItems)));\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));\n }\n finally { if (e_2) throw e_2.error; }\n }\n });\n }\n /**\n * Returns an async iterable iterator to list all the containers\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the containers in pages.\n *\n * Example using `for await` syntax:\n *\n * ```js\n * let i = 1;\n * for await (const container of blobServiceClient.listContainers()) {\n * console.log(`Container ${i++}: ${container.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```js\n * let i = 1;\n * const iter = blobServiceClient.listContainers();\n * let containerItem = await iter.next();\n * while (!containerItem.done) {\n * console.log(`Container ${i++}: ${containerItem.value.name}`);\n * containerItem = await iter.next();\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```js\n * // passing optional maxPageSize in the page settings\n * let i = 1;\n * for await (const response of blobServiceClient.listContainers().byPage({ maxPageSize: 20 })) {\n * if (response.containerItems) {\n * for (const container of response.containerItems) {\n * console.log(`Container ${i++}: ${container.name}`);\n * }\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```js\n * let i = 1;\n * let iterator = blobServiceClient.listContainers().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n *\n * // Prints 2 container names\n * if (response.containerItems) {\n * for (const container of response.containerItems) {\n * console.log(`Container ${i++}: ${container.name}`);\n * }\n * }\n *\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * iterator = blobServiceClient\n * .listContainers()\n * .byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n *\n * // Prints 10 container names\n * if (response.containerItems) {\n * for (const container of response.containerItems) {\n * console.log(`Container ${i++}: ${container.name}`);\n * }\n * }\n * ```\n *\n * @param options - Options to list containers.\n * @returns An asyncIterableIterator that supports paging.\n */\n listContainers(options = {}) {\n if (options.prefix === \"\") {\n options.prefix = undefined;\n }\n const include = [];\n if (options.includeDeleted) {\n include.push(\"deleted\");\n }\n if (options.includeMetadata) {\n include.push(\"metadata\");\n }\n if (options.includeSystem) {\n include.push(\"system\");\n }\n // AsyncIterableIterator to iterate over containers\n const listSegmentOptions = Object.assign(Object.assign({}, options), (include.length > 0 ? { include } : {}));\n const iter = this.listItems(listSegmentOptions);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings = {}) => {\n return this.listSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));\n },\n };\n }\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time\n */\n async getUserDelegationKey(startsOn, expiresOn, options = {}) {\n const { span, updatedOptions } = createSpan(\"BlobServiceClient-getUserDelegationKey\", options);\n try {\n const response = await this.serviceContext.getUserDelegationKey({\n startsOn: truncatedISO8061Date(startsOn, false),\n expiresOn: truncatedISO8061Date(expiresOn, false),\n }, Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));\n const userDelegationKey = {\n signedObjectId: response.signedObjectId,\n signedTenantId: response.signedTenantId,\n signedStartsOn: new Date(response.signedStartsOn),\n signedExpiresOn: new Date(response.signedExpiresOn),\n signedService: response.signedService,\n signedVersion: response.signedVersion,\n value: response.value,\n };\n const res = Object.assign({ _response: response._response, requestId: response.requestId, clientRequestId: response.clientRequestId, version: response.version, date: response.date, errorCode: response.errorCode }, userDelegationKey);\n return res;\n }\n catch (e) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.ERROR,\n message: e.message,\n });\n throw e;\n }\n finally {\n span.end();\n }\n }\n /**\n * Creates a BlobBatchClient object to conduct batch operations.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch\n *\n * @returns A new BlobBatchClient object for this service.\n */\n getBlobBatchClient() {\n return new BlobBatchClient(this.url, this.pipeline);\n }\n /**\n * Only available for BlobServiceClient constructed with a shared key credential.\n *\n * Generates a Blob account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not provided.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n generateAccountSasUrl(expiresOn, permissions = AccountSASPermissions.parse(\"r\"), resourceTypes = \"sco\", options = {}) {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\"Can only generate the account SAS when the client is initialized with a shared key credential\");\n }\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n const sas = generateAccountSASQueryParameters(Object.assign({ permissions,\n expiresOn,\n resourceTypes, services: AccountSASServices.parse(\"b\").toString() }, options), this.credential).toString();\n return appendToURLQuery(this.url, sas);\n }\n}\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/** Known values of {@link EncryptionAlgorithmType} that the service accepts. */\nexports.KnownEncryptionAlgorithmType = void 0;\n(function (KnownEncryptionAlgorithmType) {\n KnownEncryptionAlgorithmType[\"AES256\"] = \"AES256\";\n})(exports.KnownEncryptionAlgorithmType || (exports.KnownEncryptionAlgorithmType = {}));\n\nObject.defineProperty(exports, 'BaseRequestPolicy', {\n enumerable: true,\n get: function () { return coreHttp.BaseRequestPolicy; }\n});\nObject.defineProperty(exports, 'HttpHeaders', {\n enumerable: true,\n get: function () { return coreHttp.HttpHeaders; }\n});\nObject.defineProperty(exports, 'RequestPolicyOptions', {\n enumerable: true,\n get: function () { return coreHttp.RequestPolicyOptions; }\n});\nObject.defineProperty(exports, 'RestError', {\n enumerable: true,\n get: function () { return coreHttp.RestError; }\n});\nObject.defineProperty(exports, 'WebResource', {\n enumerable: true,\n get: function () { return coreHttp.WebResource; }\n});\nObject.defineProperty(exports, 'deserializationPolicy', {\n enumerable: true,\n get: function () { return coreHttp.deserializationPolicy; }\n});\nexports.AccountSASPermissions = AccountSASPermissions;\nexports.AccountSASResourceTypes = AccountSASResourceTypes;\nexports.AccountSASServices = AccountSASServices;\nexports.AnonymousCredential = AnonymousCredential;\nexports.AnonymousCredentialPolicy = AnonymousCredentialPolicy;\nexports.AppendBlobClient = AppendBlobClient;\nexports.BlobBatch = BlobBatch;\nexports.BlobBatchClient = BlobBatchClient;\nexports.BlobClient = BlobClient;\nexports.BlobLeaseClient = BlobLeaseClient;\nexports.BlobSASPermissions = BlobSASPermissions;\nexports.BlobServiceClient = BlobServiceClient;\nexports.BlockBlobClient = BlockBlobClient;\nexports.ContainerClient = ContainerClient;\nexports.ContainerSASPermissions = ContainerSASPermissions;\nexports.Credential = Credential;\nexports.CredentialPolicy = CredentialPolicy;\nexports.PageBlobClient = PageBlobClient;\nexports.Pipeline = Pipeline;\nexports.SASQueryParameters = SASQueryParameters;\nexports.StorageBrowserPolicy = StorageBrowserPolicy;\nexports.StorageBrowserPolicyFactory = StorageBrowserPolicyFactory;\nexports.StorageOAuthScopes = StorageOAuthScopes;\nexports.StorageRetryPolicy = StorageRetryPolicy;\nexports.StorageRetryPolicyFactory = StorageRetryPolicyFactory;\nexports.StorageSharedKeyCredential = StorageSharedKeyCredential;\nexports.StorageSharedKeyCredentialPolicy = StorageSharedKeyCredentialPolicy;\nexports.generateAccountSASQueryParameters = generateAccountSASQueryParameters;\nexports.generateBlobSASQueryParameters = generateBlobSASQueryParameters;\nexports.getBlobServiceAccountAudience = getBlobServiceAccountAudience;\nexports.isPipelineLike = isPipelineLike;\nexports.logger = logger;\nexports.newPipeline = newPipeline;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst REGEX_IS_INSTALLATION_LEGACY = /^v1\\./;\nconst REGEX_IS_INSTALLATION = /^ghs_/;\nconst REGEX_IS_USER_TO_SERVER = /^ghu_/;\nasync function auth(token) {\n const isApp = token.split(/\\./).length === 3;\n const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);\n const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);\n const tokenType = isApp ? \"app\" : isInstallation ? \"installation\" : isUserToServer ? \"user-to-server\" : \"oauth\";\n return {\n type: \"token\",\n token: token,\n tokenType\n };\n}\n\n/**\n * Prefix token for usage in the Authorization header\n *\n * @param token OAuth token or JSON Web Token\n */\nfunction withAuthorizationPrefix(token) {\n if (token.split(/\\./).length === 3) {\n return `bearer ${token}`;\n }\n\n return `token ${token}`;\n}\n\nasync function hook(token, request, route, parameters) {\n const endpoint = request.endpoint.merge(route, parameters);\n endpoint.headers.authorization = withAuthorizationPrefix(token);\n return request(endpoint);\n}\n\nconst createTokenAuth = function createTokenAuth(token) {\n if (!token) {\n throw new Error(\"[@octokit/auth-token] No token passed to createTokenAuth\");\n }\n\n if (typeof token !== \"string\") {\n throw new Error(\"[@octokit/auth-token] Token passed to createTokenAuth is not a string\");\n }\n\n token = token.replace(/^(token|bearer) +/i, \"\");\n return Object.assign(auth.bind(null, token), {\n hook: hook.bind(null, token)\n });\n};\n\nexports.createTokenAuth = createTokenAuth;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar universalUserAgent = require('universal-user-agent');\nvar beforeAfterHook = require('before-after-hook');\nvar request = require('@octokit/request');\nvar graphql = require('@octokit/graphql');\nvar authToken = require('@octokit/auth-token');\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nconst VERSION = \"3.6.0\";\n\nconst _excluded = [\"authStrategy\"];\nclass Octokit {\n constructor(options = {}) {\n const hook = new beforeAfterHook.Collection();\n const requestDefaults = {\n baseUrl: request.request.endpoint.DEFAULTS.baseUrl,\n headers: {},\n request: Object.assign({}, options.request, {\n // @ts-ignore internal usage only, no need to type\n hook: hook.bind(null, \"request\")\n }),\n mediaType: {\n previews: [],\n format: \"\"\n }\n }; // prepend default user agent with `options.userAgent` if set\n\n requestDefaults.headers[\"user-agent\"] = [options.userAgent, `octokit-core.js/${VERSION} ${universalUserAgent.getUserAgent()}`].filter(Boolean).join(\" \");\n\n if (options.baseUrl) {\n requestDefaults.baseUrl = options.baseUrl;\n }\n\n if (options.previews) {\n requestDefaults.mediaType.previews = options.previews;\n }\n\n if (options.timeZone) {\n requestDefaults.headers[\"time-zone\"] = options.timeZone;\n }\n\n this.request = request.request.defaults(requestDefaults);\n this.graphql = graphql.withCustomRequest(this.request).defaults(requestDefaults);\n this.log = Object.assign({\n debug: () => {},\n info: () => {},\n warn: console.warn.bind(console),\n error: console.error.bind(console)\n }, options.log);\n this.hook = hook; // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance\n // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered.\n // (2) If only `options.auth` is set, use the default token authentication strategy.\n // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance.\n // TODO: type `options.auth` based on `options.authStrategy`.\n\n if (!options.authStrategy) {\n if (!options.auth) {\n // (1)\n this.auth = async () => ({\n type: \"unauthenticated\"\n });\n } else {\n // (2)\n const auth = authToken.createTokenAuth(options.auth); // @ts-ignore ¯\\_(ツ)_/¯\n\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n } else {\n const {\n authStrategy\n } = options,\n otherOptions = _objectWithoutProperties(options, _excluded);\n\n const auth = authStrategy(Object.assign({\n request: this.request,\n log: this.log,\n // we pass the current octokit instance as well as its constructor options\n // to allow for authentication strategies that return a new octokit instance\n // that shares the same internal state as the current one. The original\n // requirement for this was the \"event-octokit\" authentication strategy\n // of https://github.com/probot/octokit-auth-probot.\n octokit: this,\n octokitOptions: otherOptions\n }, options.auth)); // @ts-ignore ¯\\_(ツ)_/¯\n\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n } // apply plugins\n // https://stackoverflow.com/a/16345172\n\n\n const classConstructor = this.constructor;\n classConstructor.plugins.forEach(plugin => {\n Object.assign(this, plugin(this, options));\n });\n }\n\n static defaults(defaults) {\n const OctokitWithDefaults = class extends this {\n constructor(...args) {\n const options = args[0] || {};\n\n if (typeof defaults === \"function\") {\n super(defaults(options));\n return;\n }\n\n super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? {\n userAgent: `${options.userAgent} ${defaults.userAgent}`\n } : null));\n }\n\n };\n return OctokitWithDefaults;\n }\n /**\n * Attach a plugin (or many) to your Octokit instance.\n *\n * @example\n * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)\n */\n\n\n static plugin(...newPlugins) {\n var _a;\n\n const currentPlugins = this.plugins;\n const NewOctokit = (_a = class extends this {}, _a.plugins = currentPlugins.concat(newPlugins.filter(plugin => !currentPlugins.includes(plugin))), _a);\n return NewOctokit;\n }\n\n}\nOctokit.VERSION = VERSION;\nOctokit.plugins = [];\n\nexports.Octokit = Octokit;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar isPlainObject = require('is-plain-object');\nvar universalUserAgent = require('universal-user-agent');\n\nfunction lowercaseKeys(object) {\n if (!object) {\n return {};\n }\n\n return Object.keys(object).reduce((newObj, key) => {\n newObj[key.toLowerCase()] = object[key];\n return newObj;\n }, {});\n}\n\nfunction mergeDeep(defaults, options) {\n const result = Object.assign({}, defaults);\n Object.keys(options).forEach(key => {\n if (isPlainObject.isPlainObject(options[key])) {\n if (!(key in defaults)) Object.assign(result, {\n [key]: options[key]\n });else result[key] = mergeDeep(defaults[key], options[key]);\n } else {\n Object.assign(result, {\n [key]: options[key]\n });\n }\n });\n return result;\n}\n\nfunction removeUndefinedProperties(obj) {\n for (const key in obj) {\n if (obj[key] === undefined) {\n delete obj[key];\n }\n }\n\n return obj;\n}\n\nfunction merge(defaults, route, options) {\n if (typeof route === \"string\") {\n let [method, url] = route.split(\" \");\n options = Object.assign(url ? {\n method,\n url\n } : {\n url: method\n }, options);\n } else {\n options = Object.assign({}, route);\n } // lowercase header names before merging with defaults to avoid duplicates\n\n\n options.headers = lowercaseKeys(options.headers); // remove properties with undefined values before merging\n\n removeUndefinedProperties(options);\n removeUndefinedProperties(options.headers);\n const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten\n\n if (defaults && defaults.mediaType.previews.length) {\n mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);\n }\n\n mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, \"\"));\n return mergedOptions;\n}\n\nfunction addQueryParameters(url, parameters) {\n const separator = /\\?/.test(url) ? \"&\" : \"?\";\n const names = Object.keys(parameters);\n\n if (names.length === 0) {\n return url;\n }\n\n return url + separator + names.map(name => {\n if (name === \"q\") {\n return \"q=\" + parameters.q.split(\"+\").map(encodeURIComponent).join(\"+\");\n }\n\n return `${name}=${encodeURIComponent(parameters[name])}`;\n }).join(\"&\");\n}\n\nconst urlVariableRegex = /\\{[^}]+\\}/g;\n\nfunction removeNonChars(variableName) {\n return variableName.replace(/^\\W+|\\W+$/g, \"\").split(/,/);\n}\n\nfunction extractUrlVariableNames(url) {\n const matches = url.match(urlVariableRegex);\n\n if (!matches) {\n return [];\n }\n\n return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);\n}\n\nfunction omit(object, keysToOmit) {\n return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {\n obj[key] = object[key];\n return obj;\n }, {});\n}\n\n// Based on https://github.com/bramstein/url-template, licensed under BSD\n// TODO: create separate package.\n//\n// Copyright (c) 2012-2014, Bram Stein\n// All rights reserved.\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// 1. Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// 3. The name of the author may not be used to endorse or promote products\n// derived from this software without specific prior written permission.\n// THIS SOFTWARE IS PROVIDED BY THE AUTHOR \"AS IS\" AND ANY EXPRESS OR IMPLIED\n// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO\n// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n/* istanbul ignore file */\nfunction encodeReserved(str) {\n return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part).replace(/%5B/g, \"[\").replace(/%5D/g, \"]\");\n }\n\n return part;\n }).join(\"\");\n}\n\nfunction encodeUnreserved(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\n\nfunction encodeValue(operator, value, key) {\n value = operator === \"+\" || operator === \"#\" ? encodeReserved(value) : encodeUnreserved(value);\n\n if (key) {\n return encodeUnreserved(key) + \"=\" + value;\n } else {\n return value;\n }\n}\n\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\n\nfunction isKeyOperator(operator) {\n return operator === \";\" || operator === \"&\" || operator === \"?\";\n}\n\nfunction getValues(context, operator, key, modifier) {\n var value = context[key],\n result = [];\n\n if (isDefined(value) && value !== \"\") {\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\") {\n value = value.toString();\n\n if (modifier && modifier !== \"*\") {\n value = value.substring(0, parseInt(modifier, 10));\n }\n\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n } else {\n if (modifier === \"*\") {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n });\n } else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n } else {\n const tmp = [];\n\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n tmp.push(encodeValue(operator, value));\n });\n } else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n tmp.push(encodeUnreserved(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n\n if (isKeyOperator(operator)) {\n result.push(encodeUnreserved(key) + \"=\" + tmp.join(\",\"));\n } else if (tmp.length !== 0) {\n result.push(tmp.join(\",\"));\n }\n }\n }\n } else {\n if (operator === \";\") {\n if (isDefined(value)) {\n result.push(encodeUnreserved(key));\n }\n } else if (value === \"\" && (operator === \"&\" || operator === \"?\")) {\n result.push(encodeUnreserved(key) + \"=\");\n } else if (value === \"\") {\n result.push(\"\");\n }\n }\n\n return result;\n}\n\nfunction parseUrl(template) {\n return {\n expand: expand.bind(null, template)\n };\n}\n\nfunction expand(template, context) {\n var operators = [\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"];\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, function (_, expression, literal) {\n if (expression) {\n let operator = \"\";\n const values = [];\n\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n\n expression.split(/,/g).forEach(function (variable) {\n var tmp = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n });\n\n if (operator && operator !== \"+\") {\n var separator = \",\";\n\n if (operator === \"?\") {\n separator = \"&\";\n } else if (operator !== \"#\") {\n separator = operator;\n }\n\n return (values.length !== 0 ? operator : \"\") + values.join(separator);\n } else {\n return values.join(\",\");\n }\n } else {\n return encodeReserved(literal);\n }\n });\n}\n\nfunction parse(options) {\n // https://fetch.spec.whatwg.org/#methods\n let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible\n\n let url = (options.url || \"/\").replace(/:([a-z]\\w+)/g, \"{$1}\");\n let headers = Object.assign({}, options.headers);\n let body;\n let parameters = omit(options, [\"method\", \"baseUrl\", \"url\", \"headers\", \"request\", \"mediaType\"]); // extract variable names from URL to calculate remaining variables later\n\n const urlVariableNames = extractUrlVariableNames(url);\n url = parseUrl(url).expand(parameters);\n\n if (!/^http/.test(url)) {\n url = options.baseUrl + url;\n }\n\n const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat(\"baseUrl\");\n const remainingParameters = omit(parameters, omittedParameters);\n const isBinaryRequest = /application\\/octet-stream/i.test(headers.accept);\n\n if (!isBinaryRequest) {\n if (options.mediaType.format) {\n // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw\n headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\\/vnd(\\.\\w+)(\\.v3)?(\\.\\w+)?(\\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(\",\");\n }\n\n if (options.mediaType.previews.length) {\n const previewsFromAcceptHeader = headers.accept.match(/[\\w-]+(?=-preview)/g) || [];\n headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {\n const format = options.mediaType.format ? `.${options.mediaType.format}` : \"+json\";\n return `application/vnd.github.${preview}-preview${format}`;\n }).join(\",\");\n }\n } // for GET/HEAD requests, set URL query parameters from remaining parameters\n // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters\n\n\n if ([\"GET\", \"HEAD\"].includes(method)) {\n url = addQueryParameters(url, remainingParameters);\n } else {\n if (\"data\" in remainingParameters) {\n body = remainingParameters.data;\n } else {\n if (Object.keys(remainingParameters).length) {\n body = remainingParameters;\n } else {\n headers[\"content-length\"] = 0;\n }\n }\n } // default content-type for JSON if body is set\n\n\n if (!headers[\"content-type\"] && typeof body !== \"undefined\") {\n headers[\"content-type\"] = \"application/json; charset=utf-8\";\n } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.\n // fetch does not allow to set `content-length` header, but we can set body to an empty string\n\n\n if ([\"PATCH\", \"PUT\"].includes(method) && typeof body === \"undefined\") {\n body = \"\";\n } // Only return body/request keys if present\n\n\n return Object.assign({\n method,\n url,\n headers\n }, typeof body !== \"undefined\" ? {\n body\n } : null, options.request ? {\n request: options.request\n } : null);\n}\n\nfunction endpointWithDefaults(defaults, route, options) {\n return parse(merge(defaults, route, options));\n}\n\nfunction withDefaults(oldDefaults, newDefaults) {\n const DEFAULTS = merge(oldDefaults, newDefaults);\n const endpoint = endpointWithDefaults.bind(null, DEFAULTS);\n return Object.assign(endpoint, {\n DEFAULTS,\n defaults: withDefaults.bind(null, DEFAULTS),\n merge: merge.bind(null, DEFAULTS),\n parse\n });\n}\n\nconst VERSION = \"6.0.12\";\n\nconst userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.\n// So we use RequestParameters and add method as additional required property.\n\nconst DEFAULTS = {\n method: \"GET\",\n baseUrl: \"https://api.github.com\",\n headers: {\n accept: \"application/vnd.github.v3+json\",\n \"user-agent\": userAgent\n },\n mediaType: {\n format: \"\",\n previews: []\n }\n};\n\nconst endpoint = withDefaults(null, DEFAULTS);\n\nexports.endpoint = endpoint;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar request = require('@octokit/request');\nvar universalUserAgent = require('universal-user-agent');\n\nconst VERSION = \"4.8.0\";\n\nfunction _buildMessageForResponseErrors(data) {\n return `Request failed due to following response errors:\\n` + data.errors.map(e => ` - ${e.message}`).join(\"\\n\");\n}\n\nclass GraphqlResponseError extends Error {\n constructor(request, headers, response) {\n super(_buildMessageForResponseErrors(response));\n this.request = request;\n this.headers = headers;\n this.response = response;\n this.name = \"GraphqlResponseError\"; // Expose the errors and response data in their shorthand properties.\n\n this.errors = response.errors;\n this.data = response.data; // Maintains proper stack trace (only available on V8)\n\n /* istanbul ignore next */\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n\n}\n\nconst NON_VARIABLE_OPTIONS = [\"method\", \"baseUrl\", \"url\", \"headers\", \"request\", \"query\", \"mediaType\"];\nconst FORBIDDEN_VARIABLE_OPTIONS = [\"query\", \"method\", \"url\"];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nfunction graphql(request, query, options) {\n if (options) {\n if (typeof query === \"string\" && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n\n for (const key in options) {\n if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;\n return Promise.reject(new Error(`[@octokit/graphql] \"${key}\" cannot be used as variable name`));\n }\n }\n\n const parsedOptions = typeof query === \"string\" ? Object.assign({\n query\n }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n\n if (!result.variables) {\n result.variables = {};\n }\n\n result.variables[key] = parsedOptions[key];\n return result;\n }, {}); // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n\n return request(requestOptions).then(response => {\n if (response.data.errors) {\n const headers = {};\n\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n\n throw new GraphqlResponseError(requestOptions, headers, response.data);\n }\n\n return response.data.data;\n });\n}\n\nfunction withDefaults(request$1, newDefaults) {\n const newRequest = request$1.defaults(newDefaults);\n\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: request.request.endpoint\n });\n}\n\nconst graphql$1 = withDefaults(request.request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`\n },\n method: \"POST\",\n url: \"/graphql\"\n});\nfunction withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\"\n });\n}\n\nexports.GraphqlResponseError = GraphqlResponseError;\nexports.graphql = graphql$1;\nexports.withCustomRequest = withCustomRequest;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst VERSION = \"2.21.3\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\n/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint.\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not.\n *\n * We check if a \"total_count\" key is present in the response data, but also make sure that\n * a \"url\" property is not, as the \"Get the combined status for a specific ref\" endpoint would\n * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref\n */\nfunction normalizePaginatedListResponse(response) {\n // endpoints can respond with 204 if repository is empty\n if (!response.data) {\n return _objectSpread2(_objectSpread2({}, response), {}, {\n data: []\n });\n }\n\n const responseNeedsNormalization = \"total_count\" in response.data && !(\"url\" in response.data);\n if (!responseNeedsNormalization) return response; // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n\n response.data.total_count = totalCount;\n return response;\n}\n\nfunction iterator(octokit, route, parameters) {\n const options = typeof route === \"function\" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);\n const requestMethod = typeof route === \"function\" ? route : octokit.request;\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n async next() {\n if (!url) return {\n done: true\n };\n\n try {\n const response = await requestMethod({\n method,\n url,\n headers\n });\n const normalizedResponse = normalizePaginatedListResponse(response); // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n\n url = ((normalizedResponse.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return {\n value: normalizedResponse\n };\n } catch (error) {\n if (error.status !== 409) throw error;\n url = \"\";\n return {\n value: {\n status: 200,\n headers: {},\n data: []\n }\n };\n }\n }\n\n })\n };\n}\n\nfunction paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\n\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then(result => {\n if (result.done) {\n return results;\n }\n\n let earlyExit = false;\n\n function done() {\n earlyExit = true;\n }\n\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n\n if (earlyExit) {\n return results;\n }\n\n return gather(octokit, results, iterator, mapFn);\n });\n}\n\nconst composePaginateRest = Object.assign(paginate, {\n iterator\n});\n\nconst paginatingEndpoints = [\"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}/audit-log\", \"GET /enterprises/{enterprise}/secret-scanning/alerts\", \"GET /enterprises/{enterprise}/settings/billing/advanced-security\", \"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/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/secrets\", \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\", \"GET /orgs/{org}/audit-log\", \"GET /orgs/{org}/blocks\", \"GET /orgs/{org}/code-scanning/alerts\", \"GET /orgs/{org}/codespaces\", \"GET /orgs/{org}/credential-authorizations\", \"GET /orgs/{org}/dependabot/secrets\", \"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\", \"GET /orgs/{org}/events\", \"GET /orgs/{org}/external-groups\", \"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}/packages/{package_type}/{package_name}/versions\", \"GET /orgs/{org}/projects\", \"GET /orgs/{org}/public_members\", \"GET /orgs/{org}/repos\", \"GET /orgs/{org}/secret-scanning/alerts\", \"GET /orgs/{org}/settings/billing/advanced-security\", \"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}/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/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/workflows\", \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\", \"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/secrets\", \"GET /repos/{owner}/{repo}/deployments\", \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\", \"GET /repos/{owner}/{repo}/environments\", \"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}/releases/{release_id}/reactions\", \"GET /repos/{owner}/{repo}/secret-scanning/alerts\", \"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\", \"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 /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/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\"];\n\nfunction isPaginatingEndpoint(arg) {\n if (typeof arg === \"string\") {\n return paginatingEndpoints.includes(arg);\n } else {\n return false;\n }\n}\n\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\n\nfunction paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit)\n })\n };\n}\npaginateRest.VERSION = VERSION;\n\nexports.composePaginateRest = composePaginateRest;\nexports.isPaginatingEndpoint = isPaginatingEndpoint;\nexports.paginateRest = paginateRest;\nexports.paginatingEndpoints = paginatingEndpoints;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst VERSION = \"1.0.4\";\n\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\n\nfunction requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options).then(response => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n }).catch(error => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n\nexports.requestLog = requestLog;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nconst Endpoints = {\n actions: {\n addCustomLabelsToSelfHostedRunnerForOrg: [\"POST /orgs/{org}/actions/runners/{runner_id}/labels\"],\n addCustomLabelsToSelfHostedRunnerForRepo: [\"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n addSelectedRepoToOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\"],\n approveWorkflowRun: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve\"],\n cancelWorkflowRun: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel\"],\n createOrUpdateEnvironmentSecret: [\"PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"],\n createOrUpdateOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}\"],\n createOrUpdateRepoSecret: [\"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n createRegistrationTokenForOrg: [\"POST /orgs/{org}/actions/runners/registration-token\"],\n createRegistrationTokenForRepo: [\"POST /repos/{owner}/{repo}/actions/runners/registration-token\"],\n createRemoveTokenForOrg: [\"POST /orgs/{org}/actions/runners/remove-token\"],\n createRemoveTokenForRepo: [\"POST /repos/{owner}/{repo}/actions/runners/remove-token\"],\n createWorkflowDispatch: [\"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches\"],\n deleteActionsCacheById: [\"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}\"],\n deleteActionsCacheByKey: [\"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}\"],\n deleteArtifact: [\"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"],\n deleteEnvironmentSecret: [\"DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"],\n deleteOrgSecret: [\"DELETE /orgs/{org}/actions/secrets/{secret_name}\"],\n deleteRepoSecret: [\"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n deleteSelfHostedRunnerFromOrg: [\"DELETE /orgs/{org}/actions/runners/{runner_id}\"],\n deleteSelfHostedRunnerFromRepo: [\"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}\"],\n deleteWorkflowRun: [\"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n deleteWorkflowRunLogs: [\"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs\"],\n disableSelectedRepositoryGithubActionsOrganization: [\"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}\"],\n disableWorkflow: [\"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable\"],\n downloadArtifact: [\"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}\"],\n downloadJobLogsForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs\"],\n downloadWorkflowRunAttemptLogs: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs\"],\n downloadWorkflowRunLogs: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs\"],\n enableSelectedRepositoryGithubActionsOrganization: [\"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}\"],\n enableWorkflow: [\"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable\"],\n getActionsCacheList: [\"GET /repos/{owner}/{repo}/actions/caches\"],\n getActionsCacheUsage: [\"GET /repos/{owner}/{repo}/actions/cache/usage\"],\n getActionsCacheUsageByRepoForOrg: [\"GET /orgs/{org}/actions/cache/usage-by-repository\"],\n getActionsCacheUsageForEnterprise: [\"GET /enterprises/{enterprise}/actions/cache/usage\"],\n getActionsCacheUsageForOrg: [\"GET /orgs/{org}/actions/cache/usage\"],\n getAllowedActionsOrganization: [\"GET /orgs/{org}/actions/permissions/selected-actions\"],\n getAllowedActionsRepository: [\"GET /repos/{owner}/{repo}/actions/permissions/selected-actions\"],\n getArtifact: [\"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"],\n getEnvironmentPublicKey: [\"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key\"],\n getEnvironmentSecret: [\"GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"],\n getGithubActionsDefaultWorkflowPermissionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions/workflow\"],\n getGithubActionsDefaultWorkflowPermissionsOrganization: [\"GET /orgs/{org}/actions/permissions/workflow\"],\n getGithubActionsDefaultWorkflowPermissionsRepository: [\"GET /repos/{owner}/{repo}/actions/permissions/workflow\"],\n getGithubActionsPermissionsOrganization: [\"GET /orgs/{org}/actions/permissions\"],\n getGithubActionsPermissionsRepository: [\"GET /repos/{owner}/{repo}/actions/permissions\"],\n getJobForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/jobs/{job_id}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/actions/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/actions/secrets/{secret_name}\"],\n getPendingDeploymentsForRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\"],\n getRepoPermissions: [\"GET /repos/{owner}/{repo}/actions/permissions\", {}, {\n renamed: [\"actions\", \"getGithubActionsPermissionsRepository\"]\n }],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/actions/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n getReviewsForRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals\"],\n getSelfHostedRunnerForOrg: [\"GET /orgs/{org}/actions/runners/{runner_id}\"],\n getSelfHostedRunnerForRepo: [\"GET /repos/{owner}/{repo}/actions/runners/{runner_id}\"],\n getWorkflow: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}\"],\n getWorkflowAccessToRepository: [\"GET /repos/{owner}/{repo}/actions/permissions/access\"],\n getWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n getWorkflowRunAttempt: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}\"],\n getWorkflowRunUsage: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing\"],\n getWorkflowUsage: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing\"],\n listArtifactsForRepo: [\"GET /repos/{owner}/{repo}/actions/artifacts\"],\n listEnvironmentSecrets: [\"GET /repositories/{repository_id}/environments/{environment_name}/secrets\"],\n listJobsForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\"],\n listJobsForWorkflowRunAttempt: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\"],\n listLabelsForSelfHostedRunnerForOrg: [\"GET /orgs/{org}/actions/runners/{runner_id}/labels\"],\n listLabelsForSelfHostedRunnerForRepo: [\"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n listOrgSecrets: [\"GET /orgs/{org}/actions/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/actions/secrets\"],\n listRepoWorkflows: [\"GET /repos/{owner}/{repo}/actions/workflows\"],\n listRunnerApplicationsForOrg: [\"GET /orgs/{org}/actions/runners/downloads\"],\n listRunnerApplicationsForRepo: [\"GET /repos/{owner}/{repo}/actions/runners/downloads\"],\n listSelectedReposForOrgSecret: [\"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\"],\n listSelectedRepositoriesEnabledGithubActionsOrganization: [\"GET /orgs/{org}/actions/permissions/repositories\"],\n listSelfHostedRunnersForOrg: [\"GET /orgs/{org}/actions/runners\"],\n listSelfHostedRunnersForRepo: [\"GET /repos/{owner}/{repo}/actions/runners\"],\n listWorkflowRunArtifacts: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\"],\n listWorkflowRuns: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\"],\n listWorkflowRunsForRepo: [\"GET /repos/{owner}/{repo}/actions/runs\"],\n reRunJobForWorkflowRun: [\"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun\"],\n reRunWorkflow: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun\"],\n reRunWorkflowFailedJobs: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs\"],\n removeAllCustomLabelsFromSelfHostedRunnerForOrg: [\"DELETE /orgs/{org}/actions/runners/{runner_id}/labels\"],\n removeAllCustomLabelsFromSelfHostedRunnerForRepo: [\"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n removeCustomLabelFromSelfHostedRunnerForOrg: [\"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}\"],\n removeCustomLabelFromSelfHostedRunnerForRepo: [\"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}\"],\n removeSelectedRepoFromOrgSecret: [\"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\"],\n reviewPendingDeploymentsForRun: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\"],\n setAllowedActionsOrganization: [\"PUT /orgs/{org}/actions/permissions/selected-actions\"],\n setAllowedActionsRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions\"],\n setCustomLabelsForSelfHostedRunnerForOrg: [\"PUT /orgs/{org}/actions/runners/{runner_id}/labels\"],\n setCustomLabelsForSelfHostedRunnerForRepo: [\"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n setGithubActionsDefaultWorkflowPermissionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/workflow\"],\n setGithubActionsDefaultWorkflowPermissionsOrganization: [\"PUT /orgs/{org}/actions/permissions/workflow\"],\n setGithubActionsDefaultWorkflowPermissionsRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions/workflow\"],\n setGithubActionsPermissionsOrganization: [\"PUT /orgs/{org}/actions/permissions\"],\n setGithubActionsPermissionsRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions\"],\n setSelectedReposForOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories\"],\n setSelectedRepositoriesEnabledGithubActionsOrganization: [\"PUT /orgs/{org}/actions/permissions/repositories\"],\n setWorkflowAccessToRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions/access\"]\n },\n activity: {\n checkRepoIsStarredByAuthenticatedUser: [\"GET /user/starred/{owner}/{repo}\"],\n deleteRepoSubscription: [\"DELETE /repos/{owner}/{repo}/subscription\"],\n deleteThreadSubscription: [\"DELETE /notifications/threads/{thread_id}/subscription\"],\n getFeeds: [\"GET /feeds\"],\n getRepoSubscription: [\"GET /repos/{owner}/{repo}/subscription\"],\n getThread: [\"GET /notifications/threads/{thread_id}\"],\n getThreadSubscriptionForAuthenticatedUser: [\"GET /notifications/threads/{thread_id}/subscription\"],\n listEventsForAuthenticatedUser: [\"GET /users/{username}/events\"],\n listNotificationsForAuthenticatedUser: [\"GET /notifications\"],\n listOrgEventsForAuthenticatedUser: [\"GET /users/{username}/events/orgs/{org}\"],\n listPublicEvents: [\"GET /events\"],\n listPublicEventsForRepoNetwork: [\"GET /networks/{owner}/{repo}/events\"],\n listPublicEventsForUser: [\"GET /users/{username}/events/public\"],\n listPublicOrgEvents: [\"GET /orgs/{org}/events\"],\n listReceivedEventsForUser: [\"GET /users/{username}/received_events\"],\n listReceivedPublicEventsForUser: [\"GET /users/{username}/received_events/public\"],\n listRepoEvents: [\"GET /repos/{owner}/{repo}/events\"],\n listRepoNotificationsForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/notifications\"],\n listReposStarredByAuthenticatedUser: [\"GET /user/starred\"],\n listReposStarredByUser: [\"GET /users/{username}/starred\"],\n listReposWatchedByUser: [\"GET /users/{username}/subscriptions\"],\n listStargazersForRepo: [\"GET /repos/{owner}/{repo}/stargazers\"],\n listWatchedReposForAuthenticatedUser: [\"GET /user/subscriptions\"],\n listWatchersForRepo: [\"GET /repos/{owner}/{repo}/subscribers\"],\n markNotificationsAsRead: [\"PUT /notifications\"],\n markRepoNotificationsAsRead: [\"PUT /repos/{owner}/{repo}/notifications\"],\n markThreadAsRead: [\"PATCH /notifications/threads/{thread_id}\"],\n setRepoSubscription: [\"PUT /repos/{owner}/{repo}/subscription\"],\n setThreadSubscription: [\"PUT /notifications/threads/{thread_id}/subscription\"],\n starRepoForAuthenticatedUser: [\"PUT /user/starred/{owner}/{repo}\"],\n unstarRepoForAuthenticatedUser: [\"DELETE /user/starred/{owner}/{repo}\"]\n },\n apps: {\n addRepoToInstallation: [\"PUT /user/installations/{installation_id}/repositories/{repository_id}\", {}, {\n renamed: [\"apps\", \"addRepoToInstallationForAuthenticatedUser\"]\n }],\n addRepoToInstallationForAuthenticatedUser: [\"PUT /user/installations/{installation_id}/repositories/{repository_id}\"],\n checkToken: [\"POST /applications/{client_id}/token\"],\n createFromManifest: [\"POST /app-manifests/{code}/conversions\"],\n createInstallationAccessToken: [\"POST /app/installations/{installation_id}/access_tokens\"],\n deleteAuthorization: [\"DELETE /applications/{client_id}/grant\"],\n deleteInstallation: [\"DELETE /app/installations/{installation_id}\"],\n deleteToken: [\"DELETE /applications/{client_id}/token\"],\n getAuthenticated: [\"GET /app\"],\n getBySlug: [\"GET /apps/{app_slug}\"],\n getInstallation: [\"GET /app/installations/{installation_id}\"],\n getOrgInstallation: [\"GET /orgs/{org}/installation\"],\n getRepoInstallation: [\"GET /repos/{owner}/{repo}/installation\"],\n getSubscriptionPlanForAccount: [\"GET /marketplace_listing/accounts/{account_id}\"],\n getSubscriptionPlanForAccountStubbed: [\"GET /marketplace_listing/stubbed/accounts/{account_id}\"],\n getUserInstallation: [\"GET /users/{username}/installation\"],\n getWebhookConfigForApp: [\"GET /app/hook/config\"],\n getWebhookDelivery: [\"GET /app/hook/deliveries/{delivery_id}\"],\n listAccountsForPlan: [\"GET /marketplace_listing/plans/{plan_id}/accounts\"],\n listAccountsForPlanStubbed: [\"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\"],\n listInstallationReposForAuthenticatedUser: [\"GET /user/installations/{installation_id}/repositories\"],\n listInstallations: [\"GET /app/installations\"],\n listInstallationsForAuthenticatedUser: [\"GET /user/installations\"],\n listPlans: [\"GET /marketplace_listing/plans\"],\n listPlansStubbed: [\"GET /marketplace_listing/stubbed/plans\"],\n listReposAccessibleToInstallation: [\"GET /installation/repositories\"],\n listSubscriptionsForAuthenticatedUser: [\"GET /user/marketplace_purchases\"],\n listSubscriptionsForAuthenticatedUserStubbed: [\"GET /user/marketplace_purchases/stubbed\"],\n listWebhookDeliveries: [\"GET /app/hook/deliveries\"],\n redeliverWebhookDelivery: [\"POST /app/hook/deliveries/{delivery_id}/attempts\"],\n removeRepoFromInstallation: [\"DELETE /user/installations/{installation_id}/repositories/{repository_id}\", {}, {\n renamed: [\"apps\", \"removeRepoFromInstallationForAuthenticatedUser\"]\n }],\n removeRepoFromInstallationForAuthenticatedUser: [\"DELETE /user/installations/{installation_id}/repositories/{repository_id}\"],\n resetToken: [\"PATCH /applications/{client_id}/token\"],\n revokeInstallationAccessToken: [\"DELETE /installation/token\"],\n scopeToken: [\"POST /applications/{client_id}/token/scoped\"],\n suspendInstallation: [\"PUT /app/installations/{installation_id}/suspended\"],\n unsuspendInstallation: [\"DELETE /app/installations/{installation_id}/suspended\"],\n updateWebhookConfigForApp: [\"PATCH /app/hook/config\"]\n },\n billing: {\n getGithubActionsBillingOrg: [\"GET /orgs/{org}/settings/billing/actions\"],\n getGithubActionsBillingUser: [\"GET /users/{username}/settings/billing/actions\"],\n getGithubAdvancedSecurityBillingGhe: [\"GET /enterprises/{enterprise}/settings/billing/advanced-security\"],\n getGithubAdvancedSecurityBillingOrg: [\"GET /orgs/{org}/settings/billing/advanced-security\"],\n getGithubPackagesBillingOrg: [\"GET /orgs/{org}/settings/billing/packages\"],\n getGithubPackagesBillingUser: [\"GET /users/{username}/settings/billing/packages\"],\n getSharedStorageBillingOrg: [\"GET /orgs/{org}/settings/billing/shared-storage\"],\n getSharedStorageBillingUser: [\"GET /users/{username}/settings/billing/shared-storage\"]\n },\n checks: {\n create: [\"POST /repos/{owner}/{repo}/check-runs\"],\n createSuite: [\"POST /repos/{owner}/{repo}/check-suites\"],\n get: [\"GET /repos/{owner}/{repo}/check-runs/{check_run_id}\"],\n getSuite: [\"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\"],\n listAnnotations: [\"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\"],\n listForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\"],\n listForSuite: [\"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\"],\n listSuitesForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\"],\n rerequestRun: [\"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest\"],\n rerequestSuite: [\"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\"],\n setSuitesPreferences: [\"PATCH /repos/{owner}/{repo}/check-suites/preferences\"],\n update: [\"PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\"]\n },\n codeScanning: {\n deleteAnalysis: [\"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}\"],\n getAlert: [\"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\", {}, {\n renamedParameters: {\n alert_id: \"alert_number\"\n }\n }],\n getAnalysis: [\"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}\"],\n getSarif: [\"GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}\"],\n listAlertInstances: [\"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\"],\n listAlertsForOrg: [\"GET /orgs/{org}/code-scanning/alerts\"],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/code-scanning/alerts\"],\n listAlertsInstances: [\"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\", {}, {\n renamed: [\"codeScanning\", \"listAlertInstances\"]\n }],\n listRecentAnalyses: [\"GET /repos/{owner}/{repo}/code-scanning/analyses\"],\n updateAlert: [\"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\"],\n uploadSarif: [\"POST /repos/{owner}/{repo}/code-scanning/sarifs\"]\n },\n codesOfConduct: {\n getAllCodesOfConduct: [\"GET /codes_of_conduct\"],\n getConductCode: [\"GET /codes_of_conduct/{key}\"]\n },\n codespaces: {\n addRepositoryForSecretForAuthenticatedUser: [\"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}\"],\n codespaceMachinesForAuthenticatedUser: [\"GET /user/codespaces/{codespace_name}/machines\"],\n createForAuthenticatedUser: [\"POST /user/codespaces\"],\n createOrUpdateRepoSecret: [\"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"],\n createOrUpdateSecretForAuthenticatedUser: [\"PUT /user/codespaces/secrets/{secret_name}\"],\n createWithPrForAuthenticatedUser: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces\"],\n createWithRepoForAuthenticatedUser: [\"POST /repos/{owner}/{repo}/codespaces\"],\n deleteForAuthenticatedUser: [\"DELETE /user/codespaces/{codespace_name}\"],\n deleteFromOrganization: [\"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}\"],\n deleteRepoSecret: [\"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"],\n deleteSecretForAuthenticatedUser: [\"DELETE /user/codespaces/secrets/{secret_name}\"],\n exportForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/exports\"],\n getExportDetailsForAuthenticatedUser: [\"GET /user/codespaces/{codespace_name}/exports/{export_id}\"],\n getForAuthenticatedUser: [\"GET /user/codespaces/{codespace_name}\"],\n getPublicKeyForAuthenticatedUser: [\"GET /user/codespaces/secrets/public-key\"],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/codespaces/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"],\n getSecretForAuthenticatedUser: [\"GET /user/codespaces/secrets/{secret_name}\"],\n listDevcontainersInRepositoryForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/codespaces/devcontainers\"],\n listForAuthenticatedUser: [\"GET /user/codespaces\"],\n listInOrganization: [\"GET /orgs/{org}/codespaces\", {}, {\n renamedParameters: {\n org_id: \"org\"\n }\n }],\n listInRepositoryForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/codespaces\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/codespaces/secrets\"],\n listRepositoriesForSecretForAuthenticatedUser: [\"GET /user/codespaces/secrets/{secret_name}/repositories\"],\n listSecretsForAuthenticatedUser: [\"GET /user/codespaces/secrets\"],\n removeRepositoryForSecretForAuthenticatedUser: [\"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}\"],\n repoMachinesForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/codespaces/machines\"],\n setRepositoriesForSecretForAuthenticatedUser: [\"PUT /user/codespaces/secrets/{secret_name}/repositories\"],\n startForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/start\"],\n stopForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/stop\"],\n stopInOrganization: [\"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop\"],\n updateForAuthenticatedUser: [\"PATCH /user/codespaces/{codespace_name}\"]\n },\n dependabot: {\n addSelectedRepoToOrgSecret: [\"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\"],\n createOrUpdateOrgSecret: [\"PUT /orgs/{org}/dependabot/secrets/{secret_name}\"],\n createOrUpdateRepoSecret: [\"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"],\n deleteOrgSecret: [\"DELETE /orgs/{org}/dependabot/secrets/{secret_name}\"],\n deleteRepoSecret: [\"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/dependabot/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/dependabot/secrets/{secret_name}\"],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/dependabot/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"],\n listOrgSecrets: [\"GET /orgs/{org}/dependabot/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/dependabot/secrets\"],\n listSelectedReposForOrgSecret: [\"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\"],\n removeSelectedRepoFromOrgSecret: [\"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\"],\n setSelectedReposForOrgSecret: [\"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories\"]\n },\n dependencyGraph: {\n createRepositorySnapshot: [\"POST /repos/{owner}/{repo}/dependency-graph/snapshots\"],\n diffRange: [\"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}\"]\n },\n emojis: {\n get: [\"GET /emojis\"]\n },\n enterpriseAdmin: {\n addCustomLabelsToSelfHostedRunnerForEnterprise: [\"POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n disableSelectedOrganizationGithubActionsEnterprise: [\"DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\"],\n enableSelectedOrganizationGithubActionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\"],\n getAllowedActionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions/selected-actions\"],\n getGithubActionsPermissionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions\"],\n getServerStatistics: [\"GET /enterprise-installation/{enterprise_or_org}/server-statistics\"],\n listLabelsForSelfHostedRunnerForEnterprise: [\"GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n listSelectedOrganizationsEnabledGithubActionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions/organizations\"],\n removeAllCustomLabelsFromSelfHostedRunnerForEnterprise: [\"DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n removeCustomLabelFromSelfHostedRunnerForEnterprise: [\"DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}\"],\n setAllowedActionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/selected-actions\"],\n setCustomLabelsForSelfHostedRunnerForEnterprise: [\"PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n setGithubActionsPermissionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions\"],\n setSelectedOrganizationsEnabledGithubActionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/organizations\"]\n },\n gists: {\n checkIsStarred: [\"GET /gists/{gist_id}/star\"],\n create: [\"POST /gists\"],\n createComment: [\"POST /gists/{gist_id}/comments\"],\n delete: [\"DELETE /gists/{gist_id}\"],\n deleteComment: [\"DELETE /gists/{gist_id}/comments/{comment_id}\"],\n fork: [\"POST /gists/{gist_id}/forks\"],\n get: [\"GET /gists/{gist_id}\"],\n getComment: [\"GET /gists/{gist_id}/comments/{comment_id}\"],\n getRevision: [\"GET /gists/{gist_id}/{sha}\"],\n list: [\"GET /gists\"],\n listComments: [\"GET /gists/{gist_id}/comments\"],\n listCommits: [\"GET /gists/{gist_id}/commits\"],\n listForUser: [\"GET /users/{username}/gists\"],\n listForks: [\"GET /gists/{gist_id}/forks\"],\n listPublic: [\"GET /gists/public\"],\n listStarred: [\"GET /gists/starred\"],\n star: [\"PUT /gists/{gist_id}/star\"],\n unstar: [\"DELETE /gists/{gist_id}/star\"],\n update: [\"PATCH /gists/{gist_id}\"],\n updateComment: [\"PATCH /gists/{gist_id}/comments/{comment_id}\"]\n },\n git: {\n createBlob: [\"POST /repos/{owner}/{repo}/git/blobs\"],\n createCommit: [\"POST /repos/{owner}/{repo}/git/commits\"],\n createRef: [\"POST /repos/{owner}/{repo}/git/refs\"],\n createTag: [\"POST /repos/{owner}/{repo}/git/tags\"],\n createTree: [\"POST /repos/{owner}/{repo}/git/trees\"],\n deleteRef: [\"DELETE /repos/{owner}/{repo}/git/refs/{ref}\"],\n getBlob: [\"GET /repos/{owner}/{repo}/git/blobs/{file_sha}\"],\n getCommit: [\"GET /repos/{owner}/{repo}/git/commits/{commit_sha}\"],\n getRef: [\"GET /repos/{owner}/{repo}/git/ref/{ref}\"],\n getTag: [\"GET /repos/{owner}/{repo}/git/tags/{tag_sha}\"],\n getTree: [\"GET /repos/{owner}/{repo}/git/trees/{tree_sha}\"],\n listMatchingRefs: [\"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\"],\n updateRef: [\"PATCH /repos/{owner}/{repo}/git/refs/{ref}\"]\n },\n gitignore: {\n getAllTemplates: [\"GET /gitignore/templates\"],\n getTemplate: [\"GET /gitignore/templates/{name}\"]\n },\n interactions: {\n getRestrictionsForAuthenticatedUser: [\"GET /user/interaction-limits\"],\n getRestrictionsForOrg: [\"GET /orgs/{org}/interaction-limits\"],\n getRestrictionsForRepo: [\"GET /repos/{owner}/{repo}/interaction-limits\"],\n getRestrictionsForYourPublicRepos: [\"GET /user/interaction-limits\", {}, {\n renamed: [\"interactions\", \"getRestrictionsForAuthenticatedUser\"]\n }],\n removeRestrictionsForAuthenticatedUser: [\"DELETE /user/interaction-limits\"],\n removeRestrictionsForOrg: [\"DELETE /orgs/{org}/interaction-limits\"],\n removeRestrictionsForRepo: [\"DELETE /repos/{owner}/{repo}/interaction-limits\"],\n removeRestrictionsForYourPublicRepos: [\"DELETE /user/interaction-limits\", {}, {\n renamed: [\"interactions\", \"removeRestrictionsForAuthenticatedUser\"]\n }],\n setRestrictionsForAuthenticatedUser: [\"PUT /user/interaction-limits\"],\n setRestrictionsForOrg: [\"PUT /orgs/{org}/interaction-limits\"],\n setRestrictionsForRepo: [\"PUT /repos/{owner}/{repo}/interaction-limits\"],\n setRestrictionsForYourPublicRepos: [\"PUT /user/interaction-limits\", {}, {\n renamed: [\"interactions\", \"setRestrictionsForAuthenticatedUser\"]\n }]\n },\n issues: {\n addAssignees: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\"],\n addLabels: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n checkUserCanBeAssigned: [\"GET /repos/{owner}/{repo}/assignees/{assignee}\"],\n create: [\"POST /repos/{owner}/{repo}/issues\"],\n createComment: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/comments\"],\n createLabel: [\"POST /repos/{owner}/{repo}/labels\"],\n createMilestone: [\"POST /repos/{owner}/{repo}/milestones\"],\n deleteComment: [\"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n deleteLabel: [\"DELETE /repos/{owner}/{repo}/labels/{name}\"],\n deleteMilestone: [\"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\"],\n get: [\"GET /repos/{owner}/{repo}/issues/{issue_number}\"],\n getComment: [\"GET /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n getEvent: [\"GET /repos/{owner}/{repo}/issues/events/{event_id}\"],\n getLabel: [\"GET /repos/{owner}/{repo}/labels/{name}\"],\n getMilestone: [\"GET /repos/{owner}/{repo}/milestones/{milestone_number}\"],\n list: [\"GET /issues\"],\n listAssignees: [\"GET /repos/{owner}/{repo}/assignees\"],\n listComments: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\"],\n listCommentsForRepo: [\"GET /repos/{owner}/{repo}/issues/comments\"],\n listEvents: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/events\"],\n listEventsForRepo: [\"GET /repos/{owner}/{repo}/issues/events\"],\n listEventsForTimeline: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\"],\n listForAuthenticatedUser: [\"GET /user/issues\"],\n listForOrg: [\"GET /orgs/{org}/issues\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/issues\"],\n listLabelsForMilestone: [\"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\"],\n listLabelsForRepo: [\"GET /repos/{owner}/{repo}/labels\"],\n listLabelsOnIssue: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n listMilestones: [\"GET /repos/{owner}/{repo}/milestones\"],\n lock: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n removeAllLabels: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n removeAssignees: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees\"],\n removeLabel: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\"],\n setLabels: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n unlock: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n update: [\"PATCH /repos/{owner}/{repo}/issues/{issue_number}\"],\n updateComment: [\"PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n updateLabel: [\"PATCH /repos/{owner}/{repo}/labels/{name}\"],\n updateMilestone: [\"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\"]\n },\n licenses: {\n get: [\"GET /licenses/{license}\"],\n getAllCommonlyUsed: [\"GET /licenses\"],\n getForRepo: [\"GET /repos/{owner}/{repo}/license\"]\n },\n markdown: {\n render: [\"POST /markdown\"],\n renderRaw: [\"POST /markdown/raw\", {\n headers: {\n \"content-type\": \"text/plain; charset=utf-8\"\n }\n }]\n },\n meta: {\n get: [\"GET /meta\"],\n getOctocat: [\"GET /octocat\"],\n getZen: [\"GET /zen\"],\n root: [\"GET /\"]\n },\n migrations: {\n cancelImport: [\"DELETE /repos/{owner}/{repo}/import\"],\n deleteArchiveForAuthenticatedUser: [\"DELETE /user/migrations/{migration_id}/archive\"],\n deleteArchiveForOrg: [\"DELETE /orgs/{org}/migrations/{migration_id}/archive\"],\n downloadArchiveForOrg: [\"GET /orgs/{org}/migrations/{migration_id}/archive\"],\n getArchiveForAuthenticatedUser: [\"GET /user/migrations/{migration_id}/archive\"],\n getCommitAuthors: [\"GET /repos/{owner}/{repo}/import/authors\"],\n getImportStatus: [\"GET /repos/{owner}/{repo}/import\"],\n getLargeFiles: [\"GET /repos/{owner}/{repo}/import/large_files\"],\n getStatusForAuthenticatedUser: [\"GET /user/migrations/{migration_id}\"],\n getStatusForOrg: [\"GET /orgs/{org}/migrations/{migration_id}\"],\n listForAuthenticatedUser: [\"GET /user/migrations\"],\n listForOrg: [\"GET /orgs/{org}/migrations\"],\n listReposForAuthenticatedUser: [\"GET /user/migrations/{migration_id}/repositories\"],\n listReposForOrg: [\"GET /orgs/{org}/migrations/{migration_id}/repositories\"],\n listReposForUser: [\"GET /user/migrations/{migration_id}/repositories\", {}, {\n renamed: [\"migrations\", \"listReposForAuthenticatedUser\"]\n }],\n mapCommitAuthor: [\"PATCH /repos/{owner}/{repo}/import/authors/{author_id}\"],\n setLfsPreference: [\"PATCH /repos/{owner}/{repo}/import/lfs\"],\n startForAuthenticatedUser: [\"POST /user/migrations\"],\n startForOrg: [\"POST /orgs/{org}/migrations\"],\n startImport: [\"PUT /repos/{owner}/{repo}/import\"],\n unlockRepoForAuthenticatedUser: [\"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock\"],\n unlockRepoForOrg: [\"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock\"],\n updateImport: [\"PATCH /repos/{owner}/{repo}/import\"]\n },\n orgs: {\n blockUser: [\"PUT /orgs/{org}/blocks/{username}\"],\n cancelInvitation: [\"DELETE /orgs/{org}/invitations/{invitation_id}\"],\n checkBlockedUser: [\"GET /orgs/{org}/blocks/{username}\"],\n checkMembershipForUser: [\"GET /orgs/{org}/members/{username}\"],\n checkPublicMembershipForUser: [\"GET /orgs/{org}/public_members/{username}\"],\n convertMemberToOutsideCollaborator: [\"PUT /orgs/{org}/outside_collaborators/{username}\"],\n createInvitation: [\"POST /orgs/{org}/invitations\"],\n createWebhook: [\"POST /orgs/{org}/hooks\"],\n deleteWebhook: [\"DELETE /orgs/{org}/hooks/{hook_id}\"],\n get: [\"GET /orgs/{org}\"],\n getMembershipForAuthenticatedUser: [\"GET /user/memberships/orgs/{org}\"],\n getMembershipForUser: [\"GET /orgs/{org}/memberships/{username}\"],\n getWebhook: [\"GET /orgs/{org}/hooks/{hook_id}\"],\n getWebhookConfigForOrg: [\"GET /orgs/{org}/hooks/{hook_id}/config\"],\n getWebhookDelivery: [\"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}\"],\n list: [\"GET /organizations\"],\n listAppInstallations: [\"GET /orgs/{org}/installations\"],\n listBlockedUsers: [\"GET /orgs/{org}/blocks\"],\n listCustomRoles: [\"GET /organizations/{organization_id}/custom_roles\"],\n listFailedInvitations: [\"GET /orgs/{org}/failed_invitations\"],\n listForAuthenticatedUser: [\"GET /user/orgs\"],\n listForUser: [\"GET /users/{username}/orgs\"],\n listInvitationTeams: [\"GET /orgs/{org}/invitations/{invitation_id}/teams\"],\n listMembers: [\"GET /orgs/{org}/members\"],\n listMembershipsForAuthenticatedUser: [\"GET /user/memberships/orgs\"],\n listOutsideCollaborators: [\"GET /orgs/{org}/outside_collaborators\"],\n listPendingInvitations: [\"GET /orgs/{org}/invitations\"],\n listPublicMembers: [\"GET /orgs/{org}/public_members\"],\n listWebhookDeliveries: [\"GET /orgs/{org}/hooks/{hook_id}/deliveries\"],\n listWebhooks: [\"GET /orgs/{org}/hooks\"],\n pingWebhook: [\"POST /orgs/{org}/hooks/{hook_id}/pings\"],\n redeliverWebhookDelivery: [\"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\"],\n removeMember: [\"DELETE /orgs/{org}/members/{username}\"],\n removeMembershipForUser: [\"DELETE /orgs/{org}/memberships/{username}\"],\n removeOutsideCollaborator: [\"DELETE /orgs/{org}/outside_collaborators/{username}\"],\n removePublicMembershipForAuthenticatedUser: [\"DELETE /orgs/{org}/public_members/{username}\"],\n setMembershipForUser: [\"PUT /orgs/{org}/memberships/{username}\"],\n setPublicMembershipForAuthenticatedUser: [\"PUT /orgs/{org}/public_members/{username}\"],\n unblockUser: [\"DELETE /orgs/{org}/blocks/{username}\"],\n update: [\"PATCH /orgs/{org}\"],\n updateMembershipForAuthenticatedUser: [\"PATCH /user/memberships/orgs/{org}\"],\n updateWebhook: [\"PATCH /orgs/{org}/hooks/{hook_id}\"],\n updateWebhookConfigForOrg: [\"PATCH /orgs/{org}/hooks/{hook_id}/config\"]\n },\n packages: {\n deletePackageForAuthenticatedUser: [\"DELETE /user/packages/{package_type}/{package_name}\"],\n deletePackageForOrg: [\"DELETE /orgs/{org}/packages/{package_type}/{package_name}\"],\n deletePackageForUser: [\"DELETE /users/{username}/packages/{package_type}/{package_name}\"],\n deletePackageVersionForAuthenticatedUser: [\"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n deletePackageVersionForOrg: [\"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n deletePackageVersionForUser: [\"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n getAllPackageVersionsForAPackageOwnedByAnOrg: [\"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\", {}, {\n renamed: [\"packages\", \"getAllPackageVersionsForPackageOwnedByOrg\"]\n }],\n getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}/versions\", {}, {\n renamed: [\"packages\", \"getAllPackageVersionsForPackageOwnedByAuthenticatedUser\"]\n }],\n getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}/versions\"],\n getAllPackageVersionsForPackageOwnedByOrg: [\"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\"],\n getAllPackageVersionsForPackageOwnedByUser: [\"GET /users/{username}/packages/{package_type}/{package_name}/versions\"],\n getPackageForAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}\"],\n getPackageForOrganization: [\"GET /orgs/{org}/packages/{package_type}/{package_name}\"],\n getPackageForUser: [\"GET /users/{username}/packages/{package_type}/{package_name}\"],\n getPackageVersionForAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n getPackageVersionForOrganization: [\"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n getPackageVersionForUser: [\"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n listPackagesForAuthenticatedUser: [\"GET /user/packages\"],\n listPackagesForOrganization: [\"GET /orgs/{org}/packages\"],\n listPackagesForUser: [\"GET /users/{username}/packages\"],\n restorePackageForAuthenticatedUser: [\"POST /user/packages/{package_type}/{package_name}/restore{?token}\"],\n restorePackageForOrg: [\"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}\"],\n restorePackageForUser: [\"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}\"],\n restorePackageVersionForAuthenticatedUser: [\"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"],\n restorePackageVersionForOrg: [\"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"],\n restorePackageVersionForUser: [\"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"]\n },\n projects: {\n addCollaborator: [\"PUT /projects/{project_id}/collaborators/{username}\"],\n createCard: [\"POST /projects/columns/{column_id}/cards\"],\n createColumn: [\"POST /projects/{project_id}/columns\"],\n createForAuthenticatedUser: [\"POST /user/projects\"],\n createForOrg: [\"POST /orgs/{org}/projects\"],\n createForRepo: [\"POST /repos/{owner}/{repo}/projects\"],\n delete: [\"DELETE /projects/{project_id}\"],\n deleteCard: [\"DELETE /projects/columns/cards/{card_id}\"],\n deleteColumn: [\"DELETE /projects/columns/{column_id}\"],\n get: [\"GET /projects/{project_id}\"],\n getCard: [\"GET /projects/columns/cards/{card_id}\"],\n getColumn: [\"GET /projects/columns/{column_id}\"],\n getPermissionForUser: [\"GET /projects/{project_id}/collaborators/{username}/permission\"],\n listCards: [\"GET /projects/columns/{column_id}/cards\"],\n listCollaborators: [\"GET /projects/{project_id}/collaborators\"],\n listColumns: [\"GET /projects/{project_id}/columns\"],\n listForOrg: [\"GET /orgs/{org}/projects\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/projects\"],\n listForUser: [\"GET /users/{username}/projects\"],\n moveCard: [\"POST /projects/columns/cards/{card_id}/moves\"],\n moveColumn: [\"POST /projects/columns/{column_id}/moves\"],\n removeCollaborator: [\"DELETE /projects/{project_id}/collaborators/{username}\"],\n update: [\"PATCH /projects/{project_id}\"],\n updateCard: [\"PATCH /projects/columns/cards/{card_id}\"],\n updateColumn: [\"PATCH /projects/columns/{column_id}\"]\n },\n pulls: {\n checkIfMerged: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n create: [\"POST /repos/{owner}/{repo}/pulls\"],\n createReplyForReviewComment: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\"],\n createReview: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n createReviewComment: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments\"],\n deletePendingReview: [\"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"],\n deleteReviewComment: [\"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}\"],\n dismissReview: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals\"],\n get: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}\"],\n getReview: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"],\n getReviewComment: [\"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}\"],\n list: [\"GET /repos/{owner}/{repo}/pulls\"],\n listCommentsForReview: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\"],\n listCommits: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\"],\n listFiles: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\"],\n listRequestedReviewers: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"],\n listReviewComments: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\"],\n listReviewCommentsForRepo: [\"GET /repos/{owner}/{repo}/pulls/comments\"],\n listReviews: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n merge: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n removeRequestedReviewers: [\"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"],\n requestReviewers: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"],\n submitReview: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\"],\n update: [\"PATCH /repos/{owner}/{repo}/pulls/{pull_number}\"],\n updateBranch: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch\"],\n updateReview: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"],\n updateReviewComment: [\"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}\"]\n },\n rateLimit: {\n get: [\"GET /rate_limit\"]\n },\n reactions: {\n createForCommitComment: [\"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\"],\n createForIssue: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions\"],\n createForIssueComment: [\"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\"],\n createForPullRequestReviewComment: [\"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\"],\n createForRelease: [\"POST /repos/{owner}/{repo}/releases/{release_id}/reactions\"],\n createForTeamDiscussionCommentInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\"],\n createForTeamDiscussionInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\"],\n deleteForCommitComment: [\"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}\"],\n deleteForIssue: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}\"],\n deleteForIssueComment: [\"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}\"],\n deleteForPullRequestComment: [\"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}\"],\n deleteForRelease: [\"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}\"],\n deleteForTeamDiscussion: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}\"],\n deleteForTeamDiscussionComment: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}\"],\n listForCommitComment: [\"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\"],\n listForIssue: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\"],\n listForIssueComment: [\"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\"],\n listForPullRequestReviewComment: [\"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\"],\n listForRelease: [\"GET /repos/{owner}/{repo}/releases/{release_id}/reactions\"],\n listForTeamDiscussionCommentInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\"],\n listForTeamDiscussionInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\"]\n },\n repos: {\n acceptInvitation: [\"PATCH /user/repository_invitations/{invitation_id}\", {}, {\n renamed: [\"repos\", \"acceptInvitationForAuthenticatedUser\"]\n }],\n acceptInvitationForAuthenticatedUser: [\"PATCH /user/repository_invitations/{invitation_id}\"],\n addAppAccessRestrictions: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\", {}, {\n mapToData: \"apps\"\n }],\n addCollaborator: [\"PUT /repos/{owner}/{repo}/collaborators/{username}\"],\n addStatusCheckContexts: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\", {}, {\n mapToData: \"contexts\"\n }],\n addTeamAccessRestrictions: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\", {}, {\n mapToData: \"teams\"\n }],\n addUserAccessRestrictions: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\", {}, {\n mapToData: \"users\"\n }],\n checkCollaborator: [\"GET /repos/{owner}/{repo}/collaborators/{username}\"],\n checkVulnerabilityAlerts: [\"GET /repos/{owner}/{repo}/vulnerability-alerts\"],\n codeownersErrors: [\"GET /repos/{owner}/{repo}/codeowners/errors\"],\n compareCommits: [\"GET /repos/{owner}/{repo}/compare/{base}...{head}\"],\n compareCommitsWithBasehead: [\"GET /repos/{owner}/{repo}/compare/{basehead}\"],\n createAutolink: [\"POST /repos/{owner}/{repo}/autolinks\"],\n createCommitComment: [\"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments\"],\n createCommitSignatureProtection: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"],\n createCommitStatus: [\"POST /repos/{owner}/{repo}/statuses/{sha}\"],\n createDeployKey: [\"POST /repos/{owner}/{repo}/keys\"],\n createDeployment: [\"POST /repos/{owner}/{repo}/deployments\"],\n createDeploymentStatus: [\"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\"],\n createDispatchEvent: [\"POST /repos/{owner}/{repo}/dispatches\"],\n createForAuthenticatedUser: [\"POST /user/repos\"],\n createFork: [\"POST /repos/{owner}/{repo}/forks\"],\n createInOrg: [\"POST /orgs/{org}/repos\"],\n createOrUpdateEnvironment: [\"PUT /repos/{owner}/{repo}/environments/{environment_name}\"],\n createOrUpdateFileContents: [\"PUT /repos/{owner}/{repo}/contents/{path}\"],\n createPagesSite: [\"POST /repos/{owner}/{repo}/pages\"],\n createRelease: [\"POST /repos/{owner}/{repo}/releases\"],\n createTagProtection: [\"POST /repos/{owner}/{repo}/tags/protection\"],\n createUsingTemplate: [\"POST /repos/{template_owner}/{template_repo}/generate\"],\n createWebhook: [\"POST /repos/{owner}/{repo}/hooks\"],\n declineInvitation: [\"DELETE /user/repository_invitations/{invitation_id}\", {}, {\n renamed: [\"repos\", \"declineInvitationForAuthenticatedUser\"]\n }],\n declineInvitationForAuthenticatedUser: [\"DELETE /user/repository_invitations/{invitation_id}\"],\n delete: [\"DELETE /repos/{owner}/{repo}\"],\n deleteAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\"],\n deleteAdminBranchProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"],\n deleteAnEnvironment: [\"DELETE /repos/{owner}/{repo}/environments/{environment_name}\"],\n deleteAutolink: [\"DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}\"],\n deleteBranchProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection\"],\n deleteCommitComment: [\"DELETE /repos/{owner}/{repo}/comments/{comment_id}\"],\n deleteCommitSignatureProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"],\n deleteDeployKey: [\"DELETE /repos/{owner}/{repo}/keys/{key_id}\"],\n deleteDeployment: [\"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}\"],\n deleteFile: [\"DELETE /repos/{owner}/{repo}/contents/{path}\"],\n deleteInvitation: [\"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\"],\n deletePagesSite: [\"DELETE /repos/{owner}/{repo}/pages\"],\n deletePullRequestReviewProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"],\n deleteRelease: [\"DELETE /repos/{owner}/{repo}/releases/{release_id}\"],\n deleteReleaseAsset: [\"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n deleteTagProtection: [\"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}\"],\n deleteWebhook: [\"DELETE /repos/{owner}/{repo}/hooks/{hook_id}\"],\n disableAutomatedSecurityFixes: [\"DELETE /repos/{owner}/{repo}/automated-security-fixes\"],\n disableLfsForRepo: [\"DELETE /repos/{owner}/{repo}/lfs\"],\n disableVulnerabilityAlerts: [\"DELETE /repos/{owner}/{repo}/vulnerability-alerts\"],\n downloadArchive: [\"GET /repos/{owner}/{repo}/zipball/{ref}\", {}, {\n renamed: [\"repos\", \"downloadZipballArchive\"]\n }],\n downloadTarballArchive: [\"GET /repos/{owner}/{repo}/tarball/{ref}\"],\n downloadZipballArchive: [\"GET /repos/{owner}/{repo}/zipball/{ref}\"],\n enableAutomatedSecurityFixes: [\"PUT /repos/{owner}/{repo}/automated-security-fixes\"],\n enableLfsForRepo: [\"PUT /repos/{owner}/{repo}/lfs\"],\n enableVulnerabilityAlerts: [\"PUT /repos/{owner}/{repo}/vulnerability-alerts\"],\n generateReleaseNotes: [\"POST /repos/{owner}/{repo}/releases/generate-notes\"],\n get: [\"GET /repos/{owner}/{repo}\"],\n getAccessRestrictions: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\"],\n getAdminBranchProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"],\n getAllEnvironments: [\"GET /repos/{owner}/{repo}/environments\"],\n getAllStatusCheckContexts: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\"],\n getAllTopics: [\"GET /repos/{owner}/{repo}/topics\"],\n getAppsWithAccessToProtectedBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\"],\n getAutolink: [\"GET /repos/{owner}/{repo}/autolinks/{autolink_id}\"],\n getBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}\"],\n getBranchProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection\"],\n getClones: [\"GET /repos/{owner}/{repo}/traffic/clones\"],\n getCodeFrequencyStats: [\"GET /repos/{owner}/{repo}/stats/code_frequency\"],\n getCollaboratorPermissionLevel: [\"GET /repos/{owner}/{repo}/collaborators/{username}/permission\"],\n getCombinedStatusForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/status\"],\n getCommit: [\"GET /repos/{owner}/{repo}/commits/{ref}\"],\n getCommitActivityStats: [\"GET /repos/{owner}/{repo}/stats/commit_activity\"],\n getCommitComment: [\"GET /repos/{owner}/{repo}/comments/{comment_id}\"],\n getCommitSignatureProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"],\n getCommunityProfileMetrics: [\"GET /repos/{owner}/{repo}/community/profile\"],\n getContent: [\"GET /repos/{owner}/{repo}/contents/{path}\"],\n getContributorsStats: [\"GET /repos/{owner}/{repo}/stats/contributors\"],\n getDeployKey: [\"GET /repos/{owner}/{repo}/keys/{key_id}\"],\n getDeployment: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}\"],\n getDeploymentStatus: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\"],\n getEnvironment: [\"GET /repos/{owner}/{repo}/environments/{environment_name}\"],\n getLatestPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/latest\"],\n getLatestRelease: [\"GET /repos/{owner}/{repo}/releases/latest\"],\n getPages: [\"GET /repos/{owner}/{repo}/pages\"],\n getPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/{build_id}\"],\n getPagesHealthCheck: [\"GET /repos/{owner}/{repo}/pages/health\"],\n getParticipationStats: [\"GET /repos/{owner}/{repo}/stats/participation\"],\n getPullRequestReviewProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"],\n getPunchCardStats: [\"GET /repos/{owner}/{repo}/stats/punch_card\"],\n getReadme: [\"GET /repos/{owner}/{repo}/readme\"],\n getReadmeInDirectory: [\"GET /repos/{owner}/{repo}/readme/{dir}\"],\n getRelease: [\"GET /repos/{owner}/{repo}/releases/{release_id}\"],\n getReleaseAsset: [\"GET /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n getReleaseByTag: [\"GET /repos/{owner}/{repo}/releases/tags/{tag}\"],\n getStatusChecksProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"],\n getTeamsWithAccessToProtectedBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\"],\n getTopPaths: [\"GET /repos/{owner}/{repo}/traffic/popular/paths\"],\n getTopReferrers: [\"GET /repos/{owner}/{repo}/traffic/popular/referrers\"],\n getUsersWithAccessToProtectedBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\"],\n getViews: [\"GET /repos/{owner}/{repo}/traffic/views\"],\n getWebhook: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}\"],\n getWebhookConfigForRepo: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}/config\"],\n getWebhookDelivery: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}\"],\n listAutolinks: [\"GET /repos/{owner}/{repo}/autolinks\"],\n listBranches: [\"GET /repos/{owner}/{repo}/branches\"],\n listBranchesForHeadCommit: [\"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\"],\n listCollaborators: [\"GET /repos/{owner}/{repo}/collaborators\"],\n listCommentsForCommit: [\"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\"],\n listCommitCommentsForRepo: [\"GET /repos/{owner}/{repo}/comments\"],\n listCommitStatusesForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/statuses\"],\n listCommits: [\"GET /repos/{owner}/{repo}/commits\"],\n listContributors: [\"GET /repos/{owner}/{repo}/contributors\"],\n listDeployKeys: [\"GET /repos/{owner}/{repo}/keys\"],\n listDeploymentStatuses: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\"],\n listDeployments: [\"GET /repos/{owner}/{repo}/deployments\"],\n listForAuthenticatedUser: [\"GET /user/repos\"],\n listForOrg: [\"GET /orgs/{org}/repos\"],\n listForUser: [\"GET /users/{username}/repos\"],\n listForks: [\"GET /repos/{owner}/{repo}/forks\"],\n listInvitations: [\"GET /repos/{owner}/{repo}/invitations\"],\n listInvitationsForAuthenticatedUser: [\"GET /user/repository_invitations\"],\n listLanguages: [\"GET /repos/{owner}/{repo}/languages\"],\n listPagesBuilds: [\"GET /repos/{owner}/{repo}/pages/builds\"],\n listPublic: [\"GET /repositories\"],\n listPullRequestsAssociatedWithCommit: [\"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\"],\n listReleaseAssets: [\"GET /repos/{owner}/{repo}/releases/{release_id}/assets\"],\n listReleases: [\"GET /repos/{owner}/{repo}/releases\"],\n listTagProtection: [\"GET /repos/{owner}/{repo}/tags/protection\"],\n listTags: [\"GET /repos/{owner}/{repo}/tags\"],\n listTeams: [\"GET /repos/{owner}/{repo}/teams\"],\n listWebhookDeliveries: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\"],\n listWebhooks: [\"GET /repos/{owner}/{repo}/hooks\"],\n merge: [\"POST /repos/{owner}/{repo}/merges\"],\n mergeUpstream: [\"POST /repos/{owner}/{repo}/merge-upstream\"],\n pingWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/pings\"],\n redeliverWebhookDelivery: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\"],\n removeAppAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\", {}, {\n mapToData: \"apps\"\n }],\n removeCollaborator: [\"DELETE /repos/{owner}/{repo}/collaborators/{username}\"],\n removeStatusCheckContexts: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\", {}, {\n mapToData: \"contexts\"\n }],\n removeStatusCheckProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"],\n removeTeamAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\", {}, {\n mapToData: \"teams\"\n }],\n removeUserAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\", {}, {\n mapToData: \"users\"\n }],\n renameBranch: [\"POST /repos/{owner}/{repo}/branches/{branch}/rename\"],\n replaceAllTopics: [\"PUT /repos/{owner}/{repo}/topics\"],\n requestPagesBuild: [\"POST /repos/{owner}/{repo}/pages/builds\"],\n setAdminBranchProtection: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"],\n setAppAccessRestrictions: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\", {}, {\n mapToData: \"apps\"\n }],\n setStatusCheckContexts: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\", {}, {\n mapToData: \"contexts\"\n }],\n setTeamAccessRestrictions: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\", {}, {\n mapToData: \"teams\"\n }],\n setUserAccessRestrictions: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\", {}, {\n mapToData: \"users\"\n }],\n testPushWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\"],\n transfer: [\"POST /repos/{owner}/{repo}/transfer\"],\n update: [\"PATCH /repos/{owner}/{repo}\"],\n updateBranchProtection: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection\"],\n updateCommitComment: [\"PATCH /repos/{owner}/{repo}/comments/{comment_id}\"],\n updateInformationAboutPagesSite: [\"PUT /repos/{owner}/{repo}/pages\"],\n updateInvitation: [\"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\"],\n updatePullRequestReviewProtection: [\"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"],\n updateRelease: [\"PATCH /repos/{owner}/{repo}/releases/{release_id}\"],\n updateReleaseAsset: [\"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n updateStatusCheckPotection: [\"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\", {}, {\n renamed: [\"repos\", \"updateStatusCheckProtection\"]\n }],\n updateStatusCheckProtection: [\"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"],\n updateWebhook: [\"PATCH /repos/{owner}/{repo}/hooks/{hook_id}\"],\n updateWebhookConfigForRepo: [\"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config\"],\n uploadReleaseAsset: [\"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}\", {\n baseUrl: \"https://uploads.github.com\"\n }]\n },\n search: {\n code: [\"GET /search/code\"],\n commits: [\"GET /search/commits\"],\n issuesAndPullRequests: [\"GET /search/issues\"],\n labels: [\"GET /search/labels\"],\n repos: [\"GET /search/repositories\"],\n topics: [\"GET /search/topics\"],\n users: [\"GET /search/users\"]\n },\n secretScanning: {\n getAlert: [\"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\"],\n listAlertsForEnterprise: [\"GET /enterprises/{enterprise}/secret-scanning/alerts\"],\n listAlertsForOrg: [\"GET /orgs/{org}/secret-scanning/alerts\"],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/secret-scanning/alerts\"],\n listLocationsForAlert: [\"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\"],\n updateAlert: [\"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\"]\n },\n teams: {\n addOrUpdateMembershipForUserInOrg: [\"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}\"],\n addOrUpdateProjectPermissionsInOrg: [\"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}\"],\n addOrUpdateRepoPermissionsInOrg: [\"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"],\n checkPermissionsForProjectInOrg: [\"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}\"],\n checkPermissionsForRepoInOrg: [\"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"],\n create: [\"POST /orgs/{org}/teams\"],\n createDiscussionCommentInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\"],\n createDiscussionInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions\"],\n deleteDiscussionCommentInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"],\n deleteDiscussionInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"],\n deleteInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}\"],\n getByName: [\"GET /orgs/{org}/teams/{team_slug}\"],\n getDiscussionCommentInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"],\n getDiscussionInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"],\n getMembershipForUserInOrg: [\"GET /orgs/{org}/teams/{team_slug}/memberships/{username}\"],\n list: [\"GET /orgs/{org}/teams\"],\n listChildInOrg: [\"GET /orgs/{org}/teams/{team_slug}/teams\"],\n listDiscussionCommentsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\"],\n listDiscussionsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions\"],\n listForAuthenticatedUser: [\"GET /user/teams\"],\n listMembersInOrg: [\"GET /orgs/{org}/teams/{team_slug}/members\"],\n listPendingInvitationsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/invitations\"],\n listProjectsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/projects\"],\n listReposInOrg: [\"GET /orgs/{org}/teams/{team_slug}/repos\"],\n removeMembershipForUserInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}\"],\n removeProjectInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}\"],\n removeRepoInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"],\n updateDiscussionCommentInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"],\n updateDiscussionInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"],\n updateInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}\"]\n },\n users: {\n addEmailForAuthenticated: [\"POST /user/emails\", {}, {\n renamed: [\"users\", \"addEmailForAuthenticatedUser\"]\n }],\n addEmailForAuthenticatedUser: [\"POST /user/emails\"],\n block: [\"PUT /user/blocks/{username}\"],\n checkBlocked: [\"GET /user/blocks/{username}\"],\n checkFollowingForUser: [\"GET /users/{username}/following/{target_user}\"],\n checkPersonIsFollowedByAuthenticated: [\"GET /user/following/{username}\"],\n createGpgKeyForAuthenticated: [\"POST /user/gpg_keys\", {}, {\n renamed: [\"users\", \"createGpgKeyForAuthenticatedUser\"]\n }],\n createGpgKeyForAuthenticatedUser: [\"POST /user/gpg_keys\"],\n createPublicSshKeyForAuthenticated: [\"POST /user/keys\", {}, {\n renamed: [\"users\", \"createPublicSshKeyForAuthenticatedUser\"]\n }],\n createPublicSshKeyForAuthenticatedUser: [\"POST /user/keys\"],\n deleteEmailForAuthenticated: [\"DELETE /user/emails\", {}, {\n renamed: [\"users\", \"deleteEmailForAuthenticatedUser\"]\n }],\n deleteEmailForAuthenticatedUser: [\"DELETE /user/emails\"],\n deleteGpgKeyForAuthenticated: [\"DELETE /user/gpg_keys/{gpg_key_id}\", {}, {\n renamed: [\"users\", \"deleteGpgKeyForAuthenticatedUser\"]\n }],\n deleteGpgKeyForAuthenticatedUser: [\"DELETE /user/gpg_keys/{gpg_key_id}\"],\n deletePublicSshKeyForAuthenticated: [\"DELETE /user/keys/{key_id}\", {}, {\n renamed: [\"users\", \"deletePublicSshKeyForAuthenticatedUser\"]\n }],\n deletePublicSshKeyForAuthenticatedUser: [\"DELETE /user/keys/{key_id}\"],\n follow: [\"PUT /user/following/{username}\"],\n getAuthenticated: [\"GET /user\"],\n getByUsername: [\"GET /users/{username}\"],\n getContextForUser: [\"GET /users/{username}/hovercard\"],\n getGpgKeyForAuthenticated: [\"GET /user/gpg_keys/{gpg_key_id}\", {}, {\n renamed: [\"users\", \"getGpgKeyForAuthenticatedUser\"]\n }],\n getGpgKeyForAuthenticatedUser: [\"GET /user/gpg_keys/{gpg_key_id}\"],\n getPublicSshKeyForAuthenticated: [\"GET /user/keys/{key_id}\", {}, {\n renamed: [\"users\", \"getPublicSshKeyForAuthenticatedUser\"]\n }],\n getPublicSshKeyForAuthenticatedUser: [\"GET /user/keys/{key_id}\"],\n list: [\"GET /users\"],\n listBlockedByAuthenticated: [\"GET /user/blocks\", {}, {\n renamed: [\"users\", \"listBlockedByAuthenticatedUser\"]\n }],\n listBlockedByAuthenticatedUser: [\"GET /user/blocks\"],\n listEmailsForAuthenticated: [\"GET /user/emails\", {}, {\n renamed: [\"users\", \"listEmailsForAuthenticatedUser\"]\n }],\n listEmailsForAuthenticatedUser: [\"GET /user/emails\"],\n listFollowedByAuthenticated: [\"GET /user/following\", {}, {\n renamed: [\"users\", \"listFollowedByAuthenticatedUser\"]\n }],\n listFollowedByAuthenticatedUser: [\"GET /user/following\"],\n listFollowersForAuthenticatedUser: [\"GET /user/followers\"],\n listFollowersForUser: [\"GET /users/{username}/followers\"],\n listFollowingForUser: [\"GET /users/{username}/following\"],\n listGpgKeysForAuthenticated: [\"GET /user/gpg_keys\", {}, {\n renamed: [\"users\", \"listGpgKeysForAuthenticatedUser\"]\n }],\n listGpgKeysForAuthenticatedUser: [\"GET /user/gpg_keys\"],\n listGpgKeysForUser: [\"GET /users/{username}/gpg_keys\"],\n listPublicEmailsForAuthenticated: [\"GET /user/public_emails\", {}, {\n renamed: [\"users\", \"listPublicEmailsForAuthenticatedUser\"]\n }],\n listPublicEmailsForAuthenticatedUser: [\"GET /user/public_emails\"],\n listPublicKeysForUser: [\"GET /users/{username}/keys\"],\n listPublicSshKeysForAuthenticated: [\"GET /user/keys\", {}, {\n renamed: [\"users\", \"listPublicSshKeysForAuthenticatedUser\"]\n }],\n listPublicSshKeysForAuthenticatedUser: [\"GET /user/keys\"],\n setPrimaryEmailVisibilityForAuthenticated: [\"PATCH /user/email/visibility\", {}, {\n renamed: [\"users\", \"setPrimaryEmailVisibilityForAuthenticatedUser\"]\n }],\n setPrimaryEmailVisibilityForAuthenticatedUser: [\"PATCH /user/email/visibility\"],\n unblock: [\"DELETE /user/blocks/{username}\"],\n unfollow: [\"DELETE /user/following/{username}\"],\n updateAuthenticated: [\"PATCH /user\"]\n }\n};\n\nconst VERSION = \"5.16.2\";\n\nfunction endpointsToMethods(octokit, endpointsMap) {\n const newMethods = {};\n\n for (const [scope, endpoints] of Object.entries(endpointsMap)) {\n for (const [methodName, endpoint] of Object.entries(endpoints)) {\n const [route, defaults, decorations] = endpoint;\n const [method, url] = route.split(/ /);\n const endpointDefaults = Object.assign({\n method,\n url\n }, defaults);\n\n if (!newMethods[scope]) {\n newMethods[scope] = {};\n }\n\n const scopeMethods = newMethods[scope];\n\n if (decorations) {\n scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations);\n continue;\n }\n\n scopeMethods[methodName] = octokit.request.defaults(endpointDefaults);\n }\n }\n\n return newMethods;\n}\n\nfunction decorate(octokit, scope, methodName, defaults, decorations) {\n const requestWithDefaults = octokit.request.defaults(defaults);\n /* istanbul ignore next */\n\n function withDecorations(...args) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n let options = requestWithDefaults.endpoint.merge(...args); // There are currently no other decorations than `.mapToData`\n\n if (decorations.mapToData) {\n options = Object.assign({}, options, {\n data: options[decorations.mapToData],\n [decorations.mapToData]: undefined\n });\n return requestWithDefaults(options);\n }\n\n if (decorations.renamed) {\n const [newScope, newMethodName] = decorations.renamed;\n octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);\n }\n\n if (decorations.deprecated) {\n octokit.log.warn(decorations.deprecated);\n }\n\n if (decorations.renamedParameters) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n const options = requestWithDefaults.endpoint.merge(...args);\n\n for (const [name, alias] of Object.entries(decorations.renamedParameters)) {\n if (name in options) {\n octokit.log.warn(`\"${name}\" parameter is deprecated for \"octokit.${scope}.${methodName}()\". Use \"${alias}\" instead`);\n\n if (!(alias in options)) {\n options[alias] = options[name];\n }\n\n delete options[name];\n }\n }\n\n return requestWithDefaults(options);\n } // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n\n\n return requestWithDefaults(...args);\n }\n\n return Object.assign(withDecorations, requestWithDefaults);\n}\n\nfunction restEndpointMethods(octokit) {\n const api = endpointsToMethods(octokit, Endpoints);\n return {\n rest: api\n };\n}\nrestEndpointMethods.VERSION = VERSION;\nfunction legacyRestEndpointMethods(octokit) {\n const api = endpointsToMethods(octokit, Endpoints);\n return _objectSpread2(_objectSpread2({}, api), {}, {\n rest: api\n });\n}\nlegacyRestEndpointMethods.VERSION = VERSION;\n\nexports.legacyRestEndpointMethods = legacyRestEndpointMethods;\nexports.restEndpointMethods = restEndpointMethods;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar Bottleneck = _interopDefault(require('bottleneck/light'));\n\n// @ts-ignore\nasync function errorRequest(octokit, state, error, options) {\n if (!error.request || !error.request.request) {\n // address https://github.com/octokit/plugin-retry.js/issues/8\n throw error;\n } // retry all >= 400 && not doNotRetry\n\n\n if (error.status >= 400 && !state.doNotRetry.includes(error.status)) {\n const retries = options.request.retries != null ? options.request.retries : state.retries;\n const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2);\n throw octokit.retry.retryRequest(error, retries, retryAfter);\n } // Maybe eventually there will be more cases here\n\n\n throw error;\n}\n\n// @ts-ignore\n\nasync function wrapRequest(state, request, options) {\n const limiter = new Bottleneck(); // @ts-ignore\n\n limiter.on(\"failed\", function (error, info) {\n const maxRetries = ~~error.request.request.retries;\n const after = ~~error.request.request.retryAfter;\n options.request.retryCount = info.retryCount + 1;\n\n if (maxRetries > info.retryCount) {\n // Returning a number instructs the limiter to retry\n // the request after that number of milliseconds have passed\n return after * state.retryAfterBaseValue;\n }\n });\n return limiter.schedule(request, options);\n}\n\nconst VERSION = \"3.0.9\";\nfunction retry(octokit, octokitOptions) {\n const state = Object.assign({\n enabled: true,\n retryAfterBaseValue: 1000,\n doNotRetry: [400, 401, 403, 404, 422],\n retries: 3\n }, octokitOptions.retry);\n\n if (state.enabled) {\n octokit.hook.error(\"request\", errorRequest.bind(null, octokit, state));\n octokit.hook.wrap(\"request\", wrapRequest.bind(null, state));\n }\n\n return {\n retry: {\n retryRequest: (error, retries, retryAfter) => {\n error.request.request = Object.assign({}, error.request.request, {\n retries: retries,\n retryAfter: retryAfter\n });\n return error;\n }\n }\n };\n}\nretry.VERSION = VERSION;\n\nexports.VERSION = VERSION;\nexports.retry = retry;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar deprecation = require('deprecation');\nvar once = _interopDefault(require('once'));\n\nconst logOnceCode = once(deprecation => console.warn(deprecation));\nconst logOnceHeaders = once(deprecation => console.warn(deprecation));\n/**\n * Error with extra properties to help with debugging\n */\n\nclass RequestError extends Error {\n constructor(message, statusCode, options) {\n super(message); // Maintains proper stack trace (only available on V8)\n\n /* istanbul ignore next */\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n\n this.name = \"HttpError\";\n this.status = statusCode;\n let headers;\n\n if (\"headers\" in options && typeof options.headers !== \"undefined\") {\n headers = options.headers;\n }\n\n if (\"response\" in options) {\n this.response = options.response;\n headers = options.response.headers;\n } // redact request credentials without mutating original request options\n\n\n const requestCopy = Object.assign({}, options.request);\n\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(/ .*$/, \" [REDACTED]\")\n });\n }\n\n requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit\n // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications\n .replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\") // OAuth tokens can be passed as URL query parameters, although it is not recommended\n // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header\n .replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy; // deprecations\n\n Object.defineProperty(this, \"code\", {\n get() {\n logOnceCode(new deprecation.Deprecation(\"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"));\n return statusCode;\n }\n\n });\n Object.defineProperty(this, \"headers\", {\n get() {\n logOnceHeaders(new deprecation.Deprecation(\"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.\"));\n return headers || {};\n }\n\n });\n }\n\n}\n\nexports.RequestError = RequestError;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar endpoint = require('@octokit/endpoint');\nvar universalUserAgent = require('universal-user-agent');\nvar isPlainObject = require('is-plain-object');\nvar nodeFetch = _interopDefault(require('node-fetch'));\nvar requestError = require('@octokit/request-error');\n\nconst VERSION = \"5.6.3\";\n\nfunction getBufferResponse(response) {\n return response.arrayBuffer();\n}\n\nfunction fetchWrapper(requestOptions) {\n const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;\n\n if (isPlainObject.isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n\n let headers = {};\n let status;\n let url;\n const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect\n }, // `requestOptions.request.agent` type is incompatible\n // see https://github.com/octokit/types.ts/pull/264\n requestOptions.request)).then(async response => {\n url = response.url;\n status = response.status;\n\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n\n if (\"deprecation\" in headers) {\n const matches = headers.link && headers.link.match(/<([^>]+)>; rel=\"deprecation\"/);\n const deprecationLink = matches && matches.pop();\n log.warn(`[@octokit/request] \"${requestOptions.method} ${requestOptions.url}\" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : \"\"}`);\n }\n\n if (status === 204 || status === 205) {\n return;\n } // GitHub API returns 200 for HEAD requests\n\n\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n\n throw new requestError.RequestError(response.statusText, status, {\n response: {\n url,\n status,\n headers,\n data: undefined\n },\n request: requestOptions\n });\n }\n\n if (status === 304) {\n throw new requestError.RequestError(\"Not modified\", status, {\n response: {\n url,\n status,\n headers,\n data: await getResponseData(response)\n },\n request: requestOptions\n });\n }\n\n if (status >= 400) {\n const data = await getResponseData(response);\n const error = new requestError.RequestError(toErrorMessage(data), status, {\n response: {\n url,\n status,\n headers,\n data\n },\n request: requestOptions\n });\n throw error;\n }\n\n return getResponseData(response);\n }).then(data => {\n return {\n status,\n url,\n headers,\n data\n };\n }).catch(error => {\n if (error instanceof requestError.RequestError) throw error;\n throw new requestError.RequestError(error.message, 500, {\n request: requestOptions\n });\n });\n}\n\nasync function getResponseData(response) {\n const contentType = response.headers.get(\"content-type\");\n\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n\n return getBufferResponse(response);\n}\n\nfunction toErrorMessage(data) {\n if (typeof data === \"string\") return data; // istanbul ignore else - just in case\n\n if (\"message\" in data) {\n if (Array.isArray(data.errors)) {\n return `${data.message}: ${data.errors.map(JSON.stringify).join(\", \")}`;\n }\n\n return data.message;\n } // istanbul ignore next - just in case\n\n\n return `Unknown error: ${JSON.stringify(data)}`;\n}\n\nfunction withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n}\n\nconst request = withDefaults(endpoint.endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`\n }\n});\n\nexports.request = request;\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ContextAPI = void 0;\nconst NoopContextManager_1 = require(\"../context/NoopContextManager\");\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'context';\nconst NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager();\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Context API\n */\nclass ContextAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() { }\n /** Get the singleton instance of the Context API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new ContextAPI();\n }\n return this._instance;\n }\n /**\n * Set the current context manager.\n *\n * @returns true if the context manager was successfully registered, else false\n */\n setGlobalContextManager(contextManager) {\n return (0, global_utils_1.registerGlobal)(API_NAME, contextManager, diag_1.DiagAPI.instance());\n }\n /**\n * Get the currently active context\n */\n active() {\n return this._getContextManager().active();\n }\n /**\n * Execute a function with an active context\n *\n * @param context context to be active during function execution\n * @param fn function to execute in a context\n * @param thisArg optional receiver to be used for calling fn\n * @param args optional arguments forwarded to fn\n */\n with(context, fn, thisArg, ...args) {\n return this._getContextManager().with(context, fn, thisArg, ...args);\n }\n /**\n * Bind a context to a target function or event emitter\n *\n * @param context context to bind to the event emitter or function. Defaults to the currently active context\n * @param target function or event emitter to bind\n */\n bind(context, target) {\n return this._getContextManager().bind(context, target);\n }\n _getContextManager() {\n return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_CONTEXT_MANAGER;\n }\n /** Disable and remove the global context manager */\n disable() {\n this._getContextManager().disable();\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }\n}\nexports.ContextAPI = ContextAPI;\n//# sourceMappingURL=context.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagAPI = void 0;\nconst ComponentLogger_1 = require(\"../diag/ComponentLogger\");\nconst logLevelLogger_1 = require(\"../diag/internal/logLevelLogger\");\nconst types_1 = require(\"../diag/types\");\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst API_NAME = 'diag';\n/**\n * Singleton object which represents the entry point to the OpenTelemetry internal\n * diagnostic API\n */\nclass DiagAPI {\n /**\n * Private internal constructor\n * @private\n */\n constructor() {\n function _logProxy(funcName) {\n return function (...args) {\n const logger = (0, global_utils_1.getGlobal)('diag');\n // shortcut if logger not set\n if (!logger)\n return;\n return logger[funcName](...args);\n };\n }\n // Using self local variable for minification purposes as 'this' cannot be minified\n const self = this;\n // DiagAPI specific functions\n const setLogger = (logger, optionsOrLogLevel = { logLevel: types_1.DiagLogLevel.INFO }) => {\n var _a, _b, _c;\n if (logger === self) {\n // There isn't much we can do here.\n // Logging to the console might break the user application.\n // Try to log to self. If a logger was previously registered it will receive the log.\n const err = new Error('Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation');\n self.error((_a = err.stack) !== null && _a !== void 0 ? _a : err.message);\n return false;\n }\n if (typeof optionsOrLogLevel === 'number') {\n optionsOrLogLevel = {\n logLevel: optionsOrLogLevel,\n };\n }\n const oldLogger = (0, global_utils_1.getGlobal)('diag');\n const newLogger = (0, logLevelLogger_1.createLogLevelDiagLogger)((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : types_1.DiagLogLevel.INFO, logger);\n // There already is an logger registered. We'll let it know before overwriting it.\n if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {\n const stack = (_c = new Error().stack) !== null && _c !== void 0 ? _c : '';\n oldLogger.warn(`Current logger will be overwritten from ${stack}`);\n newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);\n }\n return (0, global_utils_1.registerGlobal)('diag', newLogger, self, true);\n };\n self.setLogger = setLogger;\n self.disable = () => {\n (0, global_utils_1.unregisterGlobal)(API_NAME, self);\n };\n self.createComponentLogger = (options) => {\n return new ComponentLogger_1.DiagComponentLogger(options);\n };\n self.verbose = _logProxy('verbose');\n self.debug = _logProxy('debug');\n self.info = _logProxy('info');\n self.warn = _logProxy('warn');\n self.error = _logProxy('error');\n }\n /** Get the singleton instance of the DiagAPI API */\n static instance() {\n if (!this._instance) {\n this._instance = new DiagAPI();\n }\n return this._instance;\n }\n}\nexports.DiagAPI = DiagAPI;\n//# sourceMappingURL=diag.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MetricsAPI = void 0;\nconst NoopMeterProvider_1 = require(\"../metrics/NoopMeterProvider\");\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'metrics';\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Metrics API\n */\nclass MetricsAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() { }\n /** Get the singleton instance of the Metrics API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new MetricsAPI();\n }\n return this._instance;\n }\n /**\n * Set the current global meter provider.\n * Returns true if the meter provider was successfully registered, else false.\n */\n setGlobalMeterProvider(provider) {\n return (0, global_utils_1.registerGlobal)(API_NAME, provider, diag_1.DiagAPI.instance());\n }\n /**\n * Returns the global meter provider.\n */\n getMeterProvider() {\n return (0, global_utils_1.getGlobal)(API_NAME) || NoopMeterProvider_1.NOOP_METER_PROVIDER;\n }\n /**\n * Returns a meter from the global meter provider.\n */\n getMeter(name, version, options) {\n return this.getMeterProvider().getMeter(name, version, options);\n }\n /** Remove the global meter provider */\n disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }\n}\nexports.MetricsAPI = MetricsAPI;\n//# sourceMappingURL=metrics.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PropagationAPI = void 0;\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst NoopTextMapPropagator_1 = require(\"../propagation/NoopTextMapPropagator\");\nconst TextMapPropagator_1 = require(\"../propagation/TextMapPropagator\");\nconst context_helpers_1 = require(\"../baggage/context-helpers\");\nconst utils_1 = require(\"../baggage/utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'propagation';\nconst NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator();\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Propagation API\n */\nclass PropagationAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() {\n this.createBaggage = utils_1.createBaggage;\n this.getBaggage = context_helpers_1.getBaggage;\n this.getActiveBaggage = context_helpers_1.getActiveBaggage;\n this.setBaggage = context_helpers_1.setBaggage;\n this.deleteBaggage = context_helpers_1.deleteBaggage;\n }\n /** Get the singleton instance of the Propagator API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new PropagationAPI();\n }\n return this._instance;\n }\n /**\n * Set the current propagator.\n *\n * @returns true if the propagator was successfully registered, else false\n */\n setGlobalPropagator(propagator) {\n return (0, global_utils_1.registerGlobal)(API_NAME, propagator, diag_1.DiagAPI.instance());\n }\n /**\n * Inject context into a carrier to be propagated inter-process\n *\n * @param context Context carrying tracing data to inject\n * @param carrier carrier to inject context into\n * @param setter Function used to set values on the carrier\n */\n inject(context, carrier, setter = TextMapPropagator_1.defaultTextMapSetter) {\n return this._getGlobalPropagator().inject(context, carrier, setter);\n }\n /**\n * Extract context from a carrier\n *\n * @param context Context which the newly created context will inherit from\n * @param carrier Carrier to extract context from\n * @param getter Function used to extract keys from a carrier\n */\n extract(context, carrier, getter = TextMapPropagator_1.defaultTextMapGetter) {\n return this._getGlobalPropagator().extract(context, carrier, getter);\n }\n /**\n * Return a list of all fields which may be used by the propagator.\n */\n fields() {\n return this._getGlobalPropagator().fields();\n }\n /** Remove the global propagator */\n disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }\n _getGlobalPropagator() {\n return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR;\n }\n}\nexports.PropagationAPI = PropagationAPI;\n//# sourceMappingURL=propagation.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TraceAPI = void 0;\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst ProxyTracerProvider_1 = require(\"../trace/ProxyTracerProvider\");\nconst spancontext_utils_1 = require(\"../trace/spancontext-utils\");\nconst context_utils_1 = require(\"../trace/context-utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'trace';\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Tracing API\n */\nclass TraceAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() {\n this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider();\n this.wrapSpanContext = spancontext_utils_1.wrapSpanContext;\n this.isSpanContextValid = spancontext_utils_1.isSpanContextValid;\n this.deleteSpan = context_utils_1.deleteSpan;\n this.getSpan = context_utils_1.getSpan;\n this.getActiveSpan = context_utils_1.getActiveSpan;\n this.getSpanContext = context_utils_1.getSpanContext;\n this.setSpan = context_utils_1.setSpan;\n this.setSpanContext = context_utils_1.setSpanContext;\n }\n /** Get the singleton instance of the Trace API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new TraceAPI();\n }\n return this._instance;\n }\n /**\n * Set the current global tracer.\n *\n * @returns true if the tracer provider was successfully registered, else false\n */\n setGlobalTracerProvider(provider) {\n const success = (0, global_utils_1.registerGlobal)(API_NAME, this._proxyTracerProvider, diag_1.DiagAPI.instance());\n if (success) {\n this._proxyTracerProvider.setDelegate(provider);\n }\n return success;\n }\n /**\n * Returns the global tracer provider.\n */\n getTracerProvider() {\n return (0, global_utils_1.getGlobal)(API_NAME) || this._proxyTracerProvider;\n }\n /**\n * Returns a tracer from the global tracer provider.\n */\n getTracer(name, version) {\n return this.getTracerProvider().getTracer(name, version);\n }\n /** Remove the global tracer provider */\n disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider();\n }\n}\nexports.TraceAPI = TraceAPI;\n//# sourceMappingURL=trace.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = void 0;\nconst context_1 = require(\"../api/context\");\nconst context_2 = require(\"../context/context\");\n/**\n * Baggage key\n */\nconst BAGGAGE_KEY = (0, context_2.createContextKey)('OpenTelemetry Baggage Key');\n/**\n * Retrieve the current baggage from the given context\n *\n * @param {Context} Context that manage all context values\n * @returns {Baggage} Extracted baggage from the context\n */\nfunction getBaggage(context) {\n return context.getValue(BAGGAGE_KEY) || undefined;\n}\nexports.getBaggage = getBaggage;\n/**\n * Retrieve the current baggage from the active/current context\n *\n * @returns {Baggage} Extracted baggage from the context\n */\nfunction getActiveBaggage() {\n return getBaggage(context_1.ContextAPI.getInstance().active());\n}\nexports.getActiveBaggage = getActiveBaggage;\n/**\n * Store a baggage in the given context\n *\n * @param {Context} Context that manage all context values\n * @param {Baggage} baggage that will be set in the actual context\n */\nfunction setBaggage(context, baggage) {\n return context.setValue(BAGGAGE_KEY, baggage);\n}\nexports.setBaggage = setBaggage;\n/**\n * Delete the baggage stored in the given context\n *\n * @param {Context} Context that manage all context values\n */\nfunction deleteBaggage(context) {\n return context.deleteValue(BAGGAGE_KEY);\n}\nexports.deleteBaggage = deleteBaggage;\n//# sourceMappingURL=context-helpers.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BaggageImpl = void 0;\nclass BaggageImpl {\n constructor(entries) {\n this._entries = entries ? new Map(entries) : new Map();\n }\n getEntry(key) {\n const entry = this._entries.get(key);\n if (!entry) {\n return undefined;\n }\n return Object.assign({}, entry);\n }\n getAllEntries() {\n return Array.from(this._entries.entries()).map(([k, v]) => [k, v]);\n }\n setEntry(key, entry) {\n const newBaggage = new BaggageImpl(this._entries);\n newBaggage._entries.set(key, entry);\n return newBaggage;\n }\n removeEntry(key) {\n const newBaggage = new BaggageImpl(this._entries);\n newBaggage._entries.delete(key);\n return newBaggage;\n }\n removeEntries(...keys) {\n const newBaggage = new BaggageImpl(this._entries);\n for (const key of keys) {\n newBaggage._entries.delete(key);\n }\n return newBaggage;\n }\n clear() {\n return new BaggageImpl();\n }\n}\nexports.BaggageImpl = BaggageImpl;\n//# sourceMappingURL=baggage-impl.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.baggageEntryMetadataSymbol = void 0;\n/**\n * Symbol used to make BaggageEntryMetadata an opaque type\n */\nexports.baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');\n//# sourceMappingURL=symbol.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.baggageEntryMetadataFromString = exports.createBaggage = void 0;\nconst diag_1 = require(\"../api/diag\");\nconst baggage_impl_1 = require(\"./internal/baggage-impl\");\nconst symbol_1 = require(\"./internal/symbol\");\nconst diag = diag_1.DiagAPI.instance();\n/**\n * Create a new Baggage with optional entries\n *\n * @param entries An array of baggage entries the new baggage should contain\n */\nfunction createBaggage(entries = {}) {\n return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));\n}\nexports.createBaggage = createBaggage;\n/**\n * Create a serializable BaggageEntryMetadata object from a string.\n *\n * @param str string metadata. Format is currently not defined by the spec and has no special meaning.\n *\n */\nfunction baggageEntryMetadataFromString(str) {\n if (typeof str !== 'string') {\n diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);\n str = '';\n }\n return {\n __TYPE__: symbol_1.baggageEntryMetadataSymbol,\n toString() {\n return str;\n },\n };\n}\nexports.baggageEntryMetadataFromString = baggageEntryMetadataFromString;\n//# sourceMappingURL=utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.context = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst context_1 = require(\"./api/context\");\n/** Entrypoint for context API */\nexports.context = context_1.ContextAPI.getInstance();\n//# sourceMappingURL=context-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopContextManager = void 0;\nconst context_1 = require(\"./context\");\nclass NoopContextManager {\n active() {\n return context_1.ROOT_CONTEXT;\n }\n with(_context, fn, thisArg, ...args) {\n return fn.call(thisArg, ...args);\n }\n bind(_context, target) {\n return target;\n }\n enable() {\n return this;\n }\n disable() {\n return this;\n }\n}\nexports.NoopContextManager = NoopContextManager;\n//# sourceMappingURL=NoopContextManager.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ROOT_CONTEXT = exports.createContextKey = void 0;\n/** Get a key to uniquely identify a context value */\nfunction createContextKey(description) {\n // The specification states that for the same input, multiple calls should\n // return different keys. Due to the nature of the JS dependency management\n // system, this creates problems where multiple versions of some package\n // could hold different keys for the same property.\n //\n // Therefore, we use Symbol.for which returns the same key for the same input.\n return Symbol.for(description);\n}\nexports.createContextKey = createContextKey;\nclass BaseContext {\n /**\n * Construct a new context which inherits values from an optional parent context.\n *\n * @param parentContext a context from which to inherit values\n */\n constructor(parentContext) {\n // for minification\n const self = this;\n self._currentContext = parentContext ? new Map(parentContext) : new Map();\n self.getValue = (key) => self._currentContext.get(key);\n self.setValue = (key, value) => {\n const context = new BaseContext(self._currentContext);\n context._currentContext.set(key, value);\n return context;\n };\n self.deleteValue = (key) => {\n const context = new BaseContext(self._currentContext);\n context._currentContext.delete(key);\n return context;\n };\n }\n}\n/** The root context is used as the default parent context when there is no active context */\nexports.ROOT_CONTEXT = new BaseContext();\n//# sourceMappingURL=context.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.diag = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst diag_1 = require(\"./api/diag\");\n/**\n * Entrypoint for Diag API.\n * Defines Diagnostic handler used for internal diagnostic logging operations.\n * The default provides a Noop DiagLogger implementation which may be changed via the\n * diag.setLogger(logger: DiagLogger) function.\n */\nexports.diag = diag_1.DiagAPI.instance();\n//# sourceMappingURL=diag-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagComponentLogger = void 0;\nconst global_utils_1 = require(\"../internal/global-utils\");\n/**\n * Component Logger which is meant to be used as part of any component which\n * will add automatically additional namespace in front of the log message.\n * It will then forward all message to global diag logger\n * @example\n * const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });\n * cLogger.debug('test');\n * // @opentelemetry/instrumentation-http test\n */\nclass DiagComponentLogger {\n constructor(props) {\n this._namespace = props.namespace || 'DiagComponentLogger';\n }\n debug(...args) {\n return logProxy('debug', this._namespace, args);\n }\n error(...args) {\n return logProxy('error', this._namespace, args);\n }\n info(...args) {\n return logProxy('info', this._namespace, args);\n }\n warn(...args) {\n return logProxy('warn', this._namespace, args);\n }\n verbose(...args) {\n return logProxy('verbose', this._namespace, args);\n }\n}\nexports.DiagComponentLogger = DiagComponentLogger;\nfunction logProxy(funcName, namespace, args) {\n const logger = (0, global_utils_1.getGlobal)('diag');\n // shortcut if logger not set\n if (!logger) {\n return;\n }\n args.unshift(namespace);\n return logger[funcName](...args);\n}\n//# sourceMappingURL=ComponentLogger.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagConsoleLogger = void 0;\nconst consoleMap = [\n { n: 'error', c: 'error' },\n { n: 'warn', c: 'warn' },\n { n: 'info', c: 'info' },\n { n: 'debug', c: 'debug' },\n { n: 'verbose', c: 'trace' },\n];\n/**\n * A simple Immutable Console based diagnostic logger which will output any messages to the Console.\n * If you want to limit the amount of logging to a specific level or lower use the\n * {@link createLogLevelDiagLogger}\n */\nclass DiagConsoleLogger {\n constructor() {\n function _consoleFunc(funcName) {\n return function (...args) {\n if (console) {\n // Some environments only expose the console when the F12 developer console is open\n // eslint-disable-next-line no-console\n let theFunc = console[funcName];\n if (typeof theFunc !== 'function') {\n // Not all environments support all functions\n // eslint-disable-next-line no-console\n theFunc = console.log;\n }\n // One last final check\n if (typeof theFunc === 'function') {\n return theFunc.apply(console, args);\n }\n }\n };\n }\n for (let i = 0; i < consoleMap.length; i++) {\n this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);\n }\n }\n}\nexports.DiagConsoleLogger = DiagConsoleLogger;\n//# sourceMappingURL=consoleLogger.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createLogLevelDiagLogger = void 0;\nconst types_1 = require(\"../types\");\nfunction createLogLevelDiagLogger(maxLevel, logger) {\n if (maxLevel < types_1.DiagLogLevel.NONE) {\n maxLevel = types_1.DiagLogLevel.NONE;\n }\n else if (maxLevel > types_1.DiagLogLevel.ALL) {\n maxLevel = types_1.DiagLogLevel.ALL;\n }\n // In case the logger is null or undefined\n logger = logger || {};\n function _filterFunc(funcName, theLevel) {\n const theFunc = logger[funcName];\n if (typeof theFunc === 'function' && maxLevel >= theLevel) {\n return theFunc.bind(logger);\n }\n return function () { };\n }\n return {\n error: _filterFunc('error', types_1.DiagLogLevel.ERROR),\n warn: _filterFunc('warn', types_1.DiagLogLevel.WARN),\n info: _filterFunc('info', types_1.DiagLogLevel.INFO),\n debug: _filterFunc('debug', types_1.DiagLogLevel.DEBUG),\n verbose: _filterFunc('verbose', types_1.DiagLogLevel.VERBOSE),\n };\n}\nexports.createLogLevelDiagLogger = createLogLevelDiagLogger;\n//# sourceMappingURL=logLevelLogger.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagLogLevel = void 0;\n/**\n * Defines the available internal logging levels for the diagnostic logger, the numeric values\n * of the levels are defined to match the original values from the initial LogLevel to avoid\n * compatibility/migration issues for any implementation that assume the numeric ordering.\n */\nvar DiagLogLevel;\n(function (DiagLogLevel) {\n /** Diagnostic Logging level setting to disable all logging (except and forced logs) */\n DiagLogLevel[DiagLogLevel[\"NONE\"] = 0] = \"NONE\";\n /** Identifies an error scenario */\n DiagLogLevel[DiagLogLevel[\"ERROR\"] = 30] = \"ERROR\";\n /** Identifies a warning scenario */\n DiagLogLevel[DiagLogLevel[\"WARN\"] = 50] = \"WARN\";\n /** General informational log message */\n DiagLogLevel[DiagLogLevel[\"INFO\"] = 60] = \"INFO\";\n /** General debug log message */\n DiagLogLevel[DiagLogLevel[\"DEBUG\"] = 70] = \"DEBUG\";\n /**\n * Detailed trace level logging should only be used for development, should only be set\n * in a development environment.\n */\n DiagLogLevel[DiagLogLevel[\"VERBOSE\"] = 80] = \"VERBOSE\";\n /** Used to set the logging level to include all logging */\n DiagLogLevel[DiagLogLevel[\"ALL\"] = 9999] = \"ALL\";\n})(DiagLogLevel = exports.DiagLogLevel || (exports.DiagLogLevel = {}));\n//# sourceMappingURL=types.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.trace = exports.propagation = exports.metrics = exports.diag = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.createTraceState = exports.TraceFlags = exports.SpanStatusCode = exports.SpanKind = exports.SamplingDecision = exports.ProxyTracerProvider = exports.ProxyTracer = exports.defaultTextMapSetter = exports.defaultTextMapGetter = exports.ValueType = exports.createNoopMeter = exports.DiagLogLevel = exports.DiagConsoleLogger = exports.ROOT_CONTEXT = exports.createContextKey = exports.baggageEntryMetadataFromString = void 0;\nvar utils_1 = require(\"./baggage/utils\");\nObject.defineProperty(exports, \"baggageEntryMetadataFromString\", { enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } });\n// Context APIs\nvar context_1 = require(\"./context/context\");\nObject.defineProperty(exports, \"createContextKey\", { enumerable: true, get: function () { return context_1.createContextKey; } });\nObject.defineProperty(exports, \"ROOT_CONTEXT\", { enumerable: true, get: function () { return context_1.ROOT_CONTEXT; } });\n// Diag APIs\nvar consoleLogger_1 = require(\"./diag/consoleLogger\");\nObject.defineProperty(exports, \"DiagConsoleLogger\", { enumerable: true, get: function () { return consoleLogger_1.DiagConsoleLogger; } });\nvar types_1 = require(\"./diag/types\");\nObject.defineProperty(exports, \"DiagLogLevel\", { enumerable: true, get: function () { return types_1.DiagLogLevel; } });\n// Metrics APIs\nvar NoopMeter_1 = require(\"./metrics/NoopMeter\");\nObject.defineProperty(exports, \"createNoopMeter\", { enumerable: true, get: function () { return NoopMeter_1.createNoopMeter; } });\nvar Metric_1 = require(\"./metrics/Metric\");\nObject.defineProperty(exports, \"ValueType\", { enumerable: true, get: function () { return Metric_1.ValueType; } });\n// Propagation APIs\nvar TextMapPropagator_1 = require(\"./propagation/TextMapPropagator\");\nObject.defineProperty(exports, \"defaultTextMapGetter\", { enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapGetter; } });\nObject.defineProperty(exports, \"defaultTextMapSetter\", { enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapSetter; } });\nvar ProxyTracer_1 = require(\"./trace/ProxyTracer\");\nObject.defineProperty(exports, \"ProxyTracer\", { enumerable: true, get: function () { return ProxyTracer_1.ProxyTracer; } });\nvar ProxyTracerProvider_1 = require(\"./trace/ProxyTracerProvider\");\nObject.defineProperty(exports, \"ProxyTracerProvider\", { enumerable: true, get: function () { return ProxyTracerProvider_1.ProxyTracerProvider; } });\nvar SamplingResult_1 = require(\"./trace/SamplingResult\");\nObject.defineProperty(exports, \"SamplingDecision\", { enumerable: true, get: function () { return SamplingResult_1.SamplingDecision; } });\nvar span_kind_1 = require(\"./trace/span_kind\");\nObject.defineProperty(exports, \"SpanKind\", { enumerable: true, get: function () { return span_kind_1.SpanKind; } });\nvar status_1 = require(\"./trace/status\");\nObject.defineProperty(exports, \"SpanStatusCode\", { enumerable: true, get: function () { return status_1.SpanStatusCode; } });\nvar trace_flags_1 = require(\"./trace/trace_flags\");\nObject.defineProperty(exports, \"TraceFlags\", { enumerable: true, get: function () { return trace_flags_1.TraceFlags; } });\nvar utils_2 = require(\"./trace/internal/utils\");\nObject.defineProperty(exports, \"createTraceState\", { enumerable: true, get: function () { return utils_2.createTraceState; } });\nvar spancontext_utils_1 = require(\"./trace/spancontext-utils\");\nObject.defineProperty(exports, \"isSpanContextValid\", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } });\nObject.defineProperty(exports, \"isValidTraceId\", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } });\nObject.defineProperty(exports, \"isValidSpanId\", { enumerable: true, get: function () { return spancontext_utils_1.isValidSpanId; } });\nvar invalid_span_constants_1 = require(\"./trace/invalid-span-constants\");\nObject.defineProperty(exports, \"INVALID_SPANID\", { enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPANID; } });\nObject.defineProperty(exports, \"INVALID_TRACEID\", { enumerable: true, get: function () { return invalid_span_constants_1.INVALID_TRACEID; } });\nObject.defineProperty(exports, \"INVALID_SPAN_CONTEXT\", { enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPAN_CONTEXT; } });\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst context_api_1 = require(\"./context-api\");\nObject.defineProperty(exports, \"context\", { enumerable: true, get: function () { return context_api_1.context; } });\nconst diag_api_1 = require(\"./diag-api\");\nObject.defineProperty(exports, \"diag\", { enumerable: true, get: function () { return diag_api_1.diag; } });\nconst metrics_api_1 = require(\"./metrics-api\");\nObject.defineProperty(exports, \"metrics\", { enumerable: true, get: function () { return metrics_api_1.metrics; } });\nconst propagation_api_1 = require(\"./propagation-api\");\nObject.defineProperty(exports, \"propagation\", { enumerable: true, get: function () { return propagation_api_1.propagation; } });\nconst trace_api_1 = require(\"./trace-api\");\nObject.defineProperty(exports, \"trace\", { enumerable: true, get: function () { return trace_api_1.trace; } });\n// Default export.\nexports.default = {\n context: context_api_1.context,\n diag: diag_api_1.diag,\n metrics: metrics_api_1.metrics,\n propagation: propagation_api_1.propagation,\n trace: trace_api_1.trace,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = void 0;\nconst platform_1 = require(\"../platform\");\nconst version_1 = require(\"../version\");\nconst semver_1 = require(\"./semver\");\nconst major = version_1.VERSION.split('.')[0];\nconst GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);\nconst _global = platform_1._globalThis;\nfunction registerGlobal(type, instance, diag, allowOverride = false) {\n var _a;\n const api = (_global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : {\n version: version_1.VERSION,\n });\n if (!allowOverride && api[type]) {\n // already registered an API of this type\n const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);\n diag.error(err.stack || err.message);\n return false;\n }\n if (api.version !== version_1.VERSION) {\n // All registered APIs must be of the same version exactly\n const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${version_1.VERSION}`);\n diag.error(err.stack || err.message);\n return false;\n }\n api[type] = instance;\n diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);\n return true;\n}\nexports.registerGlobal = registerGlobal;\nfunction getGlobal(type) {\n var _a, _b;\n const globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version;\n if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {\n return;\n }\n return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];\n}\nexports.getGlobal = getGlobal;\nfunction unregisterGlobal(type, diag) {\n diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);\n const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n if (api) {\n delete api[type];\n }\n}\nexports.unregisterGlobal = unregisterGlobal;\n//# sourceMappingURL=global-utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isCompatible = exports._makeCompatibilityCheck = void 0;\nconst version_1 = require(\"../version\");\nconst re = /^(\\d+)\\.(\\d+)\\.(\\d+)(-(.+))?$/;\n/**\n * Create a function to test an API version to see if it is compatible with the provided ownVersion.\n *\n * The returned function has the following semantics:\n * - Exact match is always compatible\n * - Major versions must match exactly\n * - 1.x package cannot use global 2.x package\n * - 2.x package cannot use global 1.x package\n * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n * - Patch and build tag differences are not considered at this time\n *\n * @param ownVersion version which should be checked against\n */\nfunction _makeCompatibilityCheck(ownVersion) {\n const acceptedVersions = new Set([ownVersion]);\n const rejectedVersions = new Set();\n const myVersionMatch = ownVersion.match(re);\n if (!myVersionMatch) {\n // we cannot guarantee compatibility so we always return noop\n return () => false;\n }\n const ownVersionParsed = {\n major: +myVersionMatch[1],\n minor: +myVersionMatch[2],\n patch: +myVersionMatch[3],\n prerelease: myVersionMatch[4],\n };\n // if ownVersion has a prerelease tag, versions must match exactly\n if (ownVersionParsed.prerelease != null) {\n return function isExactmatch(globalVersion) {\n return globalVersion === ownVersion;\n };\n }\n function _reject(v) {\n rejectedVersions.add(v);\n return false;\n }\n function _accept(v) {\n acceptedVersions.add(v);\n return true;\n }\n return function isCompatible(globalVersion) {\n if (acceptedVersions.has(globalVersion)) {\n return true;\n }\n if (rejectedVersions.has(globalVersion)) {\n return false;\n }\n const globalVersionMatch = globalVersion.match(re);\n if (!globalVersionMatch) {\n // cannot parse other version\n // we cannot guarantee compatibility so we always noop\n return _reject(globalVersion);\n }\n const globalVersionParsed = {\n major: +globalVersionMatch[1],\n minor: +globalVersionMatch[2],\n patch: +globalVersionMatch[3],\n prerelease: globalVersionMatch[4],\n };\n // if globalVersion has a prerelease tag, versions must match exactly\n if (globalVersionParsed.prerelease != null) {\n return _reject(globalVersion);\n }\n // major versions must match\n if (ownVersionParsed.major !== globalVersionParsed.major) {\n return _reject(globalVersion);\n }\n if (ownVersionParsed.major === 0) {\n if (ownVersionParsed.minor === globalVersionParsed.minor &&\n ownVersionParsed.patch <= globalVersionParsed.patch) {\n return _accept(globalVersion);\n }\n return _reject(globalVersion);\n }\n if (ownVersionParsed.minor <= globalVersionParsed.minor) {\n return _accept(globalVersion);\n }\n return _reject(globalVersion);\n };\n}\nexports._makeCompatibilityCheck = _makeCompatibilityCheck;\n/**\n * Test an API version to see if it is compatible with this API.\n *\n * - Exact match is always compatible\n * - Major versions must match exactly\n * - 1.x package cannot use global 2.x package\n * - 2.x package cannot use global 1.x package\n * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n * - Patch and build tag differences are not considered at this time\n *\n * @param version version of the API requesting an instance of the global API\n */\nexports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);\n//# sourceMappingURL=semver.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.metrics = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst metrics_1 = require(\"./api/metrics\");\n/** Entrypoint for metrics API */\nexports.metrics = metrics_1.MetricsAPI.getInstance();\n//# sourceMappingURL=metrics-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ValueType = void 0;\n/** The Type of value. It describes how the data is reported. */\nvar ValueType;\n(function (ValueType) {\n ValueType[ValueType[\"INT\"] = 0] = \"INT\";\n ValueType[ValueType[\"DOUBLE\"] = 1] = \"DOUBLE\";\n})(ValueType = exports.ValueType || (exports.ValueType = {}));\n//# sourceMappingURL=Metric.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createNoopMeter = exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = exports.NOOP_OBSERVABLE_GAUGE_METRIC = exports.NOOP_OBSERVABLE_COUNTER_METRIC = exports.NOOP_UP_DOWN_COUNTER_METRIC = exports.NOOP_HISTOGRAM_METRIC = exports.NOOP_COUNTER_METRIC = exports.NOOP_METER = exports.NoopObservableUpDownCounterMetric = exports.NoopObservableGaugeMetric = exports.NoopObservableCounterMetric = exports.NoopObservableMetric = exports.NoopHistogramMetric = exports.NoopUpDownCounterMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = void 0;\n/**\n * NoopMeter is a noop implementation of the {@link Meter} interface. It reuses\n * constant NoopMetrics for all of its methods.\n */\nclass NoopMeter {\n constructor() { }\n /**\n * @see {@link Meter.createHistogram}\n */\n createHistogram(_name, _options) {\n return exports.NOOP_HISTOGRAM_METRIC;\n }\n /**\n * @see {@link Meter.createCounter}\n */\n createCounter(_name, _options) {\n return exports.NOOP_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.createUpDownCounter}\n */\n createUpDownCounter(_name, _options) {\n return exports.NOOP_UP_DOWN_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.createObservableGauge}\n */\n createObservableGauge(_name, _options) {\n return exports.NOOP_OBSERVABLE_GAUGE_METRIC;\n }\n /**\n * @see {@link Meter.createObservableCounter}\n */\n createObservableCounter(_name, _options) {\n return exports.NOOP_OBSERVABLE_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.createObservableUpDownCounter}\n */\n createObservableUpDownCounter(_name, _options) {\n return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.addBatchObservableCallback}\n */\n addBatchObservableCallback(_callback, _observables) { }\n /**\n * @see {@link Meter.removeBatchObservableCallback}\n */\n removeBatchObservableCallback(_callback) { }\n}\nexports.NoopMeter = NoopMeter;\nclass NoopMetric {\n}\nexports.NoopMetric = NoopMetric;\nclass NoopCounterMetric extends NoopMetric {\n add(_value, _attributes) { }\n}\nexports.NoopCounterMetric = NoopCounterMetric;\nclass NoopUpDownCounterMetric extends NoopMetric {\n add(_value, _attributes) { }\n}\nexports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;\nclass NoopHistogramMetric extends NoopMetric {\n record(_value, _attributes) { }\n}\nexports.NoopHistogramMetric = NoopHistogramMetric;\nclass NoopObservableMetric {\n addCallback(_callback) { }\n removeCallback(_callback) { }\n}\nexports.NoopObservableMetric = NoopObservableMetric;\nclass NoopObservableCounterMetric extends NoopObservableMetric {\n}\nexports.NoopObservableCounterMetric = NoopObservableCounterMetric;\nclass NoopObservableGaugeMetric extends NoopObservableMetric {\n}\nexports.NoopObservableGaugeMetric = NoopObservableGaugeMetric;\nclass NoopObservableUpDownCounterMetric extends NoopObservableMetric {\n}\nexports.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric;\nexports.NOOP_METER = new NoopMeter();\n// Synchronous instruments\nexports.NOOP_COUNTER_METRIC = new NoopCounterMetric();\nexports.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();\nexports.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();\n// Asynchronous instruments\nexports.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();\nexports.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();\nexports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();\n/**\n * Create a no-op Meter\n */\nfunction createNoopMeter() {\n return exports.NOOP_METER;\n}\nexports.createNoopMeter = createNoopMeter;\n//# sourceMappingURL=NoopMeter.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NOOP_METER_PROVIDER = exports.NoopMeterProvider = void 0;\nconst NoopMeter_1 = require(\"./NoopMeter\");\n/**\n * An implementation of the {@link MeterProvider} which returns an impotent Meter\n * for all calls to `getMeter`\n */\nclass NoopMeterProvider {\n getMeter(_name, _version, _options) {\n return NoopMeter_1.NOOP_METER;\n }\n}\nexports.NoopMeterProvider = NoopMeterProvider;\nexports.NOOP_METER_PROVIDER = new NoopMeterProvider();\n//# sourceMappingURL=NoopMeterProvider.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./node\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports._globalThis = void 0;\n/** only globals that common to node and browsers are allowed */\n// eslint-disable-next-line node/no-unsupported-features/es-builtins\nexports._globalThis = typeof globalThis === 'object' ? globalThis : global;\n//# sourceMappingURL=globalThis.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./globalThis\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.propagation = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst propagation_1 = require(\"./api/propagation\");\n/** Entrypoint for propagation API */\nexports.propagation = propagation_1.PropagationAPI.getInstance();\n//# sourceMappingURL=propagation-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopTextMapPropagator = void 0;\n/**\n * No-op implementations of {@link TextMapPropagator}.\n */\nclass NoopTextMapPropagator {\n /** Noop inject function does nothing */\n inject(_context, _carrier) { }\n /** Noop extract function does nothing and returns the input context */\n extract(context, _carrier) {\n return context;\n }\n fields() {\n return [];\n }\n}\nexports.NoopTextMapPropagator = NoopTextMapPropagator;\n//# sourceMappingURL=NoopTextMapPropagator.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultTextMapSetter = exports.defaultTextMapGetter = void 0;\nexports.defaultTextMapGetter = {\n get(carrier, key) {\n if (carrier == null) {\n return undefined;\n }\n return carrier[key];\n },\n keys(carrier) {\n if (carrier == null) {\n return [];\n }\n return Object.keys(carrier);\n },\n};\nexports.defaultTextMapSetter = {\n set(carrier, key, value) {\n if (carrier == null) {\n return;\n }\n carrier[key] = value;\n },\n};\n//# sourceMappingURL=TextMapPropagator.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.trace = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst trace_1 = require(\"./api/trace\");\n/** Entrypoint for trace API */\nexports.trace = trace_1.TraceAPI.getInstance();\n//# sourceMappingURL=trace-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NonRecordingSpan = void 0;\nconst invalid_span_constants_1 = require(\"./invalid-span-constants\");\n/**\n * The NonRecordingSpan is the default {@link Span} that is used when no Span\n * implementation is available. All operations are no-op including context\n * propagation.\n */\nclass NonRecordingSpan {\n constructor(_spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {\n this._spanContext = _spanContext;\n }\n // Returns a SpanContext.\n spanContext() {\n return this._spanContext;\n }\n // By default does nothing\n setAttribute(_key, _value) {\n return this;\n }\n // By default does nothing\n setAttributes(_attributes) {\n return this;\n }\n // By default does nothing\n addEvent(_name, _attributes) {\n return this;\n }\n // By default does nothing\n setStatus(_status) {\n return this;\n }\n // By default does nothing\n updateName(_name) {\n return this;\n }\n // By default does nothing\n end(_endTime) { }\n // isRecording always returns false for NonRecordingSpan.\n isRecording() {\n return false;\n }\n // By default does nothing\n recordException(_exception, _time) { }\n}\nexports.NonRecordingSpan = NonRecordingSpan;\n//# sourceMappingURL=NonRecordingSpan.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopTracer = void 0;\nconst context_1 = require(\"../api/context\");\nconst context_utils_1 = require(\"../trace/context-utils\");\nconst NonRecordingSpan_1 = require(\"./NonRecordingSpan\");\nconst spancontext_utils_1 = require(\"./spancontext-utils\");\nconst contextApi = context_1.ContextAPI.getInstance();\n/**\n * No-op implementations of {@link Tracer}.\n */\nclass NoopTracer {\n // startSpan starts a noop span.\n startSpan(name, options, context = contextApi.active()) {\n const root = Boolean(options === null || options === void 0 ? void 0 : options.root);\n if (root) {\n return new NonRecordingSpan_1.NonRecordingSpan();\n }\n const parentFromContext = context && (0, context_utils_1.getSpanContext)(context);\n if (isSpanContext(parentFromContext) &&\n (0, spancontext_utils_1.isSpanContextValid)(parentFromContext)) {\n return new NonRecordingSpan_1.NonRecordingSpan(parentFromContext);\n }\n else {\n return new NonRecordingSpan_1.NonRecordingSpan();\n }\n }\n startActiveSpan(name, arg2, arg3, arg4) {\n let opts;\n let ctx;\n let fn;\n if (arguments.length < 2) {\n return;\n }\n else if (arguments.length === 2) {\n fn = arg2;\n }\n else if (arguments.length === 3) {\n opts = arg2;\n fn = arg3;\n }\n else {\n opts = arg2;\n ctx = arg3;\n fn = arg4;\n }\n const parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active();\n const span = this.startSpan(name, opts, parentContext);\n const contextWithSpanSet = (0, context_utils_1.setSpan)(parentContext, span);\n return contextApi.with(contextWithSpanSet, fn, undefined, span);\n }\n}\nexports.NoopTracer = NoopTracer;\nfunction isSpanContext(spanContext) {\n return (typeof spanContext === 'object' &&\n typeof spanContext['spanId'] === 'string' &&\n typeof spanContext['traceId'] === 'string' &&\n typeof spanContext['traceFlags'] === 'number');\n}\n//# sourceMappingURL=NoopTracer.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopTracerProvider = void 0;\nconst NoopTracer_1 = require(\"./NoopTracer\");\n/**\n * An implementation of the {@link TracerProvider} which returns an impotent\n * Tracer for all calls to `getTracer`.\n *\n * All operations are no-op.\n */\nclass NoopTracerProvider {\n getTracer(_name, _version, _options) {\n return new NoopTracer_1.NoopTracer();\n }\n}\nexports.NoopTracerProvider = NoopTracerProvider;\n//# sourceMappingURL=NoopTracerProvider.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProxyTracer = void 0;\nconst NoopTracer_1 = require(\"./NoopTracer\");\nconst NOOP_TRACER = new NoopTracer_1.NoopTracer();\n/**\n * Proxy tracer provided by the proxy tracer provider\n */\nclass ProxyTracer {\n constructor(_provider, name, version, options) {\n this._provider = _provider;\n this.name = name;\n this.version = version;\n this.options = options;\n }\n startSpan(name, options, context) {\n return this._getTracer().startSpan(name, options, context);\n }\n startActiveSpan(_name, _options, _context, _fn) {\n const tracer = this._getTracer();\n return Reflect.apply(tracer.startActiveSpan, tracer, arguments);\n }\n /**\n * Try to get a tracer from the proxy tracer provider.\n * If the proxy tracer provider has no delegate, return a noop tracer.\n */\n _getTracer() {\n if (this._delegate) {\n return this._delegate;\n }\n const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);\n if (!tracer) {\n return NOOP_TRACER;\n }\n this._delegate = tracer;\n return this._delegate;\n }\n}\nexports.ProxyTracer = ProxyTracer;\n//# sourceMappingURL=ProxyTracer.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProxyTracerProvider = void 0;\nconst ProxyTracer_1 = require(\"./ProxyTracer\");\nconst NoopTracerProvider_1 = require(\"./NoopTracerProvider\");\nconst NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider();\n/**\n * Tracer provider which provides {@link ProxyTracer}s.\n *\n * Before a delegate is set, tracers provided are NoOp.\n * When a delegate is set, traces are provided from the delegate.\n * When a delegate is set after tracers have already been provided,\n * all tracers already provided will use the provided delegate implementation.\n */\nclass ProxyTracerProvider {\n /**\n * Get a {@link ProxyTracer}\n */\n getTracer(name, version, options) {\n var _a;\n return ((_a = this.getDelegateTracer(name, version, options)) !== null && _a !== void 0 ? _a : new ProxyTracer_1.ProxyTracer(this, name, version, options));\n }\n getDelegate() {\n var _a;\n return (_a = this._delegate) !== null && _a !== void 0 ? _a : NOOP_TRACER_PROVIDER;\n }\n /**\n * Set the delegate tracer provider\n */\n setDelegate(delegate) {\n this._delegate = delegate;\n }\n getDelegateTracer(name, version, options) {\n var _a;\n return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version, options);\n }\n}\nexports.ProxyTracerProvider = ProxyTracerProvider;\n//# sourceMappingURL=ProxyTracerProvider.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SamplingDecision = void 0;\n/**\n * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead.\n * A sampling decision that determines how a {@link Span} will be recorded\n * and collected.\n */\nvar SamplingDecision;\n(function (SamplingDecision) {\n /**\n * `Span.isRecording() === false`, span will not be recorded and all events\n * and attributes will be dropped.\n */\n SamplingDecision[SamplingDecision[\"NOT_RECORD\"] = 0] = \"NOT_RECORD\";\n /**\n * `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags}\n * MUST NOT be set.\n */\n SamplingDecision[SamplingDecision[\"RECORD\"] = 1] = \"RECORD\";\n /**\n * `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags}\n * MUST be set.\n */\n SamplingDecision[SamplingDecision[\"RECORD_AND_SAMPLED\"] = 2] = \"RECORD_AND_SAMPLED\";\n})(SamplingDecision = exports.SamplingDecision || (exports.SamplingDecision = {}));\n//# sourceMappingURL=SamplingResult.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = void 0;\nconst context_1 = require(\"../context/context\");\nconst NonRecordingSpan_1 = require(\"./NonRecordingSpan\");\nconst context_2 = require(\"../api/context\");\n/**\n * span key\n */\nconst SPAN_KEY = (0, context_1.createContextKey)('OpenTelemetry Context Key SPAN');\n/**\n * Return the span if one exists\n *\n * @param context context to get span from\n */\nfunction getSpan(context) {\n return context.getValue(SPAN_KEY) || undefined;\n}\nexports.getSpan = getSpan;\n/**\n * Gets the span from the current context, if one exists.\n */\nfunction getActiveSpan() {\n return getSpan(context_2.ContextAPI.getInstance().active());\n}\nexports.getActiveSpan = getActiveSpan;\n/**\n * Set the span on a context\n *\n * @param context context to use as parent\n * @param span span to set active\n */\nfunction setSpan(context, span) {\n return context.setValue(SPAN_KEY, span);\n}\nexports.setSpan = setSpan;\n/**\n * Remove current span stored in the context\n *\n * @param context context to delete span from\n */\nfunction deleteSpan(context) {\n return context.deleteValue(SPAN_KEY);\n}\nexports.deleteSpan = deleteSpan;\n/**\n * Wrap span context in a NoopSpan and set as span in a new\n * context\n *\n * @param context context to set active span on\n * @param spanContext span context to be wrapped\n */\nfunction setSpanContext(context, spanContext) {\n return setSpan(context, new NonRecordingSpan_1.NonRecordingSpan(spanContext));\n}\nexports.setSpanContext = setSpanContext;\n/**\n * Get the span context of the span if it exists.\n *\n * @param context context to get values from\n */\nfunction getSpanContext(context) {\n var _a;\n return (_a = getSpan(context)) === null || _a === void 0 ? void 0 : _a.spanContext();\n}\nexports.getSpanContext = getSpanContext;\n//# sourceMappingURL=context-utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TraceStateImpl = void 0;\nconst tracestate_validators_1 = require(\"./tracestate-validators\");\nconst MAX_TRACE_STATE_ITEMS = 32;\nconst MAX_TRACE_STATE_LEN = 512;\nconst LIST_MEMBERS_SEPARATOR = ',';\nconst LIST_MEMBER_KEY_VALUE_SPLITTER = '=';\n/**\n * TraceState must be a class and not a simple object type because of the spec\n * requirement (https://www.w3.org/TR/trace-context/#tracestate-field).\n *\n * Here is the list of allowed mutations:\n * - New key-value pair should be added into the beginning of the list\n * - The value of any key can be updated. Modified keys MUST be moved to the\n * beginning of the list.\n */\nclass TraceStateImpl {\n constructor(rawTraceState) {\n this._internalState = new Map();\n if (rawTraceState)\n this._parse(rawTraceState);\n }\n set(key, value) {\n // TODO: Benchmark the different approaches(map vs list) and\n // use the faster one.\n const traceState = this._clone();\n if (traceState._internalState.has(key)) {\n traceState._internalState.delete(key);\n }\n traceState._internalState.set(key, value);\n return traceState;\n }\n unset(key) {\n const traceState = this._clone();\n traceState._internalState.delete(key);\n return traceState;\n }\n get(key) {\n return this._internalState.get(key);\n }\n serialize() {\n return this._keys()\n .reduce((agg, key) => {\n agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));\n return agg;\n }, [])\n .join(LIST_MEMBERS_SEPARATOR);\n }\n _parse(rawTraceState) {\n if (rawTraceState.length > MAX_TRACE_STATE_LEN)\n return;\n this._internalState = rawTraceState\n .split(LIST_MEMBERS_SEPARATOR)\n .reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning\n .reduce((agg, part) => {\n const listMember = part.trim(); // Optional Whitespace (OWS) handling\n const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);\n if (i !== -1) {\n const key = listMember.slice(0, i);\n const value = listMember.slice(i + 1, part.length);\n if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {\n agg.set(key, value);\n }\n else {\n // TODO: Consider to add warning log\n }\n }\n return agg;\n }, new Map());\n // Because of the reverse() requirement, trunc must be done after map is created\n if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {\n this._internalState = new Map(Array.from(this._internalState.entries())\n .reverse() // Use reverse same as original tracestate parse chain\n .slice(0, MAX_TRACE_STATE_ITEMS));\n }\n }\n _keys() {\n return Array.from(this._internalState.keys()).reverse();\n }\n _clone() {\n const traceState = new TraceStateImpl();\n traceState._internalState = new Map(this._internalState);\n return traceState;\n }\n}\nexports.TraceStateImpl = TraceStateImpl;\n//# sourceMappingURL=tracestate-impl.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateValue = exports.validateKey = void 0;\nconst VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';\nconst VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;\nconst VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;\nconst VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);\nconst VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nconst INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n/**\n * Key is opaque string up to 256 characters printable. It MUST begin with a\n * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n * underscores _, dashes -, asterisks *, and forward slashes /.\n * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n * see https://www.w3.org/TR/trace-context/#key\n */\nfunction validateKey(key) {\n return VALID_KEY_REGEX.test(key);\n}\nexports.validateKey = validateKey;\n/**\n * Value is opaque string up to 256 characters printable ASCII RFC0020\n * characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n */\nfunction validateValue(value) {\n return (VALID_VALUE_BASE_REGEX.test(value) &&\n !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value));\n}\nexports.validateValue = validateValue;\n//# sourceMappingURL=tracestate-validators.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createTraceState = void 0;\nconst tracestate_impl_1 = require(\"./tracestate-impl\");\nfunction createTraceState(rawTraceState) {\n return new tracestate_impl_1.TraceStateImpl(rawTraceState);\n}\nexports.createTraceState = createTraceState;\n//# sourceMappingURL=utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;\nconst trace_flags_1 = require(\"./trace_flags\");\nexports.INVALID_SPANID = '0000000000000000';\nexports.INVALID_TRACEID = '00000000000000000000000000000000';\nexports.INVALID_SPAN_CONTEXT = {\n traceId: exports.INVALID_TRACEID,\n spanId: exports.INVALID_SPANID,\n traceFlags: trace_flags_1.TraceFlags.NONE,\n};\n//# sourceMappingURL=invalid-span-constants.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SpanKind = void 0;\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar SpanKind;\n(function (SpanKind) {\n /** Default value. Indicates that the span is used internally. */\n SpanKind[SpanKind[\"INTERNAL\"] = 0] = \"INTERNAL\";\n /**\n * Indicates that the span covers server-side handling of an RPC or other\n * remote request.\n */\n SpanKind[SpanKind[\"SERVER\"] = 1] = \"SERVER\";\n /**\n * Indicates that the span covers the client-side wrapper around an RPC or\n * other remote request.\n */\n SpanKind[SpanKind[\"CLIENT\"] = 2] = \"CLIENT\";\n /**\n * Indicates that the span describes producer sending a message to a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n SpanKind[SpanKind[\"PRODUCER\"] = 3] = \"PRODUCER\";\n /**\n * Indicates that the span describes consumer receiving a message from a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n SpanKind[SpanKind[\"CONSUMER\"] = 4] = \"CONSUMER\";\n})(SpanKind = exports.SpanKind || (exports.SpanKind = {}));\n//# sourceMappingURL=span_kind.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0;\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst invalid_span_constants_1 = require(\"./invalid-span-constants\");\nconst NonRecordingSpan_1 = require(\"./NonRecordingSpan\");\nconst VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;\nconst VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;\nfunction isValidTraceId(traceId) {\n return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID;\n}\nexports.isValidTraceId = isValidTraceId;\nfunction isValidSpanId(spanId) {\n return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID;\n}\nexports.isValidSpanId = isValidSpanId;\n/**\n * Returns true if this {@link SpanContext} is valid.\n * @return true if this {@link SpanContext} is valid.\n */\nfunction isSpanContextValid(spanContext) {\n return (isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId));\n}\nexports.isSpanContextValid = isSpanContextValid;\n/**\n * Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n *\n * @param spanContext span context to be wrapped\n * @returns a new non-recording {@link Span} with the provided context\n */\nfunction wrapSpanContext(spanContext) {\n return new NonRecordingSpan_1.NonRecordingSpan(spanContext);\n}\nexports.wrapSpanContext = wrapSpanContext;\n//# sourceMappingURL=spancontext-utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SpanStatusCode = void 0;\n/**\n * An enumeration of status codes.\n */\nvar SpanStatusCode;\n(function (SpanStatusCode) {\n /**\n * The default status.\n */\n SpanStatusCode[SpanStatusCode[\"UNSET\"] = 0] = \"UNSET\";\n /**\n * The operation has been validated by an Application developer or\n * Operator to have completed successfully.\n */\n SpanStatusCode[SpanStatusCode[\"OK\"] = 1] = \"OK\";\n /**\n * The operation contains an error.\n */\n SpanStatusCode[SpanStatusCode[\"ERROR\"] = 2] = \"ERROR\";\n})(SpanStatusCode = exports.SpanStatusCode || (exports.SpanStatusCode = {}));\n//# sourceMappingURL=status.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TraceFlags = void 0;\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar TraceFlags;\n(function (TraceFlags) {\n /** Represents no flag set. */\n TraceFlags[TraceFlags[\"NONE\"] = 0] = \"NONE\";\n /** Bit to represent whether trace is sampled in trace flags. */\n TraceFlags[TraceFlags[\"SAMPLED\"] = 1] = \"SAMPLED\";\n})(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));\n//# sourceMappingURL=trace_flags.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VERSION = void 0;\n// this is autogenerated file, see scripts/version-update.js\nexports.VERSION = '1.7.0';\n//# sourceMappingURL=version.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ClientStreamingCall = void 0;\n/**\n * A client streaming RPC call. This means that the clients sends 0, 1, or\n * more messages to the server, and the server replies with exactly one\n * message.\n */\nclass ClientStreamingCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.requests = request;\n this.headers = headers;\n this.response = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * Instead of awaiting the response status and trailers, you can\n * just as well await this call itself to receive the server outcome.\n * Note that it may still be valid to send more request messages.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n headers,\n response,\n status,\n trailers\n };\n });\n }\n}\nexports.ClientStreamingCall = ClientStreamingCall;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Deferred = exports.DeferredState = void 0;\nvar DeferredState;\n(function (DeferredState) {\n DeferredState[DeferredState[\"PENDING\"] = 0] = \"PENDING\";\n DeferredState[DeferredState[\"REJECTED\"] = 1] = \"REJECTED\";\n DeferredState[DeferredState[\"RESOLVED\"] = 2] = \"RESOLVED\";\n})(DeferredState = exports.DeferredState || (exports.DeferredState = {}));\n/**\n * A deferred promise. This is a \"controller\" for a promise, which lets you\n * pass a promise around and reject or resolve it from the outside.\n *\n * Warning: This class is to be used with care. Using it can make code very\n * difficult to read. It is intended for use in library code that exposes\n * promises, not for regular business logic.\n */\nclass Deferred {\n /**\n * @param preventUnhandledRejectionWarning - prevents the warning\n * \"Unhandled Promise rejection\" by adding a noop rejection handler.\n * Working with calls returned from the runtime-rpc package in an\n * async function usually means awaiting one call property after\n * the other. This means that the \"status\" is not being awaited when\n * an earlier await for the \"headers\" is rejected. This causes the\n * \"unhandled promise reject\" warning. A more correct behaviour for\n * calls might be to become aware whether at least one of the\n * promises is handled and swallow the rejection warning for the\n * others.\n */\n constructor(preventUnhandledRejectionWarning = true) {\n this._state = DeferredState.PENDING;\n this._promise = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n if (preventUnhandledRejectionWarning) {\n this._promise.catch(_ => { });\n }\n }\n /**\n * Get the current state of the promise.\n */\n get state() {\n return this._state;\n }\n /**\n * Get the deferred promise.\n */\n get promise() {\n return this._promise;\n }\n /**\n * Resolve the promise. Throws if the promise is already resolved or rejected.\n */\n resolve(value) {\n if (this.state !== DeferredState.PENDING)\n throw new Error(`cannot resolve ${DeferredState[this.state].toLowerCase()}`);\n this._resolve(value);\n this._state = DeferredState.RESOLVED;\n }\n /**\n * Reject the promise. Throws if the promise is already resolved or rejected.\n */\n reject(reason) {\n if (this.state !== DeferredState.PENDING)\n throw new Error(`cannot reject ${DeferredState[this.state].toLowerCase()}`);\n this._reject(reason);\n this._state = DeferredState.REJECTED;\n }\n /**\n * Resolve the promise. Ignore if not pending.\n */\n resolvePending(val) {\n if (this._state === DeferredState.PENDING)\n this.resolve(val);\n }\n /**\n * Reject the promise. Ignore if not pending.\n */\n rejectPending(reason) {\n if (this._state === DeferredState.PENDING)\n this.reject(reason);\n }\n}\nexports.Deferred = Deferred;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DuplexStreamingCall = void 0;\n/**\n * A duplex streaming RPC call. This means that the clients sends an\n * arbitrary amount of messages to the server, while at the same time,\n * the server sends an arbitrary amount of messages to the client.\n */\nclass DuplexStreamingCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.requests = request;\n this.headers = headers;\n this.responses = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * Instead of awaiting the response status and trailers, you can\n * just as well await this call itself to receive the server outcome.\n * Note that it may still be valid to send more request messages.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n headers,\n status,\n trailers,\n };\n });\n }\n}\nexports.DuplexStreamingCall = DuplexStreamingCall;\n","\"use strict\";\n// Public API of the rpc runtime.\n// Note: we do not use `export * from ...` to help tree shakers,\n// webpack verbose output hints that this should be useful\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar service_type_1 = require(\"./service-type\");\nObject.defineProperty(exports, \"ServiceType\", { enumerable: true, get: function () { return service_type_1.ServiceType; } });\nvar reflection_info_1 = require(\"./reflection-info\");\nObject.defineProperty(exports, \"readMethodOptions\", { enumerable: true, get: function () { return reflection_info_1.readMethodOptions; } });\nObject.defineProperty(exports, \"readMethodOption\", { enumerable: true, get: function () { return reflection_info_1.readMethodOption; } });\nObject.defineProperty(exports, \"readServiceOption\", { enumerable: true, get: function () { return reflection_info_1.readServiceOption; } });\nvar rpc_error_1 = require(\"./rpc-error\");\nObject.defineProperty(exports, \"RpcError\", { enumerable: true, get: function () { return rpc_error_1.RpcError; } });\nvar rpc_options_1 = require(\"./rpc-options\");\nObject.defineProperty(exports, \"mergeRpcOptions\", { enumerable: true, get: function () { return rpc_options_1.mergeRpcOptions; } });\nvar rpc_output_stream_1 = require(\"./rpc-output-stream\");\nObject.defineProperty(exports, \"RpcOutputStreamController\", { enumerable: true, get: function () { return rpc_output_stream_1.RpcOutputStreamController; } });\nvar test_transport_1 = require(\"./test-transport\");\nObject.defineProperty(exports, \"TestTransport\", { enumerable: true, get: function () { return test_transport_1.TestTransport; } });\nvar deferred_1 = require(\"./deferred\");\nObject.defineProperty(exports, \"Deferred\", { enumerable: true, get: function () { return deferred_1.Deferred; } });\nObject.defineProperty(exports, \"DeferredState\", { enumerable: true, get: function () { return deferred_1.DeferredState; } });\nvar duplex_streaming_call_1 = require(\"./duplex-streaming-call\");\nObject.defineProperty(exports, \"DuplexStreamingCall\", { enumerable: true, get: function () { return duplex_streaming_call_1.DuplexStreamingCall; } });\nvar client_streaming_call_1 = require(\"./client-streaming-call\");\nObject.defineProperty(exports, \"ClientStreamingCall\", { enumerable: true, get: function () { return client_streaming_call_1.ClientStreamingCall; } });\nvar server_streaming_call_1 = require(\"./server-streaming-call\");\nObject.defineProperty(exports, \"ServerStreamingCall\", { enumerable: true, get: function () { return server_streaming_call_1.ServerStreamingCall; } });\nvar unary_call_1 = require(\"./unary-call\");\nObject.defineProperty(exports, \"UnaryCall\", { enumerable: true, get: function () { return unary_call_1.UnaryCall; } });\nvar rpc_interceptor_1 = require(\"./rpc-interceptor\");\nObject.defineProperty(exports, \"stackIntercept\", { enumerable: true, get: function () { return rpc_interceptor_1.stackIntercept; } });\nObject.defineProperty(exports, \"stackDuplexStreamingInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackDuplexStreamingInterceptors; } });\nObject.defineProperty(exports, \"stackClientStreamingInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackClientStreamingInterceptors; } });\nObject.defineProperty(exports, \"stackServerStreamingInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackServerStreamingInterceptors; } });\nObject.defineProperty(exports, \"stackUnaryInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackUnaryInterceptors; } });\nvar server_call_context_1 = require(\"./server-call-context\");\nObject.defineProperty(exports, \"ServerCallContextController\", { enumerable: true, get: function () { return server_call_context_1.ServerCallContextController; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0;\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * Turns PartialMethodInfo into MethodInfo.\n */\nfunction normalizeMethodInfo(method, service) {\n var _a, _b, _c;\n let m = method;\n m.service = service;\n m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : runtime_1.lowerCamelCase(m.name);\n // noinspection PointlessBooleanExpressionJS\n m.serverStreaming = !!m.serverStreaming;\n // noinspection PointlessBooleanExpressionJS\n m.clientStreaming = !!m.clientStreaming;\n m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {};\n m.idempotency = (_c = m.idempotency) !== null && _c !== void 0 ? _c : undefined;\n return m;\n}\nexports.normalizeMethodInfo = normalizeMethodInfo;\n/**\n * Read custom method options from a generated service client.\n *\n * @deprecated use readMethodOption()\n */\nfunction readMethodOptions(service, methodName, extensionName, extensionType) {\n var _a;\n const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;\n return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;\n}\nexports.readMethodOptions = readMethodOptions;\nfunction readMethodOption(service, methodName, extensionName, extensionType) {\n var _a;\n const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;\n if (!options) {\n return undefined;\n }\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readMethodOption = readMethodOption;\nfunction readServiceOption(service, extensionName, extensionType) {\n const options = service.options;\n if (!options) {\n return undefined;\n }\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readServiceOption = readServiceOption;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RpcError = void 0;\n/**\n * An error that occurred while calling a RPC method.\n */\nclass RpcError extends Error {\n constructor(message, code = 'UNKNOWN', meta) {\n super(message);\n this.name = 'RpcError';\n // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example\n Object.setPrototypeOf(this, new.target.prototype);\n this.code = code;\n this.meta = meta !== null && meta !== void 0 ? meta : {};\n }\n toString() {\n const l = [this.name + ': ' + this.message];\n if (this.code) {\n l.push('');\n l.push('Code: ' + this.code);\n }\n if (this.serviceName && this.methodName) {\n l.push('Method: ' + this.serviceName + '/' + this.methodName);\n }\n let m = Object.entries(this.meta);\n if (m.length) {\n l.push('');\n l.push('Meta:');\n for (let [k, v] of m) {\n l.push(` ${k}: ${v}`);\n }\n }\n return l.join('\\n');\n }\n}\nexports.RpcError = RpcError;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0;\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * Creates a \"stack\" of of all interceptors specified in the given `RpcOptions`.\n * Used by generated client implementations.\n * @internal\n */\nfunction stackIntercept(kind, transport, method, options, input) {\n var _a, _b, _c, _d;\n if (kind == \"unary\") {\n let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt);\n for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter(i => i.interceptUnary).reverse()) {\n const next = tail;\n tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt);\n }\n return tail(method, input, options);\n }\n if (kind == \"serverStreaming\") {\n let tail = (mtd, inp, opt) => transport.serverStreaming(mtd, inp, opt);\n for (const curr of ((_b = options.interceptors) !== null && _b !== void 0 ? _b : []).filter(i => i.interceptServerStreaming).reverse()) {\n const next = tail;\n tail = (mtd, inp, opt) => curr.interceptServerStreaming(next, mtd, inp, opt);\n }\n return tail(method, input, options);\n }\n if (kind == \"clientStreaming\") {\n let tail = (mtd, opt) => transport.clientStreaming(mtd, opt);\n for (const curr of ((_c = options.interceptors) !== null && _c !== void 0 ? _c : []).filter(i => i.interceptClientStreaming).reverse()) {\n const next = tail;\n tail = (mtd, opt) => curr.interceptClientStreaming(next, mtd, opt);\n }\n return tail(method, options);\n }\n if (kind == \"duplex\") {\n let tail = (mtd, opt) => transport.duplex(mtd, opt);\n for (const curr of ((_d = options.interceptors) !== null && _d !== void 0 ? _d : []).filter(i => i.interceptDuplex).reverse()) {\n const next = tail;\n tail = (mtd, opt) => curr.interceptDuplex(next, mtd, opt);\n }\n return tail(method, options);\n }\n runtime_1.assertNever(kind);\n}\nexports.stackIntercept = stackIntercept;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackUnaryInterceptors(transport, method, input, options) {\n return stackIntercept(\"unary\", transport, method, options, input);\n}\nexports.stackUnaryInterceptors = stackUnaryInterceptors;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackServerStreamingInterceptors(transport, method, input, options) {\n return stackIntercept(\"serverStreaming\", transport, method, options, input);\n}\nexports.stackServerStreamingInterceptors = stackServerStreamingInterceptors;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackClientStreamingInterceptors(transport, method, options) {\n return stackIntercept(\"clientStreaming\", transport, method, options);\n}\nexports.stackClientStreamingInterceptors = stackClientStreamingInterceptors;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackDuplexStreamingInterceptors(transport, method, options) {\n return stackIntercept(\"duplex\", transport, method, options);\n}\nexports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mergeRpcOptions = void 0;\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * Merges custom RPC options with defaults. Returns a new instance and keeps\n * the \"defaults\" and the \"options\" unmodified.\n *\n * Merges `RpcMetadata` \"meta\", overwriting values from \"defaults\" with\n * values from \"options\". Does not append values to existing entries.\n *\n * Merges \"jsonOptions\", including \"jsonOptions.typeRegistry\", by creating\n * a new array that contains types from \"options.jsonOptions.typeRegistry\"\n * first, then types from \"defaults.jsonOptions.typeRegistry\".\n *\n * Merges \"binaryOptions\".\n *\n * Merges \"interceptors\" by creating a new array that contains interceptors\n * from \"defaults\" first, then interceptors from \"options\".\n *\n * Works with objects that extend `RpcOptions`, but only if the added\n * properties are of type Date, primitive like string, boolean, or Array\n * of primitives. If you have other property types, you have to merge them\n * yourself.\n */\nfunction mergeRpcOptions(defaults, options) {\n if (!options)\n return defaults;\n let o = {};\n copy(defaults, o);\n copy(options, o);\n for (let key of Object.keys(options)) {\n let val = options[key];\n switch (key) {\n case \"jsonOptions\":\n o.jsonOptions = runtime_1.mergeJsonOptions(defaults.jsonOptions, o.jsonOptions);\n break;\n case \"binaryOptions\":\n o.binaryOptions = runtime_1.mergeBinaryOptions(defaults.binaryOptions, o.binaryOptions);\n break;\n case \"meta\":\n o.meta = {};\n copy(defaults.meta, o.meta);\n copy(options.meta, o.meta);\n break;\n case \"interceptors\":\n o.interceptors = defaults.interceptors ? defaults.interceptors.concat(val) : val.concat();\n break;\n }\n }\n return o;\n}\nexports.mergeRpcOptions = mergeRpcOptions;\nfunction copy(a, into) {\n if (!a)\n return;\n let c = into;\n for (let [k, v] of Object.entries(a)) {\n if (v instanceof Date)\n c[k] = new Date(v.getTime());\n else if (Array.isArray(v))\n c[k] = v.concat();\n else\n c[k] = v;\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RpcOutputStreamController = void 0;\nconst deferred_1 = require(\"./deferred\");\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * A `RpcOutputStream` that you control.\n */\nclass RpcOutputStreamController {\n constructor() {\n this._lis = {\n nxt: [],\n msg: [],\n err: [],\n cmp: [],\n };\n this._closed = false;\n }\n // --- RpcOutputStream callback API\n onNext(callback) {\n return this.addLis(callback, this._lis.nxt);\n }\n onMessage(callback) {\n return this.addLis(callback, this._lis.msg);\n }\n onError(callback) {\n return this.addLis(callback, this._lis.err);\n }\n onComplete(callback) {\n return this.addLis(callback, this._lis.cmp);\n }\n addLis(callback, list) {\n list.push(callback);\n return () => {\n let i = list.indexOf(callback);\n if (i >= 0)\n list.splice(i, 1);\n };\n }\n // remove all listeners\n clearLis() {\n for (let l of Object.values(this._lis))\n l.splice(0, l.length);\n }\n // --- Controller API\n /**\n * Is this stream already closed by a completion or error?\n */\n get closed() {\n return this._closed !== false;\n }\n /**\n * Emit message, close with error, or close successfully, but only one\n * at a time.\n * Can be used to wrap a stream by using the other stream's `onNext`.\n */\n notifyNext(message, error, complete) {\n runtime_1.assert((message ? 1 : 0) + (error ? 1 : 0) + (complete ? 1 : 0) <= 1, 'only one emission at a time');\n if (message)\n this.notifyMessage(message);\n if (error)\n this.notifyError(error);\n if (complete)\n this.notifyComplete();\n }\n /**\n * Emits a new message. Throws if stream is closed.\n *\n * Triggers onNext and onMessage callbacks.\n */\n notifyMessage(message) {\n runtime_1.assert(!this.closed, 'stream is closed');\n this.pushIt({ value: message, done: false });\n this._lis.msg.forEach(l => l(message));\n this._lis.nxt.forEach(l => l(message, undefined, false));\n }\n /**\n * Closes the stream with an error. Throws if stream is closed.\n *\n * Triggers onNext and onError callbacks.\n */\n notifyError(error) {\n runtime_1.assert(!this.closed, 'stream is closed');\n this._closed = error;\n this.pushIt(error);\n this._lis.err.forEach(l => l(error));\n this._lis.nxt.forEach(l => l(undefined, error, false));\n this.clearLis();\n }\n /**\n * Closes the stream successfully. Throws if stream is closed.\n *\n * Triggers onNext and onComplete callbacks.\n */\n notifyComplete() {\n runtime_1.assert(!this.closed, 'stream is closed');\n this._closed = true;\n this.pushIt({ value: null, done: true });\n this._lis.cmp.forEach(l => l());\n this._lis.nxt.forEach(l => l(undefined, undefined, true));\n this.clearLis();\n }\n /**\n * Creates an async iterator (that can be used with `for await {...}`)\n * to consume the stream.\n *\n * Some things to note:\n * - If an error occurs, the `for await` will throw it.\n * - If an error occurred before the `for await` was started, `for await`\n * will re-throw it.\n * - If the stream is already complete, the `for await` will be empty.\n * - If your `for await` consumes slower than the stream produces,\n * for example because you are relaying messages in a slow operation,\n * messages are queued.\n */\n [Symbol.asyncIterator]() {\n // init the iterator state, enabling pushIt()\n if (!this._itState) {\n this._itState = { q: [] };\n }\n // if we are closed, we are definitely not receiving any more messages.\n // but we can't let the iterator get stuck. we want to either:\n // a) finish the new iterator immediately, because we are completed\n // b) reject the new iterator, because we errored\n if (this._closed === true)\n this.pushIt({ value: null, done: true });\n else if (this._closed !== false)\n this.pushIt(this._closed);\n // the async iterator\n return {\n next: () => {\n let state = this._itState;\n runtime_1.assert(state, \"bad state\"); // if we don't have a state here, code is broken\n // there should be no pending result.\n // did the consumer call next() before we resolved our previous result promise?\n runtime_1.assert(!state.p, \"iterator contract broken\");\n // did we produce faster than the iterator consumed?\n // return the oldest result from the queue.\n let first = state.q.shift();\n if (first)\n return (\"value\" in first) ? Promise.resolve(first) : Promise.reject(first);\n // we have no result ATM, but we promise one.\n // as soon as we have a result, we must resolve promise.\n state.p = new deferred_1.Deferred();\n return state.p.promise;\n },\n };\n }\n // \"push\" a new iterator result.\n // this either resolves a pending promise, or enqueues the result.\n pushIt(result) {\n let state = this._itState;\n if (!state)\n return;\n // is the consumer waiting for us?\n if (state.p) {\n // yes, consumer is waiting for this promise.\n const p = state.p;\n runtime_1.assert(p.state == deferred_1.DeferredState.PENDING, \"iterator contract broken\");\n // resolve the promise\n (\"value\" in result) ? p.resolve(result) : p.reject(result);\n // must cleanup, otherwise iterator.next() would pick it up again.\n delete state.p;\n }\n else {\n // we are producing faster than the iterator consumes.\n // push result onto queue.\n state.q.push(result);\n }\n }\n}\nexports.RpcOutputStreamController = RpcOutputStreamController;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServerCallContextController = void 0;\nclass ServerCallContextController {\n constructor(method, headers, deadline, sendResponseHeadersFn, defaultStatus = { code: 'OK', detail: '' }) {\n this._cancelled = false;\n this._listeners = [];\n this.method = method;\n this.headers = headers;\n this.deadline = deadline;\n this.trailers = {};\n this._sendRH = sendResponseHeadersFn;\n this.status = defaultStatus;\n }\n /**\n * Set the call cancelled.\n *\n * Invokes all callbacks registered with onCancel() and\n * sets `cancelled = true`.\n */\n notifyCancelled() {\n if (!this._cancelled) {\n this._cancelled = true;\n for (let l of this._listeners) {\n l();\n }\n }\n }\n /**\n * Send response headers.\n */\n sendResponseHeaders(data) {\n this._sendRH(data);\n }\n /**\n * Is the call cancelled?\n *\n * When the client closes the connection before the server\n * is done, the call is cancelled.\n *\n * If you want to cancel a request on the server, throw a\n * RpcError with the CANCELLED status code.\n */\n get cancelled() {\n return this._cancelled;\n }\n /**\n * Add a callback for cancellation.\n */\n onCancel(callback) {\n const l = this._listeners;\n l.push(callback);\n return () => {\n let i = l.indexOf(callback);\n if (i >= 0)\n l.splice(i, 1);\n };\n }\n}\nexports.ServerCallContextController = ServerCallContextController;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServerStreamingCall = void 0;\n/**\n * A server streaming RPC call. The client provides exactly one input message\n * but the server may respond with 0, 1, or more messages.\n */\nclass ServerStreamingCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.request = request;\n this.headers = headers;\n this.responses = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * Instead of awaiting the response status and trailers, you can\n * just as well await this call itself to receive the server outcome.\n * You should first setup some listeners to the `request` to\n * see the actual messages the server replied with.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n request: this.request,\n headers,\n status,\n trailers,\n };\n });\n }\n}\nexports.ServerStreamingCall = ServerStreamingCall;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServiceType = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\nclass ServiceType {\n constructor(typeName, methods, options) {\n this.typeName = typeName;\n this.methods = methods.map(i => reflection_info_1.normalizeMethodInfo(i, this));\n this.options = options !== null && options !== void 0 ? options : {};\n }\n}\nexports.ServiceType = ServiceType;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TestTransport = void 0;\nconst rpc_error_1 = require(\"./rpc-error\");\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\nconst rpc_output_stream_1 = require(\"./rpc-output-stream\");\nconst rpc_options_1 = require(\"./rpc-options\");\nconst unary_call_1 = require(\"./unary-call\");\nconst server_streaming_call_1 = require(\"./server-streaming-call\");\nconst client_streaming_call_1 = require(\"./client-streaming-call\");\nconst duplex_streaming_call_1 = require(\"./duplex-streaming-call\");\n/**\n * Transport for testing.\n */\nclass TestTransport {\n /**\n * Initialize with mock data. Omitted fields have default value.\n */\n constructor(data) {\n /**\n * Suppress warning / error about uncaught rejections of\n * \"status\" and \"trailers\".\n */\n this.suppressUncaughtRejections = true;\n this.headerDelay = 10;\n this.responseDelay = 50;\n this.betweenResponseDelay = 10;\n this.afterResponseDelay = 10;\n this.data = data !== null && data !== void 0 ? data : {};\n }\n /**\n * Sent message(s) during the last operation.\n */\n get sentMessages() {\n if (this.lastInput instanceof TestInputStream) {\n return this.lastInput.sent;\n }\n else if (typeof this.lastInput == \"object\") {\n return [this.lastInput.single];\n }\n return [];\n }\n /**\n * Sending message(s) completed?\n */\n get sendComplete() {\n if (this.lastInput instanceof TestInputStream) {\n return this.lastInput.completed;\n }\n else if (typeof this.lastInput == \"object\") {\n return true;\n }\n return false;\n }\n // Creates a promise for response headers from the mock data.\n promiseHeaders() {\n var _a;\n const headers = (_a = this.data.headers) !== null && _a !== void 0 ? _a : TestTransport.defaultHeaders;\n return headers instanceof rpc_error_1.RpcError\n ? Promise.reject(headers)\n : Promise.resolve(headers);\n }\n // Creates a promise for a single, valid, message from the mock data.\n promiseSingleResponse(method) {\n if (this.data.response instanceof rpc_error_1.RpcError) {\n return Promise.reject(this.data.response);\n }\n let r;\n if (Array.isArray(this.data.response)) {\n runtime_1.assert(this.data.response.length > 0);\n r = this.data.response[0];\n }\n else if (this.data.response !== undefined) {\n r = this.data.response;\n }\n else {\n r = method.O.create();\n }\n runtime_1.assert(method.O.is(r));\n return Promise.resolve(r);\n }\n /**\n * Pushes response messages from the mock data to the output stream.\n * If an error response, status or trailers are mocked, the stream is\n * closed with the respective error.\n * Otherwise, stream is completed successfully.\n *\n * The returned promise resolves when the stream is closed. It should\n * not reject. If it does, code is broken.\n */\n streamResponses(method, stream, abort) {\n return __awaiter(this, void 0, void 0, function* () {\n // normalize \"data.response\" into an array of valid output messages\n const messages = [];\n if (this.data.response === undefined) {\n messages.push(method.O.create());\n }\n else if (Array.isArray(this.data.response)) {\n for (let msg of this.data.response) {\n runtime_1.assert(method.O.is(msg));\n messages.push(msg);\n }\n }\n else if (!(this.data.response instanceof rpc_error_1.RpcError)) {\n runtime_1.assert(method.O.is(this.data.response));\n messages.push(this.data.response);\n }\n // start the stream with an initial delay.\n // if the request is cancelled, notify() error and exit.\n try {\n yield delay(this.responseDelay, abort)(undefined);\n }\n catch (error) {\n stream.notifyError(error);\n return;\n }\n // if error response was mocked, notify() error (stream is now closed with error) and exit.\n if (this.data.response instanceof rpc_error_1.RpcError) {\n stream.notifyError(this.data.response);\n return;\n }\n // regular response messages were mocked. notify() them.\n for (let msg of messages) {\n stream.notifyMessage(msg);\n // add a short delay between responses\n // if the request is cancelled, notify() error and exit.\n try {\n yield delay(this.betweenResponseDelay, abort)(undefined);\n }\n catch (error) {\n stream.notifyError(error);\n return;\n }\n }\n // error status was mocked, notify() error (stream is now closed with error) and exit.\n if (this.data.status instanceof rpc_error_1.RpcError) {\n stream.notifyError(this.data.status);\n return;\n }\n // error trailers were mocked, notify() error (stream is now closed with error) and exit.\n if (this.data.trailers instanceof rpc_error_1.RpcError) {\n stream.notifyError(this.data.trailers);\n return;\n }\n // stream completed successfully\n stream.notifyComplete();\n });\n }\n // Creates a promise for response status from the mock data.\n promiseStatus() {\n var _a;\n const status = (_a = this.data.status) !== null && _a !== void 0 ? _a : TestTransport.defaultStatus;\n return status instanceof rpc_error_1.RpcError\n ? Promise.reject(status)\n : Promise.resolve(status);\n }\n // Creates a promise for response trailers from the mock data.\n promiseTrailers() {\n var _a;\n const trailers = (_a = this.data.trailers) !== null && _a !== void 0 ? _a : TestTransport.defaultTrailers;\n return trailers instanceof rpc_error_1.RpcError\n ? Promise.reject(trailers)\n : Promise.resolve(trailers);\n }\n maybeSuppressUncaught(...promise) {\n if (this.suppressUncaughtRejections) {\n for (let p of promise) {\n p.catch(() => {\n });\n }\n }\n }\n mergeOptions(options) {\n return rpc_options_1.mergeRpcOptions({}, options);\n }\n unary(method, input, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise\n .catch(_ => {\n })\n .then(delay(this.responseDelay, options.abort))\n .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseStatus()), trailersPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = { single: input };\n return new unary_call_1.UnaryCall(method, requestHeaders, input, headersPromise, responsePromise, statusPromise, trailersPromise);\n }\n serverStreaming(method, input, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise\n .then(delay(this.responseDelay, options.abort))\n .catch(() => {\n })\n .then(() => this.streamResponses(method, outputStream, options.abort))\n .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise\n .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise\n .then(() => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = { single: input };\n return new server_streaming_call_1.ServerStreamingCall(method, requestHeaders, input, headersPromise, outputStream, statusPromise, trailersPromise);\n }\n clientStreaming(method, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise\n .catch(_ => {\n })\n .then(delay(this.responseDelay, options.abort))\n .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseStatus()), trailersPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = new TestInputStream(this.data, options.abort);\n return new client_streaming_call_1.ClientStreamingCall(method, requestHeaders, this.lastInput, headersPromise, responsePromise, statusPromise, trailersPromise);\n }\n duplex(method, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise\n .then(delay(this.responseDelay, options.abort))\n .catch(() => {\n })\n .then(() => this.streamResponses(method, outputStream, options.abort))\n .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise\n .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise\n .then(() => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = new TestInputStream(this.data, options.abort);\n return new duplex_streaming_call_1.DuplexStreamingCall(method, requestHeaders, this.lastInput, headersPromise, outputStream, statusPromise, trailersPromise);\n }\n}\nexports.TestTransport = TestTransport;\nTestTransport.defaultHeaders = {\n responseHeader: \"test\"\n};\nTestTransport.defaultStatus = {\n code: \"OK\", detail: \"all good\"\n};\nTestTransport.defaultTrailers = {\n responseTrailer: \"test\"\n};\nfunction delay(ms, abort) {\n return (v) => new Promise((resolve, reject) => {\n if (abort === null || abort === void 0 ? void 0 : abort.aborted) {\n reject(new rpc_error_1.RpcError(\"user cancel\", \"CANCELLED\"));\n }\n else {\n const id = setTimeout(() => resolve(v), ms);\n if (abort) {\n abort.addEventListener(\"abort\", ev => {\n clearTimeout(id);\n reject(new rpc_error_1.RpcError(\"user cancel\", \"CANCELLED\"));\n });\n }\n }\n });\n}\nclass TestInputStream {\n constructor(data, abort) {\n this._completed = false;\n this._sent = [];\n this.data = data;\n this.abort = abort;\n }\n get sent() {\n return this._sent;\n }\n get completed() {\n return this._completed;\n }\n send(message) {\n if (this.data.inputMessage instanceof rpc_error_1.RpcError) {\n return Promise.reject(this.data.inputMessage);\n }\n const delayMs = this.data.inputMessage === undefined\n ? 10\n : this.data.inputMessage;\n return Promise.resolve(undefined)\n .then(() => {\n this._sent.push(message);\n })\n .then(delay(delayMs, this.abort));\n }\n complete() {\n if (this.data.inputComplete instanceof rpc_error_1.RpcError) {\n return Promise.reject(this.data.inputComplete);\n }\n const delayMs = this.data.inputComplete === undefined\n ? 10\n : this.data.inputComplete;\n return Promise.resolve(undefined)\n .then(() => {\n this._completed = true;\n })\n .then(delay(delayMs, this.abort));\n }\n}\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UnaryCall = void 0;\n/**\n * A unary RPC call. Unary means there is exactly one input message and\n * exactly one output message unless an error occurred.\n */\nclass UnaryCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.request = request;\n this.headers = headers;\n this.response = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * If you are only interested in the final outcome of this call,\n * you can await it to receive a `FinishedUnaryCall`.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n request: this.request,\n headers,\n response,\n status,\n trailers\n };\n });\n }\n}\nexports.UnaryCall = UnaryCall;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0;\n/**\n * assert that condition is true or throw error (with message)\n */\nfunction assert(condition, msg) {\n if (!condition) {\n throw new Error(msg);\n }\n}\nexports.assert = assert;\n/**\n * assert that value cannot exist = type `never`. throw runtime error if it does.\n */\nfunction assertNever(value, msg) {\n throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected object: ' + value);\n}\nexports.assertNever = assertNever;\nconst FLOAT32_MAX = 3.4028234663852886e+38, FLOAT32_MIN = -3.4028234663852886e+38, UINT32_MAX = 0xFFFFFFFF, INT32_MAX = 0X7FFFFFFF, INT32_MIN = -0X80000000;\nfunction assertInt32(arg) {\n if (typeof arg !== \"number\")\n throw new Error('invalid int 32: ' + typeof arg);\n if (!Number.isInteger(arg) || arg > INT32_MAX || arg < INT32_MIN)\n throw new Error('invalid int 32: ' + arg);\n}\nexports.assertInt32 = assertInt32;\nfunction assertUInt32(arg) {\n if (typeof arg !== \"number\")\n throw new Error('invalid uint 32: ' + typeof arg);\n if (!Number.isInteger(arg) || arg > UINT32_MAX || arg < 0)\n throw new Error('invalid uint 32: ' + arg);\n}\nexports.assertUInt32 = assertUInt32;\nfunction assertFloat32(arg) {\n if (typeof arg !== \"number\")\n throw new Error('invalid float 32: ' + typeof arg);\n if (!Number.isFinite(arg))\n return;\n if (arg > FLOAT32_MAX || arg < FLOAT32_MIN)\n throw new Error('invalid float 32: ' + arg);\n}\nexports.assertFloat32 = assertFloat32;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.base64encode = exports.base64decode = void 0;\n// lookup table from base64 character to byte\nlet encTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');\n// lookup table from base64 character *code* to byte because lookup by number is fast\nlet decTable = [];\nfor (let i = 0; i < encTable.length; i++)\n decTable[encTable[i].charCodeAt(0)] = i;\n// support base64url variants\ndecTable[\"-\".charCodeAt(0)] = encTable.indexOf(\"+\");\ndecTable[\"_\".charCodeAt(0)] = encTable.indexOf(\"/\");\n/**\n * Decodes a base64 string to a byte array.\n *\n * - ignores white-space, including line breaks and tabs\n * - allows inner padding (can decode concatenated base64 strings)\n * - does not require padding\n * - understands base64url encoding:\n * \"-\" instead of \"+\",\n * \"_\" instead of \"/\",\n * no padding\n */\nfunction base64decode(base64Str) {\n // estimate byte size, not accounting for inner padding and whitespace\n let es = base64Str.length * 3 / 4;\n // if (es % 3 !== 0)\n // throw new Error('invalid base64 string');\n if (base64Str[base64Str.length - 2] == '=')\n es -= 2;\n else if (base64Str[base64Str.length - 1] == '=')\n es -= 1;\n let bytes = new Uint8Array(es), bytePos = 0, // position in byte array\n groupPos = 0, // position in base64 group\n b, // current byte\n p = 0 // previous byte\n ;\n for (let i = 0; i < base64Str.length; i++) {\n b = decTable[base64Str.charCodeAt(i)];\n if (b === undefined) {\n // noinspection FallThroughInSwitchStatementJS\n switch (base64Str[i]) {\n case '=':\n groupPos = 0; // reset state when padding found\n case '\\n':\n case '\\r':\n case '\\t':\n case ' ':\n continue; // skip white-space, and padding\n default:\n throw Error(`invalid base64 string.`);\n }\n }\n switch (groupPos) {\n case 0:\n p = b;\n groupPos = 1;\n break;\n case 1:\n bytes[bytePos++] = p << 2 | (b & 48) >> 4;\n p = b;\n groupPos = 2;\n break;\n case 2:\n bytes[bytePos++] = (p & 15) << 4 | (b & 60) >> 2;\n p = b;\n groupPos = 3;\n break;\n case 3:\n bytes[bytePos++] = (p & 3) << 6 | b;\n groupPos = 0;\n break;\n }\n }\n if (groupPos == 1)\n throw Error(`invalid base64 string.`);\n return bytes.subarray(0, bytePos);\n}\nexports.base64decode = base64decode;\n/**\n * Encodes a byte array to a base64 string.\n * Adds padding at the end.\n * Does not insert newlines.\n */\nfunction base64encode(bytes) {\n let base64 = '', groupPos = 0, // position in base64 group\n b, // current byte\n p = 0; // carry over from previous byte\n for (let i = 0; i < bytes.length; i++) {\n b = bytes[i];\n switch (groupPos) {\n case 0:\n base64 += encTable[b >> 2];\n p = (b & 3) << 4;\n groupPos = 1;\n break;\n case 1:\n base64 += encTable[p | b >> 4];\n p = (b & 15) << 2;\n groupPos = 2;\n break;\n case 2:\n base64 += encTable[p | b >> 6];\n base64 += encTable[b & 63];\n groupPos = 0;\n break;\n }\n }\n // padding required?\n if (groupPos) {\n base64 += encTable[p];\n base64 += '=';\n if (groupPos == 1)\n base64 += '=';\n }\n return base64;\n}\nexports.base64encode = base64encode;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0;\n/**\n * This handler implements the default behaviour for unknown fields.\n * When reading data, unknown fields are stored on the message, in a\n * symbol property.\n * When writing data, the symbol property is queried and unknown fields\n * are serialized into the output again.\n */\nvar UnknownFieldHandler;\n(function (UnknownFieldHandler) {\n /**\n * The symbol used to store unknown fields for a message.\n * The property must conform to `UnknownFieldContainer`.\n */\n UnknownFieldHandler.symbol = Symbol.for(\"protobuf-ts/unknown\");\n /**\n * Store an unknown field during binary read directly on the message.\n * This method is compatible with `BinaryReadOptions.readUnknownField`.\n */\n UnknownFieldHandler.onRead = (typeName, message, fieldNo, wireType, data) => {\n let container = is(message) ? message[UnknownFieldHandler.symbol] : message[UnknownFieldHandler.symbol] = [];\n container.push({ no: fieldNo, wireType, data });\n };\n /**\n * Write unknown fields stored for the message to the writer.\n * This method is compatible with `BinaryWriteOptions.writeUnknownFields`.\n */\n UnknownFieldHandler.onWrite = (typeName, message, writer) => {\n for (let { no, wireType, data } of UnknownFieldHandler.list(message))\n writer.tag(no, wireType).raw(data);\n };\n /**\n * List unknown fields stored for the message.\n * Note that there may be multiples fields with the same number.\n */\n UnknownFieldHandler.list = (message, fieldNo) => {\n if (is(message)) {\n let all = message[UnknownFieldHandler.symbol];\n return fieldNo ? all.filter(uf => uf.no == fieldNo) : all;\n }\n return [];\n };\n /**\n * Returns the last unknown field by field number.\n */\n UnknownFieldHandler.last = (message, fieldNo) => UnknownFieldHandler.list(message, fieldNo).slice(-1)[0];\n const is = (message) => message && Array.isArray(message[UnknownFieldHandler.symbol]);\n})(UnknownFieldHandler = exports.UnknownFieldHandler || (exports.UnknownFieldHandler = {}));\n/**\n * Merges binary write or read options. Later values override earlier values.\n */\nfunction mergeBinaryOptions(a, b) {\n return Object.assign(Object.assign({}, a), b);\n}\nexports.mergeBinaryOptions = mergeBinaryOptions;\n/**\n * Protobuf binary format wire types.\n *\n * A wire type provides just enough information to find the length of the\n * following value.\n *\n * See https://developers.google.com/protocol-buffers/docs/encoding#structure\n */\nvar WireType;\n(function (WireType) {\n /**\n * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum\n */\n WireType[WireType[\"Varint\"] = 0] = \"Varint\";\n /**\n * Used for fixed64, sfixed64, double.\n * Always 8 bytes with little-endian byte order.\n */\n WireType[WireType[\"Bit64\"] = 1] = \"Bit64\";\n /**\n * Used for string, bytes, embedded messages, packed repeated fields\n *\n * Only repeated numeric types (types which use the varint, 32-bit,\n * or 64-bit wire types) can be packed. In proto3, such fields are\n * packed by default.\n */\n WireType[WireType[\"LengthDelimited\"] = 2] = \"LengthDelimited\";\n /**\n * Used for groups\n * @deprecated\n */\n WireType[WireType[\"StartGroup\"] = 3] = \"StartGroup\";\n /**\n * Used for groups\n * @deprecated\n */\n WireType[WireType[\"EndGroup\"] = 4] = \"EndGroup\";\n /**\n * Used for fixed32, sfixed32, float.\n * Always 4 bytes with little-endian byte order.\n */\n WireType[WireType[\"Bit32\"] = 5] = \"Bit32\";\n})(WireType = exports.WireType || (exports.WireType = {}));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BinaryReader = exports.binaryReadOptions = void 0;\nconst binary_format_contract_1 = require(\"./binary-format-contract\");\nconst pb_long_1 = require(\"./pb-long\");\nconst goog_varint_1 = require(\"./goog-varint\");\nconst defaultsRead = {\n readUnknownField: true,\n readerFactory: bytes => new BinaryReader(bytes),\n};\n/**\n * Make options for reading binary data form partial options.\n */\nfunction binaryReadOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;\n}\nexports.binaryReadOptions = binaryReadOptions;\nclass BinaryReader {\n constructor(buf, textDecoder) {\n this.varint64 = goog_varint_1.varint64read; // dirty cast for `this`\n /**\n * Read a `uint32` field, an unsigned 32 bit varint.\n */\n this.uint32 = goog_varint_1.varint32read; // dirty cast for `this` and access to protected `buf`\n this.buf = buf;\n this.len = buf.length;\n this.pos = 0;\n this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);\n this.textDecoder = textDecoder !== null && textDecoder !== void 0 ? textDecoder : new TextDecoder(\"utf-8\", {\n fatal: true,\n ignoreBOM: true,\n });\n }\n /**\n * Reads a tag - field number and wire type.\n */\n tag() {\n let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;\n if (fieldNo <= 0 || wireType < 0 || wireType > 5)\n throw new Error(\"illegal tag: field no \" + fieldNo + \" wire type \" + wireType);\n return [fieldNo, wireType];\n }\n /**\n * Skip one element on the wire and return the skipped data.\n * Supports WireType.StartGroup since v2.0.0-alpha.23.\n */\n skip(wireType) {\n let start = this.pos;\n // noinspection FallThroughInSwitchStatementJS\n switch (wireType) {\n case binary_format_contract_1.WireType.Varint:\n while (this.buf[this.pos++] & 0x80) {\n // ignore\n }\n break;\n case binary_format_contract_1.WireType.Bit64:\n this.pos += 4;\n case binary_format_contract_1.WireType.Bit32:\n this.pos += 4;\n break;\n case binary_format_contract_1.WireType.LengthDelimited:\n let len = this.uint32();\n this.pos += len;\n break;\n case binary_format_contract_1.WireType.StartGroup:\n // From descriptor.proto: Group type is deprecated, not supported in proto3.\n // But we must still be able to parse and treat as unknown.\n let t;\n while ((t = this.tag()[1]) !== binary_format_contract_1.WireType.EndGroup) {\n this.skip(t);\n }\n break;\n default:\n throw new Error(\"cant skip wire type \" + wireType);\n }\n this.assertBounds();\n return this.buf.subarray(start, this.pos);\n }\n /**\n * Throws error if position in byte array is out of range.\n */\n assertBounds() {\n if (this.pos > this.len)\n throw new RangeError(\"premature EOF\");\n }\n /**\n * Read a `int32` field, a signed 32 bit varint.\n */\n int32() {\n return this.uint32() | 0;\n }\n /**\n * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.\n */\n sint32() {\n let zze = this.uint32();\n // decode zigzag\n return (zze >>> 1) ^ -(zze & 1);\n }\n /**\n * Read a `int64` field, a signed 64-bit varint.\n */\n int64() {\n return new pb_long_1.PbLong(...this.varint64());\n }\n /**\n * Read a `uint64` field, an unsigned 64-bit varint.\n */\n uint64() {\n return new pb_long_1.PbULong(...this.varint64());\n }\n /**\n * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.\n */\n sint64() {\n let [lo, hi] = this.varint64();\n // decode zig zag\n let s = -(lo & 1);\n lo = ((lo >>> 1 | (hi & 1) << 31) ^ s);\n hi = (hi >>> 1 ^ s);\n return new pb_long_1.PbLong(lo, hi);\n }\n /**\n * Read a `bool` field, a variant.\n */\n bool() {\n let [lo, hi] = this.varint64();\n return lo !== 0 || hi !== 0;\n }\n /**\n * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.\n */\n fixed32() {\n return this.view.getUint32((this.pos += 4) - 4, true);\n }\n /**\n * Read a `sfixed32` field, a signed, fixed-length 32-bit integer.\n */\n sfixed32() {\n return this.view.getInt32((this.pos += 4) - 4, true);\n }\n /**\n * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.\n */\n fixed64() {\n return new pb_long_1.PbULong(this.sfixed32(), this.sfixed32());\n }\n /**\n * Read a `fixed64` field, a signed, fixed-length 64-bit integer.\n */\n sfixed64() {\n return new pb_long_1.PbLong(this.sfixed32(), this.sfixed32());\n }\n /**\n * Read a `float` field, 32-bit floating point number.\n */\n float() {\n return this.view.getFloat32((this.pos += 4) - 4, true);\n }\n /**\n * Read a `double` field, a 64-bit floating point number.\n */\n double() {\n return this.view.getFloat64((this.pos += 8) - 8, true);\n }\n /**\n * Read a `bytes` field, length-delimited arbitrary data.\n */\n bytes() {\n let len = this.uint32();\n let start = this.pos;\n this.pos += len;\n this.assertBounds();\n return this.buf.subarray(start, start + len);\n }\n /**\n * Read a `string` field, length-delimited data converted to UTF-8 text.\n */\n string() {\n return this.textDecoder.decode(this.bytes());\n }\n}\nexports.BinaryReader = BinaryReader;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BinaryWriter = exports.binaryWriteOptions = void 0;\nconst pb_long_1 = require(\"./pb-long\");\nconst goog_varint_1 = require(\"./goog-varint\");\nconst assert_1 = require(\"./assert\");\nconst defaultsWrite = {\n writeUnknownFields: true,\n writerFactory: () => new BinaryWriter(),\n};\n/**\n * Make options for writing binary data form partial options.\n */\nfunction binaryWriteOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;\n}\nexports.binaryWriteOptions = binaryWriteOptions;\nclass BinaryWriter {\n constructor(textEncoder) {\n /**\n * Previous fork states.\n */\n this.stack = [];\n this.textEncoder = textEncoder !== null && textEncoder !== void 0 ? textEncoder : new TextEncoder();\n this.chunks = [];\n this.buf = [];\n }\n /**\n * Return all bytes written and reset this writer.\n */\n finish() {\n this.chunks.push(new Uint8Array(this.buf)); // flush the buffer\n let len = 0;\n for (let i = 0; i < this.chunks.length; i++)\n len += this.chunks[i].length;\n let bytes = new Uint8Array(len);\n let offset = 0;\n for (let i = 0; i < this.chunks.length; i++) {\n bytes.set(this.chunks[i], offset);\n offset += this.chunks[i].length;\n }\n this.chunks = [];\n return bytes;\n }\n /**\n * Start a new fork for length-delimited data like a message\n * or a packed repeated field.\n *\n * Must be joined later with `join()`.\n */\n fork() {\n this.stack.push({ chunks: this.chunks, buf: this.buf });\n this.chunks = [];\n this.buf = [];\n return this;\n }\n /**\n * Join the last fork. Write its length and bytes, then\n * return to the previous state.\n */\n join() {\n // get chunk of fork\n let chunk = this.finish();\n // restore previous state\n let prev = this.stack.pop();\n if (!prev)\n throw new Error('invalid state, fork stack empty');\n this.chunks = prev.chunks;\n this.buf = prev.buf;\n // write length of chunk as varint\n this.uint32(chunk.byteLength);\n return this.raw(chunk);\n }\n /**\n * Writes a tag (field number and wire type).\n *\n * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`.\n *\n * Generated code should compute the tag ahead of time and call `uint32()`.\n */\n tag(fieldNo, type) {\n return this.uint32((fieldNo << 3 | type) >>> 0);\n }\n /**\n * Write a chunk of raw bytes.\n */\n raw(chunk) {\n if (this.buf.length) {\n this.chunks.push(new Uint8Array(this.buf));\n this.buf = [];\n }\n this.chunks.push(chunk);\n return this;\n }\n /**\n * Write a `uint32` value, an unsigned 32 bit varint.\n */\n uint32(value) {\n assert_1.assertUInt32(value);\n // write value as varint 32, inlined for speed\n while (value > 0x7f) {\n this.buf.push((value & 0x7f) | 0x80);\n value = value >>> 7;\n }\n this.buf.push(value);\n return this;\n }\n /**\n * Write a `int32` value, a signed 32 bit varint.\n */\n int32(value) {\n assert_1.assertInt32(value);\n goog_varint_1.varint32write(value, this.buf);\n return this;\n }\n /**\n * Write a `bool` value, a variant.\n */\n bool(value) {\n this.buf.push(value ? 1 : 0);\n return this;\n }\n /**\n * Write a `bytes` value, length-delimited arbitrary data.\n */\n bytes(value) {\n this.uint32(value.byteLength); // write length of chunk as varint\n return this.raw(value);\n }\n /**\n * Write a `string` value, length-delimited data converted to UTF-8 text.\n */\n string(value) {\n let chunk = this.textEncoder.encode(value);\n this.uint32(chunk.byteLength); // write length of chunk as varint\n return this.raw(chunk);\n }\n /**\n * Write a `float` value, 32-bit floating point number.\n */\n float(value) {\n assert_1.assertFloat32(value);\n let chunk = new Uint8Array(4);\n new DataView(chunk.buffer).setFloat32(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `double` value, a 64-bit floating point number.\n */\n double(value) {\n let chunk = new Uint8Array(8);\n new DataView(chunk.buffer).setFloat64(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.\n */\n fixed32(value) {\n assert_1.assertUInt32(value);\n let chunk = new Uint8Array(4);\n new DataView(chunk.buffer).setUint32(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `sfixed32` value, a signed, fixed-length 32-bit integer.\n */\n sfixed32(value) {\n assert_1.assertInt32(value);\n let chunk = new Uint8Array(4);\n new DataView(chunk.buffer).setInt32(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.\n */\n sint32(value) {\n assert_1.assertInt32(value);\n // zigzag encode\n value = ((value << 1) ^ (value >> 31)) >>> 0;\n goog_varint_1.varint32write(value, this.buf);\n return this;\n }\n /**\n * Write a `fixed64` value, a signed, fixed-length 64-bit integer.\n */\n sfixed64(value) {\n let chunk = new Uint8Array(8);\n let view = new DataView(chunk.buffer);\n let long = pb_long_1.PbLong.from(value);\n view.setInt32(0, long.lo, true);\n view.setInt32(4, long.hi, true);\n return this.raw(chunk);\n }\n /**\n * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.\n */\n fixed64(value) {\n let chunk = new Uint8Array(8);\n let view = new DataView(chunk.buffer);\n let long = pb_long_1.PbULong.from(value);\n view.setInt32(0, long.lo, true);\n view.setInt32(4, long.hi, true);\n return this.raw(chunk);\n }\n /**\n * Write a `int64` value, a signed 64-bit varint.\n */\n int64(value) {\n let long = pb_long_1.PbLong.from(value);\n goog_varint_1.varint64write(long.lo, long.hi, this.buf);\n return this;\n }\n /**\n * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.\n */\n sint64(value) {\n let long = pb_long_1.PbLong.from(value), \n // zigzag encode\n sign = long.hi >> 31, lo = (long.lo << 1) ^ sign, hi = ((long.hi << 1) | (long.lo >>> 31)) ^ sign;\n goog_varint_1.varint64write(lo, hi, this.buf);\n return this;\n }\n /**\n * Write a `uint64` value, an unsigned 64-bit varint.\n */\n uint64(value) {\n let long = pb_long_1.PbULong.from(value);\n goog_varint_1.varint64write(long.lo, long.hi, this.buf);\n return this;\n }\n}\nexports.BinaryWriter = BinaryWriter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0;\n/**\n * Is this a lookup object generated by Typescript, for a Typescript enum\n * generated by protobuf-ts?\n *\n * - No `const enum` (enum must not be inlined, we need reverse mapping).\n * - No string enum (we need int32 for protobuf).\n * - Must have a value for 0 (otherwise, we would need to support custom default values).\n */\nfunction isEnumObject(arg) {\n if (typeof arg != 'object' || arg === null) {\n return false;\n }\n if (!arg.hasOwnProperty(0)) {\n return false;\n }\n for (let k of Object.keys(arg)) {\n let num = parseInt(k);\n if (!Number.isNaN(num)) {\n // is there a name for the number?\n let nam = arg[num];\n if (nam === undefined)\n return false;\n // does the name resolve back to the number?\n if (arg[nam] !== num)\n return false;\n }\n else {\n // is there a number for the name?\n let num = arg[k];\n if (num === undefined)\n return false;\n // is it a string enum?\n if (typeof num !== 'number')\n return false;\n // do we know the number?\n if (arg[num] === undefined)\n return false;\n }\n }\n return true;\n}\nexports.isEnumObject = isEnumObject;\n/**\n * Lists all values of a Typescript enum, as an array of objects with a \"name\"\n * property and a \"number\" property.\n *\n * Note that it is possible that a number appears more than once, because it is\n * possible to have aliases in an enum.\n *\n * Throws if the enum does not adhere to the rules of enums generated by\n * protobuf-ts. See `isEnumObject()`.\n */\nfunction listEnumValues(enumObject) {\n if (!isEnumObject(enumObject))\n throw new Error(\"not a typescript enum object\");\n let values = [];\n for (let [name, number] of Object.entries(enumObject))\n if (typeof number == \"number\")\n values.push({ name, number });\n return values;\n}\nexports.listEnumValues = listEnumValues;\n/**\n * Lists the names of a Typescript enum.\n *\n * Throws if the enum does not adhere to the rules of enums generated by\n * protobuf-ts. See `isEnumObject()`.\n */\nfunction listEnumNames(enumObject) {\n return listEnumValues(enumObject).map(val => val.name);\n}\nexports.listEnumNames = listEnumNames;\n/**\n * Lists the numbers of a Typescript enum.\n *\n * Throws if the enum does not adhere to the rules of enums generated by\n * protobuf-ts. See `isEnumObject()`.\n */\nfunction listEnumNumbers(enumObject) {\n return listEnumValues(enumObject)\n .map(val => val.number)\n .filter((num, index, arr) => arr.indexOf(num) == index);\n}\nexports.listEnumNumbers = listEnumNumbers;\n","\"use strict\";\n// Copyright 2008 Google Inc. All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n// Code generated by the Protocol Buffer compiler is owned by the owner\n// of the input file used when generating it. This code is not\n// standalone and requires a support library to be linked with it. This\n// support library is itself covered by the above license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.varint32read = exports.varint32write = exports.int64toString = exports.int64fromString = exports.varint64write = exports.varint64read = void 0;\n/**\n * Read a 64 bit varint as two JS numbers.\n *\n * Returns tuple:\n * [0]: low bits\n * [0]: high bits\n *\n * Copyright 2008 Google Inc. All rights reserved.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175\n */\nfunction varint64read() {\n let lowBits = 0;\n let highBits = 0;\n for (let shift = 0; shift < 28; shift += 7) {\n let b = this.buf[this.pos++];\n lowBits |= (b & 0x7F) << shift;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return [lowBits, highBits];\n }\n }\n let middleByte = this.buf[this.pos++];\n // last four bits of the first 32 bit number\n lowBits |= (middleByte & 0x0F) << 28;\n // 3 upper bits are part of the next 32 bit number\n highBits = (middleByte & 0x70) >> 4;\n if ((middleByte & 0x80) == 0) {\n this.assertBounds();\n return [lowBits, highBits];\n }\n for (let shift = 3; shift <= 31; shift += 7) {\n let b = this.buf[this.pos++];\n highBits |= (b & 0x7F) << shift;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return [lowBits, highBits];\n }\n }\n throw new Error('invalid varint');\n}\nexports.varint64read = varint64read;\n/**\n * Write a 64 bit varint, given as two JS numbers, to the given bytes array.\n *\n * Copyright 2008 Google Inc. All rights reserved.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344\n */\nfunction varint64write(lo, hi, bytes) {\n for (let i = 0; i < 28; i = i + 7) {\n const shift = lo >>> i;\n const hasNext = !((shift >>> 7) == 0 && hi == 0);\n const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;\n bytes.push(byte);\n if (!hasNext) {\n return;\n }\n }\n const splitBits = ((lo >>> 28) & 0x0F) | ((hi & 0x07) << 4);\n const hasMoreBits = !((hi >> 3) == 0);\n bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xFF);\n if (!hasMoreBits) {\n return;\n }\n for (let i = 3; i < 31; i = i + 7) {\n const shift = hi >>> i;\n const hasNext = !((shift >>> 7) == 0);\n const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;\n bytes.push(byte);\n if (!hasNext) {\n return;\n }\n }\n bytes.push((hi >>> 31) & 0x01);\n}\nexports.varint64write = varint64write;\n// constants for binary math\nconst TWO_PWR_32_DBL = (1 << 16) * (1 << 16);\n/**\n * Parse decimal string of 64 bit integer value as two JS numbers.\n *\n * Returns tuple:\n * [0]: minus sign?\n * [1]: low bits\n * [2]: high bits\n *\n * Copyright 2008 Google Inc.\n */\nfunction int64fromString(dec) {\n // Check for minus sign.\n let minus = dec[0] == '-';\n if (minus)\n dec = dec.slice(1);\n // Work 6 decimal digits at a time, acting like we're converting base 1e6\n // digits to binary. This is safe to do with floating point math because\n // Number.isSafeInteger(ALL_32_BITS * 1e6) == true.\n const base = 1e6;\n let lowBits = 0;\n let highBits = 0;\n function add1e6digit(begin, end) {\n // Note: Number('') is 0.\n const digit1e6 = Number(dec.slice(begin, end));\n highBits *= base;\n lowBits = lowBits * base + digit1e6;\n // Carry bits from lowBits to highBits\n if (lowBits >= TWO_PWR_32_DBL) {\n highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);\n lowBits = lowBits % TWO_PWR_32_DBL;\n }\n }\n add1e6digit(-24, -18);\n add1e6digit(-18, -12);\n add1e6digit(-12, -6);\n add1e6digit(-6);\n return [minus, lowBits, highBits];\n}\nexports.int64fromString = int64fromString;\n/**\n * Format 64 bit integer value (as two JS numbers) to decimal string.\n *\n * Copyright 2008 Google Inc.\n */\nfunction int64toString(bitsLow, bitsHigh) {\n // Skip the expensive conversion if the number is small enough to use the\n // built-in conversions.\n if ((bitsHigh >>> 0) <= 0x1FFFFF) {\n return '' + (TWO_PWR_32_DBL * bitsHigh + (bitsLow >>> 0));\n }\n // What this code is doing is essentially converting the input number from\n // base-2 to base-1e7, which allows us to represent the 64-bit range with\n // only 3 (very large) digits. Those digits are then trivial to convert to\n // a base-10 string.\n // The magic numbers used here are -\n // 2^24 = 16777216 = (1,6777216) in base-1e7.\n // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.\n // Split 32:32 representation into 16:24:24 representation so our\n // intermediate digits don't overflow.\n let low = bitsLow & 0xFFFFFF;\n let mid = (((bitsLow >>> 24) | (bitsHigh << 8)) >>> 0) & 0xFFFFFF;\n let high = (bitsHigh >> 16) & 0xFFFF;\n // Assemble our three base-1e7 digits, ignoring carries. The maximum\n // value in a digit at this step is representable as a 48-bit integer, which\n // can be stored in a 64-bit floating point number.\n let digitA = low + (mid * 6777216) + (high * 6710656);\n let digitB = mid + (high * 8147497);\n let digitC = (high * 2);\n // Apply carries from A to B and from B to C.\n let base = 10000000;\n if (digitA >= base) {\n digitB += Math.floor(digitA / base);\n digitA %= base;\n }\n if (digitB >= base) {\n digitC += Math.floor(digitB / base);\n digitB %= base;\n }\n // Convert base-1e7 digits to base-10, with optional leading zeroes.\n function decimalFrom1e7(digit1e7, needLeadingZeros) {\n let partial = digit1e7 ? String(digit1e7) : '';\n if (needLeadingZeros) {\n return '0000000'.slice(partial.length) + partial;\n }\n return partial;\n }\n return decimalFrom1e7(digitC, /*needLeadingZeros=*/ 0) +\n decimalFrom1e7(digitB, /*needLeadingZeros=*/ digitC) +\n // If the final 1e7 digit didn't need leading zeros, we would have\n // returned via the trivial code path at the top.\n decimalFrom1e7(digitA, /*needLeadingZeros=*/ 1);\n}\nexports.int64toString = int64toString;\n/**\n * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`\n *\n * Copyright 2008 Google Inc. All rights reserved.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144\n */\nfunction varint32write(value, bytes) {\n if (value >= 0) {\n // write value as varint 32\n while (value > 0x7f) {\n bytes.push((value & 0x7f) | 0x80);\n value = value >>> 7;\n }\n bytes.push(value);\n }\n else {\n for (let i = 0; i < 9; i++) {\n bytes.push(value & 127 | 128);\n value = value >> 7;\n }\n bytes.push(1);\n }\n}\nexports.varint32write = varint32write;\n/**\n * Read an unsigned 32 bit varint.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220\n */\nfunction varint32read() {\n let b = this.buf[this.pos++];\n let result = b & 0x7F;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n b = this.buf[this.pos++];\n result |= (b & 0x7F) << 7;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n b = this.buf[this.pos++];\n result |= (b & 0x7F) << 14;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n b = this.buf[this.pos++];\n result |= (b & 0x7F) << 21;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n // Extract only last 4 bits\n b = this.buf[this.pos++];\n result |= (b & 0x0F) << 28;\n for (let readBytes = 5; ((b & 0x80) !== 0) && readBytes < 10; readBytes++)\n b = this.buf[this.pos++];\n if ((b & 0x80) != 0)\n throw new Error('invalid varint');\n this.assertBounds();\n // Result can have 32 bits, convert it to unsigned\n return result >>> 0;\n}\nexports.varint32read = varint32read;\n","\"use strict\";\n// Public API of the protobuf-ts runtime.\n// Note: we do not use `export * from ...` to help tree shakers,\n// webpack verbose output hints that this should be useful\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Convenience JSON typings and corresponding type guards\nvar json_typings_1 = require(\"./json-typings\");\nObject.defineProperty(exports, \"typeofJsonValue\", { enumerable: true, get: function () { return json_typings_1.typeofJsonValue; } });\nObject.defineProperty(exports, \"isJsonObject\", { enumerable: true, get: function () { return json_typings_1.isJsonObject; } });\n// Base 64 encoding\nvar base64_1 = require(\"./base64\");\nObject.defineProperty(exports, \"base64decode\", { enumerable: true, get: function () { return base64_1.base64decode; } });\nObject.defineProperty(exports, \"base64encode\", { enumerable: true, get: function () { return base64_1.base64encode; } });\n// UTF8 encoding\nvar protobufjs_utf8_1 = require(\"./protobufjs-utf8\");\nObject.defineProperty(exports, \"utf8read\", { enumerable: true, get: function () { return protobufjs_utf8_1.utf8read; } });\n// Binary format contracts, options for reading and writing, for example\nvar binary_format_contract_1 = require(\"./binary-format-contract\");\nObject.defineProperty(exports, \"WireType\", { enumerable: true, get: function () { return binary_format_contract_1.WireType; } });\nObject.defineProperty(exports, \"mergeBinaryOptions\", { enumerable: true, get: function () { return binary_format_contract_1.mergeBinaryOptions; } });\nObject.defineProperty(exports, \"UnknownFieldHandler\", { enumerable: true, get: function () { return binary_format_contract_1.UnknownFieldHandler; } });\n// Standard IBinaryReader implementation\nvar binary_reader_1 = require(\"./binary-reader\");\nObject.defineProperty(exports, \"BinaryReader\", { enumerable: true, get: function () { return binary_reader_1.BinaryReader; } });\nObject.defineProperty(exports, \"binaryReadOptions\", { enumerable: true, get: function () { return binary_reader_1.binaryReadOptions; } });\n// Standard IBinaryWriter implementation\nvar binary_writer_1 = require(\"./binary-writer\");\nObject.defineProperty(exports, \"BinaryWriter\", { enumerable: true, get: function () { return binary_writer_1.BinaryWriter; } });\nObject.defineProperty(exports, \"binaryWriteOptions\", { enumerable: true, get: function () { return binary_writer_1.binaryWriteOptions; } });\n// Int64 and UInt64 implementations required for the binary format\nvar pb_long_1 = require(\"./pb-long\");\nObject.defineProperty(exports, \"PbLong\", { enumerable: true, get: function () { return pb_long_1.PbLong; } });\nObject.defineProperty(exports, \"PbULong\", { enumerable: true, get: function () { return pb_long_1.PbULong; } });\n// JSON format contracts, options for reading and writing, for example\nvar json_format_contract_1 = require(\"./json-format-contract\");\nObject.defineProperty(exports, \"jsonReadOptions\", { enumerable: true, get: function () { return json_format_contract_1.jsonReadOptions; } });\nObject.defineProperty(exports, \"jsonWriteOptions\", { enumerable: true, get: function () { return json_format_contract_1.jsonWriteOptions; } });\nObject.defineProperty(exports, \"mergeJsonOptions\", { enumerable: true, get: function () { return json_format_contract_1.mergeJsonOptions; } });\n// Message type contract\nvar message_type_contract_1 = require(\"./message-type-contract\");\nObject.defineProperty(exports, \"MESSAGE_TYPE\", { enumerable: true, get: function () { return message_type_contract_1.MESSAGE_TYPE; } });\n// Message type implementation via reflection\nvar message_type_1 = require(\"./message-type\");\nObject.defineProperty(exports, \"MessageType\", { enumerable: true, get: function () { return message_type_1.MessageType; } });\n// Reflection info, generated by the plugin, exposed to the user, used by reflection ops\nvar reflection_info_1 = require(\"./reflection-info\");\nObject.defineProperty(exports, \"ScalarType\", { enumerable: true, get: function () { return reflection_info_1.ScalarType; } });\nObject.defineProperty(exports, \"LongType\", { enumerable: true, get: function () { return reflection_info_1.LongType; } });\nObject.defineProperty(exports, \"RepeatType\", { enumerable: true, get: function () { return reflection_info_1.RepeatType; } });\nObject.defineProperty(exports, \"normalizeFieldInfo\", { enumerable: true, get: function () { return reflection_info_1.normalizeFieldInfo; } });\nObject.defineProperty(exports, \"readFieldOptions\", { enumerable: true, get: function () { return reflection_info_1.readFieldOptions; } });\nObject.defineProperty(exports, \"readFieldOption\", { enumerable: true, get: function () { return reflection_info_1.readFieldOption; } });\nObject.defineProperty(exports, \"readMessageOption\", { enumerable: true, get: function () { return reflection_info_1.readMessageOption; } });\n// Message operations via reflection\nvar reflection_type_check_1 = require(\"./reflection-type-check\");\nObject.defineProperty(exports, \"ReflectionTypeCheck\", { enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } });\nvar reflection_create_1 = require(\"./reflection-create\");\nObject.defineProperty(exports, \"reflectionCreate\", { enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } });\nvar reflection_scalar_default_1 = require(\"./reflection-scalar-default\");\nObject.defineProperty(exports, \"reflectionScalarDefault\", { enumerable: true, get: function () { return reflection_scalar_default_1.reflectionScalarDefault; } });\nvar reflection_merge_partial_1 = require(\"./reflection-merge-partial\");\nObject.defineProperty(exports, \"reflectionMergePartial\", { enumerable: true, get: function () { return reflection_merge_partial_1.reflectionMergePartial; } });\nvar reflection_equals_1 = require(\"./reflection-equals\");\nObject.defineProperty(exports, \"reflectionEquals\", { enumerable: true, get: function () { return reflection_equals_1.reflectionEquals; } });\nvar reflection_binary_reader_1 = require(\"./reflection-binary-reader\");\nObject.defineProperty(exports, \"ReflectionBinaryReader\", { enumerable: true, get: function () { return reflection_binary_reader_1.ReflectionBinaryReader; } });\nvar reflection_binary_writer_1 = require(\"./reflection-binary-writer\");\nObject.defineProperty(exports, \"ReflectionBinaryWriter\", { enumerable: true, get: function () { return reflection_binary_writer_1.ReflectionBinaryWriter; } });\nvar reflection_json_reader_1 = require(\"./reflection-json-reader\");\nObject.defineProperty(exports, \"ReflectionJsonReader\", { enumerable: true, get: function () { return reflection_json_reader_1.ReflectionJsonReader; } });\nvar reflection_json_writer_1 = require(\"./reflection-json-writer\");\nObject.defineProperty(exports, \"ReflectionJsonWriter\", { enumerable: true, get: function () { return reflection_json_writer_1.ReflectionJsonWriter; } });\nvar reflection_contains_message_type_1 = require(\"./reflection-contains-message-type\");\nObject.defineProperty(exports, \"containsMessageType\", { enumerable: true, get: function () { return reflection_contains_message_type_1.containsMessageType; } });\n// Oneof helpers\nvar oneof_1 = require(\"./oneof\");\nObject.defineProperty(exports, \"isOneofGroup\", { enumerable: true, get: function () { return oneof_1.isOneofGroup; } });\nObject.defineProperty(exports, \"setOneofValue\", { enumerable: true, get: function () { return oneof_1.setOneofValue; } });\nObject.defineProperty(exports, \"getOneofValue\", { enumerable: true, get: function () { return oneof_1.getOneofValue; } });\nObject.defineProperty(exports, \"clearOneofValue\", { enumerable: true, get: function () { return oneof_1.clearOneofValue; } });\nObject.defineProperty(exports, \"getSelectedOneofValue\", { enumerable: true, get: function () { return oneof_1.getSelectedOneofValue; } });\n// Enum object type guard and reflection util, may be interesting to the user.\nvar enum_object_1 = require(\"./enum-object\");\nObject.defineProperty(exports, \"listEnumValues\", { enumerable: true, get: function () { return enum_object_1.listEnumValues; } });\nObject.defineProperty(exports, \"listEnumNames\", { enumerable: true, get: function () { return enum_object_1.listEnumNames; } });\nObject.defineProperty(exports, \"listEnumNumbers\", { enumerable: true, get: function () { return enum_object_1.listEnumNumbers; } });\nObject.defineProperty(exports, \"isEnumObject\", { enumerable: true, get: function () { return enum_object_1.isEnumObject; } });\n// lowerCamelCase() is exported for plugin, rpc-runtime and other rpc packages\nvar lower_camel_case_1 = require(\"./lower-camel-case\");\nObject.defineProperty(exports, \"lowerCamelCase\", { enumerable: true, get: function () { return lower_camel_case_1.lowerCamelCase; } });\n// assertion functions are exported for plugin, may also be useful to user\nvar assert_1 = require(\"./assert\");\nObject.defineProperty(exports, \"assert\", { enumerable: true, get: function () { return assert_1.assert; } });\nObject.defineProperty(exports, \"assertNever\", { enumerable: true, get: function () { return assert_1.assertNever; } });\nObject.defineProperty(exports, \"assertInt32\", { enumerable: true, get: function () { return assert_1.assertInt32; } });\nObject.defineProperty(exports, \"assertUInt32\", { enumerable: true, get: function () { return assert_1.assertUInt32; } });\nObject.defineProperty(exports, \"assertFloat32\", { enumerable: true, get: function () { return assert_1.assertFloat32; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0;\nconst defaultsWrite = {\n emitDefaultValues: false,\n enumAsInteger: false,\n useProtoFieldName: false,\n prettySpaces: 0,\n}, defaultsRead = {\n ignoreUnknownFields: false,\n};\n/**\n * Make options for reading JSON data from partial options.\n */\nfunction jsonReadOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;\n}\nexports.jsonReadOptions = jsonReadOptions;\n/**\n * Make options for writing JSON data from partial options.\n */\nfunction jsonWriteOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;\n}\nexports.jsonWriteOptions = jsonWriteOptions;\n/**\n * Merges JSON write or read options. Later values override earlier values. Type registries are merged.\n */\nfunction mergeJsonOptions(a, b) {\n var _a, _b;\n let c = Object.assign(Object.assign({}, a), b);\n c.typeRegistry = [...((_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : []), ...((_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : [])];\n return c;\n}\nexports.mergeJsonOptions = mergeJsonOptions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isJsonObject = exports.typeofJsonValue = void 0;\n/**\n * Get the type of a JSON value.\n * Distinguishes between array, null and object.\n */\nfunction typeofJsonValue(value) {\n let t = typeof value;\n if (t == \"object\") {\n if (Array.isArray(value))\n return \"array\";\n if (value === null)\n return \"null\";\n }\n return t;\n}\nexports.typeofJsonValue = typeofJsonValue;\n/**\n * Is this a JSON object (instead of an array or null)?\n */\nfunction isJsonObject(value) {\n return value !== null && typeof value == \"object\" && !Array.isArray(value);\n}\nexports.isJsonObject = isJsonObject;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lowerCamelCase = void 0;\n/**\n * Converts snake_case to lowerCamelCase.\n *\n * Should behave like protoc:\n * https://github.com/protocolbuffers/protobuf/blob/e8ae137c96444ea313485ed1118c5e43b2099cf1/src/google/protobuf/compiler/java/java_helpers.cc#L118\n */\nfunction lowerCamelCase(snakeCase) {\n let capNext = false;\n const sb = [];\n for (let i = 0; i < snakeCase.length; i++) {\n let next = snakeCase.charAt(i);\n if (next == '_') {\n capNext = true;\n }\n else if (/\\d/.test(next)) {\n sb.push(next);\n capNext = true;\n }\n else if (capNext) {\n sb.push(next.toUpperCase());\n capNext = false;\n }\n else if (i == 0) {\n sb.push(next.toLowerCase());\n }\n else {\n sb.push(next);\n }\n }\n return sb.join('');\n}\nexports.lowerCamelCase = lowerCamelCase;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MESSAGE_TYPE = void 0;\n/**\n * The symbol used as a key on message objects to store the message type.\n *\n * Note that this is an experimental feature - it is here to stay, but\n * implementation details may change without notice.\n */\nexports.MESSAGE_TYPE = Symbol.for(\"protobuf-ts/message-type\");\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MessageType = void 0;\nconst message_type_contract_1 = require(\"./message-type-contract\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst reflection_type_check_1 = require(\"./reflection-type-check\");\nconst reflection_json_reader_1 = require(\"./reflection-json-reader\");\nconst reflection_json_writer_1 = require(\"./reflection-json-writer\");\nconst reflection_binary_reader_1 = require(\"./reflection-binary-reader\");\nconst reflection_binary_writer_1 = require(\"./reflection-binary-writer\");\nconst reflection_create_1 = require(\"./reflection-create\");\nconst reflection_merge_partial_1 = require(\"./reflection-merge-partial\");\nconst json_typings_1 = require(\"./json-typings\");\nconst json_format_contract_1 = require(\"./json-format-contract\");\nconst reflection_equals_1 = require(\"./reflection-equals\");\nconst binary_writer_1 = require(\"./binary-writer\");\nconst binary_reader_1 = require(\"./binary-reader\");\n/**\n * This standard message type provides reflection-based\n * operations to work with a message.\n */\nclass MessageType {\n constructor(name, fields, options) {\n this.defaultCheckDepth = 16;\n this.typeName = name;\n this.fields = fields.map(reflection_info_1.normalizeFieldInfo);\n this.options = options !== null && options !== void 0 ? options : {};\n this.messagePrototype = Object.defineProperty({}, message_type_contract_1.MESSAGE_TYPE, { value: this });\n this.refTypeCheck = new reflection_type_check_1.ReflectionTypeCheck(this);\n this.refJsonReader = new reflection_json_reader_1.ReflectionJsonReader(this);\n this.refJsonWriter = new reflection_json_writer_1.ReflectionJsonWriter(this);\n this.refBinReader = new reflection_binary_reader_1.ReflectionBinaryReader(this);\n this.refBinWriter = new reflection_binary_writer_1.ReflectionBinaryWriter(this);\n }\n create(value) {\n let message = reflection_create_1.reflectionCreate(this);\n if (value !== undefined) {\n reflection_merge_partial_1.reflectionMergePartial(this, message, value);\n }\n return message;\n }\n /**\n * Clone the message.\n *\n * Unknown fields are discarded.\n */\n clone(message) {\n let copy = this.create();\n reflection_merge_partial_1.reflectionMergePartial(this, copy, message);\n return copy;\n }\n /**\n * Determines whether two message of the same type have the same field values.\n * Checks for deep equality, traversing repeated fields, oneof groups, maps\n * and messages recursively.\n * Will also return true if both messages are `undefined`.\n */\n equals(a, b) {\n return reflection_equals_1.reflectionEquals(this, a, b);\n }\n /**\n * Is the given value assignable to our message type\n * and contains no [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?\n */\n is(arg, depth = this.defaultCheckDepth) {\n return this.refTypeCheck.is(arg, depth, false);\n }\n /**\n * Is the given value assignable to our message type,\n * regardless of [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?\n */\n isAssignable(arg, depth = this.defaultCheckDepth) {\n return this.refTypeCheck.is(arg, depth, true);\n }\n /**\n * Copy partial data into the target message.\n */\n mergePartial(target, source) {\n reflection_merge_partial_1.reflectionMergePartial(this, target, source);\n }\n /**\n * Create a new message from binary format.\n */\n fromBinary(data, options) {\n let opt = binary_reader_1.binaryReadOptions(options);\n return this.internalBinaryRead(opt.readerFactory(data), data.byteLength, opt);\n }\n /**\n * Read a new message from a JSON value.\n */\n fromJson(json, options) {\n return this.internalJsonRead(json, json_format_contract_1.jsonReadOptions(options));\n }\n /**\n * Read a new message from a JSON string.\n * This is equivalent to `T.fromJson(JSON.parse(json))`.\n */\n fromJsonString(json, options) {\n let value = JSON.parse(json);\n return this.fromJson(value, options);\n }\n /**\n * Write the message to canonical JSON value.\n */\n toJson(message, options) {\n return this.internalJsonWrite(message, json_format_contract_1.jsonWriteOptions(options));\n }\n /**\n * Convert the message to canonical JSON string.\n * This is equivalent to `JSON.stringify(T.toJson(t))`\n */\n toJsonString(message, options) {\n var _a;\n let value = this.toJson(message, options);\n return JSON.stringify(value, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0);\n }\n /**\n * Write the message to binary format.\n */\n toBinary(message, options) {\n let opt = binary_writer_1.binaryWriteOptions(options);\n return this.internalBinaryWrite(message, opt.writerFactory(), opt).finish();\n }\n /**\n * This is an internal method. If you just want to read a message from\n * JSON, use `fromJson()` or `fromJsonString()`.\n *\n * Reads JSON value and merges the fields into the target\n * according to protobuf rules. If the target is omitted,\n * a new instance is created first.\n */\n internalJsonRead(json, options, target) {\n if (json !== null && typeof json == \"object\" && !Array.isArray(json)) {\n let message = target !== null && target !== void 0 ? target : this.create();\n this.refJsonReader.read(json, message, options);\n return message;\n }\n throw new Error(`Unable to parse message ${this.typeName} from JSON ${json_typings_1.typeofJsonValue(json)}.`);\n }\n /**\n * This is an internal method. If you just want to write a message\n * to JSON, use `toJson()` or `toJsonString().\n *\n * Writes JSON value and returns it.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.write(message, options);\n }\n /**\n * This is an internal method. If you just want to write a message\n * in binary format, use `toBinary()`.\n *\n * Serializes the message in binary format and appends it to the given\n * writer. Returns passed writer.\n */\n internalBinaryWrite(message, writer, options) {\n this.refBinWriter.write(message, writer, options);\n return writer;\n }\n /**\n * This is an internal method. If you just want to read a message from\n * binary data, use `fromBinary()`.\n *\n * Reads data from binary format and merges the fields into\n * the target according to protobuf rules. If the target is\n * omitted, a new instance is created first.\n */\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create();\n this.refBinReader.read(reader, message, options, length);\n return message;\n }\n}\nexports.MessageType = MessageType;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;\n/**\n * Is the given value a valid oneof group?\n *\n * We represent protobuf `oneof` as algebraic data types (ADT) in generated\n * code. But when working with messages of unknown type, the ADT does not\n * help us.\n *\n * This type guard checks if the given object adheres to the ADT rules, which\n * are as follows:\n *\n * 1) Must be an object.\n *\n * 2) Must have a \"oneofKind\" discriminator property.\n *\n * 3) If \"oneofKind\" is `undefined`, no member field is selected. The object\n * must not have any other properties.\n *\n * 4) If \"oneofKind\" is a `string`, the member field with this name is\n * selected.\n *\n * 5) If a member field is selected, the object must have a second property\n * with this name. The property must not be `undefined`.\n *\n * 6) No extra properties are allowed. The object has either one property\n * (no selection) or two properties (selection).\n *\n */\nfunction isOneofGroup(any) {\n if (typeof any != 'object' || any === null || !any.hasOwnProperty('oneofKind')) {\n return false;\n }\n switch (typeof any.oneofKind) {\n case \"string\":\n if (any[any.oneofKind] === undefined)\n return false;\n return Object.keys(any).length == 2;\n case \"undefined\":\n return Object.keys(any).length == 1;\n default:\n return false;\n }\n}\nexports.isOneofGroup = isOneofGroup;\n/**\n * Returns the value of the given field in a oneof group.\n */\nfunction getOneofValue(oneof, kind) {\n return oneof[kind];\n}\nexports.getOneofValue = getOneofValue;\nfunction setOneofValue(oneof, kind, value) {\n if (oneof.oneofKind !== undefined) {\n delete oneof[oneof.oneofKind];\n }\n oneof.oneofKind = kind;\n if (value !== undefined) {\n oneof[kind] = value;\n }\n}\nexports.setOneofValue = setOneofValue;\nfunction setUnknownOneofValue(oneof, kind, value) {\n if (oneof.oneofKind !== undefined) {\n delete oneof[oneof.oneofKind];\n }\n oneof.oneofKind = kind;\n if (value !== undefined && kind !== undefined) {\n oneof[kind] = value;\n }\n}\nexports.setUnknownOneofValue = setUnknownOneofValue;\n/**\n * Removes the selected field in a oneof group.\n *\n * Note that the recommended way to modify a oneof group is to set\n * a new object:\n *\n * ```ts\n * message.result = { oneofKind: undefined };\n * ```\n */\nfunction clearOneofValue(oneof) {\n if (oneof.oneofKind !== undefined) {\n delete oneof[oneof.oneofKind];\n }\n oneof.oneofKind = undefined;\n}\nexports.clearOneofValue = clearOneofValue;\n/**\n * Returns the selected value of the given oneof group.\n *\n * Not that the recommended way to access a oneof group is to check\n * the \"oneofKind\" property and let TypeScript narrow down the union\n * type for you:\n *\n * ```ts\n * if (message.result.oneofKind === \"error\") {\n * message.result.error; // string\n * }\n * ```\n *\n * In the rare case you just need the value, and do not care about\n * which protobuf field is selected, you can use this function\n * for convenience.\n */\nfunction getSelectedOneofValue(oneof) {\n if (oneof.oneofKind === undefined) {\n return undefined;\n }\n return oneof[oneof.oneofKind];\n}\nexports.getSelectedOneofValue = getSelectedOneofValue;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PbLong = exports.PbULong = exports.detectBi = void 0;\nconst goog_varint_1 = require(\"./goog-varint\");\nlet BI;\nfunction detectBi() {\n const dv = new DataView(new ArrayBuffer(8));\n const ok = globalThis.BigInt !== undefined\n && typeof dv.getBigInt64 === \"function\"\n && typeof dv.getBigUint64 === \"function\"\n && typeof dv.setBigInt64 === \"function\"\n && typeof dv.setBigUint64 === \"function\";\n BI = ok ? {\n MIN: BigInt(\"-9223372036854775808\"),\n MAX: BigInt(\"9223372036854775807\"),\n UMIN: BigInt(\"0\"),\n UMAX: BigInt(\"18446744073709551615\"),\n C: BigInt,\n V: dv,\n } : undefined;\n}\nexports.detectBi = detectBi;\ndetectBi();\nfunction assertBi(bi) {\n if (!bi)\n throw new Error(\"BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support\");\n}\n// used to validate from(string) input (when bigint is unavailable)\nconst RE_DECIMAL_STR = /^-?[0-9]+$/;\n// constants for binary math\nconst TWO_PWR_32_DBL = 0x100000000;\nconst HALF_2_PWR_32 = 0x080000000;\n// base class for PbLong and PbULong provides shared code\nclass SharedPbLong {\n /**\n * Create a new instance with the given bits.\n */\n constructor(lo, hi) {\n this.lo = lo | 0;\n this.hi = hi | 0;\n }\n /**\n * Is this instance equal to 0?\n */\n isZero() {\n return this.lo == 0 && this.hi == 0;\n }\n /**\n * Convert to a native number.\n */\n toNumber() {\n let result = this.hi * TWO_PWR_32_DBL + (this.lo >>> 0);\n if (!Number.isSafeInteger(result))\n throw new Error(\"cannot convert to safe number\");\n return result;\n }\n}\n/**\n * 64-bit unsigned integer as two 32-bit values.\n * Converts between `string`, `number` and `bigint` representations.\n */\nclass PbULong extends SharedPbLong {\n /**\n * Create instance from a `string`, `number` or `bigint`.\n */\n static from(value) {\n if (BI)\n // noinspection FallThroughInSwitchStatementJS\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n if (value == \"\")\n throw new Error('string is no integer');\n value = BI.C(value);\n case \"number\":\n if (value === 0)\n return this.ZERO;\n value = BI.C(value);\n case \"bigint\":\n if (!value)\n return this.ZERO;\n if (value < BI.UMIN)\n throw new Error('signed value for ulong');\n if (value > BI.UMAX)\n throw new Error('ulong too large');\n BI.V.setBigUint64(0, value, true);\n return new PbULong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));\n }\n else\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n value = value.trim();\n if (!RE_DECIMAL_STR.test(value))\n throw new Error('string is no integer');\n let [minus, lo, hi] = goog_varint_1.int64fromString(value);\n if (minus)\n throw new Error('signed value for ulong');\n return new PbULong(lo, hi);\n case \"number\":\n if (value == 0)\n return this.ZERO;\n if (!Number.isSafeInteger(value))\n throw new Error('number is no integer');\n if (value < 0)\n throw new Error('signed value for ulong');\n return new PbULong(value, value / TWO_PWR_32_DBL);\n }\n throw new Error('unknown value ' + typeof value);\n }\n /**\n * Convert to decimal string.\n */\n toString() {\n return BI ? this.toBigInt().toString() : goog_varint_1.int64toString(this.lo, this.hi);\n }\n /**\n * Convert to native bigint.\n */\n toBigInt() {\n assertBi(BI);\n BI.V.setInt32(0, this.lo, true);\n BI.V.setInt32(4, this.hi, true);\n return BI.V.getBigUint64(0, true);\n }\n}\nexports.PbULong = PbULong;\n/**\n * ulong 0 singleton.\n */\nPbULong.ZERO = new PbULong(0, 0);\n/**\n * 64-bit signed integer as two 32-bit values.\n * Converts between `string`, `number` and `bigint` representations.\n */\nclass PbLong extends SharedPbLong {\n /**\n * Create instance from a `string`, `number` or `bigint`.\n */\n static from(value) {\n if (BI)\n // noinspection FallThroughInSwitchStatementJS\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n if (value == \"\")\n throw new Error('string is no integer');\n value = BI.C(value);\n case \"number\":\n if (value === 0)\n return this.ZERO;\n value = BI.C(value);\n case \"bigint\":\n if (!value)\n return this.ZERO;\n if (value < BI.MIN)\n throw new Error('signed long too small');\n if (value > BI.MAX)\n throw new Error('signed long too large');\n BI.V.setBigInt64(0, value, true);\n return new PbLong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));\n }\n else\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n value = value.trim();\n if (!RE_DECIMAL_STR.test(value))\n throw new Error('string is no integer');\n let [minus, lo, hi] = goog_varint_1.int64fromString(value);\n if (minus) {\n if (hi > HALF_2_PWR_32 || (hi == HALF_2_PWR_32 && lo != 0))\n throw new Error('signed long too small');\n }\n else if (hi >= HALF_2_PWR_32)\n throw new Error('signed long too large');\n let pbl = new PbLong(lo, hi);\n return minus ? pbl.negate() : pbl;\n case \"number\":\n if (value == 0)\n return this.ZERO;\n if (!Number.isSafeInteger(value))\n throw new Error('number is no integer');\n return value > 0\n ? new PbLong(value, value / TWO_PWR_32_DBL)\n : new PbLong(-value, -value / TWO_PWR_32_DBL).negate();\n }\n throw new Error('unknown value ' + typeof value);\n }\n /**\n * Do we have a minus sign?\n */\n isNegative() {\n return (this.hi & HALF_2_PWR_32) !== 0;\n }\n /**\n * Negate two's complement.\n * Invert all the bits and add one to the result.\n */\n negate() {\n let hi = ~this.hi, lo = this.lo;\n if (lo)\n lo = ~lo + 1;\n else\n hi += 1;\n return new PbLong(lo, hi);\n }\n /**\n * Convert to decimal string.\n */\n toString() {\n if (BI)\n return this.toBigInt().toString();\n if (this.isNegative()) {\n let n = this.negate();\n return '-' + goog_varint_1.int64toString(n.lo, n.hi);\n }\n return goog_varint_1.int64toString(this.lo, this.hi);\n }\n /**\n * Convert to native bigint.\n */\n toBigInt() {\n assertBi(BI);\n BI.V.setInt32(0, this.lo, true);\n BI.V.setInt32(4, this.hi, true);\n return BI.V.getBigInt64(0, true);\n }\n}\nexports.PbLong = PbLong;\n/**\n * long 0 singleton.\n */\nPbLong.ZERO = new PbLong(0, 0);\n","\"use strict\";\n// Copyright (c) 2016, Daniel Wirtz All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// * Neither the name of its author, nor the names of its contributors\n// may be used to endorse or promote products derived from this software\n// without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.utf8read = void 0;\nconst fromCharCodes = (chunk) => String.fromCharCode.apply(String, chunk);\n/**\n * @deprecated This function will no longer be exported with the next major\n * release, since protobuf-ts has switch to TextDecoder API. If you need this\n * function, please migrate to @protobufjs/utf8. For context, see\n * https://github.com/timostamm/protobuf-ts/issues/184\n *\n * Reads UTF8 bytes as a string.\n *\n * See [protobufjs / utf8](https://github.com/protobufjs/protobuf.js/blob/9893e35b854621cce64af4bf6be2cff4fb892796/lib/utf8/index.js#L40)\n *\n * Copyright (c) 2016, Daniel Wirtz\n */\nfunction utf8read(bytes) {\n if (bytes.length < 1)\n return \"\";\n let pos = 0, // position in bytes\n parts = [], chunk = [], i = 0, // char offset\n t; // temporary\n let len = bytes.length;\n while (pos < len) {\n t = bytes[pos++];\n if (t < 128)\n chunk[i++] = t;\n else if (t > 191 && t < 224)\n chunk[i++] = (t & 31) << 6 | bytes[pos++] & 63;\n else if (t > 239 && t < 365) {\n t = ((t & 7) << 18 | (bytes[pos++] & 63) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63) - 0x10000;\n chunk[i++] = 0xD800 + (t >> 10);\n chunk[i++] = 0xDC00 + (t & 1023);\n }\n else\n chunk[i++] = (t & 15) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63;\n if (i > 8191) {\n parts.push(fromCharCodes(chunk));\n i = 0;\n }\n }\n if (parts.length) {\n if (i)\n parts.push(fromCharCodes(chunk.slice(0, i)));\n return parts.join(\"\");\n }\n return fromCharCodes(chunk.slice(0, i));\n}\nexports.utf8read = utf8read;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionBinaryReader = void 0;\nconst binary_format_contract_1 = require(\"./binary-format-contract\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst reflection_long_convert_1 = require(\"./reflection-long-convert\");\nconst reflection_scalar_default_1 = require(\"./reflection-scalar-default\");\n/**\n * Reads proto3 messages in binary format using reflection information.\n *\n * https://developers.google.com/protocol-buffers/docs/encoding\n */\nclass ReflectionBinaryReader {\n constructor(info) {\n this.info = info;\n }\n prepare() {\n var _a;\n if (!this.fieldNoToField) {\n const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];\n this.fieldNoToField = new Map(fieldsInput.map(field => [field.no, field]));\n }\n }\n /**\n * Reads a message from binary format into the target message.\n *\n * Repeated fields are appended. Map entries are added, overwriting\n * existing keys.\n *\n * If a message field is already present, it will be merged with the\n * new data.\n */\n read(reader, message, options, length) {\n this.prepare();\n const end = length === undefined ? reader.len : reader.pos + length;\n while (reader.pos < end) {\n // read the tag and find the field\n const [fieldNo, wireType] = reader.tag(), field = this.fieldNoToField.get(fieldNo);\n if (!field) {\n let u = options.readUnknownField;\n if (u == \"throw\")\n throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.info.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? binary_format_contract_1.UnknownFieldHandler.onRead : u)(this.info.typeName, message, fieldNo, wireType, d);\n continue;\n }\n // target object for the field we are reading\n let target = message, repeated = field.repeat, localName = field.localName;\n // if field is member of oneof ADT, use ADT as target\n if (field.oneof) {\n target = target[field.oneof];\n // if other oneof member selected, set new ADT\n if (target.oneofKind !== localName)\n target = message[field.oneof] = {\n oneofKind: localName\n };\n }\n // we have handled oneof above, we just have read the value into `target[localName]`\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n let T = field.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.T;\n let L = field.kind == \"scalar\" ? field.L : undefined;\n if (repeated) {\n let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values\n if (wireType == binary_format_contract_1.WireType.LengthDelimited && T != reflection_info_1.ScalarType.STRING && T != reflection_info_1.ScalarType.BYTES) {\n let e = reader.uint32() + reader.pos;\n while (reader.pos < e)\n arr.push(this.scalar(reader, T, L));\n }\n else\n arr.push(this.scalar(reader, T, L));\n }\n else\n target[localName] = this.scalar(reader, T, L);\n break;\n case \"message\":\n if (repeated) {\n let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values\n let msg = field.T().internalBinaryRead(reader, reader.uint32(), options);\n arr.push(msg);\n }\n else\n target[localName] = field.T().internalBinaryRead(reader, reader.uint32(), options, target[localName]);\n break;\n case \"map\":\n let [mapKey, mapVal] = this.mapEntry(field, reader, options);\n // safe to assume presence of map object, oneof cannot contain repeated values\n target[localName][mapKey] = mapVal;\n break;\n }\n }\n }\n /**\n * Read a map field, expecting key field = 1, value field = 2\n */\n mapEntry(field, reader, options) {\n let length = reader.uint32();\n let end = reader.pos + length;\n let key = undefined; // javascript only allows number or string for object properties\n let val = undefined;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case 1:\n if (field.K == reflection_info_1.ScalarType.BOOL)\n key = reader.bool().toString();\n else\n // long types are read as string, number types are okay as number\n key = this.scalar(reader, field.K, reflection_info_1.LongType.STRING);\n break;\n case 2:\n switch (field.V.kind) {\n case \"scalar\":\n val = this.scalar(reader, field.V.T, field.V.L);\n break;\n case \"enum\":\n val = reader.int32();\n break;\n case \"message\":\n val = field.V.T().internalBinaryRead(reader, reader.uint32(), options);\n break;\n }\n break;\n default:\n throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) in map entry for ${this.info.typeName}#${field.name}`);\n }\n }\n if (key === undefined) {\n let keyRaw = reflection_scalar_default_1.reflectionScalarDefault(field.K);\n key = field.K == reflection_info_1.ScalarType.BOOL ? keyRaw.toString() : keyRaw;\n }\n if (val === undefined)\n switch (field.V.kind) {\n case \"scalar\":\n val = reflection_scalar_default_1.reflectionScalarDefault(field.V.T, field.V.L);\n break;\n case \"enum\":\n val = 0;\n break;\n case \"message\":\n val = field.V.T().create();\n break;\n }\n return [key, val];\n }\n scalar(reader, type, longType) {\n switch (type) {\n case reflection_info_1.ScalarType.INT32:\n return reader.int32();\n case reflection_info_1.ScalarType.STRING:\n return reader.string();\n case reflection_info_1.ScalarType.BOOL:\n return reader.bool();\n case reflection_info_1.ScalarType.DOUBLE:\n return reader.double();\n case reflection_info_1.ScalarType.FLOAT:\n return reader.float();\n case reflection_info_1.ScalarType.INT64:\n return reflection_long_convert_1.reflectionLongConvert(reader.int64(), longType);\n case reflection_info_1.ScalarType.UINT64:\n return reflection_long_convert_1.reflectionLongConvert(reader.uint64(), longType);\n case reflection_info_1.ScalarType.FIXED64:\n return reflection_long_convert_1.reflectionLongConvert(reader.fixed64(), longType);\n case reflection_info_1.ScalarType.FIXED32:\n return reader.fixed32();\n case reflection_info_1.ScalarType.BYTES:\n return reader.bytes();\n case reflection_info_1.ScalarType.UINT32:\n return reader.uint32();\n case reflection_info_1.ScalarType.SFIXED32:\n return reader.sfixed32();\n case reflection_info_1.ScalarType.SFIXED64:\n return reflection_long_convert_1.reflectionLongConvert(reader.sfixed64(), longType);\n case reflection_info_1.ScalarType.SINT32:\n return reader.sint32();\n case reflection_info_1.ScalarType.SINT64:\n return reflection_long_convert_1.reflectionLongConvert(reader.sint64(), longType);\n }\n }\n}\nexports.ReflectionBinaryReader = ReflectionBinaryReader;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionBinaryWriter = void 0;\nconst binary_format_contract_1 = require(\"./binary-format-contract\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst assert_1 = require(\"./assert\");\nconst pb_long_1 = require(\"./pb-long\");\n/**\n * Writes proto3 messages in binary format using reflection information.\n *\n * https://developers.google.com/protocol-buffers/docs/encoding\n */\nclass ReflectionBinaryWriter {\n constructor(info) {\n this.info = info;\n }\n prepare() {\n if (!this.fields) {\n const fieldsInput = this.info.fields ? this.info.fields.concat() : [];\n this.fields = fieldsInput.sort((a, b) => a.no - b.no);\n }\n }\n /**\n * Writes the message to binary format.\n */\n write(message, writer, options) {\n this.prepare();\n for (const field of this.fields) {\n let value, // this will be our field value, whether it is member of a oneof or not\n emitDefault, // whether we emit the default value (only true for oneof members)\n repeated = field.repeat, localName = field.localName;\n // handle oneof ADT\n if (field.oneof) {\n const group = message[field.oneof];\n if (group.oneofKind !== localName)\n continue; // if field is not selected, skip\n value = group[localName];\n emitDefault = true;\n }\n else {\n value = message[localName];\n emitDefault = false;\n }\n // we have handled oneof above. we just have to honor `emitDefault`.\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n let T = field.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.T;\n if (repeated) {\n assert_1.assert(Array.isArray(value));\n if (repeated == reflection_info_1.RepeatType.PACKED)\n this.packed(writer, T, field.no, value);\n else\n for (const item of value)\n this.scalar(writer, T, field.no, item, true);\n }\n else if (value === undefined)\n assert_1.assert(field.opt);\n else\n this.scalar(writer, T, field.no, value, emitDefault || field.opt);\n break;\n case \"message\":\n if (repeated) {\n assert_1.assert(Array.isArray(value));\n for (const item of value)\n this.message(writer, options, field.T(), field.no, item);\n }\n else {\n this.message(writer, options, field.T(), field.no, value);\n }\n break;\n case \"map\":\n assert_1.assert(typeof value == 'object' && value !== null);\n for (const [key, val] of Object.entries(value))\n this.mapEntry(writer, options, field, key, val);\n break;\n }\n }\n let u = options.writeUnknownFields;\n if (u !== false)\n (u === true ? binary_format_contract_1.UnknownFieldHandler.onWrite : u)(this.info.typeName, message, writer);\n }\n mapEntry(writer, options, field, key, value) {\n writer.tag(field.no, binary_format_contract_1.WireType.LengthDelimited);\n writer.fork();\n // javascript only allows number or string for object properties\n // we convert from our representation to the protobuf type\n let keyValue = key;\n switch (field.K) {\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.UINT32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n keyValue = Number.parseInt(key);\n break;\n case reflection_info_1.ScalarType.BOOL:\n assert_1.assert(key == 'true' || key == 'false');\n keyValue = key == 'true';\n break;\n }\n // write key, expecting key field number = 1\n this.scalar(writer, field.K, 1, keyValue, true);\n // write value, expecting value field number = 2\n switch (field.V.kind) {\n case 'scalar':\n this.scalar(writer, field.V.T, 2, value, true);\n break;\n case 'enum':\n this.scalar(writer, reflection_info_1.ScalarType.INT32, 2, value, true);\n break;\n case 'message':\n this.message(writer, options, field.V.T(), 2, value);\n break;\n }\n writer.join();\n }\n message(writer, options, handler, fieldNo, value) {\n if (value === undefined)\n return;\n handler.internalBinaryWrite(value, writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited).fork(), options);\n writer.join();\n }\n /**\n * Write a single scalar value.\n */\n scalar(writer, type, fieldNo, value, emitDefault) {\n let [wireType, method, isDefault] = this.scalarInfo(type, value);\n if (!isDefault || emitDefault) {\n writer.tag(fieldNo, wireType);\n writer[method](value);\n }\n }\n /**\n * Write an array of scalar values in packed format.\n */\n packed(writer, type, fieldNo, value) {\n if (!value.length)\n return;\n assert_1.assert(type !== reflection_info_1.ScalarType.BYTES && type !== reflection_info_1.ScalarType.STRING);\n // write tag\n writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited);\n // begin length-delimited\n writer.fork();\n // write values without tags\n let [, method,] = this.scalarInfo(type);\n for (let i = 0; i < value.length; i++)\n writer[method](value[i]);\n // end length delimited\n writer.join();\n }\n /**\n * Get information for writing a scalar value.\n *\n * Returns tuple:\n * [0]: appropriate WireType\n * [1]: name of the appropriate method of IBinaryWriter\n * [2]: whether the given value is a default value\n *\n * If argument `value` is omitted, [2] is always false.\n */\n scalarInfo(type, value) {\n let t = binary_format_contract_1.WireType.Varint;\n let m;\n let i = value === undefined;\n let d = value === 0;\n switch (type) {\n case reflection_info_1.ScalarType.INT32:\n m = \"int32\";\n break;\n case reflection_info_1.ScalarType.STRING:\n d = i || !value.length;\n t = binary_format_contract_1.WireType.LengthDelimited;\n m = \"string\";\n break;\n case reflection_info_1.ScalarType.BOOL:\n d = value === false;\n m = \"bool\";\n break;\n case reflection_info_1.ScalarType.UINT32:\n m = \"uint32\";\n break;\n case reflection_info_1.ScalarType.DOUBLE:\n t = binary_format_contract_1.WireType.Bit64;\n m = \"double\";\n break;\n case reflection_info_1.ScalarType.FLOAT:\n t = binary_format_contract_1.WireType.Bit32;\n m = \"float\";\n break;\n case reflection_info_1.ScalarType.INT64:\n d = i || pb_long_1.PbLong.from(value).isZero();\n m = \"int64\";\n break;\n case reflection_info_1.ScalarType.UINT64:\n d = i || pb_long_1.PbULong.from(value).isZero();\n m = \"uint64\";\n break;\n case reflection_info_1.ScalarType.FIXED64:\n d = i || pb_long_1.PbULong.from(value).isZero();\n t = binary_format_contract_1.WireType.Bit64;\n m = \"fixed64\";\n break;\n case reflection_info_1.ScalarType.BYTES:\n d = i || !value.byteLength;\n t = binary_format_contract_1.WireType.LengthDelimited;\n m = \"bytes\";\n break;\n case reflection_info_1.ScalarType.FIXED32:\n t = binary_format_contract_1.WireType.Bit32;\n m = \"fixed32\";\n break;\n case reflection_info_1.ScalarType.SFIXED32:\n t = binary_format_contract_1.WireType.Bit32;\n m = \"sfixed32\";\n break;\n case reflection_info_1.ScalarType.SFIXED64:\n d = i || pb_long_1.PbLong.from(value).isZero();\n t = binary_format_contract_1.WireType.Bit64;\n m = \"sfixed64\";\n break;\n case reflection_info_1.ScalarType.SINT32:\n m = \"sint32\";\n break;\n case reflection_info_1.ScalarType.SINT64:\n d = i || pb_long_1.PbLong.from(value).isZero();\n m = \"sint64\";\n break;\n }\n return [t, m, i || d];\n }\n}\nexports.ReflectionBinaryWriter = ReflectionBinaryWriter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.containsMessageType = void 0;\nconst message_type_contract_1 = require(\"./message-type-contract\");\n/**\n * Check if the provided object is a proto message.\n *\n * Note that this is an experimental feature - it is here to stay, but\n * implementation details may change without notice.\n */\nfunction containsMessageType(msg) {\n return msg[message_type_contract_1.MESSAGE_TYPE] != null;\n}\nexports.containsMessageType = containsMessageType;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionCreate = void 0;\nconst reflection_scalar_default_1 = require(\"./reflection-scalar-default\");\nconst message_type_contract_1 = require(\"./message-type-contract\");\n/**\n * Creates an instance of the generic message, using the field\n * information.\n */\nfunction reflectionCreate(type) {\n /**\n * This ternary can be removed in the next major version.\n * The `Object.create()` code path utilizes a new `messagePrototype`\n * property on the `IMessageType` which has this same `MESSAGE_TYPE`\n * non-enumerable property on it. Doing it this way means that we only\n * pay the cost of `Object.defineProperty()` once per `IMessageType`\n * class of once per \"instance\". The falsy code path is only provided\n * for backwards compatibility in cases where the runtime library is\n * updated without also updating the generated code.\n */\n const msg = type.messagePrototype\n ? Object.create(type.messagePrototype)\n : Object.defineProperty({}, message_type_contract_1.MESSAGE_TYPE, { value: type });\n for (let field of type.fields) {\n let name = field.localName;\n if (field.opt)\n continue;\n if (field.oneof)\n msg[field.oneof] = { oneofKind: undefined };\n else if (field.repeat)\n msg[name] = [];\n else\n switch (field.kind) {\n case \"scalar\":\n msg[name] = reflection_scalar_default_1.reflectionScalarDefault(field.T, field.L);\n break;\n case \"enum\":\n // we require 0 to be default value for all enums\n msg[name] = 0;\n break;\n case \"map\":\n msg[name] = {};\n break;\n }\n }\n return msg;\n}\nexports.reflectionCreate = reflectionCreate;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionEquals = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\n/**\n * Determines whether two message of the same type have the same field values.\n * Checks for deep equality, traversing repeated fields, oneof groups, maps\n * and messages recursively.\n * Will also return true if both messages are `undefined`.\n */\nfunction reflectionEquals(info, a, b) {\n if (a === b)\n return true;\n if (!a || !b)\n return false;\n for (let field of info.fields) {\n let localName = field.localName;\n let val_a = field.oneof ? a[field.oneof][localName] : a[localName];\n let val_b = field.oneof ? b[field.oneof][localName] : b[localName];\n switch (field.kind) {\n case \"enum\":\n case \"scalar\":\n let t = field.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.T;\n if (!(field.repeat\n ? repeatedPrimitiveEq(t, val_a, val_b)\n : primitiveEq(t, val_a, val_b)))\n return false;\n break;\n case \"map\":\n if (!(field.V.kind == \"message\"\n ? repeatedMsgEq(field.V.T(), objectValues(val_a), objectValues(val_b))\n : repeatedPrimitiveEq(field.V.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.V.T, objectValues(val_a), objectValues(val_b))))\n return false;\n break;\n case \"message\":\n let T = field.T();\n if (!(field.repeat\n ? repeatedMsgEq(T, val_a, val_b)\n : T.equals(val_a, val_b)))\n return false;\n break;\n }\n }\n return true;\n}\nexports.reflectionEquals = reflectionEquals;\nconst objectValues = Object.values;\nfunction primitiveEq(type, a, b) {\n if (a === b)\n return true;\n if (type !== reflection_info_1.ScalarType.BYTES)\n return false;\n let ba = a;\n let bb = b;\n if (ba.length !== bb.length)\n return false;\n for (let i = 0; i < ba.length; i++)\n if (ba[i] != bb[i])\n return false;\n return true;\n}\nfunction repeatedPrimitiveEq(type, a, b) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!primitiveEq(type, a[i], b[i]))\n return false;\n return true;\n}\nfunction repeatedMsgEq(type, a, b) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!type.equals(a[i], b[i]))\n return false;\n return true;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0;\nconst lower_camel_case_1 = require(\"./lower-camel-case\");\n/**\n * Scalar value types. This is a subset of field types declared by protobuf\n * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE\n * are omitted, but the numerical values are identical.\n */\nvar ScalarType;\n(function (ScalarType) {\n // 0 is reserved for errors.\n // Order is weird for historical reasons.\n ScalarType[ScalarType[\"DOUBLE\"] = 1] = \"DOUBLE\";\n ScalarType[ScalarType[\"FLOAT\"] = 2] = \"FLOAT\";\n // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if\n // negative values are likely.\n ScalarType[ScalarType[\"INT64\"] = 3] = \"INT64\";\n ScalarType[ScalarType[\"UINT64\"] = 4] = \"UINT64\";\n // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if\n // negative values are likely.\n ScalarType[ScalarType[\"INT32\"] = 5] = \"INT32\";\n ScalarType[ScalarType[\"FIXED64\"] = 6] = \"FIXED64\";\n ScalarType[ScalarType[\"FIXED32\"] = 7] = \"FIXED32\";\n ScalarType[ScalarType[\"BOOL\"] = 8] = \"BOOL\";\n ScalarType[ScalarType[\"STRING\"] = 9] = \"STRING\";\n // Tag-delimited aggregate.\n // Group type is deprecated and not supported in proto3. However, Proto3\n // implementations should still be able to parse the group wire format and\n // treat group fields as unknown fields.\n // TYPE_GROUP = 10,\n // TYPE_MESSAGE = 11, // Length-delimited aggregate.\n // New in version 2.\n ScalarType[ScalarType[\"BYTES\"] = 12] = \"BYTES\";\n ScalarType[ScalarType[\"UINT32\"] = 13] = \"UINT32\";\n // TYPE_ENUM = 14,\n ScalarType[ScalarType[\"SFIXED32\"] = 15] = \"SFIXED32\";\n ScalarType[ScalarType[\"SFIXED64\"] = 16] = \"SFIXED64\";\n ScalarType[ScalarType[\"SINT32\"] = 17] = \"SINT32\";\n ScalarType[ScalarType[\"SINT64\"] = 18] = \"SINT64\";\n})(ScalarType = exports.ScalarType || (exports.ScalarType = {}));\n/**\n * JavaScript representation of 64 bit integral types. Equivalent to the\n * field option \"jstype\".\n *\n * By default, protobuf-ts represents 64 bit types as `bigint`.\n *\n * You can change the default behaviour by enabling the plugin parameter\n * `long_type_string`, which will represent 64 bit types as `string`.\n *\n * Alternatively, you can change the behaviour for individual fields\n * with the field option \"jstype\":\n *\n * ```protobuf\n * uint64 my_field = 1 [jstype = JS_STRING];\n * uint64 other_field = 2 [jstype = JS_NUMBER];\n * ```\n */\nvar LongType;\n(function (LongType) {\n /**\n * Use JavaScript `bigint`.\n *\n * Field option `[jstype = JS_NORMAL]`.\n */\n LongType[LongType[\"BIGINT\"] = 0] = \"BIGINT\";\n /**\n * Use JavaScript `string`.\n *\n * Field option `[jstype = JS_STRING]`.\n */\n LongType[LongType[\"STRING\"] = 1] = \"STRING\";\n /**\n * Use JavaScript `number`.\n *\n * Large values will loose precision.\n *\n * Field option `[jstype = JS_NUMBER]`.\n */\n LongType[LongType[\"NUMBER\"] = 2] = \"NUMBER\";\n})(LongType = exports.LongType || (exports.LongType = {}));\n/**\n * Protobuf 2.1.0 introduced packed repeated fields.\n * Setting the field option `[packed = true]` enables packing.\n *\n * In proto3, all repeated fields are packed by default.\n * Setting the field option `[packed = false]` disables packing.\n *\n * Packed repeated fields are encoded with a single tag,\n * then a length-delimiter, then the element values.\n *\n * Unpacked repeated fields are encoded with a tag and\n * value for each element.\n *\n * `bytes` and `string` cannot be packed.\n */\nvar RepeatType;\n(function (RepeatType) {\n /**\n * The field is not repeated.\n */\n RepeatType[RepeatType[\"NO\"] = 0] = \"NO\";\n /**\n * The field is repeated and should be packed.\n * Invalid for `bytes` and `string`, they cannot be packed.\n */\n RepeatType[RepeatType[\"PACKED\"] = 1] = \"PACKED\";\n /**\n * The field is repeated but should not be packed.\n * The only valid repeat type for repeated `bytes` and `string`.\n */\n RepeatType[RepeatType[\"UNPACKED\"] = 2] = \"UNPACKED\";\n})(RepeatType = exports.RepeatType || (exports.RepeatType = {}));\n/**\n * Turns PartialFieldInfo into FieldInfo.\n */\nfunction normalizeFieldInfo(field) {\n var _a, _b, _c, _d;\n field.localName = (_a = field.localName) !== null && _a !== void 0 ? _a : lower_camel_case_1.lowerCamelCase(field.name);\n field.jsonName = (_b = field.jsonName) !== null && _b !== void 0 ? _b : lower_camel_case_1.lowerCamelCase(field.name);\n field.repeat = (_c = field.repeat) !== null && _c !== void 0 ? _c : RepeatType.NO;\n field.opt = (_d = field.opt) !== null && _d !== void 0 ? _d : (field.repeat ? false : field.oneof ? false : field.kind == \"message\");\n return field;\n}\nexports.normalizeFieldInfo = normalizeFieldInfo;\n/**\n * Read custom field options from a generated message type.\n *\n * @deprecated use readFieldOption()\n */\nfunction readFieldOptions(messageType, fieldName, extensionName, extensionType) {\n var _a;\n const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;\n return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;\n}\nexports.readFieldOptions = readFieldOptions;\nfunction readFieldOption(messageType, fieldName, extensionName, extensionType) {\n var _a;\n const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;\n if (!options) {\n return undefined;\n }\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readFieldOption = readFieldOption;\nfunction readMessageOption(messageType, extensionName, extensionType) {\n const options = messageType.options;\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readMessageOption = readMessageOption;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionJsonReader = void 0;\nconst json_typings_1 = require(\"./json-typings\");\nconst base64_1 = require(\"./base64\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst pb_long_1 = require(\"./pb-long\");\nconst assert_1 = require(\"./assert\");\nconst reflection_long_convert_1 = require(\"./reflection-long-convert\");\n/**\n * Reads proto3 messages in canonical JSON format using reflection information.\n *\n * https://developers.google.com/protocol-buffers/docs/proto3#json\n */\nclass ReflectionJsonReader {\n constructor(info) {\n this.info = info;\n }\n prepare() {\n var _a;\n if (this.fMap === undefined) {\n this.fMap = {};\n const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];\n for (const field of fieldsInput) {\n this.fMap[field.name] = field;\n this.fMap[field.jsonName] = field;\n this.fMap[field.localName] = field;\n }\n }\n }\n // Cannot parse JSON for #.\n assert(condition, fieldName, jsonValue) {\n if (!condition) {\n let what = json_typings_1.typeofJsonValue(jsonValue);\n if (what == \"number\" || what == \"boolean\")\n what = jsonValue.toString();\n throw new Error(`Cannot parse JSON ${what} for ${this.info.typeName}#${fieldName}`);\n }\n }\n /**\n * Reads a message from canonical JSON format into the target message.\n *\n * Repeated fields are appended. Map entries are added, overwriting\n * existing keys.\n *\n * If a message field is already present, it will be merged with the\n * new data.\n */\n read(input, message, options) {\n this.prepare();\n const oneofsHandled = [];\n for (const [jsonKey, jsonValue] of Object.entries(input)) {\n const field = this.fMap[jsonKey];\n if (!field) {\n if (!options.ignoreUnknownFields)\n throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${jsonKey}`);\n continue;\n }\n const localName = field.localName;\n // handle oneof ADT\n let target; // this will be the target for the field value, whether it is member of a oneof or not\n if (field.oneof) {\n if (jsonValue === null && (field.kind !== 'enum' || field.T()[0] !== 'google.protobuf.NullValue')) {\n continue;\n }\n // since json objects are unordered by specification, it is not possible to take the last of multiple oneofs\n if (oneofsHandled.includes(field.oneof))\n throw new Error(`Multiple members of the oneof group \"${field.oneof}\" of ${this.info.typeName} are present in JSON.`);\n oneofsHandled.push(field.oneof);\n target = message[field.oneof] = {\n oneofKind: localName\n };\n }\n else {\n target = message;\n }\n // we have handled oneof above. we just have read the value into `target`.\n if (field.kind == 'map') {\n if (jsonValue === null) {\n continue;\n }\n // check input\n this.assert(json_typings_1.isJsonObject(jsonValue), field.name, jsonValue);\n // our target to put map entries into\n const fieldObj = target[localName];\n // read entries\n for (const [jsonObjKey, jsonObjValue] of Object.entries(jsonValue)) {\n this.assert(jsonObjValue !== null, field.name + \" map value\", null);\n // read value\n let val;\n switch (field.V.kind) {\n case \"message\":\n val = field.V.T().internalJsonRead(jsonObjValue, options);\n break;\n case \"enum\":\n val = this.enum(field.V.T(), jsonObjValue, field.name, options.ignoreUnknownFields);\n if (val === false)\n continue;\n break;\n case \"scalar\":\n val = this.scalar(jsonObjValue, field.V.T, field.V.L, field.name);\n break;\n }\n this.assert(val !== undefined, field.name + \" map value\", jsonObjValue);\n // read key\n let key = jsonObjKey;\n if (field.K == reflection_info_1.ScalarType.BOOL)\n key = key == \"true\" ? true : key == \"false\" ? false : key;\n key = this.scalar(key, field.K, reflection_info_1.LongType.STRING, field.name).toString();\n fieldObj[key] = val;\n }\n }\n else if (field.repeat) {\n if (jsonValue === null)\n continue;\n // check input\n this.assert(Array.isArray(jsonValue), field.name, jsonValue);\n // our target to put array entries into\n const fieldArr = target[localName];\n // read array entries\n for (const jsonItem of jsonValue) {\n this.assert(jsonItem !== null, field.name, null);\n let val;\n switch (field.kind) {\n case \"message\":\n val = field.T().internalJsonRead(jsonItem, options);\n break;\n case \"enum\":\n val = this.enum(field.T(), jsonItem, field.name, options.ignoreUnknownFields);\n if (val === false)\n continue;\n break;\n case \"scalar\":\n val = this.scalar(jsonItem, field.T, field.L, field.name);\n break;\n }\n this.assert(val !== undefined, field.name, jsonValue);\n fieldArr.push(val);\n }\n }\n else {\n switch (field.kind) {\n case \"message\":\n if (jsonValue === null && field.T().typeName != 'google.protobuf.Value') {\n this.assert(field.oneof === undefined, field.name + \" (oneof member)\", null);\n continue;\n }\n target[localName] = field.T().internalJsonRead(jsonValue, options, target[localName]);\n break;\n case \"enum\":\n let val = this.enum(field.T(), jsonValue, field.name, options.ignoreUnknownFields);\n if (val === false)\n continue;\n target[localName] = val;\n break;\n case \"scalar\":\n target[localName] = this.scalar(jsonValue, field.T, field.L, field.name);\n break;\n }\n }\n }\n }\n /**\n * Returns `false` for unrecognized string representations.\n *\n * google.protobuf.NullValue accepts only JSON `null` (or the old `\"NULL_VALUE\"`).\n */\n enum(type, json, fieldName, ignoreUnknownFields) {\n if (type[0] == 'google.protobuf.NullValue')\n assert_1.assert(json === null || json === \"NULL_VALUE\", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} only accepts null.`);\n if (json === null)\n // we require 0 to be default value for all enums\n return 0;\n switch (typeof json) {\n case \"number\":\n assert_1.assert(Number.isInteger(json), `Unable to parse field ${this.info.typeName}#${fieldName}, enum can only be integral number, got ${json}.`);\n return json;\n case \"string\":\n let localEnumName = json;\n if (type[2] && json.substring(0, type[2].length) === type[2])\n // lookup without the shared prefix\n localEnumName = json.substring(type[2].length);\n let enumNumber = type[1][localEnumName];\n if (typeof enumNumber === 'undefined' && ignoreUnknownFields) {\n return false;\n }\n assert_1.assert(typeof enumNumber == \"number\", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} has no value for \"${json}\".`);\n return enumNumber;\n }\n assert_1.assert(false, `Unable to parse field ${this.info.typeName}#${fieldName}, cannot parse enum value from ${typeof json}\".`);\n }\n scalar(json, type, longType, fieldName) {\n let e;\n try {\n switch (type) {\n // float, double: JSON value will be a number or one of the special string values \"NaN\", \"Infinity\", and \"-Infinity\".\n // Either numbers or strings are accepted. Exponent notation is also accepted.\n case reflection_info_1.ScalarType.DOUBLE:\n case reflection_info_1.ScalarType.FLOAT:\n if (json === null)\n return .0;\n if (json === \"NaN\")\n return Number.NaN;\n if (json === \"Infinity\")\n return Number.POSITIVE_INFINITY;\n if (json === \"-Infinity\")\n return Number.NEGATIVE_INFINITY;\n if (json === \"\") {\n e = \"empty string\";\n break;\n }\n if (typeof json == \"string\" && json.trim().length !== json.length) {\n e = \"extra whitespace\";\n break;\n }\n if (typeof json != \"string\" && typeof json != \"number\") {\n break;\n }\n let float = Number(json);\n if (Number.isNaN(float)) {\n e = \"not a number\";\n break;\n }\n if (!Number.isFinite(float)) {\n // infinity and -infinity are handled by string representation above, so this is an error\n e = \"too large or small\";\n break;\n }\n if (type == reflection_info_1.ScalarType.FLOAT)\n assert_1.assertFloat32(float);\n return float;\n // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n case reflection_info_1.ScalarType.UINT32:\n if (json === null)\n return 0;\n let int32;\n if (typeof json == \"number\")\n int32 = json;\n else if (json === \"\")\n e = \"empty string\";\n else if (typeof json == \"string\") {\n if (json.trim().length !== json.length)\n e = \"extra whitespace\";\n else\n int32 = Number(json);\n }\n if (int32 === undefined)\n break;\n if (type == reflection_info_1.ScalarType.UINT32)\n assert_1.assertUInt32(int32);\n else\n assert_1.assertInt32(int32);\n return int32;\n // int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n if (json === null)\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);\n if (typeof json != \"number\" && typeof json != \"string\")\n break;\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.from(json), longType);\n case reflection_info_1.ScalarType.FIXED64:\n case reflection_info_1.ScalarType.UINT64:\n if (json === null)\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);\n if (typeof json != \"number\" && typeof json != \"string\")\n break;\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.from(json), longType);\n // bool:\n case reflection_info_1.ScalarType.BOOL:\n if (json === null)\n return false;\n if (typeof json !== \"boolean\")\n break;\n return json;\n // string:\n case reflection_info_1.ScalarType.STRING:\n if (json === null)\n return \"\";\n if (typeof json !== \"string\") {\n e = \"extra whitespace\";\n break;\n }\n try {\n encodeURIComponent(json);\n }\n catch (e) {\n e = \"invalid UTF8\";\n break;\n }\n return json;\n // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.\n // Either standard or URL-safe base64 encoding with/without paddings are accepted.\n case reflection_info_1.ScalarType.BYTES:\n if (json === null || json === \"\")\n return new Uint8Array(0);\n if (typeof json !== 'string')\n break;\n return base64_1.base64decode(json);\n }\n }\n catch (error) {\n e = error.message;\n }\n this.assert(false, fieldName + (e ? \" - \" + e : \"\"), json);\n }\n}\nexports.ReflectionJsonReader = ReflectionJsonReader;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionJsonWriter = void 0;\nconst base64_1 = require(\"./base64\");\nconst pb_long_1 = require(\"./pb-long\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst assert_1 = require(\"./assert\");\n/**\n * Writes proto3 messages in canonical JSON format using reflection\n * information.\n *\n * https://developers.google.com/protocol-buffers/docs/proto3#json\n */\nclass ReflectionJsonWriter {\n constructor(info) {\n var _a;\n this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];\n }\n /**\n * Converts the message to a JSON object, based on the field descriptors.\n */\n write(message, options) {\n const json = {}, source = message;\n for (const field of this.fields) {\n // field is not part of a oneof, simply write as is\n if (!field.oneof) {\n let jsonValue = this.field(field, source[field.localName], options);\n if (jsonValue !== undefined)\n json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;\n continue;\n }\n // field is part of a oneof\n const group = source[field.oneof];\n if (group.oneofKind !== field.localName)\n continue; // not selected, skip\n const opt = field.kind == 'scalar' || field.kind == 'enum'\n ? Object.assign(Object.assign({}, options), { emitDefaultValues: true }) : options;\n let jsonValue = this.field(field, group[field.localName], opt);\n assert_1.assert(jsonValue !== undefined);\n json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;\n }\n return json;\n }\n field(field, value, options) {\n let jsonValue = undefined;\n if (field.kind == 'map') {\n assert_1.assert(typeof value == \"object\" && value !== null);\n const jsonObj = {};\n switch (field.V.kind) {\n case \"scalar\":\n for (const [entryKey, entryValue] of Object.entries(value)) {\n const val = this.scalar(field.V.T, entryValue, field.name, false, true);\n assert_1.assert(val !== undefined);\n jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key\n }\n break;\n case \"message\":\n const messageType = field.V.T();\n for (const [entryKey, entryValue] of Object.entries(value)) {\n const val = this.message(messageType, entryValue, field.name, options);\n assert_1.assert(val !== undefined);\n jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key\n }\n break;\n case \"enum\":\n const enumInfo = field.V.T();\n for (const [entryKey, entryValue] of Object.entries(value)) {\n assert_1.assert(entryValue === undefined || typeof entryValue == 'number');\n const val = this.enum(enumInfo, entryValue, field.name, false, true, options.enumAsInteger);\n assert_1.assert(val !== undefined);\n jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key\n }\n break;\n }\n if (options.emitDefaultValues || Object.keys(jsonObj).length > 0)\n jsonValue = jsonObj;\n }\n else if (field.repeat) {\n assert_1.assert(Array.isArray(value));\n const jsonArr = [];\n switch (field.kind) {\n case \"scalar\":\n for (let i = 0; i < value.length; i++) {\n const val = this.scalar(field.T, value[i], field.name, field.opt, true);\n assert_1.assert(val !== undefined);\n jsonArr.push(val);\n }\n break;\n case \"enum\":\n const enumInfo = field.T();\n for (let i = 0; i < value.length; i++) {\n assert_1.assert(value[i] === undefined || typeof value[i] == 'number');\n const val = this.enum(enumInfo, value[i], field.name, field.opt, true, options.enumAsInteger);\n assert_1.assert(val !== undefined);\n jsonArr.push(val);\n }\n break;\n case \"message\":\n const messageType = field.T();\n for (let i = 0; i < value.length; i++) {\n const val = this.message(messageType, value[i], field.name, options);\n assert_1.assert(val !== undefined);\n jsonArr.push(val);\n }\n break;\n }\n // add converted array to json output\n if (options.emitDefaultValues || jsonArr.length > 0 || options.emitDefaultValues)\n jsonValue = jsonArr;\n }\n else {\n switch (field.kind) {\n case \"scalar\":\n jsonValue = this.scalar(field.T, value, field.name, field.opt, options.emitDefaultValues);\n break;\n case \"enum\":\n jsonValue = this.enum(field.T(), value, field.name, field.opt, options.emitDefaultValues, options.enumAsInteger);\n break;\n case \"message\":\n jsonValue = this.message(field.T(), value, field.name, options);\n break;\n }\n }\n return jsonValue;\n }\n /**\n * Returns `null` as the default for google.protobuf.NullValue.\n */\n enum(type, value, fieldName, optional, emitDefaultValues, enumAsInteger) {\n if (type[0] == 'google.protobuf.NullValue')\n return !emitDefaultValues && !optional ? undefined : null;\n if (value === undefined) {\n assert_1.assert(optional);\n return undefined;\n }\n if (value === 0 && !emitDefaultValues && !optional)\n // we require 0 to be default value for all enums\n return undefined;\n assert_1.assert(typeof value == 'number');\n assert_1.assert(Number.isInteger(value));\n if (enumAsInteger || !type[1].hasOwnProperty(value))\n // if we don't now the enum value, just return the number\n return value;\n if (type[2])\n // restore the dropped prefix\n return type[2] + type[1][value];\n return type[1][value];\n }\n message(type, value, fieldName, options) {\n if (value === undefined)\n return options.emitDefaultValues ? null : undefined;\n return type.internalJsonWrite(value, options);\n }\n scalar(type, value, fieldName, optional, emitDefaultValues) {\n if (value === undefined) {\n assert_1.assert(optional);\n return undefined;\n }\n const ed = emitDefaultValues || optional;\n // noinspection FallThroughInSwitchStatementJS\n switch (type) {\n // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n if (value === 0)\n return ed ? 0 : undefined;\n assert_1.assertInt32(value);\n return value;\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.UINT32:\n if (value === 0)\n return ed ? 0 : undefined;\n assert_1.assertUInt32(value);\n return value;\n // float, double: JSON value will be a number or one of the special string values \"NaN\", \"Infinity\", and \"-Infinity\".\n // Either numbers or strings are accepted. Exponent notation is also accepted.\n case reflection_info_1.ScalarType.FLOAT:\n assert_1.assertFloat32(value);\n case reflection_info_1.ScalarType.DOUBLE:\n if (value === 0)\n return ed ? 0 : undefined;\n assert_1.assert(typeof value == 'number');\n if (Number.isNaN(value))\n return 'NaN';\n if (value === Number.POSITIVE_INFINITY)\n return 'Infinity';\n if (value === Number.NEGATIVE_INFINITY)\n return '-Infinity';\n return value;\n // string:\n case reflection_info_1.ScalarType.STRING:\n if (value === \"\")\n return ed ? '' : undefined;\n assert_1.assert(typeof value == 'string');\n return value;\n // bool:\n case reflection_info_1.ScalarType.BOOL:\n if (value === false)\n return ed ? false : undefined;\n assert_1.assert(typeof value == 'boolean');\n return value;\n // JSON value will be a decimal string. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.UINT64:\n case reflection_info_1.ScalarType.FIXED64:\n assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');\n let ulong = pb_long_1.PbULong.from(value);\n if (ulong.isZero() && !ed)\n return undefined;\n return ulong.toString();\n // JSON value will be a decimal string. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');\n let long = pb_long_1.PbLong.from(value);\n if (long.isZero() && !ed)\n return undefined;\n return long.toString();\n // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.\n // Either standard or URL-safe base64 encoding with/without paddings are accepted.\n case reflection_info_1.ScalarType.BYTES:\n assert_1.assert(value instanceof Uint8Array);\n if (!value.byteLength)\n return ed ? \"\" : undefined;\n return base64_1.base64encode(value);\n }\n }\n}\nexports.ReflectionJsonWriter = ReflectionJsonWriter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionLongConvert = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\n/**\n * Utility method to convert a PbLong or PbUlong to a JavaScript\n * representation during runtime.\n *\n * Works with generated field information, `undefined` is equivalent\n * to `STRING`.\n */\nfunction reflectionLongConvert(long, type) {\n switch (type) {\n case reflection_info_1.LongType.BIGINT:\n return long.toBigInt();\n case reflection_info_1.LongType.NUMBER:\n return long.toNumber();\n default:\n // case undefined:\n // case LongType.STRING:\n return long.toString();\n }\n}\nexports.reflectionLongConvert = reflectionLongConvert;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionMergePartial = void 0;\n/**\n * Copy partial data into the target message.\n *\n * If a singular scalar or enum field is present in the source, it\n * replaces the field in the target.\n *\n * If a singular message field is present in the source, it is merged\n * with the target field by calling mergePartial() of the responsible\n * message type.\n *\n * If a repeated field is present in the source, its values replace\n * all values in the target array, removing extraneous values.\n * Repeated message fields are copied, not merged.\n *\n * If a map field is present in the source, entries are added to the\n * target map, replacing entries with the same key. Entries that only\n * exist in the target remain. Entries with message values are copied,\n * not merged.\n *\n * Note that this function differs from protobuf merge semantics,\n * which appends repeated fields.\n */\nfunction reflectionMergePartial(info, target, source) {\n let fieldValue, // the field value we are working with\n input = source, output; // where we want our field value to go\n for (let field of info.fields) {\n let name = field.localName;\n if (field.oneof) {\n const group = input[field.oneof]; // this is the oneof`s group in the source\n if ((group === null || group === void 0 ? void 0 : group.oneofKind) == undefined) { // the user is free to omit\n continue; // we skip this field, and all other members too\n }\n fieldValue = group[name]; // our value comes from the the oneof group of the source\n output = target[field.oneof]; // and our output is the oneof group of the target\n output.oneofKind = group.oneofKind; // always update discriminator\n if (fieldValue == undefined) {\n delete output[name]; // remove any existing value\n continue; // skip further work on field\n }\n }\n else {\n fieldValue = input[name]; // we are using the source directly\n output = target; // we want our field value to go directly into the target\n if (fieldValue == undefined) {\n continue; // skip further work on field, existing value is used as is\n }\n }\n if (field.repeat)\n output[name].length = fieldValue.length; // resize target array to match source array\n // now we just work with `fieldValue` and `output` to merge the value\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n if (field.repeat)\n for (let i = 0; i < fieldValue.length; i++)\n output[name][i] = fieldValue[i]; // not a reference type\n else\n output[name] = fieldValue; // not a reference type\n break;\n case \"message\":\n let T = field.T();\n if (field.repeat)\n for (let i = 0; i < fieldValue.length; i++)\n output[name][i] = T.create(fieldValue[i]);\n else if (output[name] === undefined)\n output[name] = T.create(fieldValue); // nothing to merge with\n else\n T.mergePartial(output[name], fieldValue);\n break;\n case \"map\":\n // Map and repeated fields are simply overwritten, not appended or merged\n switch (field.V.kind) {\n case \"scalar\":\n case \"enum\":\n Object.assign(output[name], fieldValue); // elements are not reference types\n break;\n case \"message\":\n let T = field.V.T();\n for (let k of Object.keys(fieldValue))\n output[name][k] = T.create(fieldValue[k]);\n break;\n }\n break;\n }\n }\n}\nexports.reflectionMergePartial = reflectionMergePartial;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionScalarDefault = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\nconst reflection_long_convert_1 = require(\"./reflection-long-convert\");\nconst pb_long_1 = require(\"./pb-long\");\n/**\n * Creates the default value for a scalar type.\n */\nfunction reflectionScalarDefault(type, longType = reflection_info_1.LongType.STRING) {\n switch (type) {\n case reflection_info_1.ScalarType.BOOL:\n return false;\n case reflection_info_1.ScalarType.UINT64:\n case reflection_info_1.ScalarType.FIXED64:\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);\n case reflection_info_1.ScalarType.DOUBLE:\n case reflection_info_1.ScalarType.FLOAT:\n return 0.0;\n case reflection_info_1.ScalarType.BYTES:\n return new Uint8Array(0);\n case reflection_info_1.ScalarType.STRING:\n return \"\";\n default:\n // case ScalarType.INT32:\n // case ScalarType.UINT32:\n // case ScalarType.SINT32:\n // case ScalarType.FIXED32:\n // case ScalarType.SFIXED32:\n return 0;\n }\n}\nexports.reflectionScalarDefault = reflectionScalarDefault;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionTypeCheck = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\nconst oneof_1 = require(\"./oneof\");\n// noinspection JSMethodCanBeStatic\nclass ReflectionTypeCheck {\n constructor(info) {\n var _a;\n this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];\n }\n prepare() {\n if (this.data)\n return;\n const req = [], known = [], oneofs = [];\n for (let field of this.fields) {\n if (field.oneof) {\n if (!oneofs.includes(field.oneof)) {\n oneofs.push(field.oneof);\n req.push(field.oneof);\n known.push(field.oneof);\n }\n }\n else {\n known.push(field.localName);\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n if (!field.opt || field.repeat)\n req.push(field.localName);\n break;\n case \"message\":\n if (field.repeat)\n req.push(field.localName);\n break;\n case \"map\":\n req.push(field.localName);\n break;\n }\n }\n }\n this.data = { req, known, oneofs: Object.values(oneofs) };\n }\n /**\n * Is the argument a valid message as specified by the\n * reflection information?\n *\n * Checks all field types recursively. The `depth`\n * specifies how deep into the structure the check will be.\n *\n * With a depth of 0, only the presence of fields\n * is checked.\n *\n * With a depth of 1 or more, the field types are checked.\n *\n * With a depth of 2 or more, the members of map, repeated\n * and message fields are checked.\n *\n * Message fields will be checked recursively with depth - 1.\n *\n * The number of map entries / repeated values being checked\n * is < depth.\n */\n is(message, depth, allowExcessProperties = false) {\n if (depth < 0)\n return true;\n if (message === null || message === undefined || typeof message != 'object')\n return false;\n this.prepare();\n let keys = Object.keys(message), data = this.data;\n // if a required field is missing in arg, this cannot be a T\n if (keys.length < data.req.length || data.req.some(n => !keys.includes(n)))\n return false;\n if (!allowExcessProperties) {\n // if the arg contains a key we dont know, this is not a literal T\n if (keys.some(k => !data.known.includes(k)))\n return false;\n }\n // \"With a depth of 0, only the presence and absence of fields is checked.\"\n // \"With a depth of 1 or more, the field types are checked.\"\n if (depth < 1) {\n return true;\n }\n // check oneof group\n for (const name of data.oneofs) {\n const group = message[name];\n if (!oneof_1.isOneofGroup(group))\n return false;\n if (group.oneofKind === undefined)\n continue;\n const field = this.fields.find(f => f.localName === group.oneofKind);\n if (!field)\n return false; // we found no field, but have a kind, something is wrong\n if (!this.field(group[group.oneofKind], field, allowExcessProperties, depth))\n return false;\n }\n // check types\n for (const field of this.fields) {\n if (field.oneof !== undefined)\n continue;\n if (!this.field(message[field.localName], field, allowExcessProperties, depth))\n return false;\n }\n return true;\n }\n field(arg, field, allowExcessProperties, depth) {\n let repeated = field.repeat;\n switch (field.kind) {\n case \"scalar\":\n if (arg === undefined)\n return field.opt;\n if (repeated)\n return this.scalars(arg, field.T, depth, field.L);\n return this.scalar(arg, field.T, field.L);\n case \"enum\":\n if (arg === undefined)\n return field.opt;\n if (repeated)\n return this.scalars(arg, reflection_info_1.ScalarType.INT32, depth);\n return this.scalar(arg, reflection_info_1.ScalarType.INT32);\n case \"message\":\n if (arg === undefined)\n return true;\n if (repeated)\n return this.messages(arg, field.T(), allowExcessProperties, depth);\n return this.message(arg, field.T(), allowExcessProperties, depth);\n case \"map\":\n if (typeof arg != 'object' || arg === null)\n return false;\n if (depth < 2)\n return true;\n if (!this.mapKeys(arg, field.K, depth))\n return false;\n switch (field.V.kind) {\n case \"scalar\":\n return this.scalars(Object.values(arg), field.V.T, depth, field.V.L);\n case \"enum\":\n return this.scalars(Object.values(arg), reflection_info_1.ScalarType.INT32, depth);\n case \"message\":\n return this.messages(Object.values(arg), field.V.T(), allowExcessProperties, depth);\n }\n break;\n }\n return true;\n }\n message(arg, type, allowExcessProperties, depth) {\n if (allowExcessProperties) {\n return type.isAssignable(arg, depth);\n }\n return type.is(arg, depth);\n }\n messages(arg, type, allowExcessProperties, depth) {\n if (!Array.isArray(arg))\n return false;\n if (depth < 2)\n return true;\n if (allowExcessProperties) {\n for (let i = 0; i < arg.length && i < depth; i++)\n if (!type.isAssignable(arg[i], depth - 1))\n return false;\n }\n else {\n for (let i = 0; i < arg.length && i < depth; i++)\n if (!type.is(arg[i], depth - 1))\n return false;\n }\n return true;\n }\n scalar(arg, type, longType) {\n let argType = typeof arg;\n switch (type) {\n case reflection_info_1.ScalarType.UINT64:\n case reflection_info_1.ScalarType.FIXED64:\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n switch (longType) {\n case reflection_info_1.LongType.BIGINT:\n return argType == \"bigint\";\n case reflection_info_1.LongType.NUMBER:\n return argType == \"number\" && !isNaN(arg);\n default:\n return argType == \"string\";\n }\n case reflection_info_1.ScalarType.BOOL:\n return argType == 'boolean';\n case reflection_info_1.ScalarType.STRING:\n return argType == 'string';\n case reflection_info_1.ScalarType.BYTES:\n return arg instanceof Uint8Array;\n case reflection_info_1.ScalarType.DOUBLE:\n case reflection_info_1.ScalarType.FLOAT:\n return argType == 'number' && !isNaN(arg);\n default:\n // case ScalarType.UINT32:\n // case ScalarType.FIXED32:\n // case ScalarType.INT32:\n // case ScalarType.SINT32:\n // case ScalarType.SFIXED32:\n return argType == 'number' && Number.isInteger(arg);\n }\n }\n scalars(arg, type, depth, longType) {\n if (!Array.isArray(arg))\n return false;\n if (depth < 2)\n return true;\n if (Array.isArray(arg))\n for (let i = 0; i < arg.length && i < depth; i++)\n if (!this.scalar(arg[i], type, longType))\n return false;\n return true;\n }\n mapKeys(map, type, depth) {\n let keys = Object.keys(map);\n switch (type) {\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n case reflection_info_1.ScalarType.UINT32:\n return this.scalars(keys.slice(0, depth).map(k => parseInt(k)), type, depth);\n case reflection_info_1.ScalarType.BOOL:\n return this.scalars(keys.slice(0, depth).map(k => k == 'true' ? true : k == 'false' ? false : k), type, depth);\n default:\n return this.scalars(keys, type, depth, reflection_info_1.LongType.STRING);\n }\n }\n}\nexports.ReflectionTypeCheck = ReflectionTypeCheck;\n","/**\n * @author Toru Nagashima \n * See LICENSE file in root directory for full license.\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar eventTargetShim = require('event-target-shim');\n\n/**\n * The signal class.\n * @see https://dom.spec.whatwg.org/#abortsignal\n */\nclass AbortSignal extends eventTargetShim.EventTarget {\n /**\n * AbortSignal cannot be constructed directly.\n */\n constructor() {\n super();\n throw new TypeError(\"AbortSignal cannot be constructed directly\");\n }\n /**\n * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.\n */\n get aborted() {\n const aborted = abortedFlags.get(this);\n if (typeof aborted !== \"boolean\") {\n throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? \"null\" : typeof this}`);\n }\n return aborted;\n }\n}\neventTargetShim.defineEventAttribute(AbortSignal.prototype, \"abort\");\n/**\n * Create an AbortSignal object.\n */\nfunction createAbortSignal() {\n const signal = Object.create(AbortSignal.prototype);\n eventTargetShim.EventTarget.call(signal);\n abortedFlags.set(signal, false);\n return signal;\n}\n/**\n * Abort a given signal.\n */\nfunction abortSignal(signal) {\n if (abortedFlags.get(signal) !== false) {\n return;\n }\n abortedFlags.set(signal, true);\n signal.dispatchEvent({ type: \"abort\" });\n}\n/**\n * Aborted flag for each instances.\n */\nconst abortedFlags = new WeakMap();\n// Properties should be enumerable.\nObject.defineProperties(AbortSignal.prototype, {\n aborted: { enumerable: true },\n});\n// `toString()` should return `\"[object AbortSignal]\"`\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortSignal\",\n });\n}\n\n/**\n * The AbortController.\n * @see https://dom.spec.whatwg.org/#abortcontroller\n */\nclass AbortController {\n /**\n * Initialize this controller.\n */\n constructor() {\n signals.set(this, createAbortSignal());\n }\n /**\n * Returns the `AbortSignal` object associated with this object.\n */\n get signal() {\n return getSignal(this);\n }\n /**\n * Abort and signal to any observers that the associated activity is to be aborted.\n */\n abort() {\n abortSignal(getSignal(this));\n }\n}\n/**\n * Associated signals.\n */\nconst signals = new WeakMap();\n/**\n * Get the associated signal of a given controller.\n */\nfunction getSignal(controller) {\n const signal = signals.get(controller);\n if (signal == null) {\n throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? \"null\" : typeof controller}`);\n }\n return signal;\n}\n// Properties should be enumerable.\nObject.defineProperties(AbortController.prototype, {\n signal: { enumerable: true },\n abort: { enumerable: true },\n});\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortController\",\n });\n}\n\nexports.AbortController = AbortController;\nexports.AbortSignal = AbortSignal;\nexports.default = AbortController;\n\nmodule.exports = AbortController\nmodule.exports.AbortController = module.exports[\"default\"] = AbortController\nmodule.exports.AbortSignal = AbortSignal\n//# sourceMappingURL=abort-controller.js.map\n","/**\n * archiver-utils\n *\n * Copyright (c) 2012-2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT\n */\nvar fs = require('graceful-fs');\nvar path = require('path');\n\nvar flatten = require('lodash/flatten');\nvar difference = require('lodash/difference');\nvar union = require('lodash/union');\nvar isPlainObject = require('lodash/isPlainObject');\n\nvar glob = require('glob');\n\nvar file = module.exports = {};\n\nvar pathSeparatorRe = /[\\/\\\\]/g;\n\n// Process specified wildcard glob patterns or filenames against a\n// callback, excluding and uniquing files in the result set.\nvar processPatterns = function(patterns, fn) {\n // Filepaths to return.\n var result = [];\n // Iterate over flattened patterns array.\n flatten(patterns).forEach(function(pattern) {\n // If the first character is ! it should be omitted\n var exclusion = pattern.indexOf('!') === 0;\n // If the pattern is an exclusion, remove the !\n if (exclusion) { pattern = pattern.slice(1); }\n // Find all matching files for this pattern.\n var matches = fn(pattern);\n if (exclusion) {\n // If an exclusion, remove matching files.\n result = difference(result, matches);\n } else {\n // Otherwise add matching files.\n result = union(result, matches);\n }\n });\n return result;\n};\n\n// True if the file path exists.\nfile.exists = function() {\n var filepath = path.join.apply(path, arguments);\n return fs.existsSync(filepath);\n};\n\n// Return an array of all file paths that match the given wildcard patterns.\nfile.expand = function(...args) {\n // If the first argument is an options object, save those options to pass\n // into the File.prototype.glob.sync method.\n var options = isPlainObject(args[0]) ? args.shift() : {};\n // Use the first argument if it's an Array, otherwise convert the arguments\n // object to an array and use that.\n var patterns = Array.isArray(args[0]) ? args[0] : args;\n // Return empty set if there are no patterns or filepaths.\n if (patterns.length === 0) { return []; }\n // Return all matching filepaths.\n var matches = processPatterns(patterns, function(pattern) {\n // Find all matching files for this pattern.\n return glob.sync(pattern, options);\n });\n // Filter result set?\n if (options.filter) {\n matches = matches.filter(function(filepath) {\n filepath = path.join(options.cwd || '', filepath);\n try {\n if (typeof options.filter === 'function') {\n return options.filter(filepath);\n } else {\n // If the file is of the right type and exists, this should work.\n return fs.statSync(filepath)[options.filter]();\n }\n } catch(e) {\n // Otherwise, it's probably not the right type.\n return false;\n }\n });\n }\n return matches;\n};\n\n// Build a multi task \"files\" object dynamically.\nfile.expandMapping = function(patterns, destBase, options) {\n options = Object.assign({\n rename: function(destBase, destPath) {\n return path.join(destBase || '', destPath);\n }\n }, options);\n var files = [];\n var fileByDest = {};\n // Find all files matching pattern, using passed-in options.\n file.expand(options, patterns).forEach(function(src) {\n var destPath = src;\n // Flatten?\n if (options.flatten) {\n destPath = path.basename(destPath);\n }\n // Change the extension?\n if (options.ext) {\n destPath = destPath.replace(/(\\.[^\\/]*)?$/, options.ext);\n }\n // Generate destination filename.\n var dest = options.rename(destBase, destPath, options);\n // Prepend cwd to src path if necessary.\n if (options.cwd) { src = path.join(options.cwd, src); }\n // Normalize filepaths to be unix-style.\n dest = dest.replace(pathSeparatorRe, '/');\n src = src.replace(pathSeparatorRe, '/');\n // Map correct src path to dest path.\n if (fileByDest[dest]) {\n // If dest already exists, push this src onto that dest's src array.\n fileByDest[dest].src.push(src);\n } else {\n // Otherwise create a new src-dest file mapping object.\n files.push({\n src: [src],\n dest: dest,\n });\n // And store a reference for later use.\n fileByDest[dest] = files[files.length - 1];\n }\n });\n return files;\n};\n\n// reusing bits of grunt's multi-task source normalization\nfile.normalizeFilesArray = function(data) {\n var files = [];\n\n data.forEach(function(obj) {\n var prop;\n if ('src' in obj || 'dest' in obj) {\n files.push(obj);\n }\n });\n\n if (files.length === 0) {\n return [];\n }\n\n files = _(files).chain().forEach(function(obj) {\n if (!('src' in obj) || !obj.src) { return; }\n // Normalize .src properties to flattened array.\n if (Array.isArray(obj.src)) {\n obj.src = flatten(obj.src);\n } else {\n obj.src = [obj.src];\n }\n }).map(function(obj) {\n // Build options object, removing unwanted properties.\n var expandOptions = Object.assign({}, obj);\n delete expandOptions.src;\n delete expandOptions.dest;\n\n // Expand file mappings.\n if (obj.expand) {\n return file.expandMapping(obj.src, obj.dest, expandOptions).map(function(mapObj) {\n // Copy obj properties to result.\n var result = Object.assign({}, obj);\n // Make a clone of the orig obj available.\n result.orig = Object.assign({}, obj);\n // Set .src and .dest, processing both as templates.\n result.src = mapObj.src;\n result.dest = mapObj.dest;\n // Remove unwanted properties.\n ['expand', 'cwd', 'flatten', 'rename', 'ext'].forEach(function(prop) {\n delete result[prop];\n });\n return result;\n });\n }\n\n // Copy obj properties to result, adding an .orig property.\n var result = Object.assign({}, obj);\n // Make a clone of the orig obj available.\n result.orig = Object.assign({}, obj);\n\n if ('src' in result) {\n // Expose an expand-on-demand getter method as .src.\n Object.defineProperty(result, 'src', {\n enumerable: true,\n get: function fn() {\n var src;\n if (!('result' in fn)) {\n src = obj.src;\n // If src is an array, flatten it. Otherwise, make it into an array.\n src = Array.isArray(src) ? flatten(src) : [src];\n // Expand src files, memoizing result.\n fn.result = file.expand(expandOptions, src);\n }\n return fn.result;\n }\n });\n }\n\n if ('dest' in result) {\n result.dest = obj.dest;\n }\n\n return result;\n }).flatten().value();\n\n return files;\n};\n","/**\n * archiver-utils\n *\n * Copyright (c) 2015 Chris Talkington.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/archiver-utils/blob/master/LICENSE\n */\nvar fs = require('graceful-fs');\nvar path = require('path');\nvar isStream = require('is-stream');\nvar lazystream = require('lazystream');\nvar normalizePath = require('normalize-path');\nvar defaults = require('lodash/defaults');\n\nvar Stream = require('stream').Stream;\nvar PassThrough = require('readable-stream').PassThrough;\n\nvar utils = module.exports = {};\nutils.file = require('./file.js');\n\nutils.collectStream = function(source, callback) {\n var collection = [];\n var size = 0;\n\n source.on('error', callback);\n\n source.on('data', function(chunk) {\n collection.push(chunk);\n size += chunk.length;\n });\n\n source.on('end', function() {\n var buf = Buffer.alloc(size);\n var offset = 0;\n\n collection.forEach(function(data) {\n data.copy(buf, offset);\n offset += data.length;\n });\n\n callback(null, buf);\n });\n};\n\nutils.dateify = function(dateish) {\n dateish = dateish || new Date();\n\n if (dateish instanceof Date) {\n dateish = dateish;\n } else if (typeof dateish === 'string') {\n dateish = new Date(dateish);\n } else {\n dateish = new Date();\n }\n\n return dateish;\n};\n\n// this is slightly different from lodash version\nutils.defaults = function(object, source, guard) {\n var args = arguments;\n args[0] = args[0] || {};\n\n return defaults(...args);\n};\n\nutils.isStream = function(source) {\n return isStream(source);\n};\n\nutils.lazyReadStream = function(filepath) {\n return new lazystream.Readable(function() {\n return fs.createReadStream(filepath);\n });\n};\n\nutils.normalizeInputSource = function(source) {\n if (source === null) {\n return Buffer.alloc(0);\n } else if (typeof source === 'string') {\n return Buffer.from(source);\n } else if (utils.isStream(source)) {\n // Always pipe through a PassThrough stream to guarantee pausing the stream if it's already flowing,\n // since it will only be processed in a (distant) future iteration of the event loop, and will lose\n // data if already flowing now.\n return source.pipe(new PassThrough());\n }\n\n return source;\n};\n\nutils.sanitizePath = function(filepath) {\n return normalizePath(filepath, false).replace(/^\\w+:/, '').replace(/^(\\.\\.\\/|\\/)+/, '');\n};\n\nutils.trailingSlashIt = function(str) {\n return str.slice(-1) !== '/' ? str + '/' : str;\n};\n\nutils.unixifyPath = function(filepath) {\n return normalizePath(filepath, false).replace(/^\\w+:/, '');\n};\n\nutils.walkdir = function(dirpath, base, callback) {\n var results = [];\n\n if (typeof base === 'function') {\n callback = base;\n base = dirpath;\n }\n\n fs.readdir(dirpath, function(err, list) {\n var i = 0;\n var file;\n var filepath;\n\n if (err) {\n return callback(err);\n }\n\n (function next() {\n file = list[i++];\n\n if (!file) {\n return callback(null, results);\n }\n\n filepath = path.join(dirpath, file);\n\n fs.stat(filepath, function(err, stats) {\n results.push({\n path: filepath,\n relative: path.relative(base, filepath).replace(/\\\\/g, '/'),\n stats: stats\n });\n\n if (stats && stats.isDirectory()) {\n utils.walkdir(filepath, base, function(err, res) {\n\t if(err){\n\t return callback(err);\n\t }\n\n res.forEach(function(dirEntry) {\n results.push(dirEntry);\n });\n\t\t \n next(); \n });\n } else {\n next();\n }\n });\n })();\n });\n};\n","/**\n * Archiver Vending\n *\n * @ignore\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar Archiver = require('./lib/core');\n\nvar formats = {};\n\n/**\n * Dispenses a new Archiver instance.\n *\n * @constructor\n * @param {String} format The archive format to use.\n * @param {Object} options See [Archiver]{@link Archiver}\n * @return {Archiver}\n */\nvar vending = function(format, options) {\n return vending.create(format, options);\n};\n\n/**\n * Creates a new Archiver instance.\n *\n * @param {String} format The archive format to use.\n * @param {Object} options See [Archiver]{@link Archiver}\n * @return {Archiver}\n */\nvending.create = function(format, options) {\n if (formats[format]) {\n var instance = new Archiver(format, options);\n instance.setFormat(format);\n instance.setModule(new formats[format](options));\n\n return instance;\n } else {\n throw new Error('create(' + format + '): format not registered');\n }\n};\n\n/**\n * Registers a format for use with archiver.\n *\n * @param {String} format The name of the format.\n * @param {Function} module The function for archiver to interact with.\n * @return void\n */\nvending.registerFormat = function(format, module) {\n if (formats[format]) {\n throw new Error('register(' + format + '): format already registered');\n }\n\n if (typeof module !== 'function') {\n throw new Error('register(' + format + '): format module invalid');\n }\n\n if (typeof module.prototype.append !== 'function' || typeof module.prototype.finalize !== 'function') {\n throw new Error('register(' + format + '): format module missing methods');\n }\n\n formats[format] = module;\n};\n\n/**\n * Check if the format is already registered.\n * \n * @param {String} format the name of the format.\n * @return boolean\n */\nvending.isRegisteredFormat = function (format) {\n if (formats[format]) {\n return true;\n }\n \n return false;\n};\n\nvending.registerFormat('zip', require('./lib/plugins/zip'));\nvending.registerFormat('tar', require('./lib/plugins/tar'));\nvending.registerFormat('json', require('./lib/plugins/json'));\n\nmodule.exports = vending;","/**\n * Archiver Core\n *\n * @ignore\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar fs = require('fs');\nvar glob = require('readdir-glob');\nvar async = require('async');\nvar path = require('path');\nvar util = require('archiver-utils');\n\nvar inherits = require('util').inherits;\nvar ArchiverError = require('./error');\nvar Transform = require('readable-stream').Transform;\n\nvar win32 = process.platform === 'win32';\n\n/**\n * @constructor\n * @param {String} format The archive format to use.\n * @param {(CoreOptions|TransformOptions)} options See also {@link ZipOptions} and {@link TarOptions}.\n */\nvar Archiver = function(format, options) {\n if (!(this instanceof Archiver)) {\n return new Archiver(format, options);\n }\n\n if (typeof format !== 'string') {\n options = format;\n format = 'zip';\n }\n\n options = this.options = util.defaults(options, {\n highWaterMark: 1024 * 1024,\n statConcurrency: 4\n });\n\n Transform.call(this, options);\n\n this._format = false;\n this._module = false;\n this._pending = 0;\n this._pointer = 0;\n\n this._entriesCount = 0;\n this._entriesProcessedCount = 0;\n this._fsEntriesTotalBytes = 0;\n this._fsEntriesProcessedBytes = 0;\n\n this._queue = async.queue(this._onQueueTask.bind(this), 1);\n this._queue.drain(this._onQueueDrain.bind(this));\n\n this._statQueue = async.queue(this._onStatQueueTask.bind(this), options.statConcurrency);\n this._statQueue.drain(this._onQueueDrain.bind(this));\n\n this._state = {\n aborted: false,\n finalize: false,\n finalizing: false,\n finalized: false,\n modulePiped: false\n };\n\n this._streams = [];\n};\n\ninherits(Archiver, Transform);\n\n/**\n * Internal logic for `abort`.\n *\n * @private\n * @return void\n */\nArchiver.prototype._abort = function() {\n this._state.aborted = true;\n this._queue.kill();\n this._statQueue.kill();\n\n if (this._queue.idle()) {\n this._shutdown();\n }\n};\n\n/**\n * Internal helper for appending files.\n *\n * @private\n * @param {String} filepath The source filepath.\n * @param {EntryData} data The entry data.\n * @return void\n */\nArchiver.prototype._append = function(filepath, data) {\n data = data || {};\n\n var task = {\n source: null,\n filepath: filepath\n };\n\n if (!data.name) {\n data.name = filepath;\n }\n\n data.sourcePath = filepath;\n task.data = data;\n this._entriesCount++;\n\n if (data.stats && data.stats instanceof fs.Stats) {\n task = this._updateQueueTaskWithStats(task, data.stats);\n if (task) {\n if (data.stats.size) {\n this._fsEntriesTotalBytes += data.stats.size;\n }\n\n this._queue.push(task);\n }\n } else {\n this._statQueue.push(task);\n }\n};\n\n/**\n * Internal logic for `finalize`.\n *\n * @private\n * @return void\n */\nArchiver.prototype._finalize = function() {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n return;\n }\n\n this._state.finalizing = true;\n\n this._moduleFinalize();\n\n this._state.finalizing = false;\n this._state.finalized = true;\n};\n\n/**\n * Checks the various state variables to determine if we can `finalize`.\n *\n * @private\n * @return {Boolean}\n */\nArchiver.prototype._maybeFinalize = function() {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n return false;\n }\n\n if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {\n this._finalize();\n return true;\n }\n\n return false;\n};\n\n/**\n * Appends an entry to the module.\n *\n * @private\n * @fires Archiver#entry\n * @param {(Buffer|Stream)} source\n * @param {EntryData} data\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._moduleAppend = function(source, data, callback) {\n if (this._state.aborted) {\n callback();\n return;\n }\n\n this._module.append(source, data, function(err) {\n this._task = null;\n\n if (this._state.aborted) {\n this._shutdown();\n return;\n }\n\n if (err) {\n this.emit('error', err);\n setImmediate(callback);\n return;\n }\n\n /**\n * Fires when the entry's input has been processed and appended to the archive.\n *\n * @event Archiver#entry\n * @type {EntryData}\n */\n this.emit('entry', data);\n this._entriesProcessedCount++;\n\n if (data.stats && data.stats.size) {\n this._fsEntriesProcessedBytes += data.stats.size;\n }\n\n /**\n * @event Archiver#progress\n * @type {ProgressData}\n */\n this.emit('progress', {\n entries: {\n total: this._entriesCount,\n processed: this._entriesProcessedCount\n },\n fs: {\n totalBytes: this._fsEntriesTotalBytes,\n processedBytes: this._fsEntriesProcessedBytes\n }\n });\n\n setImmediate(callback);\n }.bind(this));\n};\n\n/**\n * Finalizes the module.\n *\n * @private\n * @return void\n */\nArchiver.prototype._moduleFinalize = function() {\n if (typeof this._module.finalize === 'function') {\n this._module.finalize();\n } else if (typeof this._module.end === 'function') {\n this._module.end();\n } else {\n this.emit('error', new ArchiverError('NOENDMETHOD'));\n }\n};\n\n/**\n * Pipes the module to our internal stream with error bubbling.\n *\n * @private\n * @return void\n */\nArchiver.prototype._modulePipe = function() {\n this._module.on('error', this._onModuleError.bind(this));\n this._module.pipe(this);\n this._state.modulePiped = true;\n};\n\n/**\n * Determines if the current module supports a defined feature.\n *\n * @private\n * @param {String} key\n * @return {Boolean}\n */\nArchiver.prototype._moduleSupports = function(key) {\n if (!this._module.supports || !this._module.supports[key]) {\n return false;\n }\n\n return this._module.supports[key];\n};\n\n/**\n * Unpipes the module from our internal stream.\n *\n * @private\n * @return void\n */\nArchiver.prototype._moduleUnpipe = function() {\n this._module.unpipe(this);\n this._state.modulePiped = false;\n};\n\n/**\n * Normalizes entry data with fallbacks for key properties.\n *\n * @private\n * @param {Object} data\n * @param {fs.Stats} stats\n * @return {Object}\n */\nArchiver.prototype._normalizeEntryData = function(data, stats) {\n data = util.defaults(data, {\n type: 'file',\n name: null,\n date: null,\n mode: null,\n prefix: null,\n sourcePath: null,\n stats: false\n });\n\n if (stats && data.stats === false) {\n data.stats = stats;\n }\n\n var isDir = data.type === 'directory';\n\n if (data.name) {\n if (typeof data.prefix === 'string' && '' !== data.prefix) {\n data.name = data.prefix + '/' + data.name;\n data.prefix = null;\n }\n\n data.name = util.sanitizePath(data.name);\n\n if (data.type !== 'symlink' && data.name.slice(-1) === '/') {\n isDir = true;\n data.type = 'directory';\n } else if (isDir) {\n data.name += '/';\n }\n }\n\n // 511 === 0777; 493 === 0755; 438 === 0666; 420 === 0644\n if (typeof data.mode === 'number') {\n if (win32) {\n data.mode &= 511;\n } else {\n data.mode &= 4095\n }\n } else if (data.stats && data.mode === null) {\n if (win32) {\n data.mode = data.stats.mode & 511;\n } else {\n data.mode = data.stats.mode & 4095;\n }\n\n // stat isn't reliable on windows; force 0755 for dir\n if (win32 && isDir) {\n data.mode = 493;\n }\n } else if (data.mode === null) {\n data.mode = isDir ? 493 : 420;\n }\n\n if (data.stats && data.date === null) {\n data.date = data.stats.mtime;\n } else {\n data.date = util.dateify(data.date);\n }\n\n return data;\n};\n\n/**\n * Error listener that re-emits error on to our internal stream.\n *\n * @private\n * @param {Error} err\n * @return void\n */\nArchiver.prototype._onModuleError = function(err) {\n /**\n * @event Archiver#error\n * @type {ErrorData}\n */\n this.emit('error', err);\n};\n\n/**\n * Checks the various state variables after queue has drained to determine if\n * we need to `finalize`.\n *\n * @private\n * @return void\n */\nArchiver.prototype._onQueueDrain = function() {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n return;\n }\n\n if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {\n this._finalize();\n }\n};\n\n/**\n * Appends each queue task to the module.\n *\n * @private\n * @param {Object} task\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._onQueueTask = function(task, callback) {\n var fullCallback = () => {\n if(task.data.callback) {\n task.data.callback();\n }\n callback();\n }\n\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n fullCallback();\n return;\n }\n\n this._task = task;\n this._moduleAppend(task.source, task.data, fullCallback);\n};\n\n/**\n * Performs a file stat and reinjects the task back into the queue.\n *\n * @private\n * @param {Object} task\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._onStatQueueTask = function(task, callback) {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n callback();\n return;\n }\n\n fs.lstat(task.filepath, function(err, stats) {\n if (this._state.aborted) {\n setImmediate(callback);\n return;\n }\n\n if (err) {\n this._entriesCount--;\n\n /**\n * @event Archiver#warning\n * @type {ErrorData}\n */\n this.emit('warning', err);\n setImmediate(callback);\n return;\n }\n\n task = this._updateQueueTaskWithStats(task, stats);\n\n if (task) {\n if (stats.size) {\n this._fsEntriesTotalBytes += stats.size;\n }\n\n this._queue.push(task);\n }\n\n setImmediate(callback);\n }.bind(this));\n};\n\n/**\n * Unpipes the module and ends our internal stream.\n *\n * @private\n * @return void\n */\nArchiver.prototype._shutdown = function() {\n this._moduleUnpipe();\n this.end();\n};\n\n/**\n * Tracks the bytes emitted by our internal stream.\n *\n * @private\n * @param {Buffer} chunk\n * @param {String} encoding\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._transform = function(chunk, encoding, callback) {\n if (chunk) {\n this._pointer += chunk.length;\n }\n\n callback(null, chunk);\n};\n\n/**\n * Updates and normalizes a queue task using stats data.\n *\n * @private\n * @param {Object} task\n * @param {fs.Stats} stats\n * @return {Object}\n */\nArchiver.prototype._updateQueueTaskWithStats = function(task, stats) {\n if (stats.isFile()) {\n task.data.type = 'file';\n task.data.sourceType = 'stream';\n task.source = util.lazyReadStream(task.filepath);\n } else if (stats.isDirectory() && this._moduleSupports('directory')) {\n task.data.name = util.trailingSlashIt(task.data.name);\n task.data.type = 'directory';\n task.data.sourcePath = util.trailingSlashIt(task.filepath);\n task.data.sourceType = 'buffer';\n task.source = Buffer.concat([]);\n } else if (stats.isSymbolicLink() && this._moduleSupports('symlink')) {\n var linkPath = fs.readlinkSync(task.filepath);\n var dirName = path.dirname(task.filepath);\n task.data.type = 'symlink';\n task.data.linkname = path.relative(dirName, path.resolve(dirName, linkPath));\n task.data.sourceType = 'buffer';\n task.source = Buffer.concat([]);\n } else {\n if (stats.isDirectory()) {\n this.emit('warning', new ArchiverError('DIRECTORYNOTSUPPORTED', task.data));\n } else if (stats.isSymbolicLink()) {\n this.emit('warning', new ArchiverError('SYMLINKNOTSUPPORTED', task.data));\n } else {\n this.emit('warning', new ArchiverError('ENTRYNOTSUPPORTED', task.data));\n }\n\n return null;\n }\n\n task.data = this._normalizeEntryData(task.data, stats);\n\n return task;\n};\n\n/**\n * Aborts the archiving process, taking a best-effort approach, by:\n *\n * - removing any pending queue tasks\n * - allowing any active queue workers to finish\n * - detaching internal module pipes\n * - ending both sides of the Transform stream\n *\n * It will NOT drain any remaining sources.\n *\n * @return {this}\n */\nArchiver.prototype.abort = function() {\n if (this._state.aborted || this._state.finalized) {\n return this;\n }\n\n this._abort();\n\n return this;\n};\n\n/**\n * Appends an input source (text string, buffer, or stream) to the instance.\n *\n * When the instance has received, processed, and emitted the input, the `entry`\n * event is fired.\n *\n * @fires Archiver#entry\n * @param {(Buffer|Stream|String)} source The input source.\n * @param {EntryData} data See also {@link ZipEntryData} and {@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.append = function(source, data) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n data = this._normalizeEntryData(data);\n\n if (typeof data.name !== 'string' || data.name.length === 0) {\n this.emit('error', new ArchiverError('ENTRYNAMEREQUIRED'));\n return this;\n }\n\n if (data.type === 'directory' && !this._moduleSupports('directory')) {\n this.emit('error', new ArchiverError('DIRECTORYNOTSUPPORTED', { name: data.name }));\n return this;\n }\n\n source = util.normalizeInputSource(source);\n\n if (Buffer.isBuffer(source)) {\n data.sourceType = 'buffer';\n } else if (util.isStream(source)) {\n data.sourceType = 'stream';\n } else {\n this.emit('error', new ArchiverError('INPUTSTEAMBUFFERREQUIRED', { name: data.name }));\n return this;\n }\n\n this._entriesCount++;\n this._queue.push({\n data: data,\n source: source\n });\n\n return this;\n};\n\n/**\n * Appends a directory and its files, recursively, given its dirpath.\n *\n * @param {String} dirpath The source directory path.\n * @param {String} destpath The destination path within the archive.\n * @param {(EntryData|Function)} data See also [ZipEntryData]{@link ZipEntryData} and\n * [TarEntryData]{@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.directory = function(dirpath, destpath, data) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n if (typeof dirpath !== 'string' || dirpath.length === 0) {\n this.emit('error', new ArchiverError('DIRECTORYDIRPATHREQUIRED'));\n return this;\n }\n\n this._pending++;\n\n if (destpath === false) {\n destpath = '';\n } else if (typeof destpath !== 'string'){\n destpath = dirpath;\n }\n\n var dataFunction = false;\n if (typeof data === 'function') {\n dataFunction = data;\n data = {};\n } else if (typeof data !== 'object') {\n data = {};\n }\n\n var globOptions = {\n stat: true,\n dot: true\n };\n\n function onGlobEnd() {\n this._pending--;\n this._maybeFinalize();\n }\n\n function onGlobError(err) {\n this.emit('error', err);\n }\n\n function onGlobMatch(match){\n globber.pause();\n\n var ignoreMatch = false;\n var entryData = Object.assign({}, data);\n entryData.name = match.relative;\n entryData.prefix = destpath;\n entryData.stats = match.stat;\n entryData.callback = globber.resume.bind(globber);\n\n try {\n if (dataFunction) {\n entryData = dataFunction(entryData);\n\n if (entryData === false) {\n ignoreMatch = true;\n } else if (typeof entryData !== 'object') {\n throw new ArchiverError('DIRECTORYFUNCTIONINVALIDDATA', { dirpath: dirpath });\n }\n }\n } catch(e) {\n this.emit('error', e);\n return;\n }\n\n if (ignoreMatch) {\n globber.resume();\n return;\n }\n\n this._append(match.absolute, entryData);\n }\n\n var globber = glob(dirpath, globOptions);\n globber.on('error', onGlobError.bind(this));\n globber.on('match', onGlobMatch.bind(this));\n globber.on('end', onGlobEnd.bind(this));\n\n return this;\n};\n\n/**\n * Appends a file given its filepath using a\n * [lazystream]{@link https://github.com/jpommerening/node-lazystream} wrapper to\n * prevent issues with open file limits.\n *\n * When the instance has received, processed, and emitted the file, the `entry`\n * event is fired.\n *\n * @param {String} filepath The source filepath.\n * @param {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and\n * [TarEntryData]{@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.file = function(filepath, data) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n if (typeof filepath !== 'string' || filepath.length === 0) {\n this.emit('error', new ArchiverError('FILEFILEPATHREQUIRED'));\n return this;\n }\n\n this._append(filepath, data);\n\n return this;\n};\n\n/**\n * Appends multiple files that match a glob pattern.\n *\n * @param {String} pattern The [glob pattern]{@link https://github.com/isaacs/minimatch} to match.\n * @param {Object} options See [node-readdir-glob]{@link https://github.com/yqnn/node-readdir-glob#options}.\n * @param {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and\n * [TarEntryData]{@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.glob = function(pattern, options, data) {\n this._pending++;\n\n options = util.defaults(options, {\n stat: true,\n pattern: pattern\n });\n\n function onGlobEnd() {\n this._pending--;\n this._maybeFinalize();\n }\n\n function onGlobError(err) {\n this.emit('error', err);\n }\n\n function onGlobMatch(match){\n globber.pause();\n var entryData = Object.assign({}, data);\n entryData.callback = globber.resume.bind(globber);\n entryData.stats = match.stat;\n entryData.name = match.relative;\n\n this._append(match.absolute, entryData);\n }\n\n var globber = glob(options.cwd || '.', options);\n globber.on('error', onGlobError.bind(this));\n globber.on('match', onGlobMatch.bind(this));\n globber.on('end', onGlobEnd.bind(this));\n\n return this;\n};\n\n/**\n * Finalizes the instance and prevents further appending to the archive\n * structure (queue will continue til drained).\n *\n * The `end`, `close` or `finish` events on the destination stream may fire\n * right after calling this method so you should set listeners beforehand to\n * properly detect stream completion.\n *\n * @return {Promise}\n */\nArchiver.prototype.finalize = function() {\n if (this._state.aborted) {\n var abortedError = new ArchiverError('ABORTED');\n this.emit('error', abortedError);\n return Promise.reject(abortedError);\n }\n\n if (this._state.finalize) {\n var finalizingError = new ArchiverError('FINALIZING');\n this.emit('error', finalizingError);\n return Promise.reject(finalizingError);\n }\n\n this._state.finalize = true;\n\n if (this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {\n this._finalize();\n }\n\n var self = this;\n\n return new Promise(function(resolve, reject) {\n var errored;\n\n self._module.on('end', function() {\n if (!errored) {\n resolve();\n }\n })\n\n self._module.on('error', function(err) {\n errored = true;\n reject(err);\n })\n })\n};\n\n/**\n * Sets the module format name used for archiving.\n *\n * @param {String} format The name of the format.\n * @return {this}\n */\nArchiver.prototype.setFormat = function(format) {\n if (this._format) {\n this.emit('error', new ArchiverError('FORMATSET'));\n return this;\n }\n\n this._format = format;\n\n return this;\n};\n\n/**\n * Sets the module used for archiving.\n *\n * @param {Function} module The function for archiver to interact with.\n * @return {this}\n */\nArchiver.prototype.setModule = function(module) {\n if (this._state.aborted) {\n this.emit('error', new ArchiverError('ABORTED'));\n return this;\n }\n\n if (this._state.module) {\n this.emit('error', new ArchiverError('MODULESET'));\n return this;\n }\n\n this._module = module;\n this._modulePipe();\n\n return this;\n};\n\n/**\n * Appends a symlink to the instance.\n *\n * This does NOT interact with filesystem and is used for programmatically creating symlinks.\n *\n * @param {String} filepath The symlink path (within archive).\n * @param {String} target The target path (within archive).\n * @param {Number} mode Sets the entry permissions.\n * @return {this}\n */\nArchiver.prototype.symlink = function(filepath, target, mode) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n if (typeof filepath !== 'string' || filepath.length === 0) {\n this.emit('error', new ArchiverError('SYMLINKFILEPATHREQUIRED'));\n return this;\n }\n\n if (typeof target !== 'string' || target.length === 0) {\n this.emit('error', new ArchiverError('SYMLINKTARGETREQUIRED', { filepath: filepath }));\n return this;\n }\n\n if (!this._moduleSupports('symlink')) {\n this.emit('error', new ArchiverError('SYMLINKNOTSUPPORTED', { filepath: filepath }));\n return this;\n }\n\n var data = {};\n data.type = 'symlink';\n data.name = filepath.replace(/\\\\/g, '/');\n data.linkname = target.replace(/\\\\/g, '/');\n data.sourceType = 'buffer';\n\n if (typeof mode === \"number\") {\n data.mode = mode;\n }\n\n this._entriesCount++;\n this._queue.push({\n data: data,\n source: Buffer.concat([])\n });\n\n return this;\n};\n\n/**\n * Returns the current length (in bytes) that has been emitted.\n *\n * @return {Number}\n */\nArchiver.prototype.pointer = function() {\n return this._pointer;\n};\n\n/**\n * Middleware-like helper that has yet to be fully implemented.\n *\n * @private\n * @param {Function} plugin\n * @return {this}\n */\nArchiver.prototype.use = function(plugin) {\n this._streams.push(plugin);\n return this;\n};\n\nmodule.exports = Archiver;\n\n/**\n * @typedef {Object} CoreOptions\n * @global\n * @property {Number} [statConcurrency=4] Sets the number of workers used to\n * process the internal fs stat queue.\n */\n\n/**\n * @typedef {Object} TransformOptions\n * @property {Boolean} [allowHalfOpen=true] If set to false, then the stream\n * will automatically end the readable side when the writable side ends and vice\n * versa.\n * @property {Boolean} [readableObjectMode=false] Sets objectMode for readable\n * side of the stream. Has no effect if objectMode is true.\n * @property {Boolean} [writableObjectMode=false] Sets objectMode for writable\n * side of the stream. Has no effect if objectMode is true.\n * @property {Boolean} [decodeStrings=true] Whether or not to decode strings\n * into Buffers before passing them to _write(). `Writable`\n * @property {String} [encoding=NULL] If specified, then buffers will be decoded\n * to strings using the specified encoding. `Readable`\n * @property {Number} [highWaterMark=16kb] The maximum number of bytes to store\n * in the internal buffer before ceasing to read from the underlying resource.\n * `Readable` `Writable`\n * @property {Boolean} [objectMode=false] Whether this stream should behave as a\n * stream of objects. Meaning that stream.read(n) returns a single value instead\n * of a Buffer of size n. `Readable` `Writable`\n */\n\n/**\n * @typedef {Object} EntryData\n * @property {String} name Sets the entry name including internal path.\n * @property {(String|Date)} [date=NOW()] Sets the entry date.\n * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions.\n * @property {String} [prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n */\n\n/**\n * @typedef {Object} ErrorData\n * @property {String} message The message of the error.\n * @property {String} code The error code assigned to this error.\n * @property {String} data Additional data provided for reporting or debugging (where available).\n */\n\n/**\n * @typedef {Object} ProgressData\n * @property {Object} entries\n * @property {Number} entries.total Number of entries that have been appended.\n * @property {Number} entries.processed Number of entries that have been processed.\n * @property {Object} fs\n * @property {Number} fs.totalBytes Number of bytes that have been appended. Calculated asynchronously and might not be accurate: it growth while entries are added. (based on fs.Stats)\n * @property {Number} fs.processedBytes Number of bytes that have been processed. (based on fs.Stats)\n */\n","/**\n * Archiver Core\n *\n * @ignore\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\n\nvar util = require('util');\n\nconst ERROR_CODES = {\n 'ABORTED': 'archive was aborted',\n 'DIRECTORYDIRPATHREQUIRED': 'diretory dirpath argument must be a non-empty string value',\n 'DIRECTORYFUNCTIONINVALIDDATA': 'invalid data returned by directory custom data function',\n 'ENTRYNAMEREQUIRED': 'entry name must be a non-empty string value',\n 'FILEFILEPATHREQUIRED': 'file filepath argument must be a non-empty string value',\n 'FINALIZING': 'archive already finalizing',\n 'QUEUECLOSED': 'queue closed',\n 'NOENDMETHOD': 'no suitable finalize/end method defined by module',\n 'DIRECTORYNOTSUPPORTED': 'support for directory entries not defined by module',\n 'FORMATSET': 'archive format already set',\n 'INPUTSTEAMBUFFERREQUIRED': 'input source must be valid Stream or Buffer instance',\n 'MODULESET': 'module already set',\n 'SYMLINKNOTSUPPORTED': 'support for symlink entries not defined by module',\n 'SYMLINKFILEPATHREQUIRED': 'symlink filepath argument must be a non-empty string value',\n 'SYMLINKTARGETREQUIRED': 'symlink target argument must be a non-empty string value',\n 'ENTRYNOTSUPPORTED': 'entry not supported'\n};\n\nfunction ArchiverError(code, data) {\n Error.captureStackTrace(this, this.constructor);\n //this.name = this.constructor.name;\n this.message = ERROR_CODES[code] || code;\n this.code = code;\n this.data = data;\n}\n\nutil.inherits(ArchiverError, Error);\n\nexports = module.exports = ArchiverError;","/**\n * JSON Format Plugin\n *\n * @module plugins/json\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar inherits = require('util').inherits;\nvar Transform = require('readable-stream').Transform;\n\nvar crc32 = require('buffer-crc32');\nvar util = require('archiver-utils');\n\n/**\n * @constructor\n * @param {(JsonOptions|TransformOptions)} options\n */\nvar Json = function(options) {\n if (!(this instanceof Json)) {\n return new Json(options);\n }\n\n options = this.options = util.defaults(options, {});\n\n Transform.call(this, options);\n\n this.supports = {\n directory: true,\n symlink: true\n };\n\n this.files = [];\n};\n\ninherits(Json, Transform);\n\n/**\n * [_transform description]\n *\n * @private\n * @param {Buffer} chunk\n * @param {String} encoding\n * @param {Function} callback\n * @return void\n */\nJson.prototype._transform = function(chunk, encoding, callback) {\n callback(null, chunk);\n};\n\n/**\n * [_writeStringified description]\n *\n * @private\n * @return void\n */\nJson.prototype._writeStringified = function() {\n var fileString = JSON.stringify(this.files);\n this.write(fileString);\n};\n\n/**\n * [append description]\n *\n * @param {(Buffer|Stream)} source\n * @param {EntryData} data\n * @param {Function} callback\n * @return void\n */\nJson.prototype.append = function(source, data, callback) {\n var self = this;\n\n data.crc32 = 0;\n\n function onend(err, sourceBuffer) {\n if (err) {\n callback(err);\n return;\n }\n\n data.size = sourceBuffer.length || 0;\n data.crc32 = crc32.unsigned(sourceBuffer);\n\n self.files.push(data);\n\n callback(null, data);\n }\n\n if (data.sourceType === 'buffer') {\n onend(null, source);\n } else if (data.sourceType === 'stream') {\n util.collectStream(source, onend);\n }\n};\n\n/**\n * [finalize description]\n *\n * @return void\n */\nJson.prototype.finalize = function() {\n this._writeStringified();\n this.end();\n};\n\nmodule.exports = Json;\n\n/**\n * @typedef {Object} JsonOptions\n * @global\n */\n","/**\n * TAR Format Plugin\n *\n * @module plugins/tar\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar zlib = require('zlib');\n\nvar engine = require('tar-stream');\nvar util = require('archiver-utils');\n\n/**\n * @constructor\n * @param {TarOptions} options\n */\nvar Tar = function(options) {\n if (!(this instanceof Tar)) {\n return new Tar(options);\n }\n\n options = this.options = util.defaults(options, {\n gzip: false\n });\n\n if (typeof options.gzipOptions !== 'object') {\n options.gzipOptions = {};\n }\n\n this.supports = {\n directory: true,\n symlink: true\n };\n\n this.engine = engine.pack(options);\n this.compressor = false;\n\n if (options.gzip) {\n this.compressor = zlib.createGzip(options.gzipOptions);\n this.compressor.on('error', this._onCompressorError.bind(this));\n }\n};\n\n/**\n * [_onCompressorError description]\n *\n * @private\n * @param {Error} err\n * @return void\n */\nTar.prototype._onCompressorError = function(err) {\n this.engine.emit('error', err);\n};\n\n/**\n * [append description]\n *\n * @param {(Buffer|Stream)} source\n * @param {TarEntryData} data\n * @param {Function} callback\n * @return void\n */\nTar.prototype.append = function(source, data, callback) {\n var self = this;\n\n data.mtime = data.date;\n\n function append(err, sourceBuffer) {\n if (err) {\n callback(err);\n return;\n }\n\n self.engine.entry(data, sourceBuffer, function(err) {\n callback(err, data);\n });\n }\n\n if (data.sourceType === 'buffer') {\n append(null, source);\n } else if (data.sourceType === 'stream' && data.stats) {\n data.size = data.stats.size;\n\n var entry = self.engine.entry(data, function(err) {\n callback(err, data);\n });\n\n source.pipe(entry);\n } else if (data.sourceType === 'stream') {\n util.collectStream(source, append);\n }\n};\n\n/**\n * [finalize description]\n *\n * @return void\n */\nTar.prototype.finalize = function() {\n this.engine.finalize();\n};\n\n/**\n * [on description]\n *\n * @return this.engine\n */\nTar.prototype.on = function() {\n return this.engine.on.apply(this.engine, arguments);\n};\n\n/**\n * [pipe description]\n *\n * @param {String} destination\n * @param {Object} options\n * @return this.engine\n */\nTar.prototype.pipe = function(destination, options) {\n if (this.compressor) {\n return this.engine.pipe.apply(this.engine, [this.compressor]).pipe(destination, options);\n } else {\n return this.engine.pipe.apply(this.engine, arguments);\n }\n};\n\n/**\n * [unpipe description]\n *\n * @return this.engine\n */\nTar.prototype.unpipe = function() {\n if (this.compressor) {\n return this.compressor.unpipe.apply(this.compressor, arguments);\n } else {\n return this.engine.unpipe.apply(this.engine, arguments);\n }\n};\n\nmodule.exports = Tar;\n\n/**\n * @typedef {Object} TarOptions\n * @global\n * @property {Boolean} [gzip=false] Compress the tar archive using gzip.\n * @property {Object} [gzipOptions] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}\n * to control compression.\n * @property {*} [*] See [tar-stream]{@link https://github.com/mafintosh/tar-stream} documentation for additional properties.\n */\n\n/**\n * @typedef {Object} TarEntryData\n * @global\n * @property {String} name Sets the entry name including internal path.\n * @property {(String|Date)} [date=NOW()] Sets the entry date.\n * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions.\n * @property {String} [prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n */\n\n/**\n * TarStream Module\n * @external TarStream\n * @see {@link https://github.com/mafintosh/tar-stream}\n */\n","/**\n * ZIP Format Plugin\n *\n * @module plugins/zip\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar engine = require('zip-stream');\nvar util = require('archiver-utils');\n\n/**\n * @constructor\n * @param {ZipOptions} [options]\n * @param {String} [options.comment] Sets the zip archive comment.\n * @param {Boolean} [options.forceLocalTime=false] Forces the archive to contain local file times instead of UTC.\n * @param {Boolean} [options.forceZip64=false] Forces the archive to contain ZIP64 headers.\n * @param {Boolean} [options.namePrependSlash=false] Prepends a forward slash to archive file paths.\n * @param {Boolean} [options.store=false] Sets the compression method to STORE.\n * @param {Object} [options.zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}\n */\nvar Zip = function(options) {\n if (!(this instanceof Zip)) {\n return new Zip(options);\n }\n\n options = this.options = util.defaults(options, {\n comment: '',\n forceUTC: false,\n namePrependSlash: false,\n store: false\n });\n\n this.supports = {\n directory: true,\n symlink: true\n };\n\n this.engine = new engine(options);\n};\n\n/**\n * @param {(Buffer|Stream)} source\n * @param {ZipEntryData} data\n * @param {String} data.name Sets the entry name including internal path.\n * @param {(String|Date)} [data.date=NOW()] Sets the entry date.\n * @param {Number} [data.mode=D:0755/F:0644] Sets the entry permissions.\n * @param {String} [data.prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @param {fs.Stats} [data.stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n * @param {Boolean} [data.store=ZipOptions.store] Sets the compression method to STORE.\n * @param {Function} callback\n * @return void\n */\nZip.prototype.append = function(source, data, callback) {\n this.engine.entry(source, data, callback);\n};\n\n/**\n * @return void\n */\nZip.prototype.finalize = function() {\n this.engine.finalize();\n};\n\n/**\n * @return this.engine\n */\nZip.prototype.on = function() {\n return this.engine.on.apply(this.engine, arguments);\n};\n\n/**\n * @return this.engine\n */\nZip.prototype.pipe = function() {\n return this.engine.pipe.apply(this.engine, arguments);\n};\n\n/**\n * @return this.engine\n */\nZip.prototype.unpipe = function() {\n return this.engine.unpipe.apply(this.engine, arguments);\n};\n\nmodule.exports = Zip;\n\n/**\n * @typedef {Object} ZipOptions\n * @global\n * @property {String} [comment] Sets the zip archive comment.\n * @property {Boolean} [forceLocalTime=false] Forces the archive to contain local file times instead of UTC.\n * @property {Boolean} [forceZip64=false] Forces the archive to contain ZIP64 headers.\n * @prpperty {Boolean} [namePrependSlash=false] Prepends a forward slash to archive file paths.\n * @property {Boolean} [store=false] Sets the compression method to STORE.\n * @property {Object} [zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}\n * to control compression.\n * @property {*} [*] See [zip-stream]{@link https://archiverjs.com/zip-stream/ZipStream.html} documentation for current list of properties.\n */\n\n/**\n * @typedef {Object} ZipEntryData\n * @global\n * @property {String} name Sets the entry name including internal path.\n * @property {(String|Date)} [date=NOW()] Sets the entry date.\n * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions.\n * @property {Boolean} [namePrependSlash=ZipOptions.namePrependSlash] Prepends a forward slash to archive file paths.\n * @property {String} [prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n * @property {Boolean} [store=ZipOptions.store] Sets the compression method to STORE.\n */\n\n/**\n * ZipStream Module\n * @external ZipStream\n * @see {@link https://www.archiverjs.com/zip-stream/ZipStream.html}\n */\n","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.async = {}));\n})(this, (function (exports) { 'use strict';\n\n /**\n * Creates a continuation function with some arguments already applied.\n *\n * Useful as a shorthand when combined with other control flow functions. Any\n * arguments passed to the returned function are added to the arguments\n * originally passed to apply.\n *\n * @name apply\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {Function} fn - The function you want to eventually apply all\n * arguments to. Invokes with (arguments...).\n * @param {...*} arguments... - Any number of arguments to automatically apply\n * when the continuation is called.\n * @returns {Function} the partially-applied function\n * @example\n *\n * // using apply\n * async.parallel([\n * async.apply(fs.writeFile, 'testfile1', 'test1'),\n * async.apply(fs.writeFile, 'testfile2', 'test2')\n * ]);\n *\n *\n * // the same process without using apply\n * async.parallel([\n * function(callback) {\n * fs.writeFile('testfile1', 'test1', callback);\n * },\n * function(callback) {\n * fs.writeFile('testfile2', 'test2', callback);\n * }\n * ]);\n *\n * // It's possible to pass any number of additional arguments when calling the\n * // continuation:\n *\n * node> var fn = async.apply(sys.puts, 'one');\n * node> fn('two', 'three');\n * one\n * two\n * three\n */\n function apply(fn, ...args) {\n return (...callArgs) => fn(...args,...callArgs);\n }\n\n function initialParams (fn) {\n return function (...args/*, callback*/) {\n var callback = args.pop();\n return fn.call(this, args, callback);\n };\n }\n\n /* istanbul ignore file */\n\n var hasQueueMicrotask = typeof queueMicrotask === 'function' && queueMicrotask;\n var hasSetImmediate = typeof setImmediate === 'function' && setImmediate;\n var hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';\n\n function fallback(fn) {\n setTimeout(fn, 0);\n }\n\n function wrap(defer) {\n return (fn, ...args) => defer(() => fn(...args));\n }\n\n var _defer$1;\n\n if (hasQueueMicrotask) {\n _defer$1 = queueMicrotask;\n } else if (hasSetImmediate) {\n _defer$1 = setImmediate;\n } else if (hasNextTick) {\n _defer$1 = process.nextTick;\n } else {\n _defer$1 = fallback;\n }\n\n var setImmediate$1 = wrap(_defer$1);\n\n /**\n * Take a sync function and make it async, passing its return value to a\n * callback. This is useful for plugging sync functions into a waterfall,\n * series, or other async functions. Any arguments passed to the generated\n * function will be passed to the wrapped function (except for the final\n * callback argument). Errors thrown will be passed to the callback.\n *\n * If the function passed to `asyncify` returns a Promise, that promises's\n * resolved/rejected state will be used to call the callback, rather than simply\n * the synchronous return value.\n *\n * This also means you can asyncify ES2017 `async` functions.\n *\n * @name asyncify\n * @static\n * @memberOf module:Utils\n * @method\n * @alias wrapSync\n * @category Util\n * @param {Function} func - The synchronous function, or Promise-returning\n * function to convert to an {@link AsyncFunction}.\n * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be\n * invoked with `(args..., callback)`.\n * @example\n *\n * // passing a regular synchronous function\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(JSON.parse),\n * function (data, next) {\n * // data is the result of parsing the text.\n * // If there was a parsing error, it would have been caught.\n * }\n * ], callback);\n *\n * // passing a function returning a promise\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(function (contents) {\n * return db.model.create(contents);\n * }),\n * function (model, next) {\n * // `model` is the instantiated model object.\n * // If there was an error, this function would be skipped.\n * }\n * ], callback);\n *\n * // es2017 example, though `asyncify` is not needed if your JS environment\n * // supports async functions out of the box\n * var q = async.queue(async.asyncify(async function(file) {\n * var intermediateStep = await processFile(file);\n * return await somePromise(intermediateStep)\n * }));\n *\n * q.push(files);\n */\n function asyncify(func) {\n if (isAsync(func)) {\n return function (...args/*, callback*/) {\n const callback = args.pop();\n const promise = func.apply(this, args);\n return handlePromise(promise, callback)\n }\n }\n\n return initialParams(function (args, callback) {\n var result;\n try {\n result = func.apply(this, args);\n } catch (e) {\n return callback(e);\n }\n // if result is Promise object\n if (result && typeof result.then === 'function') {\n return handlePromise(result, callback)\n } else {\n callback(null, result);\n }\n });\n }\n\n function handlePromise(promise, callback) {\n return promise.then(value => {\n invokeCallback(callback, null, value);\n }, err => {\n invokeCallback(callback, err && (err instanceof Error || err.message) ? err : new Error(err));\n });\n }\n\n function invokeCallback(callback, error, value) {\n try {\n callback(error, value);\n } catch (err) {\n setImmediate$1(e => { throw e }, err);\n }\n }\n\n function isAsync(fn) {\n return fn[Symbol.toStringTag] === 'AsyncFunction';\n }\n\n function isAsyncGenerator(fn) {\n return fn[Symbol.toStringTag] === 'AsyncGenerator';\n }\n\n function isAsyncIterable(obj) {\n return typeof obj[Symbol.asyncIterator] === 'function';\n }\n\n function wrapAsync(asyncFn) {\n if (typeof asyncFn !== 'function') throw new Error('expected a function')\n return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;\n }\n\n // conditionally promisify a function.\n // only return a promise if a callback is omitted\n function awaitify (asyncFn, arity) {\n if (!arity) arity = asyncFn.length;\n if (!arity) throw new Error('arity is undefined')\n function awaitable (...args) {\n if (typeof args[arity - 1] === 'function') {\n return asyncFn.apply(this, args)\n }\n\n return new Promise((resolve, reject) => {\n args[arity - 1] = (err, ...cbArgs) => {\n if (err) return reject(err)\n resolve(cbArgs.length > 1 ? cbArgs : cbArgs[0]);\n };\n asyncFn.apply(this, args);\n })\n }\n\n return awaitable\n }\n\n function applyEach$1 (eachfn) {\n return function applyEach(fns, ...callArgs) {\n const go = awaitify(function (callback) {\n var that = this;\n return eachfn(fns, (fn, cb) => {\n wrapAsync(fn).apply(that, callArgs.concat(cb));\n }, callback);\n });\n return go;\n };\n }\n\n function _asyncMap(eachfn, arr, iteratee, callback) {\n arr = arr || [];\n var results = [];\n var counter = 0;\n var _iteratee = wrapAsync(iteratee);\n\n return eachfn(arr, (value, _, iterCb) => {\n var index = counter++;\n _iteratee(value, (err, v) => {\n results[index] = v;\n iterCb(err);\n });\n }, err => {\n callback(err, results);\n });\n }\n\n function isArrayLike(value) {\n return value &&\n typeof value.length === 'number' &&\n value.length >= 0 &&\n value.length % 1 === 0;\n }\n\n // A temporary value used to identify if the loop should be broken.\n // See #1064, #1293\n const breakLoop = {};\n var breakLoop$1 = breakLoop;\n\n function once(fn) {\n function wrapper (...args) {\n if (fn === null) return;\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n }\n Object.assign(wrapper, fn);\n return wrapper\n }\n\n function getIterator (coll) {\n return coll[Symbol.iterator] && coll[Symbol.iterator]();\n }\n\n function createArrayIterator(coll) {\n var i = -1;\n var len = coll.length;\n return function next() {\n return ++i < len ? {value: coll[i], key: i} : null;\n }\n }\n\n function createES2015Iterator(iterator) {\n var i = -1;\n return function next() {\n var item = iterator.next();\n if (item.done)\n return null;\n i++;\n return {value: item.value, key: i};\n }\n }\n\n function createObjectIterator(obj) {\n var okeys = obj ? Object.keys(obj) : [];\n var i = -1;\n var len = okeys.length;\n return function next() {\n var key = okeys[++i];\n if (key === '__proto__') {\n return next();\n }\n return i < len ? {value: obj[key], key} : null;\n };\n }\n\n function createIterator(coll) {\n if (isArrayLike(coll)) {\n return createArrayIterator(coll);\n }\n\n var iterator = getIterator(coll);\n return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);\n }\n\n function onlyOnce(fn) {\n return function (...args) {\n if (fn === null) throw new Error(\"Callback was already called.\");\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n };\n }\n\n // for async generators\n function asyncEachOfLimit(generator, limit, iteratee, callback) {\n let done = false;\n let canceled = false;\n let awaiting = false;\n let running = 0;\n let idx = 0;\n\n function replenish() {\n //console.log('replenish')\n if (running >= limit || awaiting || done) return\n //console.log('replenish awaiting')\n awaiting = true;\n generator.next().then(({value, done: iterDone}) => {\n //console.log('got value', value)\n if (canceled || done) return\n awaiting = false;\n if (iterDone) {\n done = true;\n if (running <= 0) {\n //console.log('done nextCb')\n callback(null);\n }\n return;\n }\n running++;\n iteratee(value, idx, iterateeCallback);\n idx++;\n replenish();\n }).catch(handleError);\n }\n\n function iterateeCallback(err, result) {\n //console.log('iterateeCallback')\n running -= 1;\n if (canceled) return\n if (err) return handleError(err)\n\n if (err === false) {\n done = true;\n canceled = true;\n return\n }\n\n if (result === breakLoop$1 || (done && running <= 0)) {\n done = true;\n //console.log('done iterCb')\n return callback(null);\n }\n replenish();\n }\n\n function handleError(err) {\n if (canceled) return\n awaiting = false;\n done = true;\n callback(err);\n }\n\n replenish();\n }\n\n var eachOfLimit$2 = (limit) => {\n return (obj, iteratee, callback) => {\n callback = once(callback);\n if (limit <= 0) {\n throw new RangeError('concurrency limit cannot be less than 1')\n }\n if (!obj) {\n return callback(null);\n }\n if (isAsyncGenerator(obj)) {\n return asyncEachOfLimit(obj, limit, iteratee, callback)\n }\n if (isAsyncIterable(obj)) {\n return asyncEachOfLimit(obj[Symbol.asyncIterator](), limit, iteratee, callback)\n }\n var nextElem = createIterator(obj);\n var done = false;\n var canceled = false;\n var running = 0;\n var looping = false;\n\n function iterateeCallback(err, value) {\n if (canceled) return\n running -= 1;\n if (err) {\n done = true;\n callback(err);\n }\n else if (err === false) {\n done = true;\n canceled = true;\n }\n else if (value === breakLoop$1 || (done && running <= 0)) {\n done = true;\n return callback(null);\n }\n else if (!looping) {\n replenish();\n }\n }\n\n function replenish () {\n looping = true;\n while (running < limit && !done) {\n var elem = nextElem();\n if (elem === null) {\n done = true;\n if (running <= 0) {\n callback(null);\n }\n return;\n }\n running += 1;\n iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));\n }\n looping = false;\n }\n\n replenish();\n };\n };\n\n /**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name eachOfLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`. The `key` is the item's key, or index in the case of an\n * array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachOfLimit(coll, limit, iteratee, callback) {\n return eachOfLimit$2(limit)(coll, wrapAsync(iteratee), callback);\n }\n\n var eachOfLimit$1 = awaitify(eachOfLimit, 4);\n\n // eachOf implementation optimized for array-likes\n function eachOfArrayLike(coll, iteratee, callback) {\n callback = once(callback);\n var index = 0,\n completed = 0,\n {length} = coll,\n canceled = false;\n if (length === 0) {\n callback(null);\n }\n\n function iteratorCallback(err, value) {\n if (err === false) {\n canceled = true;\n }\n if (canceled === true) return\n if (err) {\n callback(err);\n } else if ((++completed === length) || value === breakLoop$1) {\n callback(null);\n }\n }\n\n for (; index < length; index++) {\n iteratee(coll[index], index, onlyOnce(iteratorCallback));\n }\n }\n\n // a generic version of eachOf which can handle array, object, and iterator cases.\n function eachOfGeneric (coll, iteratee, callback) {\n return eachOfLimit$1(coll, Infinity, iteratee, callback);\n }\n\n /**\n * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument\n * to the iteratee.\n *\n * @name eachOf\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEachOf\n * @category Collection\n * @see [async.each]{@link module:Collections.each}\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each\n * item in `coll`.\n * The `key` is the item's key, or index in the case of an array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dev.json is a file containing a valid json object config for dev environment\n * // dev.json is a file containing a valid json object config for test environment\n * // prod.json is a file containing a valid json object config for prod environment\n * // invalid.json is a file with a malformed json object\n *\n * let configs = {}; //global variable\n * let validConfigFileMap = {dev: 'dev.json', test: 'test.json', prod: 'prod.json'};\n * let invalidConfigFileMap = {dev: 'dev.json', test: 'test.json', invalid: 'invalid.json'};\n *\n * // asynchronous function that reads a json file and parses the contents as json object\n * function parseFile(file, key, callback) {\n * fs.readFile(file, \"utf8\", function(err, data) {\n * if (err) return calback(err);\n * try {\n * configs[key] = JSON.parse(data);\n * } catch (e) {\n * return callback(e);\n * }\n * callback();\n * });\n * }\n *\n * // Using callbacks\n * async.forEachOf(validConfigFileMap, parseFile, function (err) {\n * if (err) {\n * console.error(err);\n * } else {\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }\n * });\n *\n * //Error handing\n * async.forEachOf(invalidConfigFileMap, parseFile, function (err) {\n * if (err) {\n * console.error(err);\n * // JSON parse error exception\n * } else {\n * console.log(configs);\n * }\n * });\n *\n * // Using Promises\n * async.forEachOf(validConfigFileMap, parseFile)\n * .then( () => {\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }).catch( err => {\n * console.error(err);\n * });\n *\n * //Error handing\n * async.forEachOf(invalidConfigFileMap, parseFile)\n * .then( () => {\n * console.log(configs);\n * }).catch( err => {\n * console.error(err);\n * // JSON parse error exception\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.forEachOf(validConfigFileMap, parseFile);\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * //Error handing\n * async () => {\n * try {\n * let result = await async.forEachOf(invalidConfigFileMap, parseFile);\n * console.log(configs);\n * }\n * catch (err) {\n * console.log(err);\n * // JSON parse error exception\n * }\n * }\n *\n */\n function eachOf(coll, iteratee, callback) {\n var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric;\n return eachOfImplementation(coll, wrapAsync(iteratee), callback);\n }\n\n var eachOf$1 = awaitify(eachOf, 3);\n\n /**\n * Produces a new collection of values by mapping each value in `coll` through\n * the `iteratee` function. The `iteratee` is called with an item from `coll`\n * and a callback for when it has finished processing. Each of these callbacks\n * takes 2 arguments: an `error`, and the transformed item from `coll`. If\n * `iteratee` passes an error to its callback, the main `callback` (for the\n * `map` function) is immediately called with the error.\n *\n * Note, that since this function applies the `iteratee` to each item in\n * parallel, there is no guarantee that the `iteratee` functions will complete\n * in order. However, the results array will be in the same order as the\n * original `coll`.\n *\n * If `map` is passed an Object, the results will be an Array. The results\n * will roughly be in the order of the original Objects' keys (but this can\n * vary across JavaScript engines).\n *\n * @name map\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an Array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n * // file4.txt does not exist\n *\n * const fileList = ['file1.txt','file2.txt','file3.txt'];\n * const withMissingFileList = ['file1.txt','file2.txt','file4.txt'];\n *\n * // asynchronous function that returns the file size in bytes\n * function getFileSizeInBytes(file, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * callback(null, stat.size);\n * });\n * }\n *\n * // Using callbacks\n * async.map(fileList, getFileSizeInBytes, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now an array of the file size in bytes for each file, e.g.\n * // [ 1000, 2000, 3000]\n * }\n * });\n *\n * // Error Handling\n * async.map(withMissingFileList, getFileSizeInBytes, function(err, results) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * } else {\n * console.log(results);\n * }\n * });\n *\n * // Using Promises\n * async.map(fileList, getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * // results is now an array of the file size in bytes for each file, e.g.\n * // [ 1000, 2000, 3000]\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.map(withMissingFileList, getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.map(fileList, getFileSizeInBytes);\n * console.log(results);\n * // results is now an array of the file size in bytes for each file, e.g.\n * // [ 1000, 2000, 3000]\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let results = await async.map(withMissingFileList, getFileSizeInBytes);\n * console.log(results);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function map (coll, iteratee, callback) {\n return _asyncMap(eachOf$1, coll, iteratee, callback)\n }\n var map$1 = awaitify(map, 3);\n\n /**\n * Applies the provided arguments to each function in the array, calling\n * `callback` after all functions have completed. If you only provide the first\n * argument, `fns`, then it will return a function which lets you pass in the\n * arguments as if it were a single function call. If more arguments are\n * provided, `callback` is required while `args` is still optional. The results\n * for each of the applied async functions are passed to the final callback\n * as an array.\n *\n * @name applyEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} fns - A collection of {@link AsyncFunction}s\n * to all call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {AsyncFunction} - Returns a function that takes no args other than\n * an optional callback, that is the result of applying the `args` to each\n * of the functions.\n * @example\n *\n * const appliedFn = async.applyEach([enableSearch, updateSchema], 'bucket')\n *\n * appliedFn((err, results) => {\n * // results[0] is the results for `enableSearch`\n * // results[1] is the results for `updateSchema`\n * });\n *\n * // partial application example:\n * async.each(\n * buckets,\n * async (bucket) => async.applyEach([enableSearch, updateSchema], bucket)(),\n * callback\n * );\n */\n var applyEach = applyEach$1(map$1);\n\n /**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.\n *\n * @name eachOfSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachOfSeries(coll, iteratee, callback) {\n return eachOfLimit$1(coll, 1, iteratee, callback)\n }\n var eachOfSeries$1 = awaitify(eachOfSeries, 3);\n\n /**\n * The same as [`map`]{@link module:Collections.map} but runs only a single async operation at a time.\n *\n * @name mapSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapSeries (coll, iteratee, callback) {\n return _asyncMap(eachOfSeries$1, coll, iteratee, callback)\n }\n var mapSeries$1 = awaitify(mapSeries, 3);\n\n /**\n * The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.\n *\n * @name applyEachSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.applyEach]{@link module:ControlFlow.applyEach}\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} fns - A collection of {@link AsyncFunction}s to all\n * call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {AsyncFunction} - A function, that when called, is the result of\n * appling the `args` to the list of functions. It takes no args, other than\n * a callback.\n */\n var applyEachSeries = applyEach$1(mapSeries$1);\n\n const PROMISE_SYMBOL = Symbol('promiseCallback');\n\n function promiseCallback () {\n let resolve, reject;\n function callback (err, ...args) {\n if (err) return reject(err)\n resolve(args.length > 1 ? args : args[0]);\n }\n\n callback[PROMISE_SYMBOL] = new Promise((res, rej) => {\n resolve = res,\n reject = rej;\n });\n\n return callback\n }\n\n /**\n * Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on\n * their requirements. Each function can optionally depend on other functions\n * being completed first, and each function is run as soon as its requirements\n * are satisfied.\n *\n * If any of the {@link AsyncFunction}s pass an error to their callback, the `auto` sequence\n * will stop. Further tasks will not execute (so any other functions depending\n * on it will not run), and the main `callback` is immediately called with the\n * error.\n *\n * {@link AsyncFunction}s also receive an object containing the results of functions which\n * have completed so far as the first argument, if they have dependencies. If a\n * task function has no dependencies, it will only be passed a callback.\n *\n * @name auto\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Object} tasks - An object. Each of its properties is either a\n * function or an array of requirements, with the {@link AsyncFunction} itself the last item\n * in the array. The object's key of a property serves as the name of the task\n * defined by that property, i.e. can be used when specifying requirements for\n * other tasks. The function receives one or two arguments:\n * * a `results` object, containing the results of the previously executed\n * functions, only passed if the task has any dependencies,\n * * a `callback(err, result)` function, which must be called when finished,\n * passing an `error` (which can be `null`) and the result of the function's\n * execution.\n * @param {number} [concurrency=Infinity] - An optional `integer` for\n * determining the maximum number of tasks that can be run in parallel. By\n * default, as many as possible.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback. Results are always returned; however, if an\n * error occurs, no further `tasks` will be performed, and the results object\n * will only contain partial results. Invoked with (err, results).\n * @returns {Promise} a promise, if a callback is not passed\n * @example\n *\n * //Using Callbacks\n * async.auto({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * // once the file is written let's email a link to it...\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * }, function(err, results) {\n * if (err) {\n * console.log('err = ', err);\n * }\n * console.log('results = ', results);\n * // results = {\n * // get_data: ['data', 'converted to array']\n * // make_folder; 'folder',\n * // write_file: 'filename'\n * // email_link: { file: 'filename', email: 'user@example.com' }\n * // }\n * });\n *\n * //Using Promises\n * async.auto({\n * get_data: function(callback) {\n * console.log('in get_data');\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * console.log('in make_folder');\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * // once the file is written let's email a link to it...\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * }).then(results => {\n * console.log('results = ', results);\n * // results = {\n * // get_data: ['data', 'converted to array']\n * // make_folder; 'folder',\n * // write_file: 'filename'\n * // email_link: { file: 'filename', email: 'user@example.com' }\n * // }\n * }).catch(err => {\n * console.log('err = ', err);\n * });\n *\n * //Using async/await\n * async () => {\n * try {\n * let results = await async.auto({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * // once the file is written let's email a link to it...\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * });\n * console.log('results = ', results);\n * // results = {\n * // get_data: ['data', 'converted to array']\n * // make_folder; 'folder',\n * // write_file: 'filename'\n * // email_link: { file: 'filename', email: 'user@example.com' }\n * // }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function auto(tasks, concurrency, callback) {\n if (typeof concurrency !== 'number') {\n // concurrency is optional, shift the args.\n callback = concurrency;\n concurrency = null;\n }\n callback = once(callback || promiseCallback());\n var numTasks = Object.keys(tasks).length;\n if (!numTasks) {\n return callback(null);\n }\n if (!concurrency) {\n concurrency = numTasks;\n }\n\n var results = {};\n var runningTasks = 0;\n var canceled = false;\n var hasError = false;\n\n var listeners = Object.create(null);\n\n var readyTasks = [];\n\n // for cycle detection:\n var readyToCheck = []; // tasks that have been identified as reachable\n // without the possibility of returning to an ancestor task\n var uncheckedDependencies = {};\n\n Object.keys(tasks).forEach(key => {\n var task = tasks[key];\n if (!Array.isArray(task)) {\n // no dependencies\n enqueueTask(key, [task]);\n readyToCheck.push(key);\n return;\n }\n\n var dependencies = task.slice(0, task.length - 1);\n var remainingDependencies = dependencies.length;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n readyToCheck.push(key);\n return;\n }\n uncheckedDependencies[key] = remainingDependencies;\n\n dependencies.forEach(dependencyName => {\n if (!tasks[dependencyName]) {\n throw new Error('async.auto task `' + key +\n '` has a non-existent dependency `' +\n dependencyName + '` in ' +\n dependencies.join(', '));\n }\n addListener(dependencyName, () => {\n remainingDependencies--;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n }\n });\n });\n });\n\n checkForDeadlocks();\n processQueue();\n\n function enqueueTask(key, task) {\n readyTasks.push(() => runTask(key, task));\n }\n\n function processQueue() {\n if (canceled) return\n if (readyTasks.length === 0 && runningTasks === 0) {\n return callback(null, results);\n }\n while(readyTasks.length && runningTasks < concurrency) {\n var run = readyTasks.shift();\n run();\n }\n\n }\n\n function addListener(taskName, fn) {\n var taskListeners = listeners[taskName];\n if (!taskListeners) {\n taskListeners = listeners[taskName] = [];\n }\n\n taskListeners.push(fn);\n }\n\n function taskComplete(taskName) {\n var taskListeners = listeners[taskName] || [];\n taskListeners.forEach(fn => fn());\n processQueue();\n }\n\n\n function runTask(key, task) {\n if (hasError) return;\n\n var taskCallback = onlyOnce((err, ...result) => {\n runningTasks--;\n if (err === false) {\n canceled = true;\n return\n }\n if (result.length < 2) {\n [result] = result;\n }\n if (err) {\n var safeResults = {};\n Object.keys(results).forEach(rkey => {\n safeResults[rkey] = results[rkey];\n });\n safeResults[key] = result;\n hasError = true;\n listeners = Object.create(null);\n if (canceled) return\n callback(err, safeResults);\n } else {\n results[key] = result;\n taskComplete(key);\n }\n });\n\n runningTasks++;\n var taskFn = wrapAsync(task[task.length - 1]);\n if (task.length > 1) {\n taskFn(results, taskCallback);\n } else {\n taskFn(taskCallback);\n }\n }\n\n function checkForDeadlocks() {\n // Kahn's algorithm\n // https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm\n // http://connalle.blogspot.com/2013/10/topological-sortingkahn-algorithm.html\n var currentTask;\n var counter = 0;\n while (readyToCheck.length) {\n currentTask = readyToCheck.pop();\n counter++;\n getDependents(currentTask).forEach(dependent => {\n if (--uncheckedDependencies[dependent] === 0) {\n readyToCheck.push(dependent);\n }\n });\n }\n\n if (counter !== numTasks) {\n throw new Error(\n 'async.auto cannot execute tasks due to a recursive dependency'\n );\n }\n }\n\n function getDependents(taskName) {\n var result = [];\n Object.keys(tasks).forEach(key => {\n const task = tasks[key];\n if (Array.isArray(task) && task.indexOf(taskName) >= 0) {\n result.push(key);\n }\n });\n return result;\n }\n\n return callback[PROMISE_SYMBOL]\n }\n\n var FN_ARGS = /^(?:async\\s+)?(?:function)?\\s*\\w*\\s*\\(\\s*([^)]+)\\s*\\)(?:\\s*{)/;\n var ARROW_FN_ARGS = /^(?:async\\s+)?\\(?\\s*([^)=]+)\\s*\\)?(?:\\s*=>)/;\n var FN_ARG_SPLIT = /,/;\n var FN_ARG = /(=.+)?(\\s*)$/;\n\n function stripComments(string) {\n let stripped = '';\n let index = 0;\n let endBlockComment = string.indexOf('*/');\n while (index < string.length) {\n if (string[index] === '/' && string[index+1] === '/') {\n // inline comment\n let endIndex = string.indexOf('\\n', index);\n index = (endIndex === -1) ? string.length : endIndex;\n } else if ((endBlockComment !== -1) && (string[index] === '/') && (string[index+1] === '*')) {\n // block comment\n let endIndex = string.indexOf('*/', index);\n if (endIndex !== -1) {\n index = endIndex + 2;\n endBlockComment = string.indexOf('*/', index);\n } else {\n stripped += string[index];\n index++;\n }\n } else {\n stripped += string[index];\n index++;\n }\n }\n return stripped;\n }\n\n function parseParams(func) {\n const src = stripComments(func.toString());\n let match = src.match(FN_ARGS);\n if (!match) {\n match = src.match(ARROW_FN_ARGS);\n }\n if (!match) throw new Error('could not parse args in autoInject\\nSource:\\n' + src)\n let [, args] = match;\n return args\n .replace(/\\s/g, '')\n .split(FN_ARG_SPLIT)\n .map((arg) => arg.replace(FN_ARG, '').trim());\n }\n\n /**\n * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent\n * tasks are specified as parameters to the function, after the usual callback\n * parameter, with the parameter names matching the names of the tasks it\n * depends on. This can provide even more readable task graphs which can be\n * easier to maintain.\n *\n * If a final callback is specified, the task results are similarly injected,\n * specified as named parameters after the initial error parameter.\n *\n * The autoInject function is purely syntactic sugar and its semantics are\n * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}.\n *\n * @name autoInject\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.auto]{@link module:ControlFlow.auto}\n * @category Control Flow\n * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of\n * the form 'func([dependencies...], callback). The object's key of a property\n * serves as the name of the task defined by that property, i.e. can be used\n * when specifying requirements for other tasks.\n * * The `callback` parameter is a `callback(err, result)` which must be called\n * when finished, passing an `error` (which can be `null`) and the result of\n * the function's execution. The remaining parameters name other tasks on\n * which the task is dependent, and the results from those tasks are the\n * arguments of those parameters.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback, and a `results` object with any completed\n * task results, similar to `auto`.\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // The example from `auto` can be rewritten as follows:\n * async.autoInject({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: function(get_data, make_folder, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * },\n * email_link: function(write_file, callback) {\n * // once the file is written let's email a link to it...\n * // write_file contains the filename returned by write_file.\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n *\n * // If you are using a JS minifier that mangles parameter names, `autoInject`\n * // will not work with plain functions, since the parameter names will be\n * // collapsed to a single letter identifier. To work around this, you can\n * // explicitly specify the names of the parameters your task function needs\n * // in an array, similar to Angular.js dependency injection.\n *\n * // This still has an advantage over plain `auto`, since the results a task\n * // depends on are still spread into arguments.\n * async.autoInject({\n * //...\n * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) {\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(write_file, callback) {\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }]\n * //...\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n */\n function autoInject(tasks, callback) {\n var newTasks = {};\n\n Object.keys(tasks).forEach(key => {\n var taskFn = tasks[key];\n var params;\n var fnIsAsync = isAsync(taskFn);\n var hasNoDeps =\n (!fnIsAsync && taskFn.length === 1) ||\n (fnIsAsync && taskFn.length === 0);\n\n if (Array.isArray(taskFn)) {\n params = [...taskFn];\n taskFn = params.pop();\n\n newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);\n } else if (hasNoDeps) {\n // no dependencies, use the function as-is\n newTasks[key] = taskFn;\n } else {\n params = parseParams(taskFn);\n if ((taskFn.length === 0 && !fnIsAsync) && params.length === 0) {\n throw new Error(\"autoInject task functions require explicit parameters.\");\n }\n\n // remove callback param\n if (!fnIsAsync) params.pop();\n\n newTasks[key] = params.concat(newTask);\n }\n\n function newTask(results, taskCb) {\n var newArgs = params.map(name => results[name]);\n newArgs.push(taskCb);\n wrapAsync(taskFn)(...newArgs);\n }\n });\n\n return auto(newTasks, callback);\n }\n\n // Simple doubly linked list (https://en.wikipedia.org/wiki/Doubly_linked_list) implementation\n // used for queues. This implementation assumes that the node provided by the user can be modified\n // to adjust the next and last properties. We implement only the minimal functionality\n // for queue support.\n class DLL {\n constructor() {\n this.head = this.tail = null;\n this.length = 0;\n }\n\n removeLink(node) {\n if (node.prev) node.prev.next = node.next;\n else this.head = node.next;\n if (node.next) node.next.prev = node.prev;\n else this.tail = node.prev;\n\n node.prev = node.next = null;\n this.length -= 1;\n return node;\n }\n\n empty () {\n while(this.head) this.shift();\n return this;\n }\n\n insertAfter(node, newNode) {\n newNode.prev = node;\n newNode.next = node.next;\n if (node.next) node.next.prev = newNode;\n else this.tail = newNode;\n node.next = newNode;\n this.length += 1;\n }\n\n insertBefore(node, newNode) {\n newNode.prev = node.prev;\n newNode.next = node;\n if (node.prev) node.prev.next = newNode;\n else this.head = newNode;\n node.prev = newNode;\n this.length += 1;\n }\n\n unshift(node) {\n if (this.head) this.insertBefore(this.head, node);\n else setInitial(this, node);\n }\n\n push(node) {\n if (this.tail) this.insertAfter(this.tail, node);\n else setInitial(this, node);\n }\n\n shift() {\n return this.head && this.removeLink(this.head);\n }\n\n pop() {\n return this.tail && this.removeLink(this.tail);\n }\n\n toArray() {\n return [...this]\n }\n\n *[Symbol.iterator] () {\n var cur = this.head;\n while (cur) {\n yield cur.data;\n cur = cur.next;\n }\n }\n\n remove (testFn) {\n var curr = this.head;\n while(curr) {\n var {next} = curr;\n if (testFn(curr)) {\n this.removeLink(curr);\n }\n curr = next;\n }\n return this;\n }\n }\n\n function setInitial(dll, node) {\n dll.length = 1;\n dll.head = dll.tail = node;\n }\n\n function queue$1(worker, concurrency, payload) {\n if (concurrency == null) {\n concurrency = 1;\n }\n else if(concurrency === 0) {\n throw new RangeError('Concurrency must not be zero');\n }\n\n var _worker = wrapAsync(worker);\n var numRunning = 0;\n var workersList = [];\n const events = {\n error: [],\n drain: [],\n saturated: [],\n unsaturated: [],\n empty: []\n };\n\n function on (event, handler) {\n events[event].push(handler);\n }\n\n function once (event, handler) {\n const handleAndRemove = (...args) => {\n off(event, handleAndRemove);\n handler(...args);\n };\n events[event].push(handleAndRemove);\n }\n\n function off (event, handler) {\n if (!event) return Object.keys(events).forEach(ev => events[ev] = [])\n if (!handler) return events[event] = []\n events[event] = events[event].filter(ev => ev !== handler);\n }\n\n function trigger (event, ...args) {\n events[event].forEach(handler => handler(...args));\n }\n\n var processingScheduled = false;\n function _insert(data, insertAtFront, rejectOnError, callback) {\n if (callback != null && typeof callback !== 'function') {\n throw new Error('task callback must be a function');\n }\n q.started = true;\n\n var res, rej;\n function promiseCallback (err, ...args) {\n // we don't care about the error, let the global error handler\n // deal with it\n if (err) return rejectOnError ? rej(err) : res()\n if (args.length <= 1) return res(args[0])\n res(args);\n }\n\n var item = q._createTaskItem(\n data,\n rejectOnError ? promiseCallback :\n (callback || promiseCallback)\n );\n\n if (insertAtFront) {\n q._tasks.unshift(item);\n } else {\n q._tasks.push(item);\n }\n\n if (!processingScheduled) {\n processingScheduled = true;\n setImmediate$1(() => {\n processingScheduled = false;\n q.process();\n });\n }\n\n if (rejectOnError || !callback) {\n return new Promise((resolve, reject) => {\n res = resolve;\n rej = reject;\n })\n }\n }\n\n function _createCB(tasks) {\n return function (err, ...args) {\n numRunning -= 1;\n\n for (var i = 0, l = tasks.length; i < l; i++) {\n var task = tasks[i];\n\n var index = workersList.indexOf(task);\n if (index === 0) {\n workersList.shift();\n } else if (index > 0) {\n workersList.splice(index, 1);\n }\n\n task.callback(err, ...args);\n\n if (err != null) {\n trigger('error', err, task.data);\n }\n }\n\n if (numRunning <= (q.concurrency - q.buffer) ) {\n trigger('unsaturated');\n }\n\n if (q.idle()) {\n trigger('drain');\n }\n q.process();\n };\n }\n\n function _maybeDrain(data) {\n if (data.length === 0 && q.idle()) {\n // call drain immediately if there are no tasks\n setImmediate$1(() => trigger('drain'));\n return true\n }\n return false\n }\n\n const eventMethod = (name) => (handler) => {\n if (!handler) {\n return new Promise((resolve, reject) => {\n once(name, (err, data) => {\n if (err) return reject(err)\n resolve(data);\n });\n })\n }\n off(name);\n on(name, handler);\n\n };\n\n var isProcessing = false;\n var q = {\n _tasks: new DLL(),\n _createTaskItem (data, callback) {\n return {\n data,\n callback\n };\n },\n *[Symbol.iterator] () {\n yield* q._tasks[Symbol.iterator]();\n },\n concurrency,\n payload,\n buffer: concurrency / 4,\n started: false,\n paused: false,\n push (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, false, false, callback))\n }\n return _insert(data, false, false, callback);\n },\n pushAsync (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, false, true, callback))\n }\n return _insert(data, false, true, callback);\n },\n kill () {\n off();\n q._tasks.empty();\n },\n unshift (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, true, false, callback))\n }\n return _insert(data, true, false, callback);\n },\n unshiftAsync (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, true, true, callback))\n }\n return _insert(data, true, true, callback);\n },\n remove (testFn) {\n q._tasks.remove(testFn);\n },\n process () {\n // Avoid trying to start too many processing operations. This can occur\n // when callbacks resolve synchronously (#1267).\n if (isProcessing) {\n return;\n }\n isProcessing = true;\n while(!q.paused && numRunning < q.concurrency && q._tasks.length){\n var tasks = [], data = [];\n var l = q._tasks.length;\n if (q.payload) l = Math.min(l, q.payload);\n for (var i = 0; i < l; i++) {\n var node = q._tasks.shift();\n tasks.push(node);\n workersList.push(node);\n data.push(node.data);\n }\n\n numRunning += 1;\n\n if (q._tasks.length === 0) {\n trigger('empty');\n }\n\n if (numRunning === q.concurrency) {\n trigger('saturated');\n }\n\n var cb = onlyOnce(_createCB(tasks));\n _worker(data, cb);\n }\n isProcessing = false;\n },\n length () {\n return q._tasks.length;\n },\n running () {\n return numRunning;\n },\n workersList () {\n return workersList;\n },\n idle() {\n return q._tasks.length + numRunning === 0;\n },\n pause () {\n q.paused = true;\n },\n resume () {\n if (q.paused === false) { return; }\n q.paused = false;\n setImmediate$1(q.process);\n }\n };\n // define these as fixed properties, so people get useful errors when updating\n Object.defineProperties(q, {\n saturated: {\n writable: false,\n value: eventMethod('saturated')\n },\n unsaturated: {\n writable: false,\n value: eventMethod('unsaturated')\n },\n empty: {\n writable: false,\n value: eventMethod('empty')\n },\n drain: {\n writable: false,\n value: eventMethod('drain')\n },\n error: {\n writable: false,\n value: eventMethod('error')\n },\n });\n return q;\n }\n\n /**\n * Creates a `cargo` object with the specified payload. Tasks added to the\n * cargo will be processed altogether (up to the `payload` limit). If the\n * `worker` is in progress, the task is queued until it becomes available. Once\n * the `worker` has completed some tasks, each callback of those tasks is\n * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)\n * for how `cargo` and `queue` work.\n *\n * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers\n * at a time, cargo passes an array of tasks to a single worker, repeating\n * when the worker is finished.\n *\n * @name cargo\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An asynchronous function for processing an array\n * of queued tasks. Invoked with `(tasks, callback)`.\n * @param {number} [payload=Infinity] - An optional `integer` for determining\n * how many tasks should be processed per round; if omitted, the default is\n * unlimited.\n * @returns {module:ControlFlow.QueueObject} A cargo object to manage the tasks. Callbacks can\n * attached as certain properties to listen for specific events during the\n * lifecycle of the cargo and inner queue.\n * @example\n *\n * // create a cargo object with payload 2\n * var cargo = async.cargo(function(tasks, callback) {\n * for (var i=0; i {\n * console.log(result);\n * // 6000\n * // which is the sum of the file sizes of the three files\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.reduce(withMissingFileList, 0, getFileSizeInBytes)\n * .then( result => {\n * console.log(result);\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.reduce(fileList, 0, getFileSizeInBytes);\n * console.log(result);\n * // 6000\n * // which is the sum of the file sizes of the three files\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let result = await async.reduce(withMissingFileList, 0, getFileSizeInBytes);\n * console.log(result);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function reduce(coll, memo, iteratee, callback) {\n callback = once(callback);\n var _iteratee = wrapAsync(iteratee);\n return eachOfSeries$1(coll, (x, i, iterCb) => {\n _iteratee(memo, x, (err, v) => {\n memo = v;\n iterCb(err);\n });\n }, err => callback(err, memo));\n }\n var reduce$1 = awaitify(reduce, 4);\n\n /**\n * Version of the compose function that is more natural to read. Each function\n * consumes the return value of the previous function. It is the equivalent of\n * [compose]{@link module:ControlFlow.compose} with the arguments reversed.\n *\n * Each function is executed with the `this` binding of the composed function.\n *\n * @name seq\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.compose]{@link module:ControlFlow.compose}\n * @category Control Flow\n * @param {...AsyncFunction} functions - the asynchronous functions to compose\n * @returns {Function} a function that composes the `functions` in order\n * @example\n *\n * // Requires lodash (or underscore), express3 and dresende's orm2.\n * // Part of an app, that fetches cats of the logged user.\n * // This example uses `seq` function to avoid overnesting and error\n * // handling clutter.\n * app.get('/cats', function(request, response) {\n * var User = request.models.User;\n * async.seq(\n * User.get.bind(User), // 'User.get' has signature (id, callback(err, data))\n * function(user, fn) {\n * user.getCats(fn); // 'getCats' has signature (callback(err, data))\n * }\n * )(req.session.user_id, function (err, cats) {\n * if (err) {\n * console.error(err);\n * response.json({ status: 'error', message: err.message });\n * } else {\n * response.json({ status: 'ok', message: 'Cats found', data: cats });\n * }\n * });\n * });\n */\n function seq(...functions) {\n var _functions = functions.map(wrapAsync);\n return function (...args) {\n var that = this;\n\n var cb = args[args.length - 1];\n if (typeof cb == 'function') {\n args.pop();\n } else {\n cb = promiseCallback();\n }\n\n reduce$1(_functions, args, (newargs, fn, iterCb) => {\n fn.apply(that, newargs.concat((err, ...nextargs) => {\n iterCb(err, nextargs);\n }));\n },\n (err, results) => cb(err, ...results));\n\n return cb[PROMISE_SYMBOL]\n };\n }\n\n /**\n * Creates a function which is a composition of the passed asynchronous\n * functions. Each function consumes the return value of the function that\n * follows. Composing functions `f()`, `g()`, and `h()` would produce the result\n * of `f(g(h()))`, only this version uses callbacks to obtain the return values.\n *\n * If the last argument to the composed function is not a function, a promise\n * is returned when you call it.\n *\n * Each function is executed with the `this` binding of the composed function.\n *\n * @name compose\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {...AsyncFunction} functions - the asynchronous functions to compose\n * @returns {Function} an asynchronous function that is the composed\n * asynchronous `functions`\n * @example\n *\n * function add1(n, callback) {\n * setTimeout(function () {\n * callback(null, n + 1);\n * }, 10);\n * }\n *\n * function mul3(n, callback) {\n * setTimeout(function () {\n * callback(null, n * 3);\n * }, 10);\n * }\n *\n * var add1mul3 = async.compose(mul3, add1);\n * add1mul3(4, function (err, result) {\n * // result now equals 15\n * });\n */\n function compose(...args) {\n return seq(...args.reverse());\n }\n\n /**\n * The same as [`map`]{@link module:Collections.map} but runs a maximum of `limit` async operations at a time.\n *\n * @name mapLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapLimit (coll, limit, iteratee, callback) {\n return _asyncMap(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var mapLimit$1 = awaitify(mapLimit, 4);\n\n /**\n * The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time.\n *\n * @name concatLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.concat]{@link module:Collections.concat}\n * @category Collection\n * @alias flatMapLimit\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,\n * which should use an array as its result. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is an array\n * containing the concatenated results of the `iteratee` function. Invoked with\n * (err, results).\n * @returns A Promise, if no callback is passed\n */\n function concatLimit(coll, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return mapLimit$1(coll, limit, (val, iterCb) => {\n _iteratee(val, (err, ...args) => {\n if (err) return iterCb(err);\n return iterCb(err, args);\n });\n }, (err, mapResults) => {\n var result = [];\n for (var i = 0; i < mapResults.length; i++) {\n if (mapResults[i]) {\n result = result.concat(...mapResults[i]);\n }\n }\n\n return callback(err, result);\n });\n }\n var concatLimit$1 = awaitify(concatLimit, 4);\n\n /**\n * Applies `iteratee` to each item in `coll`, concatenating the results. Returns\n * the concatenated list. The `iteratee`s are called in parallel, and the\n * results are concatenated as they return. The results array will be returned in\n * the original order of `coll` passed to the `iteratee` function.\n *\n * @name concat\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @alias flatMap\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,\n * which should use an array as its result. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is an array\n * containing the concatenated results of the `iteratee` function. Invoked with\n * (err, results).\n * @returns A Promise, if no callback is passed\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * let directoryList = ['dir1','dir2','dir3'];\n * let withMissingDirectoryList = ['dir1','dir2','dir3', 'dir4'];\n *\n * // Using callbacks\n * async.concat(directoryList, fs.readdir, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]\n * }\n * });\n *\n * // Error Handling\n * async.concat(withMissingDirectoryList, fs.readdir, function(err, results) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4 does not exist\n * } else {\n * console.log(results);\n * }\n * });\n *\n * // Using Promises\n * async.concat(directoryList, fs.readdir)\n * .then(results => {\n * console.log(results);\n * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.concat(withMissingDirectoryList, fs.readdir)\n * .then(results => {\n * console.log(results);\n * }).catch(err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4 does not exist\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.concat(directoryList, fs.readdir);\n * console.log(results);\n * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]\n * } catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let results = await async.concat(withMissingDirectoryList, fs.readdir);\n * console.log(results);\n * } catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4 does not exist\n * }\n * }\n *\n */\n function concat(coll, iteratee, callback) {\n return concatLimit$1(coll, Infinity, iteratee, callback)\n }\n var concat$1 = awaitify(concat, 3);\n\n /**\n * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.\n *\n * @name concatSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.concat]{@link module:Collections.concat}\n * @category Collection\n * @alias flatMapSeries\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`.\n * The iteratee should complete with an array an array of results.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is an array\n * containing the concatenated results of the `iteratee` function. Invoked with\n * (err, results).\n * @returns A Promise, if no callback is passed\n */\n function concatSeries(coll, iteratee, callback) {\n return concatLimit$1(coll, 1, iteratee, callback)\n }\n var concatSeries$1 = awaitify(concatSeries, 3);\n\n /**\n * Returns a function that when called, calls-back with the values provided.\n * Useful as the first function in a [`waterfall`]{@link module:ControlFlow.waterfall}, or for plugging values in to\n * [`auto`]{@link module:ControlFlow.auto}.\n *\n * @name constant\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {...*} arguments... - Any number of arguments to automatically invoke\n * callback with.\n * @returns {AsyncFunction} Returns a function that when invoked, automatically\n * invokes the callback with the previous given arguments.\n * @example\n *\n * async.waterfall([\n * async.constant(42),\n * function (value, next) {\n * // value === 42\n * },\n * //...\n * ], callback);\n *\n * async.waterfall([\n * async.constant(filename, \"utf8\"),\n * fs.readFile,\n * function (fileData, next) {\n * //...\n * }\n * //...\n * ], callback);\n *\n * async.auto({\n * hostname: async.constant(\"https://server.net/\"),\n * port: findFreePort,\n * launchServer: [\"hostname\", \"port\", function (options, cb) {\n * startServer(options, cb);\n * }],\n * //...\n * }, callback);\n */\n function constant$1(...args) {\n return function (...ignoredArgs/*, callback*/) {\n var callback = ignoredArgs.pop();\n return callback(null, ...args);\n };\n }\n\n function _createTester(check, getResult) {\n return (eachfn, arr, _iteratee, cb) => {\n var testPassed = false;\n var testResult;\n const iteratee = wrapAsync(_iteratee);\n eachfn(arr, (value, _, callback) => {\n iteratee(value, (err, result) => {\n if (err || err === false) return callback(err);\n\n if (check(result) && !testResult) {\n testPassed = true;\n testResult = getResult(true, value);\n return callback(null, breakLoop$1);\n }\n callback();\n });\n }, err => {\n if (err) return cb(err);\n cb(null, testPassed ? testResult : getResult(false));\n });\n };\n }\n\n /**\n * Returns the first value in `coll` that passes an async truth test. The\n * `iteratee` is applied in parallel, meaning the first iteratee to return\n * `true` will fire the detect `callback` with that result. That means the\n * result might not be the first item in the original `coll` (in terms of order)\n * that passes the test.\n\n * If order within the original `coll` is important, then look at\n * [`detectSeries`]{@link module:Collections.detectSeries}.\n *\n * @name detect\n * @static\n * @memberOf module:Collections\n * @method\n * @alias find\n * @category Collections\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists,\n * function(err, result) {\n * console.log(result);\n * // dir1/file1.txt\n * // result now equals the first file in the list that exists\n * }\n *);\n *\n * // Using Promises\n * async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists)\n * .then(result => {\n * console.log(result);\n * // dir1/file1.txt\n * // result now equals the first file in the list that exists\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists);\n * console.log(result);\n * // dir1/file1.txt\n * // result now equals the file in the list that exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function detect(coll, iteratee, callback) {\n return _createTester(bool => bool, (res, item) => item)(eachOf$1, coll, iteratee, callback)\n }\n var detect$1 = awaitify(detect, 3);\n\n /**\n * The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name detectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findLimit\n * @category Collections\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function detectLimit(coll, limit, iteratee, callback) {\n return _createTester(bool => bool, (res, item) => item)(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var detectLimit$1 = awaitify(detectLimit, 4);\n\n /**\n * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.\n *\n * @name detectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findSeries\n * @category Collections\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function detectSeries(coll, iteratee, callback) {\n return _createTester(bool => bool, (res, item) => item)(eachOfLimit$2(1), coll, iteratee, callback)\n }\n\n var detectSeries$1 = awaitify(detectSeries, 3);\n\n function consoleFunc(name) {\n return (fn, ...args) => wrapAsync(fn)(...args, (err, ...resultArgs) => {\n /* istanbul ignore else */\n if (typeof console === 'object') {\n /* istanbul ignore else */\n if (err) {\n /* istanbul ignore else */\n if (console.error) {\n console.error(err);\n }\n } else if (console[name]) { /* istanbul ignore else */\n resultArgs.forEach(x => console[name](x));\n }\n }\n })\n }\n\n /**\n * Logs the result of an [`async` function]{@link AsyncFunction} to the\n * `console` using `console.dir` to display the properties of the resulting object.\n * Only works in Node.js or in browsers that support `console.dir` and\n * `console.error` (such as FF and Chrome).\n * If multiple arguments are returned from the async function,\n * `console.dir` is called on each argument in order.\n *\n * @name dir\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, {hello: name});\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.dir(hello, 'world');\n * {hello: 'world'}\n */\n var dir = consoleFunc('dir');\n\n /**\n * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in\n * the order of operations, the arguments `test` and `iteratee` are switched.\n *\n * `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.\n *\n * @name doWhilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - A function which is called each time `test`\n * passes. Invoked with (callback).\n * @param {AsyncFunction} test - asynchronous truth test to perform after each\n * execution of `iteratee`. Invoked with (...args, callback), where `...args` are the\n * non-error args from the previous callback of `iteratee`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped.\n * `callback` will be passed an error and any arguments passed to the final\n * `iteratee`'s callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if no callback is passed\n */\n function doWhilst(iteratee, test, callback) {\n callback = onlyOnce(callback);\n var _fn = wrapAsync(iteratee);\n var _test = wrapAsync(test);\n var results;\n\n function next(err, ...args) {\n if (err) return callback(err);\n if (err === false) return;\n results = args;\n _test(...args, check);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (err === false) return;\n if (!truth) return callback(null, ...results);\n _fn(next);\n }\n\n return check(null, true);\n }\n\n var doWhilst$1 = awaitify(doWhilst, 3);\n\n /**\n * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the\n * argument ordering differs from `until`.\n *\n * @name doUntil\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.doWhilst]{@link module:ControlFlow.doWhilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {AsyncFunction} test - asynchronous truth test to perform after each\n * execution of `iteratee`. Invoked with (...args, callback), where `...args` are the\n * non-error args from the previous callback of `iteratee`\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if no callback is passed\n */\n function doUntil(iteratee, test, callback) {\n const _test = wrapAsync(test);\n return doWhilst$1(iteratee, (...args) => {\n const cb = args.pop();\n _test(...args, (err, truth) => cb (err, !truth));\n }, callback);\n }\n\n function _withoutIndex(iteratee) {\n return (value, index, callback) => iteratee(value, callback);\n }\n\n /**\n * Applies the function `iteratee` to each item in `coll`, in parallel.\n * The `iteratee` is called with an item from the list, and a callback for when\n * it has finished. If the `iteratee` passes an error to its `callback`, the\n * main `callback` (for the `each` function) is immediately called with the\n * error.\n *\n * Note, that since this function applies `iteratee` to each item in parallel,\n * there is no guarantee that the iteratee functions will complete in order.\n *\n * @name each\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEach\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to\n * each item in `coll`. Invoked with (item, callback).\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOf`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * const fileList = [ 'dir1/file2.txt', 'dir2/file3.txt', 'dir/file5.txt'];\n * const withMissingFileList = ['dir1/file1.txt', 'dir4/file2.txt'];\n *\n * // asynchronous function that deletes a file\n * const deleteFile = function(file, callback) {\n * fs.unlink(file, callback);\n * };\n *\n * // Using callbacks\n * async.each(fileList, deleteFile, function(err) {\n * if( err ) {\n * console.log(err);\n * } else {\n * console.log('All files have been deleted successfully');\n * }\n * });\n *\n * // Error Handling\n * async.each(withMissingFileList, deleteFile, function(err){\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * });\n *\n * // Using Promises\n * async.each(fileList, deleteFile)\n * .then( () => {\n * console.log('All files have been deleted successfully');\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.each(fileList, deleteFile)\n * .then( () => {\n * console.log('All files have been deleted successfully');\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * await async.each(files, deleteFile);\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * await async.each(withMissingFileList, deleteFile);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * }\n * }\n *\n */\n function eachLimit$2(coll, iteratee, callback) {\n return eachOf$1(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n }\n\n var each = awaitify(eachLimit$2, 3);\n\n /**\n * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.\n *\n * @name eachLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfLimit`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachLimit(coll, limit, iteratee, callback) {\n return eachOfLimit$2(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n }\n var eachLimit$1 = awaitify(eachLimit, 4);\n\n /**\n * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.\n *\n * Note, that unlike [`each`]{@link module:Collections.each}, this function applies iteratee to each item\n * in series and therefore the iteratee functions will complete in order.\n\n * @name eachSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfSeries`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachSeries(coll, iteratee, callback) {\n return eachLimit$1(coll, 1, iteratee, callback)\n }\n var eachSeries$1 = awaitify(eachSeries, 3);\n\n /**\n * Wrap an async function and ensure it calls its callback on a later tick of\n * the event loop. If the function already calls its callback on a next tick,\n * no extra deferral is added. This is useful for preventing stack overflows\n * (`RangeError: Maximum call stack size exceeded`) and generally keeping\n * [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony)\n * contained. ES2017 `async` functions are returned as-is -- they are immune\n * to Zalgo's corrupting influences, as they always resolve on a later tick.\n *\n * @name ensureAsync\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - an async function, one that expects a node-style\n * callback as its last argument.\n * @returns {AsyncFunction} Returns a wrapped function with the exact same call\n * signature as the function passed in.\n * @example\n *\n * function sometimesAsync(arg, callback) {\n * if (cache[arg]) {\n * return callback(null, cache[arg]); // this would be synchronous!!\n * } else {\n * doSomeIO(arg, callback); // this IO would be asynchronous\n * }\n * }\n *\n * // this has a risk of stack overflows if many results are cached in a row\n * async.mapSeries(args, sometimesAsync, done);\n *\n * // this will defer sometimesAsync's callback if necessary,\n * // preventing stack overflows\n * async.mapSeries(args, async.ensureAsync(sometimesAsync), done);\n */\n function ensureAsync(fn) {\n if (isAsync(fn)) return fn;\n return function (...args/*, callback*/) {\n var callback = args.pop();\n var sync = true;\n args.push((...innerArgs) => {\n if (sync) {\n setImmediate$1(() => callback(...innerArgs));\n } else {\n callback(...innerArgs);\n }\n });\n fn.apply(this, args);\n sync = false;\n };\n }\n\n /**\n * Returns `true` if every element in `coll` satisfies an async test. If any\n * iteratee call returns `false`, the main `callback` is immediately called.\n *\n * @name every\n * @static\n * @memberOf module:Collections\n * @method\n * @alias all\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * const fileList = ['dir1/file1.txt','dir2/file3.txt','dir3/file5.txt'];\n * const withMissingFileList = ['file1.txt','file2.txt','file4.txt'];\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.every(fileList, fileExists, function(err, result) {\n * console.log(result);\n * // true\n * // result is true since every file exists\n * });\n *\n * async.every(withMissingFileList, fileExists, function(err, result) {\n * console.log(result);\n * // false\n * // result is false since NOT every file exists\n * });\n *\n * // Using Promises\n * async.every(fileList, fileExists)\n * .then( result => {\n * console.log(result);\n * // true\n * // result is true since every file exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * async.every(withMissingFileList, fileExists)\n * .then( result => {\n * console.log(result);\n * // false\n * // result is false since NOT every file exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.every(fileList, fileExists);\n * console.log(result);\n * // true\n * // result is true since every file exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * async () => {\n * try {\n * let result = await async.every(withMissingFileList, fileExists);\n * console.log(result);\n * // false\n * // result is false since NOT every file exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function every(coll, iteratee, callback) {\n return _createTester(bool => !bool, res => !res)(eachOf$1, coll, iteratee, callback)\n }\n var every$1 = awaitify(every, 3);\n\n /**\n * The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time.\n *\n * @name everyLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function everyLimit(coll, limit, iteratee, callback) {\n return _createTester(bool => !bool, res => !res)(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var everyLimit$1 = awaitify(everyLimit, 4);\n\n /**\n * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.\n *\n * @name everySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in series.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function everySeries(coll, iteratee, callback) {\n return _createTester(bool => !bool, res => !res)(eachOfSeries$1, coll, iteratee, callback)\n }\n var everySeries$1 = awaitify(everySeries, 3);\n\n function filterArray(eachfn, arr, iteratee, callback) {\n var truthValues = new Array(arr.length);\n eachfn(arr, (x, index, iterCb) => {\n iteratee(x, (err, v) => {\n truthValues[index] = !!v;\n iterCb(err);\n });\n }, err => {\n if (err) return callback(err);\n var results = [];\n for (var i = 0; i < arr.length; i++) {\n if (truthValues[i]) results.push(arr[i]);\n }\n callback(null, results);\n });\n }\n\n function filterGeneric(eachfn, coll, iteratee, callback) {\n var results = [];\n eachfn(coll, (x, index, iterCb) => {\n iteratee(x, (err, v) => {\n if (err) return iterCb(err);\n if (v) {\n results.push({index, value: x});\n }\n iterCb(err);\n });\n }, err => {\n if (err) return callback(err);\n callback(null, results\n .sort((a, b) => a.index - b.index)\n .map(v => v.value));\n });\n }\n\n function _filter(eachfn, coll, iteratee, callback) {\n var filter = isArrayLike(coll) ? filterArray : filterGeneric;\n return filter(eachfn, coll, wrapAsync(iteratee), callback);\n }\n\n /**\n * Returns a new array of all the values in `coll` which pass an async truth\n * test. This operation is performed in parallel, but the results array will be\n * in the same order as the original.\n *\n * @name filter\n * @static\n * @memberOf module:Collections\n * @method\n * @alias select\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n *\n * const files = ['dir1/file1.txt','dir2/file3.txt','dir3/file6.txt'];\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.filter(files, fileExists, function(err, results) {\n * if(err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]\n * // results is now an array of the existing files\n * }\n * });\n *\n * // Using Promises\n * async.filter(files, fileExists)\n * .then(results => {\n * console.log(results);\n * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]\n * // results is now an array of the existing files\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.filter(files, fileExists);\n * console.log(results);\n * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]\n * // results is now an array of the existing files\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function filter (coll, iteratee, callback) {\n return _filter(eachOf$1, coll, iteratee, callback)\n }\n var filter$1 = awaitify(filter, 3);\n\n /**\n * The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name filterLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback provided\n */\n function filterLimit (coll, limit, iteratee, callback) {\n return _filter(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var filterLimit$1 = awaitify(filterLimit, 4);\n\n /**\n * The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time.\n *\n * @name filterSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results)\n * @returns {Promise} a promise, if no callback provided\n */\n function filterSeries (coll, iteratee, callback) {\n return _filter(eachOfSeries$1, coll, iteratee, callback)\n }\n var filterSeries$1 = awaitify(filterSeries, 3);\n\n /**\n * Calls the asynchronous function `fn` with a callback parameter that allows it\n * to call itself again, in series, indefinitely.\n\n * If an error is passed to the callback then `errback` is called with the\n * error, and execution stops, otherwise it will never be called.\n *\n * @name forever\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} fn - an async function to call repeatedly.\n * Invoked with (next).\n * @param {Function} [errback] - when `fn` passes an error to it's callback,\n * this function will be called, and execution stops. Invoked with (err).\n * @returns {Promise} a promise that rejects if an error occurs and an errback\n * is not passed\n * @example\n *\n * async.forever(\n * function(next) {\n * // next is suitable for passing to things that need a callback(err [, whatever]);\n * // it will result in this function being called again.\n * },\n * function(err) {\n * // if next is called with a value in its first parameter, it will appear\n * // in here as 'err', and execution will stop.\n * }\n * );\n */\n function forever(fn, errback) {\n var done = onlyOnce(errback);\n var task = wrapAsync(ensureAsync(fn));\n\n function next(err) {\n if (err) return done(err);\n if (err === false) return;\n task(next);\n }\n return next();\n }\n var forever$1 = awaitify(forever, 2);\n\n /**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs a maximum of `limit` async operations at a time.\n *\n * @name groupByLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n * @returns {Promise} a promise, if no callback is passed\n */\n function groupByLimit(coll, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return mapLimit$1(coll, limit, (val, iterCb) => {\n _iteratee(val, (err, key) => {\n if (err) return iterCb(err);\n return iterCb(err, {key, val});\n });\n }, (err, mapResults) => {\n var result = {};\n // from MDN, handle object having an `hasOwnProperty` prop\n var {hasOwnProperty} = Object.prototype;\n\n for (var i = 0; i < mapResults.length; i++) {\n if (mapResults[i]) {\n var {key} = mapResults[i];\n var {val} = mapResults[i];\n\n if (hasOwnProperty.call(result, key)) {\n result[key].push(val);\n } else {\n result[key] = [val];\n }\n }\n }\n\n return callback(err, result);\n });\n }\n\n var groupByLimit$1 = awaitify(groupByLimit, 4);\n\n /**\n * Returns a new object, where each value corresponds to an array of items, from\n * `coll`, that returned the corresponding key. That is, the keys of the object\n * correspond to the values passed to the `iteratee` callback.\n *\n * Note: Since this function applies the `iteratee` to each item in parallel,\n * there is no guarantee that the `iteratee` functions will complete in order.\n * However, the values for each key in the `result` will be in the same order as\n * the original `coll`. For Objects, the values will roughly be in the order of\n * the original Objects' keys (but this can vary across JavaScript engines).\n *\n * @name groupBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * const files = ['dir1/file1.txt','dir2','dir4']\n *\n * // asynchronous function that detects file type as none, file, or directory\n * function detectFile(file, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(null, 'none');\n * }\n * callback(null, stat.isDirectory() ? 'directory' : 'file');\n * });\n * }\n *\n * //Using callbacks\n * async.groupBy(files, detectFile, function(err, result) {\n * if(err) {\n * console.log(err);\n * } else {\n *\t console.log(result);\n * // {\n * // file: [ 'dir1/file1.txt' ],\n * // none: [ 'dir4' ],\n * // directory: [ 'dir2']\n * // }\n * // result is object containing the files grouped by type\n * }\n * });\n *\n * // Using Promises\n * async.groupBy(files, detectFile)\n * .then( result => {\n * console.log(result);\n * // {\n * // file: [ 'dir1/file1.txt' ],\n * // none: [ 'dir4' ],\n * // directory: [ 'dir2']\n * // }\n * // result is object containing the files grouped by type\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.groupBy(files, detectFile);\n * console.log(result);\n * // {\n * // file: [ 'dir1/file1.txt' ],\n * // none: [ 'dir4' ],\n * // directory: [ 'dir2']\n * // }\n * // result is object containing the files grouped by type\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function groupBy (coll, iteratee, callback) {\n return groupByLimit$1(coll, Infinity, iteratee, callback)\n }\n\n /**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs only a single async operation at a time.\n *\n * @name groupBySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whose\n * properties are arrays of values which returned the corresponding key.\n * @returns {Promise} a promise, if no callback is passed\n */\n function groupBySeries (coll, iteratee, callback) {\n return groupByLimit$1(coll, 1, iteratee, callback)\n }\n\n /**\n * Logs the result of an `async` function to the `console`. Only works in\n * Node.js or in browsers that support `console.log` and `console.error` (such\n * as FF and Chrome). If multiple arguments are returned from the async\n * function, `console.log` is called on each argument in order.\n *\n * @name log\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, 'hello ' + name);\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.log(hello, 'world');\n * 'hello world'\n */\n var log = consoleFunc('log');\n\n /**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name mapValuesLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapValuesLimit(obj, limit, iteratee, callback) {\n callback = once(callback);\n var newObj = {};\n var _iteratee = wrapAsync(iteratee);\n return eachOfLimit$2(limit)(obj, (val, key, next) => {\n _iteratee(val, key, (err, result) => {\n if (err) return next(err);\n newObj[key] = result;\n next(err);\n });\n }, err => callback(err, newObj));\n }\n\n var mapValuesLimit$1 = awaitify(mapValuesLimit, 4);\n\n /**\n * A relative of [`map`]{@link module:Collections.map}, designed for use with objects.\n *\n * Produces a new Object by mapping each value of `obj` through the `iteratee`\n * function. The `iteratee` is called each `value` and `key` from `obj` and a\n * callback for when it has finished processing. Each of these callbacks takes\n * two arguments: an `error`, and the transformed item from `obj`. If `iteratee`\n * passes an error to its callback, the main `callback` (for the `mapValues`\n * function) is immediately called with the error.\n *\n * Note, the order of the keys in the result is not guaranteed. The keys will\n * be roughly in the order they complete, (but this is very engine-specific)\n *\n * @name mapValues\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n * // file4.txt does not exist\n *\n * const fileMap = {\n * f1: 'file1.txt',\n * f2: 'file2.txt',\n * f3: 'file3.txt'\n * };\n *\n * const withMissingFileMap = {\n * f1: 'file1.txt',\n * f2: 'file2.txt',\n * f3: 'file4.txt'\n * };\n *\n * // asynchronous function that returns the file size in bytes\n * function getFileSizeInBytes(file, key, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * callback(null, stat.size);\n * });\n * }\n *\n * // Using callbacks\n * async.mapValues(fileMap, getFileSizeInBytes, function(err, result) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(result);\n * // result is now a map of file size in bytes for each file, e.g.\n * // {\n * // f1: 1000,\n * // f2: 2000,\n * // f3: 3000\n * // }\n * }\n * });\n *\n * // Error handling\n * async.mapValues(withMissingFileMap, getFileSizeInBytes, function(err, result) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * } else {\n * console.log(result);\n * }\n * });\n *\n * // Using Promises\n * async.mapValues(fileMap, getFileSizeInBytes)\n * .then( result => {\n * console.log(result);\n * // result is now a map of file size in bytes for each file, e.g.\n * // {\n * // f1: 1000,\n * // f2: 2000,\n * // f3: 3000\n * // }\n * }).catch (err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.mapValues(withMissingFileMap, getFileSizeInBytes)\n * .then( result => {\n * console.log(result);\n * }).catch (err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.mapValues(fileMap, getFileSizeInBytes);\n * console.log(result);\n * // result is now a map of file size in bytes for each file, e.g.\n * // {\n * // f1: 1000,\n * // f2: 2000,\n * // f3: 3000\n * // }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let result = await async.mapValues(withMissingFileMap, getFileSizeInBytes);\n * console.log(result);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function mapValues(obj, iteratee, callback) {\n return mapValuesLimit$1(obj, Infinity, iteratee, callback)\n }\n\n /**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.\n *\n * @name mapValuesSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapValuesSeries(obj, iteratee, callback) {\n return mapValuesLimit$1(obj, 1, iteratee, callback)\n }\n\n /**\n * Caches the results of an async function. When creating a hash to store\n * function results against, the callback is omitted from the hash and an\n * optional hash function can be used.\n *\n * **Note: if the async function errs, the result will not be cached and\n * subsequent calls will call the wrapped function.**\n *\n * If no hash function is specified, the first argument is used as a hash key,\n * which may work reasonably if it is a string or a data type that converts to a\n * distinct string. Note that objects and arrays will not behave reasonably.\n * Neither will cases where the other arguments are significant. In such cases,\n * specify your own hash function.\n *\n * The cache of results is exposed as the `memo` property of the function\n * returned by `memoize`.\n *\n * @name memoize\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function to proxy and cache results from.\n * @param {Function} hasher - An optional function for generating a custom hash\n * for storing results. It has all the arguments applied to it apart from the\n * callback, and must be synchronous.\n * @returns {AsyncFunction} a memoized version of `fn`\n * @example\n *\n * var slow_fn = function(name, callback) {\n * // do something\n * callback(null, result);\n * };\n * var fn = async.memoize(slow_fn);\n *\n * // fn can now be used as if it were slow_fn\n * fn('some name', function() {\n * // callback\n * });\n */\n function memoize(fn, hasher = v => v) {\n var memo = Object.create(null);\n var queues = Object.create(null);\n var _fn = wrapAsync(fn);\n var memoized = initialParams((args, callback) => {\n var key = hasher(...args);\n if (key in memo) {\n setImmediate$1(() => callback(null, ...memo[key]));\n } else if (key in queues) {\n queues[key].push(callback);\n } else {\n queues[key] = [callback];\n _fn(...args, (err, ...resultArgs) => {\n // #1465 don't memoize if an error occurred\n if (!err) {\n memo[key] = resultArgs;\n }\n var q = queues[key];\n delete queues[key];\n for (var i = 0, l = q.length; i < l; i++) {\n q[i](err, ...resultArgs);\n }\n });\n }\n });\n memoized.memo = memo;\n memoized.unmemoized = fn;\n return memoized;\n }\n\n /* istanbul ignore file */\n\n /**\n * Calls `callback` on a later loop around the event loop. In Node.js this just\n * calls `process.nextTick`. In the browser it will use `setImmediate` if\n * available, otherwise `setTimeout(callback, 0)`, which means other higher\n * priority events may precede the execution of `callback`.\n *\n * This is used internally for browser-compatibility purposes.\n *\n * @name nextTick\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.setImmediate]{@link module:Utils.setImmediate}\n * @category Util\n * @param {Function} callback - The function to call on a later loop around\n * the event loop. Invoked with (args...).\n * @param {...*} args... - any number of additional arguments to pass to the\n * callback on the next tick.\n * @example\n *\n * var call_order = [];\n * async.nextTick(function() {\n * call_order.push('two');\n * // call_order now equals ['one','two']\n * });\n * call_order.push('one');\n *\n * async.setImmediate(function (a, b, c) {\n * // a, b, and c equal 1, 2, and 3\n * }, 1, 2, 3);\n */\n var _defer;\n\n if (hasNextTick) {\n _defer = process.nextTick;\n } else if (hasSetImmediate) {\n _defer = setImmediate;\n } else {\n _defer = fallback;\n }\n\n var nextTick = wrap(_defer);\n\n var _parallel = awaitify((eachfn, tasks, callback) => {\n var results = isArrayLike(tasks) ? [] : {};\n\n eachfn(tasks, (task, key, taskCb) => {\n wrapAsync(task)((err, ...result) => {\n if (result.length < 2) {\n [result] = result;\n }\n results[key] = result;\n taskCb(err);\n });\n }, err => callback(err, results));\n }, 3);\n\n /**\n * Run the `tasks` collection of functions in parallel, without waiting until\n * the previous function has completed. If any of the functions pass an error to\n * its callback, the main `callback` is immediately called with the value of the\n * error. Once the `tasks` have completed, the results are passed to the final\n * `callback` as an array.\n *\n * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about\n * parallel execution of code. If your tasks do not use any timers or perform\n * any I/O, they will actually be executed in series. Any synchronous setup\n * sections for each task will happen one after the other. JavaScript remains\n * single-threaded.\n *\n * **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the\n * execution of other tasks when a task fails.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.parallel}.\n *\n * @name parallel\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n * @returns {Promise} a promise, if a callback is not passed\n *\n * @example\n *\n * //Using Callbacks\n * async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ], function(err, results) {\n * console.log(results);\n * // results is equal to ['one','two'] even though\n * // the second function had a shorter timeout.\n * });\n *\n * // an example using an object instead of an array\n * async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * });\n *\n * //Using Promises\n * async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ]).then(results => {\n * console.log(results);\n * // results is equal to ['one','two'] even though\n * // the second function had a shorter timeout.\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // an example using an object instead of an array\n * async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }).then(results => {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * //Using async/await\n * async () => {\n * try {\n * let results = await async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ]);\n * console.log(results);\n * // results is equal to ['one','two'] even though\n * // the second function had a shorter timeout.\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // an example using an object instead of an array\n * async () => {\n * try {\n * let results = await async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * });\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function parallel(tasks, callback) {\n return _parallel(eachOf$1, tasks, callback);\n }\n\n /**\n * The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name parallelLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.parallel]{@link module:ControlFlow.parallel}\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n * @returns {Promise} a promise, if a callback is not passed\n */\n function parallelLimit(tasks, limit, callback) {\n return _parallel(eachOfLimit$2(limit), tasks, callback);\n }\n\n /**\n * A queue of tasks for the worker function to complete.\n * @typedef {Iterable} QueueObject\n * @memberOf module:ControlFlow\n * @property {Function} length - a function returning the number of items\n * waiting to be processed. Invoke with `queue.length()`.\n * @property {boolean} started - a boolean indicating whether or not any\n * items have been pushed and processed by the queue.\n * @property {Function} running - a function returning the number of items\n * currently being processed. Invoke with `queue.running()`.\n * @property {Function} workersList - a function returning the array of items\n * currently being processed. Invoke with `queue.workersList()`.\n * @property {Function} idle - a function returning false if there are items\n * waiting or being processed, or true if not. Invoke with `queue.idle()`.\n * @property {number} concurrency - an integer for determining how many `worker`\n * functions should be run in parallel. This property can be changed after a\n * `queue` is created to alter the concurrency on-the-fly.\n * @property {number} payload - an integer that specifies how many items are\n * passed to the worker function at a time. only applies if this is a\n * [cargo]{@link module:ControlFlow.cargo} object\n * @property {AsyncFunction} push - add a new task to the `queue`. Calls `callback`\n * once the `worker` has finished processing the task. Instead of a single task,\n * a `tasks` array can be submitted. The respective callback is used for every\n * task in the list. Invoke with `queue.push(task, [callback])`,\n * @property {AsyncFunction} unshift - add a new task to the front of the `queue`.\n * Invoke with `queue.unshift(task, [callback])`.\n * @property {AsyncFunction} pushAsync - the same as `q.push`, except this returns\n * a promise that rejects if an error occurs.\n * @property {AsyncFunction} unshiftAsync - the same as `q.unshift`, except this returns\n * a promise that rejects if an error occurs.\n * @property {Function} remove - remove items from the queue that match a test\n * function. The test function will be passed an object with a `data` property,\n * and a `priority` property, if this is a\n * [priorityQueue]{@link module:ControlFlow.priorityQueue} object.\n * Invoked with `queue.remove(testFn)`, where `testFn` is of the form\n * `function ({data, priority}) {}` and returns a Boolean.\n * @property {Function} saturated - a function that sets a callback that is\n * called when the number of running workers hits the `concurrency` limit, and\n * further tasks will be queued. If the callback is omitted, `q.saturated()`\n * returns a promise for the next occurrence.\n * @property {Function} unsaturated - a function that sets a callback that is\n * called when the number of running workers is less than the `concurrency` &\n * `buffer` limits, and further tasks will not be queued. If the callback is\n * omitted, `q.unsaturated()` returns a promise for the next occurrence.\n * @property {number} buffer - A minimum threshold buffer in order to say that\n * the `queue` is `unsaturated`.\n * @property {Function} empty - a function that sets a callback that is called\n * when the last item from the `queue` is given to a `worker`. If the callback\n * is omitted, `q.empty()` returns a promise for the next occurrence.\n * @property {Function} drain - a function that sets a callback that is called\n * when the last item from the `queue` has returned from the `worker`. If the\n * callback is omitted, `q.drain()` returns a promise for the next occurrence.\n * @property {Function} error - a function that sets a callback that is called\n * when a task errors. Has the signature `function(error, task)`. If the\n * callback is omitted, `error()` returns a promise that rejects on the next\n * error.\n * @property {boolean} paused - a boolean for determining whether the queue is\n * in a paused state.\n * @property {Function} pause - a function that pauses the processing of tasks\n * until `resume()` is called. Invoke with `queue.pause()`.\n * @property {Function} resume - a function that resumes the processing of\n * queued tasks when the queue is paused. Invoke with `queue.resume()`.\n * @property {Function} kill - a function that removes the `drain` callback and\n * empties remaining tasks from the queue forcing it to go idle. No more tasks\n * should be pushed to the queue after calling this function. Invoke with `queue.kill()`.\n *\n * @example\n * const q = async.queue(worker, 2)\n * q.push(item1)\n * q.push(item2)\n * q.push(item3)\n * // queues are iterable, spread into an array to inspect\n * const items = [...q] // [item1, item2, item3]\n * // or use for of\n * for (let item of q) {\n * console.log(item)\n * }\n *\n * q.drain(() => {\n * console.log('all done')\n * })\n * // or\n * await q.drain()\n */\n\n /**\n * Creates a `queue` object with the specified `concurrency`. Tasks added to the\n * `queue` are processed in parallel (up to the `concurrency` limit). If all\n * `worker`s are in progress, the task is queued until one becomes available.\n * Once a `worker` completes a `task`, that `task`'s callback is called.\n *\n * @name queue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`. Invoked with (task, callback).\n * @param {number} [concurrency=1] - An `integer` for determining how many\n * `worker` functions should be run in parallel. If omitted, the concurrency\n * defaults to `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can be\n * attached as certain properties to listen for specific events during the\n * lifecycle of the queue.\n * @example\n *\n * // create a queue object with concurrency 2\n * var q = async.queue(function(task, callback) {\n * console.log('hello ' + task.name);\n * callback();\n * }, 2);\n *\n * // assign a callback\n * q.drain(function() {\n * console.log('all items have been processed');\n * });\n * // or await the end\n * await q.drain()\n *\n * // assign an error callback\n * q.error(function(err, task) {\n * console.error('task experienced an error');\n * });\n *\n * // add some items to the queue\n * q.push({name: 'foo'}, function(err) {\n * console.log('finished processing foo');\n * });\n * // callback is optional\n * q.push({name: 'bar'});\n *\n * // add some items to the queue (batch-wise)\n * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) {\n * console.log('finished processing item');\n * });\n *\n * // add some items to the front of the queue\n * q.unshift({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n */\n function queue (worker, concurrency) {\n var _worker = wrapAsync(worker);\n return queue$1((items, cb) => {\n _worker(items[0], cb);\n }, concurrency, 1);\n }\n\n // Binary min-heap implementation used for priority queue.\n // Implementation is stable, i.e. push time is considered for equal priorities\n class Heap {\n constructor() {\n this.heap = [];\n this.pushCount = Number.MIN_SAFE_INTEGER;\n }\n\n get length() {\n return this.heap.length;\n }\n\n empty () {\n this.heap = [];\n return this;\n }\n\n percUp(index) {\n let p;\n\n while (index > 0 && smaller(this.heap[index], this.heap[p=parent(index)])) {\n let t = this.heap[index];\n this.heap[index] = this.heap[p];\n this.heap[p] = t;\n\n index = p;\n }\n }\n\n percDown(index) {\n let l;\n\n while ((l=leftChi(index)) < this.heap.length) {\n if (l+1 < this.heap.length && smaller(this.heap[l+1], this.heap[l])) {\n l = l+1;\n }\n\n if (smaller(this.heap[index], this.heap[l])) {\n break;\n }\n\n let t = this.heap[index];\n this.heap[index] = this.heap[l];\n this.heap[l] = t;\n\n index = l;\n }\n }\n\n push(node) {\n node.pushCount = ++this.pushCount;\n this.heap.push(node);\n this.percUp(this.heap.length-1);\n }\n\n unshift(node) {\n return this.heap.push(node);\n }\n\n shift() {\n let [top] = this.heap;\n\n this.heap[0] = this.heap[this.heap.length-1];\n this.heap.pop();\n this.percDown(0);\n\n return top;\n }\n\n toArray() {\n return [...this];\n }\n\n *[Symbol.iterator] () {\n for (let i = 0; i < this.heap.length; i++) {\n yield this.heap[i].data;\n }\n }\n\n remove (testFn) {\n let j = 0;\n for (let i = 0; i < this.heap.length; i++) {\n if (!testFn(this.heap[i])) {\n this.heap[j] = this.heap[i];\n j++;\n }\n }\n\n this.heap.splice(j);\n\n for (let i = parent(this.heap.length-1); i >= 0; i--) {\n this.percDown(i);\n }\n\n return this;\n }\n }\n\n function leftChi(i) {\n return (i<<1)+1;\n }\n\n function parent(i) {\n return ((i+1)>>1)-1;\n }\n\n function smaller(x, y) {\n if (x.priority !== y.priority) {\n return x.priority < y.priority;\n }\n else {\n return x.pushCount < y.pushCount;\n }\n }\n\n /**\n * The same as [async.queue]{@link module:ControlFlow.queue} only tasks are assigned a priority and\n * completed in ascending priority order.\n *\n * @name priorityQueue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`.\n * Invoked with (task, callback).\n * @param {number} concurrency - An `integer` for determining how many `worker`\n * functions should be run in parallel. If omitted, the concurrency defaults to\n * `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are three\n * differences between `queue` and `priorityQueue` objects:\n * * `push(task, priority, [callback])` - `priority` should be a number. If an\n * array of `tasks` is given, all tasks will be assigned the same priority.\n * * `pushAsync(task, priority, [callback])` - the same as `priorityQueue.push`,\n * except this returns a promise that rejects if an error occurs.\n * * The `unshift` and `unshiftAsync` methods were removed.\n */\n function priorityQueue(worker, concurrency) {\n // Start with a normal queue\n var q = queue(worker, concurrency);\n\n var {\n push,\n pushAsync\n } = q;\n\n q._tasks = new Heap();\n q._createTaskItem = ({data, priority}, callback) => {\n return {\n data,\n priority,\n callback\n };\n };\n\n function createDataItems(tasks, priority) {\n if (!Array.isArray(tasks)) {\n return {data: tasks, priority};\n }\n return tasks.map(data => { return {data, priority}; });\n }\n\n // Override push to accept second parameter representing priority\n q.push = function(data, priority = 0, callback) {\n return push(createDataItems(data, priority), callback);\n };\n\n q.pushAsync = function(data, priority = 0, callback) {\n return pushAsync(createDataItems(data, priority), callback);\n };\n\n // Remove unshift functions\n delete q.unshift;\n delete q.unshiftAsync;\n\n return q;\n }\n\n /**\n * Runs the `tasks` array of functions in parallel, without waiting until the\n * previous function has completed. Once any of the `tasks` complete or pass an\n * error to its callback, the main `callback` is immediately called. It's\n * equivalent to `Promise.race()`.\n *\n * @name race\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array containing [async functions]{@link AsyncFunction}\n * to run. Each function can complete with an optional `result` value.\n * @param {Function} callback - A callback to run once any of the functions have\n * completed. This function gets an error or result from the first function that\n * completed. Invoked with (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * async.race([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ],\n * // main callback\n * function(err, result) {\n * // the result will be equal to 'two' as it finishes earlier\n * });\n */\n function race(tasks, callback) {\n callback = once(callback);\n if (!Array.isArray(tasks)) return callback(new TypeError('First argument to race must be an array of functions'));\n if (!tasks.length) return callback();\n for (var i = 0, l = tasks.length; i < l; i++) {\n wrapAsync(tasks[i])(callback);\n }\n }\n\n var race$1 = awaitify(race, 2);\n\n /**\n * Same as [`reduce`]{@link module:Collections.reduce}, only operates on `array` in reverse order.\n *\n * @name reduceRight\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reduce]{@link module:Collections.reduce}\n * @alias foldr\n * @category Collection\n * @param {Array} array - A collection to iterate over.\n * @param {*} memo - The initial state of the reduction.\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * array to produce the next step in the reduction.\n * The `iteratee` should complete with the next state of the reduction.\n * If the iteratee completes with an error, the reduction is stopped and the\n * main `callback` is immediately called with the error.\n * Invoked with (memo, item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the reduced value. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if no callback is passed\n */\n function reduceRight (array, memo, iteratee, callback) {\n var reversed = [...array].reverse();\n return reduce$1(reversed, memo, iteratee, callback);\n }\n\n /**\n * Wraps the async function in another function that always completes with a\n * result object, even when it errors.\n *\n * The result object has either the property `error` or `value`.\n *\n * @name reflect\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function you want to wrap\n * @returns {Function} - A function that always passes null to it's callback as\n * the error. The second argument to the callback will be an `object` with\n * either an `error` or a `value` property.\n * @example\n *\n * async.parallel([\n * async.reflect(function(callback) {\n * // do some stuff ...\n * callback(null, 'one');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff but error ...\n * callback('bad stuff happened');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff ...\n * callback(null, 'two');\n * })\n * ],\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = 'bad stuff happened'\n * // results[2].value = 'two'\n * });\n */\n function reflect(fn) {\n var _fn = wrapAsync(fn);\n return initialParams(function reflectOn(args, reflectCallback) {\n args.push((error, ...cbArgs) => {\n let retVal = {};\n if (error) {\n retVal.error = error;\n }\n if (cbArgs.length > 0){\n var value = cbArgs;\n if (cbArgs.length <= 1) {\n [value] = cbArgs;\n }\n retVal.value = value;\n }\n reflectCallback(null, retVal);\n });\n\n return _fn.apply(this, args);\n });\n }\n\n /**\n * A helper function that wraps an array or an object of functions with `reflect`.\n *\n * @name reflectAll\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.reflect]{@link module:Utils.reflect}\n * @category Util\n * @param {Array|Object|Iterable} tasks - The collection of\n * [async functions]{@link AsyncFunction} to wrap in `async.reflect`.\n * @returns {Array} Returns an array of async functions, each wrapped in\n * `async.reflect`\n * @example\n *\n * let tasks = [\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * // do some more stuff but error ...\n * callback(new Error('bad stuff happened'));\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ];\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = Error('bad stuff happened')\n * // results[2].value = 'two'\n * });\n *\n * // an example using an object instead of an array\n * let tasks = {\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * two: function(callback) {\n * callback('two');\n * },\n * three: function(callback) {\n * setTimeout(function() {\n * callback(null, 'three');\n * }, 100);\n * }\n * };\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results.one.value = 'one'\n * // results.two.error = 'two'\n * // results.three.value = 'three'\n * });\n */\n function reflectAll(tasks) {\n var results;\n if (Array.isArray(tasks)) {\n results = tasks.map(reflect);\n } else {\n results = {};\n Object.keys(tasks).forEach(key => {\n results[key] = reflect.call(this, tasks[key]);\n });\n }\n return results;\n }\n\n function reject$2(eachfn, arr, _iteratee, callback) {\n const iteratee = wrapAsync(_iteratee);\n return _filter(eachfn, arr, (value, cb) => {\n iteratee(value, (err, v) => {\n cb(err, !v);\n });\n }, callback);\n }\n\n /**\n * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test.\n *\n * @name reject\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n *\n * const fileList = ['dir1/file1.txt','dir2/file3.txt','dir3/file6.txt'];\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.reject(fileList, fileExists, function(err, results) {\n * // [ 'dir3/file6.txt' ]\n * // results now equals an array of the non-existing files\n * });\n *\n * // Using Promises\n * async.reject(fileList, fileExists)\n * .then( results => {\n * console.log(results);\n * // [ 'dir3/file6.txt' ]\n * // results now equals an array of the non-existing files\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.reject(fileList, fileExists);\n * console.log(results);\n * // [ 'dir3/file6.txt' ]\n * // results now equals an array of the non-existing files\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function reject (coll, iteratee, callback) {\n return reject$2(eachOf$1, coll, iteratee, callback)\n }\n var reject$1 = awaitify(reject, 3);\n\n /**\n * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name rejectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function rejectLimit (coll, limit, iteratee, callback) {\n return reject$2(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var rejectLimit$1 = awaitify(rejectLimit, 4);\n\n /**\n * The same as [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time.\n *\n * @name rejectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function rejectSeries (coll, iteratee, callback) {\n return reject$2(eachOfSeries$1, coll, iteratee, callback)\n }\n var rejectSeries$1 = awaitify(rejectSeries, 3);\n\n function constant(value) {\n return function () {\n return value;\n }\n }\n\n /**\n * Attempts to get a successful response from `task` no more than `times` times\n * before returning an error. If the task is successful, the `callback` will be\n * passed the result of the successful task. If all attempts fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name retry\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @see [async.retryable]{@link module:ControlFlow.retryable}\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an\n * object with `times` and `interval` or a number.\n * * `times` - The number of attempts to make before giving up. The default\n * is `5`.\n * * `interval` - The time to wait between retries, in milliseconds. The\n * default is `0`. The interval may also be specified as a function of the\n * retry count (see example).\n * * `errorFilter` - An optional synchronous function that is invoked on\n * erroneous result. If it returns `true` the retry attempts will continue;\n * if the function returns `false` the retry flow is aborted with the current\n * attempt's error and result being returned to the final callback.\n * Invoked with (err).\n * * If `opts` is a number, the number specifies the number of times to retry,\n * with the default interval of `0`.\n * @param {AsyncFunction} task - An async function to retry.\n * Invoked with (callback).\n * @param {Function} [callback] - An optional callback which is called when the\n * task has succeeded, or after the final failed attempt. It receives the `err`\n * and `result` arguments of the last attempt at completing the `task`. Invoked\n * with (err, results).\n * @returns {Promise} a promise if no callback provided\n *\n * @example\n *\n * // The `retry` function can be used as a stand-alone control flow by passing\n * // a callback, as shown below:\n *\n * // try calling apiMethod 3 times\n * async.retry(3, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 3 times, waiting 200 ms between each retry\n * async.retry({times: 3, interval: 200}, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 10 times with exponential backoff\n * // (i.e. intervals of 100, 200, 400, 800, 1600, ... milliseconds)\n * async.retry({\n * times: 10,\n * interval: function(retryCount) {\n * return 50 * Math.pow(2, retryCount);\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod the default 5 times no delay between each retry\n * async.retry(apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod only when error condition satisfies, all other\n * // errors will abort the retry control flow and return to final callback\n * async.retry({\n * errorFilter: function(err) {\n * return err.message === 'Temporary error'; // only retry on a specific error\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // to retry individual methods that are not as reliable within other\n * // control flow functions, use the `retryable` wrapper:\n * async.auto({\n * users: api.getUsers.bind(api),\n * payments: async.retryable(3, api.getPayments.bind(api))\n * }, function(err, results) {\n * // do something with the results\n * });\n *\n */\n const DEFAULT_TIMES = 5;\n const DEFAULT_INTERVAL = 0;\n\n function retry(opts, task, callback) {\n var options = {\n times: DEFAULT_TIMES,\n intervalFunc: constant(DEFAULT_INTERVAL)\n };\n\n if (arguments.length < 3 && typeof opts === 'function') {\n callback = task || promiseCallback();\n task = opts;\n } else {\n parseTimes(options, opts);\n callback = callback || promiseCallback();\n }\n\n if (typeof task !== 'function') {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n\n var _task = wrapAsync(task);\n\n var attempt = 1;\n function retryAttempt() {\n _task((err, ...args) => {\n if (err === false) return\n if (err && attempt++ < options.times &&\n (typeof options.errorFilter != 'function' ||\n options.errorFilter(err))) {\n setTimeout(retryAttempt, options.intervalFunc(attempt - 1));\n } else {\n callback(err, ...args);\n }\n });\n }\n\n retryAttempt();\n return callback[PROMISE_SYMBOL]\n }\n\n function parseTimes(acc, t) {\n if (typeof t === 'object') {\n acc.times = +t.times || DEFAULT_TIMES;\n\n acc.intervalFunc = typeof t.interval === 'function' ?\n t.interval :\n constant(+t.interval || DEFAULT_INTERVAL);\n\n acc.errorFilter = t.errorFilter;\n } else if (typeof t === 'number' || typeof t === 'string') {\n acc.times = +t || DEFAULT_TIMES;\n } else {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n }\n\n /**\n * A close relative of [`retry`]{@link module:ControlFlow.retry}. This method\n * wraps a task and makes it retryable, rather than immediately calling it\n * with retries.\n *\n * @name retryable\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.retry]{@link module:ControlFlow.retry}\n * @category Control Flow\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - optional\n * options, exactly the same as from `retry`, except for a `opts.arity` that\n * is the arity of the `task` function, defaulting to `task.length`\n * @param {AsyncFunction} task - the asynchronous function to wrap.\n * This function will be passed any arguments passed to the returned wrapper.\n * Invoked with (...args, callback).\n * @returns {AsyncFunction} The wrapped function, which when invoked, will\n * retry on an error, based on the parameters specified in `opts`.\n * This function will accept the same parameters as `task`.\n * @example\n *\n * async.auto({\n * dep1: async.retryable(3, getFromFlakyService),\n * process: [\"dep1\", async.retryable(3, function (results, cb) {\n * maybeProcessData(results.dep1, cb);\n * })]\n * }, callback);\n */\n function retryable (opts, task) {\n if (!task) {\n task = opts;\n opts = null;\n }\n let arity = (opts && opts.arity) || task.length;\n if (isAsync(task)) {\n arity += 1;\n }\n var _task = wrapAsync(task);\n return initialParams((args, callback) => {\n if (args.length < arity - 1 || callback == null) {\n args.push(callback);\n callback = promiseCallback();\n }\n function taskFn(cb) {\n _task(...args, cb);\n }\n\n if (opts) retry(opts, taskFn, callback);\n else retry(taskFn, callback);\n\n return callback[PROMISE_SYMBOL]\n });\n }\n\n /**\n * Run the functions in the `tasks` collection in series, each one running once\n * the previous function has completed. If any functions in the series pass an\n * error to its callback, no more functions are run, and `callback` is\n * immediately called with the value of the error. Otherwise, `callback`\n * receives an array of results when `tasks` have completed.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function, and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.series}.\n *\n * **Note** that while many implementations preserve the order of object\n * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)\n * explicitly states that\n *\n * > The mechanics and order of enumerating the properties is not specified.\n *\n * So if you rely on the order in which your series of functions are executed,\n * and want this to work on all platforms, consider using an array.\n *\n * @name series\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing\n * [async functions]{@link AsyncFunction} to run in series.\n * Each function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This function gets a results array (or object)\n * containing all the result arguments passed to the `task` callbacks. Invoked\n * with (err, result).\n * @return {Promise} a promise, if no callback is passed\n * @example\n *\n * //Using Callbacks\n * async.series([\n * function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 'two');\n * }, 100);\n * }\n * ], function(err, results) {\n * console.log(results);\n * // results is equal to ['one','two']\n * });\n *\n * // an example using objects instead of arrays\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * });\n *\n * //Using Promises\n * async.series([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ]).then(results => {\n * console.log(results);\n * // results is equal to ['one','two']\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // an example using an object instead of an array\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * }).then(results => {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * //Using async/await\n * async () => {\n * try {\n * let results = await async.series([\n * function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 'two');\n * }, 100);\n * }\n * ]);\n * console.log(results);\n * // results is equal to ['one','two']\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // an example using an object instead of an array\n * async () => {\n * try {\n * let results = await async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * });\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function series(tasks, callback) {\n return _parallel(eachOfSeries$1, tasks, callback);\n }\n\n /**\n * Returns `true` if at least one element in the `coll` satisfies an async test.\n * If any iteratee call returns `true`, the main `callback` is immediately\n * called.\n *\n * @name some\n * @static\n * @memberOf module:Collections\n * @method\n * @alias any\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists,\n * function(err, result) {\n * console.log(result);\n * // true\n * // result is true since some file in the list exists\n * }\n *);\n *\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists,\n * function(err, result) {\n * console.log(result);\n * // false\n * // result is false since none of the files exists\n * }\n *);\n *\n * // Using Promises\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists)\n * .then( result => {\n * console.log(result);\n * // true\n * // result is true since some file in the list exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists)\n * .then( result => {\n * console.log(result);\n * // false\n * // result is false since none of the files exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists);\n * console.log(result);\n * // true\n * // result is true since some file in the list exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * async () => {\n * try {\n * let result = await async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists);\n * console.log(result);\n * // false\n * // result is false since none of the files exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function some(coll, iteratee, callback) {\n return _createTester(Boolean, res => res)(eachOf$1, coll, iteratee, callback)\n }\n var some$1 = awaitify(some, 3);\n\n /**\n * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time.\n *\n * @name someLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anyLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function someLimit(coll, limit, iteratee, callback) {\n return _createTester(Boolean, res => res)(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var someLimit$1 = awaitify(someLimit, 4);\n\n /**\n * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time.\n *\n * @name someSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anySeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in series.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function someSeries(coll, iteratee, callback) {\n return _createTester(Boolean, res => res)(eachOfSeries$1, coll, iteratee, callback)\n }\n var someSeries$1 = awaitify(someSeries, 3);\n\n /**\n * Sorts a list by the results of running each `coll` value through an async\n * `iteratee`.\n *\n * @name sortBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a value to use as the sort criteria as\n * its `result`.\n * Invoked with (item, callback).\n * @param {Function} callback - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is the items\n * from the original `coll` sorted by the values returned by the `iteratee`\n * calls. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback passed\n * @example\n *\n * // bigfile.txt is a file that is 251100 bytes in size\n * // mediumfile.txt is a file that is 11000 bytes in size\n * // smallfile.txt is a file that is 121 bytes in size\n *\n * // asynchronous function that returns the file size in bytes\n * function getFileSizeInBytes(file, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * callback(null, stat.size);\n * });\n * }\n *\n * // Using callbacks\n * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], getFileSizeInBytes,\n * function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }\n * }\n * );\n *\n * // By modifying the callback parameter the\n * // sorting order can be influenced:\n *\n * // ascending order\n * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], function(file, callback) {\n * getFileSizeInBytes(file, function(getFileSizeErr, fileSize) {\n * if (getFileSizeErr) return callback(getFileSizeErr);\n * callback(null, fileSize);\n * });\n * }, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }\n * }\n * );\n *\n * // descending order\n * async.sortBy(['bigfile.txt','mediumfile.txt','smallfile.txt'], function(file, callback) {\n * getFileSizeInBytes(file, function(getFileSizeErr, fileSize) {\n * if (getFileSizeErr) {\n * return callback(getFileSizeErr);\n * }\n * callback(null, fileSize * -1);\n * });\n * }, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'bigfile.txt', 'mediumfile.txt', 'smallfile.txt']\n * }\n * }\n * );\n *\n * // Error handling\n * async.sortBy(['mediumfile.txt','smallfile.txt','missingfile.txt'], getFileSizeInBytes,\n * function(err, results) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * } else {\n * console.log(results);\n * }\n * }\n * );\n *\n * // Using Promises\n * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error handling\n * async.sortBy(['mediumfile.txt','smallfile.txt','missingfile.txt'], getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * (async () => {\n * try {\n * let results = await async.sortBy(['bigfile.txt','mediumfile.txt','smallfile.txt'], getFileSizeInBytes);\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }\n * catch (err) {\n * console.log(err);\n * }\n * })();\n *\n * // Error handling\n * async () => {\n * try {\n * let results = await async.sortBy(['missingfile.txt','mediumfile.txt','smallfile.txt'], getFileSizeInBytes);\n * console.log(results);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function sortBy (coll, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return map$1(coll, (x, iterCb) => {\n _iteratee(x, (err, criteria) => {\n if (err) return iterCb(err);\n iterCb(err, {value: x, criteria});\n });\n }, (err, results) => {\n if (err) return callback(err);\n callback(null, results.sort(comparator).map(v => v.value));\n });\n\n function comparator(left, right) {\n var a = left.criteria, b = right.criteria;\n return a < b ? -1 : a > b ? 1 : 0;\n }\n }\n var sortBy$1 = awaitify(sortBy, 3);\n\n /**\n * Sets a time limit on an asynchronous function. If the function does not call\n * its callback within the specified milliseconds, it will be called with a\n * timeout error. The code property for the error object will be `'ETIMEDOUT'`.\n *\n * @name timeout\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} asyncFn - The async function to limit in time.\n * @param {number} milliseconds - The specified time limit.\n * @param {*} [info] - Any variable you want attached (`string`, `object`, etc)\n * to timeout Error for more information..\n * @returns {AsyncFunction} Returns a wrapped function that can be used with any\n * of the control flow functions.\n * Invoke this function with the same parameters as you would `asyncFunc`.\n * @example\n *\n * function myFunction(foo, callback) {\n * doAsyncTask(foo, function(err, data) {\n * // handle errors\n * if (err) return callback(err);\n *\n * // do some stuff ...\n *\n * // return processed data\n * return callback(null, data);\n * });\n * }\n *\n * var wrapped = async.timeout(myFunction, 1000);\n *\n * // call `wrapped` as you would `myFunction`\n * wrapped({ bar: 'bar' }, function(err, data) {\n * // if `myFunction` takes < 1000 ms to execute, `err`\n * // and `data` will have their expected values\n *\n * // else `err` will be an Error with the code 'ETIMEDOUT'\n * });\n */\n function timeout(asyncFn, milliseconds, info) {\n var fn = wrapAsync(asyncFn);\n\n return initialParams((args, callback) => {\n var timedOut = false;\n var timer;\n\n function timeoutCallback() {\n var name = asyncFn.name || 'anonymous';\n var error = new Error('Callback function \"' + name + '\" timed out.');\n error.code = 'ETIMEDOUT';\n if (info) {\n error.info = info;\n }\n timedOut = true;\n callback(error);\n }\n\n args.push((...cbArgs) => {\n if (!timedOut) {\n callback(...cbArgs);\n clearTimeout(timer);\n }\n });\n\n // setup timer and call original function\n timer = setTimeout(timeoutCallback, milliseconds);\n fn(...args);\n });\n }\n\n function range(size) {\n var result = Array(size);\n while (size--) {\n result[size] = size;\n }\n return result;\n }\n\n /**\n * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name timesLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} count - The number of times to run the function.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see [async.map]{@link module:Collections.map}.\n * @returns {Promise} a promise, if no callback is provided\n */\n function timesLimit(count, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return mapLimit$1(range(count), limit, _iteratee, callback);\n }\n\n /**\n * Calls the `iteratee` function `n` times, and accumulates results in the same\n * manner you would use with [map]{@link module:Collections.map}.\n *\n * @name times\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n * @returns {Promise} a promise, if no callback is provided\n * @example\n *\n * // Pretend this is some complicated async factory\n * var createUser = function(id, callback) {\n * callback(null, {\n * id: 'user' + id\n * });\n * };\n *\n * // generate 5 users\n * async.times(5, function(n, next) {\n * createUser(n, function(err, user) {\n * next(err, user);\n * });\n * }, function(err, users) {\n * // we should now have 5 users\n * });\n */\n function times (n, iteratee, callback) {\n return timesLimit(n, Infinity, iteratee, callback)\n }\n\n /**\n * The same as [times]{@link module:ControlFlow.times} but runs only a single async operation at a time.\n *\n * @name timesSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n * @returns {Promise} a promise, if no callback is provided\n */\n function timesSeries (n, iteratee, callback) {\n return timesLimit(n, 1, iteratee, callback)\n }\n\n /**\n * A relative of `reduce`. Takes an Object or Array, and iterates over each\n * element in parallel, each step potentially mutating an `accumulator` value.\n * The type of the accumulator defaults to the type of collection passed in.\n *\n * @name transform\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {*} [accumulator] - The initial state of the transform. If omitted,\n * it will default to an empty Object or Array, depending on the type of `coll`\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * collection that potentially modifies the accumulator.\n * Invoked with (accumulator, item, key, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the transformed accumulator.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n *\n * // helper function that returns human-readable size format from bytes\n * function formatBytes(bytes, decimals = 2) {\n * // implementation not included for brevity\n * return humanReadbleFilesize;\n * }\n *\n * const fileList = ['file1.txt','file2.txt','file3.txt'];\n *\n * // asynchronous function that returns the file size, transformed to human-readable format\n * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc.\n * function transformFileSize(acc, value, key, callback) {\n * fs.stat(value, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * acc[key] = formatBytes(stat.size);\n * callback(null);\n * });\n * }\n *\n * // Using callbacks\n * async.transform(fileList, transformFileSize, function(err, result) {\n * if(err) {\n * console.log(err);\n * } else {\n * console.log(result);\n * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]\n * }\n * });\n *\n * // Using Promises\n * async.transform(fileList, transformFileSize)\n * .then(result => {\n * console.log(result);\n * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * (async () => {\n * try {\n * let result = await async.transform(fileList, transformFileSize);\n * console.log(result);\n * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]\n * }\n * catch (err) {\n * console.log(err);\n * }\n * })();\n *\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n *\n * // helper function that returns human-readable size format from bytes\n * function formatBytes(bytes, decimals = 2) {\n * // implementation not included for brevity\n * return humanReadbleFilesize;\n * }\n *\n * const fileMap = { f1: 'file1.txt', f2: 'file2.txt', f3: 'file3.txt' };\n *\n * // asynchronous function that returns the file size, transformed to human-readable format\n * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc.\n * function transformFileSize(acc, value, key, callback) {\n * fs.stat(value, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * acc[key] = formatBytes(stat.size);\n * callback(null);\n * });\n * }\n *\n * // Using callbacks\n * async.transform(fileMap, transformFileSize, function(err, result) {\n * if(err) {\n * console.log(err);\n * } else {\n * console.log(result);\n * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }\n * }\n * });\n *\n * // Using Promises\n * async.transform(fileMap, transformFileSize)\n * .then(result => {\n * console.log(result);\n * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.transform(fileMap, transformFileSize);\n * console.log(result);\n * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function transform (coll, accumulator, iteratee, callback) {\n if (arguments.length <= 3 && typeof accumulator === 'function') {\n callback = iteratee;\n iteratee = accumulator;\n accumulator = Array.isArray(coll) ? [] : {};\n }\n callback = once(callback || promiseCallback());\n var _iteratee = wrapAsync(iteratee);\n\n eachOf$1(coll, (v, k, cb) => {\n _iteratee(accumulator, v, k, cb);\n }, err => callback(err, accumulator));\n return callback[PROMISE_SYMBOL]\n }\n\n /**\n * It runs each task in series but stops whenever any of the functions were\n * successful. If one of the tasks were successful, the `callback` will be\n * passed the result of the successful task. If all tasks fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name tryEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing functions to\n * run, each function is passed a `callback(err, result)` it must call on\n * completion with an error `err` (which can be `null`) and an optional `result`\n * value.\n * @param {Function} [callback] - An optional callback which is called when one\n * of the tasks has succeeded, or all have failed. It receives the `err` and\n * `result` arguments of the last attempt at completing the `task`. Invoked with\n * (err, results).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n * async.tryEach([\n * function getDataFromFirstWebsite(callback) {\n * // Try getting the data from the first website\n * callback(err, data);\n * },\n * function getDataFromSecondWebsite(callback) {\n * // First website failed,\n * // Try getting the data from the backup website\n * callback(err, data);\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * Now do something with the data.\n * });\n *\n */\n function tryEach(tasks, callback) {\n var error = null;\n var result;\n return eachSeries$1(tasks, (task, taskCb) => {\n wrapAsync(task)((err, ...args) => {\n if (err === false) return taskCb(err);\n\n if (args.length < 2) {\n [result] = args;\n } else {\n result = args;\n }\n error = err;\n taskCb(err ? null : {});\n });\n }, () => callback(error, result));\n }\n\n var tryEach$1 = awaitify(tryEach);\n\n /**\n * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original,\n * unmemoized form. Handy for testing.\n *\n * @name unmemoize\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.memoize]{@link module:Utils.memoize}\n * @category Util\n * @param {AsyncFunction} fn - the memoized function\n * @returns {AsyncFunction} a function that calls the original unmemoized function\n */\n function unmemoize(fn) {\n return (...args) => {\n return (fn.unmemoized || fn)(...args);\n };\n }\n\n /**\n * Repeatedly call `iteratee`, while `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs.\n *\n * @name whilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `iteratee`. Invoked with (callback).\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * var count = 0;\n * async.whilst(\n * function test(cb) { cb(null, count < 5); },\n * function iter(callback) {\n * count++;\n * setTimeout(function() {\n * callback(null, count);\n * }, 1000);\n * },\n * function (err, n) {\n * // 5 seconds have passed, n = 5\n * }\n * );\n */\n function whilst(test, iteratee, callback) {\n callback = onlyOnce(callback);\n var _fn = wrapAsync(iteratee);\n var _test = wrapAsync(test);\n var results = [];\n\n function next(err, ...rest) {\n if (err) return callback(err);\n results = rest;\n if (err === false) return;\n _test(check);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (err === false) return;\n if (!truth) return callback(null, ...results);\n _fn(next);\n }\n\n return _test(check);\n }\n var whilst$1 = awaitify(whilst, 3);\n\n /**\n * Repeatedly call `iteratee` until `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs. `callback` will be passed an error and any\n * arguments passed to the final `iteratee`'s callback.\n *\n * The inverse of [whilst]{@link module:ControlFlow.whilst}.\n *\n * @name until\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `iteratee`. Invoked with (callback).\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if a callback is not passed\n *\n * @example\n * const results = []\n * let finished = false\n * async.until(function test(cb) {\n * cb(null, finished)\n * }, function iter(next) {\n * fetchPage(url, (err, body) => {\n * if (err) return next(err)\n * results = results.concat(body.objects)\n * finished = !!body.next\n * next(err)\n * })\n * }, function done (err) {\n * // all pages have been fetched\n * })\n */\n function until(test, iteratee, callback) {\n const _test = wrapAsync(test);\n return whilst$1((cb) => _test((err, truth) => cb (err, !truth)), iteratee, callback);\n }\n\n /**\n * Runs the `tasks` array of functions in series, each passing their results to\n * the next in the array. However, if any of the `tasks` pass an error to their\n * own callback, the next function is not executed, and the main `callback` is\n * immediately called with the error.\n *\n * @name waterfall\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array of [async functions]{@link AsyncFunction}\n * to run.\n * Each function should complete with any number of `result` values.\n * The `result` values will be passed as arguments, in order, to the next task.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This will be passed the results of the last task's\n * callback. Invoked with (err, [results]).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * async.waterfall([\n * function(callback) {\n * callback(null, 'one', 'two');\n * },\n * function(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * },\n * function(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n *\n * // Or, with named functions:\n * async.waterfall([\n * myFirstFunction,\n * mySecondFunction,\n * myLastFunction,\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n * function myFirstFunction(callback) {\n * callback(null, 'one', 'two');\n * }\n * function mySecondFunction(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * }\n * function myLastFunction(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n */\n function waterfall (tasks, callback) {\n callback = once(callback);\n if (!Array.isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions'));\n if (!tasks.length) return callback();\n var taskIndex = 0;\n\n function nextTask(args) {\n var task = wrapAsync(tasks[taskIndex++]);\n task(...args, onlyOnce(next));\n }\n\n function next(err, ...args) {\n if (err === false) return\n if (err || taskIndex === tasks.length) {\n return callback(err, ...args);\n }\n nextTask(args);\n }\n\n nextTask([]);\n }\n\n var waterfall$1 = awaitify(waterfall);\n\n /**\n * An \"async function\" in the context of Async is an asynchronous function with\n * a variable number of parameters, with the final parameter being a callback.\n * (`function (arg1, arg2, ..., callback) {}`)\n * The final callback is of the form `callback(err, results...)`, which must be\n * called once the function is completed. The callback should be called with a\n * Error as its first argument to signal that an error occurred.\n * Otherwise, if no error occurred, it should be called with `null` as the first\n * argument, and any additional `result` arguments that may apply, to signal\n * successful completion.\n * The callback must be called exactly once, ideally on a later tick of the\n * JavaScript event loop.\n *\n * This type of function is also referred to as a \"Node-style async function\",\n * or a \"continuation passing-style function\" (CPS). Most of the methods of this\n * library are themselves CPS/Node-style async functions, or functions that\n * return CPS/Node-style async functions.\n *\n * Wherever we accept a Node-style async function, we also directly accept an\n * [ES2017 `async` function]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function}.\n * In this case, the `async` function will not be passed a final callback\n * argument, and any thrown error will be used as the `err` argument of the\n * implicit callback, and the return value will be used as the `result` value.\n * (i.e. a `rejected` of the returned Promise becomes the `err` callback\n * argument, and a `resolved` value becomes the `result`.)\n *\n * Note, due to JavaScript limitations, we can only detect native `async`\n * functions and not transpilied implementations.\n * Your environment must have `async`/`await` support for this to work.\n * (e.g. Node > v7.6, or a recent version of a modern browser).\n * If you are using `async` functions through a transpiler (e.g. Babel), you\n * must still wrap the function with [asyncify]{@link module:Utils.asyncify},\n * because the `async function` will be compiled to an ordinary function that\n * returns a promise.\n *\n * @typedef {Function} AsyncFunction\n * @static\n */\n\n\n var index = {\n apply,\n applyEach,\n applyEachSeries,\n asyncify,\n auto,\n autoInject,\n cargo: cargo$1,\n cargoQueue: cargo,\n compose,\n concat: concat$1,\n concatLimit: concatLimit$1,\n concatSeries: concatSeries$1,\n constant: constant$1,\n detect: detect$1,\n detectLimit: detectLimit$1,\n detectSeries: detectSeries$1,\n dir,\n doUntil,\n doWhilst: doWhilst$1,\n each,\n eachLimit: eachLimit$1,\n eachOf: eachOf$1,\n eachOfLimit: eachOfLimit$1,\n eachOfSeries: eachOfSeries$1,\n eachSeries: eachSeries$1,\n ensureAsync,\n every: every$1,\n everyLimit: everyLimit$1,\n everySeries: everySeries$1,\n filter: filter$1,\n filterLimit: filterLimit$1,\n filterSeries: filterSeries$1,\n forever: forever$1,\n groupBy,\n groupByLimit: groupByLimit$1,\n groupBySeries,\n log,\n map: map$1,\n mapLimit: mapLimit$1,\n mapSeries: mapSeries$1,\n mapValues,\n mapValuesLimit: mapValuesLimit$1,\n mapValuesSeries,\n memoize,\n nextTick,\n parallel,\n parallelLimit,\n priorityQueue,\n queue,\n race: race$1,\n reduce: reduce$1,\n reduceRight,\n reflect,\n reflectAll,\n reject: reject$1,\n rejectLimit: rejectLimit$1,\n rejectSeries: rejectSeries$1,\n retry,\n retryable,\n seq,\n series,\n setImmediate: setImmediate$1,\n some: some$1,\n someLimit: someLimit$1,\n someSeries: someSeries$1,\n sortBy: sortBy$1,\n timeout,\n times,\n timesLimit,\n timesSeries,\n transform,\n tryEach: tryEach$1,\n unmemoize,\n until,\n waterfall: waterfall$1,\n whilst: whilst$1,\n\n // aliases\n all: every$1,\n allLimit: everyLimit$1,\n allSeries: everySeries$1,\n any: some$1,\n anyLimit: someLimit$1,\n anySeries: someSeries$1,\n find: detect$1,\n findLimit: detectLimit$1,\n findSeries: detectSeries$1,\n flatMap: concat$1,\n flatMapLimit: concatLimit$1,\n flatMapSeries: concatSeries$1,\n forEach: each,\n forEachSeries: eachSeries$1,\n forEachLimit: eachLimit$1,\n forEachOf: eachOf$1,\n forEachOfSeries: eachOfSeries$1,\n forEachOfLimit: eachOfLimit$1,\n inject: reduce$1,\n foldl: reduce$1,\n foldr: reduceRight,\n select: filter$1,\n selectLimit: filterLimit$1,\n selectSeries: filterSeries$1,\n wrapSync: asyncify,\n during: whilst$1,\n doDuring: doWhilst$1\n };\n\n exports.all = every$1;\n exports.allLimit = everyLimit$1;\n exports.allSeries = everySeries$1;\n exports.any = some$1;\n exports.anyLimit = someLimit$1;\n exports.anySeries = someSeries$1;\n exports.apply = apply;\n exports.applyEach = applyEach;\n exports.applyEachSeries = applyEachSeries;\n exports.asyncify = asyncify;\n exports.auto = auto;\n exports.autoInject = autoInject;\n exports.cargo = cargo$1;\n exports.cargoQueue = cargo;\n exports.compose = compose;\n exports.concat = concat$1;\n exports.concatLimit = concatLimit$1;\n exports.concatSeries = concatSeries$1;\n exports.constant = constant$1;\n exports.default = index;\n exports.detect = detect$1;\n exports.detectLimit = detectLimit$1;\n exports.detectSeries = detectSeries$1;\n exports.dir = dir;\n exports.doDuring = doWhilst$1;\n exports.doUntil = doUntil;\n exports.doWhilst = doWhilst$1;\n exports.during = whilst$1;\n exports.each = each;\n exports.eachLimit = eachLimit$1;\n exports.eachOf = eachOf$1;\n exports.eachOfLimit = eachOfLimit$1;\n exports.eachOfSeries = eachOfSeries$1;\n exports.eachSeries = eachSeries$1;\n exports.ensureAsync = ensureAsync;\n exports.every = every$1;\n exports.everyLimit = everyLimit$1;\n exports.everySeries = everySeries$1;\n exports.filter = filter$1;\n exports.filterLimit = filterLimit$1;\n exports.filterSeries = filterSeries$1;\n exports.find = detect$1;\n exports.findLimit = detectLimit$1;\n exports.findSeries = detectSeries$1;\n exports.flatMap = concat$1;\n exports.flatMapLimit = concatLimit$1;\n exports.flatMapSeries = concatSeries$1;\n exports.foldl = reduce$1;\n exports.foldr = reduceRight;\n exports.forEach = each;\n exports.forEachLimit = eachLimit$1;\n exports.forEachOf = eachOf$1;\n exports.forEachOfLimit = eachOfLimit$1;\n exports.forEachOfSeries = eachOfSeries$1;\n exports.forEachSeries = eachSeries$1;\n exports.forever = forever$1;\n exports.groupBy = groupBy;\n exports.groupByLimit = groupByLimit$1;\n exports.groupBySeries = groupBySeries;\n exports.inject = reduce$1;\n exports.log = log;\n exports.map = map$1;\n exports.mapLimit = mapLimit$1;\n exports.mapSeries = mapSeries$1;\n exports.mapValues = mapValues;\n exports.mapValuesLimit = mapValuesLimit$1;\n exports.mapValuesSeries = mapValuesSeries;\n exports.memoize = memoize;\n exports.nextTick = nextTick;\n exports.parallel = parallel;\n exports.parallelLimit = parallelLimit;\n exports.priorityQueue = priorityQueue;\n exports.queue = queue;\n exports.race = race$1;\n exports.reduce = reduce$1;\n exports.reduceRight = reduceRight;\n exports.reflect = reflect;\n exports.reflectAll = reflectAll;\n exports.reject = reject$1;\n exports.rejectLimit = rejectLimit$1;\n exports.rejectSeries = rejectSeries$1;\n exports.retry = retry;\n exports.retryable = retryable;\n exports.select = filter$1;\n exports.selectLimit = filterLimit$1;\n exports.selectSeries = filterSeries$1;\n exports.seq = seq;\n exports.series = series;\n exports.setImmediate = setImmediate$1;\n exports.some = some$1;\n exports.someLimit = someLimit$1;\n exports.someSeries = someSeries$1;\n exports.sortBy = sortBy$1;\n exports.timeout = timeout;\n exports.times = times;\n exports.timesLimit = timesLimit;\n exports.timesSeries = timesSeries;\n exports.transform = transform;\n exports.tryEach = tryEach$1;\n exports.unmemoize = unmemoize;\n exports.until = until;\n exports.waterfall = waterfall$1;\n exports.whilst = whilst$1;\n exports.wrapSync = asyncify;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","module.exports =\n{\n parallel : require('./parallel.js'),\n serial : require('./serial.js'),\n serialOrdered : require('./serialOrdered.js')\n};\n","// API\nmodule.exports = abort;\n\n/**\n * Aborts leftover active jobs\n *\n * @param {object} state - current state object\n */\nfunction abort(state)\n{\n Object.keys(state.jobs).forEach(clean.bind(state));\n\n // reset leftover jobs\n state.jobs = {};\n}\n\n/**\n * Cleans up leftover job by invoking abort function for the provided job id\n *\n * @this state\n * @param {string|number} key - job id to abort\n */\nfunction clean(key)\n{\n if (typeof this.jobs[key] == 'function')\n {\n this.jobs[key]();\n }\n}\n","var defer = require('./defer.js');\n\n// API\nmodule.exports = async;\n\n/**\n * Runs provided callback asynchronously\n * even if callback itself is not\n *\n * @param {function} callback - callback to invoke\n * @returns {function} - augmented callback\n */\nfunction async(callback)\n{\n var isAsync = false;\n\n // check if async happened\n defer(function() { isAsync = true; });\n\n return function async_callback(err, result)\n {\n if (isAsync)\n {\n callback(err, result);\n }\n else\n {\n defer(function nextTick_callback()\n {\n callback(err, result);\n });\n }\n };\n}\n","module.exports = defer;\n\n/**\n * Runs provided function on next iteration of the event loop\n *\n * @param {function} fn - function to run\n */\nfunction defer(fn)\n{\n var nextTick = typeof setImmediate == 'function'\n ? setImmediate\n : (\n typeof process == 'object' && typeof process.nextTick == 'function'\n ? process.nextTick\n : null\n );\n\n if (nextTick)\n {\n nextTick(fn);\n }\n else\n {\n setTimeout(fn, 0);\n }\n}\n","var async = require('./async.js')\n , abort = require('./abort.js')\n ;\n\n// API\nmodule.exports = iterate;\n\n/**\n * Iterates over each job object\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {object} state - current job status\n * @param {function} callback - invoked when all elements processed\n */\nfunction iterate(list, iterator, state, callback)\n{\n // store current index\n var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;\n\n state.jobs[key] = runJob(iterator, key, list[key], function(error, output)\n {\n // don't repeat yourself\n // skip secondary callbacks\n if (!(key in state.jobs))\n {\n return;\n }\n\n // clean up jobs\n delete state.jobs[key];\n\n if (error)\n {\n // don't process rest of the results\n // stop still active jobs\n // and reset the list\n abort(state);\n }\n else\n {\n state.results[key] = output;\n }\n\n // return salvaged results\n callback(error, state.results);\n });\n}\n\n/**\n * Runs iterator over provided job element\n *\n * @param {function} iterator - iterator to invoke\n * @param {string|number} key - key/index of the element in the list of jobs\n * @param {mixed} item - job description\n * @param {function} callback - invoked after iterator is done with the job\n * @returns {function|mixed} - job abort function or something else\n */\nfunction runJob(iterator, key, item, callback)\n{\n var aborter;\n\n // allow shortcut if iterator expects only two arguments\n if (iterator.length == 2)\n {\n aborter = iterator(item, async(callback));\n }\n // otherwise go with full three arguments\n else\n {\n aborter = iterator(item, key, async(callback));\n }\n\n return aborter;\n}\n","// API\nmodule.exports = state;\n\n/**\n * Creates initial state object\n * for iteration over list\n *\n * @param {array|object} list - list to iterate over\n * @param {function|null} sortMethod - function to use for keys sort,\n * or `null` to keep them as is\n * @returns {object} - initial state object\n */\nfunction state(list, sortMethod)\n{\n var isNamedList = !Array.isArray(list)\n , initState =\n {\n index : 0,\n keyedList: isNamedList || sortMethod ? Object.keys(list) : null,\n jobs : {},\n results : isNamedList ? {} : [],\n size : isNamedList ? Object.keys(list).length : list.length\n }\n ;\n\n if (sortMethod)\n {\n // sort array keys based on it's values\n // sort object's keys just on own merit\n initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)\n {\n return sortMethod(list[a], list[b]);\n });\n }\n\n return initState;\n}\n","var abort = require('./abort.js')\n , async = require('./async.js')\n ;\n\n// API\nmodule.exports = terminator;\n\n/**\n * Terminates jobs in the attached state context\n *\n * @this AsyncKitState#\n * @param {function} callback - final callback to invoke after termination\n */\nfunction terminator(callback)\n{\n if (!Object.keys(this.jobs).length)\n {\n return;\n }\n\n // fast forward iteration index\n this.index = this.size;\n\n // abort jobs\n abort(this);\n\n // send back results we have so far\n async(callback)(null, this.results);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = parallel;\n\n/**\n * Runs iterator over provided array elements in parallel\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction parallel(list, iterator, callback)\n{\n var state = initState(list);\n\n while (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, function(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n // looks like it's the last one\n if (Object.keys(state.jobs).length === 0)\n {\n callback(null, state.results);\n return;\n }\n });\n\n state.index++;\n }\n\n return terminator.bind(state, callback);\n}\n","var serialOrdered = require('./serialOrdered.js');\n\n// Public API\nmodule.exports = serial;\n\n/**\n * Runs iterator over provided array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serial(list, iterator, callback)\n{\n return serialOrdered(list, iterator, null, callback);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = serialOrdered;\n// sorting helpers\nmodule.exports.ascending = ascending;\nmodule.exports.descending = descending;\n\n/**\n * Runs iterator over provided sorted array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} sortMethod - custom sort function\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serialOrdered(list, iterator, sortMethod, callback)\n{\n var state = initState(list, sortMethod);\n\n iterate(list, iterator, state, function iteratorHandler(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n state.index++;\n\n // are we there yet?\n if (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, iteratorHandler);\n return;\n }\n\n // done here\n callback(null, state.results);\n });\n\n return terminator.bind(state, callback);\n}\n\n/*\n * -- Sort methods\n */\n\n/**\n * sort helper to sort array elements in ascending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction ascending(a, b)\n{\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\n/**\n * sort helper to sort array elements in descending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction descending(a, b)\n{\n return -1 * ascending(a, b);\n}\n","function isBuffer (value) {\n return Buffer.isBuffer(value) || value instanceof Uint8Array\n}\n\nfunction isEncoding (encoding) {\n return Buffer.isEncoding(encoding)\n}\n\nfunction alloc (size, fill, encoding) {\n return Buffer.alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n return Buffer.allocUnsafe(size)\n}\n\nfunction allocUnsafeSlow (size) {\n return Buffer.allocUnsafeSlow(size)\n}\n\nfunction byteLength (string, encoding) {\n return Buffer.byteLength(string, encoding)\n}\n\nfunction compare (a, b) {\n return Buffer.compare(a, b)\n}\n\nfunction concat (buffers, totalLength) {\n return Buffer.concat(buffers, totalLength)\n}\n\nfunction copy (source, target, targetStart, start, end) {\n return toBuffer(source).copy(target, targetStart, start, end)\n}\n\nfunction equals (a, b) {\n return toBuffer(a).equals(b)\n}\n\nfunction fill (buffer, value, offset, end, encoding) {\n return toBuffer(buffer).fill(value, offset, end, encoding)\n}\n\nfunction from (value, encodingOrOffset, length) {\n return Buffer.from(value, encodingOrOffset, length)\n}\n\nfunction includes (buffer, value, byteOffset, encoding) {\n return toBuffer(buffer).includes(value, byteOffset, encoding)\n}\n\nfunction indexOf (buffer, value, byfeOffset, encoding) {\n return toBuffer(buffer).indexOf(value, byfeOffset, encoding)\n}\n\nfunction lastIndexOf (buffer, value, byteOffset, encoding) {\n return toBuffer(buffer).lastIndexOf(value, byteOffset, encoding)\n}\n\nfunction swap16 (buffer) {\n return toBuffer(buffer).swap16()\n}\n\nfunction swap32 (buffer) {\n return toBuffer(buffer).swap32()\n}\n\nfunction swap64 (buffer) {\n return toBuffer(buffer).swap64()\n}\n\nfunction toBuffer (buffer) {\n if (Buffer.isBuffer(buffer)) return buffer\n return Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength)\n}\n\nfunction toString (buffer, encoding, start, end) {\n return toBuffer(buffer).toString(encoding, start, end)\n}\n\nfunction write (buffer, string, offset, length, encoding) {\n return toBuffer(buffer).write(string, offset, length, encoding)\n}\n\nfunction writeDoubleLE (buffer, value, offset) {\n return toBuffer(buffer).writeDoubleLE(value, offset)\n}\n\nfunction writeFloatLE (buffer, value, offset) {\n return toBuffer(buffer).writeFloatLE(value, offset)\n}\n\nfunction writeUInt32LE (buffer, value, offset) {\n return toBuffer(buffer).writeUInt32LE(value, offset)\n}\n\nfunction writeInt32LE (buffer, value, offset) {\n return toBuffer(buffer).writeInt32LE(value, offset)\n}\n\nfunction readDoubleLE (buffer, offset) {\n return toBuffer(buffer).readDoubleLE(offset)\n}\n\nfunction readFloatLE (buffer, offset) {\n return toBuffer(buffer).readFloatLE(offset)\n}\n\nfunction readUInt32LE (buffer, offset) {\n return toBuffer(buffer).readUInt32LE(offset)\n}\n\nfunction readInt32LE (buffer, offset) {\n return toBuffer(buffer).readInt32LE(offset)\n}\n\nmodule.exports = {\n isBuffer,\n isEncoding,\n alloc,\n allocUnsafe,\n allocUnsafeSlow,\n byteLength,\n compare,\n concat,\n copy,\n equals,\n fill,\n from,\n includes,\n indexOf,\n lastIndexOf,\n swap16,\n swap32,\n swap64,\n toBuffer,\n toString,\n write,\n writeDoubleLE,\n writeFloatLE,\n writeUInt32LE,\n writeInt32LE,\n readDoubleLE,\n readFloatLE,\n readUInt32LE,\n readInt32LE\n}\n","'use strict';\nmodule.exports = balanced;\nfunction balanced(a, b, str) {\n if (a instanceof RegExp) a = maybeMatch(a, str);\n if (b instanceof RegExp) b = maybeMatch(b, str);\n\n var r = range(a, b, str);\n\n return r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + a.length, r[1]),\n post: str.slice(r[1] + b.length)\n };\n}\n\nfunction maybeMatch(reg, str) {\n var m = str.match(reg);\n return m ? m[0] : null;\n}\n\nbalanced.range = range;\nfunction range(a, b, str) {\n var begs, beg, left, right, result;\n var ai = str.indexOf(a);\n var bi = str.indexOf(b, ai + 1);\n var i = ai;\n\n if (ai >= 0 && bi > 0) {\n if(a===b) {\n return [ai, bi];\n }\n begs = [];\n left = str.length;\n\n while (i >= 0 && !result) {\n if (i == ai) {\n begs.push(i);\n ai = str.indexOf(a, i + 1);\n } else if (begs.length == 1) {\n result = [ begs.pop(), bi ];\n } else {\n beg = begs.pop();\n if (beg < left) {\n left = beg;\n right = bi;\n }\n\n bi = str.indexOf(b, i + 1);\n }\n\n i = ai < bi && ai >= 0 ? ai : bi;\n }\n\n if (begs.length) {\n result = [ left, right ];\n }\n }\n\n return result;\n}\n","var register = require(\"./lib/register\");\nvar addHook = require(\"./lib/add\");\nvar removeHook = require(\"./lib/remove\");\n\n// bind with array of arguments: https://stackoverflow.com/a/21792913\nvar bind = Function.bind;\nvar bindable = bind.bind(bind);\n\nfunction bindApi(hook, state, name) {\n var removeHookRef = bindable(removeHook, null).apply(\n null,\n name ? [state, name] : [state]\n );\n hook.api = { remove: removeHookRef };\n hook.remove = removeHookRef;\n [\"before\", \"error\", \"after\", \"wrap\"].forEach(function (kind) {\n var args = name ? [state, kind, name] : [state, kind];\n hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);\n });\n}\n\nfunction HookSingular() {\n var singularHookName = \"h\";\n var singularHookState = {\n registry: {},\n };\n var singularHook = register.bind(null, singularHookState, singularHookName);\n bindApi(singularHook, singularHookState, singularHookName);\n return singularHook;\n}\n\nfunction HookCollection() {\n var state = {\n registry: {},\n };\n\n var hook = register.bind(null, state);\n bindApi(hook, state);\n\n return hook;\n}\n\nvar collectionHookDeprecationMessageDisplayed = false;\nfunction Hook() {\n if (!collectionHookDeprecationMessageDisplayed) {\n console.warn(\n '[before-after-hook]: \"Hook()\" repurposing warning, use \"Hook.Collection()\". Read more: https://git.io/upgrade-before-after-hook-to-1.4'\n );\n collectionHookDeprecationMessageDisplayed = true;\n }\n return HookCollection();\n}\n\nHook.Singular = HookSingular.bind();\nHook.Collection = HookCollection.bind();\n\nmodule.exports = Hook;\n// expose constructors as a named property for TypeScript\nmodule.exports.Hook = Hook;\nmodule.exports.Singular = Hook.Singular;\nmodule.exports.Collection = Hook.Collection;\n","module.exports = addHook;\n\nfunction addHook(state, kind, name, hook) {\n var orig = hook;\n if (!state.registry[name]) {\n state.registry[name] = [];\n }\n\n if (kind === \"before\") {\n hook = function (method, options) {\n return Promise.resolve()\n .then(orig.bind(null, options))\n .then(method.bind(null, options));\n };\n }\n\n if (kind === \"after\") {\n hook = function (method, options) {\n var result;\n return Promise.resolve()\n .then(method.bind(null, options))\n .then(function (result_) {\n result = result_;\n return orig(result, options);\n })\n .then(function () {\n return result;\n });\n };\n }\n\n if (kind === \"error\") {\n hook = function (method, options) {\n return Promise.resolve()\n .then(method.bind(null, options))\n .catch(function (error) {\n return orig(error, options);\n });\n };\n }\n\n state.registry[name].push({\n hook: hook,\n orig: orig,\n });\n}\n","module.exports = register;\n\nfunction register(state, name, method, options) {\n if (typeof method !== \"function\") {\n throw new Error(\"method for before hook must be a function\");\n }\n\n if (!options) {\n options = {};\n }\n\n if (Array.isArray(name)) {\n return name.reverse().reduce(function (callback, name) {\n return register.bind(null, state, name, callback, options);\n }, method)();\n }\n\n return Promise.resolve().then(function () {\n if (!state.registry[name]) {\n return method(options);\n }\n\n return state.registry[name].reduce(function (method, registered) {\n return registered.hook.bind(null, method, options);\n }, method)();\n });\n}\n","module.exports = removeHook;\n\nfunction removeHook(state, name, method) {\n if (!state.registry[name]) {\n return;\n }\n\n var index = state.registry[name]\n .map(function (registered) {\n return registered.orig;\n })\n .indexOf(method);\n\n if (index === -1) {\n return;\n }\n\n state.registry[name].splice(index, 1);\n}\n","var Chainsaw = require('chainsaw');\nvar EventEmitter = require('events').EventEmitter;\nvar Buffers = require('buffers');\nvar Vars = require('./lib/vars.js');\nvar Stream = require('stream').Stream;\n\nexports = module.exports = function (bufOrEm, eventName) {\n if (Buffer.isBuffer(bufOrEm)) {\n return exports.parse(bufOrEm);\n }\n \n var s = exports.stream();\n if (bufOrEm && bufOrEm.pipe) {\n bufOrEm.pipe(s);\n }\n else if (bufOrEm) {\n bufOrEm.on(eventName || 'data', function (buf) {\n s.write(buf);\n });\n \n bufOrEm.on('end', function () {\n s.end();\n });\n }\n return s;\n};\n\nexports.stream = function (input) {\n if (input) return exports.apply(null, arguments);\n \n var pending = null;\n function getBytes (bytes, cb, skip) {\n pending = {\n bytes : bytes,\n skip : skip,\n cb : function (buf) {\n pending = null;\n cb(buf);\n },\n };\n dispatch();\n }\n \n var offset = null;\n function dispatch () {\n if (!pending) {\n if (caughtEnd) done = true;\n return;\n }\n if (typeof pending === 'function') {\n pending();\n }\n else {\n var bytes = offset + pending.bytes;\n \n if (buffers.length >= bytes) {\n var buf;\n if (offset == null) {\n buf = buffers.splice(0, bytes);\n if (!pending.skip) {\n buf = buf.slice();\n }\n }\n else {\n if (!pending.skip) {\n buf = buffers.slice(offset, bytes);\n }\n offset = bytes;\n }\n \n if (pending.skip) {\n pending.cb();\n }\n else {\n pending.cb(buf);\n }\n }\n }\n }\n \n function builder (saw) {\n function next () { if (!done) saw.next() }\n \n var self = words(function (bytes, cb) {\n return function (name) {\n getBytes(bytes, function (buf) {\n vars.set(name, cb(buf));\n next();\n });\n };\n });\n \n self.tap = function (cb) {\n saw.nest(cb, vars.store);\n };\n \n self.into = function (key, cb) {\n if (!vars.get(key)) vars.set(key, {});\n var parent = vars;\n vars = Vars(parent.get(key));\n \n saw.nest(function () {\n cb.apply(this, arguments);\n this.tap(function () {\n vars = parent;\n });\n }, vars.store);\n };\n \n self.flush = function () {\n vars.store = {};\n next();\n };\n \n self.loop = function (cb) {\n var end = false;\n \n saw.nest(false, function loop () {\n this.vars = vars.store;\n cb.call(this, function () {\n end = true;\n next();\n }, vars.store);\n this.tap(function () {\n if (end) saw.next()\n else loop.call(this)\n }.bind(this));\n }, vars.store);\n };\n \n self.buffer = function (name, bytes) {\n if (typeof bytes === 'string') {\n bytes = vars.get(bytes);\n }\n \n getBytes(bytes, function (buf) {\n vars.set(name, buf);\n next();\n });\n };\n \n self.skip = function (bytes) {\n if (typeof bytes === 'string') {\n bytes = vars.get(bytes);\n }\n \n getBytes(bytes, function () {\n next();\n });\n };\n \n self.scan = function find (name, search) {\n if (typeof search === 'string') {\n search = new Buffer(search);\n }\n else if (!Buffer.isBuffer(search)) {\n throw new Error('search must be a Buffer or a string');\n }\n \n var taken = 0;\n pending = function () {\n var pos = buffers.indexOf(search, offset + taken);\n var i = pos-offset-taken;\n if (pos !== -1) {\n pending = null;\n if (offset != null) {\n vars.set(\n name,\n buffers.slice(offset, offset + taken + i)\n );\n offset += taken + i + search.length;\n }\n else {\n vars.set(\n name,\n buffers.slice(0, taken + i)\n );\n buffers.splice(0, taken + i + search.length);\n }\n next();\n dispatch();\n } else {\n i = Math.max(buffers.length - search.length - offset - taken, 0);\n\t\t\t\t}\n taken += i;\n };\n dispatch();\n };\n \n self.peek = function (cb) {\n offset = 0;\n saw.nest(function () {\n cb.call(this, vars.store);\n this.tap(function () {\n offset = null;\n });\n });\n };\n \n return self;\n };\n \n var stream = Chainsaw.light(builder);\n stream.writable = true;\n \n var buffers = Buffers();\n \n stream.write = function (buf) {\n buffers.push(buf);\n dispatch();\n };\n \n var vars = Vars();\n \n var done = false, caughtEnd = false;\n stream.end = function () {\n caughtEnd = true;\n };\n \n stream.pipe = Stream.prototype.pipe;\n Object.getOwnPropertyNames(EventEmitter.prototype).forEach(function (name) {\n stream[name] = EventEmitter.prototype[name];\n });\n \n return stream;\n};\n\nexports.parse = function parse (buffer) {\n var self = words(function (bytes, cb) {\n return function (name) {\n if (offset + bytes <= buffer.length) {\n var buf = buffer.slice(offset, offset + bytes);\n offset += bytes;\n vars.set(name, cb(buf));\n }\n else {\n vars.set(name, null);\n }\n return self;\n };\n });\n \n var offset = 0;\n var vars = Vars();\n self.vars = vars.store;\n \n self.tap = function (cb) {\n cb.call(self, vars.store);\n return self;\n };\n \n self.into = function (key, cb) {\n if (!vars.get(key)) {\n vars.set(key, {});\n }\n var parent = vars;\n vars = Vars(parent.get(key));\n cb.call(self, vars.store);\n vars = parent;\n return self;\n };\n \n self.loop = function (cb) {\n var end = false;\n var ender = function () { end = true };\n while (end === false) {\n cb.call(self, ender, vars.store);\n }\n return self;\n };\n \n self.buffer = function (name, size) {\n if (typeof size === 'string') {\n size = vars.get(size);\n }\n var buf = buffer.slice(offset, Math.min(buffer.length, offset + size));\n offset += size;\n vars.set(name, buf);\n \n return self;\n };\n \n self.skip = function (bytes) {\n if (typeof bytes === 'string') {\n bytes = vars.get(bytes);\n }\n offset += bytes;\n \n return self;\n };\n \n self.scan = function (name, search) {\n if (typeof search === 'string') {\n search = new Buffer(search);\n }\n else if (!Buffer.isBuffer(search)) {\n throw new Error('search must be a Buffer or a string');\n }\n vars.set(name, null);\n \n // simple but slow string search\n for (var i = 0; i + offset <= buffer.length - search.length + 1; i++) {\n for (\n var j = 0;\n j < search.length && buffer[offset+i+j] === search[j];\n j++\n );\n if (j === search.length) break;\n }\n \n vars.set(name, buffer.slice(offset, offset + i));\n offset += i + search.length;\n return self;\n };\n \n self.peek = function (cb) {\n var was = offset;\n cb.call(self, vars.store);\n offset = was;\n return self;\n };\n \n self.flush = function () {\n vars.store = {};\n return self;\n };\n \n self.eof = function () {\n return offset >= buffer.length;\n };\n \n return self;\n};\n\n// convert byte strings to unsigned little endian numbers\nfunction decodeLEu (bytes) {\n var acc = 0;\n for (var i = 0; i < bytes.length; i++) {\n acc += Math.pow(256,i) * bytes[i];\n }\n return acc;\n}\n\n// convert byte strings to unsigned big endian numbers\nfunction decodeBEu (bytes) {\n var acc = 0;\n for (var i = 0; i < bytes.length; i++) {\n acc += Math.pow(256, bytes.length - i - 1) * bytes[i];\n }\n return acc;\n}\n\n// convert byte strings to signed big endian numbers\nfunction decodeBEs (bytes) {\n var val = decodeBEu(bytes);\n if ((bytes[0] & 0x80) == 0x80) {\n val -= Math.pow(256, bytes.length);\n }\n return val;\n}\n\n// convert byte strings to signed little endian numbers\nfunction decodeLEs (bytes) {\n var val = decodeLEu(bytes);\n if ((bytes[bytes.length - 1] & 0x80) == 0x80) {\n val -= Math.pow(256, bytes.length);\n }\n return val;\n}\n\nfunction words (decode) {\n var self = {};\n \n [ 1, 2, 4, 8 ].forEach(function (bytes) {\n var bits = bytes * 8;\n \n self['word' + bits + 'le']\n = self['word' + bits + 'lu']\n = decode(bytes, decodeLEu);\n \n self['word' + bits + 'ls']\n = decode(bytes, decodeLEs);\n \n self['word' + bits + 'be']\n = self['word' + bits + 'bu']\n = decode(bytes, decodeBEu);\n \n self['word' + bits + 'bs']\n = decode(bytes, decodeBEs);\n });\n \n // word8be(n) == word8le(n) for all n\n self.word8 = self.word8u = self.word8be;\n self.word8s = self.word8bs;\n \n return self;\n}\n","module.exports = function (store) {\n function getset (name, value) {\n var node = vars.store;\n var keys = name.split('.');\n keys.slice(0,-1).forEach(function (k) {\n if (node[k] === undefined) node[k] = {};\n node = node[k]\n });\n var key = keys[keys.length - 1];\n if (arguments.length == 1) {\n return node[key];\n }\n else {\n return node[key] = value;\n }\n }\n \n var vars = {\n get : function (name) {\n return getset(name);\n },\n set : function (name, value) {\n return getset(name, value);\n },\n store : store || {},\n };\n return vars;\n};\n","/**\n * This file contains the Bottleneck library (MIT), compiled to ES2017, and without Clustering support.\n * https://github.com/SGrondin/bottleneck\n */\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.Bottleneck = factory());\n}(this, (function () { 'use strict';\n\n\tvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\n\tfunction getCjsExportFromNamespace (n) {\n\t\treturn n && n['default'] || n;\n\t}\n\n\tvar load = function(received, defaults, onto = {}) {\n\t var k, ref, v;\n\t for (k in defaults) {\n\t v = defaults[k];\n\t onto[k] = (ref = received[k]) != null ? ref : v;\n\t }\n\t return onto;\n\t};\n\n\tvar overwrite = function(received, defaults, onto = {}) {\n\t var k, v;\n\t for (k in received) {\n\t v = received[k];\n\t if (defaults[k] !== void 0) {\n\t onto[k] = v;\n\t }\n\t }\n\t return onto;\n\t};\n\n\tvar parser = {\n\t\tload: load,\n\t\toverwrite: overwrite\n\t};\n\n\tvar DLList;\n\n\tDLList = class DLList {\n\t constructor(incr, decr) {\n\t this.incr = incr;\n\t this.decr = decr;\n\t this._first = null;\n\t this._last = null;\n\t this.length = 0;\n\t }\n\n\t push(value) {\n\t var node;\n\t this.length++;\n\t if (typeof this.incr === \"function\") {\n\t this.incr();\n\t }\n\t node = {\n\t value,\n\t prev: this._last,\n\t next: null\n\t };\n\t if (this._last != null) {\n\t this._last.next = node;\n\t this._last = node;\n\t } else {\n\t this._first = this._last = node;\n\t }\n\t return void 0;\n\t }\n\n\t shift() {\n\t var value;\n\t if (this._first == null) {\n\t return;\n\t } else {\n\t this.length--;\n\t if (typeof this.decr === \"function\") {\n\t this.decr();\n\t }\n\t }\n\t value = this._first.value;\n\t if ((this._first = this._first.next) != null) {\n\t this._first.prev = null;\n\t } else {\n\t this._last = null;\n\t }\n\t return value;\n\t }\n\n\t first() {\n\t if (this._first != null) {\n\t return this._first.value;\n\t }\n\t }\n\n\t getArray() {\n\t var node, ref, results;\n\t node = this._first;\n\t results = [];\n\t while (node != null) {\n\t results.push((ref = node, node = node.next, ref.value));\n\t }\n\t return results;\n\t }\n\n\t forEachShift(cb) {\n\t var node;\n\t node = this.shift();\n\t while (node != null) {\n\t (cb(node), node = this.shift());\n\t }\n\t return void 0;\n\t }\n\n\t debug() {\n\t var node, ref, ref1, ref2, results;\n\t node = this._first;\n\t results = [];\n\t while (node != null) {\n\t results.push((ref = node, node = node.next, {\n\t value: ref.value,\n\t prev: (ref1 = ref.prev) != null ? ref1.value : void 0,\n\t next: (ref2 = ref.next) != null ? ref2.value : void 0\n\t }));\n\t }\n\t return results;\n\t }\n\n\t};\n\n\tvar DLList_1 = DLList;\n\n\tvar Events;\n\n\tEvents = class Events {\n\t constructor(instance) {\n\t this.instance = instance;\n\t this._events = {};\n\t if ((this.instance.on != null) || (this.instance.once != null) || (this.instance.removeAllListeners != null)) {\n\t throw new Error(\"An Emitter already exists for this object\");\n\t }\n\t this.instance.on = (name, cb) => {\n\t return this._addListener(name, \"many\", cb);\n\t };\n\t this.instance.once = (name, cb) => {\n\t return this._addListener(name, \"once\", cb);\n\t };\n\t this.instance.removeAllListeners = (name = null) => {\n\t if (name != null) {\n\t return delete this._events[name];\n\t } else {\n\t return this._events = {};\n\t }\n\t };\n\t }\n\n\t _addListener(name, status, cb) {\n\t var base;\n\t if ((base = this._events)[name] == null) {\n\t base[name] = [];\n\t }\n\t this._events[name].push({cb, status});\n\t return this.instance;\n\t }\n\n\t listenerCount(name) {\n\t if (this._events[name] != null) {\n\t return this._events[name].length;\n\t } else {\n\t return 0;\n\t }\n\t }\n\n\t async trigger(name, ...args) {\n\t var e, promises;\n\t try {\n\t if (name !== \"debug\") {\n\t this.trigger(\"debug\", `Event triggered: ${name}`, args);\n\t }\n\t if (this._events[name] == null) {\n\t return;\n\t }\n\t this._events[name] = this._events[name].filter(function(listener) {\n\t return listener.status !== \"none\";\n\t });\n\t promises = this._events[name].map(async(listener) => {\n\t var e, returned;\n\t if (listener.status === \"none\") {\n\t return;\n\t }\n\t if (listener.status === \"once\") {\n\t listener.status = \"none\";\n\t }\n\t try {\n\t returned = typeof listener.cb === \"function\" ? listener.cb(...args) : void 0;\n\t if (typeof (returned != null ? returned.then : void 0) === \"function\") {\n\t return (await returned);\n\t } else {\n\t return returned;\n\t }\n\t } catch (error) {\n\t e = error;\n\t {\n\t this.trigger(\"error\", e);\n\t }\n\t return null;\n\t }\n\t });\n\t return ((await Promise.all(promises))).find(function(x) {\n\t return x != null;\n\t });\n\t } catch (error) {\n\t e = error;\n\t {\n\t this.trigger(\"error\", e);\n\t }\n\t return null;\n\t }\n\t }\n\n\t};\n\n\tvar Events_1 = Events;\n\n\tvar DLList$1, Events$1, Queues;\n\n\tDLList$1 = DLList_1;\n\n\tEvents$1 = Events_1;\n\n\tQueues = class Queues {\n\t constructor(num_priorities) {\n\t var i;\n\t this.Events = new Events$1(this);\n\t this._length = 0;\n\t this._lists = (function() {\n\t var j, ref, results;\n\t results = [];\n\t for (i = j = 1, ref = num_priorities; (1 <= ref ? j <= ref : j >= ref); i = 1 <= ref ? ++j : --j) {\n\t results.push(new DLList$1((() => {\n\t return this.incr();\n\t }), (() => {\n\t return this.decr();\n\t })));\n\t }\n\t return results;\n\t }).call(this);\n\t }\n\n\t incr() {\n\t if (this._length++ === 0) {\n\t return this.Events.trigger(\"leftzero\");\n\t }\n\t }\n\n\t decr() {\n\t if (--this._length === 0) {\n\t return this.Events.trigger(\"zero\");\n\t }\n\t }\n\n\t push(job) {\n\t return this._lists[job.options.priority].push(job);\n\t }\n\n\t queued(priority) {\n\t if (priority != null) {\n\t return this._lists[priority].length;\n\t } else {\n\t return this._length;\n\t }\n\t }\n\n\t shiftAll(fn) {\n\t return this._lists.forEach(function(list) {\n\t return list.forEachShift(fn);\n\t });\n\t }\n\n\t getFirst(arr = this._lists) {\n\t var j, len, list;\n\t for (j = 0, len = arr.length; j < len; j++) {\n\t list = arr[j];\n\t if (list.length > 0) {\n\t return list;\n\t }\n\t }\n\t return [];\n\t }\n\n\t shiftLastFrom(priority) {\n\t return this.getFirst(this._lists.slice(priority).reverse()).shift();\n\t }\n\n\t};\n\n\tvar Queues_1 = Queues;\n\n\tvar BottleneckError;\n\n\tBottleneckError = class BottleneckError extends Error {};\n\n\tvar BottleneckError_1 = BottleneckError;\n\n\tvar BottleneckError$1, DEFAULT_PRIORITY, Job, NUM_PRIORITIES, parser$1;\n\n\tNUM_PRIORITIES = 10;\n\n\tDEFAULT_PRIORITY = 5;\n\n\tparser$1 = parser;\n\n\tBottleneckError$1 = BottleneckError_1;\n\n\tJob = class Job {\n\t constructor(task, args, options, jobDefaults, rejectOnDrop, Events, _states, Promise) {\n\t this.task = task;\n\t this.args = args;\n\t this.rejectOnDrop = rejectOnDrop;\n\t this.Events = Events;\n\t this._states = _states;\n\t this.Promise = Promise;\n\t this.options = parser$1.load(options, jobDefaults);\n\t this.options.priority = this._sanitizePriority(this.options.priority);\n\t if (this.options.id === jobDefaults.id) {\n\t this.options.id = `${this.options.id}-${this._randomIndex()}`;\n\t }\n\t this.promise = new this.Promise((_resolve, _reject) => {\n\t this._resolve = _resolve;\n\t this._reject = _reject;\n\t });\n\t this.retryCount = 0;\n\t }\n\n\t _sanitizePriority(priority) {\n\t var sProperty;\n\t sProperty = ~~priority !== priority ? DEFAULT_PRIORITY : priority;\n\t if (sProperty < 0) {\n\t return 0;\n\t } else if (sProperty > NUM_PRIORITIES - 1) {\n\t return NUM_PRIORITIES - 1;\n\t } else {\n\t return sProperty;\n\t }\n\t }\n\n\t _randomIndex() {\n\t return Math.random().toString(36).slice(2);\n\t }\n\n\t doDrop({error, message = \"This job has been dropped by Bottleneck\"} = {}) {\n\t if (this._states.remove(this.options.id)) {\n\t if (this.rejectOnDrop) {\n\t this._reject(error != null ? error : new BottleneckError$1(message));\n\t }\n\t this.Events.trigger(\"dropped\", {args: this.args, options: this.options, task: this.task, promise: this.promise});\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t }\n\n\t _assertStatus(expected) {\n\t var status;\n\t status = this._states.jobStatus(this.options.id);\n\t if (!(status === expected || (expected === \"DONE\" && status === null))) {\n\t throw new BottleneckError$1(`Invalid job status ${status}, expected ${expected}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`);\n\t }\n\t }\n\n\t doReceive() {\n\t this._states.start(this.options.id);\n\t return this.Events.trigger(\"received\", {args: this.args, options: this.options});\n\t }\n\n\t doQueue(reachedHWM, blocked) {\n\t this._assertStatus(\"RECEIVED\");\n\t this._states.next(this.options.id);\n\t return this.Events.trigger(\"queued\", {args: this.args, options: this.options, reachedHWM, blocked});\n\t }\n\n\t doRun() {\n\t if (this.retryCount === 0) {\n\t this._assertStatus(\"QUEUED\");\n\t this._states.next(this.options.id);\n\t } else {\n\t this._assertStatus(\"EXECUTING\");\n\t }\n\t return this.Events.trigger(\"scheduled\", {args: this.args, options: this.options});\n\t }\n\n\t async doExecute(chained, clearGlobalState, run, free) {\n\t var error, eventInfo, passed;\n\t if (this.retryCount === 0) {\n\t this._assertStatus(\"RUNNING\");\n\t this._states.next(this.options.id);\n\t } else {\n\t this._assertStatus(\"EXECUTING\");\n\t }\n\t eventInfo = {args: this.args, options: this.options, retryCount: this.retryCount};\n\t this.Events.trigger(\"executing\", eventInfo);\n\t try {\n\t passed = (await (chained != null ? chained.schedule(this.options, this.task, ...this.args) : this.task(...this.args)));\n\t if (clearGlobalState()) {\n\t this.doDone(eventInfo);\n\t await free(this.options, eventInfo);\n\t this._assertStatus(\"DONE\");\n\t return this._resolve(passed);\n\t }\n\t } catch (error1) {\n\t error = error1;\n\t return this._onFailure(error, eventInfo, clearGlobalState, run, free);\n\t }\n\t }\n\n\t doExpire(clearGlobalState, run, free) {\n\t var error, eventInfo;\n\t if (this._states.jobStatus(this.options.id === \"RUNNING\")) {\n\t this._states.next(this.options.id);\n\t }\n\t this._assertStatus(\"EXECUTING\");\n\t eventInfo = {args: this.args, options: this.options, retryCount: this.retryCount};\n\t error = new BottleneckError$1(`This job timed out after ${this.options.expiration} ms.`);\n\t return this._onFailure(error, eventInfo, clearGlobalState, run, free);\n\t }\n\n\t async _onFailure(error, eventInfo, clearGlobalState, run, free) {\n\t var retry, retryAfter;\n\t if (clearGlobalState()) {\n\t retry = (await this.Events.trigger(\"failed\", error, eventInfo));\n\t if (retry != null) {\n\t retryAfter = ~~retry;\n\t this.Events.trigger(\"retry\", `Retrying ${this.options.id} after ${retryAfter} ms`, eventInfo);\n\t this.retryCount++;\n\t return run(retryAfter);\n\t } else {\n\t this.doDone(eventInfo);\n\t await free(this.options, eventInfo);\n\t this._assertStatus(\"DONE\");\n\t return this._reject(error);\n\t }\n\t }\n\t }\n\n\t doDone(eventInfo) {\n\t this._assertStatus(\"EXECUTING\");\n\t this._states.next(this.options.id);\n\t return this.Events.trigger(\"done\", eventInfo);\n\t }\n\n\t};\n\n\tvar Job_1 = Job;\n\n\tvar BottleneckError$2, LocalDatastore, parser$2;\n\n\tparser$2 = parser;\n\n\tBottleneckError$2 = BottleneckError_1;\n\n\tLocalDatastore = class LocalDatastore {\n\t constructor(instance, storeOptions, storeInstanceOptions) {\n\t this.instance = instance;\n\t this.storeOptions = storeOptions;\n\t this.clientId = this.instance._randomIndex();\n\t parser$2.load(storeInstanceOptions, storeInstanceOptions, this);\n\t this._nextRequest = this._lastReservoirRefresh = this._lastReservoirIncrease = Date.now();\n\t this._running = 0;\n\t this._done = 0;\n\t this._unblockTime = 0;\n\t this.ready = this.Promise.resolve();\n\t this.clients = {};\n\t this._startHeartbeat();\n\t }\n\n\t _startHeartbeat() {\n\t var base;\n\t if ((this.heartbeat == null) && (((this.storeOptions.reservoirRefreshInterval != null) && (this.storeOptions.reservoirRefreshAmount != null)) || ((this.storeOptions.reservoirIncreaseInterval != null) && (this.storeOptions.reservoirIncreaseAmount != null)))) {\n\t return typeof (base = (this.heartbeat = setInterval(() => {\n\t var amount, incr, maximum, now, reservoir;\n\t now = Date.now();\n\t if ((this.storeOptions.reservoirRefreshInterval != null) && now >= this._lastReservoirRefresh + this.storeOptions.reservoirRefreshInterval) {\n\t this._lastReservoirRefresh = now;\n\t this.storeOptions.reservoir = this.storeOptions.reservoirRefreshAmount;\n\t this.instance._drainAll(this.computeCapacity());\n\t }\n\t if ((this.storeOptions.reservoirIncreaseInterval != null) && now >= this._lastReservoirIncrease + this.storeOptions.reservoirIncreaseInterval) {\n\t ({\n\t reservoirIncreaseAmount: amount,\n\t reservoirIncreaseMaximum: maximum,\n\t reservoir\n\t } = this.storeOptions);\n\t this._lastReservoirIncrease = now;\n\t incr = maximum != null ? Math.min(amount, maximum - reservoir) : amount;\n\t if (incr > 0) {\n\t this.storeOptions.reservoir += incr;\n\t return this.instance._drainAll(this.computeCapacity());\n\t }\n\t }\n\t }, this.heartbeatInterval))).unref === \"function\" ? base.unref() : void 0;\n\t } else {\n\t return clearInterval(this.heartbeat);\n\t }\n\t }\n\n\t async __publish__(message) {\n\t await this.yieldLoop();\n\t return this.instance.Events.trigger(\"message\", message.toString());\n\t }\n\n\t async __disconnect__(flush) {\n\t await this.yieldLoop();\n\t clearInterval(this.heartbeat);\n\t return this.Promise.resolve();\n\t }\n\n\t yieldLoop(t = 0) {\n\t return new this.Promise(function(resolve, reject) {\n\t return setTimeout(resolve, t);\n\t });\n\t }\n\n\t computePenalty() {\n\t var ref;\n\t return (ref = this.storeOptions.penalty) != null ? ref : (15 * this.storeOptions.minTime) || 5000;\n\t }\n\n\t async __updateSettings__(options) {\n\t await this.yieldLoop();\n\t parser$2.overwrite(options, options, this.storeOptions);\n\t this._startHeartbeat();\n\t this.instance._drainAll(this.computeCapacity());\n\t return true;\n\t }\n\n\t async __running__() {\n\t await this.yieldLoop();\n\t return this._running;\n\t }\n\n\t async __queued__() {\n\t await this.yieldLoop();\n\t return this.instance.queued();\n\t }\n\n\t async __done__() {\n\t await this.yieldLoop();\n\t return this._done;\n\t }\n\n\t async __groupCheck__(time) {\n\t await this.yieldLoop();\n\t return (this._nextRequest + this.timeout) < time;\n\t }\n\n\t computeCapacity() {\n\t var maxConcurrent, reservoir;\n\t ({maxConcurrent, reservoir} = this.storeOptions);\n\t if ((maxConcurrent != null) && (reservoir != null)) {\n\t return Math.min(maxConcurrent - this._running, reservoir);\n\t } else if (maxConcurrent != null) {\n\t return maxConcurrent - this._running;\n\t } else if (reservoir != null) {\n\t return reservoir;\n\t } else {\n\t return null;\n\t }\n\t }\n\n\t conditionsCheck(weight) {\n\t var capacity;\n\t capacity = this.computeCapacity();\n\t return (capacity == null) || weight <= capacity;\n\t }\n\n\t async __incrementReservoir__(incr) {\n\t var reservoir;\n\t await this.yieldLoop();\n\t reservoir = this.storeOptions.reservoir += incr;\n\t this.instance._drainAll(this.computeCapacity());\n\t return reservoir;\n\t }\n\n\t async __currentReservoir__() {\n\t await this.yieldLoop();\n\t return this.storeOptions.reservoir;\n\t }\n\n\t isBlocked(now) {\n\t return this._unblockTime >= now;\n\t }\n\n\t check(weight, now) {\n\t return this.conditionsCheck(weight) && (this._nextRequest - now) <= 0;\n\t }\n\n\t async __check__(weight) {\n\t var now;\n\t await this.yieldLoop();\n\t now = Date.now();\n\t return this.check(weight, now);\n\t }\n\n\t async __register__(index, weight, expiration) {\n\t var now, wait;\n\t await this.yieldLoop();\n\t now = Date.now();\n\t if (this.conditionsCheck(weight)) {\n\t this._running += weight;\n\t if (this.storeOptions.reservoir != null) {\n\t this.storeOptions.reservoir -= weight;\n\t }\n\t wait = Math.max(this._nextRequest - now, 0);\n\t this._nextRequest = now + wait + this.storeOptions.minTime;\n\t return {\n\t success: true,\n\t wait,\n\t reservoir: this.storeOptions.reservoir\n\t };\n\t } else {\n\t return {\n\t success: false\n\t };\n\t }\n\t }\n\n\t strategyIsBlock() {\n\t return this.storeOptions.strategy === 3;\n\t }\n\n\t async __submit__(queueLength, weight) {\n\t var blocked, now, reachedHWM;\n\t await this.yieldLoop();\n\t if ((this.storeOptions.maxConcurrent != null) && weight > this.storeOptions.maxConcurrent) {\n\t throw new BottleneckError$2(`Impossible to add a job having a weight of ${weight} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);\n\t }\n\t now = Date.now();\n\t reachedHWM = (this.storeOptions.highWater != null) && queueLength === this.storeOptions.highWater && !this.check(weight, now);\n\t blocked = this.strategyIsBlock() && (reachedHWM || this.isBlocked(now));\n\t if (blocked) {\n\t this._unblockTime = now + this.computePenalty();\n\t this._nextRequest = this._unblockTime + this.storeOptions.minTime;\n\t this.instance._dropAllQueued();\n\t }\n\t return {\n\t reachedHWM,\n\t blocked,\n\t strategy: this.storeOptions.strategy\n\t };\n\t }\n\n\t async __free__(index, weight) {\n\t await this.yieldLoop();\n\t this._running -= weight;\n\t this._done += weight;\n\t this.instance._drainAll(this.computeCapacity());\n\t return {\n\t running: this._running\n\t };\n\t }\n\n\t};\n\n\tvar LocalDatastore_1 = LocalDatastore;\n\n\tvar BottleneckError$3, States;\n\n\tBottleneckError$3 = BottleneckError_1;\n\n\tStates = class States {\n\t constructor(status1) {\n\t this.status = status1;\n\t this._jobs = {};\n\t this.counts = this.status.map(function() {\n\t return 0;\n\t });\n\t }\n\n\t next(id) {\n\t var current, next;\n\t current = this._jobs[id];\n\t next = current + 1;\n\t if ((current != null) && next < this.status.length) {\n\t this.counts[current]--;\n\t this.counts[next]++;\n\t return this._jobs[id]++;\n\t } else if (current != null) {\n\t this.counts[current]--;\n\t return delete this._jobs[id];\n\t }\n\t }\n\n\t start(id) {\n\t var initial;\n\t initial = 0;\n\t this._jobs[id] = initial;\n\t return this.counts[initial]++;\n\t }\n\n\t remove(id) {\n\t var current;\n\t current = this._jobs[id];\n\t if (current != null) {\n\t this.counts[current]--;\n\t delete this._jobs[id];\n\t }\n\t return current != null;\n\t }\n\n\t jobStatus(id) {\n\t var ref;\n\t return (ref = this.status[this._jobs[id]]) != null ? ref : null;\n\t }\n\n\t statusJobs(status) {\n\t var k, pos, ref, results, v;\n\t if (status != null) {\n\t pos = this.status.indexOf(status);\n\t if (pos < 0) {\n\t throw new BottleneckError$3(`status must be one of ${this.status.join(', ')}`);\n\t }\n\t ref = this._jobs;\n\t results = [];\n\t for (k in ref) {\n\t v = ref[k];\n\t if (v === pos) {\n\t results.push(k);\n\t }\n\t }\n\t return results;\n\t } else {\n\t return Object.keys(this._jobs);\n\t }\n\t }\n\n\t statusCounts() {\n\t return this.counts.reduce(((acc, v, i) => {\n\t acc[this.status[i]] = v;\n\t return acc;\n\t }), {});\n\t }\n\n\t};\n\n\tvar States_1 = States;\n\n\tvar DLList$2, Sync;\n\n\tDLList$2 = DLList_1;\n\n\tSync = class Sync {\n\t constructor(name, Promise) {\n\t this.schedule = this.schedule.bind(this);\n\t this.name = name;\n\t this.Promise = Promise;\n\t this._running = 0;\n\t this._queue = new DLList$2();\n\t }\n\n\t isEmpty() {\n\t return this._queue.length === 0;\n\t }\n\n\t async _tryToRun() {\n\t var args, cb, error, reject, resolve, returned, task;\n\t if ((this._running < 1) && this._queue.length > 0) {\n\t this._running++;\n\t ({task, args, resolve, reject} = this._queue.shift());\n\t cb = (await (async function() {\n\t try {\n\t returned = (await task(...args));\n\t return function() {\n\t return resolve(returned);\n\t };\n\t } catch (error1) {\n\t error = error1;\n\t return function() {\n\t return reject(error);\n\t };\n\t }\n\t })());\n\t this._running--;\n\t this._tryToRun();\n\t return cb();\n\t }\n\t }\n\n\t schedule(task, ...args) {\n\t var promise, reject, resolve;\n\t resolve = reject = null;\n\t promise = new this.Promise(function(_resolve, _reject) {\n\t resolve = _resolve;\n\t return reject = _reject;\n\t });\n\t this._queue.push({task, args, resolve, reject});\n\t this._tryToRun();\n\t return promise;\n\t }\n\n\t};\n\n\tvar Sync_1 = Sync;\n\n\tvar version = \"2.19.5\";\n\tvar version$1 = {\n\t\tversion: version\n\t};\n\n\tvar version$2 = /*#__PURE__*/Object.freeze({\n\t\tversion: version,\n\t\tdefault: version$1\n\t});\n\n\tvar require$$2 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar require$$3 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar require$$4 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar Events$2, Group, IORedisConnection$1, RedisConnection$1, Scripts$1, parser$3;\n\n\tparser$3 = parser;\n\n\tEvents$2 = Events_1;\n\n\tRedisConnection$1 = require$$2;\n\n\tIORedisConnection$1 = require$$3;\n\n\tScripts$1 = require$$4;\n\n\tGroup = (function() {\n\t class Group {\n\t constructor(limiterOptions = {}) {\n\t this.deleteKey = this.deleteKey.bind(this);\n\t this.limiterOptions = limiterOptions;\n\t parser$3.load(this.limiterOptions, this.defaults, this);\n\t this.Events = new Events$2(this);\n\t this.instances = {};\n\t this.Bottleneck = Bottleneck_1;\n\t this._startAutoCleanup();\n\t this.sharedConnection = this.connection != null;\n\t if (this.connection == null) {\n\t if (this.limiterOptions.datastore === \"redis\") {\n\t this.connection = new RedisConnection$1(Object.assign({}, this.limiterOptions, {Events: this.Events}));\n\t } else if (this.limiterOptions.datastore === \"ioredis\") {\n\t this.connection = new IORedisConnection$1(Object.assign({}, this.limiterOptions, {Events: this.Events}));\n\t }\n\t }\n\t }\n\n\t key(key = \"\") {\n\t var ref;\n\t return (ref = this.instances[key]) != null ? ref : (() => {\n\t var limiter;\n\t limiter = this.instances[key] = new this.Bottleneck(Object.assign(this.limiterOptions, {\n\t id: `${this.id}-${key}`,\n\t timeout: this.timeout,\n\t connection: this.connection\n\t }));\n\t this.Events.trigger(\"created\", limiter, key);\n\t return limiter;\n\t })();\n\t }\n\n\t async deleteKey(key = \"\") {\n\t var deleted, instance;\n\t instance = this.instances[key];\n\t if (this.connection) {\n\t deleted = (await this.connection.__runCommand__(['del', ...Scripts$1.allKeys(`${this.id}-${key}`)]));\n\t }\n\t if (instance != null) {\n\t delete this.instances[key];\n\t await instance.disconnect();\n\t }\n\t return (instance != null) || deleted > 0;\n\t }\n\n\t limiters() {\n\t var k, ref, results, v;\n\t ref = this.instances;\n\t results = [];\n\t for (k in ref) {\n\t v = ref[k];\n\t results.push({\n\t key: k,\n\t limiter: v\n\t });\n\t }\n\t return results;\n\t }\n\n\t keys() {\n\t return Object.keys(this.instances);\n\t }\n\n\t async clusterKeys() {\n\t var cursor, end, found, i, k, keys, len, next, start;\n\t if (this.connection == null) {\n\t return this.Promise.resolve(this.keys());\n\t }\n\t keys = [];\n\t cursor = null;\n\t start = `b_${this.id}-`.length;\n\t end = \"_settings\".length;\n\t while (cursor !== 0) {\n\t [next, found] = (await this.connection.__runCommand__([\"scan\", cursor != null ? cursor : 0, \"match\", `b_${this.id}-*_settings`, \"count\", 10000]));\n\t cursor = ~~next;\n\t for (i = 0, len = found.length; i < len; i++) {\n\t k = found[i];\n\t keys.push(k.slice(start, -end));\n\t }\n\t }\n\t return keys;\n\t }\n\n\t _startAutoCleanup() {\n\t var base;\n\t clearInterval(this.interval);\n\t return typeof (base = (this.interval = setInterval(async() => {\n\t var e, k, ref, results, time, v;\n\t time = Date.now();\n\t ref = this.instances;\n\t results = [];\n\t for (k in ref) {\n\t v = ref[k];\n\t try {\n\t if ((await v._store.__groupCheck__(time))) {\n\t results.push(this.deleteKey(k));\n\t } else {\n\t results.push(void 0);\n\t }\n\t } catch (error) {\n\t e = error;\n\t results.push(v.Events.trigger(\"error\", e));\n\t }\n\t }\n\t return results;\n\t }, this.timeout / 2))).unref === \"function\" ? base.unref() : void 0;\n\t }\n\n\t updateSettings(options = {}) {\n\t parser$3.overwrite(options, this.defaults, this);\n\t parser$3.overwrite(options, options, this.limiterOptions);\n\t if (options.timeout != null) {\n\t return this._startAutoCleanup();\n\t }\n\t }\n\n\t disconnect(flush = true) {\n\t var ref;\n\t if (!this.sharedConnection) {\n\t return (ref = this.connection) != null ? ref.disconnect(flush) : void 0;\n\t }\n\t }\n\n\t }\n\t Group.prototype.defaults = {\n\t timeout: 1000 * 60 * 5,\n\t connection: null,\n\t Promise: Promise,\n\t id: \"group-key\"\n\t };\n\n\t return Group;\n\n\t}).call(commonjsGlobal);\n\n\tvar Group_1 = Group;\n\n\tvar Batcher, Events$3, parser$4;\n\n\tparser$4 = parser;\n\n\tEvents$3 = Events_1;\n\n\tBatcher = (function() {\n\t class Batcher {\n\t constructor(options = {}) {\n\t this.options = options;\n\t parser$4.load(this.options, this.defaults, this);\n\t this.Events = new Events$3(this);\n\t this._arr = [];\n\t this._resetPromise();\n\t this._lastFlush = Date.now();\n\t }\n\n\t _resetPromise() {\n\t return this._promise = new this.Promise((res, rej) => {\n\t return this._resolve = res;\n\t });\n\t }\n\n\t _flush() {\n\t clearTimeout(this._timeout);\n\t this._lastFlush = Date.now();\n\t this._resolve();\n\t this.Events.trigger(\"batch\", this._arr);\n\t this._arr = [];\n\t return this._resetPromise();\n\t }\n\n\t add(data) {\n\t var ret;\n\t this._arr.push(data);\n\t ret = this._promise;\n\t if (this._arr.length === this.maxSize) {\n\t this._flush();\n\t } else if ((this.maxTime != null) && this._arr.length === 1) {\n\t this._timeout = setTimeout(() => {\n\t return this._flush();\n\t }, this.maxTime);\n\t }\n\t return ret;\n\t }\n\n\t }\n\t Batcher.prototype.defaults = {\n\t maxTime: null,\n\t maxSize: null,\n\t Promise: Promise\n\t };\n\n\t return Batcher;\n\n\t}).call(commonjsGlobal);\n\n\tvar Batcher_1 = Batcher;\n\n\tvar require$$4$1 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar require$$8 = getCjsExportFromNamespace(version$2);\n\n\tvar Bottleneck, DEFAULT_PRIORITY$1, Events$4, Job$1, LocalDatastore$1, NUM_PRIORITIES$1, Queues$1, RedisDatastore$1, States$1, Sync$1, parser$5,\n\t splice = [].splice;\n\n\tNUM_PRIORITIES$1 = 10;\n\n\tDEFAULT_PRIORITY$1 = 5;\n\n\tparser$5 = parser;\n\n\tQueues$1 = Queues_1;\n\n\tJob$1 = Job_1;\n\n\tLocalDatastore$1 = LocalDatastore_1;\n\n\tRedisDatastore$1 = require$$4$1;\n\n\tEvents$4 = Events_1;\n\n\tStates$1 = States_1;\n\n\tSync$1 = Sync_1;\n\n\tBottleneck = (function() {\n\t class Bottleneck {\n\t constructor(options = {}, ...invalid) {\n\t var storeInstanceOptions, storeOptions;\n\t this._addToQueue = this._addToQueue.bind(this);\n\t this._validateOptions(options, invalid);\n\t parser$5.load(options, this.instanceDefaults, this);\n\t this._queues = new Queues$1(NUM_PRIORITIES$1);\n\t this._scheduled = {};\n\t this._states = new States$1([\"RECEIVED\", \"QUEUED\", \"RUNNING\", \"EXECUTING\"].concat(this.trackDoneStatus ? [\"DONE\"] : []));\n\t this._limiter = null;\n\t this.Events = new Events$4(this);\n\t this._submitLock = new Sync$1(\"submit\", this.Promise);\n\t this._registerLock = new Sync$1(\"register\", this.Promise);\n\t storeOptions = parser$5.load(options, this.storeDefaults, {});\n\t this._store = (function() {\n\t if (this.datastore === \"redis\" || this.datastore === \"ioredis\" || (this.connection != null)) {\n\t storeInstanceOptions = parser$5.load(options, this.redisStoreDefaults, {});\n\t return new RedisDatastore$1(this, storeOptions, storeInstanceOptions);\n\t } else if (this.datastore === \"local\") {\n\t storeInstanceOptions = parser$5.load(options, this.localStoreDefaults, {});\n\t return new LocalDatastore$1(this, storeOptions, storeInstanceOptions);\n\t } else {\n\t throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`);\n\t }\n\t }).call(this);\n\t this._queues.on(\"leftzero\", () => {\n\t var ref;\n\t return (ref = this._store.heartbeat) != null ? typeof ref.ref === \"function\" ? ref.ref() : void 0 : void 0;\n\t });\n\t this._queues.on(\"zero\", () => {\n\t var ref;\n\t return (ref = this._store.heartbeat) != null ? typeof ref.unref === \"function\" ? ref.unref() : void 0 : void 0;\n\t });\n\t }\n\n\t _validateOptions(options, invalid) {\n\t if (!((options != null) && typeof options === \"object\" && invalid.length === 0)) {\n\t throw new Bottleneck.prototype.BottleneckError(\"Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.\");\n\t }\n\t }\n\n\t ready() {\n\t return this._store.ready;\n\t }\n\n\t clients() {\n\t return this._store.clients;\n\t }\n\n\t channel() {\n\t return `b_${this.id}`;\n\t }\n\n\t channel_client() {\n\t return `b_${this.id}_${this._store.clientId}`;\n\t }\n\n\t publish(message) {\n\t return this._store.__publish__(message);\n\t }\n\n\t disconnect(flush = true) {\n\t return this._store.__disconnect__(flush);\n\t }\n\n\t chain(_limiter) {\n\t this._limiter = _limiter;\n\t return this;\n\t }\n\n\t queued(priority) {\n\t return this._queues.queued(priority);\n\t }\n\n\t clusterQueued() {\n\t return this._store.__queued__();\n\t }\n\n\t empty() {\n\t return this.queued() === 0 && this._submitLock.isEmpty();\n\t }\n\n\t running() {\n\t return this._store.__running__();\n\t }\n\n\t done() {\n\t return this._store.__done__();\n\t }\n\n\t jobStatus(id) {\n\t return this._states.jobStatus(id);\n\t }\n\n\t jobs(status) {\n\t return this._states.statusJobs(status);\n\t }\n\n\t counts() {\n\t return this._states.statusCounts();\n\t }\n\n\t _randomIndex() {\n\t return Math.random().toString(36).slice(2);\n\t }\n\n\t check(weight = 1) {\n\t return this._store.__check__(weight);\n\t }\n\n\t _clearGlobalState(index) {\n\t if (this._scheduled[index] != null) {\n\t clearTimeout(this._scheduled[index].expiration);\n\t delete this._scheduled[index];\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t }\n\n\t async _free(index, job, options, eventInfo) {\n\t var e, running;\n\t try {\n\t ({running} = (await this._store.__free__(index, options.weight)));\n\t this.Events.trigger(\"debug\", `Freed ${options.id}`, eventInfo);\n\t if (running === 0 && this.empty()) {\n\t return this.Events.trigger(\"idle\");\n\t }\n\t } catch (error1) {\n\t e = error1;\n\t return this.Events.trigger(\"error\", e);\n\t }\n\t }\n\n\t _run(index, job, wait) {\n\t var clearGlobalState, free, run;\n\t job.doRun();\n\t clearGlobalState = this._clearGlobalState.bind(this, index);\n\t run = this._run.bind(this, index, job);\n\t free = this._free.bind(this, index, job);\n\t return this._scheduled[index] = {\n\t timeout: setTimeout(() => {\n\t return job.doExecute(this._limiter, clearGlobalState, run, free);\n\t }, wait),\n\t expiration: job.options.expiration != null ? setTimeout(function() {\n\t return job.doExpire(clearGlobalState, run, free);\n\t }, wait + job.options.expiration) : void 0,\n\t job: job\n\t };\n\t }\n\n\t _drainOne(capacity) {\n\t return this._registerLock.schedule(() => {\n\t var args, index, next, options, queue;\n\t if (this.queued() === 0) {\n\t return this.Promise.resolve(null);\n\t }\n\t queue = this._queues.getFirst();\n\t ({options, args} = next = queue.first());\n\t if ((capacity != null) && options.weight > capacity) {\n\t return this.Promise.resolve(null);\n\t }\n\t this.Events.trigger(\"debug\", `Draining ${options.id}`, {args, options});\n\t index = this._randomIndex();\n\t return this._store.__register__(index, options.weight, options.expiration).then(({success, wait, reservoir}) => {\n\t var empty;\n\t this.Events.trigger(\"debug\", `Drained ${options.id}`, {success, args, options});\n\t if (success) {\n\t queue.shift();\n\t empty = this.empty();\n\t if (empty) {\n\t this.Events.trigger(\"empty\");\n\t }\n\t if (reservoir === 0) {\n\t this.Events.trigger(\"depleted\", empty);\n\t }\n\t this._run(index, next, wait);\n\t return this.Promise.resolve(options.weight);\n\t } else {\n\t return this.Promise.resolve(null);\n\t }\n\t });\n\t });\n\t }\n\n\t _drainAll(capacity, total = 0) {\n\t return this._drainOne(capacity).then((drained) => {\n\t var newCapacity;\n\t if (drained != null) {\n\t newCapacity = capacity != null ? capacity - drained : capacity;\n\t return this._drainAll(newCapacity, total + drained);\n\t } else {\n\t return this.Promise.resolve(total);\n\t }\n\t }).catch((e) => {\n\t return this.Events.trigger(\"error\", e);\n\t });\n\t }\n\n\t _dropAllQueued(message) {\n\t return this._queues.shiftAll(function(job) {\n\t return job.doDrop({message});\n\t });\n\t }\n\n\t stop(options = {}) {\n\t var done, waitForExecuting;\n\t options = parser$5.load(options, this.stopDefaults);\n\t waitForExecuting = (at) => {\n\t var finished;\n\t finished = () => {\n\t var counts;\n\t counts = this._states.counts;\n\t return (counts[0] + counts[1] + counts[2] + counts[3]) === at;\n\t };\n\t return new this.Promise((resolve, reject) => {\n\t if (finished()) {\n\t return resolve();\n\t } else {\n\t return this.on(\"done\", () => {\n\t if (finished()) {\n\t this.removeAllListeners(\"done\");\n\t return resolve();\n\t }\n\t });\n\t }\n\t });\n\t };\n\t done = options.dropWaitingJobs ? (this._run = function(index, next) {\n\t return next.doDrop({\n\t message: options.dropErrorMessage\n\t });\n\t }, this._drainOne = () => {\n\t return this.Promise.resolve(null);\n\t }, this._registerLock.schedule(() => {\n\t return this._submitLock.schedule(() => {\n\t var k, ref, v;\n\t ref = this._scheduled;\n\t for (k in ref) {\n\t v = ref[k];\n\t if (this.jobStatus(v.job.options.id) === \"RUNNING\") {\n\t clearTimeout(v.timeout);\n\t clearTimeout(v.expiration);\n\t v.job.doDrop({\n\t message: options.dropErrorMessage\n\t });\n\t }\n\t }\n\t this._dropAllQueued(options.dropErrorMessage);\n\t return waitForExecuting(0);\n\t });\n\t })) : this.schedule({\n\t priority: NUM_PRIORITIES$1 - 1,\n\t weight: 0\n\t }, () => {\n\t return waitForExecuting(1);\n\t });\n\t this._receive = function(job) {\n\t return job._reject(new Bottleneck.prototype.BottleneckError(options.enqueueErrorMessage));\n\t };\n\t this.stop = () => {\n\t return this.Promise.reject(new Bottleneck.prototype.BottleneckError(\"stop() has already been called\"));\n\t };\n\t return done;\n\t }\n\n\t async _addToQueue(job) {\n\t var args, blocked, error, options, reachedHWM, shifted, strategy;\n\t ({args, options} = job);\n\t try {\n\t ({reachedHWM, blocked, strategy} = (await this._store.__submit__(this.queued(), options.weight)));\n\t } catch (error1) {\n\t error = error1;\n\t this.Events.trigger(\"debug\", `Could not queue ${options.id}`, {args, options, error});\n\t job.doDrop({error});\n\t return false;\n\t }\n\t if (blocked) {\n\t job.doDrop();\n\t return true;\n\t } else if (reachedHWM) {\n\t shifted = strategy === Bottleneck.prototype.strategy.LEAK ? this._queues.shiftLastFrom(options.priority) : strategy === Bottleneck.prototype.strategy.OVERFLOW_PRIORITY ? this._queues.shiftLastFrom(options.priority + 1) : strategy === Bottleneck.prototype.strategy.OVERFLOW ? job : void 0;\n\t if (shifted != null) {\n\t shifted.doDrop();\n\t }\n\t if ((shifted == null) || strategy === Bottleneck.prototype.strategy.OVERFLOW) {\n\t if (shifted == null) {\n\t job.doDrop();\n\t }\n\t return reachedHWM;\n\t }\n\t }\n\t job.doQueue(reachedHWM, blocked);\n\t this._queues.push(job);\n\t await this._drainAll();\n\t return reachedHWM;\n\t }\n\n\t _receive(job) {\n\t if (this._states.jobStatus(job.options.id) != null) {\n\t job._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${job.options.id})`));\n\t return false;\n\t } else {\n\t job.doReceive();\n\t return this._submitLock.schedule(this._addToQueue, job);\n\t }\n\t }\n\n\t submit(...args) {\n\t var cb, fn, job, options, ref, ref1, task;\n\t if (typeof args[0] === \"function\") {\n\t ref = args, [fn, ...args] = ref, [cb] = splice.call(args, -1);\n\t options = parser$5.load({}, this.jobDefaults);\n\t } else {\n\t ref1 = args, [options, fn, ...args] = ref1, [cb] = splice.call(args, -1);\n\t options = parser$5.load(options, this.jobDefaults);\n\t }\n\t task = (...args) => {\n\t return new this.Promise(function(resolve, reject) {\n\t return fn(...args, function(...args) {\n\t return (args[0] != null ? reject : resolve)(args);\n\t });\n\t });\n\t };\n\t job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise);\n\t job.promise.then(function(args) {\n\t return typeof cb === \"function\" ? cb(...args) : void 0;\n\t }).catch(function(args) {\n\t if (Array.isArray(args)) {\n\t return typeof cb === \"function\" ? cb(...args) : void 0;\n\t } else {\n\t return typeof cb === \"function\" ? cb(args) : void 0;\n\t }\n\t });\n\t return this._receive(job);\n\t }\n\n\t schedule(...args) {\n\t var job, options, task;\n\t if (typeof args[0] === \"function\") {\n\t [task, ...args] = args;\n\t options = {};\n\t } else {\n\t [options, task, ...args] = args;\n\t }\n\t job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise);\n\t this._receive(job);\n\t return job.promise;\n\t }\n\n\t wrap(fn) {\n\t var schedule, wrapped;\n\t schedule = this.schedule.bind(this);\n\t wrapped = function(...args) {\n\t return schedule(fn.bind(this), ...args);\n\t };\n\t wrapped.withOptions = function(options, ...args) {\n\t return schedule(options, fn, ...args);\n\t };\n\t return wrapped;\n\t }\n\n\t async updateSettings(options = {}) {\n\t await this._store.__updateSettings__(parser$5.overwrite(options, this.storeDefaults));\n\t parser$5.overwrite(options, this.instanceDefaults, this);\n\t return this;\n\t }\n\n\t currentReservoir() {\n\t return this._store.__currentReservoir__();\n\t }\n\n\t incrementReservoir(incr = 0) {\n\t return this._store.__incrementReservoir__(incr);\n\t }\n\n\t }\n\t Bottleneck.default = Bottleneck;\n\n\t Bottleneck.Events = Events$4;\n\n\t Bottleneck.version = Bottleneck.prototype.version = require$$8.version;\n\n\t Bottleneck.strategy = Bottleneck.prototype.strategy = {\n\t LEAK: 1,\n\t OVERFLOW: 2,\n\t OVERFLOW_PRIORITY: 4,\n\t BLOCK: 3\n\t };\n\n\t Bottleneck.BottleneckError = Bottleneck.prototype.BottleneckError = BottleneckError_1;\n\n\t Bottleneck.Group = Bottleneck.prototype.Group = Group_1;\n\n\t Bottleneck.RedisConnection = Bottleneck.prototype.RedisConnection = require$$2;\n\n\t Bottleneck.IORedisConnection = Bottleneck.prototype.IORedisConnection = require$$3;\n\n\t Bottleneck.Batcher = Bottleneck.prototype.Batcher = Batcher_1;\n\n\t Bottleneck.prototype.jobDefaults = {\n\t priority: DEFAULT_PRIORITY$1,\n\t weight: 1,\n\t expiration: null,\n\t id: \"\"\n\t };\n\n\t Bottleneck.prototype.storeDefaults = {\n\t maxConcurrent: null,\n\t minTime: 0,\n\t highWater: null,\n\t strategy: Bottleneck.prototype.strategy.LEAK,\n\t penalty: null,\n\t reservoir: null,\n\t reservoirRefreshInterval: null,\n\t reservoirRefreshAmount: null,\n\t reservoirIncreaseInterval: null,\n\t reservoirIncreaseAmount: null,\n\t reservoirIncreaseMaximum: null\n\t };\n\n\t Bottleneck.prototype.localStoreDefaults = {\n\t Promise: Promise,\n\t timeout: null,\n\t heartbeatInterval: 250\n\t };\n\n\t Bottleneck.prototype.redisStoreDefaults = {\n\t Promise: Promise,\n\t timeout: null,\n\t heartbeatInterval: 5000,\n\t clientTimeout: 10000,\n\t Redis: null,\n\t clientOptions: {},\n\t clusterNodes: null,\n\t clearDatastore: false,\n\t connection: null\n\t };\n\n\t Bottleneck.prototype.instanceDefaults = {\n\t datastore: \"local\",\n\t connection: null,\n\t id: \"\",\n\t rejectOnDrop: true,\n\t trackDoneStatus: false,\n\t Promise: Promise\n\t };\n\n\t Bottleneck.prototype.stopDefaults = {\n\t enqueueErrorMessage: \"This limiter has been stopped and cannot accept new jobs.\",\n\t dropWaitingJobs: true,\n\t dropErrorMessage: \"This limiter has been stopped.\"\n\t };\n\n\t return Bottleneck;\n\n\t}).call(commonjsGlobal);\n\n\tvar Bottleneck_1 = Bottleneck;\n\n\tvar lib = Bottleneck_1;\n\n\treturn lib;\n\n})));\n","var balanced = require('balanced-match');\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n // I don't know why Bash 4.3 does this, but it does.\n // Anything starting with {} will have the first two bytes preserved\n // but *only* at the top level, so {},a}b will not expand to anything,\n // but a{},b}c will be expanded to [a}c,abc].\n // One could argue that this is a bug in Bash, but since the goal of\n // this module is to match Bash's rules, we escape a leading {}\n if (str.substr(0, 2) === '{}') {\n str = '\\\\{\\\\}' + str.substr(2);\n }\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m) return [str];\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n if (/\\$$/.test(m.pre)) { \n for (var k = 0; k < post.length; k++) {\n var expansion = pre+ '{' + m.body + '}' + post[k];\n expansions.push(expansion);\n }\n } else {\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = m.body.indexOf(',') >= 0;\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,.*\\}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = [];\n\n for (var j = 0; j < n.length; j++) {\n N.push.apply(N, expand(n[j], false));\n }\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n }\n\n return expansions;\n}\n\n","module.exports = Buffers;\n\nfunction Buffers (bufs) {\n if (!(this instanceof Buffers)) return new Buffers(bufs);\n this.buffers = bufs || [];\n this.length = this.buffers.reduce(function (size, buf) {\n return size + buf.length\n }, 0);\n}\n\nBuffers.prototype.push = function () {\n for (var i = 0; i < arguments.length; i++) {\n if (!Buffer.isBuffer(arguments[i])) {\n throw new TypeError('Tried to push a non-buffer');\n }\n }\n \n for (var i = 0; i < arguments.length; i++) {\n var buf = arguments[i];\n this.buffers.push(buf);\n this.length += buf.length;\n }\n return this.length;\n};\n\nBuffers.prototype.unshift = function () {\n for (var i = 0; i < arguments.length; i++) {\n if (!Buffer.isBuffer(arguments[i])) {\n throw new TypeError('Tried to unshift a non-buffer');\n }\n }\n \n for (var i = 0; i < arguments.length; i++) {\n var buf = arguments[i];\n this.buffers.unshift(buf);\n this.length += buf.length;\n }\n return this.length;\n};\n\nBuffers.prototype.copy = function (dst, dStart, start, end) {\n return this.slice(start, end).copy(dst, dStart, 0, end - start);\n};\n\nBuffers.prototype.splice = function (i, howMany) {\n var buffers = this.buffers;\n var index = i >= 0 ? i : this.length - i;\n var reps = [].slice.call(arguments, 2);\n \n if (howMany === undefined) {\n howMany = this.length - index;\n }\n else if (howMany > this.length - index) {\n howMany = this.length - index;\n }\n \n for (var i = 0; i < reps.length; i++) {\n this.length += reps[i].length;\n }\n \n var removed = new Buffers();\n var bytes = 0;\n \n var startBytes = 0;\n for (\n var ii = 0;\n ii < buffers.length && startBytes + buffers[ii].length < index;\n ii ++\n ) { startBytes += buffers[ii].length }\n \n if (index - startBytes > 0) {\n var start = index - startBytes;\n \n if (start + howMany < buffers[ii].length) {\n removed.push(buffers[ii].slice(start, start + howMany));\n \n var orig = buffers[ii];\n //var buf = new Buffer(orig.length - howMany);\n var buf0 = new Buffer(start);\n for (var i = 0; i < start; i++) {\n buf0[i] = orig[i];\n }\n \n var buf1 = new Buffer(orig.length - start - howMany);\n for (var i = start + howMany; i < orig.length; i++) {\n buf1[ i - howMany - start ] = orig[i]\n }\n \n if (reps.length > 0) {\n var reps_ = reps.slice();\n reps_.unshift(buf0);\n reps_.push(buf1);\n buffers.splice.apply(buffers, [ ii, 1 ].concat(reps_));\n ii += reps_.length;\n reps = [];\n }\n else {\n buffers.splice(ii, 1, buf0, buf1);\n //buffers[ii] = buf;\n ii += 2;\n }\n }\n else {\n removed.push(buffers[ii].slice(start));\n buffers[ii] = buffers[ii].slice(0, start);\n ii ++;\n }\n }\n \n if (reps.length > 0) {\n buffers.splice.apply(buffers, [ ii, 0 ].concat(reps));\n ii += reps.length;\n }\n \n while (removed.length < howMany) {\n var buf = buffers[ii];\n var len = buf.length;\n var take = Math.min(len, howMany - removed.length);\n \n if (take === len) {\n removed.push(buf);\n buffers.splice(ii, 1);\n }\n else {\n removed.push(buf.slice(0, take));\n buffers[ii] = buffers[ii].slice(take);\n }\n }\n \n this.length -= removed.length;\n \n return removed;\n};\n \nBuffers.prototype.slice = function (i, j) {\n var buffers = this.buffers;\n if (j === undefined) j = this.length;\n if (i === undefined) i = 0;\n \n if (j > this.length) j = this.length;\n \n var startBytes = 0;\n for (\n var si = 0;\n si < buffers.length && startBytes + buffers[si].length <= i;\n si ++\n ) { startBytes += buffers[si].length }\n \n var target = new Buffer(j - i);\n \n var ti = 0;\n for (var ii = si; ti < j - i && ii < buffers.length; ii++) {\n var len = buffers[ii].length;\n \n var start = ti === 0 ? i - startBytes : 0;\n var end = ti + len >= j - i\n ? Math.min(start + (j - i) - ti, len)\n : len\n ;\n \n buffers[ii].copy(target, ti, start, end);\n ti += end - start;\n }\n \n return target;\n};\n\nBuffers.prototype.pos = function (i) {\n if (i < 0 || i >= this.length) throw new Error('oob');\n var l = i, bi = 0, bu = null;\n for (;;) {\n bu = this.buffers[bi];\n if (l < bu.length) {\n return {buf: bi, offset: l};\n } else {\n l -= bu.length;\n }\n bi++;\n }\n};\n\nBuffers.prototype.get = function get (i) {\n var pos = this.pos(i);\n\n return this.buffers[pos.buf].get(pos.offset);\n};\n\nBuffers.prototype.set = function set (i, b) {\n var pos = this.pos(i);\n\n return this.buffers[pos.buf].set(pos.offset, b);\n};\n\nBuffers.prototype.indexOf = function (needle, offset) {\n if (\"string\" === typeof needle) {\n needle = new Buffer(needle);\n } else if (needle instanceof Buffer) {\n // already a buffer\n } else {\n throw new Error('Invalid type for a search string');\n }\n\n if (!needle.length) {\n return 0;\n }\n\n if (!this.length) {\n return -1;\n }\n\n var i = 0, j = 0, match = 0, mstart, pos = 0;\n\n // start search from a particular point in the virtual buffer\n if (offset) {\n var p = this.pos(offset);\n i = p.buf;\n j = p.offset;\n pos = offset;\n }\n\n // for each character in virtual buffer\n for (;;) {\n while (j >= this.buffers[i].length) {\n j = 0;\n i++;\n\n if (i >= this.buffers.length) {\n // search string not found\n return -1;\n }\n }\n\n var char = this.buffers[i][j];\n\n if (char == needle[match]) {\n // keep track where match started\n if (match == 0) {\n mstart = {\n i: i,\n j: j,\n pos: pos\n };\n }\n match++;\n if (match == needle.length) {\n // full match\n return mstart.pos;\n }\n } else if (match != 0) {\n // a partial match ended, go back to match starting position\n // this will continue the search at the next character\n i = mstart.i;\n j = mstart.j;\n pos = mstart.pos;\n match = 0;\n }\n\n j++;\n pos++;\n }\n};\n\nBuffers.prototype.toBuffer = function() {\n return this.slice();\n}\n\nBuffers.prototype.toString = function(encoding, start, end) {\n return this.slice(start, end).toString(encoding);\n}\n","var Traverse = require('traverse');\nvar EventEmitter = require('events').EventEmitter;\n\nmodule.exports = Chainsaw;\nfunction Chainsaw (builder) {\n var saw = Chainsaw.saw(builder, {});\n var r = builder.call(saw.handlers, saw);\n if (r !== undefined) saw.handlers = r;\n saw.record();\n return saw.chain();\n};\n\nChainsaw.light = function ChainsawLight (builder) {\n var saw = Chainsaw.saw(builder, {});\n var r = builder.call(saw.handlers, saw);\n if (r !== undefined) saw.handlers = r;\n return saw.chain();\n};\n\nChainsaw.saw = function (builder, handlers) {\n var saw = new EventEmitter;\n saw.handlers = handlers;\n saw.actions = [];\n\n saw.chain = function () {\n var ch = Traverse(saw.handlers).map(function (node) {\n if (this.isRoot) return node;\n var ps = this.path;\n\n if (typeof node === 'function') {\n this.update(function () {\n saw.actions.push({\n path : ps,\n args : [].slice.call(arguments)\n });\n return ch;\n });\n }\n });\n\n process.nextTick(function () {\n saw.emit('begin');\n saw.next();\n });\n\n return ch;\n };\n\n saw.pop = function () {\n return saw.actions.shift();\n };\n\n saw.next = function () {\n var action = saw.pop();\n\n if (!action) {\n saw.emit('end');\n }\n else if (!action.trap) {\n var node = saw.handlers;\n action.path.forEach(function (key) { node = node[key] });\n node.apply(saw.handlers, action.args);\n }\n };\n\n saw.nest = function (cb) {\n var args = [].slice.call(arguments, 1);\n var autonext = true;\n\n if (typeof cb === 'boolean') {\n var autonext = cb;\n cb = args.shift();\n }\n\n var s = Chainsaw.saw(builder, {});\n var r = builder.call(s.handlers, s);\n\n if (r !== undefined) s.handlers = r;\n\n // If we are recording...\n if (\"undefined\" !== typeof saw.step) {\n // ... our children should, too\n s.record();\n }\n\n cb.apply(s.chain(), args);\n if (autonext !== false) s.on('end', saw.next);\n };\n\n saw.record = function () {\n upgradeChainsaw(saw);\n };\n\n ['trap', 'down', 'jump'].forEach(function (method) {\n saw[method] = function () {\n throw new Error(\"To use the trap, down and jump features, please \"+\n \"call record() first to start recording actions.\");\n };\n });\n\n return saw;\n};\n\nfunction upgradeChainsaw(saw) {\n saw.step = 0;\n\n // override pop\n saw.pop = function () {\n return saw.actions[saw.step++];\n };\n\n saw.trap = function (name, cb) {\n var ps = Array.isArray(name) ? name : [name];\n saw.actions.push({\n path : ps,\n step : saw.step,\n cb : cb,\n trap : true\n });\n };\n\n saw.down = function (name) {\n var ps = (Array.isArray(name) ? name : [name]).join('/');\n var i = saw.actions.slice(saw.step).map(function (x) {\n if (x.trap && x.step <= saw.step) return false;\n return x.path.join('/') == ps;\n }).indexOf(true);\n\n if (i >= 0) saw.step += i;\n else saw.step = saw.actions.length;\n\n var act = saw.actions[saw.step - 1];\n if (act && act.trap) {\n // It's a trap!\n saw.step = act.step;\n act.cb();\n }\n else saw.next();\n };\n\n saw.jump = function (step) {\n saw.step = step;\n saw.next();\n };\n};\n","var util = require('util');\nvar Stream = require('stream').Stream;\nvar DelayedStream = require('delayed-stream');\n\nmodule.exports = CombinedStream;\nfunction CombinedStream() {\n this.writable = false;\n this.readable = true;\n this.dataSize = 0;\n this.maxDataSize = 2 * 1024 * 1024;\n this.pauseStreams = true;\n\n this._released = false;\n this._streams = [];\n this._currentStream = null;\n this._insideLoop = false;\n this._pendingNext = false;\n}\nutil.inherits(CombinedStream, Stream);\n\nCombinedStream.create = function(options) {\n var combinedStream = new this();\n\n options = options || {};\n for (var option in options) {\n combinedStream[option] = options[option];\n }\n\n return combinedStream;\n};\n\nCombinedStream.isStreamLike = function(stream) {\n return (typeof stream !== 'function')\n && (typeof stream !== 'string')\n && (typeof stream !== 'boolean')\n && (typeof stream !== 'number')\n && (!Buffer.isBuffer(stream));\n};\n\nCombinedStream.prototype.append = function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n\n if (isStreamLike) {\n if (!(stream instanceof DelayedStream)) {\n var newStream = DelayedStream.create(stream, {\n maxDataSize: Infinity,\n pauseStream: this.pauseStreams,\n });\n stream.on('data', this._checkDataSize.bind(this));\n stream = newStream;\n }\n\n this._handleErrors(stream);\n\n if (this.pauseStreams) {\n stream.pause();\n }\n }\n\n this._streams.push(stream);\n return this;\n};\n\nCombinedStream.prototype.pipe = function(dest, options) {\n Stream.prototype.pipe.call(this, dest, options);\n this.resume();\n return dest;\n};\n\nCombinedStream.prototype._getNext = function() {\n this._currentStream = null;\n\n if (this._insideLoop) {\n this._pendingNext = true;\n return; // defer call\n }\n\n this._insideLoop = true;\n try {\n do {\n this._pendingNext = false;\n this._realGetNext();\n } while (this._pendingNext);\n } finally {\n this._insideLoop = false;\n }\n};\n\nCombinedStream.prototype._realGetNext = function() {\n var stream = this._streams.shift();\n\n\n if (typeof stream == 'undefined') {\n this.end();\n return;\n }\n\n if (typeof stream !== 'function') {\n this._pipeNext(stream);\n return;\n }\n\n var getStream = stream;\n getStream(function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('data', this._checkDataSize.bind(this));\n this._handleErrors(stream);\n }\n\n this._pipeNext(stream);\n }.bind(this));\n};\n\nCombinedStream.prototype._pipeNext = function(stream) {\n this._currentStream = stream;\n\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('end', this._getNext.bind(this));\n stream.pipe(this, {end: false});\n return;\n }\n\n var value = stream;\n this.write(value);\n this._getNext();\n};\n\nCombinedStream.prototype._handleErrors = function(stream) {\n var self = this;\n stream.on('error', function(err) {\n self._emitError(err);\n });\n};\n\nCombinedStream.prototype.write = function(data) {\n this.emit('data', data);\n};\n\nCombinedStream.prototype.pause = function() {\n if (!this.pauseStreams) {\n return;\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause();\n this.emit('pause');\n};\n\nCombinedStream.prototype.resume = function() {\n if (!this._released) {\n this._released = true;\n this.writable = true;\n this._getNext();\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume();\n this.emit('resume');\n};\n\nCombinedStream.prototype.end = function() {\n this._reset();\n this.emit('end');\n};\n\nCombinedStream.prototype.destroy = function() {\n this._reset();\n this.emit('close');\n};\n\nCombinedStream.prototype._reset = function() {\n this.writable = false;\n this._streams = [];\n this._currentStream = null;\n};\n\nCombinedStream.prototype._checkDataSize = function() {\n this._updateDataSize();\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';\n this._emitError(new Error(message));\n};\n\nCombinedStream.prototype._updateDataSize = function() {\n this.dataSize = 0;\n\n var self = this;\n this._streams.forEach(function(stream) {\n if (!stream.dataSize) {\n return;\n }\n\n self.dataSize += stream.dataSize;\n });\n\n if (this._currentStream && this._currentStream.dataSize) {\n this.dataSize += this._currentStream.dataSize;\n }\n};\n\nCombinedStream.prototype._emitError = function(err) {\n this._reset();\n this.emit('error', err);\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar ArchiveEntry = module.exports = function() {};\n\nArchiveEntry.prototype.getName = function() {};\n\nArchiveEntry.prototype.getSize = function() {};\n\nArchiveEntry.prototype.getLastModifiedDate = function() {};\n\nArchiveEntry.prototype.isDirectory = function() {};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar inherits = require('util').inherits;\nvar isStream = require('is-stream');\nvar Transform = require('readable-stream').Transform;\n\nvar ArchiveEntry = require('./archive-entry');\nvar util = require('../util');\n\nvar ArchiveOutputStream = module.exports = function(options) {\n if (!(this instanceof ArchiveOutputStream)) {\n return new ArchiveOutputStream(options);\n }\n\n Transform.call(this, options);\n\n this.offset = 0;\n this._archive = {\n finish: false,\n finished: false,\n processing: false\n };\n};\n\ninherits(ArchiveOutputStream, Transform);\n\nArchiveOutputStream.prototype._appendBuffer = function(zae, source, callback) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._appendStream = function(zae, source, callback) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._emitErrorCallback = function(err) {\n if (err) {\n this.emit('error', err);\n }\n};\n\nArchiveOutputStream.prototype._finish = function(ae) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._normalizeEntry = function(ae) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._transform = function(chunk, encoding, callback) {\n callback(null, chunk);\n};\n\nArchiveOutputStream.prototype.entry = function(ae, source, callback) {\n source = source || null;\n\n if (typeof callback !== 'function') {\n callback = this._emitErrorCallback.bind(this);\n }\n\n if (!(ae instanceof ArchiveEntry)) {\n callback(new Error('not a valid instance of ArchiveEntry'));\n return;\n }\n\n if (this._archive.finish || this._archive.finished) {\n callback(new Error('unacceptable entry after finish'));\n return;\n }\n\n if (this._archive.processing) {\n callback(new Error('already processing an entry'));\n return;\n }\n\n this._archive.processing = true;\n this._normalizeEntry(ae);\n this._entry = ae;\n\n source = util.normalizeInputSource(source);\n\n if (Buffer.isBuffer(source)) {\n this._appendBuffer(ae, source, callback);\n } else if (isStream(source)) {\n this._appendStream(ae, source, callback);\n } else {\n this._archive.processing = false;\n callback(new Error('input source must be valid Stream or Buffer instance'));\n return;\n }\n\n return this;\n};\n\nArchiveOutputStream.prototype.finish = function() {\n if (this._archive.processing) {\n this._archive.finish = true;\n return;\n }\n\n this._finish();\n};\n\nArchiveOutputStream.prototype.getBytesWritten = function() {\n return this.offset;\n};\n\nArchiveOutputStream.prototype.write = function(chunk, cb) {\n if (chunk) {\n this.offset += chunk.length;\n }\n\n return Transform.prototype.write.call(this, chunk, cb);\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nmodule.exports = {\n WORD: 4,\n DWORD: 8,\n EMPTY: Buffer.alloc(0),\n\n SHORT: 2,\n SHORT_MASK: 0xffff,\n SHORT_SHIFT: 16,\n SHORT_ZERO: Buffer.from(Array(2)),\n LONG: 4,\n LONG_ZERO: Buffer.from(Array(4)),\n\n MIN_VERSION_INITIAL: 10,\n MIN_VERSION_DATA_DESCRIPTOR: 20,\n MIN_VERSION_ZIP64: 45,\n VERSION_MADEBY: 45,\n\n METHOD_STORED: 0,\n METHOD_DEFLATED: 8,\n\n PLATFORM_UNIX: 3,\n PLATFORM_FAT: 0,\n\n SIG_LFH: 0x04034b50,\n SIG_DD: 0x08074b50,\n SIG_CFH: 0x02014b50,\n SIG_EOCD: 0x06054b50,\n SIG_ZIP64_EOCD: 0x06064B50,\n SIG_ZIP64_EOCD_LOC: 0x07064B50,\n\n ZIP64_MAGIC_SHORT: 0xffff,\n ZIP64_MAGIC: 0xffffffff,\n ZIP64_EXTRA_ID: 0x0001,\n\n ZLIB_NO_COMPRESSION: 0,\n ZLIB_BEST_SPEED: 1,\n ZLIB_BEST_COMPRESSION: 9,\n ZLIB_DEFAULT_COMPRESSION: -1,\n\n MODE_MASK: 0xFFF,\n DEFAULT_FILE_MODE: 33188, // 010644 = -rw-r--r-- = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH\n DEFAULT_DIR_MODE: 16877, // 040755 = drwxr-xr-x = S_IFDIR | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH\n\n EXT_FILE_ATTR_DIR: 1106051088, // 010173200020 = drwxr-xr-x = (((S_IFDIR | 0755) << 16) | S_DOS_D)\n EXT_FILE_ATTR_FILE: 2175008800, // 020151000040 = -rw-r--r-- = (((S_IFREG | 0644) << 16) | S_DOS_A) >>> 0\n\n // Unix file types\n S_IFMT: 61440, // 0170000 type of file mask\n S_IFIFO: 4096, // 010000 named pipe (fifo)\n S_IFCHR: 8192, // 020000 character special\n S_IFDIR: 16384, // 040000 directory\n S_IFBLK: 24576, // 060000 block special\n S_IFREG: 32768, // 0100000 regular\n S_IFLNK: 40960, // 0120000 symbolic link\n S_IFSOCK: 49152, // 0140000 socket\n\n // DOS file type flags\n S_DOS_A: 32, // 040 Archive\n S_DOS_D: 16, // 020 Directory\n S_DOS_V: 8, // 010 Volume\n S_DOS_S: 4, // 04 System\n S_DOS_H: 2, // 02 Hidden\n S_DOS_R: 1 // 01 Read Only\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar zipUtil = require('./util');\n\nvar DATA_DESCRIPTOR_FLAG = 1 << 3;\nvar ENCRYPTION_FLAG = 1 << 0;\nvar NUMBER_OF_SHANNON_FANO_TREES_FLAG = 1 << 2;\nvar SLIDING_DICTIONARY_SIZE_FLAG = 1 << 1;\nvar STRONG_ENCRYPTION_FLAG = 1 << 6;\nvar UFT8_NAMES_FLAG = 1 << 11;\n\nvar GeneralPurposeBit = module.exports = function() {\n if (!(this instanceof GeneralPurposeBit)) {\n return new GeneralPurposeBit();\n }\n\n this.descriptor = false;\n this.encryption = false;\n this.utf8 = false;\n this.numberOfShannonFanoTrees = 0;\n this.strongEncryption = false;\n this.slidingDictionarySize = 0;\n\n return this;\n};\n\nGeneralPurposeBit.prototype.encode = function() {\n return zipUtil.getShortBytes(\n (this.descriptor ? DATA_DESCRIPTOR_FLAG : 0) |\n (this.utf8 ? UFT8_NAMES_FLAG : 0) |\n (this.encryption ? ENCRYPTION_FLAG : 0) |\n (this.strongEncryption ? STRONG_ENCRYPTION_FLAG : 0)\n );\n};\n\nGeneralPurposeBit.prototype.parse = function(buf, offset) {\n var flag = zipUtil.getShortBytesValue(buf, offset);\n var gbp = new GeneralPurposeBit();\n\n gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG) !== 0);\n gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG) !== 0);\n gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG) !== 0);\n gbp.useEncryption((flag & ENCRYPTION_FLAG) !== 0);\n gbp.setSlidingDictionarySize((flag & SLIDING_DICTIONARY_SIZE_FLAG) !== 0 ? 8192 : 4096);\n gbp.setNumberOfShannonFanoTrees((flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG) !== 0 ? 3 : 2);\n\n return gbp;\n};\n\nGeneralPurposeBit.prototype.setNumberOfShannonFanoTrees = function(n) {\n this.numberOfShannonFanoTrees = n;\n};\n\nGeneralPurposeBit.prototype.getNumberOfShannonFanoTrees = function() {\n return this.numberOfShannonFanoTrees;\n};\n\nGeneralPurposeBit.prototype.setSlidingDictionarySize = function(n) {\n this.slidingDictionarySize = n;\n};\n\nGeneralPurposeBit.prototype.getSlidingDictionarySize = function() {\n return this.slidingDictionarySize;\n};\n\nGeneralPurposeBit.prototype.useDataDescriptor = function(b) {\n this.descriptor = b;\n};\n\nGeneralPurposeBit.prototype.usesDataDescriptor = function() {\n return this.descriptor;\n};\n\nGeneralPurposeBit.prototype.useEncryption = function(b) {\n this.encryption = b;\n};\n\nGeneralPurposeBit.prototype.usesEncryption = function() {\n return this.encryption;\n};\n\nGeneralPurposeBit.prototype.useStrongEncryption = function(b) {\n this.strongEncryption = b;\n};\n\nGeneralPurposeBit.prototype.usesStrongEncryption = function() {\n return this.strongEncryption;\n};\n\nGeneralPurposeBit.prototype.useUTF8ForNames = function(b) {\n this.utf8 = b;\n};\n\nGeneralPurposeBit.prototype.usesUTF8ForNames = function() {\n return this.utf8;\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nmodule.exports = {\n /**\n * Bits used for permissions (and sticky bit)\n */\n PERM_MASK: 4095, // 07777\n\n /**\n * Bits used to indicate the filesystem object type.\n */\n FILE_TYPE_FLAG: 61440, // 0170000\n\n /**\n * Indicates symbolic links.\n */\n LINK_FLAG: 40960, // 0120000\n\n /**\n * Indicates plain files.\n */\n FILE_FLAG: 32768, // 0100000\n\n /**\n * Indicates directories.\n */\n DIR_FLAG: 16384, // 040000\n\n // ----------------------------------------------------------\n // somewhat arbitrary choices that are quite common for shared\n // installations\n // -----------------------------------------------------------\n\n /**\n * Default permissions for symbolic links.\n */\n DEFAULT_LINK_PERM: 511, // 0777\n\n /**\n * Default permissions for directories.\n */\n DEFAULT_DIR_PERM: 493, // 0755\n\n /**\n * Default permissions for plain files.\n */\n DEFAULT_FILE_PERM: 420 // 0644\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar util = module.exports = {};\n\nutil.dateToDos = function(d, forceLocalTime) {\n forceLocalTime = forceLocalTime || false;\n\n var year = forceLocalTime ? d.getFullYear() : d.getUTCFullYear();\n\n if (year < 1980) {\n return 2162688; // 1980-1-1 00:00:00\n } else if (year >= 2044) {\n return 2141175677; // 2043-12-31 23:59:58\n }\n\n var val = {\n year: year,\n month: forceLocalTime ? d.getMonth() : d.getUTCMonth(),\n date: forceLocalTime ? d.getDate() : d.getUTCDate(),\n hours: forceLocalTime ? d.getHours() : d.getUTCHours(),\n minutes: forceLocalTime ? d.getMinutes() : d.getUTCMinutes(),\n seconds: forceLocalTime ? d.getSeconds() : d.getUTCSeconds()\n };\n\n return ((val.year - 1980) << 25) | ((val.month + 1) << 21) | (val.date << 16) |\n (val.hours << 11) | (val.minutes << 5) | (val.seconds / 2);\n};\n\nutil.dosToDate = function(dos) {\n return new Date(((dos >> 25) & 0x7f) + 1980, ((dos >> 21) & 0x0f) - 1, (dos >> 16) & 0x1f, (dos >> 11) & 0x1f, (dos >> 5) & 0x3f, (dos & 0x1f) << 1);\n};\n\nutil.fromDosTime = function(buf) {\n return util.dosToDate(buf.readUInt32LE(0));\n};\n\nutil.getEightBytes = function(v) {\n var buf = Buffer.alloc(8);\n buf.writeUInt32LE(v % 0x0100000000, 0);\n buf.writeUInt32LE((v / 0x0100000000) | 0, 4);\n\n return buf;\n};\n\nutil.getShortBytes = function(v) {\n var buf = Buffer.alloc(2);\n buf.writeUInt16LE((v & 0xFFFF) >>> 0, 0);\n\n return buf;\n};\n\nutil.getShortBytesValue = function(buf, offset) {\n return buf.readUInt16LE(offset);\n};\n\nutil.getLongBytes = function(v) {\n var buf = Buffer.alloc(4);\n buf.writeUInt32LE((v & 0xFFFFFFFF) >>> 0, 0);\n\n return buf;\n};\n\nutil.getLongBytesValue = function(buf, offset) {\n return buf.readUInt32LE(offset);\n};\n\nutil.toDosTime = function(d) {\n return util.getLongBytes(util.dateToDos(d));\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar inherits = require('util').inherits;\nvar normalizePath = require('normalize-path');\n\nvar ArchiveEntry = require('../archive-entry');\nvar GeneralPurposeBit = require('./general-purpose-bit');\nvar UnixStat = require('./unix-stat');\n\nvar constants = require('./constants');\nvar zipUtil = require('./util');\n\nvar ZipArchiveEntry = module.exports = function(name) {\n if (!(this instanceof ZipArchiveEntry)) {\n return new ZipArchiveEntry(name);\n }\n\n ArchiveEntry.call(this);\n\n this.platform = constants.PLATFORM_FAT;\n this.method = -1;\n\n this.name = null;\n this.size = 0;\n this.csize = 0;\n this.gpb = new GeneralPurposeBit();\n this.crc = 0;\n this.time = -1;\n\n this.minver = constants.MIN_VERSION_INITIAL;\n this.mode = -1;\n this.extra = null;\n this.exattr = 0;\n this.inattr = 0;\n this.comment = null;\n\n if (name) {\n this.setName(name);\n }\n};\n\ninherits(ZipArchiveEntry, ArchiveEntry);\n\n/**\n * Returns the extra fields related to the entry.\n *\n * @returns {Buffer}\n */\nZipArchiveEntry.prototype.getCentralDirectoryExtra = function() {\n return this.getExtra();\n};\n\n/**\n * Returns the comment set for the entry.\n *\n * @returns {string}\n */\nZipArchiveEntry.prototype.getComment = function() {\n return this.comment !== null ? this.comment : '';\n};\n\n/**\n * Returns the compressed size of the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getCompressedSize = function() {\n return this.csize;\n};\n\n/**\n * Returns the CRC32 digest for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getCrc = function() {\n return this.crc;\n};\n\n/**\n * Returns the external file attributes for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getExternalAttributes = function() {\n return this.exattr;\n};\n\n/**\n * Returns the extra fields related to the entry.\n *\n * @returns {Buffer}\n */\nZipArchiveEntry.prototype.getExtra = function() {\n return this.extra !== null ? this.extra : constants.EMPTY;\n};\n\n/**\n * Returns the general purpose bits related to the entry.\n *\n * @returns {GeneralPurposeBit}\n */\nZipArchiveEntry.prototype.getGeneralPurposeBit = function() {\n return this.gpb;\n};\n\n/**\n * Returns the internal file attributes for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getInternalAttributes = function() {\n return this.inattr;\n};\n\n/**\n * Returns the last modified date of the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getLastModifiedDate = function() {\n return this.getTime();\n};\n\n/**\n * Returns the extra fields related to the entry.\n *\n * @returns {Buffer}\n */\nZipArchiveEntry.prototype.getLocalFileDataExtra = function() {\n return this.getExtra();\n};\n\n/**\n * Returns the compression method used on the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getMethod = function() {\n return this.method;\n};\n\n/**\n * Returns the filename of the entry.\n *\n * @returns {string}\n */\nZipArchiveEntry.prototype.getName = function() {\n return this.name;\n};\n\n/**\n * Returns the platform on which the entry was made.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getPlatform = function() {\n return this.platform;\n};\n\n/**\n * Returns the size of the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getSize = function() {\n return this.size;\n};\n\n/**\n * Returns a date object representing the last modified date of the entry.\n *\n * @returns {number|Date}\n */\nZipArchiveEntry.prototype.getTime = function() {\n return this.time !== -1 ? zipUtil.dosToDate(this.time) : -1;\n};\n\n/**\n * Returns the DOS timestamp for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getTimeDos = function() {\n return this.time !== -1 ? this.time : 0;\n};\n\n/**\n * Returns the UNIX file permissions for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getUnixMode = function() {\n return this.platform !== constants.PLATFORM_UNIX ? 0 : ((this.getExternalAttributes() >> constants.SHORT_SHIFT) & constants.SHORT_MASK);\n};\n\n/**\n * Returns the version of ZIP needed to extract the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getVersionNeededToExtract = function() {\n return this.minver;\n};\n\n/**\n * Sets the comment of the entry.\n *\n * @param comment\n */\nZipArchiveEntry.prototype.setComment = function(comment) {\n if (Buffer.byteLength(comment) !== comment.length) {\n this.getGeneralPurposeBit().useUTF8ForNames(true);\n }\n\n this.comment = comment;\n};\n\n/**\n * Sets the compressed size of the entry.\n *\n * @param size\n */\nZipArchiveEntry.prototype.setCompressedSize = function(size) {\n if (size < 0) {\n throw new Error('invalid entry compressed size');\n }\n\n this.csize = size;\n};\n\n/**\n * Sets the checksum of the entry.\n *\n * @param crc\n */\nZipArchiveEntry.prototype.setCrc = function(crc) {\n if (crc < 0) {\n throw new Error('invalid entry crc32');\n }\n\n this.crc = crc;\n};\n\n/**\n * Sets the external file attributes of the entry.\n *\n * @param attr\n */\nZipArchiveEntry.prototype.setExternalAttributes = function(attr) {\n this.exattr = attr >>> 0;\n};\n\n/**\n * Sets the extra fields related to the entry.\n *\n * @param extra\n */\nZipArchiveEntry.prototype.setExtra = function(extra) {\n this.extra = extra;\n};\n\n/**\n * Sets the general purpose bits related to the entry.\n *\n * @param gpb\n */\nZipArchiveEntry.prototype.setGeneralPurposeBit = function(gpb) {\n if (!(gpb instanceof GeneralPurposeBit)) {\n throw new Error('invalid entry GeneralPurposeBit');\n }\n\n this.gpb = gpb;\n};\n\n/**\n * Sets the internal file attributes of the entry.\n *\n * @param attr\n */\nZipArchiveEntry.prototype.setInternalAttributes = function(attr) {\n this.inattr = attr;\n};\n\n/**\n * Sets the compression method of the entry.\n *\n * @param method\n */\nZipArchiveEntry.prototype.setMethod = function(method) {\n if (method < 0) {\n throw new Error('invalid entry compression method');\n }\n\n this.method = method;\n};\n\n/**\n * Sets the name of the entry.\n *\n * @param name\n * @param prependSlash\n */\nZipArchiveEntry.prototype.setName = function(name, prependSlash = false) {\n name = normalizePath(name, false)\n .replace(/^\\w+:/, '')\n .replace(/^(\\.\\.\\/|\\/)+/, '');\n\n if (prependSlash) {\n name = `/${name}`;\n }\n\n if (Buffer.byteLength(name) !== name.length) {\n this.getGeneralPurposeBit().useUTF8ForNames(true);\n }\n\n this.name = name;\n};\n\n/**\n * Sets the platform on which the entry was made.\n *\n * @param platform\n */\nZipArchiveEntry.prototype.setPlatform = function(platform) {\n this.platform = platform;\n};\n\n/**\n * Sets the size of the entry.\n *\n * @param size\n */\nZipArchiveEntry.prototype.setSize = function(size) {\n if (size < 0) {\n throw new Error('invalid entry size');\n }\n\n this.size = size;\n};\n\n/**\n * Sets the time of the entry.\n *\n * @param time\n * @param forceLocalTime\n */\nZipArchiveEntry.prototype.setTime = function(time, forceLocalTime) {\n if (!(time instanceof Date)) {\n throw new Error('invalid entry time');\n }\n\n this.time = zipUtil.dateToDos(time, forceLocalTime);\n};\n\n/**\n * Sets the UNIX file permissions for the entry.\n *\n * @param mode\n */\nZipArchiveEntry.prototype.setUnixMode = function(mode) {\n mode |= this.isDirectory() ? constants.S_IFDIR : constants.S_IFREG;\n\n var extattr = 0;\n extattr |= (mode << constants.SHORT_SHIFT) | (this.isDirectory() ? constants.S_DOS_D : constants.S_DOS_A);\n\n this.setExternalAttributes(extattr);\n this.mode = mode & constants.MODE_MASK;\n this.platform = constants.PLATFORM_UNIX;\n};\n\n/**\n * Sets the version of ZIP needed to extract this entry.\n *\n * @param minver\n */\nZipArchiveEntry.prototype.setVersionNeededToExtract = function(minver) {\n this.minver = minver;\n};\n\n/**\n * Returns true if this entry represents a directory.\n *\n * @returns {boolean}\n */\nZipArchiveEntry.prototype.isDirectory = function() {\n return this.getName().slice(-1) === '/';\n};\n\n/**\n * Returns true if this entry represents a unix symlink,\n * in which case the entry's content contains the target path\n * for the symlink.\n *\n * @returns {boolean}\n */\nZipArchiveEntry.prototype.isUnixSymlink = function() {\n return (this.getUnixMode() & UnixStat.FILE_TYPE_FLAG) === UnixStat.LINK_FLAG;\n};\n\n/**\n * Returns true if this entry is using the ZIP64 extension of ZIP.\n *\n * @returns {boolean}\n */\nZipArchiveEntry.prototype.isZip64 = function() {\n return this.csize > constants.ZIP64_MAGIC || this.size > constants.ZIP64_MAGIC;\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar inherits = require('util').inherits;\nvar crc32 = require('crc-32');\nvar {CRC32Stream} = require('crc32-stream');\nvar {DeflateCRC32Stream} = require('crc32-stream');\n\nvar ArchiveOutputStream = require('../archive-output-stream');\nvar ZipArchiveEntry = require('./zip-archive-entry');\nvar GeneralPurposeBit = require('./general-purpose-bit');\n\nvar constants = require('./constants');\nvar util = require('../../util');\nvar zipUtil = require('./util');\n\nvar ZipArchiveOutputStream = module.exports = function(options) {\n if (!(this instanceof ZipArchiveOutputStream)) {\n return new ZipArchiveOutputStream(options);\n }\n\n options = this.options = this._defaults(options);\n\n ArchiveOutputStream.call(this, options);\n\n this._entry = null;\n this._entries = [];\n this._archive = {\n centralLength: 0,\n centralOffset: 0,\n comment: '',\n finish: false,\n finished: false,\n processing: false,\n forceZip64: options.forceZip64,\n forceLocalTime: options.forceLocalTime\n };\n};\n\ninherits(ZipArchiveOutputStream, ArchiveOutputStream);\n\nZipArchiveOutputStream.prototype._afterAppend = function(ae) {\n this._entries.push(ae);\n\n if (ae.getGeneralPurposeBit().usesDataDescriptor()) {\n this._writeDataDescriptor(ae);\n }\n\n this._archive.processing = false;\n this._entry = null;\n\n if (this._archive.finish && !this._archive.finished) {\n this._finish();\n }\n};\n\nZipArchiveOutputStream.prototype._appendBuffer = function(ae, source, callback) {\n if (source.length === 0) {\n ae.setMethod(constants.METHOD_STORED);\n }\n\n var method = ae.getMethod();\n\n if (method === constants.METHOD_STORED) {\n ae.setSize(source.length);\n ae.setCompressedSize(source.length);\n ae.setCrc(crc32.buf(source) >>> 0);\n }\n\n this._writeLocalFileHeader(ae);\n\n if (method === constants.METHOD_STORED) {\n this.write(source);\n this._afterAppend(ae);\n callback(null, ae);\n return;\n } else if (method === constants.METHOD_DEFLATED) {\n this._smartStream(ae, callback).end(source);\n return;\n } else {\n callback(new Error('compression method ' + method + ' not implemented'));\n return;\n }\n};\n\nZipArchiveOutputStream.prototype._appendStream = function(ae, source, callback) {\n ae.getGeneralPurposeBit().useDataDescriptor(true);\n ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR);\n\n this._writeLocalFileHeader(ae);\n\n var smart = this._smartStream(ae, callback);\n source.once('error', function(err) {\n smart.emit('error', err);\n smart.end();\n })\n source.pipe(smart);\n};\n\nZipArchiveOutputStream.prototype._defaults = function(o) {\n if (typeof o !== 'object') {\n o = {};\n }\n\n if (typeof o.zlib !== 'object') {\n o.zlib = {};\n }\n\n if (typeof o.zlib.level !== 'number') {\n o.zlib.level = constants.ZLIB_BEST_SPEED;\n }\n\n o.forceZip64 = !!o.forceZip64;\n o.forceLocalTime = !!o.forceLocalTime;\n\n return o;\n};\n\nZipArchiveOutputStream.prototype._finish = function() {\n this._archive.centralOffset = this.offset;\n\n this._entries.forEach(function(ae) {\n this._writeCentralFileHeader(ae);\n }.bind(this));\n\n this._archive.centralLength = this.offset - this._archive.centralOffset;\n\n if (this.isZip64()) {\n this._writeCentralDirectoryZip64();\n }\n\n this._writeCentralDirectoryEnd();\n\n this._archive.processing = false;\n this._archive.finish = true;\n this._archive.finished = true;\n this.end();\n};\n\nZipArchiveOutputStream.prototype._normalizeEntry = function(ae) {\n if (ae.getMethod() === -1) {\n ae.setMethod(constants.METHOD_DEFLATED);\n }\n\n if (ae.getMethod() === constants.METHOD_DEFLATED) {\n ae.getGeneralPurposeBit().useDataDescriptor(true);\n ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR);\n }\n\n if (ae.getTime() === -1) {\n ae.setTime(new Date(), this._archive.forceLocalTime);\n }\n\n ae._offsets = {\n file: 0,\n data: 0,\n contents: 0,\n };\n};\n\nZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {\n var deflate = ae.getMethod() === constants.METHOD_DEFLATED;\n var process = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();\n var error = null;\n\n function handleStuff() {\n var digest = process.digest().readUInt32BE(0);\n ae.setCrc(digest);\n ae.setSize(process.size());\n ae.setCompressedSize(process.size(true));\n this._afterAppend(ae);\n callback(error, ae);\n }\n\n process.once('end', handleStuff.bind(this));\n process.once('error', function(err) {\n error = err;\n });\n\n process.pipe(this, { end: false });\n\n return process;\n};\n\nZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {\n var records = this._entries.length;\n var size = this._archive.centralLength;\n var offset = this._archive.centralOffset;\n\n if (this.isZip64()) {\n records = constants.ZIP64_MAGIC_SHORT;\n size = constants.ZIP64_MAGIC;\n offset = constants.ZIP64_MAGIC;\n }\n\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_EOCD));\n\n // disk numbers\n this.write(constants.SHORT_ZERO);\n this.write(constants.SHORT_ZERO);\n\n // number of entries\n this.write(zipUtil.getShortBytes(records));\n this.write(zipUtil.getShortBytes(records));\n\n // length and location of CD\n this.write(zipUtil.getLongBytes(size));\n this.write(zipUtil.getLongBytes(offset));\n\n // archive comment\n var comment = this.getComment();\n var commentLength = Buffer.byteLength(comment);\n this.write(zipUtil.getShortBytes(commentLength));\n this.write(comment);\n};\n\nZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() {\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD));\n\n // size of the ZIP64 EOCD record\n this.write(zipUtil.getEightBytes(44));\n\n // version made by\n this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));\n\n // version to extract\n this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));\n\n // disk numbers\n this.write(constants.LONG_ZERO);\n this.write(constants.LONG_ZERO);\n\n // number of entries\n this.write(zipUtil.getEightBytes(this._entries.length));\n this.write(zipUtil.getEightBytes(this._entries.length));\n\n // length and location of CD\n this.write(zipUtil.getEightBytes(this._archive.centralLength));\n this.write(zipUtil.getEightBytes(this._archive.centralOffset));\n\n // extensible data sector\n // not implemented at this time\n\n // end of central directory locator\n this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD_LOC));\n\n // disk number holding the ZIP64 EOCD record\n this.write(constants.LONG_ZERO);\n\n // relative offset of the ZIP64 EOCD record\n this.write(zipUtil.getEightBytes(this._archive.centralOffset + this._archive.centralLength));\n\n // total number of disks\n this.write(zipUtil.getLongBytes(1));\n};\n\nZipArchiveOutputStream.prototype._writeCentralFileHeader = function(ae) {\n var gpb = ae.getGeneralPurposeBit();\n var method = ae.getMethod();\n var fileOffset = ae._offsets.file;\n\n var size = ae.getSize();\n var compressedSize = ae.getCompressedSize();\n\n if (ae.isZip64() || fileOffset > constants.ZIP64_MAGIC) {\n size = constants.ZIP64_MAGIC;\n compressedSize = constants.ZIP64_MAGIC;\n fileOffset = constants.ZIP64_MAGIC;\n\n ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64);\n\n var extraBuf = Buffer.concat([\n zipUtil.getShortBytes(constants.ZIP64_EXTRA_ID),\n zipUtil.getShortBytes(24),\n zipUtil.getEightBytes(ae.getSize()),\n zipUtil.getEightBytes(ae.getCompressedSize()),\n zipUtil.getEightBytes(ae._offsets.file)\n ], 28);\n\n ae.setExtra(extraBuf);\n }\n\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_CFH));\n\n // version made by\n this.write(zipUtil.getShortBytes((ae.getPlatform() << 8) | constants.VERSION_MADEBY));\n\n // version to extract and general bit flag\n this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));\n this.write(gpb.encode());\n\n // compression method\n this.write(zipUtil.getShortBytes(method));\n\n // datetime\n this.write(zipUtil.getLongBytes(ae.getTimeDos()));\n\n // crc32 checksum\n this.write(zipUtil.getLongBytes(ae.getCrc()));\n\n // sizes\n this.write(zipUtil.getLongBytes(compressedSize));\n this.write(zipUtil.getLongBytes(size));\n\n var name = ae.getName();\n var comment = ae.getComment();\n var extra = ae.getCentralDirectoryExtra();\n\n if (gpb.usesUTF8ForNames()) {\n name = Buffer.from(name);\n comment = Buffer.from(comment);\n }\n\n // name length\n this.write(zipUtil.getShortBytes(name.length));\n\n // extra length\n this.write(zipUtil.getShortBytes(extra.length));\n\n // comments length\n this.write(zipUtil.getShortBytes(comment.length));\n\n // disk number start\n this.write(constants.SHORT_ZERO);\n\n // internal attributes\n this.write(zipUtil.getShortBytes(ae.getInternalAttributes()));\n\n // external attributes\n this.write(zipUtil.getLongBytes(ae.getExternalAttributes()));\n\n // relative offset of LFH\n this.write(zipUtil.getLongBytes(fileOffset));\n\n // name\n this.write(name);\n\n // extra\n this.write(extra);\n\n // comment\n this.write(comment);\n};\n\nZipArchiveOutputStream.prototype._writeDataDescriptor = function(ae) {\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_DD));\n\n // crc32 checksum\n this.write(zipUtil.getLongBytes(ae.getCrc()));\n\n // sizes\n if (ae.isZip64()) {\n this.write(zipUtil.getEightBytes(ae.getCompressedSize()));\n this.write(zipUtil.getEightBytes(ae.getSize()));\n } else {\n this.write(zipUtil.getLongBytes(ae.getCompressedSize()));\n this.write(zipUtil.getLongBytes(ae.getSize()));\n }\n};\n\nZipArchiveOutputStream.prototype._writeLocalFileHeader = function(ae) {\n var gpb = ae.getGeneralPurposeBit();\n var method = ae.getMethod();\n var name = ae.getName();\n var extra = ae.getLocalFileDataExtra();\n\n if (ae.isZip64()) {\n gpb.useDataDescriptor(true);\n ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64);\n }\n\n if (gpb.usesUTF8ForNames()) {\n name = Buffer.from(name);\n }\n\n ae._offsets.file = this.offset;\n\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_LFH));\n\n // version to extract and general bit flag\n this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));\n this.write(gpb.encode());\n\n // compression method\n this.write(zipUtil.getShortBytes(method));\n\n // datetime\n this.write(zipUtil.getLongBytes(ae.getTimeDos()));\n\n ae._offsets.data = this.offset;\n\n // crc32 checksum and sizes\n if (gpb.usesDataDescriptor()) {\n this.write(constants.LONG_ZERO);\n this.write(constants.LONG_ZERO);\n this.write(constants.LONG_ZERO);\n } else {\n this.write(zipUtil.getLongBytes(ae.getCrc()));\n this.write(zipUtil.getLongBytes(ae.getCompressedSize()));\n this.write(zipUtil.getLongBytes(ae.getSize()));\n }\n\n // name length\n this.write(zipUtil.getShortBytes(name.length));\n\n // extra length\n this.write(zipUtil.getShortBytes(extra.length));\n\n // name\n this.write(name);\n\n // extra\n this.write(extra);\n\n ae._offsets.contents = this.offset;\n};\n\nZipArchiveOutputStream.prototype.getComment = function(comment) {\n return this._archive.comment !== null ? this._archive.comment : '';\n};\n\nZipArchiveOutputStream.prototype.isZip64 = function() {\n return this._archive.forceZip64 || this._entries.length > constants.ZIP64_MAGIC_SHORT || this._archive.centralLength > constants.ZIP64_MAGIC || this._archive.centralOffset > constants.ZIP64_MAGIC;\n};\n\nZipArchiveOutputStream.prototype.setComment = function(comment) {\n this._archive.comment = comment;\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nmodule.exports = {\n ArchiveEntry: require('./archivers/archive-entry'),\n ZipArchiveEntry: require('./archivers/zip/zip-archive-entry'),\n ArchiveOutputStream: require('./archivers/archive-output-stream'),\n ZipArchiveOutputStream: require('./archivers/zip/zip-archive-output-stream')\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar Stream = require('stream').Stream;\nvar PassThrough = require('readable-stream').PassThrough;\nvar isStream = require('is-stream');\n\nvar util = module.exports = {};\n\nutil.normalizeInputSource = function(source) {\n if (source === null) {\n return Buffer.alloc(0);\n } else if (typeof source === 'string') {\n return Buffer.from(source);\n } else if (isStream(source) && !source._readableState) {\n var normalized = new PassThrough();\n source.pipe(normalized);\n\n return normalized;\n }\n\n return source;\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('buffer').Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n","/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */\n/* vim: set ts=2: */\n/*exported CRC32 */\nvar CRC32;\n(function (factory) {\n\t/*jshint ignore:start */\n\t/*eslint-disable */\n\tif(typeof DO_NOT_EXPORT_CRC === 'undefined') {\n\t\tif('object' === typeof exports) {\n\t\t\tfactory(exports);\n\t\t} else if ('function' === typeof define && define.amd) {\n\t\t\tdefine(function () {\n\t\t\t\tvar module = {};\n\t\t\t\tfactory(module);\n\t\t\t\treturn module;\n\t\t\t});\n\t\t} else {\n\t\t\tfactory(CRC32 = {});\n\t\t}\n\t} else {\n\t\tfactory(CRC32 = {});\n\t}\n\t/*eslint-enable */\n\t/*jshint ignore:end */\n}(function(CRC32) {\nCRC32.version = '1.2.2';\n/*global Int32Array */\nfunction signed_crc_table() {\n\tvar c = 0, table = new Array(256);\n\n\tfor(var n =0; n != 256; ++n){\n\t\tc = n;\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\ttable[n] = c;\n\t}\n\n\treturn typeof Int32Array !== 'undefined' ? new Int32Array(table) : table;\n}\n\nvar T0 = signed_crc_table();\nfunction slice_by_16_tables(T) {\n\tvar c = 0, v = 0, n = 0, table = typeof Int32Array !== 'undefined' ? new Int32Array(4096) : new Array(4096) ;\n\n\tfor(n = 0; n != 256; ++n) table[n] = T[n];\n\tfor(n = 0; n != 256; ++n) {\n\t\tv = T[n];\n\t\tfor(c = 256 + n; c < 4096; c += 256) v = table[c] = (v >>> 8) ^ T[v & 0xFF];\n\t}\n\tvar out = [];\n\tfor(n = 1; n != 16; ++n) out[n - 1] = typeof Int32Array !== 'undefined' ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256);\n\treturn out;\n}\nvar TT = slice_by_16_tables(T0);\nvar T1 = TT[0], T2 = TT[1], T3 = TT[2], T4 = TT[3], T5 = TT[4];\nvar T6 = TT[5], T7 = TT[6], T8 = TT[7], T9 = TT[8], Ta = TT[9];\nvar Tb = TT[10], Tc = TT[11], Td = TT[12], Te = TT[13], Tf = TT[14];\nfunction crc32_bstr(bstr, seed) {\n\tvar C = seed ^ -1;\n\tfor(var i = 0, L = bstr.length; i < L;) C = (C>>>8) ^ T0[(C^bstr.charCodeAt(i++))&0xFF];\n\treturn ~C;\n}\n\nfunction crc32_buf(B, seed) {\n\tvar C = seed ^ -1, L = B.length - 15, i = 0;\n\tfor(; i < L;) C =\n\t\tTf[B[i++] ^ (C & 255)] ^\n\t\tTe[B[i++] ^ ((C >> 8) & 255)] ^\n\t\tTd[B[i++] ^ ((C >> 16) & 255)] ^\n\t\tTc[B[i++] ^ (C >>> 24)] ^\n\t\tTb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^\n\t\tT7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^\n\t\tT3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]];\n\tL += 15;\n\twhile(i < L) C = (C>>>8) ^ T0[(C^B[i++])&0xFF];\n\treturn ~C;\n}\n\nfunction crc32_str(str, seed) {\n\tvar C = seed ^ -1;\n\tfor(var i = 0, L = str.length, c = 0, d = 0; i < L;) {\n\t\tc = str.charCodeAt(i++);\n\t\tif(c < 0x80) {\n\t\t\tC = (C>>>8) ^ T0[(C^c)&0xFF];\n\t\t} else if(c < 0x800) {\n\t\t\tC = (C>>>8) ^ T0[(C ^ (192|((c>>6)&31)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|(c&63)))&0xFF];\n\t\t} else if(c >= 0xD800 && c < 0xE000) {\n\t\t\tc = (c&1023)+64; d = str.charCodeAt(i++)&1023;\n\t\t\tC = (C>>>8) ^ T0[(C ^ (240|((c>>8)&7)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|((c>>2)&63)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|((d>>6)&15)|((c&3)<<4)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|(d&63)))&0xFF];\n\t\t} else {\n\t\t\tC = (C>>>8) ^ T0[(C ^ (224|((c>>12)&15)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|((c>>6)&63)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|(c&63)))&0xFF];\n\t\t}\n\t}\n\treturn ~C;\n}\nCRC32.table = T0;\n// $FlowIgnore\nCRC32.bstr = crc32_bstr;\n// $FlowIgnore\nCRC32.buf = crc32_buf;\n// $FlowIgnore\nCRC32.str = crc32_str;\n}));\n","/**\n * node-crc32-stream\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT\n */\n\n 'use strict';\n\nconst {Transform} = require('readable-stream');\n\nconst crc32 = require('crc-32');\n\nclass CRC32Stream extends Transform {\n constructor(options) {\n super(options);\n this.checksum = Buffer.allocUnsafe(4);\n this.checksum.writeInt32BE(0, 0);\n\n this.rawSize = 0;\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk) {\n this.checksum = crc32.buf(chunk, this.checksum) >>> 0;\n this.rawSize += chunk.length;\n }\n\n callback(null, chunk);\n }\n\n digest(encoding) {\n const checksum = Buffer.allocUnsafe(4);\n checksum.writeUInt32BE(this.checksum >>> 0, 0);\n return encoding ? checksum.toString(encoding) : checksum;\n }\n\n hex() {\n return this.digest('hex').toUpperCase();\n }\n\n size() {\n return this.rawSize;\n }\n}\n\nmodule.exports = CRC32Stream;\n","/**\n * node-crc32-stream\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT\n */\n\n'use strict';\n\nconst {DeflateRaw} = require('zlib');\n\nconst crc32 = require('crc-32');\n\nclass DeflateCRC32Stream extends DeflateRaw {\n constructor(options) {\n super(options);\n\n this.checksum = Buffer.allocUnsafe(4);\n this.checksum.writeInt32BE(0, 0);\n\n this.rawSize = 0;\n this.compressedSize = 0;\n }\n\n push(chunk, encoding) {\n if (chunk) {\n this.compressedSize += chunk.length;\n }\n\n return super.push(chunk, encoding);\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk) {\n this.checksum = crc32.buf(chunk, this.checksum) >>> 0;\n this.rawSize += chunk.length;\n }\n\n super._transform(chunk, encoding, callback)\n }\n\n digest(encoding) {\n const checksum = Buffer.allocUnsafe(4);\n checksum.writeUInt32BE(this.checksum >>> 0, 0);\n return encoding ? checksum.toString(encoding) : checksum;\n }\n\n hex() {\n return this.digest('hex').toUpperCase();\n }\n\n size(compressed = false) {\n if (compressed) {\n return this.compressedSize;\n } else {\n return this.rawSize;\n }\n }\n}\n\nmodule.exports = DeflateCRC32Stream;\n","/**\n * node-crc32-stream\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT\n */\n\n'use strict';\n\nmodule.exports = {\n CRC32Stream: require('./crc32-stream'),\n DeflateCRC32Stream: require('./deflate-crc32-stream')\n}\n","var Stream = require('stream').Stream;\nvar util = require('util');\n\nmodule.exports = DelayedStream;\nfunction DelayedStream() {\n this.source = null;\n this.dataSize = 0;\n this.maxDataSize = 1024 * 1024;\n this.pauseStream = true;\n\n this._maxDataSizeExceeded = false;\n this._released = false;\n this._bufferedEvents = [];\n}\nutil.inherits(DelayedStream, Stream);\n\nDelayedStream.create = function(source, options) {\n var delayedStream = new this();\n\n options = options || {};\n for (var option in options) {\n delayedStream[option] = options[option];\n }\n\n delayedStream.source = source;\n\n var realEmit = source.emit;\n source.emit = function() {\n delayedStream._handleEmit(arguments);\n return realEmit.apply(source, arguments);\n };\n\n source.on('error', function() {});\n if (delayedStream.pauseStream) {\n source.pause();\n }\n\n return delayedStream;\n};\n\nObject.defineProperty(DelayedStream.prototype, 'readable', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.source.readable;\n }\n});\n\nDelayedStream.prototype.setEncoding = function() {\n return this.source.setEncoding.apply(this.source, arguments);\n};\n\nDelayedStream.prototype.resume = function() {\n if (!this._released) {\n this.release();\n }\n\n this.source.resume();\n};\n\nDelayedStream.prototype.pause = function() {\n this.source.pause();\n};\n\nDelayedStream.prototype.release = function() {\n this._released = true;\n\n this._bufferedEvents.forEach(function(args) {\n this.emit.apply(this, args);\n }.bind(this));\n this._bufferedEvents = [];\n};\n\nDelayedStream.prototype.pipe = function() {\n var r = Stream.prototype.pipe.apply(this, arguments);\n this.resume();\n return r;\n};\n\nDelayedStream.prototype._handleEmit = function(args) {\n if (this._released) {\n this.emit.apply(this, args);\n return;\n }\n\n if (args[0] === 'data') {\n this.dataSize += args[1].length;\n this._checkIfMaxDataSizeExceeded();\n }\n\n this._bufferedEvents.push(args);\n};\n\nDelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {\n if (this._maxDataSizeExceeded) {\n return;\n }\n\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n this._maxDataSizeExceeded = true;\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'\n this.emit('error', new Error(message));\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nclass Deprecation extends Error {\n constructor(message) {\n super(message); // Maintains proper stack trace (only available on V8)\n\n /* istanbul ignore next */\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n\n this.name = 'Deprecation';\n }\n\n}\n\nexports.Deprecation = Deprecation;\n","'use strict'\n\nfunction _process (v, mod) {\n var i\n var r\n\n if (typeof mod === 'function') {\n r = mod(v)\n if (r !== undefined) {\n v = r\n }\n } else if (Array.isArray(mod)) {\n for (i = 0; i < mod.length; i++) {\n r = mod[i](v)\n if (r !== undefined) {\n v = r\n }\n }\n }\n\n return v\n}\n\nfunction parseKey (key, val) {\n // detect negative index notation\n if (key[0] === '-' && Array.isArray(val) && /^-\\d+$/.test(key)) {\n return val.length + parseInt(key, 10)\n }\n return key\n}\n\nfunction isIndex (k) {\n return /^\\d+$/.test(k)\n}\n\nfunction isObject (val) {\n return Object.prototype.toString.call(val) === '[object Object]'\n}\n\nfunction isArrayOrObject (val) {\n return Object(val) === val\n}\n\nfunction isEmptyObject (val) {\n return Object.keys(val).length === 0\n}\n\nvar blacklist = ['__proto__', 'prototype', 'constructor']\nvar blacklistFilter = function (part) { return blacklist.indexOf(part) === -1 }\n\nfunction parsePath (path, sep) {\n if (path.indexOf('[') >= 0) {\n path = path.replace(/\\[/g, sep).replace(/]/g, '')\n }\n\n var parts = path.split(sep)\n\n var check = parts.filter(blacklistFilter)\n\n if (check.length !== parts.length) {\n throw Error('Refusing to update blacklisted property ' + path)\n }\n\n return parts\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty\n\nfunction DotObject (separator, override, useArray, useBrackets) {\n if (!(this instanceof DotObject)) {\n return new DotObject(separator, override, useArray, useBrackets)\n }\n\n if (typeof override === 'undefined') override = false\n if (typeof useArray === 'undefined') useArray = true\n if (typeof useBrackets === 'undefined') useBrackets = true\n this.separator = separator || '.'\n this.override = override\n this.useArray = useArray\n this.useBrackets = useBrackets\n this.keepArray = false\n\n // contains touched arrays\n this.cleanup = []\n}\n\nvar dotDefault = new DotObject('.', false, true, true)\nfunction wrap (method) {\n return function () {\n return dotDefault[method].apply(dotDefault, arguments)\n }\n}\n\nDotObject.prototype._fill = function (a, obj, v, mod) {\n var k = a.shift()\n\n if (a.length > 0) {\n obj[k] = obj[k] || (this.useArray && isIndex(a[0]) ? [] : {})\n\n if (!isArrayOrObject(obj[k])) {\n if (this.override) {\n obj[k] = {}\n } else {\n if (!(isArrayOrObject(v) && isEmptyObject(v))) {\n throw new Error(\n 'Trying to redefine `' + k + '` which is a ' + typeof obj[k]\n )\n }\n\n return\n }\n }\n\n this._fill(a, obj[k], v, mod)\n } else {\n if (!this.override && isArrayOrObject(obj[k]) && !isEmptyObject(obj[k])) {\n if (!(isArrayOrObject(v) && isEmptyObject(v))) {\n throw new Error(\"Trying to redefine non-empty obj['\" + k + \"']\")\n }\n\n return\n }\n\n obj[k] = _process(v, mod)\n }\n}\n\n/**\n *\n * Converts an object with dotted-key/value pairs to it's expanded version\n *\n * Optionally transformed by a set of modifiers.\n *\n * Usage:\n *\n * var row = {\n * 'nr': 200,\n * 'doc.name': ' My Document '\n * }\n *\n * var mods = {\n * 'doc.name': [_s.trim, _s.underscored]\n * }\n *\n * dot.object(row, mods)\n *\n * @param {Object} obj\n * @param {Object} mods\n */\nDotObject.prototype.object = function (obj, mods) {\n var self = this\n\n Object.keys(obj).forEach(function (k) {\n var mod = mods === undefined ? null : mods[k]\n // normalize array notation.\n var ok = parsePath(k, self.separator).join(self.separator)\n\n if (ok.indexOf(self.separator) !== -1) {\n self._fill(ok.split(self.separator), obj, obj[k], mod)\n delete obj[k]\n } else {\n obj[k] = _process(obj[k], mod)\n }\n })\n\n return obj\n}\n\n/**\n * @param {String} path dotted path\n * @param {String} v value to be set\n * @param {Object} obj object to be modified\n * @param {Function|Array} mod optional modifier\n */\nDotObject.prototype.str = function (path, v, obj, mod) {\n var ok = parsePath(path, this.separator).join(this.separator)\n\n if (path.indexOf(this.separator) !== -1) {\n this._fill(ok.split(this.separator), obj, v, mod)\n } else {\n obj[path] = _process(v, mod)\n }\n\n return obj\n}\n\n/**\n *\n * Pick a value from an object using dot notation.\n *\n * Optionally remove the value\n *\n * @param {String} path\n * @param {Object} obj\n * @param {Boolean} remove\n */\nDotObject.prototype.pick = function (path, obj, remove, reindexArray) {\n var i\n var keys\n var val\n var key\n var cp\n\n keys = parsePath(path, this.separator)\n for (i = 0; i < keys.length; i++) {\n key = parseKey(keys[i], obj)\n if (obj && typeof obj === 'object' && key in obj) {\n if (i === keys.length - 1) {\n if (remove) {\n val = obj[key]\n if (reindexArray && Array.isArray(obj)) {\n obj.splice(key, 1)\n } else {\n delete obj[key]\n }\n if (Array.isArray(obj)) {\n cp = keys.slice(0, -1).join('.')\n if (this.cleanup.indexOf(cp) === -1) {\n this.cleanup.push(cp)\n }\n }\n return val\n } else {\n return obj[key]\n }\n } else {\n obj = obj[key]\n }\n } else {\n return undefined\n }\n }\n if (remove && Array.isArray(obj)) {\n obj = obj.filter(function (n) {\n return n !== undefined\n })\n }\n return obj\n}\n/**\n *\n * Delete value from an object using dot notation.\n *\n * @param {String} path\n * @param {Object} obj\n * @return {any} The removed value\n */\nDotObject.prototype.delete = function (path, obj) {\n return this.remove(path, obj, true)\n}\n\n/**\n *\n * Remove value from an object using dot notation.\n *\n * Will remove multiple items if path is an array.\n * In this case array indexes will be retained until all\n * removals have been processed.\n *\n * Use dot.delete() to automatically re-index arrays.\n *\n * @param {String|Array} path\n * @param {Object} obj\n * @param {Boolean} reindexArray\n * @return {any} The removed value\n */\nDotObject.prototype.remove = function (path, obj, reindexArray) {\n var i\n\n this.cleanup = []\n if (Array.isArray(path)) {\n for (i = 0; i < path.length; i++) {\n this.pick(path[i], obj, true, reindexArray)\n }\n if (!reindexArray) {\n this._cleanup(obj)\n }\n return obj\n } else {\n return this.pick(path, obj, true, reindexArray)\n }\n}\n\nDotObject.prototype._cleanup = function (obj) {\n var ret\n var i\n var keys\n var root\n if (this.cleanup.length) {\n for (i = 0; i < this.cleanup.length; i++) {\n keys = this.cleanup[i].split('.')\n root = keys.splice(0, -1).join('.')\n ret = root ? this.pick(root, obj) : obj\n ret = ret[keys[0]].filter(function (v) {\n return v !== undefined\n })\n this.set(this.cleanup[i], ret, obj)\n }\n this.cleanup = []\n }\n}\n\n/**\n * Alias method for `dot.remove`\n *\n * Note: this is not an alias for dot.delete()\n *\n * @param {String|Array} path\n * @param {Object} obj\n * @param {Boolean} reindexArray\n * @return {any} The removed value\n */\nDotObject.prototype.del = DotObject.prototype.remove\n\n/**\n *\n * Move a property from one place to the other.\n *\n * If the source path does not exist (undefined)\n * the target property will not be set.\n *\n * @param {String} source\n * @param {String} target\n * @param {Object} obj\n * @param {Function|Array} mods\n * @param {Boolean} merge\n */\nDotObject.prototype.move = function (source, target, obj, mods, merge) {\n if (typeof mods === 'function' || Array.isArray(mods)) {\n this.set(target, _process(this.pick(source, obj, true), mods), obj, merge)\n } else {\n merge = mods\n this.set(target, this.pick(source, obj, true), obj, merge)\n }\n\n return obj\n}\n\n/**\n *\n * Transfer a property from one object to another object.\n *\n * If the source path does not exist (undefined)\n * the property on the other object will not be set.\n *\n * @param {String} source\n * @param {String} target\n * @param {Object} obj1\n * @param {Object} obj2\n * @param {Function|Array} mods\n * @param {Boolean} merge\n */\nDotObject.prototype.transfer = function (\n source,\n target,\n obj1,\n obj2,\n mods,\n merge\n) {\n if (typeof mods === 'function' || Array.isArray(mods)) {\n this.set(\n target,\n _process(this.pick(source, obj1, true), mods),\n obj2,\n merge\n )\n } else {\n merge = mods\n this.set(target, this.pick(source, obj1, true), obj2, merge)\n }\n\n return obj2\n}\n\n/**\n *\n * Copy a property from one object to another object.\n *\n * If the source path does not exist (undefined)\n * the property on the other object will not be set.\n *\n * @param {String} source\n * @param {String} target\n * @param {Object} obj1\n * @param {Object} obj2\n * @param {Function|Array} mods\n * @param {Boolean} merge\n */\nDotObject.prototype.copy = function (source, target, obj1, obj2, mods, merge) {\n if (typeof mods === 'function' || Array.isArray(mods)) {\n this.set(\n target,\n _process(\n // clone what is picked\n JSON.parse(JSON.stringify(this.pick(source, obj1, false))),\n mods\n ),\n obj2,\n merge\n )\n } else {\n merge = mods\n this.set(target, this.pick(source, obj1, false), obj2, merge)\n }\n\n return obj2\n}\n\n/**\n *\n * Set a property on an object using dot notation.\n *\n * @param {String} path\n * @param {any} val\n * @param {Object} obj\n * @param {Boolean} merge\n */\nDotObject.prototype.set = function (path, val, obj, merge) {\n var i\n var k\n var keys\n var key\n\n // Do not operate if the value is undefined.\n if (typeof val === 'undefined') {\n return obj\n }\n keys = parsePath(path, this.separator)\n\n for (i = 0; i < keys.length; i++) {\n key = keys[i]\n if (i === keys.length - 1) {\n if (merge && isObject(val) && isObject(obj[key])) {\n for (k in val) {\n if (hasOwnProperty.call(val, k)) {\n obj[key][k] = val[k]\n }\n }\n } else if (merge && Array.isArray(obj[key]) && Array.isArray(val)) {\n for (var j = 0; j < val.length; j++) {\n obj[keys[i]].push(val[j])\n }\n } else {\n obj[key] = val\n }\n } else if (\n // force the value to be an object\n !hasOwnProperty.call(obj, key) ||\n (!isObject(obj[key]) && !Array.isArray(obj[key]))\n ) {\n // initialize as array if next key is numeric\n if (/^\\d+$/.test(keys[i + 1])) {\n obj[key] = []\n } else {\n obj[key] = {}\n }\n }\n obj = obj[key]\n }\n return obj\n}\n\n/**\n *\n * Transform an object\n *\n * Usage:\n *\n * var obj = {\n * \"id\": 1,\n * \"some\": {\n * \"thing\": \"else\"\n * }\n * }\n *\n * var transform = {\n * \"id\": \"nr\",\n * \"some.thing\": \"name\"\n * }\n *\n * var tgt = dot.transform(transform, obj)\n *\n * @param {Object} recipe Transform recipe\n * @param {Object} obj Object to be transformed\n * @param {Array} mods modifiers for the target\n */\nDotObject.prototype.transform = function (recipe, obj, tgt) {\n obj = obj || {}\n tgt = tgt || {}\n Object.keys(recipe).forEach(\n function (key) {\n this.set(recipe[key], this.pick(key, obj), tgt)\n }.bind(this)\n )\n return tgt\n}\n\n/**\n *\n * Convert object to dotted-key/value pair\n *\n * Usage:\n *\n * var tgt = dot.dot(obj)\n *\n * or\n *\n * var tgt = {}\n * dot.dot(obj, tgt)\n *\n * @param {Object} obj source object\n * @param {Object} tgt target object\n * @param {Array} path path array (internal)\n */\nDotObject.prototype.dot = function (obj, tgt, path) {\n tgt = tgt || {}\n path = path || []\n var isArray = Array.isArray(obj)\n\n Object.keys(obj).forEach(\n function (key) {\n var index = isArray && this.useBrackets ? '[' + key + ']' : key\n if (\n isArrayOrObject(obj[key]) &&\n ((isObject(obj[key]) && !isEmptyObject(obj[key])) ||\n (Array.isArray(obj[key]) && !this.keepArray && obj[key].length !== 0))\n ) {\n if (isArray && this.useBrackets) {\n var previousKey = path[path.length - 1] || ''\n return this.dot(\n obj[key],\n tgt,\n path.slice(0, -1).concat(previousKey + index)\n )\n } else {\n return this.dot(obj[key], tgt, path.concat(index))\n }\n } else {\n if (isArray && this.useBrackets) {\n tgt[path.join(this.separator).concat('[' + key + ']')] = obj[key]\n } else {\n tgt[path.concat(index).join(this.separator)] = obj[key]\n }\n }\n }.bind(this)\n )\n return tgt\n}\n\nDotObject.pick = wrap('pick')\nDotObject.move = wrap('move')\nDotObject.transfer = wrap('transfer')\nDotObject.transform = wrap('transform')\nDotObject.copy = wrap('copy')\nDotObject.object = wrap('object')\nDotObject.str = wrap('str')\nDotObject.set = wrap('set')\nDotObject.delete = wrap('delete')\nDotObject.del = DotObject.remove = wrap('remove')\nDotObject.dot = wrap('dot');\n['override', 'overwrite'].forEach(function (prop) {\n Object.defineProperty(DotObject, prop, {\n get: function () {\n return dotDefault.override\n },\n set: function (val) {\n dotDefault.override = !!val\n }\n })\n});\n['useArray', 'keepArray', 'useBrackets'].forEach(function (prop) {\n Object.defineProperty(DotObject, prop, {\n get: function () {\n return dotDefault[prop]\n },\n set: function (val) {\n dotDefault[prop] = val\n }\n })\n})\n\nDotObject._process = _process\n\nmodule.exports = DotObject\n","/**\n * @author Toru Nagashima \n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\n * @typedef {object} PrivateData\n * @property {EventTarget} eventTarget The event target.\n * @property {{type:string}} event The original event object.\n * @property {number} eventPhase The current event phase.\n * @property {EventTarget|null} currentTarget The current event target.\n * @property {boolean} canceled The flag to prevent default.\n * @property {boolean} stopped The flag to stop propagation.\n * @property {boolean} immediateStopped The flag to stop propagation immediately.\n * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null.\n * @property {number} timeStamp The unix time.\n * @private\n */\n\n/**\n * Private data for event wrappers.\n * @type {WeakMap}\n * @private\n */\nconst privateData = new WeakMap();\n\n/**\n * Cache for wrapper classes.\n * @type {WeakMap}\n * @private\n */\nconst wrappers = new WeakMap();\n\n/**\n * Get private data.\n * @param {Event} event The event object to get private data.\n * @returns {PrivateData} The private data of the event.\n * @private\n */\nfunction pd(event) {\n const retv = privateData.get(event);\n console.assert(\n retv != null,\n \"'this' is expected an Event object, but got\",\n event\n );\n return retv\n}\n\n/**\n * https://dom.spec.whatwg.org/#set-the-canceled-flag\n * @param data {PrivateData} private data.\n */\nfunction setCancelFlag(data) {\n if (data.passiveListener != null) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(\n \"Unable to preventDefault inside passive event listener invocation.\",\n data.passiveListener\n );\n }\n return\n }\n if (!data.event.cancelable) {\n return\n }\n\n data.canceled = true;\n if (typeof data.event.preventDefault === \"function\") {\n data.event.preventDefault();\n }\n}\n\n/**\n * @see https://dom.spec.whatwg.org/#interface-event\n * @private\n */\n/**\n * The event wrapper.\n * @constructor\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Event|{type:string}} event The original event to wrap.\n */\nfunction Event(eventTarget, event) {\n privateData.set(this, {\n eventTarget,\n event,\n eventPhase: 2,\n currentTarget: eventTarget,\n canceled: false,\n stopped: false,\n immediateStopped: false,\n passiveListener: null,\n timeStamp: event.timeStamp || Date.now(),\n });\n\n // https://heycam.github.io/webidl/#Unforgeable\n Object.defineProperty(this, \"isTrusted\", { value: false, enumerable: true });\n\n // Define accessors\n const keys = Object.keys(event);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in this)) {\n Object.defineProperty(this, key, defineRedirectDescriptor(key));\n }\n }\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEvent.prototype = {\n /**\n * The type of this event.\n * @type {string}\n */\n get type() {\n return pd(this).event.type\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get target() {\n return pd(this).eventTarget\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get currentTarget() {\n return pd(this).currentTarget\n },\n\n /**\n * @returns {EventTarget[]} The composed path of this event.\n */\n composedPath() {\n const currentTarget = pd(this).currentTarget;\n if (currentTarget == null) {\n return []\n }\n return [currentTarget]\n },\n\n /**\n * Constant of NONE.\n * @type {number}\n */\n get NONE() {\n return 0\n },\n\n /**\n * Constant of CAPTURING_PHASE.\n * @type {number}\n */\n get CAPTURING_PHASE() {\n return 1\n },\n\n /**\n * Constant of AT_TARGET.\n * @type {number}\n */\n get AT_TARGET() {\n return 2\n },\n\n /**\n * Constant of BUBBLING_PHASE.\n * @type {number}\n */\n get BUBBLING_PHASE() {\n return 3\n },\n\n /**\n * The target of this event.\n * @type {number}\n */\n get eventPhase() {\n return pd(this).eventPhase\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopPropagation() {\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.stopPropagation === \"function\") {\n data.event.stopPropagation();\n }\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopImmediatePropagation() {\n const data = pd(this);\n\n data.stopped = true;\n data.immediateStopped = true;\n if (typeof data.event.stopImmediatePropagation === \"function\") {\n data.event.stopImmediatePropagation();\n }\n },\n\n /**\n * The flag to be bubbling.\n * @type {boolean}\n */\n get bubbles() {\n return Boolean(pd(this).event.bubbles)\n },\n\n /**\n * The flag to be cancelable.\n * @type {boolean}\n */\n get cancelable() {\n return Boolean(pd(this).event.cancelable)\n },\n\n /**\n * Cancel this event.\n * @returns {void}\n */\n preventDefault() {\n setCancelFlag(pd(this));\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n */\n get defaultPrevented() {\n return pd(this).canceled\n },\n\n /**\n * The flag to be composed.\n * @type {boolean}\n */\n get composed() {\n return Boolean(pd(this).event.composed)\n },\n\n /**\n * The unix time of this event.\n * @type {number}\n */\n get timeStamp() {\n return pd(this).timeStamp\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n * @deprecated\n */\n get srcElement() {\n return pd(this).eventTarget\n },\n\n /**\n * The flag to stop event bubbling.\n * @type {boolean}\n * @deprecated\n */\n get cancelBubble() {\n return pd(this).stopped\n },\n set cancelBubble(value) {\n if (!value) {\n return\n }\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.cancelBubble === \"boolean\") {\n data.event.cancelBubble = true;\n }\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n * @deprecated\n */\n get returnValue() {\n return !pd(this).canceled\n },\n set returnValue(value) {\n if (!value) {\n setCancelFlag(pd(this));\n }\n },\n\n /**\n * Initialize this event object. But do nothing under event dispatching.\n * @param {string} type The event type.\n * @param {boolean} [bubbles=false] The flag to be possible to bubble up.\n * @param {boolean} [cancelable=false] The flag to be possible to cancel.\n * @deprecated\n */\n initEvent() {\n // Do nothing.\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(Event.prototype, \"constructor\", {\n value: Event,\n configurable: true,\n writable: true,\n});\n\n// Ensure `event instanceof window.Event` is `true`.\nif (typeof window !== \"undefined\" && typeof window.Event !== \"undefined\") {\n Object.setPrototypeOf(Event.prototype, window.Event.prototype);\n\n // Make association for wrappers.\n wrappers.set(window.Event.prototype, Event);\n}\n\n/**\n * Get the property descriptor to redirect a given property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to redirect the property.\n * @private\n */\nfunction defineRedirectDescriptor(key) {\n return {\n get() {\n return pd(this).event[key]\n },\n set(value) {\n pd(this).event[key] = value;\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Get the property descriptor to call a given method property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to call the method property.\n * @private\n */\nfunction defineCallDescriptor(key) {\n return {\n value() {\n const event = pd(this).event;\n return event[key].apply(event, arguments)\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define new wrapper class.\n * @param {Function} BaseEvent The base wrapper class.\n * @param {Object} proto The prototype of the original event.\n * @returns {Function} The defined wrapper class.\n * @private\n */\nfunction defineWrapper(BaseEvent, proto) {\n const keys = Object.keys(proto);\n if (keys.length === 0) {\n return BaseEvent\n }\n\n /** CustomEvent */\n function CustomEvent(eventTarget, event) {\n BaseEvent.call(this, eventTarget, event);\n }\n\n CustomEvent.prototype = Object.create(BaseEvent.prototype, {\n constructor: { value: CustomEvent, configurable: true, writable: true },\n });\n\n // Define accessors.\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in BaseEvent.prototype)) {\n const descriptor = Object.getOwnPropertyDescriptor(proto, key);\n const isFunc = typeof descriptor.value === \"function\";\n Object.defineProperty(\n CustomEvent.prototype,\n key,\n isFunc\n ? defineCallDescriptor(key)\n : defineRedirectDescriptor(key)\n );\n }\n }\n\n return CustomEvent\n}\n\n/**\n * Get the wrapper class of a given prototype.\n * @param {Object} proto The prototype of the original event to get its wrapper.\n * @returns {Function} The wrapper class.\n * @private\n */\nfunction getWrapper(proto) {\n if (proto == null || proto === Object.prototype) {\n return Event\n }\n\n let wrapper = wrappers.get(proto);\n if (wrapper == null) {\n wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto);\n wrappers.set(proto, wrapper);\n }\n return wrapper\n}\n\n/**\n * Wrap a given event to management a dispatching.\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Object} event The event to wrap.\n * @returns {Event} The wrapper instance.\n * @private\n */\nfunction wrapEvent(eventTarget, event) {\n const Wrapper = getWrapper(Object.getPrototypeOf(event));\n return new Wrapper(eventTarget, event)\n}\n\n/**\n * Get the immediateStopped flag of a given event.\n * @param {Event} event The event to get.\n * @returns {boolean} The flag to stop propagation immediately.\n * @private\n */\nfunction isStopped(event) {\n return pd(event).immediateStopped\n}\n\n/**\n * Set the current event phase of a given event.\n * @param {Event} event The event to set current target.\n * @param {number} eventPhase New event phase.\n * @returns {void}\n * @private\n */\nfunction setEventPhase(event, eventPhase) {\n pd(event).eventPhase = eventPhase;\n}\n\n/**\n * Set the current target of a given event.\n * @param {Event} event The event to set current target.\n * @param {EventTarget|null} currentTarget New current target.\n * @returns {void}\n * @private\n */\nfunction setCurrentTarget(event, currentTarget) {\n pd(event).currentTarget = currentTarget;\n}\n\n/**\n * Set a passive listener of a given event.\n * @param {Event} event The event to set current target.\n * @param {Function|null} passiveListener New passive listener.\n * @returns {void}\n * @private\n */\nfunction setPassiveListener(event, passiveListener) {\n pd(event).passiveListener = passiveListener;\n}\n\n/**\n * @typedef {object} ListenerNode\n * @property {Function} listener\n * @property {1|2|3} listenerType\n * @property {boolean} passive\n * @property {boolean} once\n * @property {ListenerNode|null} next\n * @private\n */\n\n/**\n * @type {WeakMap>}\n * @private\n */\nconst listenersMap = new WeakMap();\n\n// Listener types\nconst CAPTURE = 1;\nconst BUBBLE = 2;\nconst ATTRIBUTE = 3;\n\n/**\n * Check whether a given value is an object or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an object.\n */\nfunction isObject(x) {\n return x !== null && typeof x === \"object\" //eslint-disable-line no-restricted-syntax\n}\n\n/**\n * Get listeners.\n * @param {EventTarget} eventTarget The event target to get.\n * @returns {Map} The listeners.\n * @private\n */\nfunction getListeners(eventTarget) {\n const listeners = listenersMap.get(eventTarget);\n if (listeners == null) {\n throw new TypeError(\n \"'this' is expected an EventTarget object, but got another value.\"\n )\n }\n return listeners\n}\n\n/**\n * Get the property descriptor for the event attribute of a given event.\n * @param {string} eventName The event name to get property descriptor.\n * @returns {PropertyDescriptor} The property descriptor.\n * @private\n */\nfunction defineEventAttributeDescriptor(eventName) {\n return {\n get() {\n const listeners = getListeners(this);\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n return node.listener\n }\n node = node.next;\n }\n return null\n },\n\n set(listener) {\n if (typeof listener !== \"function\" && !isObject(listener)) {\n listener = null; // eslint-disable-line no-param-reassign\n }\n const listeners = getListeners(this);\n\n // Traverse to the tail while removing old value.\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n // Remove old value.\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n node = node.next;\n }\n\n // Add new value.\n if (listener !== null) {\n const newNode = {\n listener,\n listenerType: ATTRIBUTE,\n passive: false,\n once: false,\n next: null,\n };\n if (prev === null) {\n listeners.set(eventName, newNode);\n } else {\n prev.next = newNode;\n }\n }\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define an event attribute (e.g. `eventTarget.onclick`).\n * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite.\n * @param {string} eventName The event name to define.\n * @returns {void}\n */\nfunction defineEventAttribute(eventTargetPrototype, eventName) {\n Object.defineProperty(\n eventTargetPrototype,\n `on${eventName}`,\n defineEventAttributeDescriptor(eventName)\n );\n}\n\n/**\n * Define a custom EventTarget with event attributes.\n * @param {string[]} eventNames Event names for event attributes.\n * @returns {EventTarget} The custom EventTarget.\n * @private\n */\nfunction defineCustomEventTarget(eventNames) {\n /** CustomEventTarget */\n function CustomEventTarget() {\n EventTarget.call(this);\n }\n\n CustomEventTarget.prototype = Object.create(EventTarget.prototype, {\n constructor: {\n value: CustomEventTarget,\n configurable: true,\n writable: true,\n },\n });\n\n for (let i = 0; i < eventNames.length; ++i) {\n defineEventAttribute(CustomEventTarget.prototype, eventNames[i]);\n }\n\n return CustomEventTarget\n}\n\n/**\n * EventTarget.\n *\n * - This is constructor if no arguments.\n * - This is a function which returns a CustomEventTarget constructor if there are arguments.\n *\n * For example:\n *\n * class A extends EventTarget {}\n * class B extends EventTarget(\"message\") {}\n * class C extends EventTarget(\"message\", \"error\") {}\n * class D extends EventTarget([\"message\", \"error\"]) {}\n */\nfunction EventTarget() {\n /*eslint-disable consistent-return */\n if (this instanceof EventTarget) {\n listenersMap.set(this, new Map());\n return\n }\n if (arguments.length === 1 && Array.isArray(arguments[0])) {\n return defineCustomEventTarget(arguments[0])\n }\n if (arguments.length > 0) {\n const types = new Array(arguments.length);\n for (let i = 0; i < arguments.length; ++i) {\n types[i] = arguments[i];\n }\n return defineCustomEventTarget(types)\n }\n throw new TypeError(\"Cannot call a class as a function\")\n /*eslint-enable consistent-return */\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEventTarget.prototype = {\n /**\n * Add a given listener to this event target.\n * @param {string} eventName The event name to add.\n * @param {Function} listener The listener to add.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n addEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n if (typeof listener !== \"function\" && !isObject(listener)) {\n throw new TypeError(\"'listener' should be a function or an object.\")\n }\n\n const listeners = getListeners(this);\n const optionsIsObj = isObject(options);\n const capture = optionsIsObj\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n const newNode = {\n listener,\n listenerType,\n passive: optionsIsObj && Boolean(options.passive),\n once: optionsIsObj && Boolean(options.once),\n next: null,\n };\n\n // Set it as the first node if the first node is null.\n let node = listeners.get(eventName);\n if (node === undefined) {\n listeners.set(eventName, newNode);\n return\n }\n\n // Traverse to the tail while checking duplication..\n let prev = null;\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n // Should ignore duplication.\n return\n }\n prev = node;\n node = node.next;\n }\n\n // Add it.\n prev.next = newNode;\n },\n\n /**\n * Remove a given listener from this event target.\n * @param {string} eventName The event name to remove.\n * @param {Function} listener The listener to remove.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n removeEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n\n const listeners = getListeners(this);\n const capture = isObject(options)\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n return\n }\n\n prev = node;\n node = node.next;\n }\n },\n\n /**\n * Dispatch a given event.\n * @param {Event|{type:string}} event The event to dispatch.\n * @returns {boolean} `false` if canceled.\n */\n dispatchEvent(event) {\n if (event == null || typeof event.type !== \"string\") {\n throw new TypeError('\"event.type\" should be a string.')\n }\n\n // If listeners aren't registered, terminate.\n const listeners = getListeners(this);\n const eventName = event.type;\n let node = listeners.get(eventName);\n if (node == null) {\n return true\n }\n\n // Since we cannot rewrite several properties, so wrap object.\n const wrappedEvent = wrapEvent(this, event);\n\n // This doesn't process capturing phase and bubbling phase.\n // This isn't participating in a tree.\n let prev = null;\n while (node != null) {\n // Remove this listener if it's once\n if (node.once) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n // Call this listener\n setPassiveListener(\n wrappedEvent,\n node.passive ? node.listener : null\n );\n if (typeof node.listener === \"function\") {\n try {\n node.listener.call(this, wrappedEvent);\n } catch (err) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(err);\n }\n }\n } else if (\n node.listenerType !== ATTRIBUTE &&\n typeof node.listener.handleEvent === \"function\"\n ) {\n node.listener.handleEvent(wrappedEvent);\n }\n\n // Break if `event.stopImmediatePropagation` was called.\n if (isStopped(wrappedEvent)) {\n break\n }\n\n node = node.next;\n }\n setPassiveListener(wrappedEvent, null);\n setEventPhase(wrappedEvent, 0);\n setCurrentTarget(wrappedEvent, null);\n\n return !wrappedEvent.defaultPrevented\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(EventTarget.prototype, \"constructor\", {\n value: EventTarget,\n configurable: true,\n writable: true,\n});\n\n// Ensure `eventTarget instanceof window.EventTarget` is `true`.\nif (\n typeof window !== \"undefined\" &&\n typeof window.EventTarget !== \"undefined\"\n) {\n Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype);\n}\n\nexports.defineEventAttribute = defineEventAttribute;\nexports.EventTarget = EventTarget;\nexports.default = EventTarget;\n\nmodule.exports = EventTarget\nmodule.exports.EventTarget = module.exports[\"default\"] = EventTarget\nmodule.exports.defineEventAttribute = defineEventAttribute\n//# sourceMappingURL=event-target-shim.js.map\n","module.exports = class FixedFIFO {\n constructor (hwm) {\n if (!(hwm > 0) || ((hwm - 1) & hwm) !== 0) throw new Error('Max size for a FixedFIFO should be a power of two')\n this.buffer = new Array(hwm)\n this.mask = hwm - 1\n this.top = 0\n this.btm = 0\n this.next = null\n }\n\n clear () {\n this.top = this.btm = 0\n this.next = null\n this.buffer.fill(undefined)\n }\n\n push (data) {\n if (this.buffer[this.top] !== undefined) return false\n this.buffer[this.top] = data\n this.top = (this.top + 1) & this.mask\n return true\n }\n\n shift () {\n const last = this.buffer[this.btm]\n if (last === undefined) return undefined\n this.buffer[this.btm] = undefined\n this.btm = (this.btm + 1) & this.mask\n return last\n }\n\n peek () {\n return this.buffer[this.btm]\n }\n\n isEmpty () {\n return this.buffer[this.btm] === undefined\n }\n}\n","const FixedFIFO = require('./fixed-size')\n\nmodule.exports = class FastFIFO {\n constructor (hwm) {\n this.hwm = hwm || 16\n this.head = new FixedFIFO(this.hwm)\n this.tail = this.head\n this.length = 0\n }\n\n clear () {\n this.head = this.tail\n this.head.clear()\n this.length = 0\n }\n\n push (val) {\n this.length++\n if (!this.head.push(val)) {\n const prev = this.head\n this.head = prev.next = new FixedFIFO(2 * this.head.buffer.length)\n this.head.push(val)\n }\n }\n\n shift () {\n if (this.length !== 0) this.length--\n const val = this.tail.shift()\n if (val === undefined && this.tail.next) {\n const next = this.tail.next\n this.tail.next = null\n this.tail = next\n return this.tail.shift()\n }\n\n return val\n }\n\n peek () {\n const val = this.tail.peek()\n if (val === undefined && this.tail.next) return this.tail.next.peek()\n return val\n }\n\n isEmpty () {\n return this.length === 0\n }\n}\n","/*\n* @Author: zoujie.wzj\n* @Date: 2016-01-23 17:32:07\n* @Last Modified by: Zoujie\n* @Last Modified time: 2016-02-04 17:13:18\n*/\n\n'use strict'\n\nmodule.exports = require('./lib/find')\n","/*\n* @Author: zoujie.wzj\n* @Date: 2016-01-23 18:18:28\n* @Last Modified by: Ayon Lee\n* @Last Modified on: 2018-10-19\n*/\n\n'use strict'\n\nconst findPid = require('./find_pid')\nconst findProcess = require('./find_process')\n\nconst findBy = {\n port (port, strict) {\n return findPid(port, strict)\n .then(pid => {\n return findBy.pid(pid, strict)\n }, () => {\n // return empty array when pid not found\n return []\n })\n },\n pid (pid, strict) {\n return findProcess({\n pid: pid,\n strict\n })\n },\n name (name, strict) {\n return findProcess({\n name: name,\n strict\n })\n }\n}\n\n/**\n * find process by condition\n *\n * return Promise: [{\n * pid: ,\n * ppid: ,\n * uid: ,\n * gid: ,\n * name: ,\n * cmd: \n * }, ...]\n *\n * If no process found, resolve process with empty array (only reject when error occured)\n *\n * @param {String} by condition: port/pid/name ...\n * @param {Mixed} condition value\n * @return {Promise}\n */\nfunction find (by, value, strict) {\n return new Promise((resolve, reject) => {\n if (!(by in findBy)) {\n reject(new Error(`do not support find by \"${by}\"`))\n } else {\n const isNumber = /^\\d+$/.test(value)\n if (by === 'pid' && !isNumber) {\n reject(new Error('pid must be a number'))\n } else if (by === 'port' && !isNumber) {\n reject(new Error('port must be a number'))\n } else {\n findBy[by](value, strict).then(resolve, reject)\n }\n }\n })\n}\n\nmodule.exports = find\n","/*\n* @Author: zoujie.wzj\n* @Date: 2016-01-22 19:27:17\n* @Last Modified by: Ayon Lee\n* @Last Modified on: 2018-10-19\n*/\n\n'use strict'\n\n// find pid by port\n\nconst os = require('os')\nconst fs = require('fs')\nconst utils = require('./utils')\n\nconst ensureDir = (path) => new Promise((resolve, reject) => {\n if (fs.existsSync(path)) {\n resolve()\n } else {\n fs.mkdir(path, err => {\n err ? reject(err) : resolve()\n })\n }\n})\n\nconst finders = {\n darwin (port) {\n return new Promise((resolve, reject) => {\n utils.exec('netstat -anv -p TCP && netstat -anv -p UDP', function (err, stdout, stderr) {\n if (err) {\n reject(err)\n } else {\n err = stderr.toString().trim()\n if (err) {\n reject(err)\n return\n }\n\n // replace header\n const data = utils.stripLine(stdout.toString(), 2)\n const found = utils.extractColumns(data, [0, 3, 8], 10)\n .filter(row => {\n return !!String(row[0]).match(/^(udp|tcp)/)\n })\n .find(row => {\n const matches = String(row[1]).match(/\\.(\\d+)$/)\n if (matches && matches[1] === String(port)) {\n return true\n }\n })\n\n if (found && found[2].length) {\n resolve(parseInt(found[2], 10))\n } else {\n reject(new Error(`pid of port (${port}) not found`))\n }\n }\n })\n })\n },\n freebsd: 'darwin',\n sunos: 'darwin',\n linux (port) {\n return new Promise((resolve, reject) => {\n const cmd = 'netstat -tunlp'\n\n utils.exec(cmd, function (err, stdout, stderr) {\n if (err) {\n reject(err)\n } else {\n const warn = stderr.toString().trim()\n if (warn) {\n // netstat -p ouputs warning if user is no-root\n console.warn(warn)\n }\n\n // replace header\n const data = utils.stripLine(stdout.toString(), 2)\n const columns = utils.extractColumns(data, [3, 6], 7).find(column => {\n const matches = String(column[0]).match(/:(\\d+)$/)\n if (matches && matches[1] === String(port)) {\n return true\n }\n })\n\n if (columns && columns[1]) {\n const pid = columns[1].split('/', 1)[0]\n\n if (pid.length) {\n resolve(parseInt(pid, 10))\n } else {\n reject(new Error(`pid of port (${port}) not found`))\n }\n } else {\n reject(new Error(`pid of port (${port}) not found`))\n }\n }\n })\n })\n },\n win32 (port) {\n return new Promise((resolve, reject) => {\n utils.exec('netstat -ano', function (err, stdout, stderr) {\n if (err) {\n reject(err)\n } else {\n err = stderr.toString().trim()\n if (err) {\n reject(err)\n return\n }\n\n // replace header\n const data = utils.stripLine(stdout.toString(), 4)\n const columns = utils.extractColumns(data, [1, 4], 5).find(column => {\n const matches = String(column[0]).match(/:(\\d+)$/)\n if (matches && matches[1] === String(port)) {\n return true\n }\n })\n\n if (columns && columns[1].length && parseInt(columns[1], 10) > 0) {\n resolve(parseInt(columns[1], 10))\n } else {\n reject(new Error(`pid of port (${port}) not found`))\n }\n }\n })\n })\n },\n android (port) {\n return new Promise((resolve, reject) => {\n // on Android Termux, an warning will be emitted when executing `netstat`\n // with option `-p` says 'showing only processes with your user ID', but\n // it can still fetch the information we need. However, NodeJS treat this\n // warning as an error, `util.exec()` will get nothing but the error. To\n // get the true output of the command, we need to save it to a tmpfile and\n // read that file instead.\n const dir = os.tmpdir() + '/.find-process'\n const file = dir + '/' + process.pid\n const cmd = 'netstat -tunp >> \"' + file + '\"'\n\n ensureDir(dir).then(() => {\n utils.exec(cmd, () => {\n fs.readFile(file, 'utf8', (err, data) => {\n fs.unlink(file, () => { })\n if (err) {\n reject(err)\n } else {\n data = utils.stripLine(data, 2)\n const columns = utils.extractColumns(data, [3, 6], 7).find(column => {\n const matches = String(column[0]).match(/:(\\d+)$/)\n if (matches && matches[1] === String(port)) {\n return true\n }\n })\n\n if (columns && columns[1]) {\n const pid = columns[1].split('/', 1)[0]\n\n if (pid.length) {\n resolve(parseInt(pid, 10))\n } else {\n reject(new Error(`pid of port (${port}) not found`))\n }\n } else {\n reject(new Error(`pid of port (${port}) not found`))\n }\n }\n })\n })\n })\n })\n }\n}\n\nfunction findPidByPort (port) {\n const platform = process.platform\n\n return new Promise((resolve, reject) => {\n if (!(platform in finders)) {\n return reject(new Error(`platform ${platform} is unsupported`))\n }\n\n let findPid = finders[platform]\n if (typeof findPid === 'string') {\n findPid = finders[findPid]\n }\n\n findPid(port).then(resolve, reject)\n })\n}\n\nmodule.exports = findPidByPort\n","/*\n* @Author: zoujie.wzj\n* @Date: 2016-01-23 18:25:37\n* @Last Modified by: Sahel LUCAS--SAOUDI\n* @Last Modified on: 2021-11-12\n*/\n\n'use strict'\n\nconst path = require('path')\nconst utils = require('./utils')\n\nfunction matchName (text, name) {\n if (!name) {\n return true\n }\n // make sure text.match is valid, fix #30\n if (text && text.match) {\n return text.match(name)\n }\n return false\n}\n\nfunction fetchBin (cmd) {\n const pieces = cmd.split(path.sep)\n const last = pieces[pieces.length - 1]\n if (last) {\n pieces[pieces.length - 1] = last.split(' ')[0]\n }\n const fixed = []\n for (const part of pieces) {\n const optIdx = part.indexOf(' -')\n if (optIdx >= 0) {\n // case: /aaa/bbb/ccc -c\n fixed.push(part.substring(0, optIdx).trim())\n break\n } else if (part.endsWith(' ')) {\n // case: node /aaa/bbb/ccc.js\n fixed.push(part.trim())\n break\n }\n fixed.push(part)\n }\n return fixed.join(path.sep)\n}\n\nfunction fetchName (fullpath) {\n if (process.platform === 'darwin') {\n const idx = fullpath.indexOf('.app/')\n if (idx >= 0) {\n return path.basename(fullpath.substring(0, idx))\n }\n }\n return path.basename(fullpath)\n}\n\nconst finders = {\n darwin (cond) {\n return new Promise((resolve, reject) => {\n let cmd\n if ('pid' in cond) {\n cmd = `ps -p ${cond.pid} -ww -o pid,ppid,uid,gid,args`\n } else {\n cmd = 'ps ax -ww -o pid,ppid,uid,gid,args'\n }\n\n utils.exec(cmd, function (err, stdout, stderr) {\n if (err) {\n if ('pid' in cond) {\n // when pid not exists, call `ps -p ...` will cause error, we have to\n // ignore the error and resolve with empty array\n resolve([])\n } else {\n reject(err)\n }\n } else {\n err = stderr.toString().trim()\n if (err) {\n reject(err)\n return\n }\n\n const data = utils.stripLine(stdout.toString(), 1)\n const columns = utils.extractColumns(data, [0, 1, 2, 3, 4], 5).filter(column => {\n if (column[0] && cond.pid) {\n return column[0] === String(cond.pid)\n } else if (column[4] && cond.name) {\n return matchName(column[4], cond.name)\n } else {\n return !!column[0]\n }\n })\n\n let list = columns.map(column => {\n const cmd = String(column[4])\n const bin = fetchBin(cmd)\n\n return {\n pid: parseInt(column[0], 10),\n ppid: parseInt(column[1], 10),\n uid: parseInt(column[2], 10),\n gid: parseInt(column[3], 10),\n name: fetchName(bin),\n bin: bin,\n cmd: column[4]\n }\n })\n\n if (cond.strict && cond.name) {\n list = list.filter(item => item.name === cond.name)\n }\n\n resolve(list)\n }\n })\n })\n },\n linux: 'darwin',\n sunos: 'darwin',\n freebsd: 'darwin',\n win32 (cond) {\n return new Promise((resolve, reject) => {\n const cmd = 'Get-CimInstance -className win32_process | select Name,ProcessId,ParentProcessId,CommandLine,ExecutablePath'\n const lines = []\n\n const proc = utils.spawn('powershell.exe', ['/c', cmd], { detached: false, windowsHide: true })\n proc.stdout.on('data', data => {\n lines.push(data.toString())\n })\n proc.on('close', code => {\n if (code !== 0) {\n return reject(new Error('Command \\'' + cmd + '\\' terminated with code: ' + code))\n }\n const list = utils.parseTable(lines.join(''))\n .filter(row => {\n if ('pid' in cond) {\n return row.ProcessId === String(cond.pid)\n } else if (cond.name) {\n const rowName = row.Name || '' // fix #40\n if (cond.strict) {\n return rowName === cond.name || (rowName.endsWith('.exe') && rowName.slice(0, -4) === cond.name)\n } else {\n // fix #9\n return matchName(row.CommandLine || rowName, cond.name)\n }\n } else {\n return true\n }\n })\n .map(row => ({\n pid: parseInt(row.ProcessId, 10),\n ppid: parseInt(row.ParentProcessId, 10),\n // uid: void 0,\n // gid: void 0,\n bin: row.ExecutablePath,\n name: row.Name || '',\n cmd: row.CommandLine\n }))\n resolve(list)\n })\n })\n },\n android (cond) {\n return new Promise((resolve, reject) => {\n const cmd = 'ps'\n\n utils.exec(cmd, function (err, stdout, stderr) {\n if (err) {\n if ('pid' in cond) {\n // when pid not exists, call `ps -p ...` will cause error, we have to\n // ignore the error and resolve with empty array\n resolve([])\n } else {\n reject(err)\n }\n } else {\n err = stderr.toString().trim()\n if (err) {\n reject(err)\n return\n }\n\n const data = utils.stripLine(stdout.toString(), 1)\n const columns = utils.extractColumns(data, [0, 3], 4).filter(column => {\n if (column[0] && cond.pid) {\n return column[0] === String(cond.pid)\n } else if (column[1] && cond.name) {\n return matchName(column[1], cond.name)\n } else {\n return !!column[0]\n }\n })\n\n let list = columns.map(column => {\n const cmd = String(column[1])\n const bin = fetchBin(cmd)\n\n return {\n pid: parseInt(column[0], 10),\n // ppid: void 0,\n // uid: void 0,\n // gid: void 0,\n name: fetchName(bin),\n bin,\n cmd\n }\n })\n\n if (cond.strict && cond.name) {\n list = list.filter(item => item.name === cond.name)\n }\n\n resolve(list)\n }\n })\n })\n }\n}\n\nfunction findProcess (cond) {\n const platform = process.platform\n\n return new Promise((resolve, reject) => {\n if (!(platform in finders)) {\n return reject(new Error(`platform ${platform} is unsupported`))\n }\n\n let find = finders[platform]\n if (typeof find === 'string') {\n find = finders[find]\n }\n\n find(cond).then(resolve, reject)\n })\n}\n\nmodule.exports = findProcess\n","/*\n* @Author: zoujie.wzj\n* @Date: 2016-01-23 18:17:55\n* @Last Modified by: Sahel LUCAS--SAOUDI\n* @Last Modified on: 2021-11-12\n*/\n\n'use strict'\n\nconst cp = require('child_process')\n\nconst UNIT_MB = 1024 * 1024\n\nconst utils = {\n /**\n * exec command with maxBuffer size\n */\n exec (cmd, callback) {\n cp.exec(cmd, {\n maxBuffer: 2 * UNIT_MB,\n windowsHide: true\n }, callback)\n },\n /**\n * spawn command\n */\n spawn (cmd, args, options) {\n return cp.spawn(cmd, args, options)\n },\n /**\n * Strip top lines of text\n *\n * @param {String} text\n * @param {Number} num\n * @return {String}\n */\n stripLine (text, num) {\n let idx = 0\n\n while (num-- > 0) {\n const nIdx = text.indexOf('\\n', idx)\n if (nIdx >= 0) {\n idx = nIdx + 1\n }\n }\n\n return idx > 0 ? text.substring(idx) : text\n },\n\n /**\n * Split string and stop at max parts\n *\n * @param {Number} line\n * @param {Number} max\n * @return {Array}\n */\n split (line, max) {\n const cols = line.trim().split(/\\s+/)\n\n if (cols.length > max) {\n cols[max - 1] = cols.slice(max - 1).join(' ')\n }\n\n return cols\n },\n\n /**\n * Extract columns from table text\n *\n * Example:\n *\n * ```\n * extractColumns(text, [0, 2], 3)\n * ```\n *\n * From:\n * ```\n * foo bar bar2\n * valx valy valz\n * ```\n *\n * To:\n * ```\n * [ ['foo', 'bar2'], ['valx', 'valz'] ]\n * ```\n *\n * @param {String} text raw table text\n * @param {Array} idxes the column index list to extract\n * @param {Number} max max column number of table\n * @return {Array}\n */\n extractColumns (text, idxes, max) {\n const lines = text.split(/(\\r\\n|\\n|\\r)/)\n const columns = []\n\n if (!max) {\n max = Math.max.apply(null, idxes) + 1\n }\n\n lines.forEach(line => {\n const cols = utils.split(line, max)\n const column = []\n\n idxes.forEach(idx => {\n column.push(cols[idx] || '')\n })\n\n columns.push(column)\n })\n\n return columns\n },\n\n /**\n * parse table text to array\n *\n * From:\n * ```\n * Header1 : foo\n * Header2 : bar\n * Header3 : val\n *\n * Header1 : foo2\n * Header2 : bar2\n * Header3 : val2\n * ```\n *\n * To:\n * ```\n * [{ Header1: 'foo', Header2: 'bar', Header3: 'val' }, ...]\n * ```\n *\n * @param {String} data raw table data\n * @return {Array}\n */\n parseTable (data) {\n const lines = data.split(/(\\r\\n\\r\\n|\\r\\n\\n|\\n\\r\\n)|\\n\\n/).filter(line => {\n return line.trim().length > 0\n }).map((e) => e.split(/(\\r\\n|\\n|\\r)/).filter(line => line.trim().length > 0))\n\n // Join multi-ligne value\n lines.forEach((line) => {\n for (let index = 0; line[index];) {\n const entry = line[index]\n if (entry.startsWith(' ')) {\n line[index - 1] += entry.trimLeft()\n line.splice(index, 1)\n } else {\n index += 1\n }\n }\n })\n\n return lines.map(line => {\n const row = {}\n line.forEach((string) => {\n const splitterIndex = string.indexOf(':')\n const key = string.slice(0, splitterIndex).trim()\n row[key] = string.slice(splitterIndex + 1).trim()\n })\n\n return row\n })\n }\n}\n\nmodule.exports = utils\n","var CombinedStream = require('combined-stream');\nvar util = require('util');\nvar path = require('path');\nvar http = require('http');\nvar https = require('https');\nvar parseUrl = require('url').parse;\nvar fs = require('fs');\nvar Stream = require('stream').Stream;\nvar mime = require('mime-types');\nvar asynckit = require('asynckit');\nvar populate = require('./populate.js');\n\n// Public API\nmodule.exports = FormData;\n\n// make it a Stream\nutil.inherits(FormData, CombinedStream);\n\n/**\n * Create readable \"multipart/form-data\" streams.\n * Can be used to submit forms\n * and file uploads to other web applications.\n *\n * @constructor\n * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream\n */\nfunction FormData(options) {\n if (!(this instanceof FormData)) {\n return new FormData(options);\n }\n\n this._overheadLength = 0;\n this._valueLength = 0;\n this._valuesToMeasure = [];\n\n CombinedStream.call(this);\n\n options = options || {};\n for (var option in options) {\n this[option] = options[option];\n }\n}\n\nFormData.LINE_BREAK = '\\r\\n';\nFormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';\n\nFormData.prototype.append = function(field, value, options) {\n\n options = options || {};\n\n // allow filename as single option\n if (typeof options == 'string') {\n options = {filename: options};\n }\n\n var append = CombinedStream.prototype.append.bind(this);\n\n // all that streamy business can't handle numbers\n if (typeof value == 'number') {\n value = '' + value;\n }\n\n // https://github.com/felixge/node-form-data/issues/38\n if (util.isArray(value)) {\n // Please convert your array into string\n // the way web server expects it\n this._error(new Error('Arrays are not supported.'));\n return;\n }\n\n var header = this._multiPartHeader(field, value, options);\n var footer = this._multiPartFooter();\n\n append(header);\n append(value);\n append(footer);\n\n // pass along options.knownLength\n this._trackLength(header, value, options);\n};\n\nFormData.prototype._trackLength = function(header, value, options) {\n var valueLength = 0;\n\n // used w/ getLengthSync(), when length is known.\n // e.g. for streaming directly from a remote server,\n // w/ a known file a size, and not wanting to wait for\n // incoming file to finish to get its size.\n if (options.knownLength != null) {\n valueLength += +options.knownLength;\n } else if (Buffer.isBuffer(value)) {\n valueLength = value.length;\n } else if (typeof value === 'string') {\n valueLength = Buffer.byteLength(value);\n }\n\n this._valueLength += valueLength;\n\n // @check why add CRLF? does this account for custom/multiple CRLFs?\n this._overheadLength +=\n Buffer.byteLength(header) +\n FormData.LINE_BREAK.length;\n\n // empty or either doesn't have path or not an http response or not a stream\n if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {\n return;\n }\n\n // no need to bother with the length\n if (!options.knownLength) {\n this._valuesToMeasure.push(value);\n }\n};\n\nFormData.prototype._lengthRetriever = function(value, callback) {\n\n if (value.hasOwnProperty('fd')) {\n\n // take read range into a account\n // `end` = Infinity –> read file till the end\n //\n // TODO: Looks like there is bug in Node fs.createReadStream\n // it doesn't respect `end` options without `start` options\n // Fix it when node fixes it.\n // https://github.com/joyent/node/issues/7819\n if (value.end != undefined && value.end != Infinity && value.start != undefined) {\n\n // when end specified\n // no need to calculate range\n // inclusive, starts with 0\n callback(null, value.end + 1 - (value.start ? value.start : 0));\n\n // not that fast snoopy\n } else {\n // still need to fetch file size from fs\n fs.stat(value.path, function(err, stat) {\n\n var fileSize;\n\n if (err) {\n callback(err);\n return;\n }\n\n // update final size based on the range options\n fileSize = stat.size - (value.start ? value.start : 0);\n callback(null, fileSize);\n });\n }\n\n // or http response\n } else if (value.hasOwnProperty('httpVersion')) {\n callback(null, +value.headers['content-length']);\n\n // or request stream http://github.com/mikeal/request\n } else if (value.hasOwnProperty('httpModule')) {\n // wait till response come back\n value.on('response', function(response) {\n value.pause();\n callback(null, +response.headers['content-length']);\n });\n value.resume();\n\n // something else\n } else {\n callback('Unknown stream');\n }\n};\n\nFormData.prototype._multiPartHeader = function(field, value, options) {\n // custom header specified (as string)?\n // it becomes responsible for boundary\n // (e.g. to handle extra CRLFs on .NET servers)\n if (typeof options.header == 'string') {\n return options.header;\n }\n\n var contentDisposition = this._getContentDisposition(value, options);\n var contentType = this._getContentType(value, options);\n\n var contents = '';\n var headers = {\n // add custom disposition as third element or keep it two elements if not\n 'Content-Disposition': ['form-data', 'name=\"' + field + '\"'].concat(contentDisposition || []),\n // if no content type. allow it to be empty array\n 'Content-Type': [].concat(contentType || [])\n };\n\n // allow custom headers.\n if (typeof options.header == 'object') {\n populate(headers, options.header);\n }\n\n var header;\n for (var prop in headers) {\n if (!headers.hasOwnProperty(prop)) continue;\n header = headers[prop];\n\n // skip nullish headers.\n if (header == null) {\n continue;\n }\n\n // convert all headers to arrays.\n if (!Array.isArray(header)) {\n header = [header];\n }\n\n // add non-empty headers.\n if (header.length) {\n contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;\n }\n }\n\n return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;\n};\n\nFormData.prototype._getContentDisposition = function(value, options) {\n\n var filename\n , contentDisposition\n ;\n\n if (typeof options.filepath === 'string') {\n // custom filepath for relative paths\n filename = path.normalize(options.filepath).replace(/\\\\/g, '/');\n } else if (options.filename || value.name || value.path) {\n // custom filename take precedence\n // formidable and the browser add a name property\n // fs- and request- streams have path property\n filename = path.basename(options.filename || value.name || value.path);\n } else if (value.readable && value.hasOwnProperty('httpVersion')) {\n // or try http response\n filename = path.basename(value.client._httpMessage.path || '');\n }\n\n if (filename) {\n contentDisposition = 'filename=\"' + filename + '\"';\n }\n\n return contentDisposition;\n};\n\nFormData.prototype._getContentType = function(value, options) {\n\n // use custom content-type above all\n var contentType = options.contentType;\n\n // or try `name` from formidable, browser\n if (!contentType && value.name) {\n contentType = mime.lookup(value.name);\n }\n\n // or try `path` from fs-, request- streams\n if (!contentType && value.path) {\n contentType = mime.lookup(value.path);\n }\n\n // or if it's http-reponse\n if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {\n contentType = value.headers['content-type'];\n }\n\n // or guess it from the filepath or filename\n if (!contentType && (options.filepath || options.filename)) {\n contentType = mime.lookup(options.filepath || options.filename);\n }\n\n // fallback to the default content type if `value` is not simple value\n if (!contentType && typeof value == 'object') {\n contentType = FormData.DEFAULT_CONTENT_TYPE;\n }\n\n return contentType;\n};\n\nFormData.prototype._multiPartFooter = function() {\n return function(next) {\n var footer = FormData.LINE_BREAK;\n\n var lastPart = (this._streams.length === 0);\n if (lastPart) {\n footer += this._lastBoundary();\n }\n\n next(footer);\n }.bind(this);\n};\n\nFormData.prototype._lastBoundary = function() {\n return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;\n};\n\nFormData.prototype.getHeaders = function(userHeaders) {\n var header;\n var formHeaders = {\n 'content-type': 'multipart/form-data; boundary=' + this.getBoundary()\n };\n\n for (header in userHeaders) {\n if (userHeaders.hasOwnProperty(header)) {\n formHeaders[header.toLowerCase()] = userHeaders[header];\n }\n }\n\n return formHeaders;\n};\n\nFormData.prototype.setBoundary = function(boundary) {\n this._boundary = boundary;\n};\n\nFormData.prototype.getBoundary = function() {\n if (!this._boundary) {\n this._generateBoundary();\n }\n\n return this._boundary;\n};\n\nFormData.prototype.getBuffer = function() {\n var dataBuffer = new Buffer.alloc( 0 );\n var boundary = this.getBoundary();\n\n // Create the form content. Add Line breaks to the end of data.\n for (var i = 0, len = this._streams.length; i < len; i++) {\n if (typeof this._streams[i] !== 'function') {\n\n // Add content to the buffer.\n if(Buffer.isBuffer(this._streams[i])) {\n dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]);\n }else {\n dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]);\n }\n\n // Add break after content.\n if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) {\n dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] );\n }\n }\n }\n\n // Add the footer and return the Buffer object.\n return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] );\n};\n\nFormData.prototype._generateBoundary = function() {\n // This generates a 50 character boundary similar to those used by Firefox.\n // They are optimized for boyer-moore parsing.\n var boundary = '--------------------------';\n for (var i = 0; i < 24; i++) {\n boundary += Math.floor(Math.random() * 10).toString(16);\n }\n\n this._boundary = boundary;\n};\n\n// Note: getLengthSync DOESN'T calculate streams length\n// As workaround one can calculate file size manually\n// and add it as knownLength option\nFormData.prototype.getLengthSync = function() {\n var knownLength = this._overheadLength + this._valueLength;\n\n // Don't get confused, there are 3 \"internal\" streams for each keyval pair\n // so it basically checks if there is any value added to the form\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n // https://github.com/form-data/form-data/issues/40\n if (!this.hasKnownLength()) {\n // Some async length retrievers are present\n // therefore synchronous length calculation is false.\n // Please use getLength(callback) to get proper length\n this._error(new Error('Cannot calculate proper length in synchronous way.'));\n }\n\n return knownLength;\n};\n\n// Public API to check if length of added values is known\n// https://github.com/form-data/form-data/issues/196\n// https://github.com/form-data/form-data/issues/262\nFormData.prototype.hasKnownLength = function() {\n var hasKnownLength = true;\n\n if (this._valuesToMeasure.length) {\n hasKnownLength = false;\n }\n\n return hasKnownLength;\n};\n\nFormData.prototype.getLength = function(cb) {\n var knownLength = this._overheadLength + this._valueLength;\n\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n if (!this._valuesToMeasure.length) {\n process.nextTick(cb.bind(this, null, knownLength));\n return;\n }\n\n asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {\n if (err) {\n cb(err);\n return;\n }\n\n values.forEach(function(length) {\n knownLength += length;\n });\n\n cb(null, knownLength);\n });\n};\n\nFormData.prototype.submit = function(params, cb) {\n var request\n , options\n , defaults = {method: 'post'}\n ;\n\n // parse provided url if it's string\n // or treat it as options object\n if (typeof params == 'string') {\n\n params = parseUrl(params);\n options = populate({\n port: params.port,\n path: params.pathname,\n host: params.hostname,\n protocol: params.protocol\n }, defaults);\n\n // use custom params\n } else {\n\n options = populate(params, defaults);\n // if no port provided use default one\n if (!options.port) {\n options.port = options.protocol == 'https:' ? 443 : 80;\n }\n }\n\n // put that good code in getHeaders to some use\n options.headers = this.getHeaders(params.headers);\n\n // https if specified, fallback to http in any other case\n if (options.protocol == 'https:') {\n request = https.request(options);\n } else {\n request = http.request(options);\n }\n\n // get content length and fire away\n this.getLength(function(err, length) {\n if (err && err !== 'Unknown stream') {\n this._error(err);\n return;\n }\n\n // add content length\n if (length) {\n request.setHeader('Content-Length', length);\n }\n\n this.pipe(request);\n if (cb) {\n var onResponse;\n\n var callback = function (error, responce) {\n request.removeListener('error', callback);\n request.removeListener('response', onResponse);\n\n return cb.call(this, error, responce);\n };\n\n onResponse = callback.bind(this, null);\n\n request.on('error', callback);\n request.on('response', onResponse);\n }\n }.bind(this));\n\n return request;\n};\n\nFormData.prototype._error = function(err) {\n if (!this.error) {\n this.error = err;\n this.pause();\n this.emit('error', err);\n }\n};\n\nFormData.prototype.toString = function () {\n return '[object FormData]';\n};\n","// populates missing values\nmodule.exports = function(dst, src) {\n\n Object.keys(src).forEach(function(prop)\n {\n dst[prop] = dst[prop] || src[prop];\n });\n\n return dst;\n};\n","'use strict'\n\nmodule.exports = clone\n\nvar getPrototypeOf = Object.getPrototypeOf || function (obj) {\n return obj.__proto__\n}\n\nfunction clone (obj) {\n if (obj === null || typeof obj !== 'object')\n return obj\n\n if (obj instanceof Object)\n var copy = { __proto__: getPrototypeOf(obj) }\n else\n var copy = Object.create(null)\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))\n })\n\n return copy\n}\n","var fs = require('fs')\nvar polyfills = require('./polyfills.js')\nvar legacy = require('./legacy-streams.js')\nvar clone = require('./clone.js')\n\nvar util = require('util')\n\n/* istanbul ignore next - node 0.x polyfill */\nvar gracefulQueue\nvar previousSymbol\n\n/* istanbul ignore else - node 0.x polyfill */\nif (typeof Symbol === 'function' && typeof Symbol.for === 'function') {\n gracefulQueue = Symbol.for('graceful-fs.queue')\n // This is used in testing by future versions\n previousSymbol = Symbol.for('graceful-fs.previous')\n} else {\n gracefulQueue = '___graceful-fs.queue'\n previousSymbol = '___graceful-fs.previous'\n}\n\nfunction noop () {}\n\nfunction publishQueue(context, queue) {\n Object.defineProperty(context, gracefulQueue, {\n get: function() {\n return queue\n }\n })\n}\n\nvar debug = noop\nif (util.debuglog)\n debug = util.debuglog('gfs4')\nelse if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || ''))\n debug = function() {\n var m = util.format.apply(util, arguments)\n m = 'GFS4: ' + m.split(/\\n/).join('\\nGFS4: ')\n console.error(m)\n }\n\n// Once time initialization\nif (!fs[gracefulQueue]) {\n // This queue can be shared by multiple loaded instances\n var queue = global[gracefulQueue] || []\n publishQueue(fs, queue)\n\n // Patch fs.close/closeSync to shared queue version, because we need\n // to retry() whenever a close happens *anywhere* in the program.\n // This is essential when multiple graceful-fs instances are\n // in play at the same time.\n fs.close = (function (fs$close) {\n function close (fd, cb) {\n return fs$close.call(fs, fd, function (err) {\n // This function uses the graceful-fs shared queue\n if (!err) {\n resetQueue()\n }\n\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n })\n }\n\n Object.defineProperty(close, previousSymbol, {\n value: fs$close\n })\n return close\n })(fs.close)\n\n fs.closeSync = (function (fs$closeSync) {\n function closeSync (fd) {\n // This function uses the graceful-fs shared queue\n fs$closeSync.apply(fs, arguments)\n resetQueue()\n }\n\n Object.defineProperty(closeSync, previousSymbol, {\n value: fs$closeSync\n })\n return closeSync\n })(fs.closeSync)\n\n if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || '')) {\n process.on('exit', function() {\n debug(fs[gracefulQueue])\n require('assert').equal(fs[gracefulQueue].length, 0)\n })\n }\n}\n\nif (!global[gracefulQueue]) {\n publishQueue(global, fs[gracefulQueue]);\n}\n\nmodule.exports = patch(clone(fs))\nif (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {\n module.exports = patch(fs)\n fs.__patched = true;\n}\n\nfunction patch (fs) {\n // Everything that references the open() function needs to be in here\n polyfills(fs)\n fs.gracefulify = patch\n\n fs.createReadStream = createReadStream\n fs.createWriteStream = createWriteStream\n var fs$readFile = fs.readFile\n fs.readFile = readFile\n function readFile (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$readFile(path, options, cb)\n\n function go$readFile (path, options, cb, startTime) {\n return fs$readFile(path, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$writeFile = fs.writeFile\n fs.writeFile = writeFile\n function writeFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$writeFile(path, data, options, cb)\n\n function go$writeFile (path, data, options, cb, startTime) {\n return fs$writeFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$appendFile = fs.appendFile\n if (fs$appendFile)\n fs.appendFile = appendFile\n function appendFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$appendFile(path, data, options, cb)\n\n function go$appendFile (path, data, options, cb, startTime) {\n return fs$appendFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$copyFile = fs.copyFile\n if (fs$copyFile)\n fs.copyFile = copyFile\n function copyFile (src, dest, flags, cb) {\n if (typeof flags === 'function') {\n cb = flags\n flags = 0\n }\n return go$copyFile(src, dest, flags, cb)\n\n function go$copyFile (src, dest, flags, cb, startTime) {\n return fs$copyFile(src, dest, flags, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$readdir = fs.readdir\n fs.readdir = readdir\n var noReaddirOptionVersions = /^v[0-5]\\./\n function readdir (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n var go$readdir = noReaddirOptionVersions.test(process.version)\n ? function go$readdir (path, options, cb, startTime) {\n return fs$readdir(path, fs$readdirCallback(\n path, options, cb, startTime\n ))\n }\n : function go$readdir (path, options, cb, startTime) {\n return fs$readdir(path, options, fs$readdirCallback(\n path, options, cb, startTime\n ))\n }\n\n return go$readdir(path, options, cb)\n\n function fs$readdirCallback (path, options, cb, startTime) {\n return function (err, files) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([\n go$readdir,\n [path, options, cb],\n err,\n startTime || Date.now(),\n Date.now()\n ])\n else {\n if (files && files.sort)\n files.sort()\n\n if (typeof cb === 'function')\n cb.call(this, err, files)\n }\n }\n }\n }\n\n if (process.version.substr(0, 4) === 'v0.8') {\n var legStreams = legacy(fs)\n ReadStream = legStreams.ReadStream\n WriteStream = legStreams.WriteStream\n }\n\n var fs$ReadStream = fs.ReadStream\n if (fs$ReadStream) {\n ReadStream.prototype = Object.create(fs$ReadStream.prototype)\n ReadStream.prototype.open = ReadStream$open\n }\n\n var fs$WriteStream = fs.WriteStream\n if (fs$WriteStream) {\n WriteStream.prototype = Object.create(fs$WriteStream.prototype)\n WriteStream.prototype.open = WriteStream$open\n }\n\n Object.defineProperty(fs, 'ReadStream', {\n get: function () {\n return ReadStream\n },\n set: function (val) {\n ReadStream = val\n },\n enumerable: true,\n configurable: true\n })\n Object.defineProperty(fs, 'WriteStream', {\n get: function () {\n return WriteStream\n },\n set: function (val) {\n WriteStream = val\n },\n enumerable: true,\n configurable: true\n })\n\n // legacy names\n var FileReadStream = ReadStream\n Object.defineProperty(fs, 'FileReadStream', {\n get: function () {\n return FileReadStream\n },\n set: function (val) {\n FileReadStream = val\n },\n enumerable: true,\n configurable: true\n })\n var FileWriteStream = WriteStream\n Object.defineProperty(fs, 'FileWriteStream', {\n get: function () {\n return FileWriteStream\n },\n set: function (val) {\n FileWriteStream = val\n },\n enumerable: true,\n configurable: true\n })\n\n function ReadStream (path, options) {\n if (this instanceof ReadStream)\n return fs$ReadStream.apply(this, arguments), this\n else\n return ReadStream.apply(Object.create(ReadStream.prototype), arguments)\n }\n\n function ReadStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n if (that.autoClose)\n that.destroy()\n\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n that.read()\n }\n })\n }\n\n function WriteStream (path, options) {\n if (this instanceof WriteStream)\n return fs$WriteStream.apply(this, arguments), this\n else\n return WriteStream.apply(Object.create(WriteStream.prototype), arguments)\n }\n\n function WriteStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n that.destroy()\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n }\n })\n }\n\n function createReadStream (path, options) {\n return new fs.ReadStream(path, options)\n }\n\n function createWriteStream (path, options) {\n return new fs.WriteStream(path, options)\n }\n\n var fs$open = fs.open\n fs.open = open\n function open (path, flags, mode, cb) {\n if (typeof mode === 'function')\n cb = mode, mode = null\n\n return go$open(path, flags, mode, cb)\n\n function go$open (path, flags, mode, cb, startTime) {\n return fs$open(path, flags, mode, function (err, fd) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n return fs\n}\n\nfunction enqueue (elem) {\n debug('ENQUEUE', elem[0].name, elem[1])\n fs[gracefulQueue].push(elem)\n retry()\n}\n\n// keep track of the timeout between retry() calls\nvar retryTimer\n\n// reset the startTime and lastTime to now\n// this resets the start of the 60 second overall timeout as well as the\n// delay between attempts so that we'll retry these jobs sooner\nfunction resetQueue () {\n var now = Date.now()\n for (var i = 0; i < fs[gracefulQueue].length; ++i) {\n // entries that are only a length of 2 are from an older version, don't\n // bother modifying those since they'll be retried anyway.\n if (fs[gracefulQueue][i].length > 2) {\n fs[gracefulQueue][i][3] = now // startTime\n fs[gracefulQueue][i][4] = now // lastTime\n }\n }\n // call retry to make sure we're actively processing the queue\n retry()\n}\n\nfunction retry () {\n // clear the timer and remove it to help prevent unintended concurrency\n clearTimeout(retryTimer)\n retryTimer = undefined\n\n if (fs[gracefulQueue].length === 0)\n return\n\n var elem = fs[gracefulQueue].shift()\n var fn = elem[0]\n var args = elem[1]\n // these items may be unset if they were added by an older graceful-fs\n var err = elem[2]\n var startTime = elem[3]\n var lastTime = elem[4]\n\n // if we don't have a startTime we have no way of knowing if we've waited\n // long enough, so go ahead and retry this item now\n if (startTime === undefined) {\n debug('RETRY', fn.name, args)\n fn.apply(null, args)\n } else if (Date.now() - startTime >= 60000) {\n // it's been more than 60 seconds total, bail now\n debug('TIMEOUT', fn.name, args)\n var cb = args.pop()\n if (typeof cb === 'function')\n cb.call(null, err)\n } else {\n // the amount of time between the last attempt and right now\n var sinceAttempt = Date.now() - lastTime\n // the amount of time between when we first tried, and when we last tried\n // rounded up to at least 1\n var sinceStart = Math.max(lastTime - startTime, 1)\n // backoff. wait longer than the total time we've been retrying, but only\n // up to a maximum of 100ms\n var desiredDelay = Math.min(sinceStart * 1.2, 100)\n // it's been long enough since the last retry, do it again\n if (sinceAttempt >= desiredDelay) {\n debug('RETRY', fn.name, args)\n fn.apply(null, args.concat([startTime]))\n } else {\n // if we can't do this job yet, push it to the end of the queue\n // and let the next iteration check again\n fs[gracefulQueue].push(elem)\n }\n }\n\n // schedule our next run if one isn't already scheduled\n if (retryTimer === undefined) {\n retryTimer = setTimeout(retry, 0)\n }\n}\n","var Stream = require('stream').Stream\n\nmodule.exports = legacy\n\nfunction legacy (fs) {\n return {\n ReadStream: ReadStream,\n WriteStream: WriteStream\n }\n\n function ReadStream (path, options) {\n if (!(this instanceof ReadStream)) return new ReadStream(path, options);\n\n Stream.call(this);\n\n var self = this;\n\n this.path = path;\n this.fd = null;\n this.readable = true;\n this.paused = false;\n\n this.flags = 'r';\n this.mode = 438; /*=0666*/\n this.bufferSize = 64 * 1024;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.encoding) this.setEncoding(this.encoding);\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.end === undefined) {\n this.end = Infinity;\n } else if ('number' !== typeof this.end) {\n throw TypeError('end must be a Number');\n }\n\n if (this.start > this.end) {\n throw new Error('start must be <= end');\n }\n\n this.pos = this.start;\n }\n\n if (this.fd !== null) {\n process.nextTick(function() {\n self._read();\n });\n return;\n }\n\n fs.open(this.path, this.flags, this.mode, function (err, fd) {\n if (err) {\n self.emit('error', err);\n self.readable = false;\n return;\n }\n\n self.fd = fd;\n self.emit('open', fd);\n self._read();\n })\n }\n\n function WriteStream (path, options) {\n if (!(this instanceof WriteStream)) return new WriteStream(path, options);\n\n Stream.call(this);\n\n this.path = path;\n this.fd = null;\n this.writable = true;\n\n this.flags = 'w';\n this.encoding = 'binary';\n this.mode = 438; /*=0666*/\n this.bytesWritten = 0;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.start < 0) {\n throw new Error('start must be >= zero');\n }\n\n this.pos = this.start;\n }\n\n this.busy = false;\n this._queue = [];\n\n if (this.fd === null) {\n this._open = fs.open;\n this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);\n this.flush();\n }\n }\n}\n","var constants = require('constants')\n\nvar origCwd = process.cwd\nvar cwd = null\n\nvar platform = process.env.GRACEFUL_FS_PLATFORM || process.platform\n\nprocess.cwd = function() {\n if (!cwd)\n cwd = origCwd.call(process)\n return cwd\n}\ntry {\n process.cwd()\n} catch (er) {}\n\n// This check is needed until node.js 12 is required\nif (typeof process.chdir === 'function') {\n var chdir = process.chdir\n process.chdir = function (d) {\n cwd = null\n chdir.call(process, d)\n }\n if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)\n}\n\nmodule.exports = patch\n\nfunction patch (fs) {\n // (re-)implement some things that are known busted or missing.\n\n // lchmod, broken prior to 0.6.2\n // back-port the fix here.\n if (constants.hasOwnProperty('O_SYMLINK') &&\n process.version.match(/^v0\\.6\\.[0-2]|^v0\\.5\\./)) {\n patchLchmod(fs)\n }\n\n // lutimes implementation, or no-op\n if (!fs.lutimes) {\n patchLutimes(fs)\n }\n\n // https://github.com/isaacs/node-graceful-fs/issues/4\n // Chown should not fail on einval or eperm if non-root.\n // It should not fail on enosys ever, as this just indicates\n // that a fs doesn't support the intended operation.\n\n fs.chown = chownFix(fs.chown)\n fs.fchown = chownFix(fs.fchown)\n fs.lchown = chownFix(fs.lchown)\n\n fs.chmod = chmodFix(fs.chmod)\n fs.fchmod = chmodFix(fs.fchmod)\n fs.lchmod = chmodFix(fs.lchmod)\n\n fs.chownSync = chownFixSync(fs.chownSync)\n fs.fchownSync = chownFixSync(fs.fchownSync)\n fs.lchownSync = chownFixSync(fs.lchownSync)\n\n fs.chmodSync = chmodFixSync(fs.chmodSync)\n fs.fchmodSync = chmodFixSync(fs.fchmodSync)\n fs.lchmodSync = chmodFixSync(fs.lchmodSync)\n\n fs.stat = statFix(fs.stat)\n fs.fstat = statFix(fs.fstat)\n fs.lstat = statFix(fs.lstat)\n\n fs.statSync = statFixSync(fs.statSync)\n fs.fstatSync = statFixSync(fs.fstatSync)\n fs.lstatSync = statFixSync(fs.lstatSync)\n\n // if lchmod/lchown do not exist, then make them no-ops\n if (fs.chmod && !fs.lchmod) {\n fs.lchmod = function (path, mode, cb) {\n if (cb) process.nextTick(cb)\n }\n fs.lchmodSync = function () {}\n }\n if (fs.chown && !fs.lchown) {\n fs.lchown = function (path, uid, gid, cb) {\n if (cb) process.nextTick(cb)\n }\n fs.lchownSync = function () {}\n }\n\n // on Windows, A/V software can lock the directory, causing this\n // to fail with an EACCES or EPERM if the directory contains newly\n // created files. Try again on failure, for up to 60 seconds.\n\n // Set the timeout this long because some Windows Anti-Virus, such as Parity\n // bit9, may lock files for up to a minute, causing npm package install\n // failures. Also, take care to yield the scheduler. Windows scheduling gives\n // CPU to a busy looping process, which can cause the program causing the lock\n // contention to be starved of CPU by node, so the contention doesn't resolve.\n if (platform === \"win32\") {\n fs.rename = typeof fs.rename !== 'function' ? fs.rename\n : (function (fs$rename) {\n function rename (from, to, cb) {\n var start = Date.now()\n var backoff = 0;\n fs$rename(from, to, function CB (er) {\n if (er\n && (er.code === \"EACCES\" || er.code === \"EPERM\" || er.code === \"EBUSY\")\n && Date.now() - start < 60000) {\n setTimeout(function() {\n fs.stat(to, function (stater, st) {\n if (stater && stater.code === \"ENOENT\")\n fs$rename(from, to, CB);\n else\n cb(er)\n })\n }, backoff)\n if (backoff < 100)\n backoff += 10;\n return;\n }\n if (cb) cb(er)\n })\n }\n if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)\n return rename\n })(fs.rename)\n }\n\n // if read() returns EAGAIN, then just try it again.\n fs.read = typeof fs.read !== 'function' ? fs.read\n : (function (fs$read) {\n function read (fd, buffer, offset, length, position, callback_) {\n var callback\n if (callback_ && typeof callback_ === 'function') {\n var eagCounter = 0\n callback = function (er, _, __) {\n if (er && er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n callback_.apply(this, arguments)\n }\n }\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n\n // This ensures `util.promisify` works as it does for native `fs.read`.\n if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)\n return read\n })(fs.read)\n\n fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync\n : (function (fs$readSync) { return function (fd, buffer, offset, length, position) {\n var eagCounter = 0\n while (true) {\n try {\n return fs$readSync.call(fs, fd, buffer, offset, length, position)\n } catch (er) {\n if (er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n continue\n }\n throw er\n }\n }\n }})(fs.readSync)\n\n function patchLchmod (fs) {\n fs.lchmod = function (path, mode, callback) {\n fs.open( path\n , constants.O_WRONLY | constants.O_SYMLINK\n , mode\n , function (err, fd) {\n if (err) {\n if (callback) callback(err)\n return\n }\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n fs.fchmod(fd, mode, function (err) {\n fs.close(fd, function(err2) {\n if (callback) callback(err || err2)\n })\n })\n })\n }\n\n fs.lchmodSync = function (path, mode) {\n var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)\n\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n var threw = true\n var ret\n try {\n ret = fs.fchmodSync(fd, mode)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n }\n\n function patchLutimes (fs) {\n if (constants.hasOwnProperty(\"O_SYMLINK\") && fs.futimes) {\n fs.lutimes = function (path, at, mt, cb) {\n fs.open(path, constants.O_SYMLINK, function (er, fd) {\n if (er) {\n if (cb) cb(er)\n return\n }\n fs.futimes(fd, at, mt, function (er) {\n fs.close(fd, function (er2) {\n if (cb) cb(er || er2)\n })\n })\n })\n }\n\n fs.lutimesSync = function (path, at, mt) {\n var fd = fs.openSync(path, constants.O_SYMLINK)\n var ret\n var threw = true\n try {\n ret = fs.futimesSync(fd, at, mt)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n\n } else if (fs.futimes) {\n fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }\n fs.lutimesSync = function () {}\n }\n }\n\n function chmodFix (orig) {\n if (!orig) return orig\n return function (target, mode, cb) {\n return orig.call(fs, target, mode, function (er) {\n if (chownErOk(er)) er = null\n if (cb) cb.apply(this, arguments)\n })\n }\n }\n\n function chmodFixSync (orig) {\n if (!orig) return orig\n return function (target, mode) {\n try {\n return orig.call(fs, target, mode)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n }\n\n\n function chownFix (orig) {\n if (!orig) return orig\n return function (target, uid, gid, cb) {\n return orig.call(fs, target, uid, gid, function (er) {\n if (chownErOk(er)) er = null\n if (cb) cb.apply(this, arguments)\n })\n }\n }\n\n function chownFixSync (orig) {\n if (!orig) return orig\n return function (target, uid, gid) {\n try {\n return orig.call(fs, target, uid, gid)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n }\n\n function statFix (orig) {\n if (!orig) return orig\n // Older versions of Node erroneously returned signed integers for\n // uid + gid.\n return function (target, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = null\n }\n function callback (er, stats) {\n if (stats) {\n if (stats.uid < 0) stats.uid += 0x100000000\n if (stats.gid < 0) stats.gid += 0x100000000\n }\n if (cb) cb.apply(this, arguments)\n }\n return options ? orig.call(fs, target, options, callback)\n : orig.call(fs, target, callback)\n }\n }\n\n function statFixSync (orig) {\n if (!orig) return orig\n // Older versions of Node erroneously returned signed integers for\n // uid + gid.\n return function (target, options) {\n var stats = options ? orig.call(fs, target, options)\n : orig.call(fs, target)\n if (stats) {\n if (stats.uid < 0) stats.uid += 0x100000000\n if (stats.gid < 0) stats.gid += 0x100000000\n }\n return stats;\n }\n }\n\n // ENOSYS means that the fs doesn't support the op. Just ignore\n // that, because it doesn't matter.\n //\n // if there's no getuid, or if getuid() is something other\n // than 0, and the error is EINVAL or EPERM, then just ignore\n // it.\n //\n // This specific case is a silent failure in cp, install, tar,\n // and most other unix tools that manage permissions.\n //\n // When running as root, or if other types of errors are\n // encountered, then it's strict.\n function chownErOk (er) {\n if (!er)\n return true\n\n if (er.code === \"ENOSYS\")\n return true\n\n var nonroot = !process.getuid || process.getuid() !== 0\n if (nonroot) {\n if (er.code === \"EINVAL\" || er.code === \"EPERM\")\n return true\n }\n\n return false\n }\n}\n","try {\n var util = require('util');\n /* istanbul ignore next */\n if (typeof util.inherits !== 'function') throw '';\n module.exports = util.inherits;\n} catch (e) {\n /* istanbul ignore next */\n module.exports = require('./inherits_browser.js');\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/*!\n * is-plain-object \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nfunction isObject(o) {\n return Object.prototype.toString.call(o) === '[object Object]';\n}\n\nfunction isPlainObject(o) {\n var ctor,prot;\n\n if (isObject(o) === false) return false;\n\n // If has modified constructor\n ctor = o.constructor;\n if (ctor === undefined) return true;\n\n // If has modified prototype\n prot = ctor.prototype;\n if (isObject(prot) === false) return false;\n\n // If constructor does not have an Object-specific method\n if (prot.hasOwnProperty('isPrototypeOf') === false) {\n return false;\n }\n\n // Most likely a plain Object\n return true;\n}\n\nexports.isPlainObject = isPlainObject;\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","\"use strict\";function e(e){this.message=e}e.prototype=new Error,e.prototype.name=\"InvalidCharacterError\";var r=\"undefined\"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,\"\");if(t.length%4==1)throw new e(\"'atob' failed: The string to be decoded is not correctly encoded.\");for(var n,o,a=0,i=0,c=\"\";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\".indexOf(o);return c};function t(e){var t=e.replace(/-/g,\"+\").replace(/_/g,\"/\");switch(t.length%4){case 0:break;case 2:t+=\"==\";break;case 3:t+=\"=\";break;default:throw\"Illegal base64url string!\"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t=\"0\"+t),\"%\"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e}function o(e,r){if(\"string\"!=typeof e)throw new n(\"Invalid token specified\");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(\".\")[o]))}catch(e){throw new n(\"Invalid token specified: \"+e.message)}}n.prototype=new Error,n.prototype.name=\"InvalidTokenError\";const a=o;a.default=o,a.InvalidTokenError=n,module.exports=a;\n//# sourceMappingURL=jwt-decode.cjs.js.map\n","var util = require('util');\nvar PassThrough = require('readable-stream/passthrough');\n\nmodule.exports = {\n Readable: Readable,\n Writable: Writable\n};\n\nutil.inherits(Readable, PassThrough);\nutil.inherits(Writable, PassThrough);\n\n// Patch the given method of instance so that the callback\n// is executed once, before the actual method is called the\n// first time.\nfunction beforeFirstCall(instance, method, callback) {\n instance[method] = function() {\n delete instance[method];\n callback.apply(this, arguments);\n return this[method].apply(this, arguments);\n };\n}\n\nfunction Readable(fn, options) {\n if (!(this instanceof Readable))\n return new Readable(fn, options);\n\n PassThrough.call(this, options);\n\n beforeFirstCall(this, '_read', function() {\n var source = fn.call(this, options);\n var emit = this.emit.bind(this, 'error');\n source.on('error', emit);\n source.pipe(this);\n });\n\n this.emit('readable');\n}\n\nfunction Writable(fn, options) {\n if (!(this instanceof Writable))\n return new Writable(fn, options);\n\n PassThrough.call(this, options);\n\n beforeFirstCall(this, '_write', function() {\n var destination = fn.call(this, options);\n var emit = this.emit.bind(this, 'error');\n destination.on('error', emit);\n this.pipe(destination);\n });\n\n this.emit('writable');\n}\n\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseDifference;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n","/*!\n * mime-db\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015-2022 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n/**\n * Module exports.\n */\n\nmodule.exports = require('./db.json')\n","/*!\n * mime-types\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict'\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar db = require('mime-db')\nvar extname = require('path').extname\n\n/**\n * Module variables.\n * @private\n */\n\nvar EXTRACT_TYPE_REGEXP = /^\\s*([^;\\s]*)(?:;|\\s|$)/\nvar TEXT_TYPE_REGEXP = /^text\\//i\n\n/**\n * Module exports.\n * @public\n */\n\nexports.charset = charset\nexports.charsets = { lookup: charset }\nexports.contentType = contentType\nexports.extension = extension\nexports.extensions = Object.create(null)\nexports.lookup = lookup\nexports.types = Object.create(null)\n\n// Populate the extensions/types maps\npopulateMaps(exports.extensions, exports.types)\n\n/**\n * Get the default charset for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction charset (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n var mime = match && db[match[1].toLowerCase()]\n\n if (mime && mime.charset) {\n return mime.charset\n }\n\n // default text/* to utf-8\n if (match && TEXT_TYPE_REGEXP.test(match[1])) {\n return 'UTF-8'\n }\n\n return false\n}\n\n/**\n * Create a full Content-Type header given a MIME type or extension.\n *\n * @param {string} str\n * @return {boolean|string}\n */\n\nfunction contentType (str) {\n // TODO: should this even be in this module?\n if (!str || typeof str !== 'string') {\n return false\n }\n\n var mime = str.indexOf('/') === -1\n ? exports.lookup(str)\n : str\n\n if (!mime) {\n return false\n }\n\n // TODO: use content-type or other module\n if (mime.indexOf('charset') === -1) {\n var charset = exports.charset(mime)\n if (charset) mime += '; charset=' + charset.toLowerCase()\n }\n\n return mime\n}\n\n/**\n * Get the default extension for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction extension (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n\n // get extensions\n var exts = match && exports.extensions[match[1].toLowerCase()]\n\n if (!exts || !exts.length) {\n return false\n }\n\n return exts[0]\n}\n\n/**\n * Lookup the MIME type for a file path/extension.\n *\n * @param {string} path\n * @return {boolean|string}\n */\n\nfunction lookup (path) {\n if (!path || typeof path !== 'string') {\n return false\n }\n\n // get the extension (\"ext\" or \".ext\" or full path)\n var extension = extname('x.' + path)\n .toLowerCase()\n .substr(1)\n\n if (!extension) {\n return false\n }\n\n return exports.types[extension] || false\n}\n\n/**\n * Populate the extensions and types maps.\n * @private\n */\n\nfunction populateMaps (extensions, types) {\n // source preference (least -> most)\n var preference = ['nginx', 'apache', undefined, 'iana']\n\n Object.keys(db).forEach(function forEachMimeType (type) {\n var mime = db[type]\n var exts = mime.extensions\n\n if (!exts || !exts.length) {\n return\n }\n\n // mime -> extensions\n extensions[type] = exts\n\n // extension -> mime\n for (var i = 0; i < exts.length; i++) {\n var extension = exts[i]\n\n if (types[extension]) {\n var from = preference.indexOf(db[types[extension]].source)\n var to = preference.indexOf(mime.source)\n\n if (types[extension] !== 'application/octet-stream' &&\n (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {\n // skip the remapping\n continue\n }\n }\n\n // set the extension -> mime\n types[extension] = type\n }\n })\n}\n","const isWindows = typeof process === 'object' &&\n process &&\n process.platform === 'win32'\nmodule.exports = isWindows ? { sep: '\\\\' } : { sep: '/' }\n","const minimatch = module.exports = (p, pattern, options = {}) => {\n assertValidPattern(pattern)\n\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false\n }\n\n return new Minimatch(pattern, options).match(p)\n}\n\nmodule.exports = minimatch\n\nconst path = require('./lib/path.js')\nminimatch.sep = path.sep\n\nconst GLOBSTAR = Symbol('globstar **')\nminimatch.GLOBSTAR = GLOBSTAR\nconst expand = require('brace-expansion')\n\nconst plTypes = {\n '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},\n '?': { open: '(?:', close: ')?' },\n '+': { open: '(?:', close: ')+' },\n '*': { open: '(?:', close: ')*' },\n '@': { open: '(?:', close: ')' }\n}\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nconst qmark = '[^/]'\n\n// * => any number of characters\nconst star = qmark + '*?'\n\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nconst twoStarDot = '(?:(?!(?:\\\\\\/|^)(?:\\\\.{1,2})($|\\\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nconst twoStarNoDot = '(?:(?!(?:\\\\\\/|^)\\\\.).)*?'\n\n// \"abc\" -> { a:true, b:true, c:true }\nconst charSet = s => s.split('').reduce((set, c) => {\n set[c] = true\n return set\n}, {})\n\n// characters that need to be escaped in RegExp.\nconst reSpecials = charSet('().*{}+?[]^$\\\\!')\n\n// characters that indicate we have to add the pattern start\nconst addPatternStartSet = charSet('[.(')\n\n// normalizes slashes.\nconst slashSplit = /\\/+/\n\nminimatch.filter = (pattern, options = {}) =>\n (p, i, list) => minimatch(p, pattern, options)\n\nconst ext = (a, b = {}) => {\n const t = {}\n Object.keys(a).forEach(k => t[k] = a[k])\n Object.keys(b).forEach(k => t[k] = b[k])\n return t\n}\n\nminimatch.defaults = def => {\n if (!def || typeof def !== 'object' || !Object.keys(def).length) {\n return minimatch\n }\n\n const orig = minimatch\n\n const m = (p, pattern, options) => orig(p, pattern, ext(def, options))\n m.Minimatch = class Minimatch extends orig.Minimatch {\n constructor (pattern, options) {\n super(pattern, ext(def, options))\n }\n }\n m.Minimatch.defaults = options => orig.defaults(ext(def, options)).Minimatch\n m.filter = (pattern, options) => orig.filter(pattern, ext(def, options))\n m.defaults = options => orig.defaults(ext(def, options))\n m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options))\n m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options))\n m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options))\n\n return m\n}\n\n\n\n\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nminimatch.braceExpand = (pattern, options) => braceExpand(pattern, options)\n\nconst braceExpand = (pattern, options = {}) => {\n assertValidPattern(pattern)\n\n // Thanks to Yeting Li for\n // improving this regexp to avoid a ReDOS vulnerability.\n if (options.nobrace || !/\\{(?:(?!\\{).)*\\}/.test(pattern)) {\n // shortcut. no need to expand.\n return [pattern]\n }\n\n return expand(pattern)\n}\n\nconst MAX_PATTERN_LENGTH = 1024 * 64\nconst assertValidPattern = pattern => {\n if (typeof pattern !== 'string') {\n throw new TypeError('invalid pattern')\n }\n\n if (pattern.length > MAX_PATTERN_LENGTH) {\n throw new TypeError('pattern is too long')\n }\n}\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nconst SUBPARSE = Symbol('subparse')\n\nminimatch.makeRe = (pattern, options) =>\n new Minimatch(pattern, options || {}).makeRe()\n\nminimatch.match = (list, pattern, options = {}) => {\n const mm = new Minimatch(pattern, options)\n list = list.filter(f => mm.match(f))\n if (mm.options.nonull && !list.length) {\n list.push(pattern)\n }\n return list\n}\n\n// replace stuff like \\* with *\nconst globUnescape = s => s.replace(/\\\\(.)/g, '$1')\nconst charUnescape = s => s.replace(/\\\\([^-\\]])/g, '$1')\nconst regExpEscape = s => s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\nconst braExpEscape = s => s.replace(/[[\\]\\\\]/g, '\\\\$&')\n\nclass Minimatch {\n constructor (pattern, options) {\n assertValidPattern(pattern)\n\n if (!options) options = {}\n\n this.options = options\n this.set = []\n this.pattern = pattern\n this.windowsPathsNoEscape = !!options.windowsPathsNoEscape ||\n options.allowWindowsEscape === false\n if (this.windowsPathsNoEscape) {\n this.pattern = this.pattern.replace(/\\\\/g, '/')\n }\n this.regexp = null\n this.negate = false\n this.comment = false\n this.empty = false\n this.partial = !!options.partial\n\n // make the set of regexps etc.\n this.make()\n }\n\n debug () {}\n\n make () {\n const pattern = this.pattern\n const options = this.options\n\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true\n return\n }\n if (!pattern) {\n this.empty = true\n return\n }\n\n // step 1: figure out negation, etc.\n this.parseNegate()\n\n // step 2: expand braces\n let set = this.globSet = this.braceExpand()\n\n if (options.debug) this.debug = (...args) => console.error(...args)\n\n this.debug(this.pattern, set)\n\n // step 3: now we have a set, so turn each one into a series of path-portion\n // matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n set = this.globParts = set.map(s => s.split(slashSplit))\n\n this.debug(this.pattern, set)\n\n // glob --> regexps\n set = set.map((s, si, set) => s.map(this.parse, this))\n\n this.debug(this.pattern, set)\n\n // filter out everything that didn't compile properly.\n set = set.filter(s => s.indexOf(false) === -1)\n\n this.debug(this.pattern, set)\n\n this.set = set\n }\n\n parseNegate () {\n if (this.options.nonegate) return\n\n const pattern = this.pattern\n let negate = false\n let negateOffset = 0\n\n for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {\n negate = !negate\n negateOffset++\n }\n\n if (negateOffset) this.pattern = pattern.slice(negateOffset)\n this.negate = negate\n }\n\n // set partial to true to test if, for example,\n // \"/a/b\" matches the start of \"/*/b/*/d\"\n // Partial means, if you run out of file before you run\n // out of pattern, then that's fine, as long as all\n // the parts match.\n matchOne (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n /* istanbul ignore if */\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n /* istanbul ignore if */\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n hit = f === p\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else /* istanbul ignore else */ if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n return (fi === fl - 1) && (file[fi] === '')\n }\n\n // should be unreachable.\n /* istanbul ignore next */\n throw new Error('wtf?')\n }\n\n braceExpand () {\n return braceExpand(this.pattern, this.options)\n }\n\n parse (pattern, isSub) {\n assertValidPattern(pattern)\n\n const options = this.options\n\n // shortcuts\n if (pattern === '**') {\n if (!options.noglobstar)\n return GLOBSTAR\n else\n pattern = '*'\n }\n if (pattern === '') return ''\n\n let re = ''\n let hasMagic = false\n let escaping = false\n // ? => one single character\n const patternListStack = []\n const negativeLists = []\n let stateChar\n let inClass = false\n let reClassStart = -1\n let classStart = -1\n let cs\n let pl\n let sp\n // . and .. never match anything that doesn't start with .,\n // even when options.dot is set. However, if the pattern\n // starts with ., then traversal patterns can match.\n let dotTravAllowed = pattern.charAt(0) === '.'\n let dotFileAllowed = options.dot || dotTravAllowed\n const patternStart = () =>\n dotTravAllowed\n ? ''\n : dotFileAllowed\n ? '(?!(?:^|\\\\/)\\\\.{1,2}(?:$|\\\\/))'\n : '(?!\\\\.)'\n const subPatternStart = (p) =>\n p.charAt(0) === '.'\n ? ''\n : options.dot\n ? '(?!(?:^|\\\\/)\\\\.{1,2}(?:$|\\\\/))'\n : '(?!\\\\.)'\n\n\n const clearStateChar = () => {\n if (stateChar) {\n // we had some state-tracking character\n // that wasn't consumed by this pass.\n switch (stateChar) {\n case '*':\n re += star\n hasMagic = true\n break\n case '?':\n re += qmark\n hasMagic = true\n break\n default:\n re += '\\\\' + stateChar\n break\n }\n this.debug('clearStateChar %j %j', stateChar, re)\n stateChar = false\n }\n }\n\n for (let i = 0, c; (i < pattern.length) && (c = pattern.charAt(i)); i++) {\n this.debug('%s\\t%s %s %j', pattern, i, re, c)\n\n // skip over any that are escaped.\n if (escaping) {\n /* istanbul ignore next - completely not allowed, even escaped. */\n if (c === '/') {\n return false\n }\n\n if (reSpecials[c]) {\n re += '\\\\'\n }\n re += c\n escaping = false\n continue\n }\n\n switch (c) {\n /* istanbul ignore next */\n case '/': {\n // Should already be path-split by now.\n return false\n }\n\n case '\\\\':\n if (inClass && pattern.charAt(i + 1) === '-') {\n re += c\n continue\n }\n\n clearStateChar()\n escaping = true\n continue\n\n // the various stateChar values\n // for the \"extglob\" stuff.\n case '?':\n case '*':\n case '+':\n case '@':\n case '!':\n this.debug('%s\\t%s %s %j <-- stateChar', pattern, i, re, c)\n\n // all of those are literals inside a class, except that\n // the glob [!a] means [^a] in regexp\n if (inClass) {\n this.debug(' in class')\n if (c === '!' && i === classStart + 1) c = '^'\n re += c\n continue\n }\n\n // if we already have a stateChar, then it means\n // that there was something like ** or +? in there.\n // Handle the stateChar, then proceed with this one.\n this.debug('call clearStateChar %j', stateChar)\n clearStateChar()\n stateChar = c\n // if extglob is disabled, then +(asdf|foo) isn't a thing.\n // just clear the statechar *now*, rather than even diving into\n // the patternList stuff.\n if (options.noext) clearStateChar()\n continue\n\n case '(': {\n if (inClass) {\n re += '('\n continue\n }\n\n if (!stateChar) {\n re += '\\\\('\n continue\n }\n\n const plEntry = {\n type: stateChar,\n start: i - 1,\n reStart: re.length,\n open: plTypes[stateChar].open,\n close: plTypes[stateChar].close,\n }\n this.debug(this.pattern, '\\t', plEntry)\n patternListStack.push(plEntry)\n // negation is (?:(?!(?:js)(?:))[^/]*)\n re += plEntry.open\n // next entry starts with a dot maybe?\n if (plEntry.start === 0 && plEntry.type !== '!') {\n dotTravAllowed = true\n re += subPatternStart(pattern.slice(i + 1))\n }\n this.debug('plType %j %j', stateChar, re)\n stateChar = false\n continue\n }\n\n case ')': {\n const plEntry = patternListStack[patternListStack.length - 1]\n if (inClass || !plEntry) {\n re += '\\\\)'\n continue\n }\n patternListStack.pop()\n\n // closing an extglob\n clearStateChar()\n hasMagic = true\n pl = plEntry\n // negation is (?:(?!js)[^/]*)\n // The others are (?:)\n re += pl.close\n if (pl.type === '!') {\n negativeLists.push(Object.assign(pl, { reEnd: re.length }))\n }\n continue\n }\n\n case '|': {\n const plEntry = patternListStack[patternListStack.length - 1]\n if (inClass || !plEntry) {\n re += '\\\\|'\n continue\n }\n\n clearStateChar()\n re += '|'\n // next subpattern can start with a dot?\n if (plEntry.start === 0 && plEntry.type !== '!') {\n dotTravAllowed = true\n re += subPatternStart(pattern.slice(i + 1))\n }\n continue\n }\n\n // these are mostly the same in regexp and glob\n case '[':\n // swallow any state-tracking char before the [\n clearStateChar()\n\n if (inClass) {\n re += '\\\\' + c\n continue\n }\n\n inClass = true\n classStart = i\n reClassStart = re.length\n re += c\n continue\n\n case ']':\n // a right bracket shall lose its special\n // meaning and represent itself in\n // a bracket expression if it occurs\n // first in the list. -- POSIX.2 2.8.3.2\n if (i === classStart + 1 || !inClass) {\n re += '\\\\' + c\n continue\n }\n\n // split where the last [ was, make sure we don't have\n // an invalid re. if so, re-walk the contents of the\n // would-be class to re-translate any characters that\n // were passed through as-is\n // TODO: It would probably be faster to determine this\n // without a try/catch and a new RegExp, but it's tricky\n // to do safely. For now, this is safe and works.\n cs = pattern.substring(classStart + 1, i)\n try {\n RegExp('[' + braExpEscape(charUnescape(cs)) + ']')\n // looks good, finish up the class.\n re += c\n } catch (er) {\n // out of order ranges in JS are errors, but in glob syntax,\n // they're just a range that matches nothing.\n re = re.substring(0, reClassStart) + '(?:$.)' // match nothing ever\n }\n hasMagic = true\n inClass = false\n continue\n\n default:\n // swallow any state char that wasn't consumed\n clearStateChar()\n\n if (reSpecials[c] && !(c === '^' && inClass)) {\n re += '\\\\'\n }\n\n re += c\n break\n\n } // switch\n } // for\n\n // handle the case where we left a class open.\n // \"[abc\" is valid, equivalent to \"\\[abc\"\n if (inClass) {\n // split where the last [ was, and escape it\n // this is a huge pita. We now have to re-walk\n // the contents of the would-be class to re-translate\n // any characters that were passed through as-is\n cs = pattern.slice(classStart + 1)\n sp = this.parse(cs, SUBPARSE)\n re = re.substring(0, reClassStart) + '\\\\[' + sp[0]\n hasMagic = hasMagic || sp[1]\n }\n\n // handle the case where we had a +( thing at the *end*\n // of the pattern.\n // each pattern list stack adds 3 chars, and we need to go through\n // and escape any | chars that were passed through as-is for the regexp.\n // Go through and escape them, taking care not to double-escape any\n // | chars that were already escaped.\n for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {\n let tail\n tail = re.slice(pl.reStart + pl.open.length)\n this.debug('setting tail', re, pl)\n // maybe some even number of \\, then maybe 1 \\, followed by a |\n tail = tail.replace(/((?:\\\\{2}){0,64})(\\\\?)\\|/g, (_, $1, $2) => {\n /* istanbul ignore else - should already be done */\n if (!$2) {\n // the | isn't already escaped, so escape it.\n $2 = '\\\\'\n }\n\n // need to escape all those slashes *again*, without escaping the\n // one that we need for escaping the | character. As it works out,\n // escaping an even number of slashes can be done by simply repeating\n // it exactly after itself. That's why this trick works.\n //\n // I am sorry that you have to see this.\n return $1 + $1 + $2 + '|'\n })\n\n this.debug('tail=%j\\n %s', tail, tail, pl, re)\n const t = pl.type === '*' ? star\n : pl.type === '?' ? qmark\n : '\\\\' + pl.type\n\n hasMagic = true\n re = re.slice(0, pl.reStart) + t + '\\\\(' + tail\n }\n\n // handle trailing things that only matter at the very end.\n clearStateChar()\n if (escaping) {\n // trailing \\\\\n re += '\\\\\\\\'\n }\n\n // only need to apply the nodot start if the re starts with\n // something that could conceivably capture a dot\n const addPatternStart = addPatternStartSet[re.charAt(0)]\n\n // Hack to work around lack of negative lookbehind in JS\n // A pattern like: *.!(x).!(y|z) needs to ensure that a name\n // like 'a.xyz.yz' doesn't match. So, the first negative\n // lookahead, has to look ALL the way ahead, to the end of\n // the pattern.\n for (let n = negativeLists.length - 1; n > -1; n--) {\n const nl = negativeLists[n]\n\n const nlBefore = re.slice(0, nl.reStart)\n const nlFirst = re.slice(nl.reStart, nl.reEnd - 8)\n let nlAfter = re.slice(nl.reEnd)\n const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter\n\n // Handle nested stuff like *(*.js|!(*.json)), where open parens\n // mean that we should *not* include the ) in the bit that is considered\n // \"after\" the negated section.\n const closeParensBefore = nlBefore.split(')').length\n const openParensBefore = nlBefore.split('(').length - closeParensBefore\n let cleanAfter = nlAfter\n for (let i = 0; i < openParensBefore; i++) {\n cleanAfter = cleanAfter.replace(/\\)[+*?]?/, '')\n }\n nlAfter = cleanAfter\n\n const dollar = nlAfter === '' && isSub !== SUBPARSE ? '(?:$|\\\\/)' : ''\n\n re = nlBefore + nlFirst + nlAfter + dollar + nlLast\n }\n\n // if the re is not \"\" at this point, then we need to make sure\n // it doesn't match against an empty path part.\n // Otherwise a/* will match a/, which it should not.\n if (re !== '' && hasMagic) {\n re = '(?=.)' + re\n }\n\n if (addPatternStart) {\n re = patternStart() + re\n }\n\n // parsing just a piece of a larger pattern.\n if (isSub === SUBPARSE) {\n return [re, hasMagic]\n }\n\n // if it's nocase, and the lcase/uppercase don't match, it's magic\n if (options.nocase && !hasMagic) {\n hasMagic = pattern.toUpperCase() !== pattern.toLowerCase()\n }\n\n // skip the regexp for non-magical patterns\n // unescape anything in it, though, so that it'll be\n // an exact match against a file etc.\n if (!hasMagic) {\n return globUnescape(pattern)\n }\n\n const flags = options.nocase ? 'i' : ''\n try {\n return Object.assign(new RegExp('^' + re + '$', flags), {\n _glob: pattern,\n _src: re,\n })\n } catch (er) /* istanbul ignore next - should be impossible */ {\n // If it was an invalid regular expression, then it can't match\n // anything. This trick looks for a character after the end of\n // the string, which is of course impossible, except in multi-line\n // mode, but it's not a /m regex.\n return new RegExp('$.')\n }\n }\n\n makeRe () {\n if (this.regexp || this.regexp === false) return this.regexp\n\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n const set = this.set\n\n if (!set.length) {\n this.regexp = false\n return this.regexp\n }\n const options = this.options\n\n const twoStar = options.noglobstar ? star\n : options.dot ? twoStarDot\n : twoStarNoDot\n const flags = options.nocase ? 'i' : ''\n\n // coalesce globstars and regexpify non-globstar patterns\n // if it's the only item, then we just do one twoStar\n // if it's the first, and there are more, prepend (\\/|twoStar\\/)? to next\n // if it's the last, append (\\/twoStar|) to previous\n // if it's in the middle, append (\\/|\\/twoStar\\/) to previous\n // then filter out GLOBSTAR symbols\n let re = set.map(pattern => {\n pattern = pattern.map(p =>\n typeof p === 'string' ? regExpEscape(p)\n : p === GLOBSTAR ? GLOBSTAR\n : p._src\n ).reduce((set, p) => {\n if (!(set[set.length - 1] === GLOBSTAR && p === GLOBSTAR)) {\n set.push(p)\n }\n return set\n }, [])\n pattern.forEach((p, i) => {\n if (p !== GLOBSTAR || pattern[i-1] === GLOBSTAR) {\n return\n }\n if (i === 0) {\n if (pattern.length > 1) {\n pattern[i+1] = '(?:\\\\\\/|' + twoStar + '\\\\\\/)?' + pattern[i+1]\n } else {\n pattern[i] = twoStar\n }\n } else if (i === pattern.length - 1) {\n pattern[i-1] += '(?:\\\\\\/|' + twoStar + ')?'\n } else {\n pattern[i-1] += '(?:\\\\\\/|\\\\\\/' + twoStar + '\\\\\\/)' + pattern[i+1]\n pattern[i+1] = GLOBSTAR\n }\n })\n return pattern.filter(p => p !== GLOBSTAR).join('/')\n }).join('|')\n\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^(?:' + re + ')$'\n\n // can match anything, as long as it's not this.\n if (this.negate) re = '^(?!' + re + ').*$'\n\n try {\n this.regexp = new RegExp(re, flags)\n } catch (ex) /* istanbul ignore next - should be impossible */ {\n this.regexp = false\n }\n return this.regexp\n }\n\n match (f, partial = this.partial) {\n this.debug('match', f, this.pattern)\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) return false\n if (this.empty) return f === ''\n\n if (f === '/' && partial) return true\n\n const options = this.options\n\n // windows: need to use /, not \\\n if (path.sep !== '/') {\n f = f.split(path.sep).join('/')\n }\n\n // treat the test path as a set of pathparts.\n f = f.split(slashSplit)\n this.debug(this.pattern, 'split', f)\n\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n\n const set = this.set\n this.debug(this.pattern, 'set', set)\n\n // Find the basename of the path by looking for the last non-empty segment\n let filename\n for (let i = f.length - 1; i >= 0; i--) {\n filename = f[i]\n if (filename) break\n }\n\n for (let i = 0; i < set.length; i++) {\n const pattern = set[i]\n let file = f\n if (options.matchBase && pattern.length === 1) {\n file = [filename]\n }\n const hit = this.matchOne(file, pattern, partial)\n if (hit) {\n if (options.flipNegate) return true\n return !this.negate\n }\n }\n\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) return false\n return this.negate\n }\n\n static defaults (def) {\n return minimatch.defaults(def).Minimatch\n }\n}\n\nminimatch.Minimatch = Minimatch\n","var path = require('path');\nvar fs = require('fs');\nvar _0777 = parseInt('0777', 8);\n\nmodule.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;\n\nfunction mkdirP (p, opts, f, made) {\n if (typeof opts === 'function') {\n f = opts;\n opts = {};\n }\n else if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777\n }\n if (!made) made = null;\n \n var cb = f || /* istanbul ignore next */ function () {};\n p = path.resolve(p);\n \n xfs.mkdir(p, mode, function (er) {\n if (!er) {\n made = made || p;\n return cb(null, made);\n }\n switch (er.code) {\n case 'ENOENT':\n /* istanbul ignore if */\n if (path.dirname(p) === p) return cb(er);\n mkdirP(path.dirname(p), opts, function (er, made) {\n /* istanbul ignore if */\n if (er) cb(er, made);\n else mkdirP(p, opts, cb, made);\n });\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n xfs.stat(p, function (er2, stat) {\n // if the stat fails, then that's super weird.\n // let the original error be the failure reason.\n if (er2 || !stat.isDirectory()) cb(er, made)\n else cb(null, made);\n });\n break;\n }\n });\n}\n\nmkdirP.sync = function sync (p, opts, made) {\n if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777\n }\n if (!made) made = null;\n\n p = path.resolve(p);\n\n try {\n xfs.mkdirSync(p, mode);\n made = made || p;\n }\n catch (err0) {\n switch (err0.code) {\n case 'ENOENT' :\n made = sync(path.dirname(p), opts, made);\n sync(p, opts, made);\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n var stat;\n try {\n stat = xfs.statSync(p);\n }\n catch (err1) /* istanbul ignore next */ {\n throw err0;\n }\n /* istanbul ignore if */\n if (!stat.isDirectory()) throw err0;\n break;\n }\n }\n\n return made;\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar Stream = _interopDefault(require('stream'));\nvar http = _interopDefault(require('http'));\nvar Url = _interopDefault(require('url'));\nvar whatwgUrl = _interopDefault(require('whatwg-url'));\nvar https = _interopDefault(require('https'));\nvar zlib = _interopDefault(require('zlib'));\n\n// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js\n\n// fix for \"Readable\" isn't a named export issue\nconst Readable = Stream.Readable;\n\nconst BUFFER = Symbol('buffer');\nconst TYPE = Symbol('type');\n\nclass Blob {\n\tconstructor() {\n\t\tthis[TYPE] = '';\n\n\t\tconst blobParts = arguments[0];\n\t\tconst options = arguments[1];\n\n\t\tconst buffers = [];\n\t\tlet size = 0;\n\n\t\tif (blobParts) {\n\t\t\tconst a = blobParts;\n\t\t\tconst length = Number(a.length);\n\t\t\tfor (let i = 0; i < length; i++) {\n\t\t\t\tconst element = a[i];\n\t\t\t\tlet buffer;\n\t\t\t\tif (element instanceof Buffer) {\n\t\t\t\t\tbuffer = element;\n\t\t\t\t} else if (ArrayBuffer.isView(element)) {\n\t\t\t\t\tbuffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);\n\t\t\t\t} else if (element instanceof ArrayBuffer) {\n\t\t\t\t\tbuffer = Buffer.from(element);\n\t\t\t\t} else if (element instanceof Blob) {\n\t\t\t\t\tbuffer = element[BUFFER];\n\t\t\t\t} else {\n\t\t\t\t\tbuffer = Buffer.from(typeof element === 'string' ? element : String(element));\n\t\t\t\t}\n\t\t\t\tsize += buffer.length;\n\t\t\t\tbuffers.push(buffer);\n\t\t\t}\n\t\t}\n\n\t\tthis[BUFFER] = Buffer.concat(buffers);\n\n\t\tlet type = options && options.type !== undefined && String(options.type).toLowerCase();\n\t\tif (type && !/[^\\u0020-\\u007E]/.test(type)) {\n\t\t\tthis[TYPE] = type;\n\t\t}\n\t}\n\tget size() {\n\t\treturn this[BUFFER].length;\n\t}\n\tget type() {\n\t\treturn this[TYPE];\n\t}\n\ttext() {\n\t\treturn Promise.resolve(this[BUFFER].toString());\n\t}\n\tarrayBuffer() {\n\t\tconst buf = this[BUFFER];\n\t\tconst ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);\n\t\treturn Promise.resolve(ab);\n\t}\n\tstream() {\n\t\tconst readable = new Readable();\n\t\treadable._read = function () {};\n\t\treadable.push(this[BUFFER]);\n\t\treadable.push(null);\n\t\treturn readable;\n\t}\n\ttoString() {\n\t\treturn '[object Blob]';\n\t}\n\tslice() {\n\t\tconst size = this.size;\n\n\t\tconst start = arguments[0];\n\t\tconst end = arguments[1];\n\t\tlet relativeStart, relativeEnd;\n\t\tif (start === undefined) {\n\t\t\trelativeStart = 0;\n\t\t} else if (start < 0) {\n\t\t\trelativeStart = Math.max(size + start, 0);\n\t\t} else {\n\t\t\trelativeStart = Math.min(start, size);\n\t\t}\n\t\tif (end === undefined) {\n\t\t\trelativeEnd = size;\n\t\t} else if (end < 0) {\n\t\t\trelativeEnd = Math.max(size + end, 0);\n\t\t} else {\n\t\t\trelativeEnd = Math.min(end, size);\n\t\t}\n\t\tconst span = Math.max(relativeEnd - relativeStart, 0);\n\n\t\tconst buffer = this[BUFFER];\n\t\tconst slicedBuffer = buffer.slice(relativeStart, relativeStart + span);\n\t\tconst blob = new Blob([], { type: arguments[2] });\n\t\tblob[BUFFER] = slicedBuffer;\n\t\treturn blob;\n\t}\n}\n\nObject.defineProperties(Blob.prototype, {\n\tsize: { enumerable: true },\n\ttype: { enumerable: true },\n\tslice: { enumerable: true }\n});\n\nObject.defineProperty(Blob.prototype, Symbol.toStringTag, {\n\tvalue: 'Blob',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\n/**\n * fetch-error.js\n *\n * FetchError interface for operational errors\n */\n\n/**\n * Create FetchError instance\n *\n * @param String message Error message for human\n * @param String type Error type for machine\n * @param String systemError For Node.js system error\n * @return FetchError\n */\nfunction FetchError(message, type, systemError) {\n Error.call(this, message);\n\n this.message = message;\n this.type = type;\n\n // when err.type is `system`, err.code contains system error code\n if (systemError) {\n this.code = this.errno = systemError.code;\n }\n\n // hide custom error implementation details from end-users\n Error.captureStackTrace(this, this.constructor);\n}\n\nFetchError.prototype = Object.create(Error.prototype);\nFetchError.prototype.constructor = FetchError;\nFetchError.prototype.name = 'FetchError';\n\nlet convert;\ntry {\n\tconvert = require('encoding').convert;\n} catch (e) {}\n\nconst INTERNALS = Symbol('Body internals');\n\n// fix an issue where \"PassThrough\" isn't a named export for node <10\nconst PassThrough = Stream.PassThrough;\n\n/**\n * Body mixin\n *\n * Ref: https://fetch.spec.whatwg.org/#body\n *\n * @param Stream body Readable stream\n * @param Object opts Response options\n * @return Void\n */\nfunction Body(body) {\n\tvar _this = this;\n\n\tvar _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n\t _ref$size = _ref.size;\n\n\tlet size = _ref$size === undefined ? 0 : _ref$size;\n\tvar _ref$timeout = _ref.timeout;\n\tlet timeout = _ref$timeout === undefined ? 0 : _ref$timeout;\n\n\tif (body == null) {\n\t\t// body is undefined or null\n\t\tbody = null;\n\t} else if (isURLSearchParams(body)) {\n\t\t// body is a URLSearchParams\n\t\tbody = Buffer.from(body.toString());\n\t} else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {\n\t\t// body is ArrayBuffer\n\t\tbody = Buffer.from(body);\n\t} else if (ArrayBuffer.isView(body)) {\n\t\t// body is ArrayBufferView\n\t\tbody = Buffer.from(body.buffer, body.byteOffset, body.byteLength);\n\t} else if (body instanceof Stream) ; else {\n\t\t// none of the above\n\t\t// coerce to string then buffer\n\t\tbody = Buffer.from(String(body));\n\t}\n\tthis[INTERNALS] = {\n\t\tbody,\n\t\tdisturbed: false,\n\t\terror: null\n\t};\n\tthis.size = size;\n\tthis.timeout = timeout;\n\n\tif (body instanceof Stream) {\n\t\tbody.on('error', function (err) {\n\t\t\tconst error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);\n\t\t\t_this[INTERNALS].error = error;\n\t\t});\n\t}\n}\n\nBody.prototype = {\n\tget body() {\n\t\treturn this[INTERNALS].body;\n\t},\n\n\tget bodyUsed() {\n\t\treturn this[INTERNALS].disturbed;\n\t},\n\n\t/**\n * Decode response as ArrayBuffer\n *\n * @return Promise\n */\n\tarrayBuffer() {\n\t\treturn consumeBody.call(this).then(function (buf) {\n\t\t\treturn buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);\n\t\t});\n\t},\n\n\t/**\n * Return raw response as Blob\n *\n * @return Promise\n */\n\tblob() {\n\t\tlet ct = this.headers && this.headers.get('content-type') || '';\n\t\treturn consumeBody.call(this).then(function (buf) {\n\t\t\treturn Object.assign(\n\t\t\t// Prevent copying\n\t\t\tnew Blob([], {\n\t\t\t\ttype: ct.toLowerCase()\n\t\t\t}), {\n\t\t\t\t[BUFFER]: buf\n\t\t\t});\n\t\t});\n\t},\n\n\t/**\n * Decode response as json\n *\n * @return Promise\n */\n\tjson() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t},\n\n\t/**\n * Decode response as text\n *\n * @return Promise\n */\n\ttext() {\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\treturn buffer.toString();\n\t\t});\n\t},\n\n\t/**\n * Decode response as buffer (non-spec api)\n *\n * @return Promise\n */\n\tbuffer() {\n\t\treturn consumeBody.call(this);\n\t},\n\n\t/**\n * Decode response as text, while automatically detecting the encoding and\n * trying to decode to UTF-8 (non-spec api)\n *\n * @return Promise\n */\n\ttextConverted() {\n\t\tvar _this3 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\treturn convertBody(buffer, _this3.headers);\n\t\t});\n\t}\n};\n\n// In browsers, all properties are enumerable.\nObject.defineProperties(Body.prototype, {\n\tbody: { enumerable: true },\n\tbodyUsed: { enumerable: true },\n\tarrayBuffer: { enumerable: true },\n\tblob: { enumerable: true },\n\tjson: { enumerable: true },\n\ttext: { enumerable: true }\n});\n\nBody.mixIn = function (proto) {\n\tfor (const name of Object.getOwnPropertyNames(Body.prototype)) {\n\t\t// istanbul ignore else: future proof\n\t\tif (!(name in proto)) {\n\t\t\tconst desc = Object.getOwnPropertyDescriptor(Body.prototype, name);\n\t\t\tObject.defineProperty(proto, name, desc);\n\t\t}\n\t}\n};\n\n/**\n * Consume and convert an entire Body to a Buffer.\n *\n * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body\n *\n * @return Promise\n */\nfunction consumeBody() {\n\tvar _this4 = this;\n\n\tif (this[INTERNALS].disturbed) {\n\t\treturn Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));\n\t}\n\n\tthis[INTERNALS].disturbed = true;\n\n\tif (this[INTERNALS].error) {\n\t\treturn Body.Promise.reject(this[INTERNALS].error);\n\t}\n\n\tlet body = this.body;\n\n\t// body is null\n\tif (body === null) {\n\t\treturn Body.Promise.resolve(Buffer.alloc(0));\n\t}\n\n\t// body is blob\n\tif (isBlob(body)) {\n\t\tbody = body.stream();\n\t}\n\n\t// body is buffer\n\tif (Buffer.isBuffer(body)) {\n\t\treturn Body.Promise.resolve(body);\n\t}\n\n\t// istanbul ignore if: should never happen\n\tif (!(body instanceof Stream)) {\n\t\treturn Body.Promise.resolve(Buffer.alloc(0));\n\t}\n\n\t// body is stream\n\t// get ready to actually consume the body\n\tlet accum = [];\n\tlet accumBytes = 0;\n\tlet abort = false;\n\n\treturn new Body.Promise(function (resolve, reject) {\n\t\tlet resTimeout;\n\n\t\t// allow timeout on slow response body\n\t\tif (_this4.timeout) {\n\t\t\tresTimeout = setTimeout(function () {\n\t\t\t\tabort = true;\n\t\t\t\treject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));\n\t\t\t}, _this4.timeout);\n\t\t}\n\n\t\t// handle stream errors\n\t\tbody.on('error', function (err) {\n\t\t\tif (err.name === 'AbortError') {\n\t\t\t\t// if the request was aborted, reject with this Error\n\t\t\t\tabort = true;\n\t\t\t\treject(err);\n\t\t\t} else {\n\t\t\t\t// other errors, such as incorrect content-encoding\n\t\t\t\treject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));\n\t\t\t}\n\t\t});\n\n\t\tbody.on('data', function (chunk) {\n\t\t\tif (abort || chunk === null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (_this4.size && accumBytes + chunk.length > _this4.size) {\n\t\t\t\tabort = true;\n\t\t\t\treject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\taccumBytes += chunk.length;\n\t\t\taccum.push(chunk);\n\t\t});\n\n\t\tbody.on('end', function () {\n\t\t\tif (abort) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tclearTimeout(resTimeout);\n\n\t\t\ttry {\n\t\t\t\tresolve(Buffer.concat(accum, accumBytes));\n\t\t\t} catch (err) {\n\t\t\t\t// handle streams that have accumulated too much data (issue #414)\n\t\t\t\treject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));\n\t\t\t}\n\t\t});\n\t});\n}\n\n/**\n * Detect buffer encoding and convert to target encoding\n * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding\n *\n * @param Buffer buffer Incoming buffer\n * @param String encoding Target encoding\n * @return String\n */\nfunction convertBody(buffer, headers) {\n\tif (typeof convert !== 'function') {\n\t\tthrow new Error('The package `encoding` must be installed to use the textConverted() function');\n\t}\n\n\tconst ct = headers.get('content-type');\n\tlet charset = 'utf-8';\n\tlet res, str;\n\n\t// header\n\tif (ct) {\n\t\tres = /charset=([^;]*)/i.exec(ct);\n\t}\n\n\t// no charset in content type, peek at response body for at most 1024 bytes\n\tstr = buffer.slice(0, 1024).toString();\n\n\t// html5\n\tif (!res && str) {\n\t\tres = / 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n\n\t\tthis[MAP] = Object.create(null);\n\n\t\tif (init instanceof Headers) {\n\t\t\tconst rawHeaders = init.raw();\n\t\t\tconst headerNames = Object.keys(rawHeaders);\n\n\t\t\tfor (const headerName of headerNames) {\n\t\t\t\tfor (const value of rawHeaders[headerName]) {\n\t\t\t\t\tthis.append(headerName, value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// We don't worry about converting prop to ByteString here as append()\n\t\t// will handle it.\n\t\tif (init == null) ; else if (typeof init === 'object') {\n\t\t\tconst method = init[Symbol.iterator];\n\t\t\tif (method != null) {\n\t\t\t\tif (typeof method !== 'function') {\n\t\t\t\t\tthrow new TypeError('Header pairs must be iterable');\n\t\t\t\t}\n\n\t\t\t\t// sequence>\n\t\t\t\t// Note: per spec we have to first exhaust the lists then process them\n\t\t\t\tconst pairs = [];\n\t\t\t\tfor (const pair of init) {\n\t\t\t\t\tif (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {\n\t\t\t\t\t\tthrow new TypeError('Each header pair must be iterable');\n\t\t\t\t\t}\n\t\t\t\t\tpairs.push(Array.from(pair));\n\t\t\t\t}\n\n\t\t\t\tfor (const pair of pairs) {\n\t\t\t\t\tif (pair.length !== 2) {\n\t\t\t\t\t\tthrow new TypeError('Each header pair must be a name/value tuple');\n\t\t\t\t\t}\n\t\t\t\t\tthis.append(pair[0], pair[1]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// record\n\t\t\t\tfor (const key of Object.keys(init)) {\n\t\t\t\t\tconst value = init[key];\n\t\t\t\t\tthis.append(key, value);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new TypeError('Provided initializer must be an object');\n\t\t}\n\t}\n\n\t/**\n * Return combined header value given name\n *\n * @param String name Header name\n * @return Mixed\n */\n\tget(name) {\n\t\tname = `${name}`;\n\t\tvalidateName(name);\n\t\tconst key = find(this[MAP], name);\n\t\tif (key === undefined) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn this[MAP][key].join(', ');\n\t}\n\n\t/**\n * Iterate over all headers\n *\n * @param Function callback Executed for each item with parameters (value, name, thisArg)\n * @param Boolean thisArg `this` context for callback function\n * @return Void\n */\n\tforEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}\n\n\t/**\n * Overwrite header values given name\n *\n * @param String name Header name\n * @param String value Header value\n * @return Void\n */\n\tset(name, value) {\n\t\tname = `${name}`;\n\t\tvalue = `${value}`;\n\t\tvalidateName(name);\n\t\tvalidateValue(value);\n\t\tconst key = find(this[MAP], name);\n\t\tthis[MAP][key !== undefined ? key : name] = [value];\n\t}\n\n\t/**\n * Append a value onto existing header\n *\n * @param String name Header name\n * @param String value Header value\n * @return Void\n */\n\tappend(name, value) {\n\t\tname = `${name}`;\n\t\tvalue = `${value}`;\n\t\tvalidateName(name);\n\t\tvalidateValue(value);\n\t\tconst key = find(this[MAP], name);\n\t\tif (key !== undefined) {\n\t\t\tthis[MAP][key].push(value);\n\t\t} else {\n\t\t\tthis[MAP][name] = [value];\n\t\t}\n\t}\n\n\t/**\n * Check for header name existence\n *\n * @param String name Header name\n * @return Boolean\n */\n\thas(name) {\n\t\tname = `${name}`;\n\t\tvalidateName(name);\n\t\treturn find(this[MAP], name) !== undefined;\n\t}\n\n\t/**\n * Delete all header values given name\n *\n * @param String name Header name\n * @return Void\n */\n\tdelete(name) {\n\t\tname = `${name}`;\n\t\tvalidateName(name);\n\t\tconst key = find(this[MAP], name);\n\t\tif (key !== undefined) {\n\t\t\tdelete this[MAP][key];\n\t\t}\n\t}\n\n\t/**\n * Return raw headers (non-spec api)\n *\n * @return Object\n */\n\traw() {\n\t\treturn this[MAP];\n\t}\n\n\t/**\n * Get an iterator on keys.\n *\n * @return Iterator\n */\n\tkeys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}\n\n\t/**\n * Get an iterator on values.\n *\n * @return Iterator\n */\n\tvalues() {\n\t\treturn createHeadersIterator(this, 'value');\n\t}\n\n\t/**\n * Get an iterator on entries.\n *\n * This is the default iterator of the Headers object.\n *\n * @return Iterator\n */\n\t[Symbol.iterator]() {\n\t\treturn createHeadersIterator(this, 'key+value');\n\t}\n}\nHeaders.prototype.entries = Headers.prototype[Symbol.iterator];\n\nObject.defineProperty(Headers.prototype, Symbol.toStringTag, {\n\tvalue: 'Headers',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\nObject.defineProperties(Headers.prototype, {\n\tget: { enumerable: true },\n\tforEach: { enumerable: true },\n\tset: { enumerable: true },\n\tappend: { enumerable: true },\n\thas: { enumerable: true },\n\tdelete: { enumerable: true },\n\tkeys: { enumerable: true },\n\tvalues: { enumerable: true },\n\tentries: { enumerable: true }\n});\n\nfunction getHeaders(headers) {\n\tlet kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';\n\n\tconst keys = Object.keys(headers[MAP]).sort();\n\treturn keys.map(kind === 'key' ? function (k) {\n\t\treturn k.toLowerCase();\n\t} : kind === 'value' ? function (k) {\n\t\treturn headers[MAP][k].join(', ');\n\t} : function (k) {\n\t\treturn [k.toLowerCase(), headers[MAP][k].join(', ')];\n\t});\n}\n\nconst INTERNAL = Symbol('internal');\n\nfunction createHeadersIterator(target, kind) {\n\tconst iterator = Object.create(HeadersIteratorPrototype);\n\titerator[INTERNAL] = {\n\t\ttarget,\n\t\tkind,\n\t\tindex: 0\n\t};\n\treturn iterator;\n}\n\nconst HeadersIteratorPrototype = Object.setPrototypeOf({\n\tnext() {\n\t\t// istanbul ignore if\n\t\tif (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {\n\t\t\tthrow new TypeError('Value of `this` is not a HeadersIterator');\n\t\t}\n\n\t\tvar _INTERNAL = this[INTERNAL];\n\t\tconst target = _INTERNAL.target,\n\t\t kind = _INTERNAL.kind,\n\t\t index = _INTERNAL.index;\n\n\t\tconst values = getHeaders(target, kind);\n\t\tconst len = values.length;\n\t\tif (index >= len) {\n\t\t\treturn {\n\t\t\t\tvalue: undefined,\n\t\t\t\tdone: true\n\t\t\t};\n\t\t}\n\n\t\tthis[INTERNAL].index = index + 1;\n\n\t\treturn {\n\t\t\tvalue: values[index],\n\t\t\tdone: false\n\t\t};\n\t}\n}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));\n\nObject.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {\n\tvalue: 'HeadersIterator',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\n/**\n * Export the Headers object in a form that Node.js can consume.\n *\n * @param Headers headers\n * @return Object\n */\nfunction exportNodeCompatibleHeaders(headers) {\n\tconst obj = Object.assign({ __proto__: null }, headers[MAP]);\n\n\t// http.request() only supports string as Host header. This hack makes\n\t// specifying custom Host header possible.\n\tconst hostHeaderKey = find(headers[MAP], 'Host');\n\tif (hostHeaderKey !== undefined) {\n\t\tobj[hostHeaderKey] = obj[hostHeaderKey][0];\n\t}\n\n\treturn obj;\n}\n\n/**\n * Create a Headers object from an object of headers, ignoring those that do\n * not conform to HTTP grammar productions.\n *\n * @param Object obj Object of headers\n * @return Headers\n */\nfunction createHeadersLenient(obj) {\n\tconst headers = new Headers();\n\tfor (const name of Object.keys(obj)) {\n\t\tif (invalidTokenRegex.test(name)) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (Array.isArray(obj[name])) {\n\t\t\tfor (const val of obj[name]) {\n\t\t\t\tif (invalidHeaderCharRegex.test(val)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (headers[MAP][name] === undefined) {\n\t\t\t\t\theaders[MAP][name] = [val];\n\t\t\t\t} else {\n\t\t\t\t\theaders[MAP][name].push(val);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (!invalidHeaderCharRegex.test(obj[name])) {\n\t\t\theaders[MAP][name] = [obj[name]];\n\t\t}\n\t}\n\treturn headers;\n}\n\nconst INTERNALS$1 = Symbol('Response internals');\n\n// fix an issue where \"STATUS_CODES\" aren't a named export for node <10\nconst STATUS_CODES = http.STATUS_CODES;\n\n/**\n * Response class\n *\n * @param Stream body Readable stream\n * @param Object opts Response options\n * @return Void\n */\nclass Response {\n\tconstructor() {\n\t\tlet body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\t\tlet opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\t\tBody.call(this, body, opts);\n\n\t\tconst status = opts.status || 200;\n\t\tconst headers = new Headers(opts.headers);\n\n\t\tif (body != null && !headers.has('Content-Type')) {\n\t\t\tconst contentType = extractContentType(body);\n\t\t\tif (contentType) {\n\t\t\t\theaders.append('Content-Type', contentType);\n\t\t\t}\n\t\t}\n\n\t\tthis[INTERNALS$1] = {\n\t\t\turl: opts.url,\n\t\t\tstatus,\n\t\t\tstatusText: opts.statusText || STATUS_CODES[status],\n\t\t\theaders,\n\t\t\tcounter: opts.counter\n\t\t};\n\t}\n\n\tget url() {\n\t\treturn this[INTERNALS$1].url || '';\n\t}\n\n\tget status() {\n\t\treturn this[INTERNALS$1].status;\n\t}\n\n\t/**\n * Convenience property representing if the request ended normally\n */\n\tget ok() {\n\t\treturn this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;\n\t}\n\n\tget redirected() {\n\t\treturn this[INTERNALS$1].counter > 0;\n\t}\n\n\tget statusText() {\n\t\treturn this[INTERNALS$1].statusText;\n\t}\n\n\tget headers() {\n\t\treturn this[INTERNALS$1].headers;\n\t}\n\n\t/**\n * Clone this response\n *\n * @return Response\n */\n\tclone() {\n\t\treturn new Response(clone(this), {\n\t\t\turl: this.url,\n\t\t\tstatus: this.status,\n\t\t\tstatusText: this.statusText,\n\t\t\theaders: this.headers,\n\t\t\tok: this.ok,\n\t\t\tredirected: this.redirected\n\t\t});\n\t}\n}\n\nBody.mixIn(Response.prototype);\n\nObject.defineProperties(Response.prototype, {\n\turl: { enumerable: true },\n\tstatus: { enumerable: true },\n\tok: { enumerable: true },\n\tredirected: { enumerable: true },\n\tstatusText: { enumerable: true },\n\theaders: { enumerable: true },\n\tclone: { enumerable: true }\n});\n\nObject.defineProperty(Response.prototype, Symbol.toStringTag, {\n\tvalue: 'Response',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\nconst INTERNALS$2 = Symbol('Request internals');\nconst URL = Url.URL || whatwgUrl.URL;\n\n// fix an issue where \"format\", \"parse\" aren't a named export for node <10\nconst parse_url = Url.parse;\nconst format_url = Url.format;\n\n/**\n * Wrapper around `new URL` to handle arbitrary URLs\n *\n * @param {string} urlStr\n * @return {void}\n */\nfunction parseURL(urlStr) {\n\t/*\n \tCheck whether the URL is absolute or not\n \t\tScheme: https://tools.ietf.org/html/rfc3986#section-3.1\n \tAbsolute URL: https://tools.ietf.org/html/rfc3986#section-4.3\n */\n\tif (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.exec(urlStr)) {\n\t\turlStr = new URL(urlStr).toString();\n\t}\n\n\t// Fallback to old implementation for arbitrary URLs\n\treturn parse_url(urlStr);\n}\n\nconst streamDestructionSupported = 'destroy' in Stream.Readable.prototype;\n\n/**\n * Check if a value is an instance of Request.\n *\n * @param Mixed input\n * @return Boolean\n */\nfunction isRequest(input) {\n\treturn typeof input === 'object' && typeof input[INTERNALS$2] === 'object';\n}\n\nfunction isAbortSignal(signal) {\n\tconst proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);\n\treturn !!(proto && proto.constructor.name === 'AbortSignal');\n}\n\n/**\n * Request class\n *\n * @param Mixed input Url or Request instance\n * @param Object init Custom options\n * @return Void\n */\nclass Request {\n\tconstructor(input) {\n\t\tlet init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\t\tlet parsedURL;\n\n\t\t// normalize input\n\t\tif (!isRequest(input)) {\n\t\t\tif (input && input.href) {\n\t\t\t\t// in order to support Node.js' Url objects; though WHATWG's URL objects\n\t\t\t\t// will fall into this branch also (since their `toString()` will return\n\t\t\t\t// `href` property anyway)\n\t\t\t\tparsedURL = parseURL(input.href);\n\t\t\t} else {\n\t\t\t\t// coerce input to a string before attempting to parse\n\t\t\t\tparsedURL = parseURL(`${input}`);\n\t\t\t}\n\t\t\tinput = {};\n\t\t} else {\n\t\t\tparsedURL = parseURL(input.url);\n\t\t}\n\n\t\tlet method = init.method || input.method || 'GET';\n\t\tmethod = method.toUpperCase();\n\n\t\tif ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {\n\t\t\tthrow new TypeError('Request with GET/HEAD method cannot have body');\n\t\t}\n\n\t\tlet inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;\n\n\t\tBody.call(this, inputBody, {\n\t\t\ttimeout: init.timeout || input.timeout || 0,\n\t\t\tsize: init.size || input.size || 0\n\t\t});\n\n\t\tconst headers = new Headers(init.headers || input.headers || {});\n\n\t\tif (inputBody != null && !headers.has('Content-Type')) {\n\t\t\tconst contentType = extractContentType(inputBody);\n\t\t\tif (contentType) {\n\t\t\t\theaders.append('Content-Type', contentType);\n\t\t\t}\n\t\t}\n\n\t\tlet signal = isRequest(input) ? input.signal : null;\n\t\tif ('signal' in init) signal = init.signal;\n\n\t\tif (signal != null && !isAbortSignal(signal)) {\n\t\t\tthrow new TypeError('Expected signal to be an instanceof AbortSignal');\n\t\t}\n\n\t\tthis[INTERNALS$2] = {\n\t\t\tmethod,\n\t\t\tredirect: init.redirect || input.redirect || 'follow',\n\t\t\theaders,\n\t\t\tparsedURL,\n\t\t\tsignal\n\t\t};\n\n\t\t// node-fetch-only options\n\t\tthis.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;\n\t\tthis.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;\n\t\tthis.counter = init.counter || input.counter || 0;\n\t\tthis.agent = init.agent || input.agent;\n\t}\n\n\tget method() {\n\t\treturn this[INTERNALS$2].method;\n\t}\n\n\tget url() {\n\t\treturn format_url(this[INTERNALS$2].parsedURL);\n\t}\n\n\tget headers() {\n\t\treturn this[INTERNALS$2].headers;\n\t}\n\n\tget redirect() {\n\t\treturn this[INTERNALS$2].redirect;\n\t}\n\n\tget signal() {\n\t\treturn this[INTERNALS$2].signal;\n\t}\n\n\t/**\n * Clone this request\n *\n * @return Request\n */\n\tclone() {\n\t\treturn new Request(this);\n\t}\n}\n\nBody.mixIn(Request.prototype);\n\nObject.defineProperty(Request.prototype, Symbol.toStringTag, {\n\tvalue: 'Request',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\nObject.defineProperties(Request.prototype, {\n\tmethod: { enumerable: true },\n\turl: { enumerable: true },\n\theaders: { enumerable: true },\n\tredirect: { enumerable: true },\n\tclone: { enumerable: true },\n\tsignal: { enumerable: true }\n});\n\n/**\n * Convert a Request to Node.js http request options.\n *\n * @param Request A Request instance\n * @return Object The options object to be passed to http.request\n */\nfunction getNodeRequestOptions(request) {\n\tconst parsedURL = request[INTERNALS$2].parsedURL;\n\tconst headers = new Headers(request[INTERNALS$2].headers);\n\n\t// fetch step 1.3\n\tif (!headers.has('Accept')) {\n\t\theaders.set('Accept', '*/*');\n\t}\n\n\t// Basic fetch\n\tif (!parsedURL.protocol || !parsedURL.hostname) {\n\t\tthrow new TypeError('Only absolute URLs are supported');\n\t}\n\n\tif (!/^https?:$/.test(parsedURL.protocol)) {\n\t\tthrow new TypeError('Only HTTP(S) protocols are supported');\n\t}\n\n\tif (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {\n\t\tthrow new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');\n\t}\n\n\t// HTTP-network-or-cache fetch steps 2.4-2.7\n\tlet contentLengthValue = null;\n\tif (request.body == null && /^(POST|PUT)$/i.test(request.method)) {\n\t\tcontentLengthValue = '0';\n\t}\n\tif (request.body != null) {\n\t\tconst totalBytes = getTotalBytes(request);\n\t\tif (typeof totalBytes === 'number') {\n\t\t\tcontentLengthValue = String(totalBytes);\n\t\t}\n\t}\n\tif (contentLengthValue) {\n\t\theaders.set('Content-Length', contentLengthValue);\n\t}\n\n\t// HTTP-network-or-cache fetch step 2.11\n\tif (!headers.has('User-Agent')) {\n\t\theaders.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');\n\t}\n\n\t// HTTP-network-or-cache fetch step 2.15\n\tif (request.compress && !headers.has('Accept-Encoding')) {\n\t\theaders.set('Accept-Encoding', 'gzip,deflate');\n\t}\n\n\tlet agent = request.agent;\n\tif (typeof agent === 'function') {\n\t\tagent = agent(parsedURL);\n\t}\n\n\t// HTTP-network fetch step 4.2\n\t// chunked encoding is handled by Node.js\n\n\treturn Object.assign({}, parsedURL, {\n\t\tmethod: request.method,\n\t\theaders: exportNodeCompatibleHeaders(headers),\n\t\tagent\n\t});\n}\n\n/**\n * abort-error.js\n *\n * AbortError interface for cancelled requests\n */\n\n/**\n * Create AbortError instance\n *\n * @param String message Error message for human\n * @return AbortError\n */\nfunction AbortError(message) {\n Error.call(this, message);\n\n this.type = 'aborted';\n this.message = message;\n\n // hide custom error implementation details from end-users\n Error.captureStackTrace(this, this.constructor);\n}\n\nAbortError.prototype = Object.create(Error.prototype);\nAbortError.prototype.constructor = AbortError;\nAbortError.prototype.name = 'AbortError';\n\nconst URL$1 = Url.URL || whatwgUrl.URL;\n\n// fix an issue where \"PassThrough\", \"resolve\" aren't a named export for node <10\nconst PassThrough$1 = Stream.PassThrough;\n\nconst isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {\n\tconst orig = new URL$1(original).hostname;\n\tconst dest = new URL$1(destination).hostname;\n\n\treturn orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);\n};\n\n/**\n * isSameProtocol reports whether the two provided URLs use the same protocol.\n *\n * Both domains must already be in canonical form.\n * @param {string|URL} original\n * @param {string|URL} destination\n */\nconst isSameProtocol = function isSameProtocol(destination, original) {\n\tconst orig = new URL$1(original).protocol;\n\tconst dest = new URL$1(destination).protocol;\n\n\treturn orig === dest;\n};\n\n/**\n * Fetch function\n *\n * @param Mixed url Absolute url or Request instance\n * @param Object opts Fetch options\n * @return Promise\n */\nfunction fetch(url, opts) {\n\n\t// allow custom promise\n\tif (!fetch.Promise) {\n\t\tthrow new Error('native promise missing, set fetch.Promise to your favorite alternative');\n\t}\n\n\tBody.Promise = fetch.Promise;\n\n\t// wrap http.request into fetch\n\treturn new fetch.Promise(function (resolve, reject) {\n\t\t// build request object\n\t\tconst request = new Request(url, opts);\n\t\tconst options = getNodeRequestOptions(request);\n\n\t\tconst send = (options.protocol === 'https:' ? https : http).request;\n\t\tconst signal = request.signal;\n\n\t\tlet response = null;\n\n\t\tconst abort = function abort() {\n\t\t\tlet error = new AbortError('The user aborted a request.');\n\t\t\treject(error);\n\t\t\tif (request.body && request.body instanceof Stream.Readable) {\n\t\t\t\tdestroyStream(request.body, error);\n\t\t\t}\n\t\t\tif (!response || !response.body) return;\n\t\t\tresponse.body.emit('error', error);\n\t\t};\n\n\t\tif (signal && signal.aborted) {\n\t\t\tabort();\n\t\t\treturn;\n\t\t}\n\n\t\tconst abortAndFinalize = function abortAndFinalize() {\n\t\t\tabort();\n\t\t\tfinalize();\n\t\t};\n\n\t\t// send request\n\t\tconst req = send(options);\n\t\tlet reqTimeout;\n\n\t\tif (signal) {\n\t\t\tsignal.addEventListener('abort', abortAndFinalize);\n\t\t}\n\n\t\tfunction finalize() {\n\t\t\treq.abort();\n\t\t\tif (signal) signal.removeEventListener('abort', abortAndFinalize);\n\t\t\tclearTimeout(reqTimeout);\n\t\t}\n\n\t\tif (request.timeout) {\n\t\t\treq.once('socket', function (socket) {\n\t\t\t\treqTimeout = setTimeout(function () {\n\t\t\t\t\treject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));\n\t\t\t\t\tfinalize();\n\t\t\t\t}, request.timeout);\n\t\t\t});\n\t\t}\n\n\t\treq.on('error', function (err) {\n\t\t\treject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));\n\n\t\t\tif (response && response.body) {\n\t\t\t\tdestroyStream(response.body, err);\n\t\t\t}\n\n\t\t\tfinalize();\n\t\t});\n\n\t\tfixResponseChunkedTransferBadEnding(req, function (err) {\n\t\t\tif (signal && signal.aborted) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (response && response.body) {\n\t\t\t\tdestroyStream(response.body, err);\n\t\t\t}\n\t\t});\n\n\t\t/* c8 ignore next 18 */\n\t\tif (parseInt(process.version.substring(1)) < 14) {\n\t\t\t// Before Node.js 14, pipeline() does not fully support async iterators and does not always\n\t\t\t// properly handle when the socket close/end events are out of order.\n\t\t\treq.on('socket', function (s) {\n\t\t\t\ts.addListener('close', function (hadError) {\n\t\t\t\t\t// if a data listener is still present we didn't end cleanly\n\t\t\t\t\tconst hasDataListener = s.listenerCount('data') > 0;\n\n\t\t\t\t\t// if end happened before close but the socket didn't emit an error, do it now\n\t\t\t\t\tif (response && hasDataListener && !hadError && !(signal && signal.aborted)) {\n\t\t\t\t\t\tconst err = new Error('Premature close');\n\t\t\t\t\t\terr.code = 'ERR_STREAM_PREMATURE_CLOSE';\n\t\t\t\t\t\tresponse.body.emit('error', err);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\treq.on('response', function (res) {\n\t\t\tclearTimeout(reqTimeout);\n\n\t\t\tconst headers = createHeadersLenient(res.headers);\n\n\t\t\t// HTTP fetch step 5\n\t\t\tif (fetch.isRedirect(res.statusCode)) {\n\t\t\t\t// HTTP fetch step 5.2\n\t\t\t\tconst location = headers.get('Location');\n\n\t\t\t\t// HTTP fetch step 5.3\n\t\t\t\tlet locationURL = null;\n\t\t\t\ttry {\n\t\t\t\t\tlocationURL = location === null ? null : new URL$1(location, request.url).toString();\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// error here can only be invalid URL in Location: header\n\t\t\t\t\t// do not throw when options.redirect == manual\n\t\t\t\t\t// let the user extract the errorneous redirect URL\n\t\t\t\t\tif (request.redirect !== 'manual') {\n\t\t\t\t\t\treject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));\n\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// HTTP fetch step 5.5\n\t\t\t\tswitch (request.redirect) {\n\t\t\t\t\tcase 'error':\n\t\t\t\t\t\treject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));\n\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 'manual':\n\t\t\t\t\t\t// node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.\n\t\t\t\t\t\tif (locationURL !== null) {\n\t\t\t\t\t\t\t// handle corrupted header\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\theaders.set('Location', locationURL);\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\t// istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request\n\t\t\t\t\t\t\t\treject(err);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'follow':\n\t\t\t\t\t\t// HTTP-redirect fetch step 2\n\t\t\t\t\t\tif (locationURL === null) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 5\n\t\t\t\t\t\tif (request.counter >= request.follow) {\n\t\t\t\t\t\t\treject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));\n\t\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 6 (counter increment)\n\t\t\t\t\t\t// Create a new Request object.\n\t\t\t\t\t\tconst requestOpts = {\n\t\t\t\t\t\t\theaders: new Headers(request.headers),\n\t\t\t\t\t\t\tfollow: request.follow,\n\t\t\t\t\t\t\tcounter: request.counter + 1,\n\t\t\t\t\t\t\tagent: request.agent,\n\t\t\t\t\t\t\tcompress: request.compress,\n\t\t\t\t\t\t\tmethod: request.method,\n\t\t\t\t\t\t\tbody: request.body,\n\t\t\t\t\t\t\tsignal: request.signal,\n\t\t\t\t\t\t\ttimeout: request.timeout,\n\t\t\t\t\t\t\tsize: request.size\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {\n\t\t\t\t\t\t\tfor (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {\n\t\t\t\t\t\t\t\trequestOpts.headers.delete(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 9\n\t\t\t\t\t\tif (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {\n\t\t\t\t\t\t\treject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));\n\t\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 11\n\t\t\t\t\t\tif (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {\n\t\t\t\t\t\t\trequestOpts.method = 'GET';\n\t\t\t\t\t\t\trequestOpts.body = undefined;\n\t\t\t\t\t\t\trequestOpts.headers.delete('content-length');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 15\n\t\t\t\t\t\tresolve(fetch(new Request(locationURL, requestOpts)));\n\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// prepare response\n\t\t\tres.once('end', function () {\n\t\t\t\tif (signal) signal.removeEventListener('abort', abortAndFinalize);\n\t\t\t});\n\t\t\tlet body = res.pipe(new PassThrough$1());\n\n\t\t\tconst response_options = {\n\t\t\t\turl: request.url,\n\t\t\t\tstatus: res.statusCode,\n\t\t\t\tstatusText: res.statusMessage,\n\t\t\t\theaders: headers,\n\t\t\t\tsize: request.size,\n\t\t\t\ttimeout: request.timeout,\n\t\t\t\tcounter: request.counter\n\t\t\t};\n\n\t\t\t// HTTP-network fetch step 12.1.1.3\n\t\t\tconst codings = headers.get('Content-Encoding');\n\n\t\t\t// HTTP-network fetch step 12.1.1.4: handle content codings\n\n\t\t\t// in following scenarios we ignore compression support\n\t\t\t// 1. compression support is disabled\n\t\t\t// 2. HEAD request\n\t\t\t// 3. no Content-Encoding header\n\t\t\t// 4. no content response (204)\n\t\t\t// 5. content not modified response (304)\n\t\t\tif (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {\n\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\tresolve(response);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// For Node v6+\n\t\t\t// Be less strict when decoding compressed responses, since sometimes\n\t\t\t// servers send slightly invalid responses that are still accepted\n\t\t\t// by common browsers.\n\t\t\t// Always using Z_SYNC_FLUSH is what cURL does.\n\t\t\tconst zlibOptions = {\n\t\t\t\tflush: zlib.Z_SYNC_FLUSH,\n\t\t\t\tfinishFlush: zlib.Z_SYNC_FLUSH\n\t\t\t};\n\n\t\t\t// for gzip\n\t\t\tif (codings == 'gzip' || codings == 'x-gzip') {\n\t\t\t\tbody = body.pipe(zlib.createGunzip(zlibOptions));\n\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\tresolve(response);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// for deflate\n\t\t\tif (codings == 'deflate' || codings == 'x-deflate') {\n\t\t\t\t// handle the infamous raw deflate response from old servers\n\t\t\t\t// a hack for old IIS and Apache servers\n\t\t\t\tconst raw = res.pipe(new PassThrough$1());\n\t\t\t\traw.once('data', function (chunk) {\n\t\t\t\t\t// see http://stackoverflow.com/questions/37519828\n\t\t\t\t\tif ((chunk[0] & 0x0F) === 0x08) {\n\t\t\t\t\t\tbody = body.pipe(zlib.createInflate());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbody = body.pipe(zlib.createInflateRaw());\n\t\t\t\t\t}\n\t\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\t\tresolve(response);\n\t\t\t\t});\n\t\t\t\traw.on('end', function () {\n\t\t\t\t\t// some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.\n\t\t\t\t\tif (!response) {\n\t\t\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\t\t\tresolve(response);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// for br\n\t\t\tif (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {\n\t\t\t\tbody = body.pipe(zlib.createBrotliDecompress());\n\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\tresolve(response);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// otherwise, use response as-is\n\t\t\tresponse = new Response(body, response_options);\n\t\t\tresolve(response);\n\t\t});\n\n\t\twriteToStream(req, request);\n\t});\n}\nfunction fixResponseChunkedTransferBadEnding(request, errorCallback) {\n\tlet socket;\n\n\trequest.on('socket', function (s) {\n\t\tsocket = s;\n\t});\n\n\trequest.on('response', function (response) {\n\t\tconst headers = response.headers;\n\n\t\tif (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {\n\t\t\tresponse.once('close', function (hadError) {\n\t\t\t\t// tests for socket presence, as in some situations the\n\t\t\t\t// the 'socket' event is not triggered for the request\n\t\t\t\t// (happens in deno), avoids `TypeError`\n\t\t\t\t// if a data listener is still present we didn't end cleanly\n\t\t\t\tconst hasDataListener = socket && socket.listenerCount('data') > 0;\n\n\t\t\t\tif (hasDataListener && !hadError) {\n\t\t\t\t\tconst err = new Error('Premature close');\n\t\t\t\t\terr.code = 'ERR_STREAM_PREMATURE_CLOSE';\n\t\t\t\t\terrorCallback(err);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}\n\nfunction destroyStream(stream, err) {\n\tif (stream.destroy) {\n\t\tstream.destroy(err);\n\t} else {\n\t\t// node < 8\n\t\tstream.emit('error', err);\n\t\tstream.end();\n\t}\n}\n\n/**\n * Redirect code matching\n *\n * @param Number code Status code\n * @return Boolean\n */\nfetch.isRedirect = function (code) {\n\treturn code === 301 || code === 302 || code === 303 || code === 307 || code === 308;\n};\n\n// expose Promise\nfetch.Promise = global.Promise;\n\nmodule.exports = exports = fetch;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = exports;\nexports.Headers = Headers;\nexports.Request = Request;\nexports.Response = Response;\nexports.FetchError = FetchError;\nexports.AbortError = AbortError;\n","/*!\n * normalize-path \n *\n * Copyright (c) 2014-2018, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nmodule.exports = function(path, stripTrailing) {\n if (typeof path !== 'string') {\n throw new TypeError('expected path to be a string');\n }\n\n if (path === '\\\\' || path === '/') return '/';\n\n var len = path.length;\n if (len <= 1) return path;\n\n // ensure that win32 namespaces has two leading slashes, so that the path is\n // handled properly by the win32 version of path.parse() after being normalized\n // https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces\n var prefix = '';\n if (len > 4 && path[3] === '\\\\') {\n var ch = path[2];\n if ((ch === '?' || ch === '.') && path.slice(0, 2) === '\\\\\\\\') {\n path = path.slice(2);\n prefix = '//';\n }\n }\n\n var segs = path.split(/[/\\\\]+/);\n if (stripTrailing !== false && segs[segs.length - 1] === '') {\n segs.pop();\n }\n return prefix + segs.join('/');\n};\n","var wrappy = require('wrappy')\nmodule.exports = wrappy(once)\nmodule.exports.strict = wrappy(onceStrict)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n\n Object.defineProperty(Function.prototype, 'onceStrict', {\n value: function () {\n return onceStrict(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\nfunction onceStrict (fn) {\n var f = function () {\n if (f.called)\n throw new Error(f.onceError)\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n var name = fn.name || 'Function wrapped with `once`'\n f.onceError = name + \" shouldn't be called more than once\"\n f.called = false\n return f\n}\n","'use strict';\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n","// for now just expose the builtin process global from node.js\nmodule.exports = global.process;\n","module.exports = (typeof process !== 'undefined' && typeof process.nextTick === 'function')\n ? process.nextTick.bind(process)\n : require('./queue-microtask')\n","module.exports = typeof queueMicrotask === 'function' ? queueMicrotask : (fn) => Promise.resolve().then(fn)\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = require('isarray');\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar debugUtil = require('util');\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar BufferList = require('./internal/streams/BufferList');\nvar destroyImpl = require('./internal/streams/destroy');\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, { hasUnpiped: false });\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = require('./_stream_duplex');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Writable;\n\n/* */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n pna.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n\n // reuse the free corkReq.\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = require('safe-buffer').Buffer;\nvar util = require('util');\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}","'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n pna.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n pna.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n pna.nextTick(emitErrorNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n pna.nextTick(emitErrorNT, _this, err);\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};","module.exports = require('stream');\n","module.exports = require('./readable').PassThrough\n","var Stream = require('stream');\nif (process.env.READABLE_STREAM === 'disable' && Stream) {\n module.exports = Stream;\n exports = module.exports = Stream.Readable;\n exports.Readable = Stream.Readable;\n exports.Writable = Stream.Writable;\n exports.Duplex = Stream.Duplex;\n exports.Transform = Stream.Transform;\n exports.PassThrough = Stream.PassThrough;\n exports.Stream = Stream;\n} else {\n exports = module.exports = require('./lib/_stream_readable.js');\n exports.Stream = Stream || exports;\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable.js');\n exports.Duplex = require('./lib/_stream_duplex.js');\n exports.Transform = require('./lib/_stream_transform.js');\n exports.PassThrough = require('./lib/_stream_passthrough.js');\n}\n","'use strict'\n\nconst { SymbolDispose } = require('../../ours/primordials')\nconst { AbortError, codes } = require('../../ours/errors')\nconst { isNodeStream, isWebStream, kControllerErrorFunction } = require('./utils')\nconst eos = require('./end-of-stream')\nconst { ERR_INVALID_ARG_TYPE } = codes\nlet addAbortListener\n\n// This method is inlined here for readable-stream\n// It also does not allow for signal to not exist on the stream\n// https://github.com/nodejs/node/pull/36061#discussion_r533718029\nconst validateAbortSignal = (signal, name) => {\n if (typeof signal !== 'object' || !('aborted' in signal)) {\n throw new ERR_INVALID_ARG_TYPE(name, 'AbortSignal', signal)\n }\n}\nmodule.exports.addAbortSignal = function addAbortSignal(signal, stream) {\n validateAbortSignal(signal, 'signal')\n if (!isNodeStream(stream) && !isWebStream(stream)) {\n throw new ERR_INVALID_ARG_TYPE('stream', ['ReadableStream', 'WritableStream', 'Stream'], stream)\n }\n return module.exports.addAbortSignalNoValidate(signal, stream)\n}\nmodule.exports.addAbortSignalNoValidate = function (signal, stream) {\n if (typeof signal !== 'object' || !('aborted' in signal)) {\n return stream\n }\n const onAbort = isNodeStream(stream)\n ? () => {\n stream.destroy(\n new AbortError(undefined, {\n cause: signal.reason\n })\n )\n }\n : () => {\n stream[kControllerErrorFunction](\n new AbortError(undefined, {\n cause: signal.reason\n })\n )\n }\n if (signal.aborted) {\n onAbort()\n } else {\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n const disposable = addAbortListener(signal, onAbort)\n eos(stream, disposable[SymbolDispose])\n }\n return stream\n}\n","'use strict'\n\nconst { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array } = require('../../ours/primordials')\nconst { Buffer } = require('buffer')\nconst { inspect } = require('../../ours/util')\nmodule.exports = class BufferList {\n constructor() {\n this.head = null\n this.tail = null\n this.length = 0\n }\n push(v) {\n const entry = {\n data: v,\n next: null\n }\n if (this.length > 0) this.tail.next = entry\n else this.head = entry\n this.tail = entry\n ++this.length\n }\n unshift(v) {\n const entry = {\n data: v,\n next: this.head\n }\n if (this.length === 0) this.tail = entry\n this.head = entry\n ++this.length\n }\n shift() {\n if (this.length === 0) return\n const ret = this.head.data\n if (this.length === 1) this.head = this.tail = null\n else this.head = this.head.next\n --this.length\n return ret\n }\n clear() {\n this.head = this.tail = null\n this.length = 0\n }\n join(s) {\n if (this.length === 0) return ''\n let p = this.head\n let ret = '' + p.data\n while ((p = p.next) !== null) ret += s + p.data\n return ret\n }\n concat(n) {\n if (this.length === 0) return Buffer.alloc(0)\n const ret = Buffer.allocUnsafe(n >>> 0)\n let p = this.head\n let i = 0\n while (p) {\n TypedArrayPrototypeSet(ret, p.data, i)\n i += p.data.length\n p = p.next\n }\n return ret\n }\n\n // Consumes a specified amount of bytes or characters from the buffered data.\n consume(n, hasStrings) {\n const data = this.head.data\n if (n < data.length) {\n // `slice` is the same for buffers and strings.\n const slice = data.slice(0, n)\n this.head.data = data.slice(n)\n return slice\n }\n if (n === data.length) {\n // First chunk is a perfect match.\n return this.shift()\n }\n // Result spans more than one buffer.\n return hasStrings ? this._getString(n) : this._getBuffer(n)\n }\n first() {\n return this.head.data\n }\n *[SymbolIterator]() {\n for (let p = this.head; p; p = p.next) {\n yield p.data\n }\n }\n\n // Consumes a specified amount of characters from the buffered data.\n _getString(n) {\n let ret = ''\n let p = this.head\n let c = 0\n do {\n const str = p.data\n if (n > str.length) {\n ret += str\n n -= str.length\n } else {\n if (n === str.length) {\n ret += str\n ++c\n if (p.next) this.head = p.next\n else this.head = this.tail = null\n } else {\n ret += StringPrototypeSlice(str, 0, n)\n this.head = p\n p.data = StringPrototypeSlice(str, n)\n }\n break\n }\n ++c\n } while ((p = p.next) !== null)\n this.length -= c\n return ret\n }\n\n // Consumes a specified amount of bytes from the buffered data.\n _getBuffer(n) {\n const ret = Buffer.allocUnsafe(n)\n const retLen = n\n let p = this.head\n let c = 0\n do {\n const buf = p.data\n if (n > buf.length) {\n TypedArrayPrototypeSet(ret, buf, retLen - n)\n n -= buf.length\n } else {\n if (n === buf.length) {\n TypedArrayPrototypeSet(ret, buf, retLen - n)\n ++c\n if (p.next) this.head = p.next\n else this.head = this.tail = null\n } else {\n TypedArrayPrototypeSet(ret, new Uint8Array(buf.buffer, buf.byteOffset, n), retLen - n)\n this.head = p\n p.data = buf.slice(n)\n }\n break\n }\n ++c\n } while ((p = p.next) !== null)\n this.length -= c\n return ret\n }\n\n // Make sure the linked list only shows the minimal necessary information.\n [Symbol.for('nodejs.util.inspect.custom')](_, options) {\n return inspect(this, {\n ...options,\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n })\n }\n}\n","'use strict'\n\nconst { pipeline } = require('./pipeline')\nconst Duplex = require('./duplex')\nconst { destroyer } = require('./destroy')\nconst {\n isNodeStream,\n isReadable,\n isWritable,\n isWebStream,\n isTransformStream,\n isWritableStream,\n isReadableStream\n} = require('./utils')\nconst {\n AbortError,\n codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }\n} = require('../../ours/errors')\nconst eos = require('./end-of-stream')\nmodule.exports = function compose(...streams) {\n if (streams.length === 0) {\n throw new ERR_MISSING_ARGS('streams')\n }\n if (streams.length === 1) {\n return Duplex.from(streams[0])\n }\n const orgStreams = [...streams]\n if (typeof streams[0] === 'function') {\n streams[0] = Duplex.from(streams[0])\n }\n if (typeof streams[streams.length - 1] === 'function') {\n const idx = streams.length - 1\n streams[idx] = Duplex.from(streams[idx])\n }\n for (let n = 0; n < streams.length; ++n) {\n if (!isNodeStream(streams[n]) && !isWebStream(streams[n])) {\n // TODO(ronag): Add checks for non streams.\n continue\n }\n if (\n n < streams.length - 1 &&\n !(isReadable(streams[n]) || isReadableStream(streams[n]) || isTransformStream(streams[n]))\n ) {\n throw new ERR_INVALID_ARG_VALUE(`streams[${n}]`, orgStreams[n], 'must be readable')\n }\n if (n > 0 && !(isWritable(streams[n]) || isWritableStream(streams[n]) || isTransformStream(streams[n]))) {\n throw new ERR_INVALID_ARG_VALUE(`streams[${n}]`, orgStreams[n], 'must be writable')\n }\n }\n let ondrain\n let onfinish\n let onreadable\n let onclose\n let d\n function onfinished(err) {\n const cb = onclose\n onclose = null\n if (cb) {\n cb(err)\n } else if (err) {\n d.destroy(err)\n } else if (!readable && !writable) {\n d.destroy()\n }\n }\n const head = streams[0]\n const tail = pipeline(streams, onfinished)\n const writable = !!(isWritable(head) || isWritableStream(head) || isTransformStream(head))\n const readable = !!(isReadable(tail) || isReadableStream(tail) || isTransformStream(tail))\n\n // TODO(ronag): Avoid double buffering.\n // Implement Writable/Readable/Duplex traits.\n // See, https://github.com/nodejs/node/pull/33515.\n d = new Duplex({\n // TODO (ronag): highWaterMark?\n writableObjectMode: !!(head !== null && head !== undefined && head.writableObjectMode),\n readableObjectMode: !!(tail !== null && tail !== undefined && tail.readableObjectMode),\n writable,\n readable\n })\n if (writable) {\n if (isNodeStream(head)) {\n d._write = function (chunk, encoding, callback) {\n if (head.write(chunk, encoding)) {\n callback()\n } else {\n ondrain = callback\n }\n }\n d._final = function (callback) {\n head.end()\n onfinish = callback\n }\n head.on('drain', function () {\n if (ondrain) {\n const cb = ondrain\n ondrain = null\n cb()\n }\n })\n } else if (isWebStream(head)) {\n const writable = isTransformStream(head) ? head.writable : head\n const writer = writable.getWriter()\n d._write = async function (chunk, encoding, callback) {\n try {\n await writer.ready\n writer.write(chunk).catch(() => {})\n callback()\n } catch (err) {\n callback(err)\n }\n }\n d._final = async function (callback) {\n try {\n await writer.ready\n writer.close().catch(() => {})\n onfinish = callback\n } catch (err) {\n callback(err)\n }\n }\n }\n const toRead = isTransformStream(tail) ? tail.readable : tail\n eos(toRead, () => {\n if (onfinish) {\n const cb = onfinish\n onfinish = null\n cb()\n }\n })\n }\n if (readable) {\n if (isNodeStream(tail)) {\n tail.on('readable', function () {\n if (onreadable) {\n const cb = onreadable\n onreadable = null\n cb()\n }\n })\n tail.on('end', function () {\n d.push(null)\n })\n d._read = function () {\n while (true) {\n const buf = tail.read()\n if (buf === null) {\n onreadable = d._read\n return\n }\n if (!d.push(buf)) {\n return\n }\n }\n }\n } else if (isWebStream(tail)) {\n const readable = isTransformStream(tail) ? tail.readable : tail\n const reader = readable.getReader()\n d._read = async function () {\n while (true) {\n try {\n const { value, done } = await reader.read()\n if (!d.push(value)) {\n return\n }\n if (done) {\n d.push(null)\n return\n }\n } catch {\n return\n }\n }\n }\n }\n }\n d._destroy = function (err, callback) {\n if (!err && onclose !== null) {\n err = new AbortError()\n }\n onreadable = null\n ondrain = null\n onfinish = null\n if (onclose === null) {\n callback(err)\n } else {\n onclose = callback\n if (isNodeStream(tail)) {\n destroyer(tail, err)\n }\n }\n }\n return d\n}\n","'use strict'\n\n/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n\nconst {\n aggregateTwoErrors,\n codes: { ERR_MULTIPLE_CALLBACK },\n AbortError\n} = require('../../ours/errors')\nconst { Symbol } = require('../../ours/primordials')\nconst { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require('./utils')\nconst kDestroy = Symbol('kDestroy')\nconst kConstruct = Symbol('kConstruct')\nfunction checkError(err, w, r) {\n if (err) {\n // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n err.stack // eslint-disable-line no-unused-expressions\n\n if (w && !w.errored) {\n w.errored = err\n }\n if (r && !r.errored) {\n r.errored = err\n }\n }\n}\n\n// Backwards compat. cb() is undocumented and unused in core but\n// unfortunately might be used by modules.\nfunction destroy(err, cb) {\n const r = this._readableState\n const w = this._writableState\n // With duplex streams we use the writable side for state.\n const s = w || r\n if ((w !== null && w !== undefined && w.destroyed) || (r !== null && r !== undefined && r.destroyed)) {\n if (typeof cb === 'function') {\n cb()\n }\n return this\n }\n\n // We set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n checkError(err, w, r)\n if (w) {\n w.destroyed = true\n }\n if (r) {\n r.destroyed = true\n }\n\n // If still constructing then defer calling _destroy.\n if (!s.constructed) {\n this.once(kDestroy, function (er) {\n _destroy(this, aggregateTwoErrors(er, err), cb)\n })\n } else {\n _destroy(this, err, cb)\n }\n return this\n}\nfunction _destroy(self, err, cb) {\n let called = false\n function onDestroy(err) {\n if (called) {\n return\n }\n called = true\n const r = self._readableState\n const w = self._writableState\n checkError(err, w, r)\n if (w) {\n w.closed = true\n }\n if (r) {\n r.closed = true\n }\n if (typeof cb === 'function') {\n cb(err)\n }\n if (err) {\n process.nextTick(emitErrorCloseNT, self, err)\n } else {\n process.nextTick(emitCloseNT, self)\n }\n }\n try {\n self._destroy(err || null, onDestroy)\n } catch (err) {\n onDestroy(err)\n }\n}\nfunction emitErrorCloseNT(self, err) {\n emitErrorNT(self, err)\n emitCloseNT(self)\n}\nfunction emitCloseNT(self) {\n const r = self._readableState\n const w = self._writableState\n if (w) {\n w.closeEmitted = true\n }\n if (r) {\n r.closeEmitted = true\n }\n if ((w !== null && w !== undefined && w.emitClose) || (r !== null && r !== undefined && r.emitClose)) {\n self.emit('close')\n }\n}\nfunction emitErrorNT(self, err) {\n const r = self._readableState\n const w = self._writableState\n if ((w !== null && w !== undefined && w.errorEmitted) || (r !== null && r !== undefined && r.errorEmitted)) {\n return\n }\n if (w) {\n w.errorEmitted = true\n }\n if (r) {\n r.errorEmitted = true\n }\n self.emit('error', err)\n}\nfunction undestroy() {\n const r = this._readableState\n const w = this._writableState\n if (r) {\n r.constructed = true\n r.closed = false\n r.closeEmitted = false\n r.destroyed = false\n r.errored = null\n r.errorEmitted = false\n r.reading = false\n r.ended = r.readable === false\n r.endEmitted = r.readable === false\n }\n if (w) {\n w.constructed = true\n w.destroyed = false\n w.closed = false\n w.closeEmitted = false\n w.errored = null\n w.errorEmitted = false\n w.finalCalled = false\n w.prefinished = false\n w.ended = w.writable === false\n w.ending = w.writable === false\n w.finished = w.writable === false\n }\n}\nfunction errorOrDestroy(stream, err, sync) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n\n const r = stream._readableState\n const w = stream._writableState\n if ((w !== null && w !== undefined && w.destroyed) || (r !== null && r !== undefined && r.destroyed)) {\n return this\n }\n if ((r !== null && r !== undefined && r.autoDestroy) || (w !== null && w !== undefined && w.autoDestroy))\n stream.destroy(err)\n else if (err) {\n // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n err.stack // eslint-disable-line no-unused-expressions\n\n if (w && !w.errored) {\n w.errored = err\n }\n if (r && !r.errored) {\n r.errored = err\n }\n if (sync) {\n process.nextTick(emitErrorNT, stream, err)\n } else {\n emitErrorNT(stream, err)\n }\n }\n}\nfunction construct(stream, cb) {\n if (typeof stream._construct !== 'function') {\n return\n }\n const r = stream._readableState\n const w = stream._writableState\n if (r) {\n r.constructed = false\n }\n if (w) {\n w.constructed = false\n }\n stream.once(kConstruct, cb)\n if (stream.listenerCount(kConstruct) > 1) {\n // Duplex\n return\n }\n process.nextTick(constructNT, stream)\n}\nfunction constructNT(stream) {\n let called = false\n function onConstruct(err) {\n if (called) {\n errorOrDestroy(stream, err !== null && err !== undefined ? err : new ERR_MULTIPLE_CALLBACK())\n return\n }\n called = true\n const r = stream._readableState\n const w = stream._writableState\n const s = w || r\n if (r) {\n r.constructed = true\n }\n if (w) {\n w.constructed = true\n }\n if (s.destroyed) {\n stream.emit(kDestroy, err)\n } else if (err) {\n errorOrDestroy(stream, err, true)\n } else {\n process.nextTick(emitConstructNT, stream)\n }\n }\n try {\n stream._construct((err) => {\n process.nextTick(onConstruct, err)\n })\n } catch (err) {\n process.nextTick(onConstruct, err)\n }\n}\nfunction emitConstructNT(stream) {\n stream.emit(kConstruct)\n}\nfunction isRequest(stream) {\n return (stream === null || stream === undefined ? undefined : stream.setHeader) && typeof stream.abort === 'function'\n}\nfunction emitCloseLegacy(stream) {\n stream.emit('close')\n}\nfunction emitErrorCloseLegacy(stream, err) {\n stream.emit('error', err)\n process.nextTick(emitCloseLegacy, stream)\n}\n\n// Normalize destroy for legacy.\nfunction destroyer(stream, err) {\n if (!stream || isDestroyed(stream)) {\n return\n }\n if (!err && !isFinished(stream)) {\n err = new AbortError()\n }\n\n // TODO: Remove isRequest branches.\n if (isServerRequest(stream)) {\n stream.socket = null\n stream.destroy(err)\n } else if (isRequest(stream)) {\n stream.abort()\n } else if (isRequest(stream.req)) {\n stream.req.abort()\n } else if (typeof stream.destroy === 'function') {\n stream.destroy(err)\n } else if (typeof stream.close === 'function') {\n // TODO: Don't lose err?\n stream.close()\n } else if (err) {\n process.nextTick(emitErrorCloseLegacy, stream, err)\n } else {\n process.nextTick(emitCloseLegacy, stream)\n }\n if (!stream.destroyed) {\n stream[kIsDestroyed] = true\n }\n}\nmodule.exports = {\n construct,\n destroyer,\n destroy,\n undestroy,\n errorOrDestroy\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototype inheritance, this class\n// prototypically inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict'\n\nconst {\n ObjectDefineProperties,\n ObjectGetOwnPropertyDescriptor,\n ObjectKeys,\n ObjectSetPrototypeOf\n} = require('../../ours/primordials')\nmodule.exports = Duplex\nconst Readable = require('./readable')\nconst Writable = require('./writable')\nObjectSetPrototypeOf(Duplex.prototype, Readable.prototype)\nObjectSetPrototypeOf(Duplex, Readable)\n{\n const keys = ObjectKeys(Writable.prototype)\n // Allow the keys array to be GC'ed.\n for (let i = 0; i < keys.length; i++) {\n const method = keys[i]\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]\n }\n}\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options)\n Readable.call(this, options)\n Writable.call(this, options)\n if (options) {\n this.allowHalfOpen = options.allowHalfOpen !== false\n if (options.readable === false) {\n this._readableState.readable = false\n this._readableState.ended = true\n this._readableState.endEmitted = true\n }\n if (options.writable === false) {\n this._writableState.writable = false\n this._writableState.ending = true\n this._writableState.ended = true\n this._writableState.finished = true\n }\n } else {\n this.allowHalfOpen = true\n }\n}\nObjectDefineProperties(Duplex.prototype, {\n writable: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writable')\n },\n writableHighWaterMark: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableHighWaterMark')\n },\n writableObjectMode: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableObjectMode')\n },\n writableBuffer: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableBuffer')\n },\n writableLength: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableLength')\n },\n writableFinished: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableFinished')\n },\n writableCorked: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableCorked')\n },\n writableEnded: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableEnded')\n },\n writableNeedDrain: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableNeedDrain')\n },\n destroyed: {\n __proto__: null,\n get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false\n }\n return this._readableState.destroyed && this._writableState.destroyed\n },\n set(value) {\n // Backward compatibility, the user is explicitly\n // managing destroyed.\n if (this._readableState && this._writableState) {\n this._readableState.destroyed = value\n this._writableState.destroyed = value\n }\n }\n }\n})\nlet webStreamsAdapters\n\n// Lazy to avoid circular references\nfunction lazyWebStreams() {\n if (webStreamsAdapters === undefined) webStreamsAdapters = {}\n return webStreamsAdapters\n}\nDuplex.fromWeb = function (pair, options) {\n return lazyWebStreams().newStreamDuplexFromReadableWritablePair(pair, options)\n}\nDuplex.toWeb = function (duplex) {\n return lazyWebStreams().newReadableWritablePairFromDuplex(duplex)\n}\nlet duplexify\nDuplex.from = function (body) {\n if (!duplexify) {\n duplexify = require('./duplexify')\n }\n return duplexify(body, 'body')\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n\n;('use strict')\nconst bufferModule = require('buffer')\nconst {\n isReadable,\n isWritable,\n isIterable,\n isNodeStream,\n isReadableNodeStream,\n isWritableNodeStream,\n isDuplexNodeStream,\n isReadableStream,\n isWritableStream\n} = require('./utils')\nconst eos = require('./end-of-stream')\nconst {\n AbortError,\n codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE }\n} = require('../../ours/errors')\nconst { destroyer } = require('./destroy')\nconst Duplex = require('./duplex')\nconst Readable = require('./readable')\nconst Writable = require('./writable')\nconst { createDeferredPromise } = require('../../ours/util')\nconst from = require('./from')\nconst Blob = globalThis.Blob || bufferModule.Blob\nconst isBlob =\n typeof Blob !== 'undefined'\n ? function isBlob(b) {\n return b instanceof Blob\n }\n : function isBlob(b) {\n return false\n }\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nconst { FunctionPrototypeCall } = require('../../ours/primordials')\n\n// This is needed for pre node 17.\nclass Duplexify extends Duplex {\n constructor(options) {\n super(options)\n\n // https://github.com/nodejs/node/pull/34385\n\n if ((options === null || options === undefined ? undefined : options.readable) === false) {\n this._readableState.readable = false\n this._readableState.ended = true\n this._readableState.endEmitted = true\n }\n if ((options === null || options === undefined ? undefined : options.writable) === false) {\n this._writableState.writable = false\n this._writableState.ending = true\n this._writableState.ended = true\n this._writableState.finished = true\n }\n }\n}\nmodule.exports = function duplexify(body, name) {\n if (isDuplexNodeStream(body)) {\n return body\n }\n if (isReadableNodeStream(body)) {\n return _duplexify({\n readable: body\n })\n }\n if (isWritableNodeStream(body)) {\n return _duplexify({\n writable: body\n })\n }\n if (isNodeStream(body)) {\n return _duplexify({\n writable: false,\n readable: false\n })\n }\n if (isReadableStream(body)) {\n return _duplexify({\n readable: Readable.fromWeb(body)\n })\n }\n if (isWritableStream(body)) {\n return _duplexify({\n writable: Writable.fromWeb(body)\n })\n }\n if (typeof body === 'function') {\n const { value, write, final, destroy } = fromAsyncGen(body)\n if (isIterable(value)) {\n return from(Duplexify, value, {\n // TODO (ronag): highWaterMark?\n objectMode: true,\n write,\n final,\n destroy\n })\n }\n const then = value === null || value === undefined ? undefined : value.then\n if (typeof then === 'function') {\n let d\n const promise = FunctionPrototypeCall(\n then,\n value,\n (val) => {\n if (val != null) {\n throw new ERR_INVALID_RETURN_VALUE('nully', 'body', val)\n }\n },\n (err) => {\n destroyer(d, err)\n }\n )\n return (d = new Duplexify({\n // TODO (ronag): highWaterMark?\n objectMode: true,\n readable: false,\n write,\n final(cb) {\n final(async () => {\n try {\n await promise\n process.nextTick(cb, null)\n } catch (err) {\n process.nextTick(cb, err)\n }\n })\n },\n destroy\n }))\n }\n throw new ERR_INVALID_RETURN_VALUE('Iterable, AsyncIterable or AsyncFunction', name, value)\n }\n if (isBlob(body)) {\n return duplexify(body.arrayBuffer())\n }\n if (isIterable(body)) {\n return from(Duplexify, body, {\n // TODO (ronag): highWaterMark?\n objectMode: true,\n writable: false\n })\n }\n if (\n isReadableStream(body === null || body === undefined ? undefined : body.readable) &&\n isWritableStream(body === null || body === undefined ? undefined : body.writable)\n ) {\n return Duplexify.fromWeb(body)\n }\n if (\n typeof (body === null || body === undefined ? undefined : body.writable) === 'object' ||\n typeof (body === null || body === undefined ? undefined : body.readable) === 'object'\n ) {\n const readable =\n body !== null && body !== undefined && body.readable\n ? isReadableNodeStream(body === null || body === undefined ? undefined : body.readable)\n ? body === null || body === undefined\n ? undefined\n : body.readable\n : duplexify(body.readable)\n : undefined\n const writable =\n body !== null && body !== undefined && body.writable\n ? isWritableNodeStream(body === null || body === undefined ? undefined : body.writable)\n ? body === null || body === undefined\n ? undefined\n : body.writable\n : duplexify(body.writable)\n : undefined\n return _duplexify({\n readable,\n writable\n })\n }\n const then = body === null || body === undefined ? undefined : body.then\n if (typeof then === 'function') {\n let d\n FunctionPrototypeCall(\n then,\n body,\n (val) => {\n if (val != null) {\n d.push(val)\n }\n d.push(null)\n },\n (err) => {\n destroyer(d, err)\n }\n )\n return (d = new Duplexify({\n objectMode: true,\n writable: false,\n read() {}\n }))\n }\n throw new ERR_INVALID_ARG_TYPE(\n name,\n [\n 'Blob',\n 'ReadableStream',\n 'WritableStream',\n 'Stream',\n 'Iterable',\n 'AsyncIterable',\n 'Function',\n '{ readable, writable } pair',\n 'Promise'\n ],\n body\n )\n}\nfunction fromAsyncGen(fn) {\n let { promise, resolve } = createDeferredPromise()\n const ac = new AbortController()\n const signal = ac.signal\n const value = fn(\n (async function* () {\n while (true) {\n const _promise = promise\n promise = null\n const { chunk, done, cb } = await _promise\n process.nextTick(cb)\n if (done) return\n if (signal.aborted)\n throw new AbortError(undefined, {\n cause: signal.reason\n })\n ;({ promise, resolve } = createDeferredPromise())\n yield chunk\n }\n })(),\n {\n signal\n }\n )\n return {\n value,\n write(chunk, encoding, cb) {\n const _resolve = resolve\n resolve = null\n _resolve({\n chunk,\n done: false,\n cb\n })\n },\n final(cb) {\n const _resolve = resolve\n resolve = null\n _resolve({\n done: true,\n cb\n })\n },\n destroy(err, cb) {\n ac.abort()\n cb(err)\n }\n }\n}\nfunction _duplexify(pair) {\n const r = pair.readable && typeof pair.readable.read !== 'function' ? Readable.wrap(pair.readable) : pair.readable\n const w = pair.writable\n let readable = !!isReadable(r)\n let writable = !!isWritable(w)\n let ondrain\n let onfinish\n let onreadable\n let onclose\n let d\n function onfinished(err) {\n const cb = onclose\n onclose = null\n if (cb) {\n cb(err)\n } else if (err) {\n d.destroy(err)\n }\n }\n\n // TODO(ronag): Avoid double buffering.\n // Implement Writable/Readable/Duplex traits.\n // See, https://github.com/nodejs/node/pull/33515.\n d = new Duplexify({\n // TODO (ronag): highWaterMark?\n readableObjectMode: !!(r !== null && r !== undefined && r.readableObjectMode),\n writableObjectMode: !!(w !== null && w !== undefined && w.writableObjectMode),\n readable,\n writable\n })\n if (writable) {\n eos(w, (err) => {\n writable = false\n if (err) {\n destroyer(r, err)\n }\n onfinished(err)\n })\n d._write = function (chunk, encoding, callback) {\n if (w.write(chunk, encoding)) {\n callback()\n } else {\n ondrain = callback\n }\n }\n d._final = function (callback) {\n w.end()\n onfinish = callback\n }\n w.on('drain', function () {\n if (ondrain) {\n const cb = ondrain\n ondrain = null\n cb()\n }\n })\n w.on('finish', function () {\n if (onfinish) {\n const cb = onfinish\n onfinish = null\n cb()\n }\n })\n }\n if (readable) {\n eos(r, (err) => {\n readable = false\n if (err) {\n destroyer(r, err)\n }\n onfinished(err)\n })\n r.on('readable', function () {\n if (onreadable) {\n const cb = onreadable\n onreadable = null\n cb()\n }\n })\n r.on('end', function () {\n d.push(null)\n })\n d._read = function () {\n while (true) {\n const buf = r.read()\n if (buf === null) {\n onreadable = d._read\n return\n }\n if (!d.push(buf)) {\n return\n }\n }\n }\n }\n d._destroy = function (err, callback) {\n if (!err && onclose !== null) {\n err = new AbortError()\n }\n onreadable = null\n ondrain = null\n onfinish = null\n if (onclose === null) {\n callback(err)\n } else {\n onclose = callback\n destroyer(w, err)\n destroyer(r, err)\n }\n }\n return d\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n\n;('use strict')\nconst { AbortError, codes } = require('../../ours/errors')\nconst { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes\nconst { kEmptyObject, once } = require('../../ours/util')\nconst { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require('../validators')\nconst { Promise, PromisePrototypeThen, SymbolDispose } = require('../../ours/primordials')\nconst {\n isClosed,\n isReadable,\n isReadableNodeStream,\n isReadableStream,\n isReadableFinished,\n isReadableErrored,\n isWritable,\n isWritableNodeStream,\n isWritableStream,\n isWritableFinished,\n isWritableErrored,\n isNodeStream,\n willEmitClose: _willEmitClose,\n kIsClosedPromise\n} = require('./utils')\nlet addAbortListener\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function'\n}\nconst nop = () => {}\nfunction eos(stream, options, callback) {\n var _options$readable, _options$writable\n if (arguments.length === 2) {\n callback = options\n options = kEmptyObject\n } else if (options == null) {\n options = kEmptyObject\n } else {\n validateObject(options, 'options')\n }\n validateFunction(callback, 'callback')\n validateAbortSignal(options.signal, 'options.signal')\n callback = once(callback)\n if (isReadableStream(stream) || isWritableStream(stream)) {\n return eosWeb(stream, options, callback)\n }\n if (!isNodeStream(stream)) {\n throw new ERR_INVALID_ARG_TYPE('stream', ['ReadableStream', 'WritableStream', 'Stream'], stream)\n }\n const readable =\n (_options$readable = options.readable) !== null && _options$readable !== undefined\n ? _options$readable\n : isReadableNodeStream(stream)\n const writable =\n (_options$writable = options.writable) !== null && _options$writable !== undefined\n ? _options$writable\n : isWritableNodeStream(stream)\n const wState = stream._writableState\n const rState = stream._readableState\n const onlegacyfinish = () => {\n if (!stream.writable) {\n onfinish()\n }\n }\n\n // TODO (ronag): Improve soft detection to include core modules and\n // common ecosystem modules that do properly emit 'close' but fail\n // this generic check.\n let willEmitClose =\n _willEmitClose(stream) && isReadableNodeStream(stream) === readable && isWritableNodeStream(stream) === writable\n let writableFinished = isWritableFinished(stream, false)\n const onfinish = () => {\n writableFinished = true\n // Stream should not be destroyed here. If it is that\n // means that user space is doing something differently and\n // we cannot trust willEmitClose.\n if (stream.destroyed) {\n willEmitClose = false\n }\n if (willEmitClose && (!stream.readable || readable)) {\n return\n }\n if (!readable || readableFinished) {\n callback.call(stream)\n }\n }\n let readableFinished = isReadableFinished(stream, false)\n const onend = () => {\n readableFinished = true\n // Stream should not be destroyed here. If it is that\n // means that user space is doing something differently and\n // we cannot trust willEmitClose.\n if (stream.destroyed) {\n willEmitClose = false\n }\n if (willEmitClose && (!stream.writable || writable)) {\n return\n }\n if (!writable || writableFinished) {\n callback.call(stream)\n }\n }\n const onerror = (err) => {\n callback.call(stream, err)\n }\n let closed = isClosed(stream)\n const onclose = () => {\n closed = true\n const errored = isWritableErrored(stream) || isReadableErrored(stream)\n if (errored && typeof errored !== 'boolean') {\n return callback.call(stream, errored)\n }\n if (readable && !readableFinished && isReadableNodeStream(stream, true)) {\n if (!isReadableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE())\n }\n if (writable && !writableFinished) {\n if (!isWritableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE())\n }\n callback.call(stream)\n }\n const onclosed = () => {\n closed = true\n const errored = isWritableErrored(stream) || isReadableErrored(stream)\n if (errored && typeof errored !== 'boolean') {\n return callback.call(stream, errored)\n }\n callback.call(stream)\n }\n const onrequest = () => {\n stream.req.on('finish', onfinish)\n }\n if (isRequest(stream)) {\n stream.on('complete', onfinish)\n if (!willEmitClose) {\n stream.on('abort', onclose)\n }\n if (stream.req) {\n onrequest()\n } else {\n stream.on('request', onrequest)\n }\n } else if (writable && !wState) {\n // legacy streams\n stream.on('end', onlegacyfinish)\n stream.on('close', onlegacyfinish)\n }\n\n // Not all streams will emit 'close' after 'aborted'.\n if (!willEmitClose && typeof stream.aborted === 'boolean') {\n stream.on('aborted', onclose)\n }\n stream.on('end', onend)\n stream.on('finish', onfinish)\n if (options.error !== false) {\n stream.on('error', onerror)\n }\n stream.on('close', onclose)\n if (closed) {\n process.nextTick(onclose)\n } else if (\n (wState !== null && wState !== undefined && wState.errorEmitted) ||\n (rState !== null && rState !== undefined && rState.errorEmitted)\n ) {\n if (!willEmitClose) {\n process.nextTick(onclosed)\n }\n } else if (\n !readable &&\n (!willEmitClose || isReadable(stream)) &&\n (writableFinished || isWritable(stream) === false)\n ) {\n process.nextTick(onclosed)\n } else if (\n !writable &&\n (!willEmitClose || isWritable(stream)) &&\n (readableFinished || isReadable(stream) === false)\n ) {\n process.nextTick(onclosed)\n } else if (rState && stream.req && stream.aborted) {\n process.nextTick(onclosed)\n }\n const cleanup = () => {\n callback = nop\n stream.removeListener('aborted', onclose)\n stream.removeListener('complete', onfinish)\n stream.removeListener('abort', onclose)\n stream.removeListener('request', onrequest)\n if (stream.req) stream.req.removeListener('finish', onfinish)\n stream.removeListener('end', onlegacyfinish)\n stream.removeListener('close', onlegacyfinish)\n stream.removeListener('finish', onfinish)\n stream.removeListener('end', onend)\n stream.removeListener('error', onerror)\n stream.removeListener('close', onclose)\n }\n if (options.signal && !closed) {\n const abort = () => {\n // Keep it because cleanup removes it.\n const endCallback = callback\n cleanup()\n endCallback.call(\n stream,\n new AbortError(undefined, {\n cause: options.signal.reason\n })\n )\n }\n if (options.signal.aborted) {\n process.nextTick(abort)\n } else {\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n const disposable = addAbortListener(options.signal, abort)\n const originalCallback = callback\n callback = once((...args) => {\n disposable[SymbolDispose]()\n originalCallback.apply(stream, args)\n })\n }\n }\n return cleanup\n}\nfunction eosWeb(stream, options, callback) {\n let isAborted = false\n let abort = nop\n if (options.signal) {\n abort = () => {\n isAborted = true\n callback.call(\n stream,\n new AbortError(undefined, {\n cause: options.signal.reason\n })\n )\n }\n if (options.signal.aborted) {\n process.nextTick(abort)\n } else {\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n const disposable = addAbortListener(options.signal, abort)\n const originalCallback = callback\n callback = once((...args) => {\n disposable[SymbolDispose]()\n originalCallback.apply(stream, args)\n })\n }\n }\n const resolverFn = (...args) => {\n if (!isAborted) {\n process.nextTick(() => callback.apply(stream, args))\n }\n }\n PromisePrototypeThen(stream[kIsClosedPromise].promise, resolverFn, resolverFn)\n return nop\n}\nfunction finished(stream, opts) {\n var _opts\n let autoCleanup = false\n if (opts === null) {\n opts = kEmptyObject\n }\n if ((_opts = opts) !== null && _opts !== undefined && _opts.cleanup) {\n validateBoolean(opts.cleanup, 'cleanup')\n autoCleanup = opts.cleanup\n }\n return new Promise((resolve, reject) => {\n const cleanup = eos(stream, opts, (err) => {\n if (autoCleanup) {\n cleanup()\n }\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n })\n}\nmodule.exports = eos\nmodule.exports.finished = finished\n","'use strict'\n\n/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n\nconst { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require('../../ours/primordials')\nconst { Buffer } = require('buffer')\nconst { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require('../../ours/errors').codes\nfunction from(Readable, iterable, opts) {\n let iterator\n if (typeof iterable === 'string' || iterable instanceof Buffer) {\n return new Readable({\n objectMode: true,\n ...opts,\n read() {\n this.push(iterable)\n this.push(null)\n }\n })\n }\n let isAsync\n if (iterable && iterable[SymbolAsyncIterator]) {\n isAsync = true\n iterator = iterable[SymbolAsyncIterator]()\n } else if (iterable && iterable[SymbolIterator]) {\n isAsync = false\n iterator = iterable[SymbolIterator]()\n } else {\n throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable)\n }\n const readable = new Readable({\n objectMode: true,\n highWaterMark: 1,\n // TODO(ronag): What options should be allowed?\n ...opts\n })\n\n // Flag to protect against _read\n // being called before last iteration completion.\n let reading = false\n readable._read = function () {\n if (!reading) {\n reading = true\n next()\n }\n }\n readable._destroy = function (error, cb) {\n PromisePrototypeThen(\n close(error),\n () => process.nextTick(cb, error),\n // nextTick is here in case cb throws\n (e) => process.nextTick(cb, e || error)\n )\n }\n async function close(error) {\n const hadError = error !== undefined && error !== null\n const hasThrow = typeof iterator.throw === 'function'\n if (hadError && hasThrow) {\n const { value, done } = await iterator.throw(error)\n await value\n if (done) {\n return\n }\n }\n if (typeof iterator.return === 'function') {\n const { value } = await iterator.return()\n await value\n }\n }\n async function next() {\n for (;;) {\n try {\n const { value, done } = isAsync ? await iterator.next() : iterator.next()\n if (done) {\n readable.push(null)\n } else {\n const res = value && typeof value.then === 'function' ? await value : value\n if (res === null) {\n reading = false\n throw new ERR_STREAM_NULL_VALUES()\n } else if (readable.push(res)) {\n continue\n } else {\n reading = false\n }\n }\n } catch (err) {\n readable.destroy(err)\n }\n break\n }\n }\n return readable\n}\nmodule.exports = from\n","'use strict'\n\nconst { ArrayIsArray, ObjectSetPrototypeOf } = require('../../ours/primordials')\nconst { EventEmitter: EE } = require('events')\nfunction Stream(opts) {\n EE.call(this, opts)\n}\nObjectSetPrototypeOf(Stream.prototype, EE.prototype)\nObjectSetPrototypeOf(Stream, EE)\nStream.prototype.pipe = function (dest, options) {\n const source = this\n function ondata(chunk) {\n if (dest.writable && dest.write(chunk) === false && source.pause) {\n source.pause()\n }\n }\n source.on('data', ondata)\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume()\n }\n }\n dest.on('drain', ondrain)\n\n // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend)\n source.on('close', onclose)\n }\n let didOnEnd = false\n function onend() {\n if (didOnEnd) return\n didOnEnd = true\n dest.end()\n }\n function onclose() {\n if (didOnEnd) return\n didOnEnd = true\n if (typeof dest.destroy === 'function') dest.destroy()\n }\n\n // Don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup()\n if (EE.listenerCount(this, 'error') === 0) {\n this.emit('error', er)\n }\n }\n prependListener(source, 'error', onerror)\n prependListener(dest, 'error', onerror)\n\n // Remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data', ondata)\n dest.removeListener('drain', ondrain)\n source.removeListener('end', onend)\n source.removeListener('close', onclose)\n source.removeListener('error', onerror)\n dest.removeListener('error', onerror)\n source.removeListener('end', cleanup)\n source.removeListener('close', cleanup)\n dest.removeListener('close', cleanup)\n }\n source.on('end', cleanup)\n source.on('close', cleanup)\n dest.on('close', cleanup)\n dest.emit('pipe', source)\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest\n}\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn)\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn)\n else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn)\n else emitter._events[event] = [fn, emitter._events[event]]\n}\nmodule.exports = {\n Stream,\n prependListener\n}\n","'use strict'\n\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nconst {\n codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },\n AbortError\n} = require('../../ours/errors')\nconst { validateAbortSignal, validateInteger, validateObject } = require('../validators')\nconst kWeakHandler = require('../../ours/primordials').Symbol('kWeak')\nconst kResistStopPropagation = require('../../ours/primordials').Symbol('kResistStopPropagation')\nconst { finished } = require('./end-of-stream')\nconst staticCompose = require('./compose')\nconst { addAbortSignalNoValidate } = require('./add-abort-signal')\nconst { isWritable, isNodeStream } = require('./utils')\nconst { deprecate } = require('../../ours/util')\nconst {\n ArrayPrototypePush,\n Boolean,\n MathFloor,\n Number,\n NumberIsNaN,\n Promise,\n PromiseReject,\n PromiseResolve,\n PromisePrototypeThen,\n Symbol\n} = require('../../ours/primordials')\nconst kEmpty = Symbol('kEmpty')\nconst kEof = Symbol('kEof')\nfunction compose(stream, options) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n if (isNodeStream(stream) && !isWritable(stream)) {\n throw new ERR_INVALID_ARG_VALUE('stream', stream, 'must be writable')\n }\n const composedStream = staticCompose(this, stream)\n if (options !== null && options !== undefined && options.signal) {\n // Not validating as we already validated before\n addAbortSignalNoValidate(options.signal, composedStream)\n }\n return composedStream\n}\nfunction map(fn, options) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n let concurrency = 1\n if ((options === null || options === undefined ? undefined : options.concurrency) != null) {\n concurrency = MathFloor(options.concurrency)\n }\n let highWaterMark = concurrency - 1\n if ((options === null || options === undefined ? undefined : options.highWaterMark) != null) {\n highWaterMark = MathFloor(options.highWaterMark)\n }\n validateInteger(concurrency, 'options.concurrency', 1)\n validateInteger(highWaterMark, 'options.highWaterMark', 0)\n highWaterMark += concurrency\n return async function* map() {\n const signal = require('../../ours/util').AbortSignalAny(\n [options === null || options === undefined ? undefined : options.signal].filter(Boolean)\n )\n const stream = this\n const queue = []\n const signalOpt = {\n signal\n }\n let next\n let resume\n let done = false\n let cnt = 0\n function onCatch() {\n done = true\n afterItemProcessed()\n }\n function afterItemProcessed() {\n cnt -= 1\n maybeResume()\n }\n function maybeResume() {\n if (resume && !done && cnt < concurrency && queue.length < highWaterMark) {\n resume()\n resume = null\n }\n }\n async function pump() {\n try {\n for await (let val of stream) {\n if (done) {\n return\n }\n if (signal.aborted) {\n throw new AbortError()\n }\n try {\n val = fn(val, signalOpt)\n if (val === kEmpty) {\n continue\n }\n val = PromiseResolve(val)\n } catch (err) {\n val = PromiseReject(err)\n }\n cnt += 1\n PromisePrototypeThen(val, afterItemProcessed, onCatch)\n queue.push(val)\n if (next) {\n next()\n next = null\n }\n if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {\n await new Promise((resolve) => {\n resume = resolve\n })\n }\n }\n queue.push(kEof)\n } catch (err) {\n const val = PromiseReject(err)\n PromisePrototypeThen(val, afterItemProcessed, onCatch)\n queue.push(val)\n } finally {\n done = true\n if (next) {\n next()\n next = null\n }\n }\n }\n pump()\n try {\n while (true) {\n while (queue.length > 0) {\n const val = await queue[0]\n if (val === kEof) {\n return\n }\n if (signal.aborted) {\n throw new AbortError()\n }\n if (val !== kEmpty) {\n yield val\n }\n queue.shift()\n maybeResume()\n }\n await new Promise((resolve) => {\n next = resolve\n })\n }\n } finally {\n done = true\n if (resume) {\n resume()\n resume = null\n }\n }\n }.call(this)\n}\nfunction asIndexedPairs(options = undefined) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n return async function* asIndexedPairs() {\n let index = 0\n for await (const val of this) {\n var _options$signal\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal = options.signal) !== null &&\n _options$signal !== undefined &&\n _options$signal.aborted\n ) {\n throw new AbortError({\n cause: options.signal.reason\n })\n }\n yield [index++, val]\n }\n }.call(this)\n}\nasync function some(fn, options = undefined) {\n for await (const unused of filter.call(this, fn, options)) {\n return true\n }\n return false\n}\nasync function every(fn, options = undefined) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n // https://en.wikipedia.org/wiki/De_Morgan%27s_laws\n return !(await some.call(\n this,\n async (...args) => {\n return !(await fn(...args))\n },\n options\n ))\n}\nasync function find(fn, options) {\n for await (const result of filter.call(this, fn, options)) {\n return result\n }\n return undefined\n}\nasync function forEach(fn, options) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n async function forEachFn(value, options) {\n await fn(value, options)\n return kEmpty\n }\n // eslint-disable-next-line no-unused-vars\n for await (const unused of map.call(this, forEachFn, options));\n}\nfunction filter(fn, options) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n async function filterFn(value, options) {\n if (await fn(value, options)) {\n return value\n }\n return kEmpty\n }\n return map.call(this, filterFn, options)\n}\n\n// Specific to provide better error to reduce since the argument is only\n// missing if the stream has no items in it - but the code is still appropriate\nclass ReduceAwareErrMissingArgs extends ERR_MISSING_ARGS {\n constructor() {\n super('reduce')\n this.message = 'Reduce of an empty stream requires an initial value'\n }\n}\nasync function reduce(reducer, initialValue, options) {\n var _options$signal2\n if (typeof reducer !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('reducer', ['Function', 'AsyncFunction'], reducer)\n }\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n let hasInitialValue = arguments.length > 1\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal2 = options.signal) !== null &&\n _options$signal2 !== undefined &&\n _options$signal2.aborted\n ) {\n const err = new AbortError(undefined, {\n cause: options.signal.reason\n })\n this.once('error', () => {}) // The error is already propagated\n await finished(this.destroy(err))\n throw err\n }\n const ac = new AbortController()\n const signal = ac.signal\n if (options !== null && options !== undefined && options.signal) {\n const opts = {\n once: true,\n [kWeakHandler]: this,\n [kResistStopPropagation]: true\n }\n options.signal.addEventListener('abort', () => ac.abort(), opts)\n }\n let gotAnyItemFromStream = false\n try {\n for await (const value of this) {\n var _options$signal3\n gotAnyItemFromStream = true\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal3 = options.signal) !== null &&\n _options$signal3 !== undefined &&\n _options$signal3.aborted\n ) {\n throw new AbortError()\n }\n if (!hasInitialValue) {\n initialValue = value\n hasInitialValue = true\n } else {\n initialValue = await reducer(initialValue, value, {\n signal\n })\n }\n }\n if (!gotAnyItemFromStream && !hasInitialValue) {\n throw new ReduceAwareErrMissingArgs()\n }\n } finally {\n ac.abort()\n }\n return initialValue\n}\nasync function toArray(options) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n const result = []\n for await (const val of this) {\n var _options$signal4\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal4 = options.signal) !== null &&\n _options$signal4 !== undefined &&\n _options$signal4.aborted\n ) {\n throw new AbortError(undefined, {\n cause: options.signal.reason\n })\n }\n ArrayPrototypePush(result, val)\n }\n return result\n}\nfunction flatMap(fn, options) {\n const values = map.call(this, fn, options)\n return async function* flatMap() {\n for await (const val of values) {\n yield* val\n }\n }.call(this)\n}\nfunction toIntegerOrInfinity(number) {\n // We coerce here to align with the spec\n // https://github.com/tc39/proposal-iterator-helpers/issues/169\n number = Number(number)\n if (NumberIsNaN(number)) {\n return 0\n }\n if (number < 0) {\n throw new ERR_OUT_OF_RANGE('number', '>= 0', number)\n }\n return number\n}\nfunction drop(number, options = undefined) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n number = toIntegerOrInfinity(number)\n return async function* drop() {\n var _options$signal5\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal5 = options.signal) !== null &&\n _options$signal5 !== undefined &&\n _options$signal5.aborted\n ) {\n throw new AbortError()\n }\n for await (const val of this) {\n var _options$signal6\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal6 = options.signal) !== null &&\n _options$signal6 !== undefined &&\n _options$signal6.aborted\n ) {\n throw new AbortError()\n }\n if (number-- <= 0) {\n yield val\n }\n }\n }.call(this)\n}\nfunction take(number, options = undefined) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n number = toIntegerOrInfinity(number)\n return async function* take() {\n var _options$signal7\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal7 = options.signal) !== null &&\n _options$signal7 !== undefined &&\n _options$signal7.aborted\n ) {\n throw new AbortError()\n }\n for await (const val of this) {\n var _options$signal8\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal8 = options.signal) !== null &&\n _options$signal8 !== undefined &&\n _options$signal8.aborted\n ) {\n throw new AbortError()\n }\n if (number-- > 0) {\n yield val\n }\n\n // Don't get another item from iterator in case we reached the end\n if (number <= 0) {\n return\n }\n }\n }.call(this)\n}\nmodule.exports.streamReturningOperators = {\n asIndexedPairs: deprecate(asIndexedPairs, 'readable.asIndexedPairs will be removed in a future version.'),\n drop,\n filter,\n flatMap,\n map,\n take,\n compose\n}\nmodule.exports.promiseReturningOperators = {\n every,\n forEach,\n reduce,\n toArray,\n some,\n find\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict'\n\nconst { ObjectSetPrototypeOf } = require('../../ours/primordials')\nmodule.exports = PassThrough\nconst Transform = require('./transform')\nObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype)\nObjectSetPrototypeOf(PassThrough, Transform)\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options)\n Transform.call(this, options)\n}\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk)\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n\n;('use strict')\nconst { ArrayIsArray, Promise, SymbolAsyncIterator, SymbolDispose } = require('../../ours/primordials')\nconst eos = require('./end-of-stream')\nconst { once } = require('../../ours/util')\nconst destroyImpl = require('./destroy')\nconst Duplex = require('./duplex')\nconst {\n aggregateTwoErrors,\n codes: {\n ERR_INVALID_ARG_TYPE,\n ERR_INVALID_RETURN_VALUE,\n ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED,\n ERR_STREAM_PREMATURE_CLOSE\n },\n AbortError\n} = require('../../ours/errors')\nconst { validateFunction, validateAbortSignal } = require('../validators')\nconst {\n isIterable,\n isReadable,\n isReadableNodeStream,\n isNodeStream,\n isTransformStream,\n isWebStream,\n isReadableStream,\n isReadableFinished\n} = require('./utils')\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nlet PassThrough\nlet Readable\nlet addAbortListener\nfunction destroyer(stream, reading, writing) {\n let finished = false\n stream.on('close', () => {\n finished = true\n })\n const cleanup = eos(\n stream,\n {\n readable: reading,\n writable: writing\n },\n (err) => {\n finished = !err\n }\n )\n return {\n destroy: (err) => {\n if (finished) return\n finished = true\n destroyImpl.destroyer(stream, err || new ERR_STREAM_DESTROYED('pipe'))\n },\n cleanup\n }\n}\nfunction popCallback(streams) {\n // Streams should never be an empty array. It should always contain at least\n // a single stream. Therefore optimize for the average case instead of\n // checking for length === 0 as well.\n validateFunction(streams[streams.length - 1], 'streams[stream.length - 1]')\n return streams.pop()\n}\nfunction makeAsyncIterable(val) {\n if (isIterable(val)) {\n return val\n } else if (isReadableNodeStream(val)) {\n // Legacy streams are not Iterable.\n return fromReadable(val)\n }\n throw new ERR_INVALID_ARG_TYPE('val', ['Readable', 'Iterable', 'AsyncIterable'], val)\n}\nasync function* fromReadable(val) {\n if (!Readable) {\n Readable = require('./readable')\n }\n yield* Readable.prototype[SymbolAsyncIterator].call(val)\n}\nasync function pumpToNode(iterable, writable, finish, { end }) {\n let error\n let onresolve = null\n const resume = (err) => {\n if (err) {\n error = err\n }\n if (onresolve) {\n const callback = onresolve\n onresolve = null\n callback()\n }\n }\n const wait = () =>\n new Promise((resolve, reject) => {\n if (error) {\n reject(error)\n } else {\n onresolve = () => {\n if (error) {\n reject(error)\n } else {\n resolve()\n }\n }\n }\n })\n writable.on('drain', resume)\n const cleanup = eos(\n writable,\n {\n readable: false\n },\n resume\n )\n try {\n if (writable.writableNeedDrain) {\n await wait()\n }\n for await (const chunk of iterable) {\n if (!writable.write(chunk)) {\n await wait()\n }\n }\n if (end) {\n writable.end()\n await wait()\n }\n finish()\n } catch (err) {\n finish(error !== err ? aggregateTwoErrors(error, err) : err)\n } finally {\n cleanup()\n writable.off('drain', resume)\n }\n}\nasync function pumpToWeb(readable, writable, finish, { end }) {\n if (isTransformStream(writable)) {\n writable = writable.writable\n }\n // https://streams.spec.whatwg.org/#example-manual-write-with-backpressure\n const writer = writable.getWriter()\n try {\n for await (const chunk of readable) {\n await writer.ready\n writer.write(chunk).catch(() => {})\n }\n await writer.ready\n if (end) {\n await writer.close()\n }\n finish()\n } catch (err) {\n try {\n await writer.abort(err)\n finish(err)\n } catch (err) {\n finish(err)\n }\n }\n}\nfunction pipeline(...streams) {\n return pipelineImpl(streams, once(popCallback(streams)))\n}\nfunction pipelineImpl(streams, callback, opts) {\n if (streams.length === 1 && ArrayIsArray(streams[0])) {\n streams = streams[0]\n }\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams')\n }\n const ac = new AbortController()\n const signal = ac.signal\n const outerSignal = opts === null || opts === undefined ? undefined : opts.signal\n\n // Need to cleanup event listeners if last stream is readable\n // https://github.com/nodejs/node/issues/35452\n const lastStreamCleanup = []\n validateAbortSignal(outerSignal, 'options.signal')\n function abort() {\n finishImpl(new AbortError())\n }\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n let disposable\n if (outerSignal) {\n disposable = addAbortListener(outerSignal, abort)\n }\n let error\n let value\n const destroys = []\n let finishCount = 0\n function finish(err) {\n finishImpl(err, --finishCount === 0)\n }\n function finishImpl(err, final) {\n var _disposable\n if (err && (!error || error.code === 'ERR_STREAM_PREMATURE_CLOSE')) {\n error = err\n }\n if (!error && !final) {\n return\n }\n while (destroys.length) {\n destroys.shift()(error)\n }\n ;(_disposable = disposable) === null || _disposable === undefined ? undefined : _disposable[SymbolDispose]()\n ac.abort()\n if (final) {\n if (!error) {\n lastStreamCleanup.forEach((fn) => fn())\n }\n process.nextTick(callback, error, value)\n }\n }\n let ret\n for (let i = 0; i < streams.length; i++) {\n const stream = streams[i]\n const reading = i < streams.length - 1\n const writing = i > 0\n const end = reading || (opts === null || opts === undefined ? undefined : opts.end) !== false\n const isLastStream = i === streams.length - 1\n if (isNodeStream(stream)) {\n if (end) {\n const { destroy, cleanup } = destroyer(stream, reading, writing)\n destroys.push(destroy)\n if (isReadable(stream) && isLastStream) {\n lastStreamCleanup.push(cleanup)\n }\n }\n\n // Catch stream errors that occur after pipe/pump has completed.\n function onError(err) {\n if (err && err.name !== 'AbortError' && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n finish(err)\n }\n }\n stream.on('error', onError)\n if (isReadable(stream) && isLastStream) {\n lastStreamCleanup.push(() => {\n stream.removeListener('error', onError)\n })\n }\n }\n if (i === 0) {\n if (typeof stream === 'function') {\n ret = stream({\n signal\n })\n if (!isIterable(ret)) {\n throw new ERR_INVALID_RETURN_VALUE('Iterable, AsyncIterable or Stream', 'source', ret)\n }\n } else if (isIterable(stream) || isReadableNodeStream(stream) || isTransformStream(stream)) {\n ret = stream\n } else {\n ret = Duplex.from(stream)\n }\n } else if (typeof stream === 'function') {\n if (isTransformStream(ret)) {\n var _ret\n ret = makeAsyncIterable((_ret = ret) === null || _ret === undefined ? undefined : _ret.readable)\n } else {\n ret = makeAsyncIterable(ret)\n }\n ret = stream(ret, {\n signal\n })\n if (reading) {\n if (!isIterable(ret, true)) {\n throw new ERR_INVALID_RETURN_VALUE('AsyncIterable', `transform[${i - 1}]`, ret)\n }\n } else {\n var _ret2\n if (!PassThrough) {\n PassThrough = require('./passthrough')\n }\n\n // If the last argument to pipeline is not a stream\n // we must create a proxy stream so that pipeline(...)\n // always returns a stream which can be further\n // composed through `.pipe(stream)`.\n\n const pt = new PassThrough({\n objectMode: true\n })\n\n // Handle Promises/A+ spec, `then` could be a getter that throws on\n // second use.\n const then = (_ret2 = ret) === null || _ret2 === undefined ? undefined : _ret2.then\n if (typeof then === 'function') {\n finishCount++\n then.call(\n ret,\n (val) => {\n value = val\n if (val != null) {\n pt.write(val)\n }\n if (end) {\n pt.end()\n }\n process.nextTick(finish)\n },\n (err) => {\n pt.destroy(err)\n process.nextTick(finish, err)\n }\n )\n } else if (isIterable(ret, true)) {\n finishCount++\n pumpToNode(ret, pt, finish, {\n end\n })\n } else if (isReadableStream(ret) || isTransformStream(ret)) {\n const toRead = ret.readable || ret\n finishCount++\n pumpToNode(toRead, pt, finish, {\n end\n })\n } else {\n throw new ERR_INVALID_RETURN_VALUE('AsyncIterable or Promise', 'destination', ret)\n }\n ret = pt\n const { destroy, cleanup } = destroyer(ret, false, true)\n destroys.push(destroy)\n if (isLastStream) {\n lastStreamCleanup.push(cleanup)\n }\n }\n } else if (isNodeStream(stream)) {\n if (isReadableNodeStream(ret)) {\n finishCount += 2\n const cleanup = pipe(ret, stream, finish, {\n end\n })\n if (isReadable(stream) && isLastStream) {\n lastStreamCleanup.push(cleanup)\n }\n } else if (isTransformStream(ret) || isReadableStream(ret)) {\n const toRead = ret.readable || ret\n finishCount++\n pumpToNode(toRead, stream, finish, {\n end\n })\n } else if (isIterable(ret)) {\n finishCount++\n pumpToNode(ret, stream, finish, {\n end\n })\n } else {\n throw new ERR_INVALID_ARG_TYPE(\n 'val',\n ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'],\n ret\n )\n }\n ret = stream\n } else if (isWebStream(stream)) {\n if (isReadableNodeStream(ret)) {\n finishCount++\n pumpToWeb(makeAsyncIterable(ret), stream, finish, {\n end\n })\n } else if (isReadableStream(ret) || isIterable(ret)) {\n finishCount++\n pumpToWeb(ret, stream, finish, {\n end\n })\n } else if (isTransformStream(ret)) {\n finishCount++\n pumpToWeb(ret.readable, stream, finish, {\n end\n })\n } else {\n throw new ERR_INVALID_ARG_TYPE(\n 'val',\n ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'],\n ret\n )\n }\n ret = stream\n } else {\n ret = Duplex.from(stream)\n }\n }\n if (\n (signal !== null && signal !== undefined && signal.aborted) ||\n (outerSignal !== null && outerSignal !== undefined && outerSignal.aborted)\n ) {\n process.nextTick(abort)\n }\n return ret\n}\nfunction pipe(src, dst, finish, { end }) {\n let ended = false\n dst.on('close', () => {\n if (!ended) {\n // Finish if the destination closes before the source has completed.\n finish(new ERR_STREAM_PREMATURE_CLOSE())\n }\n })\n src.pipe(dst, {\n end: false\n }) // If end is true we already will have a listener to end dst.\n\n if (end) {\n // Compat. Before node v10.12.0 stdio used to throw an error so\n // pipe() did/does not end() stdio destinations.\n // Now they allow it but \"secretly\" don't close the underlying fd.\n\n function endFn() {\n ended = true\n dst.end()\n }\n if (isReadableFinished(src)) {\n // End the destination if the source has already ended.\n process.nextTick(endFn)\n } else {\n src.once('end', endFn)\n }\n } else {\n finish()\n }\n eos(\n src,\n {\n readable: true,\n writable: false\n },\n (err) => {\n const rState = src._readableState\n if (\n err &&\n err.code === 'ERR_STREAM_PREMATURE_CLOSE' &&\n rState &&\n rState.ended &&\n !rState.errored &&\n !rState.errorEmitted\n ) {\n // Some readable streams will emit 'close' before 'end'. However, since\n // this is on the readable side 'end' should still be emitted if the\n // stream has been ended and no error emitted. This should be allowed in\n // favor of backwards compatibility. Since the stream is piped to a\n // destination this should not result in any observable difference.\n // We don't need to check if this is a writable premature close since\n // eos will only fail with premature close on the reading side for\n // duplex streams.\n src.once('end', finish).once('error', finish)\n } else {\n finish(err)\n }\n }\n )\n return eos(\n dst,\n {\n readable: false,\n writable: true\n },\n finish\n )\n}\nmodule.exports = {\n pipelineImpl,\n pipeline\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n;('use strict')\nconst {\n ArrayPrototypeIndexOf,\n NumberIsInteger,\n NumberIsNaN,\n NumberParseInt,\n ObjectDefineProperties,\n ObjectKeys,\n ObjectSetPrototypeOf,\n Promise,\n SafeSet,\n SymbolAsyncDispose,\n SymbolAsyncIterator,\n Symbol\n} = require('../../ours/primordials')\nmodule.exports = Readable\nReadable.ReadableState = ReadableState\nconst { EventEmitter: EE } = require('events')\nconst { Stream, prependListener } = require('./legacy')\nconst { Buffer } = require('buffer')\nconst { addAbortSignal } = require('./add-abort-signal')\nconst eos = require('./end-of-stream')\nlet debug = require('../../ours/util').debuglog('stream', (fn) => {\n debug = fn\n})\nconst BufferList = require('./buffer_list')\nconst destroyImpl = require('./destroy')\nconst { getHighWaterMark, getDefaultHighWaterMark } = require('./state')\nconst {\n aggregateTwoErrors,\n codes: {\n ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED,\n ERR_OUT_OF_RANGE,\n ERR_STREAM_PUSH_AFTER_EOF,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT\n },\n AbortError\n} = require('../../ours/errors')\nconst { validateObject } = require('../validators')\nconst kPaused = Symbol('kPaused')\nconst { StringDecoder } = require('string_decoder')\nconst from = require('./from')\nObjectSetPrototypeOf(Readable.prototype, Stream.prototype)\nObjectSetPrototypeOf(Readable, Stream)\nconst nop = () => {}\nconst { errorOrDestroy } = destroyImpl\nconst kObjectMode = 1 << 0\nconst kEnded = 1 << 1\nconst kEndEmitted = 1 << 2\nconst kReading = 1 << 3\nconst kConstructed = 1 << 4\nconst kSync = 1 << 5\nconst kNeedReadable = 1 << 6\nconst kEmittedReadable = 1 << 7\nconst kReadableListening = 1 << 8\nconst kResumeScheduled = 1 << 9\nconst kErrorEmitted = 1 << 10\nconst kEmitClose = 1 << 11\nconst kAutoDestroy = 1 << 12\nconst kDestroyed = 1 << 13\nconst kClosed = 1 << 14\nconst kCloseEmitted = 1 << 15\nconst kMultiAwaitDrain = 1 << 16\nconst kReadingMore = 1 << 17\nconst kDataEmitted = 1 << 18\n\n// TODO(benjamingr) it is likely slower to do it this way than with free functions\nfunction makeBitMapDescriptor(bit) {\n return {\n enumerable: false,\n get() {\n return (this.state & bit) !== 0\n },\n set(value) {\n if (value) this.state |= bit\n else this.state &= ~bit\n }\n }\n}\nObjectDefineProperties(ReadableState.prototype, {\n objectMode: makeBitMapDescriptor(kObjectMode),\n ended: makeBitMapDescriptor(kEnded),\n endEmitted: makeBitMapDescriptor(kEndEmitted),\n reading: makeBitMapDescriptor(kReading),\n // Stream is still being constructed and cannot be\n // destroyed until construction finished or failed.\n // Async construction is opt in, therefore we start as\n // constructed.\n constructed: makeBitMapDescriptor(kConstructed),\n // A flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n sync: makeBitMapDescriptor(kSync),\n // Whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n needReadable: makeBitMapDescriptor(kNeedReadable),\n emittedReadable: makeBitMapDescriptor(kEmittedReadable),\n readableListening: makeBitMapDescriptor(kReadableListening),\n resumeScheduled: makeBitMapDescriptor(kResumeScheduled),\n // True if the error was already emitted and should not be thrown again.\n errorEmitted: makeBitMapDescriptor(kErrorEmitted),\n emitClose: makeBitMapDescriptor(kEmitClose),\n autoDestroy: makeBitMapDescriptor(kAutoDestroy),\n // Has it been destroyed.\n destroyed: makeBitMapDescriptor(kDestroyed),\n // Indicates whether the stream has finished destroying.\n closed: makeBitMapDescriptor(kClosed),\n // True if close has been emitted or would have been emitted\n // depending on emitClose.\n closeEmitted: makeBitMapDescriptor(kCloseEmitted),\n multiAwaitDrain: makeBitMapDescriptor(kMultiAwaitDrain),\n // If true, a maybeReadMore has been scheduled.\n readingMore: makeBitMapDescriptor(kReadingMore),\n dataEmitted: makeBitMapDescriptor(kDataEmitted)\n})\nfunction ReadableState(options, stream, isDuplex) {\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof require('./duplex')\n\n // Bit map field to store ReadableState more effciently with 1 bit per field\n // instead of a V8 slot per field.\n this.state = kEmitClose | kAutoDestroy | kConstructed | kSync\n // Object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away.\n if (options && options.objectMode) this.state |= kObjectMode\n if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode\n\n // The point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n this.highWaterMark = options\n ? getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex)\n : getDefaultHighWaterMark(false)\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift().\n this.buffer = new BufferList()\n this.length = 0\n this.pipes = []\n this.flowing = null\n this[kPaused] = null\n\n // Should close be emitted on destroy. Defaults to true.\n if (options && options.emitClose === false) this.state &= ~kEmitClose\n\n // Should .destroy() be called after 'end' (and potentially 'finish').\n if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy\n\n // Indicates whether the stream has errored. When true no further\n // _read calls, 'data' or 'readable' events should occur. This is needed\n // since when autoDestroy is disabled we need a way to tell whether the\n // stream has failed.\n this.errored = null\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = (options && options.defaultEncoding) || 'utf8'\n\n // Ref the piped dest which we need a drain event on it\n // type: null | Writable | Set.\n this.awaitDrainWriters = null\n this.decoder = null\n this.encoding = null\n if (options && options.encoding) {\n this.decoder = new StringDecoder(options.encoding)\n this.encoding = options.encoding\n }\n}\nfunction Readable(options) {\n if (!(this instanceof Readable)) return new Readable(options)\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5.\n const isDuplex = this instanceof require('./duplex')\n this._readableState = new ReadableState(options, this, isDuplex)\n if (options) {\n if (typeof options.read === 'function') this._read = options.read\n if (typeof options.destroy === 'function') this._destroy = options.destroy\n if (typeof options.construct === 'function') this._construct = options.construct\n if (options.signal && !isDuplex) addAbortSignal(options.signal, this)\n }\n Stream.call(this, options)\n destroyImpl.construct(this, () => {\n if (this._readableState.needReadable) {\n maybeReadMore(this, this._readableState)\n }\n })\n}\nReadable.prototype.destroy = destroyImpl.destroy\nReadable.prototype._undestroy = destroyImpl.undestroy\nReadable.prototype._destroy = function (err, cb) {\n cb(err)\n}\nReadable.prototype[EE.captureRejectionSymbol] = function (err) {\n this.destroy(err)\n}\nReadable.prototype[SymbolAsyncDispose] = function () {\n let error\n if (!this.destroyed) {\n error = this.readableEnded ? null : new AbortError()\n this.destroy(error)\n }\n return new Promise((resolve, reject) => eos(this, (err) => (err && err !== error ? reject(err) : resolve(null))))\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n return readableAddChunk(this, chunk, encoding, false)\n}\n\n// Unshift should *always* be something directly out of read().\nReadable.prototype.unshift = function (chunk, encoding) {\n return readableAddChunk(this, chunk, encoding, true)\n}\nfunction readableAddChunk(stream, chunk, encoding, addToFront) {\n debug('readableAddChunk', chunk)\n const state = stream._readableState\n let err\n if ((state.state & kObjectMode) === 0) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding\n if (state.encoding !== encoding) {\n if (addToFront && state.encoding) {\n // When unshifting, if state.encoding is set, we have to save\n // the string in the BufferList with the state encoding.\n chunk = Buffer.from(chunk, encoding).toString(state.encoding)\n } else {\n chunk = Buffer.from(chunk, encoding)\n encoding = ''\n }\n }\n } else if (chunk instanceof Buffer) {\n encoding = ''\n } else if (Stream._isUint8Array(chunk)) {\n chunk = Stream._uint8ArrayToBuffer(chunk)\n encoding = ''\n } else if (chunk != null) {\n err = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk)\n }\n }\n if (err) {\n errorOrDestroy(stream, err)\n } else if (chunk === null) {\n state.state &= ~kReading\n onEofChunk(stream, state)\n } else if ((state.state & kObjectMode) !== 0 || (chunk && chunk.length > 0)) {\n if (addToFront) {\n if ((state.state & kEndEmitted) !== 0) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT())\n else if (state.destroyed || state.errored) return false\n else addChunk(stream, state, chunk, true)\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF())\n } else if (state.destroyed || state.errored) {\n return false\n } else {\n state.state &= ~kReading\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk)\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false)\n else maybeReadMore(stream, state)\n } else {\n addChunk(stream, state, chunk, false)\n }\n }\n } else if (!addToFront) {\n state.state &= ~kReading\n maybeReadMore(stream, state)\n }\n\n // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n return !state.ended && (state.length < state.highWaterMark || state.length === 0)\n}\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync && stream.listenerCount('data') > 0) {\n // Use the guard to avoid creating `Set()` repeatedly\n // when we have multiple pipes.\n if ((state.state & kMultiAwaitDrain) !== 0) {\n state.awaitDrainWriters.clear()\n } else {\n state.awaitDrainWriters = null\n }\n state.dataEmitted = true\n stream.emit('data', chunk)\n } else {\n // Update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length\n if (addToFront) state.buffer.unshift(chunk)\n else state.buffer.push(chunk)\n if ((state.state & kNeedReadable) !== 0) emitReadable(stream)\n }\n maybeReadMore(stream, state)\n}\nReadable.prototype.isPaused = function () {\n const state = this._readableState\n return state[kPaused] === true || state.flowing === false\n}\n\n// Backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n const decoder = new StringDecoder(enc)\n this._readableState.decoder = decoder\n // If setEncoding(null), decoder.encoding equals utf8.\n this._readableState.encoding = this._readableState.decoder.encoding\n const buffer = this._readableState.buffer\n // Iterate over current buffer to convert already stored Buffers:\n let content = ''\n for (const data of buffer) {\n content += decoder.write(data)\n }\n buffer.clear()\n if (content !== '') buffer.push(content)\n this._readableState.length = content.length\n return this\n}\n\n// Don't raise the hwm > 1GB.\nconst MAX_HWM = 0x40000000\nfunction computeNewHighWaterMark(n) {\n if (n > MAX_HWM) {\n throw new ERR_OUT_OF_RANGE('size', '<= 1GiB', n)\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts.\n n--\n n |= n >>> 1\n n |= n >>> 2\n n |= n >>> 4\n n |= n >>> 8\n n |= n >>> 16\n n++\n }\n return n\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || (state.length === 0 && state.ended)) return 0\n if ((state.state & kObjectMode) !== 0) return 1\n if (NumberIsNaN(n)) {\n // Only flow one buffer at a time.\n if (state.flowing && state.length) return state.buffer.first().length\n return state.length\n }\n if (n <= state.length) return n\n return state.ended ? state.length : 0\n}\n\n// You can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n)\n // Same as parseInt(undefined, 10), however V8 7.3 performance regressed\n // in this scenario, so we are doing it manually.\n if (n === undefined) {\n n = NaN\n } else if (!NumberIsInteger(n)) {\n n = NumberParseInt(n, 10)\n }\n const state = this._readableState\n const nOrig = n\n\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n)\n if (n !== 0) state.state &= ~kEmittedReadable\n\n // If we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (\n n === 0 &&\n state.needReadable &&\n ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)\n ) {\n debug('read: emitReadable', state.length, state.ended)\n if (state.length === 0 && state.ended) endReadable(this)\n else emitReadable(this)\n return null\n }\n n = howMuchToRead(n, state)\n\n // If we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this)\n return null\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n let doRead = (state.state & kNeedReadable) !== 0\n debug('need readable', doRead)\n\n // If we currently have less than the highWaterMark, then also read some.\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true\n debug('length less than watermark', doRead)\n }\n\n // However, if we've ended, then there's no point, if we're already\n // reading, then it's unnecessary, if we're constructing we have to wait,\n // and if we're destroyed or errored, then it's not allowed,\n if (state.ended || state.reading || state.destroyed || state.errored || !state.constructed) {\n doRead = false\n debug('reading, ended or constructing', doRead)\n } else if (doRead) {\n debug('do read')\n state.state |= kReading | kSync\n // If the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.state |= kNeedReadable\n\n // Call internal read method\n try {\n this._read(state.highWaterMark)\n } catch (err) {\n errorOrDestroy(this, err)\n }\n state.state &= ~kSync\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state)\n }\n let ret\n if (n > 0) ret = fromList(n, state)\n else ret = null\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark\n n = 0\n } else {\n state.length -= n\n if (state.multiAwaitDrain) {\n state.awaitDrainWriters.clear()\n } else {\n state.awaitDrainWriters = null\n }\n }\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this)\n }\n if (ret !== null && !state.errorEmitted && !state.closeEmitted) {\n state.dataEmitted = true\n this.emit('data', ret)\n }\n return ret\n}\nfunction onEofChunk(stream, state) {\n debug('onEofChunk')\n if (state.ended) return\n if (state.decoder) {\n const chunk = state.decoder.end()\n if (chunk && chunk.length) {\n state.buffer.push(chunk)\n state.length += state.objectMode ? 1 : chunk.length\n }\n }\n state.ended = true\n if (state.sync) {\n // If we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call.\n emitReadable(stream)\n } else {\n // Emit 'readable' now to make sure it gets picked up.\n state.needReadable = false\n state.emittedReadable = true\n // We have to emit readable now that we are EOF. Modules\n // in the ecosystem (e.g. dicer) rely on this event being sync.\n emitReadable_(stream)\n }\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n const state = stream._readableState\n debug('emitReadable', state.needReadable, state.emittedReadable)\n state.needReadable = false\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing)\n state.emittedReadable = true\n process.nextTick(emitReadable_, stream)\n }\n}\nfunction emitReadable_(stream) {\n const state = stream._readableState\n debug('emitReadable_', state.destroyed, state.length, state.ended)\n if (!state.destroyed && !state.errored && (state.length || state.ended)) {\n stream.emit('readable')\n state.emittedReadable = false\n }\n\n // The stream needs another readable event if:\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark\n flow(stream)\n}\n\n// At this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore && state.constructed) {\n state.readingMore = true\n process.nextTick(maybeReadMore_, stream, state)\n }\n}\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (\n !state.reading &&\n !state.ended &&\n (state.length < state.highWaterMark || (state.flowing && state.length === 0))\n ) {\n const len = state.length\n debug('maybeReadMore read 0')\n stream.read(0)\n if (len === state.length)\n // Didn't get any data, stop spinning.\n break\n }\n state.readingMore = false\n}\n\n// Abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_read()')\n}\nReadable.prototype.pipe = function (dest, pipeOpts) {\n const src = this\n const state = this._readableState\n if (state.pipes.length === 1) {\n if (!state.multiAwaitDrain) {\n state.multiAwaitDrain = true\n state.awaitDrainWriters = new SafeSet(state.awaitDrainWriters ? [state.awaitDrainWriters] : [])\n }\n }\n state.pipes.push(dest)\n debug('pipe count=%d opts=%j', state.pipes.length, pipeOpts)\n const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr\n const endFn = doEnd ? onend : unpipe\n if (state.endEmitted) process.nextTick(endFn)\n else src.once('end', endFn)\n dest.on('unpipe', onunpipe)\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe')\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true\n cleanup()\n }\n }\n }\n function onend() {\n debug('onend')\n dest.end()\n }\n let ondrain\n let cleanedUp = false\n function cleanup() {\n debug('cleanup')\n // Cleanup event handlers once the pipe is broken.\n dest.removeListener('close', onclose)\n dest.removeListener('finish', onfinish)\n if (ondrain) {\n dest.removeListener('drain', ondrain)\n }\n dest.removeListener('error', onerror)\n dest.removeListener('unpipe', onunpipe)\n src.removeListener('end', onend)\n src.removeListener('end', unpipe)\n src.removeListener('data', ondata)\n cleanedUp = true\n\n // If the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (ondrain && state.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain()\n }\n function pause() {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if (!cleanedUp) {\n if (state.pipes.length === 1 && state.pipes[0] === dest) {\n debug('false write response, pause', 0)\n state.awaitDrainWriters = dest\n state.multiAwaitDrain = false\n } else if (state.pipes.length > 1 && state.pipes.includes(dest)) {\n debug('false write response, pause', state.awaitDrainWriters.size)\n state.awaitDrainWriters.add(dest)\n }\n src.pause()\n }\n if (!ondrain) {\n // When the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n ondrain = pipeOnDrain(src, dest)\n dest.on('drain', ondrain)\n }\n }\n src.on('data', ondata)\n function ondata(chunk) {\n debug('ondata')\n const ret = dest.write(chunk)\n debug('dest.write', ret)\n if (ret === false) {\n pause()\n }\n }\n\n // If the dest has an error, then stop piping into it.\n // However, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er)\n unpipe()\n dest.removeListener('error', onerror)\n if (dest.listenerCount('error') === 0) {\n const s = dest._writableState || dest._readableState\n if (s && !s.errorEmitted) {\n // User incorrectly emitted 'error' directly on the stream.\n errorOrDestroy(dest, er)\n } else {\n dest.emit('error', er)\n }\n }\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror)\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish)\n unpipe()\n }\n dest.once('close', onclose)\n function onfinish() {\n debug('onfinish')\n dest.removeListener('close', onclose)\n unpipe()\n }\n dest.once('finish', onfinish)\n function unpipe() {\n debug('unpipe')\n src.unpipe(dest)\n }\n\n // Tell the dest that it's being piped to.\n dest.emit('pipe', src)\n\n // Start the flow if it hasn't been started already.\n\n if (dest.writableNeedDrain === true) {\n pause()\n } else if (!state.flowing) {\n debug('pipe resume')\n src.resume()\n }\n return dest\n}\nfunction pipeOnDrain(src, dest) {\n return function pipeOnDrainFunctionResult() {\n const state = src._readableState\n\n // `ondrain` will call directly,\n // `this` maybe not a reference to dest,\n // so we use the real dest here.\n if (state.awaitDrainWriters === dest) {\n debug('pipeOnDrain', 1)\n state.awaitDrainWriters = null\n } else if (state.multiAwaitDrain) {\n debug('pipeOnDrain', state.awaitDrainWriters.size)\n state.awaitDrainWriters.delete(dest)\n }\n if ((!state.awaitDrainWriters || state.awaitDrainWriters.size === 0) && src.listenerCount('data')) {\n src.resume()\n }\n }\n}\nReadable.prototype.unpipe = function (dest) {\n const state = this._readableState\n const unpipeInfo = {\n hasUnpiped: false\n }\n\n // If we're not piping anywhere, then do nothing.\n if (state.pipes.length === 0) return this\n if (!dest) {\n // remove all.\n const dests = state.pipes\n state.pipes = []\n this.pause()\n for (let i = 0; i < dests.length; i++)\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n })\n return this\n }\n\n // Try to find the right one.\n const index = ArrayPrototypeIndexOf(state.pipes, dest)\n if (index === -1) return this\n state.pipes.splice(index, 1)\n if (state.pipes.length === 0) this.pause()\n dest.emit('unpipe', this, unpipeInfo)\n return this\n}\n\n// Set up data events if they are asked for\n// Ensure readable listeners eventually get something.\nReadable.prototype.on = function (ev, fn) {\n const res = Stream.prototype.on.call(this, ev, fn)\n const state = this._readableState\n if (ev === 'data') {\n // Update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0\n\n // Try start flowing on next tick if stream isn't explicitly paused.\n if (state.flowing !== false) this.resume()\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true\n state.flowing = false\n state.emittedReadable = false\n debug('on readable', state.length, state.reading)\n if (state.length) {\n emitReadable(this)\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this)\n }\n }\n }\n return res\n}\nReadable.prototype.addListener = Readable.prototype.on\nReadable.prototype.removeListener = function (ev, fn) {\n const res = Stream.prototype.removeListener.call(this, ev, fn)\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this)\n }\n return res\n}\nReadable.prototype.off = Readable.prototype.removeListener\nReadable.prototype.removeAllListeners = function (ev) {\n const res = Stream.prototype.removeAllListeners.apply(this, arguments)\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this)\n }\n return res\n}\nfunction updateReadableListening(self) {\n const state = self._readableState\n state.readableListening = self.listenerCount('readable') > 0\n if (state.resumeScheduled && state[kPaused] === false) {\n // Flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true\n\n // Crude way to check if we should resume.\n } else if (self.listenerCount('data') > 0) {\n self.resume()\n } else if (!state.readableListening) {\n state.flowing = null\n }\n}\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0')\n self.read(0)\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n const state = this._readableState\n if (!state.flowing) {\n debug('resume')\n // We flow only if there is no one listening\n // for readable, but we still have to call\n // resume().\n state.flowing = !state.readableListening\n resume(this, state)\n }\n state[kPaused] = false\n return this\n}\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true\n process.nextTick(resume_, stream, state)\n }\n}\nfunction resume_(stream, state) {\n debug('resume', state.reading)\n if (!state.reading) {\n stream.read(0)\n }\n state.resumeScheduled = false\n stream.emit('resume')\n flow(stream)\n if (state.flowing && !state.reading) stream.read(0)\n}\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing)\n if (this._readableState.flowing !== false) {\n debug('pause')\n this._readableState.flowing = false\n this.emit('pause')\n }\n this._readableState[kPaused] = true\n return this\n}\nfunction flow(stream) {\n const state = stream._readableState\n debug('flow', state.flowing)\n while (state.flowing && stream.read() !== null);\n}\n\n// Wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n let paused = false\n\n // TODO (ronag): Should this.destroy(err) emit\n // 'error' on the wrapped stream? Would require\n // a static factory method, e.g. Readable.wrap(stream).\n\n stream.on('data', (chunk) => {\n if (!this.push(chunk) && stream.pause) {\n paused = true\n stream.pause()\n }\n })\n stream.on('end', () => {\n this.push(null)\n })\n stream.on('error', (err) => {\n errorOrDestroy(this, err)\n })\n stream.on('close', () => {\n this.destroy()\n })\n stream.on('destroy', () => {\n this.destroy()\n })\n this._read = () => {\n if (paused && stream.resume) {\n paused = false\n stream.resume()\n }\n }\n\n // Proxy all the other methods. Important when wrapping filters and duplexes.\n const streamKeys = ObjectKeys(stream)\n for (let j = 1; j < streamKeys.length; j++) {\n const i = streamKeys[j]\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = stream[i].bind(stream)\n }\n }\n return this\n}\nReadable.prototype[SymbolAsyncIterator] = function () {\n return streamToAsyncIterator(this)\n}\nReadable.prototype.iterator = function (options) {\n if (options !== undefined) {\n validateObject(options, 'options')\n }\n return streamToAsyncIterator(this, options)\n}\nfunction streamToAsyncIterator(stream, options) {\n if (typeof stream.read !== 'function') {\n stream = Readable.wrap(stream, {\n objectMode: true\n })\n }\n const iter = createAsyncIterator(stream, options)\n iter.stream = stream\n return iter\n}\nasync function* createAsyncIterator(stream, options) {\n let callback = nop\n function next(resolve) {\n if (this === stream) {\n callback()\n callback = nop\n } else {\n callback = resolve\n }\n }\n stream.on('readable', next)\n let error\n const cleanup = eos(\n stream,\n {\n writable: false\n },\n (err) => {\n error = err ? aggregateTwoErrors(error, err) : null\n callback()\n callback = nop\n }\n )\n try {\n while (true) {\n const chunk = stream.destroyed ? null : stream.read()\n if (chunk !== null) {\n yield chunk\n } else if (error) {\n throw error\n } else if (error === null) {\n return\n } else {\n await new Promise(next)\n }\n }\n } catch (err) {\n error = aggregateTwoErrors(error, err)\n throw error\n } finally {\n if (\n (error || (options === null || options === undefined ? undefined : options.destroyOnReturn) !== false) &&\n (error === undefined || stream._readableState.autoDestroy)\n ) {\n destroyImpl.destroyer(stream, null)\n } else {\n stream.off('readable', next)\n cleanup()\n }\n }\n}\n\n// Making it explicit these properties are not enumerable\n// because otherwise some prototype manipulation in\n// userland will fail.\nObjectDefineProperties(Readable.prototype, {\n readable: {\n __proto__: null,\n get() {\n const r = this._readableState\n // r.readable === false means that this is part of a Duplex stream\n // where the readable side was disabled upon construction.\n // Compat. The user might manually disable readable side through\n // deprecated setter.\n return !!r && r.readable !== false && !r.destroyed && !r.errorEmitted && !r.endEmitted\n },\n set(val) {\n // Backwards compat.\n if (this._readableState) {\n this._readableState.readable = !!val\n }\n }\n },\n readableDidRead: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState.dataEmitted\n }\n },\n readableAborted: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return !!(\n this._readableState.readable !== false &&\n (this._readableState.destroyed || this._readableState.errored) &&\n !this._readableState.endEmitted\n )\n }\n },\n readableHighWaterMark: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark\n }\n },\n readableBuffer: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState && this._readableState.buffer\n }\n },\n readableFlowing: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState.flowing\n },\n set: function (state) {\n if (this._readableState) {\n this._readableState.flowing = state\n }\n }\n },\n readableLength: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState.length\n }\n },\n readableObjectMode: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.objectMode : false\n }\n },\n readableEncoding: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.encoding : null\n }\n },\n errored: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.errored : null\n }\n },\n closed: {\n __proto__: null,\n get() {\n return this._readableState ? this._readableState.closed : false\n }\n },\n destroyed: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.destroyed : false\n },\n set(value) {\n // We ignore the value if the stream\n // has not been initialized yet.\n if (!this._readableState) {\n return\n }\n\n // Backward compatibility, the user is explicitly\n // managing destroyed.\n this._readableState.destroyed = value\n }\n },\n readableEnded: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.endEmitted : false\n }\n }\n})\nObjectDefineProperties(ReadableState.prototype, {\n // Legacy getter for `pipesCount`.\n pipesCount: {\n __proto__: null,\n get() {\n return this.pipes.length\n }\n },\n // Legacy property for `paused`.\n paused: {\n __proto__: null,\n get() {\n return this[kPaused] !== false\n },\n set(value) {\n this[kPaused] = !!value\n }\n }\n})\n\n// Exposed for testing purposes only.\nReadable._fromList = fromList\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered.\n if (state.length === 0) return null\n let ret\n if (state.objectMode) ret = state.buffer.shift()\n else if (!n || n >= state.length) {\n // Read it all, truncate the list.\n if (state.decoder) ret = state.buffer.join('')\n else if (state.buffer.length === 1) ret = state.buffer.first()\n else ret = state.buffer.concat(state.length)\n state.buffer.clear()\n } else {\n // read part of list.\n ret = state.buffer.consume(n, state.decoder)\n }\n return ret\n}\nfunction endReadable(stream) {\n const state = stream._readableState\n debug('endReadable', state.endEmitted)\n if (!state.endEmitted) {\n state.ended = true\n process.nextTick(endReadableNT, state, stream)\n }\n}\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length)\n\n // Check that we didn't get one last unshift.\n if (!state.errored && !state.closeEmitted && !state.endEmitted && state.length === 0) {\n state.endEmitted = true\n stream.emit('end')\n if (stream.writable && stream.allowHalfOpen === false) {\n process.nextTick(endWritableNT, stream)\n } else if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well.\n const wState = stream._writableState\n const autoDestroy =\n !wState ||\n (wState.autoDestroy &&\n // We don't expect the writable to ever 'finish'\n // if writable is explicitly set to false.\n (wState.finished || wState.writable === false))\n if (autoDestroy) {\n stream.destroy()\n }\n }\n }\n}\nfunction endWritableNT(stream) {\n const writable = stream.writable && !stream.writableEnded && !stream.destroyed\n if (writable) {\n stream.end()\n }\n}\nReadable.from = function (iterable, opts) {\n return from(Readable, iterable, opts)\n}\nlet webStreamsAdapters\n\n// Lazy to avoid circular references\nfunction lazyWebStreams() {\n if (webStreamsAdapters === undefined) webStreamsAdapters = {}\n return webStreamsAdapters\n}\nReadable.fromWeb = function (readableStream, options) {\n return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options)\n}\nReadable.toWeb = function (streamReadable, options) {\n return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options)\n}\nReadable.wrap = function (src, options) {\n var _ref, _src$readableObjectMo\n return new Readable({\n objectMode:\n (_ref =\n (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== undefined\n ? _src$readableObjectMo\n : src.objectMode) !== null && _ref !== undefined\n ? _ref\n : true,\n ...options,\n destroy(err, callback) {\n destroyImpl.destroyer(src, err)\n callback(err)\n }\n }).wrap(src)\n}\n","'use strict'\n\nconst { MathFloor, NumberIsInteger } = require('../../ours/primordials')\nconst { validateInteger } = require('../validators')\nconst { ERR_INVALID_ARG_VALUE } = require('../../ours/errors').codes\nlet defaultHighWaterMarkBytes = 16 * 1024\nlet defaultHighWaterMarkObjectMode = 16\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null\n}\nfunction getDefaultHighWaterMark(objectMode) {\n return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes\n}\nfunction setDefaultHighWaterMark(objectMode, value) {\n validateInteger(value, 'value', 0)\n if (objectMode) {\n defaultHighWaterMarkObjectMode = value\n } else {\n defaultHighWaterMarkBytes = value\n }\n}\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n const hwm = highWaterMarkFrom(options, isDuplex, duplexKey)\n if (hwm != null) {\n if (!NumberIsInteger(hwm) || hwm < 0) {\n const name = isDuplex ? `options.${duplexKey}` : 'options.highWaterMark'\n throw new ERR_INVALID_ARG_VALUE(name, hwm)\n }\n return MathFloor(hwm)\n }\n\n // Default value\n return getDefaultHighWaterMark(state.objectMode)\n}\nmodule.exports = {\n getHighWaterMark,\n getDefaultHighWaterMark,\n setDefaultHighWaterMark\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict'\n\nconst { ObjectSetPrototypeOf, Symbol } = require('../../ours/primordials')\nmodule.exports = Transform\nconst { ERR_METHOD_NOT_IMPLEMENTED } = require('../../ours/errors').codes\nconst Duplex = require('./duplex')\nconst { getHighWaterMark } = require('./state')\nObjectSetPrototypeOf(Transform.prototype, Duplex.prototype)\nObjectSetPrototypeOf(Transform, Duplex)\nconst kCallback = Symbol('kCallback')\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options)\n\n // TODO (ronag): This should preferably always be\n // applied but would be semver-major. Or even better;\n // make Transform a Readable with the Writable interface.\n const readableHighWaterMark = options ? getHighWaterMark(this, options, 'readableHighWaterMark', true) : null\n if (readableHighWaterMark === 0) {\n // A Duplex will buffer both on the writable and readable side while\n // a Transform just wants to buffer hwm number of elements. To avoid\n // buffering twice we disable buffering on the writable side.\n options = {\n ...options,\n highWaterMark: null,\n readableHighWaterMark,\n // TODO (ronag): 0 is not optimal since we have\n // a \"bug\" where we check needDrain before calling _write and not after.\n // Refs: https://github.com/nodejs/node/pull/32887\n // Refs: https://github.com/nodejs/node/pull/35941\n writableHighWaterMark: options.writableHighWaterMark || 0\n }\n }\n Duplex.call(this, options)\n\n // We have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false\n this[kCallback] = null\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform\n if (typeof options.flush === 'function') this._flush = options.flush\n }\n\n // When the writable side finishes, then flush out anything remaining.\n // Backwards compat. Some Transform streams incorrectly implement _final\n // instead of or in addition to _flush. By using 'prefinish' instead of\n // implementing _final we continue supporting this unfortunate use case.\n this.on('prefinish', prefinish)\n}\nfunction final(cb) {\n if (typeof this._flush === 'function' && !this.destroyed) {\n this._flush((er, data) => {\n if (er) {\n if (cb) {\n cb(er)\n } else {\n this.destroy(er)\n }\n return\n }\n if (data != null) {\n this.push(data)\n }\n this.push(null)\n if (cb) {\n cb()\n }\n })\n } else {\n this.push(null)\n if (cb) {\n cb()\n }\n }\n}\nfunction prefinish() {\n if (this._final !== final) {\n final.call(this)\n }\n}\nTransform.prototype._final = final\nTransform.prototype._transform = function (chunk, encoding, callback) {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_transform()')\n}\nTransform.prototype._write = function (chunk, encoding, callback) {\n const rState = this._readableState\n const wState = this._writableState\n const length = rState.length\n this._transform(chunk, encoding, (err, val) => {\n if (err) {\n callback(err)\n return\n }\n if (val != null) {\n this.push(val)\n }\n if (\n wState.ended ||\n // Backwards compat.\n length === rState.length ||\n // Backwards compat.\n rState.length < rState.highWaterMark\n ) {\n callback()\n } else {\n this[kCallback] = callback\n }\n })\n}\nTransform.prototype._read = function () {\n if (this[kCallback]) {\n const callback = this[kCallback]\n this[kCallback] = null\n callback()\n }\n}\n","'use strict'\n\nconst { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require('../../ours/primordials')\n\n// We need to use SymbolFor to make these globally available\n// for interopt with readable-stream, i.e. readable-stream\n// and node core needs to be able to read/write private state\n// from each other for proper interoperability.\nconst kIsDestroyed = SymbolFor('nodejs.stream.destroyed')\nconst kIsErrored = SymbolFor('nodejs.stream.errored')\nconst kIsReadable = SymbolFor('nodejs.stream.readable')\nconst kIsWritable = SymbolFor('nodejs.stream.writable')\nconst kIsDisturbed = SymbolFor('nodejs.stream.disturbed')\nconst kIsClosedPromise = SymbolFor('nodejs.webstream.isClosedPromise')\nconst kControllerErrorFunction = SymbolFor('nodejs.webstream.controllerErrorFunction')\nfunction isReadableNodeStream(obj, strict = false) {\n var _obj$_readableState\n return !!(\n (\n obj &&\n typeof obj.pipe === 'function' &&\n typeof obj.on === 'function' &&\n (!strict || (typeof obj.pause === 'function' && typeof obj.resume === 'function')) &&\n (!obj._writableState ||\n ((_obj$_readableState = obj._readableState) === null || _obj$_readableState === undefined\n ? undefined\n : _obj$_readableState.readable) !== false) &&\n // Duplex\n (!obj._writableState || obj._readableState)\n ) // Writable has .pipe.\n )\n}\n\nfunction isWritableNodeStream(obj) {\n var _obj$_writableState\n return !!(\n (\n obj &&\n typeof obj.write === 'function' &&\n typeof obj.on === 'function' &&\n (!obj._readableState ||\n ((_obj$_writableState = obj._writableState) === null || _obj$_writableState === undefined\n ? undefined\n : _obj$_writableState.writable) !== false)\n ) // Duplex\n )\n}\n\nfunction isDuplexNodeStream(obj) {\n return !!(\n obj &&\n typeof obj.pipe === 'function' &&\n obj._readableState &&\n typeof obj.on === 'function' &&\n typeof obj.write === 'function'\n )\n}\nfunction isNodeStream(obj) {\n return (\n obj &&\n (obj._readableState ||\n obj._writableState ||\n (typeof obj.write === 'function' && typeof obj.on === 'function') ||\n (typeof obj.pipe === 'function' && typeof obj.on === 'function'))\n )\n}\nfunction isReadableStream(obj) {\n return !!(\n obj &&\n !isNodeStream(obj) &&\n typeof obj.pipeThrough === 'function' &&\n typeof obj.getReader === 'function' &&\n typeof obj.cancel === 'function'\n )\n}\nfunction isWritableStream(obj) {\n return !!(obj && !isNodeStream(obj) && typeof obj.getWriter === 'function' && typeof obj.abort === 'function')\n}\nfunction isTransformStream(obj) {\n return !!(obj && !isNodeStream(obj) && typeof obj.readable === 'object' && typeof obj.writable === 'object')\n}\nfunction isWebStream(obj) {\n return isReadableStream(obj) || isWritableStream(obj) || isTransformStream(obj)\n}\nfunction isIterable(obj, isAsync) {\n if (obj == null) return false\n if (isAsync === true) return typeof obj[SymbolAsyncIterator] === 'function'\n if (isAsync === false) return typeof obj[SymbolIterator] === 'function'\n return typeof obj[SymbolAsyncIterator] === 'function' || typeof obj[SymbolIterator] === 'function'\n}\nfunction isDestroyed(stream) {\n if (!isNodeStream(stream)) return null\n const wState = stream._writableState\n const rState = stream._readableState\n const state = wState || rState\n return !!(stream.destroyed || stream[kIsDestroyed] || (state !== null && state !== undefined && state.destroyed))\n}\n\n// Have been end():d.\nfunction isWritableEnded(stream) {\n if (!isWritableNodeStream(stream)) return null\n if (stream.writableEnded === true) return true\n const wState = stream._writableState\n if (wState !== null && wState !== undefined && wState.errored) return false\n if (typeof (wState === null || wState === undefined ? undefined : wState.ended) !== 'boolean') return null\n return wState.ended\n}\n\n// Have emitted 'finish'.\nfunction isWritableFinished(stream, strict) {\n if (!isWritableNodeStream(stream)) return null\n if (stream.writableFinished === true) return true\n const wState = stream._writableState\n if (wState !== null && wState !== undefined && wState.errored) return false\n if (typeof (wState === null || wState === undefined ? undefined : wState.finished) !== 'boolean') return null\n return !!(wState.finished || (strict === false && wState.ended === true && wState.length === 0))\n}\n\n// Have been push(null):d.\nfunction isReadableEnded(stream) {\n if (!isReadableNodeStream(stream)) return null\n if (stream.readableEnded === true) return true\n const rState = stream._readableState\n if (!rState || rState.errored) return false\n if (typeof (rState === null || rState === undefined ? undefined : rState.ended) !== 'boolean') return null\n return rState.ended\n}\n\n// Have emitted 'end'.\nfunction isReadableFinished(stream, strict) {\n if (!isReadableNodeStream(stream)) return null\n const rState = stream._readableState\n if (rState !== null && rState !== undefined && rState.errored) return false\n if (typeof (rState === null || rState === undefined ? undefined : rState.endEmitted) !== 'boolean') return null\n return !!(rState.endEmitted || (strict === false && rState.ended === true && rState.length === 0))\n}\nfunction isReadable(stream) {\n if (stream && stream[kIsReadable] != null) return stream[kIsReadable]\n if (typeof (stream === null || stream === undefined ? undefined : stream.readable) !== 'boolean') return null\n if (isDestroyed(stream)) return false\n return isReadableNodeStream(stream) && stream.readable && !isReadableFinished(stream)\n}\nfunction isWritable(stream) {\n if (stream && stream[kIsWritable] != null) return stream[kIsWritable]\n if (typeof (stream === null || stream === undefined ? undefined : stream.writable) !== 'boolean') return null\n if (isDestroyed(stream)) return false\n return isWritableNodeStream(stream) && stream.writable && !isWritableEnded(stream)\n}\nfunction isFinished(stream, opts) {\n if (!isNodeStream(stream)) {\n return null\n }\n if (isDestroyed(stream)) {\n return true\n }\n if ((opts === null || opts === undefined ? undefined : opts.readable) !== false && isReadable(stream)) {\n return false\n }\n if ((opts === null || opts === undefined ? undefined : opts.writable) !== false && isWritable(stream)) {\n return false\n }\n return true\n}\nfunction isWritableErrored(stream) {\n var _stream$_writableStat, _stream$_writableStat2\n if (!isNodeStream(stream)) {\n return null\n }\n if (stream.writableErrored) {\n return stream.writableErrored\n }\n return (_stream$_writableStat =\n (_stream$_writableStat2 = stream._writableState) === null || _stream$_writableStat2 === undefined\n ? undefined\n : _stream$_writableStat2.errored) !== null && _stream$_writableStat !== undefined\n ? _stream$_writableStat\n : null\n}\nfunction isReadableErrored(stream) {\n var _stream$_readableStat, _stream$_readableStat2\n if (!isNodeStream(stream)) {\n return null\n }\n if (stream.readableErrored) {\n return stream.readableErrored\n }\n return (_stream$_readableStat =\n (_stream$_readableStat2 = stream._readableState) === null || _stream$_readableStat2 === undefined\n ? undefined\n : _stream$_readableStat2.errored) !== null && _stream$_readableStat !== undefined\n ? _stream$_readableStat\n : null\n}\nfunction isClosed(stream) {\n if (!isNodeStream(stream)) {\n return null\n }\n if (typeof stream.closed === 'boolean') {\n return stream.closed\n }\n const wState = stream._writableState\n const rState = stream._readableState\n if (\n typeof (wState === null || wState === undefined ? undefined : wState.closed) === 'boolean' ||\n typeof (rState === null || rState === undefined ? undefined : rState.closed) === 'boolean'\n ) {\n return (\n (wState === null || wState === undefined ? undefined : wState.closed) ||\n (rState === null || rState === undefined ? undefined : rState.closed)\n )\n }\n if (typeof stream._closed === 'boolean' && isOutgoingMessage(stream)) {\n return stream._closed\n }\n return null\n}\nfunction isOutgoingMessage(stream) {\n return (\n typeof stream._closed === 'boolean' &&\n typeof stream._defaultKeepAlive === 'boolean' &&\n typeof stream._removedConnection === 'boolean' &&\n typeof stream._removedContLen === 'boolean'\n )\n}\nfunction isServerResponse(stream) {\n return typeof stream._sent100 === 'boolean' && isOutgoingMessage(stream)\n}\nfunction isServerRequest(stream) {\n var _stream$req\n return (\n typeof stream._consuming === 'boolean' &&\n typeof stream._dumped === 'boolean' &&\n ((_stream$req = stream.req) === null || _stream$req === undefined ? undefined : _stream$req.upgradeOrConnect) ===\n undefined\n )\n}\nfunction willEmitClose(stream) {\n if (!isNodeStream(stream)) return null\n const wState = stream._writableState\n const rState = stream._readableState\n const state = wState || rState\n return (\n (!state && isServerResponse(stream)) || !!(state && state.autoDestroy && state.emitClose && state.closed === false)\n )\n}\nfunction isDisturbed(stream) {\n var _stream$kIsDisturbed\n return !!(\n stream &&\n ((_stream$kIsDisturbed = stream[kIsDisturbed]) !== null && _stream$kIsDisturbed !== undefined\n ? _stream$kIsDisturbed\n : stream.readableDidRead || stream.readableAborted)\n )\n}\nfunction isErrored(stream) {\n var _ref,\n _ref2,\n _ref3,\n _ref4,\n _ref5,\n _stream$kIsErrored,\n _stream$_readableStat3,\n _stream$_writableStat3,\n _stream$_readableStat4,\n _stream$_writableStat4\n return !!(\n stream &&\n ((_ref =\n (_ref2 =\n (_ref3 =\n (_ref4 =\n (_ref5 =\n (_stream$kIsErrored = stream[kIsErrored]) !== null && _stream$kIsErrored !== undefined\n ? _stream$kIsErrored\n : stream.readableErrored) !== null && _ref5 !== undefined\n ? _ref5\n : stream.writableErrored) !== null && _ref4 !== undefined\n ? _ref4\n : (_stream$_readableStat3 = stream._readableState) === null || _stream$_readableStat3 === undefined\n ? undefined\n : _stream$_readableStat3.errorEmitted) !== null && _ref3 !== undefined\n ? _ref3\n : (_stream$_writableStat3 = stream._writableState) === null || _stream$_writableStat3 === undefined\n ? undefined\n : _stream$_writableStat3.errorEmitted) !== null && _ref2 !== undefined\n ? _ref2\n : (_stream$_readableStat4 = stream._readableState) === null || _stream$_readableStat4 === undefined\n ? undefined\n : _stream$_readableStat4.errored) !== null && _ref !== undefined\n ? _ref\n : (_stream$_writableStat4 = stream._writableState) === null || _stream$_writableStat4 === undefined\n ? undefined\n : _stream$_writableStat4.errored)\n )\n}\nmodule.exports = {\n isDestroyed,\n kIsDestroyed,\n isDisturbed,\n kIsDisturbed,\n isErrored,\n kIsErrored,\n isReadable,\n kIsReadable,\n kIsClosedPromise,\n kControllerErrorFunction,\n kIsWritable,\n isClosed,\n isDuplexNodeStream,\n isFinished,\n isIterable,\n isReadableNodeStream,\n isReadableStream,\n isReadableEnded,\n isReadableFinished,\n isReadableErrored,\n isNodeStream,\n isWebStream,\n isWritable,\n isWritableNodeStream,\n isWritableStream,\n isWritableEnded,\n isWritableFinished,\n isWritableErrored,\n isServerRequest,\n isServerResponse,\n willEmitClose,\n isTransformStream\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n;('use strict')\nconst {\n ArrayPrototypeSlice,\n Error,\n FunctionPrototypeSymbolHasInstance,\n ObjectDefineProperty,\n ObjectDefineProperties,\n ObjectSetPrototypeOf,\n StringPrototypeToLowerCase,\n Symbol,\n SymbolHasInstance\n} = require('../../ours/primordials')\nmodule.exports = Writable\nWritable.WritableState = WritableState\nconst { EventEmitter: EE } = require('events')\nconst Stream = require('./legacy').Stream\nconst { Buffer } = require('buffer')\nconst destroyImpl = require('./destroy')\nconst { addAbortSignal } = require('./add-abort-signal')\nconst { getHighWaterMark, getDefaultHighWaterMark } = require('./state')\nconst {\n ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED,\n ERR_STREAM_ALREADY_FINISHED,\n ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING\n} = require('../../ours/errors').codes\nconst { errorOrDestroy } = destroyImpl\nObjectSetPrototypeOf(Writable.prototype, Stream.prototype)\nObjectSetPrototypeOf(Writable, Stream)\nfunction nop() {}\nconst kOnFinished = Symbol('kOnFinished')\nfunction WritableState(options, stream, isDuplex) {\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof require('./duplex')\n\n // Object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!(options && options.objectMode)\n if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode)\n\n // The point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write().\n this.highWaterMark = options\n ? getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex)\n : getDefaultHighWaterMark(false)\n\n // if _final has been called.\n this.finalCalled = false\n\n // drain event flag.\n this.needDrain = false\n // At the start of calling end()\n this.ending = false\n // When end() has been called, and returned.\n this.ended = false\n // When 'finish' is emitted.\n this.finished = false\n\n // Has it been destroyed\n this.destroyed = false\n\n // Should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n const noDecode = !!(options && options.decodeStrings === false)\n this.decodeStrings = !noDecode\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = (options && options.defaultEncoding) || 'utf8'\n\n // Not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0\n\n // A flag to see when we're in the middle of a write.\n this.writing = false\n\n // When true all writes will be buffered until .uncork() call.\n this.corked = 0\n\n // A flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true\n\n // A flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false\n\n // The callback that's passed to _write(chunk, cb).\n this.onwrite = onwrite.bind(undefined, stream)\n\n // The callback that the user supplies to write(chunk, encoding, cb).\n this.writecb = null\n\n // The amount that is being written when _write is called.\n this.writelen = 0\n\n // Storage for data passed to the afterWrite() callback in case of\n // synchronous _write() completion.\n this.afterWriteTickInfo = null\n resetBuffer(this)\n\n // Number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted.\n this.pendingcb = 0\n\n // Stream is still being constructed and cannot be\n // destroyed until construction finished or failed.\n // Async construction is opt in, therefore we start as\n // constructed.\n this.constructed = true\n\n // Emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams.\n this.prefinished = false\n\n // True if the error was already emitted and should not be thrown again.\n this.errorEmitted = false\n\n // Should close be emitted on destroy. Defaults to true.\n this.emitClose = !options || options.emitClose !== false\n\n // Should .destroy() be called after 'finish' (and potentially 'end').\n this.autoDestroy = !options || options.autoDestroy !== false\n\n // Indicates whether the stream has errored. When true all write() calls\n // should return false. This is needed since when autoDestroy\n // is disabled we need a way to tell whether the stream has failed.\n this.errored = null\n\n // Indicates whether the stream has finished destroying.\n this.closed = false\n\n // True if close has been emitted or would have been emitted\n // depending on emitClose.\n this.closeEmitted = false\n this[kOnFinished] = []\n}\nfunction resetBuffer(state) {\n state.buffered = []\n state.bufferedIndex = 0\n state.allBuffers = true\n state.allNoop = true\n}\nWritableState.prototype.getBuffer = function getBuffer() {\n return ArrayPrototypeSlice(this.buffered, this.bufferedIndex)\n}\nObjectDefineProperty(WritableState.prototype, 'bufferedRequestCount', {\n __proto__: null,\n get() {\n return this.buffered.length - this.bufferedIndex\n }\n})\nfunction Writable(options) {\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5.\n const isDuplex = this instanceof require('./duplex')\n if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this)) return new Writable(options)\n this._writableState = new WritableState(options, this, isDuplex)\n if (options) {\n if (typeof options.write === 'function') this._write = options.write\n if (typeof options.writev === 'function') this._writev = options.writev\n if (typeof options.destroy === 'function') this._destroy = options.destroy\n if (typeof options.final === 'function') this._final = options.final\n if (typeof options.construct === 'function') this._construct = options.construct\n if (options.signal) addAbortSignal(options.signal, this)\n }\n Stream.call(this, options)\n destroyImpl.construct(this, () => {\n const state = this._writableState\n if (!state.writing) {\n clearBuffer(this, state)\n }\n finishMaybe(this, state)\n })\n}\nObjectDefineProperty(Writable, SymbolHasInstance, {\n __proto__: null,\n value: function (object) {\n if (FunctionPrototypeSymbolHasInstance(this, object)) return true\n if (this !== Writable) return false\n return object && object._writableState instanceof WritableState\n }\n})\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE())\n}\nfunction _write(stream, chunk, encoding, cb) {\n const state = stream._writableState\n if (typeof encoding === 'function') {\n cb = encoding\n encoding = state.defaultEncoding\n } else {\n if (!encoding) encoding = state.defaultEncoding\n else if (encoding !== 'buffer' && !Buffer.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding)\n if (typeof cb !== 'function') cb = nop\n }\n if (chunk === null) {\n throw new ERR_STREAM_NULL_VALUES()\n } else if (!state.objectMode) {\n if (typeof chunk === 'string') {\n if (state.decodeStrings !== false) {\n chunk = Buffer.from(chunk, encoding)\n encoding = 'buffer'\n }\n } else if (chunk instanceof Buffer) {\n encoding = 'buffer'\n } else if (Stream._isUint8Array(chunk)) {\n chunk = Stream._uint8ArrayToBuffer(chunk)\n encoding = 'buffer'\n } else {\n throw new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk)\n }\n }\n let err\n if (state.ending) {\n err = new ERR_STREAM_WRITE_AFTER_END()\n } else if (state.destroyed) {\n err = new ERR_STREAM_DESTROYED('write')\n }\n if (err) {\n process.nextTick(cb, err)\n errorOrDestroy(stream, err, true)\n return err\n }\n state.pendingcb++\n return writeOrBuffer(stream, state, chunk, encoding, cb)\n}\nWritable.prototype.write = function (chunk, encoding, cb) {\n return _write(this, chunk, encoding, cb) === true\n}\nWritable.prototype.cork = function () {\n this._writableState.corked++\n}\nWritable.prototype.uncork = function () {\n const state = this._writableState\n if (state.corked) {\n state.corked--\n if (!state.writing) clearBuffer(this, state)\n }\n}\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = StringPrototypeToLowerCase(encoding)\n if (!Buffer.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding)\n this._writableState.defaultEncoding = encoding\n return this\n}\n\n// If we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, callback) {\n const len = state.objectMode ? 1 : chunk.length\n state.length += len\n\n // stream._write resets state.length\n const ret = state.length < state.highWaterMark\n // We must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true\n if (state.writing || state.corked || state.errored || !state.constructed) {\n state.buffered.push({\n chunk,\n encoding,\n callback\n })\n if (state.allBuffers && encoding !== 'buffer') {\n state.allBuffers = false\n }\n if (state.allNoop && callback !== nop) {\n state.allNoop = false\n }\n } else {\n state.writelen = len\n state.writecb = callback\n state.writing = true\n state.sync = true\n stream._write(chunk, encoding, state.onwrite)\n state.sync = false\n }\n\n // Return false if errored or destroyed in order to break\n // any synchronous while(stream.write(data)) loops.\n return ret && !state.errored && !state.destroyed\n}\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len\n state.writecb = cb\n state.writing = true\n state.sync = true\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'))\n else if (writev) stream._writev(chunk, state.onwrite)\n else stream._write(chunk, encoding, state.onwrite)\n state.sync = false\n}\nfunction onwriteError(stream, state, er, cb) {\n --state.pendingcb\n cb(er)\n // Ensure callbacks are invoked even when autoDestroy is\n // not enabled. Passing `er` here doesn't make sense since\n // it's related to one specific write, not to the buffered\n // writes.\n errorBuffer(state)\n // This can emit error, but error must always follow cb.\n errorOrDestroy(stream, er)\n}\nfunction onwrite(stream, er) {\n const state = stream._writableState\n const sync = state.sync\n const cb = state.writecb\n if (typeof cb !== 'function') {\n errorOrDestroy(stream, new ERR_MULTIPLE_CALLBACK())\n return\n }\n state.writing = false\n state.writecb = null\n state.length -= state.writelen\n state.writelen = 0\n if (er) {\n // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n er.stack // eslint-disable-line no-unused-expressions\n\n if (!state.errored) {\n state.errored = er\n }\n\n // In case of duplex streams we need to notify the readable side of the\n // error.\n if (stream._readableState && !stream._readableState.errored) {\n stream._readableState.errored = er\n }\n if (sync) {\n process.nextTick(onwriteError, stream, state, er, cb)\n } else {\n onwriteError(stream, state, er, cb)\n }\n } else {\n if (state.buffered.length > state.bufferedIndex) {\n clearBuffer(stream, state)\n }\n if (sync) {\n // It is a common case that the callback passed to .write() is always\n // the same. In that case, we do not schedule a new nextTick(), but\n // rather just increase a counter, to improve performance and avoid\n // memory allocations.\n if (state.afterWriteTickInfo !== null && state.afterWriteTickInfo.cb === cb) {\n state.afterWriteTickInfo.count++\n } else {\n state.afterWriteTickInfo = {\n count: 1,\n cb,\n stream,\n state\n }\n process.nextTick(afterWriteTick, state.afterWriteTickInfo)\n }\n } else {\n afterWrite(stream, state, 1, cb)\n }\n }\n}\nfunction afterWriteTick({ stream, state, count, cb }) {\n state.afterWriteTickInfo = null\n return afterWrite(stream, state, count, cb)\n}\nfunction afterWrite(stream, state, count, cb) {\n const needDrain = !state.ending && !stream.destroyed && state.length === 0 && state.needDrain\n if (needDrain) {\n state.needDrain = false\n stream.emit('drain')\n }\n while (count-- > 0) {\n state.pendingcb--\n cb()\n }\n if (state.destroyed) {\n errorBuffer(state)\n }\n finishMaybe(stream, state)\n}\n\n// If there's something in the buffer waiting, then invoke callbacks.\nfunction errorBuffer(state) {\n if (state.writing) {\n return\n }\n for (let n = state.bufferedIndex; n < state.buffered.length; ++n) {\n var _state$errored\n const { chunk, callback } = state.buffered[n]\n const len = state.objectMode ? 1 : chunk.length\n state.length -= len\n callback(\n (_state$errored = state.errored) !== null && _state$errored !== undefined\n ? _state$errored\n : new ERR_STREAM_DESTROYED('write')\n )\n }\n const onfinishCallbacks = state[kOnFinished].splice(0)\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n var _state$errored2\n onfinishCallbacks[i](\n (_state$errored2 = state.errored) !== null && _state$errored2 !== undefined\n ? _state$errored2\n : new ERR_STREAM_DESTROYED('end')\n )\n }\n resetBuffer(state)\n}\n\n// If there's something in the buffer waiting, then process it.\nfunction clearBuffer(stream, state) {\n if (state.corked || state.bufferProcessing || state.destroyed || !state.constructed) {\n return\n }\n const { buffered, bufferedIndex, objectMode } = state\n const bufferedLength = buffered.length - bufferedIndex\n if (!bufferedLength) {\n return\n }\n let i = bufferedIndex\n state.bufferProcessing = true\n if (bufferedLength > 1 && stream._writev) {\n state.pendingcb -= bufferedLength - 1\n const callback = state.allNoop\n ? nop\n : (err) => {\n for (let n = i; n < buffered.length; ++n) {\n buffered[n].callback(err)\n }\n }\n // Make a copy of `buffered` if it's going to be used by `callback` above,\n // since `doWrite` will mutate the array.\n const chunks = state.allNoop && i === 0 ? buffered : ArrayPrototypeSlice(buffered, i)\n chunks.allBuffers = state.allBuffers\n doWrite(stream, state, true, state.length, chunks, '', callback)\n resetBuffer(state)\n } else {\n do {\n const { chunk, encoding, callback } = buffered[i]\n buffered[i++] = null\n const len = objectMode ? 1 : chunk.length\n doWrite(stream, state, false, len, chunk, encoding, callback)\n } while (i < buffered.length && !state.writing)\n if (i === buffered.length) {\n resetBuffer(state)\n } else if (i > 256) {\n buffered.splice(0, i)\n state.bufferedIndex = 0\n } else {\n state.bufferedIndex = i\n }\n }\n state.bufferProcessing = false\n}\nWritable.prototype._write = function (chunk, encoding, cb) {\n if (this._writev) {\n this._writev(\n [\n {\n chunk,\n encoding\n }\n ],\n cb\n )\n } else {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_write()')\n }\n}\nWritable.prototype._writev = null\nWritable.prototype.end = function (chunk, encoding, cb) {\n const state = this._writableState\n if (typeof chunk === 'function') {\n cb = chunk\n chunk = null\n encoding = null\n } else if (typeof encoding === 'function') {\n cb = encoding\n encoding = null\n }\n let err\n if (chunk !== null && chunk !== undefined) {\n const ret = _write(this, chunk, encoding)\n if (ret instanceof Error) {\n err = ret\n }\n }\n\n // .end() fully uncorks.\n if (state.corked) {\n state.corked = 1\n this.uncork()\n }\n if (err) {\n // Do nothing...\n } else if (!state.errored && !state.ending) {\n // This is forgiving in terms of unnecessary calls to end() and can hide\n // logic errors. However, usually such errors are harmless and causing a\n // hard error can be disproportionately destructive. It is not always\n // trivial for the user to determine whether end() needs to be called\n // or not.\n\n state.ending = true\n finishMaybe(this, state, true)\n state.ended = true\n } else if (state.finished) {\n err = new ERR_STREAM_ALREADY_FINISHED('end')\n } else if (state.destroyed) {\n err = new ERR_STREAM_DESTROYED('end')\n }\n if (typeof cb === 'function') {\n if (err || state.finished) {\n process.nextTick(cb, err)\n } else {\n state[kOnFinished].push(cb)\n }\n }\n return this\n}\nfunction needFinish(state) {\n return (\n state.ending &&\n !state.destroyed &&\n state.constructed &&\n state.length === 0 &&\n !state.errored &&\n state.buffered.length === 0 &&\n !state.finished &&\n !state.writing &&\n !state.errorEmitted &&\n !state.closeEmitted\n )\n}\nfunction callFinal(stream, state) {\n let called = false\n function onFinish(err) {\n if (called) {\n errorOrDestroy(stream, err !== null && err !== undefined ? err : ERR_MULTIPLE_CALLBACK())\n return\n }\n called = true\n state.pendingcb--\n if (err) {\n const onfinishCallbacks = state[kOnFinished].splice(0)\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n onfinishCallbacks[i](err)\n }\n errorOrDestroy(stream, err, state.sync)\n } else if (needFinish(state)) {\n state.prefinished = true\n stream.emit('prefinish')\n // Backwards compat. Don't check state.sync here.\n // Some streams assume 'finish' will be emitted\n // asynchronously relative to _final callback.\n state.pendingcb++\n process.nextTick(finish, stream, state)\n }\n }\n state.sync = true\n state.pendingcb++\n try {\n stream._final(onFinish)\n } catch (err) {\n onFinish(err)\n }\n state.sync = false\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.finalCalled = true\n callFinal(stream, state)\n } else {\n state.prefinished = true\n stream.emit('prefinish')\n }\n }\n}\nfunction finishMaybe(stream, state, sync) {\n if (needFinish(state)) {\n prefinish(stream, state)\n if (state.pendingcb === 0) {\n if (sync) {\n state.pendingcb++\n process.nextTick(\n (stream, state) => {\n if (needFinish(state)) {\n finish(stream, state)\n } else {\n state.pendingcb--\n }\n },\n stream,\n state\n )\n } else if (needFinish(state)) {\n state.pendingcb++\n finish(stream, state)\n }\n }\n }\n}\nfunction finish(stream, state) {\n state.pendingcb--\n state.finished = true\n const onfinishCallbacks = state[kOnFinished].splice(0)\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n onfinishCallbacks[i]()\n }\n stream.emit('finish')\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well.\n const rState = stream._readableState\n const autoDestroy =\n !rState ||\n (rState.autoDestroy &&\n // We don't expect the readable to ever 'end'\n // if readable is explicitly set to false.\n (rState.endEmitted || rState.readable === false))\n if (autoDestroy) {\n stream.destroy()\n }\n }\n}\nObjectDefineProperties(Writable.prototype, {\n closed: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.closed : false\n }\n },\n destroyed: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.destroyed : false\n },\n set(value) {\n // Backward compatibility, the user is explicitly managing destroyed.\n if (this._writableState) {\n this._writableState.destroyed = value\n }\n }\n },\n writable: {\n __proto__: null,\n get() {\n const w = this._writableState\n // w.writable === false means that this is part of a Duplex stream\n // where the writable side was disabled upon construction.\n // Compat. The user might manually disable writable side through\n // deprecated setter.\n return !!w && w.writable !== false && !w.destroyed && !w.errored && !w.ending && !w.ended\n },\n set(val) {\n // Backwards compatible.\n if (this._writableState) {\n this._writableState.writable = !!val\n }\n }\n },\n writableFinished: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.finished : false\n }\n },\n writableObjectMode: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.objectMode : false\n }\n },\n writableBuffer: {\n __proto__: null,\n get() {\n return this._writableState && this._writableState.getBuffer()\n }\n },\n writableEnded: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.ending : false\n }\n },\n writableNeedDrain: {\n __proto__: null,\n get() {\n const wState = this._writableState\n if (!wState) return false\n return !wState.destroyed && !wState.ending && wState.needDrain\n }\n },\n writableHighWaterMark: {\n __proto__: null,\n get() {\n return this._writableState && this._writableState.highWaterMark\n }\n },\n writableCorked: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.corked : 0\n }\n },\n writableLength: {\n __proto__: null,\n get() {\n return this._writableState && this._writableState.length\n }\n },\n errored: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._writableState ? this._writableState.errored : null\n }\n },\n writableAborted: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return !!(\n this._writableState.writable !== false &&\n (this._writableState.destroyed || this._writableState.errored) &&\n !this._writableState.finished\n )\n }\n }\n})\nconst destroy = destroyImpl.destroy\nWritable.prototype.destroy = function (err, cb) {\n const state = this._writableState\n\n // Invoke pending callbacks.\n if (!state.destroyed && (state.bufferedIndex < state.buffered.length || state[kOnFinished].length)) {\n process.nextTick(errorBuffer, state)\n }\n destroy.call(this, err, cb)\n return this\n}\nWritable.prototype._undestroy = destroyImpl.undestroy\nWritable.prototype._destroy = function (err, cb) {\n cb(err)\n}\nWritable.prototype[EE.captureRejectionSymbol] = function (err) {\n this.destroy(err)\n}\nlet webStreamsAdapters\n\n// Lazy to avoid circular references\nfunction lazyWebStreams() {\n if (webStreamsAdapters === undefined) webStreamsAdapters = {}\n return webStreamsAdapters\n}\nWritable.fromWeb = function (writableStream, options) {\n return lazyWebStreams().newStreamWritableFromWritableStream(writableStream, options)\n}\nWritable.toWeb = function (streamWritable) {\n return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable)\n}\n","/* eslint jsdoc/require-jsdoc: \"error\" */\n\n'use strict'\n\nconst {\n ArrayIsArray,\n ArrayPrototypeIncludes,\n ArrayPrototypeJoin,\n ArrayPrototypeMap,\n NumberIsInteger,\n NumberIsNaN,\n NumberMAX_SAFE_INTEGER,\n NumberMIN_SAFE_INTEGER,\n NumberParseInt,\n ObjectPrototypeHasOwnProperty,\n RegExpPrototypeExec,\n String,\n StringPrototypeToUpperCase,\n StringPrototypeTrim\n} = require('../ours/primordials')\nconst {\n hideStackFrames,\n codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL }\n} = require('../ours/errors')\nconst { normalizeEncoding } = require('../ours/util')\nconst { isAsyncFunction, isArrayBufferView } = require('../ours/util').types\nconst signals = {}\n\n/**\n * @param {*} value\n * @returns {boolean}\n */\nfunction isInt32(value) {\n return value === (value | 0)\n}\n\n/**\n * @param {*} value\n * @returns {boolean}\n */\nfunction isUint32(value) {\n return value === value >>> 0\n}\nconst octalReg = /^[0-7]+$/\nconst modeDesc = 'must be a 32-bit unsigned integer or an octal string'\n\n/**\n * Parse and validate values that will be converted into mode_t (the S_*\n * constants). Only valid numbers and octal strings are allowed. They could be\n * converted to 32-bit unsigned integers or non-negative signed integers in the\n * C++ land, but any value higher than 0o777 will result in platform-specific\n * behaviors.\n * @param {*} value Values to be validated\n * @param {string} name Name of the argument\n * @param {number} [def] If specified, will be returned for invalid values\n * @returns {number}\n */\nfunction parseFileMode(value, name, def) {\n if (typeof value === 'undefined') {\n value = def\n }\n if (typeof value === 'string') {\n if (RegExpPrototypeExec(octalReg, value) === null) {\n throw new ERR_INVALID_ARG_VALUE(name, value, modeDesc)\n }\n value = NumberParseInt(value, 8)\n }\n validateUint32(value, name)\n return value\n}\n\n/**\n * @callback validateInteger\n * @param {*} value\n * @param {string} name\n * @param {number} [min]\n * @param {number} [max]\n * @returns {asserts value is number}\n */\n\n/** @type {validateInteger} */\nconst validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {\n if (typeof value !== 'number') throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, 'an integer', value)\n if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value)\n})\n\n/**\n * @callback validateInt32\n * @param {*} value\n * @param {string} name\n * @param {number} [min]\n * @param {number} [max]\n * @returns {asserts value is number}\n */\n\n/** @type {validateInt32} */\nconst validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {\n // The defaults for min and max correspond to the limits of 32-bit integers.\n if (typeof value !== 'number') {\n throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n if (!NumberIsInteger(value)) {\n throw new ERR_OUT_OF_RANGE(name, 'an integer', value)\n }\n if (value < min || value > max) {\n throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value)\n }\n})\n\n/**\n * @callback validateUint32\n * @param {*} value\n * @param {string} name\n * @param {number|boolean} [positive=false]\n * @returns {asserts value is number}\n */\n\n/** @type {validateUint32} */\nconst validateUint32 = hideStackFrames((value, name, positive = false) => {\n if (typeof value !== 'number') {\n throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n if (!NumberIsInteger(value)) {\n throw new ERR_OUT_OF_RANGE(name, 'an integer', value)\n }\n const min = positive ? 1 : 0\n // 2 ** 32 === 4294967296\n const max = 4294967295\n if (value < min || value > max) {\n throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value)\n }\n})\n\n/**\n * @callback validateString\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is string}\n */\n\n/** @type {validateString} */\nfunction validateString(value, name) {\n if (typeof value !== 'string') throw new ERR_INVALID_ARG_TYPE(name, 'string', value)\n}\n\n/**\n * @callback validateNumber\n * @param {*} value\n * @param {string} name\n * @param {number} [min]\n * @param {number} [max]\n * @returns {asserts value is number}\n */\n\n/** @type {validateNumber} */\nfunction validateNumber(value, name, min = undefined, max) {\n if (typeof value !== 'number') throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n if (\n (min != null && value < min) ||\n (max != null && value > max) ||\n ((min != null || max != null) && NumberIsNaN(value))\n ) {\n throw new ERR_OUT_OF_RANGE(\n name,\n `${min != null ? `>= ${min}` : ''}${min != null && max != null ? ' && ' : ''}${max != null ? `<= ${max}` : ''}`,\n value\n )\n }\n}\n\n/**\n * @callback validateOneOf\n * @template T\n * @param {T} value\n * @param {string} name\n * @param {T[]} oneOf\n */\n\n/** @type {validateOneOf} */\nconst validateOneOf = hideStackFrames((value, name, oneOf) => {\n if (!ArrayPrototypeIncludes(oneOf, value)) {\n const allowed = ArrayPrototypeJoin(\n ArrayPrototypeMap(oneOf, (v) => (typeof v === 'string' ? `'${v}'` : String(v))),\n ', '\n )\n const reason = 'must be one of: ' + allowed\n throw new ERR_INVALID_ARG_VALUE(name, value, reason)\n }\n})\n\n/**\n * @callback validateBoolean\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is boolean}\n */\n\n/** @type {validateBoolean} */\nfunction validateBoolean(value, name) {\n if (typeof value !== 'boolean') throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value)\n}\n\n/**\n * @param {any} options\n * @param {string} key\n * @param {boolean} defaultValue\n * @returns {boolean}\n */\nfunction getOwnPropertyValueOrDefault(options, key, defaultValue) {\n return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key]\n}\n\n/**\n * @callback validateObject\n * @param {*} value\n * @param {string} name\n * @param {{\n * allowArray?: boolean,\n * allowFunction?: boolean,\n * nullable?: boolean\n * }} [options]\n */\n\n/** @type {validateObject} */\nconst validateObject = hideStackFrames((value, name, options = null) => {\n const allowArray = getOwnPropertyValueOrDefault(options, 'allowArray', false)\n const allowFunction = getOwnPropertyValueOrDefault(options, 'allowFunction', false)\n const nullable = getOwnPropertyValueOrDefault(options, 'nullable', false)\n if (\n (!nullable && value === null) ||\n (!allowArray && ArrayIsArray(value)) ||\n (typeof value !== 'object' && (!allowFunction || typeof value !== 'function'))\n ) {\n throw new ERR_INVALID_ARG_TYPE(name, 'Object', value)\n }\n})\n\n/**\n * @callback validateDictionary - We are using the Web IDL Standard definition\n * of \"dictionary\" here, which means any value\n * whose Type is either Undefined, Null, or\n * Object (which includes functions).\n * @param {*} value\n * @param {string} name\n * @see https://webidl.spec.whatwg.org/#es-dictionary\n * @see https://tc39.es/ecma262/#table-typeof-operator-results\n */\n\n/** @type {validateDictionary} */\nconst validateDictionary = hideStackFrames((value, name) => {\n if (value != null && typeof value !== 'object' && typeof value !== 'function') {\n throw new ERR_INVALID_ARG_TYPE(name, 'a dictionary', value)\n }\n})\n\n/**\n * @callback validateArray\n * @param {*} value\n * @param {string} name\n * @param {number} [minLength]\n * @returns {asserts value is any[]}\n */\n\n/** @type {validateArray} */\nconst validateArray = hideStackFrames((value, name, minLength = 0) => {\n if (!ArrayIsArray(value)) {\n throw new ERR_INVALID_ARG_TYPE(name, 'Array', value)\n }\n if (value.length < minLength) {\n const reason = `must be longer than ${minLength}`\n throw new ERR_INVALID_ARG_VALUE(name, value, reason)\n }\n})\n\n/**\n * @callback validateStringArray\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is string[]}\n */\n\n/** @type {validateStringArray} */\nfunction validateStringArray(value, name) {\n validateArray(value, name)\n for (let i = 0; i < value.length; i++) {\n validateString(value[i], `${name}[${i}]`)\n }\n}\n\n/**\n * @callback validateBooleanArray\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is boolean[]}\n */\n\n/** @type {validateBooleanArray} */\nfunction validateBooleanArray(value, name) {\n validateArray(value, name)\n for (let i = 0; i < value.length; i++) {\n validateBoolean(value[i], `${name}[${i}]`)\n }\n}\n\n/**\n * @callback validateAbortSignalArray\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is AbortSignal[]}\n */\n\n/** @type {validateAbortSignalArray} */\nfunction validateAbortSignalArray(value, name) {\n validateArray(value, name)\n for (let i = 0; i < value.length; i++) {\n const signal = value[i]\n const indexedName = `${name}[${i}]`\n if (signal == null) {\n throw new ERR_INVALID_ARG_TYPE(indexedName, 'AbortSignal', signal)\n }\n validateAbortSignal(signal, indexedName)\n }\n}\n\n/**\n * @param {*} signal\n * @param {string} [name='signal']\n * @returns {asserts signal is keyof signals}\n */\nfunction validateSignalName(signal, name = 'signal') {\n validateString(signal, name)\n if (signals[signal] === undefined) {\n if (signals[StringPrototypeToUpperCase(signal)] !== undefined) {\n throw new ERR_UNKNOWN_SIGNAL(signal + ' (signals must use all capital letters)')\n }\n throw new ERR_UNKNOWN_SIGNAL(signal)\n }\n}\n\n/**\n * @callback validateBuffer\n * @param {*} buffer\n * @param {string} [name='buffer']\n * @returns {asserts buffer is ArrayBufferView}\n */\n\n/** @type {validateBuffer} */\nconst validateBuffer = hideStackFrames((buffer, name = 'buffer') => {\n if (!isArrayBufferView(buffer)) {\n throw new ERR_INVALID_ARG_TYPE(name, ['Buffer', 'TypedArray', 'DataView'], buffer)\n }\n})\n\n/**\n * @param {string} data\n * @param {string} encoding\n */\nfunction validateEncoding(data, encoding) {\n const normalizedEncoding = normalizeEncoding(encoding)\n const length = data.length\n if (normalizedEncoding === 'hex' && length % 2 !== 0) {\n throw new ERR_INVALID_ARG_VALUE('encoding', encoding, `is invalid for data of length ${length}`)\n }\n}\n\n/**\n * Check that the port number is not NaN when coerced to a number,\n * is an integer and that it falls within the legal range of port numbers.\n * @param {*} port\n * @param {string} [name='Port']\n * @param {boolean} [allowZero=true]\n * @returns {number}\n */\nfunction validatePort(port, name = 'Port', allowZero = true) {\n if (\n (typeof port !== 'number' && typeof port !== 'string') ||\n (typeof port === 'string' && StringPrototypeTrim(port).length === 0) ||\n +port !== +port >>> 0 ||\n port > 0xffff ||\n (port === 0 && !allowZero)\n ) {\n throw new ERR_SOCKET_BAD_PORT(name, port, allowZero)\n }\n return port | 0\n}\n\n/**\n * @callback validateAbortSignal\n * @param {*} signal\n * @param {string} name\n */\n\n/** @type {validateAbortSignal} */\nconst validateAbortSignal = hideStackFrames((signal, name) => {\n if (signal !== undefined && (signal === null || typeof signal !== 'object' || !('aborted' in signal))) {\n throw new ERR_INVALID_ARG_TYPE(name, 'AbortSignal', signal)\n }\n})\n\n/**\n * @callback validateFunction\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is Function}\n */\n\n/** @type {validateFunction} */\nconst validateFunction = hideStackFrames((value, name) => {\n if (typeof value !== 'function') throw new ERR_INVALID_ARG_TYPE(name, 'Function', value)\n})\n\n/**\n * @callback validatePlainFunction\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is Function}\n */\n\n/** @type {validatePlainFunction} */\nconst validatePlainFunction = hideStackFrames((value, name) => {\n if (typeof value !== 'function' || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE(name, 'Function', value)\n})\n\n/**\n * @callback validateUndefined\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is undefined}\n */\n\n/** @type {validateUndefined} */\nconst validateUndefined = hideStackFrames((value, name) => {\n if (value !== undefined) throw new ERR_INVALID_ARG_TYPE(name, 'undefined', value)\n})\n\n/**\n * @template T\n * @param {T} value\n * @param {string} name\n * @param {T[]} union\n */\nfunction validateUnion(value, name, union) {\n if (!ArrayPrototypeIncludes(union, value)) {\n throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, '|')}')`, value)\n }\n}\n\n/*\n The rules for the Link header field are described here:\n https://www.rfc-editor.org/rfc/rfc8288.html#section-3\n\n This regex validates any string surrounded by angle brackets\n (not necessarily a valid URI reference) followed by zero or more\n link-params separated by semicolons.\n*/\nconst linkValueRegExp = /^(?:<[^>]*>)(?:\\s*;\\s*[^;\"\\s]+(?:=(\")?[^;\"\\s]*\\1)?)*$/\n\n/**\n * @param {any} value\n * @param {string} name\n */\nfunction validateLinkHeaderFormat(value, name) {\n if (typeof value === 'undefined' || !RegExpPrototypeExec(linkValueRegExp, value)) {\n throw new ERR_INVALID_ARG_VALUE(\n name,\n value,\n 'must be an array or string of format \"; rel=preload; as=style\"'\n )\n }\n}\n\n/**\n * @param {any} hints\n * @return {string}\n */\nfunction validateLinkHeaderValue(hints) {\n if (typeof hints === 'string') {\n validateLinkHeaderFormat(hints, 'hints')\n return hints\n } else if (ArrayIsArray(hints)) {\n const hintsLength = hints.length\n let result = ''\n if (hintsLength === 0) {\n return result\n }\n for (let i = 0; i < hintsLength; i++) {\n const link = hints[i]\n validateLinkHeaderFormat(link, 'hints')\n result += link\n if (i !== hintsLength - 1) {\n result += ', '\n }\n }\n return result\n }\n throw new ERR_INVALID_ARG_VALUE(\n 'hints',\n hints,\n 'must be an array or string of format \"; rel=preload; as=style\"'\n )\n}\nmodule.exports = {\n isInt32,\n isUint32,\n parseFileMode,\n validateArray,\n validateStringArray,\n validateBooleanArray,\n validateAbortSignalArray,\n validateBoolean,\n validateBuffer,\n validateDictionary,\n validateEncoding,\n validateFunction,\n validateInt32,\n validateInteger,\n validateNumber,\n validateObject,\n validateOneOf,\n validatePlainFunction,\n validatePort,\n validateSignalName,\n validateString,\n validateUint32,\n validateUndefined,\n validateUnion,\n validateAbortSignal,\n validateLinkHeaderValue\n}\n","'use strict'\n\nconst { format, inspect, AggregateError: CustomAggregateError } = require('./util')\n\n/*\n This file is a reduced and adapted version of the main lib/internal/errors.js file defined at\n\n https://github.com/nodejs/node/blob/master/lib/internal/errors.js\n\n Don't try to replace with the original file and keep it up to date (starting from E(...) definitions)\n with the upstream file.\n*/\n\nconst AggregateError = globalThis.AggregateError || CustomAggregateError\nconst kIsNodeError = Symbol('kIsNodeError')\nconst kTypes = [\n 'string',\n 'function',\n 'number',\n 'object',\n // Accept 'Function' and 'Object' as alternative to the lower cased version.\n 'Function',\n 'Object',\n 'boolean',\n 'bigint',\n 'symbol'\n]\nconst classRegExp = /^([A-Z][a-z0-9]*)+$/\nconst nodeInternalPrefix = '__node_internal_'\nconst codes = {}\nfunction assert(value, message) {\n if (!value) {\n throw new codes.ERR_INTERNAL_ASSERTION(message)\n }\n}\n\n// Only use this for integers! Decimal numbers do not work with this function.\nfunction addNumericalSeparator(val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\nfunction getMessage(key, msg, args) {\n if (typeof msg === 'function') {\n assert(\n msg.length <= args.length,\n // Default options do not count.\n `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`\n )\n return msg(...args)\n }\n const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length\n assert(\n expectedLength === args.length,\n `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`\n )\n if (args.length === 0) {\n return msg\n }\n return format(msg, ...args)\n}\nfunction E(code, message, Base) {\n if (!Base) {\n Base = Error\n }\n class NodeError extends Base {\n constructor(...args) {\n super(getMessage(code, message, args))\n }\n toString() {\n return `${this.name} [${code}]: ${this.message}`\n }\n }\n Object.defineProperties(NodeError.prototype, {\n name: {\n value: Base.name,\n writable: true,\n enumerable: false,\n configurable: true\n },\n toString: {\n value() {\n return `${this.name} [${code}]: ${this.message}`\n },\n writable: true,\n enumerable: false,\n configurable: true\n }\n })\n NodeError.prototype.code = code\n NodeError.prototype[kIsNodeError] = true\n codes[code] = NodeError\n}\nfunction hideStackFrames(fn) {\n // We rename the functions that will be hidden to cut off the stacktrace\n // at the outermost one\n const hidden = nodeInternalPrefix + fn.name\n Object.defineProperty(fn, 'name', {\n value: hidden\n })\n return fn\n}\nfunction aggregateTwoErrors(innerError, outerError) {\n if (innerError && outerError && innerError !== outerError) {\n if (Array.isArray(outerError.errors)) {\n // If `outerError` is already an `AggregateError`.\n outerError.errors.push(innerError)\n return outerError\n }\n const err = new AggregateError([outerError, innerError], outerError.message)\n err.code = outerError.code\n return err\n }\n return innerError || outerError\n}\nclass AbortError extends Error {\n constructor(message = 'The operation was aborted', options = undefined) {\n if (options !== undefined && typeof options !== 'object') {\n throw new codes.ERR_INVALID_ARG_TYPE('options', 'Object', options)\n }\n super(message, options)\n this.code = 'ABORT_ERR'\n this.name = 'AbortError'\n }\n}\nE('ERR_ASSERTION', '%s', Error)\nE(\n 'ERR_INVALID_ARG_TYPE',\n (name, expected, actual) => {\n assert(typeof name === 'string', \"'name' must be a string\")\n if (!Array.isArray(expected)) {\n expected = [expected]\n }\n let msg = 'The '\n if (name.endsWith(' argument')) {\n // For cases like 'first argument'\n msg += `${name} `\n } else {\n msg += `\"${name}\" ${name.includes('.') ? 'property' : 'argument'} `\n }\n msg += 'must be '\n const types = []\n const instances = []\n const other = []\n for (const value of expected) {\n assert(typeof value === 'string', 'All expected entries have to be of type string')\n if (kTypes.includes(value)) {\n types.push(value.toLowerCase())\n } else if (classRegExp.test(value)) {\n instances.push(value)\n } else {\n assert(value !== 'object', 'The value \"object\" should be written as \"Object\"')\n other.push(value)\n }\n }\n\n // Special handle `object` in case other instances are allowed to outline\n // the differences between each other.\n if (instances.length > 0) {\n const pos = types.indexOf('object')\n if (pos !== -1) {\n types.splice(types, pos, 1)\n instances.push('Object')\n }\n }\n if (types.length > 0) {\n switch (types.length) {\n case 1:\n msg += `of type ${types[0]}`\n break\n case 2:\n msg += `one of type ${types[0]} or ${types[1]}`\n break\n default: {\n const last = types.pop()\n msg += `one of type ${types.join(', ')}, or ${last}`\n }\n }\n if (instances.length > 0 || other.length > 0) {\n msg += ' or '\n }\n }\n if (instances.length > 0) {\n switch (instances.length) {\n case 1:\n msg += `an instance of ${instances[0]}`\n break\n case 2:\n msg += `an instance of ${instances[0]} or ${instances[1]}`\n break\n default: {\n const last = instances.pop()\n msg += `an instance of ${instances.join(', ')}, or ${last}`\n }\n }\n if (other.length > 0) {\n msg += ' or '\n }\n }\n switch (other.length) {\n case 0:\n break\n case 1:\n if (other[0].toLowerCase() !== other[0]) {\n msg += 'an '\n }\n msg += `${other[0]}`\n break\n case 2:\n msg += `one of ${other[0]} or ${other[1]}`\n break\n default: {\n const last = other.pop()\n msg += `one of ${other.join(', ')}, or ${last}`\n }\n }\n if (actual == null) {\n msg += `. Received ${actual}`\n } else if (typeof actual === 'function' && actual.name) {\n msg += `. Received function ${actual.name}`\n } else if (typeof actual === 'object') {\n var _actual$constructor\n if (\n (_actual$constructor = actual.constructor) !== null &&\n _actual$constructor !== undefined &&\n _actual$constructor.name\n ) {\n msg += `. Received an instance of ${actual.constructor.name}`\n } else {\n const inspected = inspect(actual, {\n depth: -1\n })\n msg += `. Received ${inspected}`\n }\n } else {\n let inspected = inspect(actual, {\n colors: false\n })\n if (inspected.length > 25) {\n inspected = `${inspected.slice(0, 25)}...`\n }\n msg += `. Received type ${typeof actual} (${inspected})`\n }\n return msg\n },\n TypeError\n)\nE(\n 'ERR_INVALID_ARG_VALUE',\n (name, value, reason = 'is invalid') => {\n let inspected = inspect(value)\n if (inspected.length > 128) {\n inspected = inspected.slice(0, 128) + '...'\n }\n const type = name.includes('.') ? 'property' : 'argument'\n return `The ${type} '${name}' ${reason}. Received ${inspected}`\n },\n TypeError\n)\nE(\n 'ERR_INVALID_RETURN_VALUE',\n (input, name, value) => {\n var _value$constructor\n const type =\n value !== null &&\n value !== undefined &&\n (_value$constructor = value.constructor) !== null &&\n _value$constructor !== undefined &&\n _value$constructor.name\n ? `instance of ${value.constructor.name}`\n : `type ${typeof value}`\n return `Expected ${input} to be returned from the \"${name}\"` + ` function but got ${type}.`\n },\n TypeError\n)\nE(\n 'ERR_MISSING_ARGS',\n (...args) => {\n assert(args.length > 0, 'At least one arg needs to be specified')\n let msg\n const len = args.length\n args = (Array.isArray(args) ? args : [args]).map((a) => `\"${a}\"`).join(' or ')\n switch (len) {\n case 1:\n msg += `The ${args[0]} argument`\n break\n case 2:\n msg += `The ${args[0]} and ${args[1]} arguments`\n break\n default:\n {\n const last = args.pop()\n msg += `The ${args.join(', ')}, and ${last} arguments`\n }\n break\n }\n return `${msg} must be specified`\n },\n TypeError\n)\nE(\n 'ERR_OUT_OF_RANGE',\n (str, range, input) => {\n assert(range, 'Missing \"range\" argument')\n let received\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > 2n ** 32n || input < -(2n ** 32n)) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n } else {\n received = inspect(input)\n }\n return `The value of \"${str}\" is out of range. It must be ${range}. Received ${received}`\n },\n RangeError\n)\nE('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times', Error)\nE('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented', Error)\nE('ERR_STREAM_ALREADY_FINISHED', 'Cannot call %s after a stream was finished', Error)\nE('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable', Error)\nE('ERR_STREAM_DESTROYED', 'Cannot call %s after a stream was destroyed', Error)\nE('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError)\nE('ERR_STREAM_PREMATURE_CLOSE', 'Premature close', Error)\nE('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF', Error)\nE('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event', Error)\nE('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error)\nE('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError)\nmodule.exports = {\n AbortError,\n aggregateTwoErrors: hideStackFrames(aggregateTwoErrors),\n hideStackFrames,\n codes\n}\n","'use strict'\n\nconst Stream = require('stream')\nif (Stream && process.env.READABLE_STREAM === 'disable') {\n const promises = Stream.promises\n\n // Explicit export naming is needed for ESM\n module.exports._uint8ArrayToBuffer = Stream._uint8ArrayToBuffer\n module.exports._isUint8Array = Stream._isUint8Array\n module.exports.isDisturbed = Stream.isDisturbed\n module.exports.isErrored = Stream.isErrored\n module.exports.isReadable = Stream.isReadable\n module.exports.Readable = Stream.Readable\n module.exports.Writable = Stream.Writable\n module.exports.Duplex = Stream.Duplex\n module.exports.Transform = Stream.Transform\n module.exports.PassThrough = Stream.PassThrough\n module.exports.addAbortSignal = Stream.addAbortSignal\n module.exports.finished = Stream.finished\n module.exports.destroy = Stream.destroy\n module.exports.pipeline = Stream.pipeline\n module.exports.compose = Stream.compose\n Object.defineProperty(Stream, 'promises', {\n configurable: true,\n enumerable: true,\n get() {\n return promises\n }\n })\n module.exports.Stream = Stream.Stream\n} else {\n const CustomStream = require('../stream')\n const promises = require('../stream/promises')\n const originalDestroy = CustomStream.Readable.destroy\n module.exports = CustomStream.Readable\n\n // Explicit export naming is needed for ESM\n module.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer\n module.exports._isUint8Array = CustomStream._isUint8Array\n module.exports.isDisturbed = CustomStream.isDisturbed\n module.exports.isErrored = CustomStream.isErrored\n module.exports.isReadable = CustomStream.isReadable\n module.exports.Readable = CustomStream.Readable\n module.exports.Writable = CustomStream.Writable\n module.exports.Duplex = CustomStream.Duplex\n module.exports.Transform = CustomStream.Transform\n module.exports.PassThrough = CustomStream.PassThrough\n module.exports.addAbortSignal = CustomStream.addAbortSignal\n module.exports.finished = CustomStream.finished\n module.exports.destroy = CustomStream.destroy\n module.exports.destroy = originalDestroy\n module.exports.pipeline = CustomStream.pipeline\n module.exports.compose = CustomStream.compose\n Object.defineProperty(CustomStream, 'promises', {\n configurable: true,\n enumerable: true,\n get() {\n return promises\n }\n })\n module.exports.Stream = CustomStream.Stream\n}\n\n// Allow default importing\nmodule.exports.default = module.exports\n","'use strict'\n\n/*\n This file is a reduced and adapted version of the main lib/internal/per_context/primordials.js file defined at\n\n https://github.com/nodejs/node/blob/master/lib/internal/per_context/primordials.js\n\n Don't try to replace with the original file and keep it up to date with the upstream file.\n*/\nmodule.exports = {\n ArrayIsArray(self) {\n return Array.isArray(self)\n },\n ArrayPrototypeIncludes(self, el) {\n return self.includes(el)\n },\n ArrayPrototypeIndexOf(self, el) {\n return self.indexOf(el)\n },\n ArrayPrototypeJoin(self, sep) {\n return self.join(sep)\n },\n ArrayPrototypeMap(self, fn) {\n return self.map(fn)\n },\n ArrayPrototypePop(self, el) {\n return self.pop(el)\n },\n ArrayPrototypePush(self, el) {\n return self.push(el)\n },\n ArrayPrototypeSlice(self, start, end) {\n return self.slice(start, end)\n },\n Error,\n FunctionPrototypeCall(fn, thisArgs, ...args) {\n return fn.call(thisArgs, ...args)\n },\n FunctionPrototypeSymbolHasInstance(self, instance) {\n return Function.prototype[Symbol.hasInstance].call(self, instance)\n },\n MathFloor: Math.floor,\n Number,\n NumberIsInteger: Number.isInteger,\n NumberIsNaN: Number.isNaN,\n NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER,\n NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER,\n NumberParseInt: Number.parseInt,\n ObjectDefineProperties(self, props) {\n return Object.defineProperties(self, props)\n },\n ObjectDefineProperty(self, name, prop) {\n return Object.defineProperty(self, name, prop)\n },\n ObjectGetOwnPropertyDescriptor(self, name) {\n return Object.getOwnPropertyDescriptor(self, name)\n },\n ObjectKeys(obj) {\n return Object.keys(obj)\n },\n ObjectSetPrototypeOf(target, proto) {\n return Object.setPrototypeOf(target, proto)\n },\n Promise,\n PromisePrototypeCatch(self, fn) {\n return self.catch(fn)\n },\n PromisePrototypeThen(self, thenFn, catchFn) {\n return self.then(thenFn, catchFn)\n },\n PromiseReject(err) {\n return Promise.reject(err)\n },\n PromiseResolve(val) {\n return Promise.resolve(val)\n },\n ReflectApply: Reflect.apply,\n RegExpPrototypeTest(self, value) {\n return self.test(value)\n },\n SafeSet: Set,\n String,\n StringPrototypeSlice(self, start, end) {\n return self.slice(start, end)\n },\n StringPrototypeToLowerCase(self) {\n return self.toLowerCase()\n },\n StringPrototypeToUpperCase(self) {\n return self.toUpperCase()\n },\n StringPrototypeTrim(self) {\n return self.trim()\n },\n Symbol,\n SymbolFor: Symbol.for,\n SymbolAsyncIterator: Symbol.asyncIterator,\n SymbolHasInstance: Symbol.hasInstance,\n SymbolIterator: Symbol.iterator,\n SymbolDispose: Symbol.dispose || Symbol('Symbol.dispose'),\n SymbolAsyncDispose: Symbol.asyncDispose || Symbol('Symbol.asyncDispose'),\n TypedArrayPrototypeSet(self, buf, len) {\n return self.set(buf, len)\n },\n Boolean: Boolean,\n Uint8Array\n}\n","'use strict'\n\nconst bufferModule = require('buffer')\nconst { kResistStopPropagation, SymbolDispose } = require('./primordials')\nconst AbortSignal = globalThis.AbortSignal || require('abort-controller').AbortSignal\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nconst AsyncFunction = Object.getPrototypeOf(async function () {}).constructor\nconst Blob = globalThis.Blob || bufferModule.Blob\n/* eslint-disable indent */\nconst isBlob =\n typeof Blob !== 'undefined'\n ? function isBlob(b) {\n // eslint-disable-next-line indent\n return b instanceof Blob\n }\n : function isBlob(b) {\n return false\n }\n/* eslint-enable indent */\n\nconst validateAbortSignal = (signal, name) => {\n if (signal !== undefined && (signal === null || typeof signal !== 'object' || !('aborted' in signal))) {\n throw new ERR_INVALID_ARG_TYPE(name, 'AbortSignal', signal)\n }\n}\nconst validateFunction = (value, name) => {\n if (typeof value !== 'function') throw new ERR_INVALID_ARG_TYPE(name, 'Function', value)\n}\n\n// This is a simplified version of AggregateError\nclass AggregateError extends Error {\n constructor(errors) {\n if (!Array.isArray(errors)) {\n throw new TypeError(`Expected input to be an Array, got ${typeof errors}`)\n }\n let message = ''\n for (let i = 0; i < errors.length; i++) {\n message += ` ${errors[i].stack}\\n`\n }\n super(message)\n this.name = 'AggregateError'\n this.errors = errors\n }\n}\nmodule.exports = {\n AggregateError,\n kEmptyObject: Object.freeze({}),\n once(callback) {\n let called = false\n return function (...args) {\n if (called) {\n return\n }\n called = true\n callback.apply(this, args)\n }\n },\n createDeferredPromise: function () {\n let resolve\n let reject\n\n // eslint-disable-next-line promise/param-names\n const promise = new Promise((res, rej) => {\n resolve = res\n reject = rej\n })\n return {\n promise,\n resolve,\n reject\n }\n },\n promisify(fn) {\n return new Promise((resolve, reject) => {\n fn((err, ...args) => {\n if (err) {\n return reject(err)\n }\n return resolve(...args)\n })\n })\n },\n debuglog() {\n return function () {}\n },\n format(format, ...args) {\n // Simplified version of https://nodejs.org/api/util.html#utilformatformat-args\n return format.replace(/%([sdifj])/g, function (...[_unused, type]) {\n const replacement = args.shift()\n if (type === 'f') {\n return replacement.toFixed(6)\n } else if (type === 'j') {\n return JSON.stringify(replacement)\n } else if (type === 's' && typeof replacement === 'object') {\n const ctor = replacement.constructor !== Object ? replacement.constructor.name : ''\n return `${ctor} {}`.trim()\n } else {\n return replacement.toString()\n }\n })\n },\n inspect(value) {\n // Vastly simplified version of https://nodejs.org/api/util.html#utilinspectobject-options\n switch (typeof value) {\n case 'string':\n if (value.includes(\"'\")) {\n if (!value.includes('\"')) {\n return `\"${value}\"`\n } else if (!value.includes('`') && !value.includes('${')) {\n return `\\`${value}\\``\n }\n }\n return `'${value}'`\n case 'number':\n if (isNaN(value)) {\n return 'NaN'\n } else if (Object.is(value, -0)) {\n return String(value)\n }\n return value\n case 'bigint':\n return `${String(value)}n`\n case 'boolean':\n case 'undefined':\n return String(value)\n case 'object':\n return '{}'\n }\n },\n types: {\n isAsyncFunction(fn) {\n return fn instanceof AsyncFunction\n },\n isArrayBufferView(arr) {\n return ArrayBuffer.isView(arr)\n }\n },\n isBlob,\n deprecate(fn, message) {\n return fn\n },\n addAbortListener:\n require('events').addAbortListener ||\n function addAbortListener(signal, listener) {\n if (signal === undefined) {\n throw new ERR_INVALID_ARG_TYPE('signal', 'AbortSignal', signal)\n }\n validateAbortSignal(signal, 'signal')\n validateFunction(listener, 'listener')\n let removeEventListener\n if (signal.aborted) {\n queueMicrotask(() => listener())\n } else {\n signal.addEventListener('abort', listener, {\n __proto__: null,\n once: true,\n [kResistStopPropagation]: true\n })\n removeEventListener = () => {\n signal.removeEventListener('abort', listener)\n }\n }\n return {\n __proto__: null,\n [SymbolDispose]() {\n var _removeEventListener\n ;(_removeEventListener = removeEventListener) === null || _removeEventListener === undefined\n ? undefined\n : _removeEventListener()\n }\n }\n },\n AbortSignalAny:\n AbortSignal.any ||\n function AbortSignalAny(signals) {\n // Fast path if there is only one signal.\n if (signals.length === 1) {\n return signals[0]\n }\n const ac = new AbortController()\n const abort = () => ac.abort()\n signals.forEach((signal) => {\n validateAbortSignal(signal, 'signals')\n signal.addEventListener('abort', abort, {\n once: true\n })\n })\n ac.signal.addEventListener(\n 'abort',\n () => {\n signals.forEach((signal) => signal.removeEventListener('abort', abort))\n },\n {\n once: true\n }\n )\n return ac.signal\n }\n}\nmodule.exports.promisify.custom = Symbol.for('nodejs.util.promisify.custom')\n","/* replacement start */\n\nconst { Buffer } = require('buffer')\n\n/* replacement end */\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n;('use strict')\nconst { ObjectDefineProperty, ObjectKeys, ReflectApply } = require('./ours/primordials')\nconst {\n promisify: { custom: customPromisify }\n} = require('./ours/util')\nconst { streamReturningOperators, promiseReturningOperators } = require('./internal/streams/operators')\nconst {\n codes: { ERR_ILLEGAL_CONSTRUCTOR }\n} = require('./ours/errors')\nconst compose = require('./internal/streams/compose')\nconst { setDefaultHighWaterMark, getDefaultHighWaterMark } = require('./internal/streams/state')\nconst { pipeline } = require('./internal/streams/pipeline')\nconst { destroyer } = require('./internal/streams/destroy')\nconst eos = require('./internal/streams/end-of-stream')\nconst internalBuffer = {}\nconst promises = require('./stream/promises')\nconst utils = require('./internal/streams/utils')\nconst Stream = (module.exports = require('./internal/streams/legacy').Stream)\nStream.isDestroyed = utils.isDestroyed\nStream.isDisturbed = utils.isDisturbed\nStream.isErrored = utils.isErrored\nStream.isReadable = utils.isReadable\nStream.isWritable = utils.isWritable\nStream.Readable = require('./internal/streams/readable')\nfor (const key of ObjectKeys(streamReturningOperators)) {\n const op = streamReturningOperators[key]\n function fn(...args) {\n if (new.target) {\n throw ERR_ILLEGAL_CONSTRUCTOR()\n }\n return Stream.Readable.from(ReflectApply(op, this, args))\n }\n ObjectDefineProperty(fn, 'name', {\n __proto__: null,\n value: op.name\n })\n ObjectDefineProperty(fn, 'length', {\n __proto__: null,\n value: op.length\n })\n ObjectDefineProperty(Stream.Readable.prototype, key, {\n __proto__: null,\n value: fn,\n enumerable: false,\n configurable: true,\n writable: true\n })\n}\nfor (const key of ObjectKeys(promiseReturningOperators)) {\n const op = promiseReturningOperators[key]\n function fn(...args) {\n if (new.target) {\n throw ERR_ILLEGAL_CONSTRUCTOR()\n }\n return ReflectApply(op, this, args)\n }\n ObjectDefineProperty(fn, 'name', {\n __proto__: null,\n value: op.name\n })\n ObjectDefineProperty(fn, 'length', {\n __proto__: null,\n value: op.length\n })\n ObjectDefineProperty(Stream.Readable.prototype, key, {\n __proto__: null,\n value: fn,\n enumerable: false,\n configurable: true,\n writable: true\n })\n}\nStream.Writable = require('./internal/streams/writable')\nStream.Duplex = require('./internal/streams/duplex')\nStream.Transform = require('./internal/streams/transform')\nStream.PassThrough = require('./internal/streams/passthrough')\nStream.pipeline = pipeline\nconst { addAbortSignal } = require('./internal/streams/add-abort-signal')\nStream.addAbortSignal = addAbortSignal\nStream.finished = eos\nStream.destroy = destroyer\nStream.compose = compose\nStream.setDefaultHighWaterMark = setDefaultHighWaterMark\nStream.getDefaultHighWaterMark = getDefaultHighWaterMark\nObjectDefineProperty(Stream, 'promises', {\n __proto__: null,\n configurable: true,\n enumerable: true,\n get() {\n return promises\n }\n})\nObjectDefineProperty(pipeline, customPromisify, {\n __proto__: null,\n enumerable: true,\n get() {\n return promises.pipeline\n }\n})\nObjectDefineProperty(eos, customPromisify, {\n __proto__: null,\n enumerable: true,\n get() {\n return promises.finished\n }\n})\n\n// Backwards-compat with node 0.4.x\nStream.Stream = Stream\nStream._isUint8Array = function isUint8Array(value) {\n return value instanceof Uint8Array\n}\nStream._uint8ArrayToBuffer = function _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength)\n}\n","'use strict'\n\nconst { ArrayPrototypePop, Promise } = require('../ours/primordials')\nconst { isIterable, isNodeStream, isWebStream } = require('../internal/streams/utils')\nconst { pipelineImpl: pl } = require('../internal/streams/pipeline')\nconst { finished } = require('../internal/streams/end-of-stream')\nrequire('../../lib/stream.js')\nfunction pipeline(...streams) {\n return new Promise((resolve, reject) => {\n let signal\n let end\n const lastArg = streams[streams.length - 1]\n if (\n lastArg &&\n typeof lastArg === 'object' &&\n !isNodeStream(lastArg) &&\n !isIterable(lastArg) &&\n !isWebStream(lastArg)\n ) {\n const options = ArrayPrototypePop(streams)\n signal = options.signal\n end = options.end\n }\n pl(\n streams,\n (err, value) => {\n if (err) {\n reject(err)\n } else {\n resolve(value)\n }\n },\n {\n signal,\n end\n }\n )\n })\n}\nmodule.exports = {\n finished,\n pipeline\n}\n","module.exports = readdirGlob;\n\nconst fs = require('fs');\nconst { EventEmitter } = require('events');\nconst { Minimatch } = require('minimatch');\nconst { resolve } = require('path');\n\nfunction readdir(dir, strict) {\n return new Promise((resolve, reject) => {\n fs.readdir(dir, {withFileTypes: true} ,(err, files) => {\n if(err) {\n switch (err.code) {\n case 'ENOTDIR': // Not a directory\n if(strict) {\n reject(err);\n } else {\n resolve([]);\n }\n break;\n case 'ENOTSUP': // Operation not supported\n case 'ENOENT': // No such file or directory\n case 'ENAMETOOLONG': // Filename too long\n case 'UNKNOWN':\n resolve([]);\n break;\n case 'ELOOP': // Too many levels of symbolic links\n default:\n reject(err);\n break;\n }\n } else {\n resolve(files);\n }\n });\n });\n}\nfunction stat(file, followSymlinks) {\n return new Promise((resolve, reject) => {\n const statFunc = followSymlinks ? fs.stat : fs.lstat;\n statFunc(file, (err, stats) => {\n if(err) {\n switch (err.code) {\n case 'ENOENT':\n if(followSymlinks) {\n // Fallback to lstat to handle broken links as files\n resolve(stat(file, false)); \n } else {\n resolve(null);\n }\n break;\n default:\n resolve(null);\n break;\n }\n } else {\n resolve(stats);\n }\n });\n });\n}\n\nasync function* exploreWalkAsync(dir, path, followSymlinks, useStat, shouldSkip, strict) {\n let files = await readdir(path + dir, strict);\n for(const file of files) {\n let name = file.name;\n if(name === undefined) {\n // undefined file.name means the `withFileTypes` options is not supported by node\n // we have to call the stat function to know if file is directory or not.\n name = file;\n useStat = true;\n }\n const filename = dir + '/' + name;\n const relative = filename.slice(1); // Remove the leading /\n const absolute = path + '/' + relative;\n let stats = null;\n if(useStat || followSymlinks) {\n stats = await stat(absolute, followSymlinks);\n }\n if(!stats && file.name !== undefined) {\n stats = file;\n }\n if(stats === null) {\n stats = { isDirectory: () => false };\n }\n\n if(stats.isDirectory()) {\n if(!shouldSkip(relative)) {\n yield {relative, absolute, stats};\n yield* exploreWalkAsync(filename, path, followSymlinks, useStat, shouldSkip, false);\n }\n } else {\n yield {relative, absolute, stats};\n }\n }\n}\nasync function* explore(path, followSymlinks, useStat, shouldSkip) {\n yield* exploreWalkAsync('', path, followSymlinks, useStat, shouldSkip, true);\n}\n\n\nfunction readOptions(options) {\n return {\n pattern: options.pattern,\n dot: !!options.dot,\n noglobstar: !!options.noglobstar,\n matchBase: !!options.matchBase,\n nocase: !!options.nocase,\n ignore: options.ignore,\n skip: options.skip,\n\n follow: !!options.follow,\n stat: !!options.stat,\n nodir: !!options.nodir,\n mark: !!options.mark,\n silent: !!options.silent,\n absolute: !!options.absolute\n };\n}\n\nclass ReaddirGlob extends EventEmitter {\n constructor(cwd, options, cb) {\n super();\n if(typeof options === 'function') {\n cb = options;\n options = null;\n }\n\n this.options = readOptions(options || {});\n \n this.matchers = [];\n if(this.options.pattern) {\n const matchers = Array.isArray(this.options.pattern) ? this.options.pattern : [this.options.pattern];\n this.matchers = matchers.map( m =>\n new Minimatch(m, {\n dot: this.options.dot,\n noglobstar:this.options.noglobstar,\n matchBase:this.options.matchBase,\n nocase:this.options.nocase\n })\n );\n }\n \n this.ignoreMatchers = [];\n if(this.options.ignore) {\n const ignorePatterns = Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore];\n this.ignoreMatchers = ignorePatterns.map( ignore =>\n new Minimatch(ignore, {dot: true})\n );\n }\n \n this.skipMatchers = [];\n if(this.options.skip) {\n const skipPatterns = Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip];\n this.skipMatchers = skipPatterns.map( skip =>\n new Minimatch(skip, {dot: true})\n );\n }\n\n this.iterator = explore(resolve(cwd || '.'), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));\n this.paused = false;\n this.inactive = false;\n this.aborted = false;\n \n if(cb) {\n this._matches = []; \n this.on('match', match => this._matches.push(this.options.absolute ? match.absolute : match.relative));\n this.on('error', err => cb(err));\n this.on('end', () => cb(null, this._matches));\n }\n\n setTimeout( () => this._next(), 0);\n }\n\n _shouldSkipDirectory(relative) {\n //console.log(relative, this.skipMatchers.some(m => m.match(relative)));\n return this.skipMatchers.some(m => m.match(relative));\n }\n\n _fileMatches(relative, isDirectory) {\n const file = relative + (isDirectory ? '/' : '');\n return (this.matchers.length === 0 || this.matchers.some(m => m.match(file)))\n && !this.ignoreMatchers.some(m => m.match(file))\n && (!this.options.nodir || !isDirectory);\n }\n\n _next() {\n if(!this.paused && !this.aborted) {\n this.iterator.next()\n .then((obj)=> {\n if(!obj.done) {\n const isDirectory = obj.value.stats.isDirectory();\n if(this._fileMatches(obj.value.relative, isDirectory )) {\n let relative = obj.value.relative;\n let absolute = obj.value.absolute;\n if(this.options.mark && isDirectory) {\n relative += '/';\n absolute += '/';\n }\n if(this.options.stat) {\n this.emit('match', {relative, absolute, stat:obj.value.stats});\n } else {\n this.emit('match', {relative, absolute});\n }\n }\n this._next(this.iterator);\n } else {\n this.emit('end');\n }\n })\n .catch((err) => {\n this.abort();\n this.emit('error', err);\n if(!err.code && !this.options.silent) {\n console.error(err);\n }\n });\n } else {\n this.inactive = true;\n }\n }\n\n abort() {\n this.aborted = true;\n }\n\n pause() {\n this.paused = true;\n }\n\n resume() {\n this.paused = false;\n if(this.inactive) {\n this.inactive = false;\n this._next();\n }\n }\n}\n\n\nfunction readdirGlob(pattern, options, cb) {\n return new ReaddirGlob(pattern, options, cb);\n}\nreaddirGlob.ReaddirGlob = ReaddirGlob;","/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n",";(function (sax) { // wrapper for non-node envs\n sax.parser = function (strict, opt) { return new SAXParser(strict, opt) }\n sax.SAXParser = SAXParser\n sax.SAXStream = SAXStream\n sax.createStream = createStream\n\n // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns.\n // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)),\n // since that's the earliest that a buffer overrun could occur. This way, checks are\n // as rare as required, but as often as necessary to ensure never crossing this bound.\n // Furthermore, buffers are only tested at most once per write(), so passing a very\n // large string into write() might have undesirable effects, but this is manageable by\n // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme\n // edge case, result in creating at most one complete copy of the string passed in.\n // Set to Infinity to have unlimited buffers.\n sax.MAX_BUFFER_LENGTH = 64 * 1024\n\n var buffers = [\n 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype',\n 'procInstName', 'procInstBody', 'entity', 'attribName',\n 'attribValue', 'cdata', 'script'\n ]\n\n sax.EVENTS = [\n 'text',\n 'processinginstruction',\n 'sgmldeclaration',\n 'doctype',\n 'comment',\n 'opentagstart',\n 'attribute',\n 'opentag',\n 'closetag',\n 'opencdata',\n 'cdata',\n 'closecdata',\n 'error',\n 'end',\n 'ready',\n 'script',\n 'opennamespace',\n 'closenamespace'\n ]\n\n function SAXParser (strict, opt) {\n if (!(this instanceof SAXParser)) {\n return new SAXParser(strict, opt)\n }\n\n var parser = this\n clearBuffers(parser)\n parser.q = parser.c = ''\n parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH\n parser.opt = opt || {}\n parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags\n parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase'\n parser.tags = []\n parser.closed = parser.closedRoot = parser.sawRoot = false\n parser.tag = parser.error = null\n parser.strict = !!strict\n parser.noscript = !!(strict || parser.opt.noscript)\n parser.state = S.BEGIN\n parser.strictEntities = parser.opt.strictEntities\n parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES)\n parser.attribList = []\n\n // namespaces form a prototype chain.\n // it always points at the current tag,\n // which protos to its parent tag.\n if (parser.opt.xmlns) {\n parser.ns = Object.create(rootNS)\n }\n\n // mostly just for error reporting\n parser.trackPosition = parser.opt.position !== false\n if (parser.trackPosition) {\n parser.position = parser.line = parser.column = 0\n }\n emit(parser, 'onready')\n }\n\n if (!Object.create) {\n Object.create = function (o) {\n function F () {}\n F.prototype = o\n var newf = new F()\n return newf\n }\n }\n\n if (!Object.keys) {\n Object.keys = function (o) {\n var a = []\n for (var i in o) if (o.hasOwnProperty(i)) a.push(i)\n return a\n }\n }\n\n function checkBufferLength (parser) {\n var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10)\n var maxActual = 0\n for (var i = 0, l = buffers.length; i < l; i++) {\n var len = parser[buffers[i]].length\n if (len > maxAllowed) {\n // Text/cdata nodes can get big, and since they're buffered,\n // we can get here under normal conditions.\n // Avoid issues by emitting the text node now,\n // so at least it won't get any bigger.\n switch (buffers[i]) {\n case 'textNode':\n closeText(parser)\n break\n\n case 'cdata':\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n break\n\n case 'script':\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n break\n\n default:\n error(parser, 'Max buffer length exceeded: ' + buffers[i])\n }\n }\n maxActual = Math.max(maxActual, len)\n }\n // schedule the next check for the earliest possible buffer overrun.\n var m = sax.MAX_BUFFER_LENGTH - maxActual\n parser.bufferCheckPosition = m + parser.position\n }\n\n function clearBuffers (parser) {\n for (var i = 0, l = buffers.length; i < l; i++) {\n parser[buffers[i]] = ''\n }\n }\n\n function flushBuffers (parser) {\n closeText(parser)\n if (parser.cdata !== '') {\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n }\n if (parser.script !== '') {\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n }\n }\n\n SAXParser.prototype = {\n end: function () { end(this) },\n write: write,\n resume: function () { this.error = null; return this },\n close: function () { return this.write(null) },\n flush: function () { flushBuffers(this) }\n }\n\n var Stream\n try {\n Stream = require('stream').Stream\n } catch (ex) {\n Stream = function () {}\n }\n if (!Stream) Stream = function () {}\n\n var streamWraps = sax.EVENTS.filter(function (ev) {\n return ev !== 'error' && ev !== 'end'\n })\n\n function createStream (strict, opt) {\n return new SAXStream(strict, opt)\n }\n\n function SAXStream (strict, opt) {\n if (!(this instanceof SAXStream)) {\n return new SAXStream(strict, opt)\n }\n\n Stream.apply(this)\n\n this._parser = new SAXParser(strict, opt)\n this.writable = true\n this.readable = true\n\n var me = this\n\n this._parser.onend = function () {\n me.emit('end')\n }\n\n this._parser.onerror = function (er) {\n me.emit('error', er)\n\n // if didn't throw, then means error was handled.\n // go ahead and clear error, so we can write again.\n me._parser.error = null\n }\n\n this._decoder = null\n\n streamWraps.forEach(function (ev) {\n Object.defineProperty(me, 'on' + ev, {\n get: function () {\n return me._parser['on' + ev]\n },\n set: function (h) {\n if (!h) {\n me.removeAllListeners(ev)\n me._parser['on' + ev] = h\n return h\n }\n me.on(ev, h)\n },\n enumerable: true,\n configurable: false\n })\n })\n }\n\n SAXStream.prototype = Object.create(Stream.prototype, {\n constructor: {\n value: SAXStream\n }\n })\n\n SAXStream.prototype.write = function (data) {\n if (typeof Buffer === 'function' &&\n typeof Buffer.isBuffer === 'function' &&\n Buffer.isBuffer(data)) {\n if (!this._decoder) {\n var SD = require('string_decoder').StringDecoder\n this._decoder = new SD('utf8')\n }\n data = this._decoder.write(data)\n }\n\n this._parser.write(data.toString())\n this.emit('data', data)\n return true\n }\n\n SAXStream.prototype.end = function (chunk) {\n if (chunk && chunk.length) {\n this.write(chunk)\n }\n this._parser.end()\n return true\n }\n\n SAXStream.prototype.on = function (ev, handler) {\n var me = this\n if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {\n me._parser['on' + ev] = function () {\n var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments)\n args.splice(0, 0, ev)\n me.emit.apply(me, args)\n }\n }\n\n return Stream.prototype.on.call(me, ev, handler)\n }\n\n // this really needs to be replaced with character classes.\n // XML allows all manner of ridiculous numbers and digits.\n var CDATA = '[CDATA['\n var DOCTYPE = 'DOCTYPE'\n var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'\n var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'\n var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }\n\n // http://www.w3.org/TR/REC-xml/#NT-NameStartChar\n // This implementation works on strings, a single character at a time\n // as such, it cannot ever support astral-plane characters (10000-EFFFF)\n // without a significant breaking change to either this parser, or the\n // JavaScript language. Implementation of an emoji-capable xml parser\n // is left as an exercise for the reader.\n var nameStart = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/\n\n var nameBody = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n var entityStart = /[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/\n var entityBody = /[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n function isWhitespace (c) {\n return c === ' ' || c === '\\n' || c === '\\r' || c === '\\t'\n }\n\n function isQuote (c) {\n return c === '\"' || c === '\\''\n }\n\n function isAttribEnd (c) {\n return c === '>' || isWhitespace(c)\n }\n\n function isMatch (regex, c) {\n return regex.test(c)\n }\n\n function notMatch (regex, c) {\n return !isMatch(regex, c)\n }\n\n var S = 0\n sax.STATE = {\n BEGIN: S++, // leading byte order mark or whitespace\n BEGIN_WHITESPACE: S++, // leading whitespace\n TEXT: S++, // general stuff\n TEXT_ENTITY: S++, // & and such.\n OPEN_WAKA: S++, // <\n SGML_DECL: S++, // \n SCRIPT: S++, //