mirror of
https://github.com/docker/login-action.git
synced 2026-03-04 14:58:17 +00:00
18 lines
1.9 MiB
Generated
18 lines
1.9 MiB
Generated
import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={3311:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:o}}))}}t.ClientStreamingCall=ClientStreamingCall},9499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},800:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},6762:(e,t,n)=>{var o;o={value:true};var i=n(2554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return i.ServiceType}});var c=n(3402);o={enumerable:true,get:function(){return c.readMethodOptions}};o={enumerable:true,get:function(){return c.readMethodOption}};o={enumerable:true,get:function(){return c.readServiceOption}};var d=n(422);o={enumerable:true,get:function(){return d.RpcError}};var p=n(3474);o={enumerable:true,get:function(){return p.mergeRpcOptions}};var y=n(6407);o={enumerable:true,get:function(){return y.RpcOutputStreamController}};var C=n(5435);o={enumerable:true,get:function(){return C.TestTransport}};var Q=n(9499);o={enumerable:true,get:function(){return Q.Deferred}};o={enumerable:true,get:function(){return Q.DeferredState}};var v=n(800);o={enumerable:true,get:function(){return v.DuplexStreamingCall}};var D=n(3311);o={enumerable:true,get:function(){return D.ClientStreamingCall}};var k=n(2715);o={enumerable:true,get:function(){return k.ServerStreamingCall}};var $=n(738);o={enumerable:true,get:function(){return $.UnaryCall}};var V=n(4359);o={enumerable:true,get:function(){return V.stackIntercept}};o={enumerable:true,get:function(){return V.stackDuplexStreamingInterceptors}};o={enumerable:true,get:function(){return V.stackClientStreamingInterceptors}};o={enumerable:true,get:function(){return V.stackServerStreamingInterceptors}};o={enumerable:true,get:function(){return V.stackUnaryInterceptors}};var ee=n(4626);o={enumerable:true,get:function(){return ee.ServerCallContextController}}},3402:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const o=n(8372);function normalizeMethodInfo(e,t){var n,i,c;let d=e;d.service=t;d.localName=(n=d.localName)!==null&&n!==void 0?n:o.lowerCamelCase(d.name);d.serverStreaming=!!d.serverStreaming;d.clientStreaming=!!d.clientStreaming;d.options=(i=d.options)!==null&&i!==void 0?i:{};d.idempotency=(c=d.idempotency)!==null&&c!==void 0?c:undefined;return d}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,o){var i;const c=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;return c&&c[n]?o.fromJson(c[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,o){var i;const c=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;if(!c){return undefined}const d=c[n];if(d===undefined){return d}return o?o.fromJson(d):d}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const o=e.options;if(!o){return undefined}const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readServiceOption=readServiceOption},422:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,o]of t){e.push(` ${n}: ${o}`)}}return e.join("\n")}}t.RpcError=RpcError},4359:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const o=n(8372);function stackIntercept(e,t,n,i,c){var d,p,y,C;if(e=="unary"){let tail=(e,n,o)=>t.unary(e,n,o);for(const e of((d=i.interceptors)!==null&&d!==void 0?d:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptUnary(t,n,o,i)}return tail(n,c,i)}if(e=="serverStreaming"){let tail=(e,n,o)=>t.serverStreaming(e,n,o);for(const e of((p=i.interceptors)!==null&&p!==void 0?p:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptServerStreaming(t,n,o,i)}return tail(n,c,i)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((y=i.interceptors)!==null&&y!==void 0?y:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,o)=>e.interceptClientStreaming(t,n,o)}return tail(n,i)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((C=i.interceptors)!==null&&C!==void 0?C:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,o)=>e.interceptDuplex(t,n,o)}return tail(n,i)}o.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,o){return stackIntercept("unary",e,t,o,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,o){return stackIntercept("serverStreaming",e,t,o,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},3474:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const o=n(8372);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let i of Object.keys(t)){let c=t[i];switch(i){case"jsonOptions":n.jsonOptions=o.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=o.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(c):c.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,o]of Object.entries(e)){if(o instanceof Date)n[t]=new Date(o.getTime());else if(Array.isArray(o))n[t]=o.concat();else n[t]=o}}},6407:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const o=n(9499);const i=n(8372);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){i.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){i.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){i.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){i.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;i.assert(e,"bad state");i.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new o.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;i.assert(n.state==o.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},4626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,o,i={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=o;this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},2715:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.responses=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},2554:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const o=n(3402);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>o.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},5435:function(e,t,n){var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const i=n(422);const c=n(8372);const d=n(6407);const p=n(3474);const y=n(738);const C=n(2715);const Q=n(3311);const v=n(800);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}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 e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof i.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){c.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}c.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return o(this,void 0,void 0,(function*(){const o=[];if(this.data.response===undefined){o.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){c.assert(e.O.is(t));o.push(t)}}else if(!(this.data.response instanceof i.RpcError)){c.assert(e.O.is(this.data.response));o.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof i.RpcError){t.notifyError(this.data.response);return}for(let e of o){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof i.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof i.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return p.mergeRpcOptions({},e)}unary(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},c=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),d=c.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),p=d.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),C=d.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(p,C);this.lastInput={single:t};return new y.UnaryCall(e,i,t,c,d,p,C)}serverStreaming(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},c=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),p=new d.RpcOutputStreamController,y=c.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,p,n.abort))).then(delay(this.afterResponseDelay,n.abort)),Q=y.then((()=>this.promiseStatus())),v=y.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(Q,v);this.lastInput={single:t};return new C.ServerStreamingCall(e,i,t,c,p,Q,v)}clientStreaming(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),c=i.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),d=c.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),p=c.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(d,p);this.lastInput=new TestInputStream(this.data,t.abort);return new Q.ClientStreamingCall(e,o,this.lastInput,i,c,d,p)}duplex(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),c=new d.RpcOutputStreamController,p=i.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,c,t.abort))).then(delay(this.afterResponseDelay,t.abort)),y=p.then((()=>this.promiseStatus())),C=p.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(y,C);this.lastInput=new TestInputStream(this.data,t.abort);return new v.DuplexStreamingCall(e,o,this.lastInput,i,c,y,C)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((o,c)=>{if(t===null||t===void 0?void 0:t.aborted){c(new i.RpcError("user cancel","CANCELLED"))}else{const d=setTimeout((()=>o(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(d);c(new i.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof i.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof i.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},738:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.response=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:o}}))}}t.UnaryCall=UnaryCall},6468:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,o=-34028234663852886e22,i=4294967295,c=2147483647,d=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>c||e<d)throw new Error("invalid int 32: "+e)}t.assertInt32=assertInt32;function assertUInt32(e){if(typeof e!=="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>i||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e<o)throw new Error("invalid float 32: "+e)}t.assertFloat32=assertFloat32},6689:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let o=[];for(let e=0;e<n.length;e++)o[n[e].charCodeAt(0)]=e;o["-".charCodeAt(0)]=n.indexOf("+");o["_".charCodeAt(0)]=n.indexOf("/");function base64decode(e){let t=e.length*3/4;if(e[e.length-2]=="=")t-=2;else if(e[e.length-1]=="=")t-=1;let n=new Uint8Array(t),i=0,c=0,d,p=0;for(let t=0;t<e.length;t++){d=o[e.charCodeAt(t)];if(d===undefined){switch(e[t]){case"=":c=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error(`invalid base64 string.`)}}switch(c){case 0:p=d;c=1;break;case 1:n[i++]=p<<2|(d&48)>>4;p=d;c=2;break;case 2:n[i++]=(p&15)<<4|(d&60)>>2;p=d;c=3;break;case 3:n[i++]=(p&3)<<6|d;c=0;break}}if(c==1)throw Error(`invalid base64 string.`);return n.subarray(0,i)}t.base64decode=base64decode;function base64encode(e){let t="",o=0,i,c=0;for(let d=0;d<e.length;d++){i=e[d];switch(o){case 0:t+=n[i>>2];c=(i&3)<<4;o=1;break;case 1:t+=n[c|i>>4];c=(i&15)<<2;o=2;break;case 2:t+=n[c|i>>6];t+=n[i&63];o=0;break}}if(o){t+=n[c];t+="=";if(o==1)t+="="}return t}t.base64encode=base64encode},6690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,o,i,c)=>{let d=is(n)?n[e.symbol]:n[e.symbol]=[];d.push({no:o,wireType:i,data:c})};e.onWrite=(t,n,o)=>{for(let{no:t,wireType:i,data:c}of e.list(n))o.tag(t,i).raw(c)};e.list=(t,n)=>{if(is(t)){let o=t[e.symbol];return n?o.filter((e=>e.no==n)):o}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var o;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(o=t.WireType||(t.WireType={}))},8887:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const o=n(6690);const i=n(5579);const c=n(365);const d={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},d),e):d}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=c.varint64read;this.uint32=c.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case o.WireType.Varint:while(this.buf[this.pos++]&128){}break;case o.WireType.Bit64:this.pos+=4;case o.WireType.Bit32:this.pos+=4;break;case o.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case o.WireType.StartGroup:let n;while((n=this.tag()[1])!==o.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new i.PbLong(...this.varint64())}uint64(){return new i.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new i.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new i.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new i.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 e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},4839:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const o=n(5579);const i=n(365);const c=n(6468);const d={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},d),e):d}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e);let n=0;for(let e=0;e<this.chunks.length;e++){t.set(this.chunks[e],n);n+=this.chunks[e].length}this.chunks=[];return t}fork(){this.stack.push({chunks:this.chunks,buf:this.buf});this.chunks=[];this.buf=[];return this}join(){let e=this.finish();let t=this.stack.pop();if(!t)throw new Error("invalid state, fork stack empty");this.chunks=t.chunks;this.buf=t.buf;this.uint32(e.byteLength);return this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){c.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){c.assertInt32(e);i.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){c.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){c.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){c.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){c.assertInt32(e);e=(e<<1^e>>31)>>>0;i.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbLong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbULong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}int64(e){let t=o.PbLong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=o.PbLong.from(e),n=t.hi>>31,c=t.lo<<1^n,d=(t.hi<<1|t.lo>>>31)^n;i.varint64write(c,d,this.buf);return this}uint64(e){let t=o.PbULong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},6959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,o]of Object.entries(e))if(typeof o=="number")t.push({name:n,number:o});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},365:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];e|=(o&127)<<n;if((o&128)==0){this.assertBounds();return[e,t]}}let n=this.buf[this.pos++];e|=(n&15)<<28;t=(n&112)>>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];t|=(o&127)<<n;if((o&128)==0){this.assertBounds();return[e,t]}}throw new Error("invalid varint")}t.varint64read=varint64read;function varint64write(e,t,n){for(let o=0;o<28;o=o+7){const i=e>>>o;const c=!(i>>>7==0&&t==0);const d=(c?i|128:i)&255;n.push(d);if(!c){return}}const o=e>>>28&15|(t&7)<<4;const i=!(t>>3==0);n.push((i?o|128:o)&255);if(!i){return}for(let e=3;e<31;e=e+7){const o=t>>>e;const i=!(o>>>7==0);const c=(i?o|128:o)&255;n.push(c);if(!i){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const o=1e6;let i=0;let c=0;function add1e6digit(t,d){const p=Number(e.slice(t,d));c*=o;i=i*o+p;if(i>=n){c=c+(i/n|0);i=i%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,i,c]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let o=e&16777215;let i=(e>>>24|t<<8)>>>0&16777215;let c=t>>16&65535;let d=o+i*6777216+c*6710656;let p=i+c*8147497;let y=c*2;let C=1e7;if(d>=C){p+=Math.floor(d/C);d%=C}if(p>=C){y+=Math.floor(p/C);p%=C}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(y,0)+decimalFrom1e7(p,y)+decimalFrom1e7(d,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},8372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(8369);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return o.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return o.isJsonObject}});var i=n(6689);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return i.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return i.base64encode}});var c=n(5424);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return c.utf8read}});var d=n(6690);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return d.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return d.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return d.UnknownFieldHandler}});var p=n(8887);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return p.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return p.binaryReadOptions}});var y=n(4839);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return y.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return y.binaryWriteOptions}});var C=n(5579);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return C.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return C.PbULong}});var Q=n(3389);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return Q.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return Q.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return Q.mergeJsonOptions}});var v=n(1371);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return v.MESSAGE_TYPE}});var D=n(4172);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return D.MessageType}});var k=n(528);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return k.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return k.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return k.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return k.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return k.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return k.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return k.readMessageOption}});var $=n(5649);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return $.ReflectionTypeCheck}});var V=n(868);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return V.reflectionCreate}});var ee=n(412);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return ee.reflectionScalarDefault}});var te=n(8674);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return te.reflectionMergePartial}});var re=n(8197);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return re.reflectionEquals}});var ne=n(2161);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return ne.ReflectionBinaryReader}});var se=n(5325);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return se.ReflectionBinaryWriter}});var oe=n(5240);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return oe.ReflectionJsonReader}});var ie=n(5572);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return ie.ReflectionJsonWriter}});var ae=n(5556);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return ae.containsMessageType}});var ce=n(4857);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return ce.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return ce.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return ce.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return ce.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return ce.getSelectedOneofValue}});var le=n(6959);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return le.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return le.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return le.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return le.isEnumObject}});var ue=n(4959);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return ue.lowerCamelCase}});var de=n(6468);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return de.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return de.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return de.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return de.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return de.assertFloat32}})},3389:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},o={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,o;let i=Object.assign(Object.assign({},e),t);i.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(o=t===null||t===void 0?void 0:t.typeRegistry)!==null&&o!==void 0?o:[]];return i}t.mergeJsonOptions=mergeJsonOptions},8369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i=="_"){t=true}else if(/\d/.test(i)){n.push(i);t=true}else if(t){n.push(i.toUpperCase());t=false}else if(o==0){n.push(i.toLowerCase())}else{n.push(i)}}return n.join("")}t.lowerCamelCase=lowerCamelCase},1371:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},4172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const o=n(1371);const i=n(528);const c=n(5649);const d=n(5240);const p=n(5572);const y=n(2161);const C=n(5325);const Q=n(868);const v=n(8674);const D=n(8369);const k=n(3389);const $=n(8197);const V=n(4839);const ee=n(8887);const te=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const re=te[o.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(i.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};re.value=this;this.messagePrototype=Object.create(null,te);this.refTypeCheck=new c.ReflectionTypeCheck(this);this.refJsonReader=new d.ReflectionJsonReader(this);this.refJsonWriter=new p.ReflectionJsonWriter(this);this.refBinReader=new y.ReflectionBinaryReader(this);this.refBinWriter=new C.ReflectionBinaryWriter(this)}create(e){let t=Q.reflectionCreate(this);if(e!==undefined){v.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();v.reflectionMergePartial(this,t,e);return t}equals(e,t){return $.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){v.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=ee.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,k.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,k.jsonWriteOptions(t))}toJsonString(e,t){var n;let o=this.toJson(e,t);return JSON.stringify(o,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=V.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let o=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,o,t);return o}throw new Error(`Unable to parse message ${this.typeName} from JSON ${D.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create();this.refBinReader.read(e,i,n,t);return i}}t.MessageType=MessageType},4857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},5579:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const o=n(365);let i;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";i=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)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 d=4294967296;const p=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*d+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(e<i.UMIN)throw new Error("signed value for ulong");if(e>i.UMAX)throw new Error("ulong too large");i.V.setBigUint64(0,e,true);return new PbULong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!c.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/d)}throw new Error("unknown value "+typeof e)}toString(){return i?this.toBigInt().toString():o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(e<i.MIN)throw new Error("signed long too small");if(e>i.MAX)throw new Error("signed long too large");i.V.setBigInt64(0,e,true);return new PbLong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!c.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t){if(i>p||i==p&&n!=0)throw new Error("signed long too small")}else if(i>=p)throw new Error("signed long too large");let y=new PbLong(n,i);return t?y.negate():y;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/d):new PbLong(-e,-e/d).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&p)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(i)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+o.int64toString(e.lo,e.hi)}return o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},5424:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],o=[],i=0,c;let d=e.length;while(t<d){c=e[t++];if(c<128)o[i++]=c;else if(c>191&&c<224)o[i++]=(c&31)<<6|e[t++]&63;else if(c>239&&c<365){c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;o[i++]=55296+(c>>10);o[i++]=56320+(c&1023)}else o[i++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(i>8191){n.push(fromCharCodes(o));i=0}}if(n.length){if(i)n.push(fromCharCodes(o.slice(0,i)));return n.join("")}return fromCharCodes(o.slice(0,i))}t.utf8read=utf8read},2161:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const o=n(6690);const i=n(528);const c=n(2344);const d=n(412);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,c){this.prepare();const d=c===undefined?e.len:e.pos+c;while(e.pos<d){const[c,d]=e.tag(),p=this.fieldNoToField.get(c);if(!p){let i=n.readUnknownField;if(i=="throw")throw new Error(`Unknown field ${c} (wire type ${d}) for ${this.info.typeName}`);let p=e.skip(d);if(i!==false)(i===true?o.UnknownFieldHandler.onRead:i)(this.info.typeName,t,c,d,p);continue}let y=t,C=p.repeat,Q=p.localName;if(p.oneof){y=y[p.oneof];if(y.oneofKind!==Q)y=t[p.oneof]={oneofKind:Q}}switch(p.kind){case"scalar":case"enum":let t=p.kind=="enum"?i.ScalarType.INT32:p.T;let c=p.kind=="scalar"?p.L:undefined;if(C){let n=y[Q];if(d==o.WireType.LengthDelimited&&t!=i.ScalarType.STRING&&t!=i.ScalarType.BYTES){let o=e.uint32()+e.pos;while(e.pos<o)n.push(this.scalar(e,t,c))}else n.push(this.scalar(e,t,c))}else y[Q]=this.scalar(e,t,c);break;case"message":if(C){let t=y[Q];let o=p.T().internalBinaryRead(e,e.uint32(),n);t.push(o)}else y[Q]=p.T().internalBinaryRead(e,e.uint32(),n,y[Q]);break;case"map":let[v,D]=this.mapEntry(p,e,n);y[Q][v]=D;break}}}mapEntry(e,t,n){let o=t.uint32();let c=t.pos+o;let p=undefined;let y=undefined;while(t.pos<c){let[o,c]=t.tag();switch(o){case 1:if(e.K==i.ScalarType.BOOL)p=t.bool().toString();else p=this.scalar(t,e.K,i.LongType.STRING);break;case 2:switch(e.V.kind){case"scalar":y=this.scalar(t,e.V.T,e.V.L);break;case"enum":y=t.int32();break;case"message":y=e.V.T().internalBinaryRead(t,t.uint32(),n);break}break;default:throw new Error(`Unknown field ${o} (wire type ${c}) in map entry for ${this.info.typeName}#${e.name}`)}}if(p===undefined){let t=d.reflectionScalarDefault(e.K);p=e.K==i.ScalarType.BOOL?t.toString():t}if(y===undefined)switch(e.V.kind){case"scalar":y=d.reflectionScalarDefault(e.V.T,e.V.L);break;case"enum":y=0;break;case"message":y=e.V.T().create();break}return[p,y]}scalar(e,t,n){switch(t){case i.ScalarType.INT32:return e.int32();case i.ScalarType.STRING:return e.string();case i.ScalarType.BOOL:return e.bool();case i.ScalarType.DOUBLE:return e.double();case i.ScalarType.FLOAT:return e.float();case i.ScalarType.INT64:return c.reflectionLongConvert(e.int64(),n);case i.ScalarType.UINT64:return c.reflectionLongConvert(e.uint64(),n);case i.ScalarType.FIXED64:return c.reflectionLongConvert(e.fixed64(),n);case i.ScalarType.FIXED32:return e.fixed32();case i.ScalarType.BYTES:return e.bytes();case i.ScalarType.UINT32:return e.uint32();case i.ScalarType.SFIXED32:return e.sfixed32();case i.ScalarType.SFIXED64:return c.reflectionLongConvert(e.sfixed64(),n);case i.ScalarType.SINT32:return e.sint32();case i.ScalarType.SINT64:return c.reflectionLongConvert(e.sint64(),n)}}}t.ReflectionBinaryReader=ReflectionBinaryReader},5325:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const o=n(6690);const i=n(528);const c=n(6468);const d=n(5579);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const o of this.fields){let d,p,y=o.repeat,C=o.localName;if(o.oneof){const t=e[o.oneof];if(t.oneofKind!==C)continue;d=t[C];p=true}else{d=e[C];p=false}switch(o.kind){case"scalar":case"enum":let e=o.kind=="enum"?i.ScalarType.INT32:o.T;if(y){c.assert(Array.isArray(d));if(y==i.RepeatType.PACKED)this.packed(t,e,o.no,d);else for(const n of d)this.scalar(t,e,o.no,n,true)}else if(d===undefined)c.assert(o.opt);else this.scalar(t,e,o.no,d,p||o.opt);break;case"message":if(y){c.assert(Array.isArray(d));for(const e of d)this.message(t,n,o.T(),o.no,e)}else{this.message(t,n,o.T(),o.no,d)}break;case"map":c.assert(typeof d=="object"&&d!==null);for(const[e,i]of Object.entries(d))this.mapEntry(t,n,o,e,i);break}}let d=n.writeUnknownFields;if(d!==false)(d===true?o.UnknownFieldHandler.onWrite:d)(this.info.typeName,e,t)}mapEntry(e,t,n,d,p){e.tag(n.no,o.WireType.LengthDelimited);e.fork();let y=d;switch(n.K){case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.UINT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:y=Number.parseInt(d);break;case i.ScalarType.BOOL:c.assert(d=="true"||d=="false");y=d=="true";break}this.scalar(e,n.K,1,y,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,p,true);break;case"enum":this.scalar(e,i.ScalarType.INT32,2,p,true);break;case"message":this.message(e,t,n.V.T(),2,p);break}e.join()}message(e,t,n,i,c){if(c===undefined)return;n.internalBinaryWrite(c,e.tag(i,o.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,o,i){let[c,d,p]=this.scalarInfo(t,o);if(!p||i){e.tag(n,c);e[d](o)}}packed(e,t,n,d){if(!d.length)return;c.assert(t!==i.ScalarType.BYTES&&t!==i.ScalarType.STRING);e.tag(n,o.WireType.LengthDelimited);e.fork();let[,p]=this.scalarInfo(t);for(let t=0;t<d.length;t++)e[p](d[t]);e.join()}scalarInfo(e,t){let n=o.WireType.Varint;let c;let p=t===undefined;let y=t===0;switch(e){case i.ScalarType.INT32:c="int32";break;case i.ScalarType.STRING:y=p||!t.length;n=o.WireType.LengthDelimited;c="string";break;case i.ScalarType.BOOL:y=t===false;c="bool";break;case i.ScalarType.UINT32:c="uint32";break;case i.ScalarType.DOUBLE:n=o.WireType.Bit64;c="double";break;case i.ScalarType.FLOAT:n=o.WireType.Bit32;c="float";break;case i.ScalarType.INT64:y=p||d.PbLong.from(t).isZero();c="int64";break;case i.ScalarType.UINT64:y=p||d.PbULong.from(t).isZero();c="uint64";break;case i.ScalarType.FIXED64:y=p||d.PbULong.from(t).isZero();n=o.WireType.Bit64;c="fixed64";break;case i.ScalarType.BYTES:y=p||!t.byteLength;n=o.WireType.LengthDelimited;c="bytes";break;case i.ScalarType.FIXED32:n=o.WireType.Bit32;c="fixed32";break;case i.ScalarType.SFIXED32:n=o.WireType.Bit32;c="sfixed32";break;case i.ScalarType.SFIXED64:y=p||d.PbLong.from(t).isZero();n=o.WireType.Bit64;c="sfixed64";break;case i.ScalarType.SINT32:c="sint32";break;case i.ScalarType.SINT64:y=p||d.PbLong.from(t).isZero();c="sint64";break}return[n,c,p||y]}}t.ReflectionBinaryWriter=ReflectionBinaryWriter},5556:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const o=n(1371);function containsMessageType(e){return e[o.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},868:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const o=n(412);const i=n(1371);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},i.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=o.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},8197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const o=n(528);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let c of e.fields){let e=c.localName;let d=c.oneof?t[c.oneof][e]:t[e];let p=c.oneof?n[c.oneof][e]:n[e];switch(c.kind){case"enum":case"scalar":let e=c.kind=="enum"?o.ScalarType.INT32:c.T;if(!(c.repeat?repeatedPrimitiveEq(e,d,p):primitiveEq(e,d,p)))return false;break;case"map":if(!(c.V.kind=="message"?repeatedMsgEq(c.V.T(),i(d),i(p)):repeatedPrimitiveEq(c.V.kind=="enum"?o.ScalarType.INT32:c.V.T,i(d),i(p))))return false;break;case"message":let t=c.T();if(!(c.repeat?repeatedMsgEq(t,d,p):t.equals(d,p)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const i=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==o.ScalarType.BYTES)return false;let i=t;let c=n;if(i.length!==c.length)return false;for(let e=0;e<i.length;e++)if(i[e]!=c[e])return false;return true}function repeatedPrimitiveEq(e,t,n){if(t.length!==n.length)return false;for(let o=0;o<t.length;o++)if(!primitiveEq(e,t[o],n[o]))return false;return true}function repeatedMsgEq(e,t,n){if(t.length!==n.length)return false;for(let o=0;o<t.length;o++)if(!e.equals(t[o],n[o]))return false;return true}},528:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const o=n(4959);var i;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(i=t.ScalarType||(t.ScalarType={}));var c;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(c=t.LongType||(t.LongType={}));var d;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(d=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,i,c;e.localName=(t=e.localName)!==null&&t!==void 0?t:o.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:o.lowerCamelCase(e.name);e.repeat=(i=e.repeat)!==null&&i!==void 0?i:d.NO;e.opt=(c=e.opt)!==null&&c!==void 0?c:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,o){var i;const c=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;return c&&c[n]?o.fromJson(c[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,o){var i;const c=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;if(!c){return undefined}const d=c[n];if(d===undefined){return d}return o?o.fromJson(d):d}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const o=e.options;const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readMessageOption=readMessageOption},5240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const o=n(8369);const i=n(6689);const c=n(528);const d=n(5579);const p=n(6468);const y=n(2344);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=o.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const i=[];for(const[d,p]of Object.entries(e)){const e=this.fMap[d];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${d}`);continue}const y=e.localName;let C;if(e.oneof){if(p===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(i.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(e.oneof);C=t[e.oneof]={oneofKind:y}}else{C=t}if(e.kind=="map"){if(p===null){continue}this.assert(o.isJsonObject(p),e.name,p);const t=C[y];for(const[o,i]of Object.entries(p)){this.assert(i!==null,e.name+" map value",null);let d;switch(e.V.kind){case"message":d=e.V.T().internalJsonRead(i,n);break;case"enum":d=this.enum(e.V.T(),i,e.name,n.ignoreUnknownFields);if(d===false)continue;break;case"scalar":d=this.scalar(i,e.V.T,e.V.L,e.name);break}this.assert(d!==undefined,e.name+" map value",i);let p=o;if(e.K==c.ScalarType.BOOL)p=p=="true"?true:p=="false"?false:p;p=this.scalar(p,e.K,c.LongType.STRING,e.name).toString();t[p]=d}}else if(e.repeat){if(p===null)continue;this.assert(Array.isArray(p),e.name,p);const t=C[y];for(const o of p){this.assert(o!==null,e.name,null);let i;switch(e.kind){case"message":i=e.T().internalJsonRead(o,n);break;case"enum":i=this.enum(e.T(),o,e.name,n.ignoreUnknownFields);if(i===false)continue;break;case"scalar":i=this.scalar(o,e.T,e.L,e.name);break}this.assert(i!==undefined,e.name,p);t.push(i)}}else{switch(e.kind){case"message":if(p===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}C[y]=e.T().internalJsonRead(p,n,C[y]);break;case"enum":if(p===null)continue;let t=this.enum(e.T(),p,e.name,n.ignoreUnknownFields);if(t===false)continue;C[y]=t;break;case"scalar":if(p===null)continue;C[y]=this.scalar(p,e.T,e.L,e.name);break}}}}enum(e,t,n,o){if(e[0]=="google.protobuf.NullValue")p.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":p.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let i=t;if(e[2]&&t.substring(0,e[2].length)===e[2])i=t.substring(e[2].length);let c=e[1][i];if(typeof c==="undefined"&&o){return false}p.assert(typeof c=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return c}p.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,o){let C;try{switch(t){case c.ScalarType.DOUBLE:case c.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){C="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){C="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let o=Number(e);if(Number.isNaN(o)){C="not a number";break}if(!Number.isFinite(o)){C="too large or small";break}if(t==c.ScalarType.FLOAT)p.assertFloat32(o);return o;case c.ScalarType.INT32:case c.ScalarType.FIXED32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:case c.ScalarType.UINT32:if(e===null)return 0;let Q;if(typeof e=="number")Q=e;else if(e==="")C="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)C="extra whitespace";else Q=Number(e)}if(Q===undefined)break;if(t==c.ScalarType.UINT32)p.assertUInt32(Q);else p.assertInt32(Q);return Q;case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:if(e===null)return y.reflectionLongConvert(d.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(d.PbLong.from(e),n);case c.ScalarType.FIXED64:case c.ScalarType.UINT64:if(e===null)return y.reflectionLongConvert(d.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(d.PbULong.from(e),n);case c.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case c.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){C="extra whitespace";break}try{encodeURIComponent(e)}catch(C){C="invalid UTF8";break}return e;case c.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return i.base64decode(e)}}catch(e){C=e.message}this.assert(false,o+(C?" - "+C:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},5572:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const o=n(6689);const i=n(5579);const c=n(528);const d=n(6468);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},o=e;for(const e of this.fields){if(!e.oneof){let i=this.field(e,o[e.localName],t);if(i!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=i;continue}const i=o[e.oneof];if(i.oneofKind!==e.localName)continue;const c=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let p=this.field(e,i[e.localName],c);d.assert(p!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=p}return n}field(e,t,n){let o=undefined;if(e.kind=="map"){d.assert(typeof t=="object"&&t!==null);const i={};switch(e.V.kind){case"scalar":for(const[n,o]of Object.entries(t)){const t=this.scalar(e.V.T,o,e.name,false,true);d.assert(t!==undefined);i[n.toString()]=t}break;case"message":const o=e.V.T();for(const[c,p]of Object.entries(t)){const t=this.message(o,p,e.name,n);d.assert(t!==undefined);i[c.toString()]=t}break;case"enum":const c=e.V.T();for(const[o,p]of Object.entries(t)){d.assert(p===undefined||typeof p=="number");const t=this.enum(c,p,e.name,false,true,n.enumAsInteger);d.assert(t!==undefined);i[o.toString()]=t}break}if(n.emitDefaultValues||Object.keys(i).length>0)o=i}else if(e.repeat){d.assert(Array.isArray(t));const i=[];switch(e.kind){case"scalar":for(let n=0;n<t.length;n++){const o=this.scalar(e.T,t[n],e.name,e.opt,true);d.assert(o!==undefined);i.push(o)}break;case"enum":const o=e.T();for(let c=0;c<t.length;c++){d.assert(t[c]===undefined||typeof t[c]=="number");const p=this.enum(o,t[c],e.name,e.opt,true,n.enumAsInteger);d.assert(p!==undefined);i.push(p)}break;case"message":const c=e.T();for(let o=0;o<t.length;o++){const p=this.message(c,t[o],e.name,n);d.assert(p!==undefined);i.push(p)}break}if(n.emitDefaultValues||i.length>0||n.emitDefaultValues)o=i}else{switch(e.kind){case"scalar":o=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":o=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":o=this.message(e.T(),t,e.name,n);break}}return o}enum(e,t,n,o,i,c){if(e[0]=="google.protobuf.NullValue")return!i&&!o?undefined:null;if(t===undefined){d.assert(o);return undefined}if(t===0&&!i&&!o)return undefined;d.assert(typeof t=="number");d.assert(Number.isInteger(t));if(c||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,o){if(t===undefined)return o.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,o)}scalar(e,t,n,p,y){if(t===undefined){d.assert(p);return undefined}const C=y||p;switch(e){case c.ScalarType.INT32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:if(t===0)return C?0:undefined;d.assertInt32(t);return t;case c.ScalarType.FIXED32:case c.ScalarType.UINT32:if(t===0)return C?0:undefined;d.assertUInt32(t);return t;case c.ScalarType.FLOAT:d.assertFloat32(t);case c.ScalarType.DOUBLE:if(t===0)return C?0:undefined;d.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case c.ScalarType.STRING:if(t==="")return C?"":undefined;d.assert(typeof t=="string");return t;case c.ScalarType.BOOL:if(t===false)return C?false:undefined;d.assert(typeof t=="boolean");return t;case c.ScalarType.UINT64:case c.ScalarType.FIXED64:d.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=i.PbULong.from(t);if(e.isZero()&&!C)return undefined;return e.toString();case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:d.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=i.PbLong.from(t);if(n.isZero()&&!C)return undefined;return n.toString();case c.ScalarType.BYTES:d.assert(t instanceof Uint8Array);if(!t.byteLength)return C?"":undefined;return o.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},2344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const o=n(528);function reflectionLongConvert(e,t){switch(t){case o.LongType.BIGINT:return e.toBigInt();case o.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},8674:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let o,i=n,c;for(let n of e.fields){let e=n.localName;if(n.oneof){const d=i[n.oneof];if((d===null||d===void 0?void 0:d.oneofKind)==undefined){continue}o=d[e];c=t[n.oneof];c.oneofKind=d.oneofKind;if(o==undefined){delete c[e];continue}}else{o=i[e];c=t;if(o==undefined){continue}}if(n.repeat)c[e].length=o.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t<o.length;t++)c[e][t]=o[t];else c[e]=o;break;case"message":let t=n.T();if(n.repeat)for(let n=0;n<o.length;n++)c[e][n]=t.create(o[n]);else if(c[e]===undefined)c[e]=t.create(o);else t.mergePartial(c[e],o);break;case"map":switch(n.V.kind){case"scalar":case"enum":Object.assign(c[e],o);break;case"message":let t=n.V.T();for(let n of Object.keys(o))c[e][n]=t.create(o[n]);break}break}}}t.reflectionMergePartial=reflectionMergePartial},412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const o=n(528);const i=n(2344);const c=n(5579);function reflectionScalarDefault(e,t=o.LongType.STRING){switch(e){case o.ScalarType.BOOL:return false;case o.ScalarType.UINT64:case o.ScalarType.FIXED64:return i.reflectionLongConvert(c.PbULong.ZERO,t);case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:return i.reflectionLongConvert(c.PbLong.ZERO,t);case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return 0;case o.ScalarType.BYTES:return new Uint8Array(0);case o.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},5649:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const o=n(528);const i=n(4857);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let o of this.fields){if(o.oneof){if(!n.includes(o.oneof)){n.push(o.oneof);e.push(o.oneof);t.push(o.oneof)}}else{t.push(o.localName);switch(o.kind){case"scalar":case"enum":if(!o.opt||o.repeat)e.push(o.localName);break;case"message":if(o.repeat)e.push(o.localName);break;case"map":e.push(o.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let o=Object.keys(e),c=this.data;if(o.length<c.req.length||c.req.some((e=>!o.includes(e))))return false;if(!n){if(o.some((e=>!c.known.includes(e))))return false}if(t<1){return true}for(const o of c.oneofs){const c=e[o];if(!i.isOneofGroup(c))return false;if(c.oneofKind===undefined)continue;const d=this.fields.find((e=>e.localName===c.oneofKind));if(!d)return false;if(!this.field(c[c.oneofKind],d,n,t))return false}for(const o of this.fields){if(o.oneof!==undefined)continue;if(!this.field(e[o.localName],o,n,t))return false}return true}field(e,t,n,i){let c=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(c)return this.scalars(e,t.T,i,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(c)return this.scalars(e,o.ScalarType.INT32,i);return this.scalar(e,o.ScalarType.INT32);case"message":if(e===undefined)return true;if(c)return this.messages(e,t.T(),n,i);return this.message(e,t.T(),n,i);case"map":if(typeof e!="object"||e===null)return false;if(i<2)return true;if(!this.mapKeys(e,t.K,i))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,i,t.V.L);case"enum":return this.scalars(Object.values(e),o.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),t.V.T(),n,i)}break}return true}message(e,t,n,o){if(n){return t.isAssignable(e,o)}return t.is(e,o)}messages(e,t,n,o){if(!Array.isArray(e))return false;if(o<2)return true;if(n){for(let n=0;n<e.length&&n<o;n++)if(!t.isAssignable(e[n],o-1))return false}else{for(let n=0;n<e.length&&n<o;n++)if(!t.is(e[n],o-1))return false}return true}scalar(e,t,n){let i=typeof e;switch(t){case o.ScalarType.UINT64:case o.ScalarType.FIXED64:case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:switch(n){case o.LongType.BIGINT:return i=="bigint";case o.LongType.NUMBER:return i=="number"&&!isNaN(e);default:return i=="string"}case o.ScalarType.BOOL:return i=="boolean";case o.ScalarType.STRING:return i=="string";case o.ScalarType.BYTES:return e instanceof Uint8Array;case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return i=="number"&&!isNaN(e);default:return i=="number"&&Number.isInteger(e)}}scalars(e,t,n,o){if(!Array.isArray(e))return false;if(n<2)return true;if(Array.isArray(e))for(let i=0;i<e.length&&i<n;i++)if(!this.scalar(e[i],t,o))return false;return true}mapKeys(e,t,n){let i=Object.keys(e);switch(t){case o.ScalarType.INT32:case o.ScalarType.FIXED32:case o.ScalarType.SFIXED32:case o.ScalarType.SINT32:case o.ScalarType.UINT32:return this.scalars(i.slice(0,n).map((e=>parseInt(e))),t,n);case o.ScalarType.BOOL:return this.scalars(i.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(i,t,n,o.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},9659:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),c=0;c<n.length;c++)if(n[c]!=="default")o(t,e,n[c]);i(t,e);return t}}();var d=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.HttpClientResponse=t.HttpClientError=t.MediaTypes=t.Headers=t.HttpCodes=void 0;t.getProxyUrl=getProxyUrl;t.isHttps=isHttps;const p=c(n(8611));const y=c(n(5692));const C=c(n(3335));const Q=c(n(770));const v=n(6752);var D;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(D||(t.HttpCodes=D={}));var k;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(k||(t.Headers=k={}));var $;(function(e){e["ApplicationJson"]="application/json"})($||(t.MediaTypes=$={}));function getProxyUrl(e){const t=C.getProxyUrl(new URL(e));return t?t.href:""}const V=[D.MovedPermanently,D.ResourceMoved,D.SeeOther,D.TemporaryRedirect,D.PermanentRedirect];const ee=[D.BadGateway,D.ServiceUnavailable,D.GatewayTimeout];const te=["OPTIONS","GET","DELETE","HEAD"];const re=10;const ne=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return d(this,void 0,void 0,(function*(){return new Promise((e=>d(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return d(this,void 0,void 0,(function*(){return new Promise((e=>d(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,n){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=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return d(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return d(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return d(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return d(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return d(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e){return d(this,arguments,void 0,(function*(e,t={}){t[k.Accept]=this._getExistingOrDefaultHeader(t,k.Accept,$.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,$.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,$.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,$.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,$.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,$.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,$.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return d(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let c=this._prepareRequest(e,i,o);const d=this._allowRetries&&te.includes(e)?this._maxRetries+1:1;let p=0;let y;do{y=yield this.requestRaw(c,n);if(y&&y.message&&y.message.statusCode===D.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,c,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&V.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const d=y.message.headers["location"];if(!d){break}const p=new URL(d);if(i.protocol==="https:"&&i.protocol!==p.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 y.readBody();if(p.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}c=this._prepareRequest(e,p,o);y=yield this.requestRaw(c,n);t--}if(!y.message.statusCode||!ee.includes(y.message.statusCode)){return y}p+=1;if(p<d){yield y.readBody();yield this._performExponentialBackoff(p)}}while(p<d);return y}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return d(this,void 0,void 0,(function*(){return new Promise(((n,o)=>{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let c;i.on("socket",(e=>{c=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=C.getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?y:p;const c=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):c;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){o=typeof e==="number"?e.toString():e}}const i=e[t];if(i!==undefined){return typeof i==="number"?i.toString():i}if(o!==undefined){return o}return n}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[k.ContentType];if(e){if(typeof e==="number"){n=String(e)}else if(Array.isArray(e)){n=e.join(", ")}else{n=e}}}const o=e[k.ContentType];if(o!==undefined){if(typeof o==="number"){return String(o)}else if(Array.isArray(o)){return o.join(", ")}else{return o}}if(n!==undefined){return n}return t}_getAgent(e){let t;const n=C.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||p.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const d=n.protocol==="https:";if(i){o=d?Q.httpsOverHttps:Q.httpsOverHttp}else{o=d?Q.httpOverHttps:Q.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=i?new y.Agent(e):new p.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new v.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const n=process.env["ACTIONS_ORCHESTRATION_ID"];if(n){const e=n.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return d(this,void 0,void 0,(function*(){e=Math.min(re,e);const t=ne*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return d(this,void 0,void 0,(function*(){return new Promise(((n,o)=>d(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const c={statusCode:i,result:null,headers:{}};if(i===D.NotFound){n(c)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let d;let p;try{p=yield e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){d=JSON.parse(p,dateTimeDeserializer)}else{d=JSON.parse(p)}c.result=d}c.headers=e.message.headers}catch(e){}if(i>299){let e;if(d&&d.message){e=d.message}else if(p&&p.length>0){e=p}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=c.result;o(t)}else{n(c)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},3335:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getProxyUrl=getProxyUrl;t.checkBypass=checkBypass;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},3182:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRPUBLICHttpAuthSchemeProvider=t.defaultECRPUBLICHttpAuthSchemeParametersProvider=void 0;const o=n(8704);const i=n(6324);const defaultECRPUBLICHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRPUBLICHttpAuthSchemeParametersProvider=defaultECRPUBLICHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRPUBLICHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRPUBLICHttpAuthSchemeProvider=defaultECRPUBLICHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},6072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const c=n(1829);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(c.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},1829:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",c="ref";const d=true,p="isSet",y="booleanEquals",C="error",Q="endpoint",v="tree",D="PartitionResult",k="getAttr",$={[n]:false,type:"string"},V={[n]:true,default:false,type:"boolean"},ee={[c]:"Endpoint"},te={[o]:y,[i]:[{[c]:"UseFIPS"},true]},re={[o]:y,[i]:[{[c]:"UseDualStack"},true]},ne={},se={[o]:k,[i]:[{[c]:D},"supportsFIPS"]},oe={[c]:D},ie={[o]:y,[i]:[true,{[o]:k,[i]:[oe,"supportsDualStack"]}]},ae=[te],ce=[re],le=[{[c]:"Region"}];const ue={version:"1.0",parameters:{Region:$,UseDualStack:V,UseFIPS:V,Endpoint:$},rules:[{conditions:[{[o]:p,[i]:[ee]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:C},{conditions:ce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:C},{endpoint:{url:ee,properties:ne,headers:ne},type:Q}],type:v},{conditions:[{[o]:p,[i]:le}],rules:[{conditions:[{[o]:"aws.partition",[i]:le,assign:D}],rules:[{conditions:[te,re],rules:[{conditions:[{[o]:y,[i]:[d,se]},ie],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:Q}],type:v},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:C}],type:v},{conditions:ae,rules:[{conditions:[{[o]:y,[i]:[se,d]}],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:Q}],type:v},{error:"FIPS is enabled but this partition does not support FIPS",type:C}],type:v},{conditions:ce,rules:[{conditions:[ie],rules:[{conditions:[{[o]:"stringEquals",[i]:["aws",{[o]:k,[i]:[oe,"name"]}]}],endpoint:{url:"https://ecr-public.{Region}.api.aws",properties:ne,headers:ne},type:Q},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:Q}],type:v},{error:"DualStack is enabled but this partition does not support DualStack",type:C}],type:v},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:Q}],type:v}],type:v},{error:"Invalid Configuration: Missing Region",type:C}]};t.ruleSet=ue},9821:(e,t,n)=>{var o=n(2590);var i=n(5242);var c=n(1568);var d=n(2959);var p=n(9316);var y=n(402);var C=n(6890);var Q=n(7212);var v=n(99);var D=n(9618);var k=n(1411);var $=n(3182);var V=n(8199);var ee=n(6463);var te=n(2356);var re=n(3917);var ne=n(977);var se=n(3303);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr-public"});const oe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(ee.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),te.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,ee.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),te.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRPUBLICClient extends k.Client{config;constructor(...[e]){const t=V.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const ee=D.resolveRetryConfig(k);const te=p.resolveRegionConfig(ee);const re=o.resolveHostHeaderConfig(te);const ne=v.resolveEndpointConfig(re);const se=$.resolveHttpAuthSchemeConfig(ne);const oe=resolveRuntimeExtensions(se,e?.extensions||[]);this.config=oe;this.middlewareStack.use(C.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(Q.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(c.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:$.defaultECRPUBLICHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchCheckLayerAvailabilityCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchCheckLayerAvailability",{}).n("ECRPUBLICClient","BatchCheckLayerAvailabilityCommand").sc(re.BatchCheckLayerAvailability$).build()){}class BatchDeleteImageCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchDeleteImage",{}).n("ECRPUBLICClient","BatchDeleteImageCommand").sc(re.BatchDeleteImage$).build()){}class CompleteLayerUploadCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CompleteLayerUpload",{}).n("ECRPUBLICClient","CompleteLayerUploadCommand").sc(re.CompleteLayerUpload$).build()){}class CreateRepositoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CreateRepository",{}).n("ECRPUBLICClient","CreateRepositoryCommand").sc(re.CreateRepository$).build()){}class DeleteRepositoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepository",{}).n("ECRPUBLICClient","DeleteRepositoryCommand").sc(re.DeleteRepository$).build()){}class DeleteRepositoryPolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepositoryPolicy",{}).n("ECRPUBLICClient","DeleteRepositoryPolicyCommand").sc(re.DeleteRepositoryPolicy$).build()){}class DescribeImagesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImages",{}).n("ECRPUBLICClient","DescribeImagesCommand").sc(re.DescribeImages$).build()){}class DescribeImageTagsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImageTags",{}).n("ECRPUBLICClient","DescribeImageTagsCommand").sc(re.DescribeImageTags$).build()){}class DescribeRegistriesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRegistries",{}).n("ECRPUBLICClient","DescribeRegistriesCommand").sc(re.DescribeRegistries$).build()){}class DescribeRepositoriesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRepositories",{}).n("ECRPUBLICClient","DescribeRepositoriesCommand").sc(re.DescribeRepositories$).build()){}class GetAuthorizationTokenCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetAuthorizationToken",{}).n("ECRPUBLICClient","GetAuthorizationTokenCommand").sc(re.GetAuthorizationToken$).build()){}class GetRegistryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRegistryCatalogData",{}).n("ECRPUBLICClient","GetRegistryCatalogDataCommand").sc(re.GetRegistryCatalogData$).build()){}class GetRepositoryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryCatalogData",{}).n("ECRPUBLICClient","GetRepositoryCatalogDataCommand").sc(re.GetRepositoryCatalogData$).build()){}class GetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryPolicy",{}).n("ECRPUBLICClient","GetRepositoryPolicyCommand").sc(re.GetRepositoryPolicy$).build()){}class InitiateLayerUploadCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","InitiateLayerUpload",{}).n("ECRPUBLICClient","InitiateLayerUploadCommand").sc(re.InitiateLayerUpload$).build()){}class ListTagsForResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","ListTagsForResource",{}).n("ECRPUBLICClient","ListTagsForResourceCommand").sc(re.ListTagsForResource$).build()){}class PutImageCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutImage",{}).n("ECRPUBLICClient","PutImageCommand").sc(re.PutImage$).build()){}class PutRegistryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRegistryCatalogData",{}).n("ECRPUBLICClient","PutRegistryCatalogDataCommand").sc(re.PutRegistryCatalogData$).build()){}class PutRepositoryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRepositoryCatalogData",{}).n("ECRPUBLICClient","PutRepositoryCatalogDataCommand").sc(re.PutRepositoryCatalogData$).build()){}class SetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","SetRepositoryPolicy",{}).n("ECRPUBLICClient","SetRepositoryPolicyCommand").sc(re.SetRepositoryPolicy$).build()){}class TagResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","TagResource",{}).n("ECRPUBLICClient","TagResourceCommand").sc(re.TagResource$).build()){}class UntagResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UntagResource",{}).n("ECRPUBLICClient","UntagResourceCommand").sc(re.UntagResource$).build()){}class UploadLayerPartCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UploadLayerPart",{}).n("ECRPUBLICClient","UploadLayerPartCommand").sc(re.UploadLayerPart$).build()){}const ie=y.createPaginator(ECRPUBLICClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const ae=y.createPaginator(ECRPUBLICClient,DescribeImageTagsCommand,"nextToken","nextToken","maxResults");const ce=y.createPaginator(ECRPUBLICClient,DescribeRegistriesCommand,"nextToken","nextToken","maxResults");const le=y.createPaginator(ECRPUBLICClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const ue={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreateRepositoryCommand:CreateRepositoryCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageTagsCommand:DescribeImageTagsCommand,DescribeRegistriesCommand:DescribeRegistriesCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetRegistryCatalogDataCommand:GetRegistryCatalogDataCommand,GetRepositoryCatalogDataCommand:GetRepositoryCatalogDataCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutImageCommand:PutImageCommand,PutRegistryCatalogDataCommand:PutRegistryCatalogDataCommand,PutRepositoryCatalogDataCommand:PutRepositoryCatalogDataCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UploadLayerPartCommand:UploadLayerPartCommand};const de={paginateDescribeImages:ie,paginateDescribeImageTags:ae,paginateDescribeRegistries:ce,paginateDescribeRepositories:le};class ECRPUBLIC extends ECRPUBLICClient{}k.createAggregatedClient(ue,ECRPUBLIC,{paginators:de});const pe={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const Ae={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const me={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};const ge={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};t.$Command=k.Command;t.__Client=k.Client;t.ECRPUBLICServiceException=se.ECRPUBLICServiceException;t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand;t.BatchDeleteImageCommand=BatchDeleteImageCommand;t.CompleteLayerUploadCommand=CompleteLayerUploadCommand;t.CreateRepositoryCommand=CreateRepositoryCommand;t.DeleteRepositoryCommand=DeleteRepositoryCommand;t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand;t.DescribeImageTagsCommand=DescribeImageTagsCommand;t.DescribeImagesCommand=DescribeImagesCommand;t.DescribeRegistriesCommand=DescribeRegistriesCommand;t.DescribeRepositoriesCommand=DescribeRepositoriesCommand;t.ECRPUBLIC=ECRPUBLIC;t.ECRPUBLICClient=ECRPUBLICClient;t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand;t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand;t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand;t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand;t.ImageFailureCode=me;t.InitiateLayerUploadCommand=InitiateLayerUploadCommand;t.LayerAvailability=Ae;t.LayerFailureCode=pe;t.ListTagsForResourceCommand=ListTagsForResourceCommand;t.PutImageCommand=PutImageCommand;t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand;t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand;t.RegistryAliasStatus=ge;t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand;t.TagResourceCommand=TagResourceCommand;t.UntagResourceCommand=UntagResourceCommand;t.UploadLayerPartCommand=UploadLayerPartCommand;t.paginateDescribeImageTags=ae;t.paginateDescribeImages=ie;t.paginateDescribeRegistries=ce;t.paginateDescribeRepositories=le;Object.prototype.hasOwnProperty.call(re,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:re["__proto__"]});Object.keys(re).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=re[e]}));Object.prototype.hasOwnProperty.call(ne,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ne["__proto__"]});Object.keys(ne).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ne[e]}))},3303:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=t.__ServiceException=void 0;const o=n(1411);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRPUBLICServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},977:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReferencedImagesNotFoundException=t.LayersNotFoundException=t.InvalidLayerPartException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.RepositoryCatalogDataNotFoundException=t.ImageNotFoundException=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.UnsupportedCommandException=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=void 0;const o=n(3303);class InvalidParameterException extends o.ECRPUBLICServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RegistryNotFoundException extends o.ECRPUBLICServiceException{name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryNotFoundException.prototype)}}t.RegistryNotFoundException=RegistryNotFoundException;class RepositoryNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRPUBLICServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class UnsupportedCommandException extends o.ECRPUBLICServiceException{name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedCommandException.prototype)}}t.UnsupportedCommandException=UnsupportedCommandException;class EmptyUploadException extends o.ECRPUBLICServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRPUBLICServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class LayerAlreadyExistsException extends o.ECRPUBLICServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRPUBLICServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRPUBLICServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class InvalidTagParameterException extends o.ECRPUBLICServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class LimitExceededException extends o.ECRPUBLICServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class RepositoryAlreadyExistsException extends o.ECRPUBLICServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRPUBLICServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class RepositoryNotEmptyException extends o.ECRPUBLICServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class ImageNotFoundException extends o.ECRPUBLICServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;class RepositoryCatalogDataNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryCatalogDataNotFoundException.prototype)}}t.RepositoryCatalogDataNotFoundException=RepositoryCatalogDataNotFoundException;class ImageAlreadyExistsException extends o.ECRPUBLICServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRPUBLICServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRPUBLICServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class InvalidLayerPartException extends o.ECRPUBLICServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException;class LayersNotFoundException extends o.ECRPUBLICServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class ReferencedImagesNotFoundException extends o.ECRPUBLICServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException},8199:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(7643));const c=n(8704);const d=n(5861);const p=n(1656);const y=n(9316);const C=n(2711);const Q=n(9618);const v=n(5704);const D=n(1279);const k=n(1411);const $=n(3638);const V=n(673);const ee=n(5518);const te=n(2180);const getRuntimeConfig=e=>{(0,k.emitWarningIfUnsupportedVersion)(process.version);const t=(0,V.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(k.loadConfigsForDefaultMode);const n=(0,te.getRuntimeConfig)(e);(0,c.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,v.loadConfig)(c.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??$.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??d.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,v.loadConfig)(Q.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,v.loadConfig)(y.NODE_REGION_CONFIG_OPTIONS,{...y.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:D.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,v.loadConfig)({...Q.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||ee.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??D.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.loadConfig)(y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,v.loadConfig)(y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,v.loadConfig)(p.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},2180:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8704);const i=n(7288);const c=n(1411);const d=n(4494);const p=n(8385);const y=n(1577);const C=n(3182);const Q=n(6072);const v=n(3917);const getRuntimeConfig=e=>({apiVersion:"2020-10-30",base64Decoder:e?.base64Decoder??p.fromBase64,base64Encoder:e?.base64Encoder??p.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??Q.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??C.defaultECRPUBLICHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new c.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:v.errorTypeRegistries,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:e?.serviceId??"ECR PUBLIC",urlParser:e?.urlParser??d.parseUrl,utf8Decoder:e?.utf8Decoder??y.fromUtf8,utf8Encoder:e?.utf8Encoder??y.toUtf8});t.getRuntimeConfig=getRuntimeConfig},3917:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataRequest$=t.GetAuthorizationTokenResponse$=t.GetAuthorizationTokenRequest$=t.DescribeRepositoriesResponse$=t.DescribeRepositoriesRequest$=t.DescribeRegistriesResponse$=t.DescribeRegistriesRequest$=t.DescribeImageTagsResponse$=t.DescribeImageTagsRequest$=t.DescribeImagesResponse$=t.DescribeImagesRequest$=t.DeleteRepositoryResponse$=t.DeleteRepositoryRequest$=t.DeleteRepositoryPolicyResponse$=t.DeleteRepositoryPolicyRequest$=t.CreateRepositoryResponse$=t.CreateRepositoryRequest$=t.CompleteLayerUploadResponse$=t.CompleteLayerUploadRequest$=t.BatchDeleteImageResponse$=t.BatchDeleteImageRequest$=t.BatchCheckLayerAvailabilityResponse$=t.BatchCheckLayerAvailabilityRequest$=t.AuthorizationData$=t.errorTypeRegistries=t.UploadNotFoundException$=t.UnsupportedCommandException$=t.TooManyTagsException$=t.ServerException$=t.RepositoryPolicyNotFoundException$=t.RepositoryNotFoundException$=t.RepositoryNotEmptyException$=t.RepositoryCatalogDataNotFoundException$=t.RepositoryAlreadyExistsException$=t.RegistryNotFoundException$=t.ReferencedImagesNotFoundException$=t.LimitExceededException$=t.LayersNotFoundException$=t.LayerPartTooSmallException$=t.LayerAlreadyExistsException$=t.InvalidTagParameterException$=t.InvalidParameterException$=t.InvalidLayerPartException$=t.InvalidLayerException$=t.ImageTagAlreadyExistsException$=t.ImageNotFoundException$=t.ImageDigestDoesNotMatchException$=t.ImageAlreadyExistsException$=t.EmptyUploadException$=t.ECRPUBLICServiceException$=void 0;t.GetRegistryCatalogData$=t.GetAuthorizationToken$=t.DescribeRepositories$=t.DescribeRegistries$=t.DescribeImageTags$=t.DescribeImages$=t.DeleteRepositoryPolicy$=t.DeleteRepository$=t.CreateRepository$=t.CompleteLayerUpload$=t.BatchDeleteImage$=t.BatchCheckLayerAvailability$=t.UploadLayerPartResponse$=t.UploadLayerPartRequest$=t.UntagResourceResponse$=t.UntagResourceRequest$=t.TagResourceResponse$=t.TagResourceRequest$=t.Tag$=t.SetRepositoryPolicyResponse$=t.SetRepositoryPolicyRequest$=t.RepositoryCatalogDataInput$=t.RepositoryCatalogData$=t.Repository$=t.RegistryCatalogData$=t.RegistryAlias$=t.Registry$=t.ReferencedImageDetail$=t.PutRepositoryCatalogDataResponse$=t.PutRepositoryCatalogDataRequest$=t.PutRegistryCatalogDataResponse$=t.PutRegistryCatalogDataRequest$=t.PutImageResponse$=t.PutImageRequest$=t.ListTagsForResourceResponse$=t.ListTagsForResourceRequest$=t.LayerFailure$=t.Layer$=t.InitiateLayerUploadResponse$=t.InitiateLayerUploadRequest$=t.ImageTagDetail$=t.ImageIdentifier$=t.ImageFailure$=t.ImageDetail$=t.Image$=t.GetRepositoryPolicyResponse$=t.GetRepositoryPolicyRequest$=t.GetRepositoryCatalogDataResponse$=t.GetRepositoryCatalogDataRequest$=t.GetRegistryCatalogDataResponse$=void 0;t.UploadLayerPart$=t.UntagResource$=t.TagResource$=t.SetRepositoryPolicy$=t.PutRepositoryCatalogData$=t.PutRegistryCatalogData$=t.PutImage$=t.ListTagsForResource$=t.InitiateLayerUpload$=t.GetRepositoryPolicy$=t.GetRepositoryCatalogData$=void 0;const o="AuthorizationData";const i="BatchCheckLayerAvailability";const c="BatchCheckLayerAvailabilityRequest";const d="BatchCheckLayerAvailabilityResponse";const p="BatchDeleteImage";const y="BatchDeleteImageRequest";const C="BatchDeleteImageResponse";const Q="CompleteLayerUpload";const v="CompleteLayerUploadRequest";const D="CompleteLayerUploadResponse";const k="CreateRepository";const $="CreateRepositoryRequest";const V="CreateRepositoryResponse";const ee="DescribeImages";const te="DescribeImagesRequest";const re="DescribeImagesResponse";const ne="DescribeImageTags";const se="DescribeImageTagsRequest";const oe="DescribeImageTagsResponse";const ie="DeleteRepository";const ae="DeleteRepositoryPolicy";const ce="DeleteRepositoryPolicyRequest";const le="DeleteRepositoryPolicyResponse";const ue="DeleteRepositoryRequest";const de="DeleteRepositoryResponse";const pe="DescribeRegistriesRequest";const Ae="DescribeRegistriesResponse";const me="DescribeRepositoriesRequest";const ge="DescribeRepositoriesResponse";const fe="DescribeRegistries";const he="DescribeRepositories";const ye="EmptyUploadException";const Ee="GetAuthorizationToken";const Ce="GetAuthorizationTokenRequest";const Ie="GetAuthorizationTokenResponse";const be="GetRegistryCatalogData";const Se="GetRegistryCatalogDataRequest";const Be="GetRegistryCatalogDataResponse";const we="GetRepositoryCatalogDataRequest";const Re="GetRepositoryCatalogDataResponse";const Ne="GetRepositoryCatalogData";const Qe="GetRepositoryPolicy";const xe="GetRepositoryPolicyRequest";const Te="GetRepositoryPolicyResponse";const ve="Image";const Pe="ImageAlreadyExistsException";const De="ImageDetail";const ke="ImageDigestDoesNotMatchException";const _e="ImageDetailList";const Le="ImageFailure";const Oe="ImageFailureList";const Fe="ImageIdentifier";const Ue="ImageIdentifierList";const Me="InvalidLayerException";const He="InvalidLayerPartException";const $e="InitiateLayerUpload";const Ge="InitiateLayerUploadRequest";const qe="InitiateLayerUploadResponse";const ze="ImageNotFoundException";const Ve="InvalidParameterException";const je="ImageTagAlreadyExistsException";const Ye="ImageTagDetail";const Je="ImageTagDetailList";const We="InvalidTagParameterException";const Ke="Key";const Xe="Layer";const Ze="LayerAlreadyExistsException";const At="LimitExceededException";const mt="LayerFailure";const ht="LayerFailureList";const yt="LayerList";const Et="LayersNotFoundException";const Ct="LayerPartTooSmallException";const It="ListTagsForResource";const bt="ListTagsForResourceRequest";const St="ListTagsForResourceResponse";const Bt="PutImage";const wt="PutImageRequest";const Rt="PutImageResponse";const Nt="PutRegistryCatalogData";const Qt="PutRegistryCatalogDataRequest";const xt="PutRegistryCatalogDataResponse";const Tt="PutRepositoryCatalogDataRequest";const vt="PutRepositoryCatalogDataResponse";const Pt="PutRepositoryCatalogData";const Dt="Registry";const kt="RegistryAlias";const _t="RepositoryAlreadyExistsException";const Lt="RegistryAliasList";const Ot="RegistryCatalogData";const Ft="RepositoryCatalogDataInput";const Ut="RepositoryCatalogDataNotFoundException";const Mt="RepositoryCatalogData";const Ht="ReferencedImageDetail";const $t="ReferencedImagesNotFoundException";const Gt="RegistryList";const qt="RepositoryList";const zt="RepositoryNotEmptyException";const Vt="RegistryNotFoundException";const jt="RepositoryNotFoundException";const Yt="RepositoryPolicyNotFoundException";const Jt="Repository";const Wt="ServerException";const Kt="SetRepositoryPolicy";const Xt="SetRepositoryPolicyRequest";const Zt="SetRepositoryPolicyResponse";const er="Tag";const tr="TagList";const rr="TooManyTagsException";const nr="TagResource";const sr="TagResourceRequest";const or="TagResourceResponse";const ir="UnsupportedCommandException";const ar="UploadLayerPart";const cr="UploadLayerPartRequest";const lr="UploadLayerPartResponse";const ur="UploadNotFoundException";const dr="UntagResource";const pr="UntagResourceRequest";const Ar="UntagResourceResponse";const mr="Value";const gr="aliases";const fr="authorizationData";const hr="artifactMediaType";const yr="authorizationToken";const Er="aboutText";const Cr="architectures";const Ir="client";const br="createdAt";const Sr="catalogData";const Br="description";const wr="displayName";const Rr="defaultRegistryAlias";const Nr="error";const Qr="expiresAt";const xr="failures";const Tr="failureCode";const vr="failureReason";const Pr="force";const Dr="image";const kr="imageDetails";const _r="imageDigest";const Lr="imageDetail";const Or="imageIds";const Fr="imageId";const Ur="imageManifest";const Mr="imageManifestMediaType";const Hr="imagePushedAt";const $r="imageSizeInBytes";const Gr="imageTags";const qr="imageTagDetails";const zr="imageTag";const Vr="layers";const jr="layerAvailability";const Yr="lastByteReceived";const Jr="layerDigests";const Wr="layerDigest";const Kr="logoImageBlob";const Xr="layerPartBlob";const Zr="layerSize";const en="logoUrl";const tn="lastValidByteReceived";const rn="message";const nn="marketplaceCertified";const sn="maxResults";const on="mediaType";const an="name";const cn="nextToken";const ln="operatingSystems";const un="partFirstByte";const dn="partLastByte";const pn="primaryRegistryAlias";const An="partSize";const mn="policyText";const gn="repository";const hn="resourceArn";const yn="registryArn";const En="repositoryArn";const Cn="registryCatalogData";const In="registryId";const bn="repositoryName";const Sn="repositoryNames";const Bn="registryUri";const wn="repositoryUri";const Rn="registries";const Nn="repositories";const Qn="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic";const xn="server";const Tn="status";const vn="tags";const Pn="tagKeys";const Dn="uploadId";const kn="usageText";const _n="verified";const Ln="com.amazonaws.ecrpublic";const On=n(6890);const Fn=n(3303);const Un=n(977);const Mn=On.TypeRegistry.for(Qn);t.ECRPUBLICServiceException$=[-3,Qn,"ECRPUBLICServiceException",0,[],[]];Mn.registerError(t.ECRPUBLICServiceException$,Fn.ECRPUBLICServiceException);const Hn=On.TypeRegistry.for(Ln);t.EmptyUploadException$=[-3,Ln,ye,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.EmptyUploadException$,Un.EmptyUploadException);t.ImageAlreadyExistsException$=[-3,Ln,Pe,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageAlreadyExistsException$,Un.ImageAlreadyExistsException);t.ImageDigestDoesNotMatchException$=[-3,Ln,ke,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageDigestDoesNotMatchException$,Un.ImageDigestDoesNotMatchException);t.ImageNotFoundException$=[-3,Ln,ze,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageNotFoundException$,Un.ImageNotFoundException);t.ImageTagAlreadyExistsException$=[-3,Ln,je,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageTagAlreadyExistsException$,Un.ImageTagAlreadyExistsException);t.InvalidLayerException$=[-3,Ln,Me,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.InvalidLayerException$,Un.InvalidLayerException);t.InvalidLayerPartException$=[-3,Ln,He,{[Nr]:Ir},[In,bn,Dn,tn,rn],[0,0,0,1,0]];Hn.registerError(t.InvalidLayerPartException$,Un.InvalidLayerPartException);t.InvalidParameterException$=[-3,Ln,Ve,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.InvalidParameterException$,Un.InvalidParameterException);t.InvalidTagParameterException$=[-3,Ln,We,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.InvalidTagParameterException$,Un.InvalidTagParameterException);t.LayerAlreadyExistsException$=[-3,Ln,Ze,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LayerAlreadyExistsException$,Un.LayerAlreadyExistsException);t.LayerPartTooSmallException$=[-3,Ln,Ct,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LayerPartTooSmallException$,Un.LayerPartTooSmallException);t.LayersNotFoundException$=[-3,Ln,Et,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LayersNotFoundException$,Un.LayersNotFoundException);t.LimitExceededException$=[-3,Ln,At,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LimitExceededException$,Un.LimitExceededException);t.ReferencedImagesNotFoundException$=[-3,Ln,$t,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ReferencedImagesNotFoundException$,Un.ReferencedImagesNotFoundException);t.RegistryNotFoundException$=[-3,Ln,Vt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RegistryNotFoundException$,Un.RegistryNotFoundException);t.RepositoryAlreadyExistsException$=[-3,Ln,_t,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryAlreadyExistsException$,Un.RepositoryAlreadyExistsException);t.RepositoryCatalogDataNotFoundException$=[-3,Ln,Ut,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryCatalogDataNotFoundException$,Un.RepositoryCatalogDataNotFoundException);t.RepositoryNotEmptyException$=[-3,Ln,zt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryNotEmptyException$,Un.RepositoryNotEmptyException);t.RepositoryNotFoundException$=[-3,Ln,jt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryNotFoundException$,Un.RepositoryNotFoundException);t.RepositoryPolicyNotFoundException$=[-3,Ln,Yt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryPolicyNotFoundException$,Un.RepositoryPolicyNotFoundException);t.ServerException$=[-3,Ln,Wt,{[Nr]:xn},[rn],[0]];Hn.registerError(t.ServerException$,Un.ServerException);t.TooManyTagsException$=[-3,Ln,rr,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.TooManyTagsException$,Un.TooManyTagsException);t.UnsupportedCommandException$=[-3,Ln,ir,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.UnsupportedCommandException$,Un.UnsupportedCommandException);t.UploadNotFoundException$=[-3,Ln,ur,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.UploadNotFoundException$,Un.UploadNotFoundException);t.errorTypeRegistries=[Mn,Hn];t.AuthorizationData$=[3,Ln,o,0,[yr,Qr],[0,4]];t.BatchCheckLayerAvailabilityRequest$=[3,Ln,c,0,[bn,Jr,In],[0,64|0,0],2];t.BatchCheckLayerAvailabilityResponse$=[3,Ln,d,0,[Vr,xr],[()=>Kn,()=>Wn]];t.BatchDeleteImageRequest$=[3,Ln,y,0,[bn,Or,In],[0,()=>Vn,0],2];t.BatchDeleteImageResponse$=[3,Ln,C,0,[Or,xr],[()=>Vn,()=>zn]];t.CompleteLayerUploadRequest$=[3,Ln,v,0,[bn,Dn,Jr,In],[0,0,64|0,0],3];t.CompleteLayerUploadResponse$=[3,Ln,D,0,[In,bn,Dn,Wr],[0,0,0,0]];t.CreateRepositoryRequest$=[3,Ln,$,0,[bn,Sr,vn],[0,()=>t.RepositoryCatalogDataInput$,()=>ss],1];t.CreateRepositoryResponse$=[3,Ln,V,0,[gn,Sr],[()=>t.Repository$,()=>t.RepositoryCatalogData$]];t.DeleteRepositoryPolicyRequest$=[3,Ln,ce,0,[bn,In],[0,0],1];t.DeleteRepositoryPolicyResponse$=[3,Ln,le,0,[In,bn,mn],[0,0,0]];t.DeleteRepositoryRequest$=[3,Ln,ue,0,[bn,In,Pr],[0,0,2],1];t.DeleteRepositoryResponse$=[3,Ln,de,0,[gn],[()=>t.Repository$]];t.DescribeImagesRequest$=[3,Ln,te,0,[bn,In,Or,cn,sn],[0,0,()=>Vn,0,1],1];t.DescribeImagesResponse$=[3,Ln,re,0,[kr,cn],[()=>qn,0]];t.DescribeImageTagsRequest$=[3,Ln,se,0,[bn,In,cn,sn],[0,0,0,1],1];t.DescribeImageTagsResponse$=[3,Ln,oe,0,[qr,cn],[()=>jn,0]];t.DescribeRegistriesRequest$=[3,Ln,pe,0,[cn,sn],[0,1]];t.DescribeRegistriesResponse$=[3,Ln,Ae,0,[Rn,cn],[()=>es,0],1];t.DescribeRepositoriesRequest$=[3,Ln,me,0,[In,Sn,cn,sn],[0,64|0,0,1]];t.DescribeRepositoriesResponse$=[3,Ln,ge,0,[Nn,cn],[()=>ts,0]];t.GetAuthorizationTokenRequest$=[3,Ln,Ce,0,[],[]];t.GetAuthorizationTokenResponse$=[3,Ln,Ie,0,[fr],[()=>t.AuthorizationData$]];t.GetRegistryCatalogDataRequest$=[3,Ln,Se,0,[],[]];t.GetRegistryCatalogDataResponse$=[3,Ln,Be,0,[Cn],[()=>t.RegistryCatalogData$],1];t.GetRepositoryCatalogDataRequest$=[3,Ln,we,0,[bn,In],[0,0],1];t.GetRepositoryCatalogDataResponse$=[3,Ln,Re,0,[Sr],[()=>t.RepositoryCatalogData$]];t.GetRepositoryPolicyRequest$=[3,Ln,xe,0,[bn,In],[0,0],1];t.GetRepositoryPolicyResponse$=[3,Ln,Te,0,[In,bn,mn],[0,0,0]];t.Image$=[3,Ln,ve,0,[In,bn,Fr,Ur,Mr],[0,0,()=>t.ImageIdentifier$,0,0]];t.ImageDetail$=[3,Ln,De,0,[In,bn,_r,Gr,$r,Hr,Mr,hr],[0,0,0,64|0,1,4,0,0]];t.ImageFailure$=[3,Ln,Le,0,[Fr,Tr,vr],[()=>t.ImageIdentifier$,0,0]];t.ImageIdentifier$=[3,Ln,Fe,0,[_r,zr],[0,0]];t.ImageTagDetail$=[3,Ln,Ye,0,[zr,br,Lr],[0,4,()=>t.ReferencedImageDetail$]];t.InitiateLayerUploadRequest$=[3,Ln,Ge,0,[bn,In],[0,0],1];t.InitiateLayerUploadResponse$=[3,Ln,qe,0,[Dn,An],[0,1]];t.Layer$=[3,Ln,Xe,0,[Wr,jr,Zr,on],[0,0,1,0]];t.LayerFailure$=[3,Ln,mt,0,[Wr,Tr,vr],[0,0,0]];t.ListTagsForResourceRequest$=[3,Ln,bt,0,[hn],[0],1];t.ListTagsForResourceResponse$=[3,Ln,St,0,[vn],[()=>ss]];t.PutImageRequest$=[3,Ln,wt,0,[bn,Ur,In,Mr,zr,_r],[0,0,0,0,0,0],2];t.PutImageResponse$=[3,Ln,Rt,0,[Dr],[()=>t.Image$]];t.PutRegistryCatalogDataRequest$=[3,Ln,Qt,0,[wr],[0]];t.PutRegistryCatalogDataResponse$=[3,Ln,xt,0,[Cn],[()=>t.RegistryCatalogData$],1];t.PutRepositoryCatalogDataRequest$=[3,Ln,Tt,0,[bn,Sr,In],[0,()=>t.RepositoryCatalogDataInput$,0],2];t.PutRepositoryCatalogDataResponse$=[3,Ln,vt,0,[Sr],[()=>t.RepositoryCatalogData$]];t.ReferencedImageDetail$=[3,Ln,Ht,0,[_r,$r,Hr,Mr,hr],[0,1,4,0,0]];t.Registry$=[3,Ln,Dt,0,[In,yn,Bn,_n,gr],[0,0,0,2,()=>Zn],5];t.RegistryAlias$=[3,Ln,kt,0,[an,Tn,pn,Rr],[0,0,2,2],4];t.RegistryCatalogData$=[3,Ln,Ot,0,[wr],[0]];t.Repository$=[3,Ln,Jt,0,[En,In,bn,wn,br],[0,0,0,0,4]];t.RepositoryCatalogData$=[3,Ln,Mt,0,[Br,Cr,ln,en,Er,kn,nn],[0,64|0,64|0,0,0,0,2]];t.RepositoryCatalogDataInput$=[3,Ln,Ft,0,[Br,Cr,ln,Kr,Er,kn],[0,64|0,64|0,21,0,0]];t.SetRepositoryPolicyRequest$=[3,Ln,Xt,0,[bn,mn,In,Pr],[0,0,0,2],2];t.SetRepositoryPolicyResponse$=[3,Ln,Zt,0,[In,bn,mn],[0,0,0]];t.Tag$=[3,Ln,er,0,[Ke,mr],[0,0]];t.TagResourceRequest$=[3,Ln,sr,0,[hn,vn],[0,()=>ss],2];t.TagResourceResponse$=[3,Ln,or,0,[],[]];t.UntagResourceRequest$=[3,Ln,pr,0,[hn,Pn],[0,64|0],2];t.UntagResourceResponse$=[3,Ln,Ar,0,[],[]];t.UploadLayerPartRequest$=[3,Ln,cr,0,[bn,Dn,un,dn,Xr,In],[0,0,1,1,21,0],5];t.UploadLayerPartResponse$=[3,Ln,lr,0,[In,bn,Dn,Yr],[0,0,0,1]];var $n=null&&64|0;var Gn=null&&64|0;var qn=[1,Ln,_e,0,()=>t.ImageDetail$];var zn=[1,Ln,Oe,0,()=>t.ImageFailure$];var Vn=[1,Ln,Ue,0,()=>t.ImageIdentifier$];var jn=[1,Ln,Je,0,()=>t.ImageTagDetail$];var Yn=null&&64|0;var Jn=null&&64|0;var Wn=[1,Ln,ht,0,()=>t.LayerFailure$];var Kn=[1,Ln,yt,0,()=>t.Layer$];var Xn=null&&64|0;var Zn=[1,Ln,Lt,0,()=>t.RegistryAlias$];var es=[1,Ln,Gt,0,()=>t.Registry$];var ts=[1,Ln,qt,0,()=>t.Repository$];var rs=null&&64|0;var ns=null&&64|0;var ss=[1,Ln,tr,0,()=>t.Tag$];t.BatchCheckLayerAvailability$=[9,Ln,i,0,()=>t.BatchCheckLayerAvailabilityRequest$,()=>t.BatchCheckLayerAvailabilityResponse$];t.BatchDeleteImage$=[9,Ln,p,0,()=>t.BatchDeleteImageRequest$,()=>t.BatchDeleteImageResponse$];t.CompleteLayerUpload$=[9,Ln,Q,0,()=>t.CompleteLayerUploadRequest$,()=>t.CompleteLayerUploadResponse$];t.CreateRepository$=[9,Ln,k,0,()=>t.CreateRepositoryRequest$,()=>t.CreateRepositoryResponse$];t.DeleteRepository$=[9,Ln,ie,0,()=>t.DeleteRepositoryRequest$,()=>t.DeleteRepositoryResponse$];t.DeleteRepositoryPolicy$=[9,Ln,ae,0,()=>t.DeleteRepositoryPolicyRequest$,()=>t.DeleteRepositoryPolicyResponse$];t.DescribeImages$=[9,Ln,ee,0,()=>t.DescribeImagesRequest$,()=>t.DescribeImagesResponse$];t.DescribeImageTags$=[9,Ln,ne,0,()=>t.DescribeImageTagsRequest$,()=>t.DescribeImageTagsResponse$];t.DescribeRegistries$=[9,Ln,fe,0,()=>t.DescribeRegistriesRequest$,()=>t.DescribeRegistriesResponse$];t.DescribeRepositories$=[9,Ln,he,0,()=>t.DescribeRepositoriesRequest$,()=>t.DescribeRepositoriesResponse$];t.GetAuthorizationToken$=[9,Ln,Ee,0,()=>t.GetAuthorizationTokenRequest$,()=>t.GetAuthorizationTokenResponse$];t.GetRegistryCatalogData$=[9,Ln,be,0,()=>t.GetRegistryCatalogDataRequest$,()=>t.GetRegistryCatalogDataResponse$];t.GetRepositoryCatalogData$=[9,Ln,Ne,0,()=>t.GetRepositoryCatalogDataRequest$,()=>t.GetRepositoryCatalogDataResponse$];t.GetRepositoryPolicy$=[9,Ln,Qe,0,()=>t.GetRepositoryPolicyRequest$,()=>t.GetRepositoryPolicyResponse$];t.InitiateLayerUpload$=[9,Ln,$e,0,()=>t.InitiateLayerUploadRequest$,()=>t.InitiateLayerUploadResponse$];t.ListTagsForResource$=[9,Ln,It,0,()=>t.ListTagsForResourceRequest$,()=>t.ListTagsForResourceResponse$];t.PutImage$=[9,Ln,Bt,0,()=>t.PutImageRequest$,()=>t.PutImageResponse$];t.PutRegistryCatalogData$=[9,Ln,Nt,0,()=>t.PutRegistryCatalogDataRequest$,()=>t.PutRegistryCatalogDataResponse$];t.PutRepositoryCatalogData$=[9,Ln,Pt,0,()=>t.PutRepositoryCatalogDataRequest$,()=>t.PutRepositoryCatalogDataResponse$];t.SetRepositoryPolicy$=[9,Ln,Kt,0,()=>t.SetRepositoryPolicyRequest$,()=>t.SetRepositoryPolicyResponse$];t.TagResource$=[9,Ln,nr,0,()=>t.TagResourceRequest$,()=>t.TagResourceResponse$];t.UntagResource$=[9,Ln,dr,0,()=>t.UntagResourceRequest$,()=>t.UntagResourceResponse$];t.UploadLayerPart$=[9,Ln,ar,0,()=>t.UploadLayerPartRequest$,()=>t.UploadLayerPartResponse$]},3218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRHttpAuthSchemeProvider=t.defaultECRHttpAuthSchemeParametersProvider=void 0;const o=n(8704);const i=n(6324);const defaultECRHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRHttpAuthSchemeParametersProvider=defaultECRHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRHttpAuthSchemeProvider=defaultECRHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},3628:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const c=n(4193);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(c.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},4193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",c="ref",d="url",p="properties",y="headers";const C=true,Q="isSet",v="booleanEquals",D="error",k="endpoint",$="tree",V="PartitionResult",ee={[n]:true,default:false,type:"boolean"},te={[n]:false,type:"string"},re={[c]:"Endpoint"},ne={[o]:v,[i]:[{[c]:"UseFIPS"},true]},se={[o]:v,[i]:[{[c]:"UseDualStack"},true]},oe={},ie={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws"]},ae={[o]:v,[i]:[{[c]:"UseFIPS"},false]},ce={[o]:v,[i]:[{[c]:"UseDualStack"},false]},le={[d]:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",[p]:{},[y]:{}},ue={[d]:"https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:{},[y]:{}},de={[d]:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",[p]:{},[y]:{}},pe={[d]:"https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:{},[y]:{}},Ae={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-us-gov"]},me={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-cn"]},ge={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso"]},fe={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso-b"]},he={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso-e"]},ye={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso-f"]},Ee={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-eusc"]},Ce={[o]:"getAttr",[i]:[{[c]:V},"supportsFIPS"]},Ie={[o]:v,[i]:[true,{[o]:"getAttr",[i]:[{[c]:V},"supportsDualStack"]}]},be=[{[c]:"Region"}];const Se={version:"1.0",parameters:{UseDualStack:ee,UseFIPS:ee,Endpoint:te,Region:te},rules:[{conditions:[{[o]:Q,[i]:[re]}],rules:[{conditions:[ne],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:D},{rules:[{conditions:[se],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:D},{endpoint:{[d]:re,[p]:oe,[y]:oe},type:k}],type:$}],type:$},{rules:[{conditions:[{[o]:Q,[i]:be}],rules:[{conditions:[{[o]:"aws.partition",[i]:be,assign:V}],rules:[{conditions:[ie,ae,ce],endpoint:le,type:k},{conditions:[ie,ae,se],endpoint:ue,type:k},{conditions:[ie,ne,ce],endpoint:de,type:k},{conditions:[ie,ne,se],endpoint:pe,type:k},{conditions:[Ae,ae,ce],endpoint:le,type:k},{conditions:[Ae,ae,se],endpoint:ue,type:k},{conditions:[Ae,ne,ce],endpoint:de,type:k},{conditions:[Ae,ne,se],endpoint:pe,type:k},{conditions:[me,ae,ce],endpoint:le,type:k},{conditions:[me,ae,se],endpoint:ue,type:k},{conditions:[me,ne,ce],endpoint:de,type:k},{conditions:[me,ne,se],endpoint:pe,type:k},{conditions:[ge,ae,ce],endpoint:le,type:k},{conditions:[ge,ae,se],endpoint:ue,type:k},{conditions:[ge,ne,ce],endpoint:de,type:k},{conditions:[ge,ne,se],endpoint:pe,type:k},{conditions:[fe,ae,ce],endpoint:le,type:k},{conditions:[fe,ae,se],endpoint:ue,type:k},{conditions:[fe,ne,ce],endpoint:de,type:k},{conditions:[fe,ne,se],endpoint:pe,type:k},{conditions:[he,ae,ce],endpoint:le,type:k},{conditions:[he,ae,se],endpoint:ue,type:k},{conditions:[he,ne,ce],endpoint:de,type:k},{conditions:[he,ne,se],endpoint:pe,type:k},{conditions:[ye,ae,ce],endpoint:le,type:k},{conditions:[ye,ae,se],endpoint:ue,type:k},{conditions:[ye,ne,ce],endpoint:de,type:k},{conditions:[ye,ne,se],endpoint:pe,type:k},{conditions:[Ee,ae,ce],endpoint:le,type:k},{conditions:[Ee,ae,se],endpoint:ue,type:k},{conditions:[Ee,ne,ce],endpoint:de,type:k},{conditions:[Ee,ne,se],endpoint:pe,type:k},{conditions:[ne,se],rules:[{conditions:[{[o]:v,[i]:[C,Ce]},Ie],rules:[{endpoint:{[d]:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:oe,[y]:oe},type:k}],type:$},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:D}],type:$},{conditions:[ne,ce],rules:[{conditions:[{[o]:v,[i]:[Ce,C]}],rules:[{endpoint:de,type:k}],type:$},{error:"FIPS is enabled but this partition does not support FIPS",type:D}],type:$},{conditions:[ae,se],rules:[{conditions:[Ie],rules:[{endpoint:{[d]:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:oe,[y]:oe},type:k}],type:$},{error:"DualStack is enabled but this partition does not support DualStack",type:D}],type:$},{endpoint:le,type:k}],type:$}],type:$},{error:"Invalid Configuration: Missing Region",type:D}],type:$}]};t.ruleSet=Se},8249:(e,t,n)=>{var o=n(2590);var i=n(5242);var c=n(1568);var d=n(2959);var p=n(9316);var y=n(402);var C=n(6890);var Q=n(7212);var v=n(99);var D=n(9618);var k=n(1411);var $=n(3218);var V=n(3107);var ee=n(6463);var te=n(2356);var re=n(5809);var ne=n(5290);var se=n(4901);var oe=n(5502);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr"});const ie={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(ee.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),te.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,ee.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),te.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRClient extends k.Client{config;constructor(...[e]){const t=V.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const ee=D.resolveRetryConfig(k);const te=p.resolveRegionConfig(ee);const re=o.resolveHostHeaderConfig(te);const ne=v.resolveEndpointConfig(re);const se=$.resolveHttpAuthSchemeConfig(ne);const oe=resolveRuntimeExtensions(se,e?.extensions||[]);this.config=oe;this.middlewareStack.use(C.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(Q.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(c.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:$.defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchCheckLayerAvailabilityCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchCheckLayerAvailability",{}).n("ECRClient","BatchCheckLayerAvailabilityCommand").sc(re.BatchCheckLayerAvailability$).build()){}class BatchDeleteImageCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchDeleteImage",{}).n("ECRClient","BatchDeleteImageCommand").sc(re.BatchDeleteImage$).build()){}class BatchGetImageCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetImage",{}).n("ECRClient","BatchGetImageCommand").sc(re.BatchGetImage$).build()){}class BatchGetRepositoryScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetRepositoryScanningConfiguration",{}).n("ECRClient","BatchGetRepositoryScanningConfigurationCommand").sc(re.BatchGetRepositoryScanningConfiguration$).build()){}class CompleteLayerUploadCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CompleteLayerUpload",{}).n("ECRClient","CompleteLayerUploadCommand").sc(re.CompleteLayerUpload$).build()){}class CreatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreatePullThroughCacheRule",{}).n("ECRClient","CreatePullThroughCacheRuleCommand").sc(re.CreatePullThroughCacheRule$).build()){}class CreateRepositoryCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepository",{}).n("ECRClient","CreateRepositoryCommand").sc(re.CreateRepository$).build()){}class CreateRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepositoryCreationTemplate",{}).n("ECRClient","CreateRepositoryCreationTemplateCommand").sc(re.CreateRepositoryCreationTemplate$).build()){}class DeleteLifecyclePolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteLifecyclePolicy",{}).n("ECRClient","DeleteLifecyclePolicyCommand").sc(re.DeleteLifecyclePolicy$).build()){}class DeletePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeletePullThroughCacheRule",{}).n("ECRClient","DeletePullThroughCacheRuleCommand").sc(re.DeletePullThroughCacheRule$).build()){}class DeleteRegistryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRegistryPolicy",{}).n("ECRClient","DeleteRegistryPolicyCommand").sc(re.DeleteRegistryPolicy$).build()){}class DeleteRepositoryCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepository",{}).n("ECRClient","DeleteRepositoryCommand").sc(re.DeleteRepository$).build()){}class DeleteRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryCreationTemplate",{}).n("ECRClient","DeleteRepositoryCreationTemplateCommand").sc(re.DeleteRepositoryCreationTemplate$).build()){}class DeleteRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryPolicy",{}).n("ECRClient","DeleteRepositoryPolicyCommand").sc(re.DeleteRepositoryPolicy$).build()){}class DeleteSigningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteSigningConfiguration",{}).n("ECRClient","DeleteSigningConfigurationCommand").sc(re.DeleteSigningConfiguration$).build()){}class DeregisterPullTimeUpdateExclusionCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeregisterPullTimeUpdateExclusion",{}).n("ECRClient","DeregisterPullTimeUpdateExclusionCommand").sc(re.DeregisterPullTimeUpdateExclusion$).build()){}class DescribeImageReplicationStatusCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageReplicationStatus",{}).n("ECRClient","DescribeImageReplicationStatusCommand").sc(re.DescribeImageReplicationStatus$).build()){}class DescribeImageScanFindingsCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageScanFindings",{}).n("ECRClient","DescribeImageScanFindingsCommand").sc(re.DescribeImageScanFindings$).build()){}class DescribeImagesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImages",{}).n("ECRClient","DescribeImagesCommand").sc(re.DescribeImages$).build()){}class DescribeImageSigningStatusCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageSigningStatus",{}).n("ECRClient","DescribeImageSigningStatusCommand").sc(re.DescribeImageSigningStatus$).build()){}class DescribePullThroughCacheRulesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribePullThroughCacheRules",{}).n("ECRClient","DescribePullThroughCacheRulesCommand").sc(re.DescribePullThroughCacheRules$).build()){}class DescribeRegistryCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRegistry",{}).n("ECRClient","DescribeRegistryCommand").sc(re.DescribeRegistry$).build()){}class DescribeRepositoriesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositories",{}).n("ECRClient","DescribeRepositoriesCommand").sc(re.DescribeRepositories$).build()){}class DescribeRepositoryCreationTemplatesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositoryCreationTemplates",{}).n("ECRClient","DescribeRepositoryCreationTemplatesCommand").sc(re.DescribeRepositoryCreationTemplates$).build()){}class GetAccountSettingCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAccountSetting",{}).n("ECRClient","GetAccountSettingCommand").sc(re.GetAccountSetting$).build()){}class GetAuthorizationTokenCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAuthorizationToken",{}).n("ECRClient","GetAuthorizationTokenCommand").sc(re.GetAuthorizationToken$).build()){}class GetDownloadUrlForLayerCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetDownloadUrlForLayer",{}).n("ECRClient","GetDownloadUrlForLayerCommand").sc(re.GetDownloadUrlForLayer$).build()){}class GetLifecyclePolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicy",{}).n("ECRClient","GetLifecyclePolicyCommand").sc(re.GetLifecyclePolicy$).build()){}class GetLifecyclePolicyPreviewCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicyPreview",{}).n("ECRClient","GetLifecyclePolicyPreviewCommand").sc(re.GetLifecyclePolicyPreview$).build()){}class GetRegistryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryPolicy",{}).n("ECRClient","GetRegistryPolicyCommand").sc(re.GetRegistryPolicy$).build()){}class GetRegistryScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryScanningConfiguration",{}).n("ECRClient","GetRegistryScanningConfigurationCommand").sc(re.GetRegistryScanningConfiguration$).build()){}class GetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRepositoryPolicy",{}).n("ECRClient","GetRepositoryPolicyCommand").sc(re.GetRepositoryPolicy$).build()){}class GetSigningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetSigningConfiguration",{}).n("ECRClient","GetSigningConfigurationCommand").sc(re.GetSigningConfiguration$).build()){}class InitiateLayerUploadCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","InitiateLayerUpload",{}).n("ECRClient","InitiateLayerUploadCommand").sc(re.InitiateLayerUpload$).build()){}class ListImageReferrersCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImageReferrers",{}).n("ECRClient","ListImageReferrersCommand").sc(re.ListImageReferrers$).build()){}class ListImagesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImages",{}).n("ECRClient","ListImagesCommand").sc(re.ListImages$).build()){}class ListPullTimeUpdateExclusionsCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListPullTimeUpdateExclusions",{}).n("ECRClient","ListPullTimeUpdateExclusionsCommand").sc(re.ListPullTimeUpdateExclusions$).build()){}class ListTagsForResourceCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListTagsForResource",{}).n("ECRClient","ListTagsForResourceCommand").sc(re.ListTagsForResource$).build()){}class PutAccountSettingCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutAccountSetting",{}).n("ECRClient","PutAccountSettingCommand").sc(re.PutAccountSetting$).build()){}class PutImageCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImage",{}).n("ECRClient","PutImageCommand").sc(re.PutImage$).build()){}class PutImageScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageScanningConfiguration",{}).n("ECRClient","PutImageScanningConfigurationCommand").sc(re.PutImageScanningConfiguration$).build()){}class PutImageTagMutabilityCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageTagMutability",{}).n("ECRClient","PutImageTagMutabilityCommand").sc(re.PutImageTagMutability$).build()){}class PutLifecyclePolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutLifecyclePolicy",{}).n("ECRClient","PutLifecyclePolicyCommand").sc(re.PutLifecyclePolicy$).build()){}class PutRegistryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryPolicy",{}).n("ECRClient","PutRegistryPolicyCommand").sc(re.PutRegistryPolicy$).build()){}class PutRegistryScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryScanningConfiguration",{}).n("ECRClient","PutRegistryScanningConfigurationCommand").sc(re.PutRegistryScanningConfiguration$).build()){}class PutReplicationConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutReplicationConfiguration",{}).n("ECRClient","PutReplicationConfigurationCommand").sc(re.PutReplicationConfiguration$).build()){}class PutSigningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutSigningConfiguration",{}).n("ECRClient","PutSigningConfigurationCommand").sc(re.PutSigningConfiguration$).build()){}class RegisterPullTimeUpdateExclusionCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","RegisterPullTimeUpdateExclusion",{}).n("ECRClient","RegisterPullTimeUpdateExclusionCommand").sc(re.RegisterPullTimeUpdateExclusion$).build()){}class SetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","SetRepositoryPolicy",{}).n("ECRClient","SetRepositoryPolicyCommand").sc(re.SetRepositoryPolicy$).build()){}class StartImageScanCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartImageScan",{}).n("ECRClient","StartImageScanCommand").sc(re.StartImageScan$).build()){}class StartLifecyclePolicyPreviewCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartLifecyclePolicyPreview",{}).n("ECRClient","StartLifecyclePolicyPreviewCommand").sc(re.StartLifecyclePolicyPreview$).build()){}class TagResourceCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","TagResource",{}).n("ECRClient","TagResourceCommand").sc(re.TagResource$).build()){}class UntagResourceCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UntagResource",{}).n("ECRClient","UntagResourceCommand").sc(re.UntagResource$).build()){}class UpdateImageStorageClassCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateImageStorageClass",{}).n("ECRClient","UpdateImageStorageClassCommand").sc(re.UpdateImageStorageClass$).build()){}class UpdatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdatePullThroughCacheRule",{}).n("ECRClient","UpdatePullThroughCacheRuleCommand").sc(re.UpdatePullThroughCacheRule$).build()){}class UpdateRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateRepositoryCreationTemplate",{}).n("ECRClient","UpdateRepositoryCreationTemplateCommand").sc(re.UpdateRepositoryCreationTemplate$).build()){}class UploadLayerPartCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UploadLayerPart",{}).n("ECRClient","UploadLayerPartCommand").sc(re.UploadLayerPart$).build()){}class ValidatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ValidatePullThroughCacheRule",{}).n("ECRClient","ValidatePullThroughCacheRuleCommand").sc(re.ValidatePullThroughCacheRule$).build()){}const ae=y.createPaginator(ECRClient,DescribeImageScanFindingsCommand,"nextToken","nextToken","maxResults");const ce=y.createPaginator(ECRClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const le=y.createPaginator(ECRClient,DescribePullThroughCacheRulesCommand,"nextToken","nextToken","maxResults");const ue=y.createPaginator(ECRClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const de=y.createPaginator(ECRClient,DescribeRepositoryCreationTemplatesCommand,"nextToken","nextToken","maxResults");const pe=y.createPaginator(ECRClient,GetLifecyclePolicyPreviewCommand,"nextToken","nextToken","maxResults");const Ae=y.createPaginator(ECRClient,ListImagesCommand,"nextToken","nextToken","maxResults");const checkState$1=async(e,t)=>{let n;try{let o=await e.send(new DescribeImageScanFindingsCommand(t));n=o;try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:ne.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:ne.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:ne.WaiterState.RETRY,reason:n}};const waitForImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return ne.createWaiter({...n,...e},t,checkState$1)};const waitUntilImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await ne.createWaiter({...n,...e},t,checkState$1);return ne.checkExceptions(o)};const checkState=async(e,t)=>{let n;try{let o=await e.send(new GetLifecyclePolicyPreviewCommand(t));n=o;try{const returnComparator=()=>o.status;if(returnComparator()==="COMPLETE"){return{state:ne.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.status;if(returnComparator()==="FAILED"){return{state:ne.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:ne.WaiterState.RETRY,reason:n}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return ne.createWaiter({...n,...e},t,checkState)};const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await ne.createWaiter({...n,...e},t,checkState);return ne.checkExceptions(o)};const me={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,BatchGetImageCommand:BatchGetImageCommand,BatchGetRepositoryScanningConfigurationCommand:BatchGetRepositoryScanningConfigurationCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreatePullThroughCacheRuleCommand:CreatePullThroughCacheRuleCommand,CreateRepositoryCommand:CreateRepositoryCommand,CreateRepositoryCreationTemplateCommand:CreateRepositoryCreationTemplateCommand,DeleteLifecyclePolicyCommand:DeleteLifecyclePolicyCommand,DeletePullThroughCacheRuleCommand:DeletePullThroughCacheRuleCommand,DeleteRegistryPolicyCommand:DeleteRegistryPolicyCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryCreationTemplateCommand:DeleteRepositoryCreationTemplateCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DeleteSigningConfigurationCommand:DeleteSigningConfigurationCommand,DeregisterPullTimeUpdateExclusionCommand:DeregisterPullTimeUpdateExclusionCommand,DescribeImageReplicationStatusCommand:DescribeImageReplicationStatusCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageScanFindingsCommand:DescribeImageScanFindingsCommand,DescribeImageSigningStatusCommand:DescribeImageSigningStatusCommand,DescribePullThroughCacheRulesCommand:DescribePullThroughCacheRulesCommand,DescribeRegistryCommand:DescribeRegistryCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,DescribeRepositoryCreationTemplatesCommand:DescribeRepositoryCreationTemplatesCommand,GetAccountSettingCommand:GetAccountSettingCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetDownloadUrlForLayerCommand:GetDownloadUrlForLayerCommand,GetLifecyclePolicyCommand:GetLifecyclePolicyCommand,GetLifecyclePolicyPreviewCommand:GetLifecyclePolicyPreviewCommand,GetRegistryPolicyCommand:GetRegistryPolicyCommand,GetRegistryScanningConfigurationCommand:GetRegistryScanningConfigurationCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,GetSigningConfigurationCommand:GetSigningConfigurationCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListImageReferrersCommand:ListImageReferrersCommand,ListImagesCommand:ListImagesCommand,ListPullTimeUpdateExclusionsCommand:ListPullTimeUpdateExclusionsCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutAccountSettingCommand:PutAccountSettingCommand,PutImageCommand:PutImageCommand,PutImageScanningConfigurationCommand:PutImageScanningConfigurationCommand,PutImageTagMutabilityCommand:PutImageTagMutabilityCommand,PutLifecyclePolicyCommand:PutLifecyclePolicyCommand,PutRegistryPolicyCommand:PutRegistryPolicyCommand,PutRegistryScanningConfigurationCommand:PutRegistryScanningConfigurationCommand,PutReplicationConfigurationCommand:PutReplicationConfigurationCommand,PutSigningConfigurationCommand:PutSigningConfigurationCommand,RegisterPullTimeUpdateExclusionCommand:RegisterPullTimeUpdateExclusionCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,StartImageScanCommand:StartImageScanCommand,StartLifecyclePolicyPreviewCommand:StartLifecyclePolicyPreviewCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UpdateImageStorageClassCommand:UpdateImageStorageClassCommand,UpdatePullThroughCacheRuleCommand:UpdatePullThroughCacheRuleCommand,UpdateRepositoryCreationTemplateCommand:UpdateRepositoryCreationTemplateCommand,UploadLayerPartCommand:UploadLayerPartCommand,ValidatePullThroughCacheRuleCommand:ValidatePullThroughCacheRuleCommand};const ge={paginateDescribeImages:ce,paginateDescribeImageScanFindings:ae,paginateDescribePullThroughCacheRules:le,paginateDescribeRepositories:ue,paginateDescribeRepositoryCreationTemplates:de,paginateGetLifecyclePolicyPreview:pe,paginateListImages:Ae};const fe={waitUntilImageScanComplete:waitUntilImageScanComplete,waitUntilLifecyclePolicyPreviewComplete:waitUntilLifecyclePolicyPreviewComplete};class ECR extends ECRClient{}k.createAggregatedClient(me,ECR,{paginators:ge,waiters:fe});const he={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const ye={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const Ee={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"};const Ce={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};const Ie={WILDCARD:"WILDCARD"};const be={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};const Se={AzureContainerRegistry:"azure-container-registry",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"};const Be={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"};const we={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"};const Re={WILDCARD:"WILDCARD"};const Ne={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"};const Qe={WILDCARD_MATCH:"WILDCARD_MATCH"};const xe={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Te={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const ve={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};const Pe={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};const De={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};const ke={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const _e={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Le={PREFIX_MATCH:"PREFIX_MATCH"};const Oe={ARCHIVE:"ARCHIVE"};const Fe={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"};const Ue={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};const Me={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const He={BASIC:"BASIC",ENHANCED:"ENHANCED"};const $e={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const Ge={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const qe={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};t.$Command=k.Command;t.__Client=k.Client;t.ECRServiceException=oe.ECRServiceException;t.ArtifactStatus=Ge;t.ArtifactStatusFilter=$e;t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand;t.BatchDeleteImageCommand=BatchDeleteImageCommand;t.BatchGetImageCommand=BatchGetImageCommand;t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand;t.CompleteLayerUploadCommand=CompleteLayerUploadCommand;t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand;t.CreateRepositoryCommand=CreateRepositoryCommand;t.CreateRepositoryCreationTemplateCommand=CreateRepositoryCreationTemplateCommand;t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand;t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand;t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand;t.DeleteRepositoryCommand=DeleteRepositoryCommand;t.DeleteRepositoryCreationTemplateCommand=DeleteRepositoryCreationTemplateCommand;t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand;t.DeleteSigningConfigurationCommand=DeleteSigningConfigurationCommand;t.DeregisterPullTimeUpdateExclusionCommand=DeregisterPullTimeUpdateExclusionCommand;t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand;t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand;t.DescribeImageSigningStatusCommand=DescribeImageSigningStatusCommand;t.DescribeImagesCommand=DescribeImagesCommand;t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand;t.DescribeRegistryCommand=DescribeRegistryCommand;t.DescribeRepositoriesCommand=DescribeRepositoriesCommand;t.DescribeRepositoryCreationTemplatesCommand=DescribeRepositoryCreationTemplatesCommand;t.ECR=ECR;t.ECRClient=ECRClient;t.EncryptionType=Be;t.FindingSeverity=Pe;t.GetAccountSettingCommand=GetAccountSettingCommand;t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand;t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand;t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand;t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand;t.GetRegistryPolicyCommand=GetRegistryPolicyCommand;t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand;t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand;t.GetSigningConfigurationCommand=GetSigningConfigurationCommand;t.ImageActionType=Fe;t.ImageFailureCode=Ee;t.ImageStatus=ke;t.ImageStatusFilter=Te;t.ImageTagMutability=we;t.ImageTagMutabilityExclusionFilterType=Re;t.InitiateLayerUploadCommand=InitiateLayerUploadCommand;t.LayerAvailability=ye;t.LayerFailureCode=he;t.LifecyclePolicyPreviewStatus=Me;t.LifecyclePolicyStorageClass=Ue;t.LifecyclePolicyTargetStorageClass=Oe;t.ListImageReferrersCommand=ListImageReferrersCommand;t.ListImagesCommand=ListImagesCommand;t.ListPullTimeUpdateExclusionsCommand=ListPullTimeUpdateExclusionsCommand;t.ListTagsForResourceCommand=ListTagsForResourceCommand;t.PutAccountSettingCommand=PutAccountSettingCommand;t.PutImageCommand=PutImageCommand;t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand;t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand;t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand;t.PutRegistryPolicyCommand=PutRegistryPolicyCommand;t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand;t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand;t.PutSigningConfigurationCommand=PutSigningConfigurationCommand;t.RCTAppliedFor=Ne;t.RegisterPullTimeUpdateExclusionCommand=RegisterPullTimeUpdateExclusionCommand;t.ReplicationStatus=xe;t.RepositoryFilterType=Le;t.ScanFrequency=be;t.ScanStatus=De;t.ScanType=He;t.ScanningConfigurationFailureCode=Ce;t.ScanningRepositoryFilterType=Ie;t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand;t.SigningRepositoryFilterType=Qe;t.SigningStatus=_e;t.StartImageScanCommand=StartImageScanCommand;t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand;t.TagResourceCommand=TagResourceCommand;t.TagStatus=ve;t.TargetStorageClass=qe;t.UntagResourceCommand=UntagResourceCommand;t.UpdateImageStorageClassCommand=UpdateImageStorageClassCommand;t.UpdatePullThroughCacheRuleCommand=UpdatePullThroughCacheRuleCommand;t.UpdateRepositoryCreationTemplateCommand=UpdateRepositoryCreationTemplateCommand;t.UploadLayerPartCommand=UploadLayerPartCommand;t.UpstreamRegistry=Se;t.ValidatePullThroughCacheRuleCommand=ValidatePullThroughCacheRuleCommand;t.paginateDescribeImageScanFindings=ae;t.paginateDescribeImages=ce;t.paginateDescribePullThroughCacheRules=le;t.paginateDescribeRepositories=ue;t.paginateDescribeRepositoryCreationTemplates=de;t.paginateGetLifecyclePolicyPreview=pe;t.paginateListImages=Ae;t.waitForImageScanComplete=waitForImageScanComplete;t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;t.waitUntilImageScanComplete=waitUntilImageScanComplete;t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete;Object.prototype.hasOwnProperty.call(re,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:re["__proto__"]});Object.keys(re).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=re[e]}));Object.prototype.hasOwnProperty.call(se,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:se["__proto__"]});Object.keys(se).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=se[e]}))},5502:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=t.__ServiceException=void 0;const o=n(1411);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},4901:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.InvalidLayerPartException=t.ImageStorageClassUpdateNotSupportedException=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.ImageArchivedException=t.ExclusionAlreadyExistsException=t.BlockedByOrganizationPolicyException=t.ReferencedImagesNotFoundException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.LifecyclePolicyPreviewNotFoundException=t.UnableToGetUpstreamLayerException=t.LayersNotFoundException=t.LayerInaccessibleException=t.ScanNotFoundException=t.ImageNotFoundException=t.ExclusionNotFoundException=t.SigningConfigurationNotFoundException=t.RepositoryPolicyNotFoundException=t.TemplateNotFoundException=t.RepositoryNotEmptyException=t.RegistryPolicyNotFoundException=t.PullThroughCacheRuleNotFoundException=t.LifecyclePolicyNotFoundException=t.TemplateAlreadyExistsException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.UnsupportedUpstreamRegistryException=t.UnableToDecryptSecretValueException=t.UnableToAccessSecretException=t.SecretNotFoundException=t.PullThroughCacheRuleAlreadyExistsException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.ValidationException=t.UnableToGetUpstreamImageException=t.LimitExceededException=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=void 0;const o=n(5502);class InvalidParameterException extends o.ECRServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RepositoryNotFoundException extends o.ECRServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class LimitExceededException extends o.ECRServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class UnableToGetUpstreamImageException extends o.ECRServiceException{name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamImageException.prototype)}}t.UnableToGetUpstreamImageException=UnableToGetUpstreamImageException;class ValidationException extends o.ECRServiceException{name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,ValidationException.prototype)}}t.ValidationException=ValidationException;class EmptyUploadException extends o.ECRServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class KmsException extends o.ECRServiceException{name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e});Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=e.kmsError}}t.KmsException=KmsException;class LayerAlreadyExistsException extends o.ECRServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class PullThroughCacheRuleAlreadyExistsException extends o.ECRServiceException{name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}t.PullThroughCacheRuleAlreadyExistsException=PullThroughCacheRuleAlreadyExistsException;class SecretNotFoundException extends o.ECRServiceException{name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SecretNotFoundException.prototype)}}t.SecretNotFoundException=SecretNotFoundException;class UnableToAccessSecretException extends o.ECRServiceException{name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToAccessSecretException.prototype)}}t.UnableToAccessSecretException=UnableToAccessSecretException;class UnableToDecryptSecretValueException extends o.ECRServiceException{name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToDecryptSecretValueException.prototype)}}t.UnableToDecryptSecretValueException=UnableToDecryptSecretValueException;class UnsupportedUpstreamRegistryException extends o.ECRServiceException{name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}t.UnsupportedUpstreamRegistryException=UnsupportedUpstreamRegistryException;class InvalidTagParameterException extends o.ECRServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class RepositoryAlreadyExistsException extends o.ECRServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class TemplateAlreadyExistsException extends o.ECRServiceException{name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateAlreadyExistsException.prototype)}}t.TemplateAlreadyExistsException=TemplateAlreadyExistsException;class LifecyclePolicyNotFoundException extends o.ECRServiceException{name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}t.LifecyclePolicyNotFoundException=LifecyclePolicyNotFoundException;class PullThroughCacheRuleNotFoundException extends o.ECRServiceException{name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}t.PullThroughCacheRuleNotFoundException=PullThroughCacheRuleNotFoundException;class RegistryPolicyNotFoundException extends o.ECRServiceException{name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}t.RegistryPolicyNotFoundException=RegistryPolicyNotFoundException;class RepositoryNotEmptyException extends o.ECRServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class TemplateNotFoundException extends o.ECRServiceException{name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateNotFoundException.prototype)}}t.TemplateNotFoundException=TemplateNotFoundException;class RepositoryPolicyNotFoundException extends o.ECRServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class SigningConfigurationNotFoundException extends o.ECRServiceException{name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SigningConfigurationNotFoundException.prototype)}}t.SigningConfigurationNotFoundException=SigningConfigurationNotFoundException;class ExclusionNotFoundException extends o.ECRServiceException{name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionNotFoundException.prototype)}}t.ExclusionNotFoundException=ExclusionNotFoundException;class ImageNotFoundException extends o.ECRServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;class ScanNotFoundException extends o.ECRServiceException{name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}t.ScanNotFoundException=ScanNotFoundException;class LayerInaccessibleException extends o.ECRServiceException{name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e});Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}t.LayerInaccessibleException=LayerInaccessibleException;class LayersNotFoundException extends o.ECRServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class UnableToGetUpstreamLayerException extends o.ECRServiceException{name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamLayerException.prototype)}}t.UnableToGetUpstreamLayerException=UnableToGetUpstreamLayerException;class LifecyclePolicyPreviewNotFoundException extends o.ECRServiceException{name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}t.LifecyclePolicyPreviewNotFoundException=LifecyclePolicyPreviewNotFoundException;class ImageAlreadyExistsException extends o.ECRServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class ReferencedImagesNotFoundException extends o.ECRServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;class BlockedByOrganizationPolicyException extends o.ECRServiceException{name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e});Object.setPrototypeOf(this,BlockedByOrganizationPolicyException.prototype)}}t.BlockedByOrganizationPolicyException=BlockedByOrganizationPolicyException;class ExclusionAlreadyExistsException extends o.ECRServiceException{name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionAlreadyExistsException.prototype)}}t.ExclusionAlreadyExistsException=ExclusionAlreadyExistsException;class ImageArchivedException extends o.ECRServiceException{name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageArchivedException.prototype)}}t.ImageArchivedException=ImageArchivedException;class UnsupportedImageTypeException extends o.ECRServiceException{name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}t.UnsupportedImageTypeException=UnsupportedImageTypeException;class LifecyclePolicyPreviewInProgressException extends o.ECRServiceException{name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}t.LifecyclePolicyPreviewInProgressException=LifecyclePolicyPreviewInProgressException;class ImageStorageClassUpdateNotSupportedException extends o.ECRServiceException{name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageStorageClassUpdateNotSupportedException.prototype)}}t.ImageStorageClassUpdateNotSupportedException=ImageStorageClassUpdateNotSupportedException;class InvalidLayerPartException extends o.ECRServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException},3107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(121));const c=n(8704);const d=n(5861);const p=n(1656);const y=n(9316);const C=n(2711);const Q=n(9618);const v=n(5704);const D=n(1279);const k=n(1411);const $=n(3638);const V=n(673);const ee=n(5518);const te=n(9344);const getRuntimeConfig=e=>{(0,k.emitWarningIfUnsupportedVersion)(process.version);const t=(0,V.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(k.loadConfigsForDefaultMode);const n=(0,te.getRuntimeConfig)(e);(0,c.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,v.loadConfig)(c.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??$.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??d.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,v.loadConfig)(Q.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,v.loadConfig)(y.NODE_REGION_CONFIG_OPTIONS,{...y.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:D.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,v.loadConfig)({...Q.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||ee.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??D.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.loadConfig)(y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,v.loadConfig)(y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,v.loadConfig)(p.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},9344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8704);const i=n(7288);const c=n(1411);const d=n(4494);const p=n(8385);const y=n(1577);const C=n(3218);const Q=n(3628);const v=n(5809);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??p.fromBase64,base64Encoder:e?.base64Encoder??p.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??Q.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??C.defaultECRHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new c.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:v.errorTypeRegistries,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??d.parseUrl,utf8Decoder:e?.utf8Decoder??y.fromUtf8,utf8Encoder:e?.utf8Encoder??y.toUtf8});t.getRuntimeConfig=getRuntimeConfig},5809:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.AuthorizationData$=t.Attribute$=t.errorTypeRegistries=t.ValidationException$=t.UploadNotFoundException$=t.UnsupportedUpstreamRegistryException$=t.UnsupportedImageTypeException$=t.UnableToGetUpstreamLayerException$=t.UnableToGetUpstreamImageException$=t.UnableToDecryptSecretValueException$=t.UnableToAccessSecretException$=t.TooManyTagsException$=t.TemplateNotFoundException$=t.TemplateAlreadyExistsException$=t.SigningConfigurationNotFoundException$=t.ServerException$=t.SecretNotFoundException$=t.ScanNotFoundException$=t.RepositoryPolicyNotFoundException$=t.RepositoryNotFoundException$=t.RepositoryNotEmptyException$=t.RepositoryAlreadyExistsException$=t.RegistryPolicyNotFoundException$=t.ReferencedImagesNotFoundException$=t.PullThroughCacheRuleNotFoundException$=t.PullThroughCacheRuleAlreadyExistsException$=t.LimitExceededException$=t.LifecyclePolicyPreviewNotFoundException$=t.LifecyclePolicyPreviewInProgressException$=t.LifecyclePolicyNotFoundException$=t.LayersNotFoundException$=t.LayerPartTooSmallException$=t.LayerInaccessibleException$=t.LayerAlreadyExistsException$=t.KmsException$=t.InvalidTagParameterException$=t.InvalidParameterException$=t.InvalidLayerPartException$=t.InvalidLayerException$=t.ImageTagAlreadyExistsException$=t.ImageStorageClassUpdateNotSupportedException$=t.ImageNotFoundException$=t.ImageDigestDoesNotMatchException$=t.ImageArchivedException$=t.ImageAlreadyExistsException$=t.ExclusionNotFoundException$=t.ExclusionAlreadyExistsException$=t.EmptyUploadException$=t.BlockedByOrganizationPolicyException$=t.ECRServiceException$=void 0;t.DescribeRepositoriesRequest$=t.DescribeRegistryResponse$=t.DescribeRegistryRequest$=t.DescribePullThroughCacheRulesResponse$=t.DescribePullThroughCacheRulesRequest$=t.DescribeImagesResponse$=t.DescribeImagesRequest$=t.DescribeImageSigningStatusResponse$=t.DescribeImageSigningStatusRequest$=t.DescribeImagesFilter$=t.DescribeImageScanFindingsResponse$=t.DescribeImageScanFindingsRequest$=t.DescribeImageReplicationStatusResponse$=t.DescribeImageReplicationStatusRequest$=t.DeregisterPullTimeUpdateExclusionResponse$=t.DeregisterPullTimeUpdateExclusionRequest$=t.DeleteSigningConfigurationResponse$=t.DeleteSigningConfigurationRequest$=t.DeleteRepositoryResponse$=t.DeleteRepositoryRequest$=t.DeleteRepositoryPolicyResponse$=t.DeleteRepositoryPolicyRequest$=t.DeleteRepositoryCreationTemplateResponse$=t.DeleteRepositoryCreationTemplateRequest$=t.DeleteRegistryPolicyResponse$=t.DeleteRegistryPolicyRequest$=t.DeletePullThroughCacheRuleResponse$=t.DeletePullThroughCacheRuleRequest$=t.DeleteLifecyclePolicyResponse$=t.DeleteLifecyclePolicyRequest$=t.CvssScoreDetails$=t.CvssScoreAdjustment$=t.CvssScore$=t.CreateRepositoryResponse$=t.CreateRepositoryRequest$=t.CreateRepositoryCreationTemplateResponse$=t.CreateRepositoryCreationTemplateRequest$=t.CreatePullThroughCacheRuleResponse$=t.CreatePullThroughCacheRuleRequest$=t.CompleteLayerUploadResponse$=t.CompleteLayerUploadRequest$=t.BatchGetRepositoryScanningConfigurationResponse$=t.BatchGetRepositoryScanningConfigurationRequest$=t.BatchGetImageResponse$=t.BatchGetImageRequest$=t.BatchDeleteImageResponse$=t.BatchDeleteImageRequest$=t.BatchCheckLayerAvailabilityResponse$=t.BatchCheckLayerAvailabilityRequest$=t.AwsEcrContainerImageDetails$=void 0;t.ListImagesRequest$=t.ListImagesFilter$=t.ListImageReferrersResponse$=t.ListImageReferrersRequest$=t.ListImageReferrersFilter$=t.LifecyclePolicyRuleAction$=t.LifecyclePolicyPreviewSummary$=t.LifecyclePolicyPreviewResult$=t.LifecyclePolicyPreviewFilter$=t.LayerFailure$=t.Layer$=t.InitiateLayerUploadResponse$=t.InitiateLayerUploadRequest$=t.ImageTagMutabilityExclusionFilter$=t.ImageSigningStatus$=t.ImageScanStatus$=t.ImageScanningConfiguration$=t.ImageScanFindingsSummary$=t.ImageScanFindings$=t.ImageScanFinding$=t.ImageReplicationStatus$=t.ImageReferrer$=t.ImageIdentifier$=t.ImageFailure$=t.ImageDetail$=t.Image$=t.GetSigningConfigurationResponse$=t.GetSigningConfigurationRequest$=t.GetRepositoryPolicyResponse$=t.GetRepositoryPolicyRequest$=t.GetRegistryScanningConfigurationResponse$=t.GetRegistryScanningConfigurationRequest$=t.GetRegistryPolicyResponse$=t.GetRegistryPolicyRequest$=t.GetLifecyclePolicyResponse$=t.GetLifecyclePolicyRequest$=t.GetLifecyclePolicyPreviewResponse$=t.GetLifecyclePolicyPreviewRequest$=t.GetDownloadUrlForLayerResponse$=t.GetDownloadUrlForLayerRequest$=t.GetAuthorizationTokenResponse$=t.GetAuthorizationTokenRequest$=t.GetAccountSettingResponse$=t.GetAccountSettingRequest$=t.EnhancedImageScanFinding$=t.EncryptionConfigurationForRepositoryCreationTemplate$=t.EncryptionConfiguration$=t.DescribeRepositoryCreationTemplatesResponse$=t.DescribeRepositoryCreationTemplatesRequest$=t.DescribeRepositoriesResponse$=void 0;t.StartImageScanResponse$=t.StartImageScanRequest$=t.SigningRule$=t.SigningRepositoryFilter$=t.SigningConfiguration$=t.SetRepositoryPolicyResponse$=t.SetRepositoryPolicyRequest$=t.ScoreDetails$=t.ScanningRepositoryFilter$=t.ResourceDetails$=t.Resource$=t.RepositoryScanningConfigurationFailure$=t.RepositoryScanningConfiguration$=t.RepositoryFilter$=t.RepositoryCreationTemplate$=t.Repository$=t.ReplicationRule$=t.ReplicationDestination$=t.ReplicationConfiguration$=t.Remediation$=t.RegistryScanningRule$=t.RegistryScanningConfiguration$=t.RegisterPullTimeUpdateExclusionResponse$=t.RegisterPullTimeUpdateExclusionRequest$=t.Recommendation$=t.PutSigningConfigurationResponse$=t.PutSigningConfigurationRequest$=t.PutReplicationConfigurationResponse$=t.PutReplicationConfigurationRequest$=t.PutRegistryScanningConfigurationResponse$=t.PutRegistryScanningConfigurationRequest$=t.PutRegistryPolicyResponse$=t.PutRegistryPolicyRequest$=t.PutLifecyclePolicyResponse$=t.PutLifecyclePolicyRequest$=t.PutImageTagMutabilityResponse$=t.PutImageTagMutabilityRequest$=t.PutImageScanningConfigurationResponse$=t.PutImageScanningConfigurationRequest$=t.PutImageResponse$=t.PutImageRequest$=t.PutAccountSettingResponse$=t.PutAccountSettingRequest$=t.PullThroughCacheRule$=t.PackageVulnerabilityDetails$=t.ListTagsForResourceResponse$=t.ListTagsForResourceRequest$=t.ListPullTimeUpdateExclusionsResponse$=t.ListPullTimeUpdateExclusionsRequest$=t.ListImagesResponse$=void 0;t.GetRegistryPolicy$=t.GetLifecyclePolicyPreview$=t.GetLifecyclePolicy$=t.GetDownloadUrlForLayer$=t.GetAuthorizationToken$=t.GetAccountSetting$=t.DescribeRepositoryCreationTemplates$=t.DescribeRepositories$=t.DescribeRegistry$=t.DescribePullThroughCacheRules$=t.DescribeImageSigningStatus$=t.DescribeImageScanFindings$=t.DescribeImages$=t.DescribeImageReplicationStatus$=t.DeregisterPullTimeUpdateExclusion$=t.DeleteSigningConfiguration$=t.DeleteRepositoryPolicy$=t.DeleteRepositoryCreationTemplate$=t.DeleteRepository$=t.DeleteRegistryPolicy$=t.DeletePullThroughCacheRule$=t.DeleteLifecyclePolicy$=t.CreateRepositoryCreationTemplate$=t.CreateRepository$=t.CreatePullThroughCacheRule$=t.CompleteLayerUpload$=t.BatchGetRepositoryScanningConfiguration$=t.BatchGetImage$=t.BatchDeleteImage$=t.BatchCheckLayerAvailability$=t.VulnerablePackage$=t.ValidatePullThroughCacheRuleResponse$=t.ValidatePullThroughCacheRuleRequest$=t.UploadLayerPartResponse$=t.UploadLayerPartRequest$=t.UpdateRepositoryCreationTemplateResponse$=t.UpdateRepositoryCreationTemplateRequest$=t.UpdatePullThroughCacheRuleResponse$=t.UpdatePullThroughCacheRuleRequest$=t.UpdateImageStorageClassResponse$=t.UpdateImageStorageClassRequest$=t.UntagResourceResponse$=t.UntagResourceRequest$=t.TransitioningImageTotalCount$=t.TagResourceResponse$=t.TagResourceRequest$=t.Tag$=t.SubjectIdentifier$=t.StartLifecyclePolicyPreviewResponse$=t.StartLifecyclePolicyPreviewRequest$=void 0;t.ValidatePullThroughCacheRule$=t.UploadLayerPart$=t.UpdateRepositoryCreationTemplate$=t.UpdatePullThroughCacheRule$=t.UpdateImageStorageClass$=t.UntagResource$=t.TagResource$=t.StartLifecyclePolicyPreview$=t.StartImageScan$=t.SetRepositoryPolicy$=t.RegisterPullTimeUpdateExclusion$=t.PutSigningConfiguration$=t.PutReplicationConfiguration$=t.PutRegistryScanningConfiguration$=t.PutRegistryPolicy$=t.PutLifecyclePolicy$=t.PutImageTagMutability$=t.PutImageScanningConfiguration$=t.PutImage$=t.PutAccountSetting$=t.ListTagsForResource$=t.ListPullTimeUpdateExclusions$=t.ListImages$=t.ListImageReferrers$=t.InitiateLayerUpload$=t.GetSigningConfiguration$=t.GetRepositoryPolicy$=t.GetRegistryScanningConfiguration$=void 0;const o="Attribute";const i="AuthorizationData";const c="AuthorizationDataList";const d="AwsEcrContainerImageDetails";const p="AttributeList";const y="BlockedByOrganizationPolicyException";const C="BatchCheckLayerAvailability";const Q="BatchCheckLayerAvailabilityRequest";const v="BatchCheckLayerAvailabilityResponse";const D="BatchDeleteImage";const k="BatchDeleteImageRequest";const $="BatchDeleteImageResponse";const V="BatchGetImage";const ee="BatchGetImageRequest";const te="BatchGetImageResponse";const re="BatchGetRepositoryScanningConfiguration";const ne="BatchGetRepositoryScanningConfigurationRequest";const se="BatchGetRepositoryScanningConfigurationResponse";const oe="CompleteLayerUpload";const ie="CompleteLayerUploadRequest";const ae="CompleteLayerUploadResponse";const ce="CreatePullThroughCacheRule";const le="CreatePullThroughCacheRuleRequest";const ue="CreatePullThroughCacheRuleResponse";const de="CreateRepository";const pe="CreateRepositoryCreationTemplate";const Ae="CreateRepositoryCreationTemplateRequest";const me="CreateRepositoryCreationTemplateResponse";const ge="CreateRepositoryRequest";const fe="CreateRepositoryResponse";const he="CvssScore";const ye="CvssScoreAdjustment";const Ee="CvssScoreAdjustmentList";const Ce="CvssScoreDetails";const Ie="CvssScoreList";const be="DescribeImages";const Se="DescribeImagesFilter";const Be="DescribeImagesRequest";const we="DescribeImageReplicationStatus";const Re="DescribeImageReplicationStatusRequest";const Ne="DescribeImageReplicationStatusResponse";const Qe="DescribeImagesResponse";const xe="DescribeImageScanFindings";const Te="DescribeImageScanFindingsRequest";const ve="DescribeImageScanFindingsResponse";const Pe="DescribeImageSigningStatus";const De="DescribeImageSigningStatusRequest";const ke="DescribeImageSigningStatusResponse";const _e="DeleteLifecyclePolicy";const Le="DeleteLifecyclePolicyRequest";const Oe="DeleteLifecyclePolicyResponse";const Fe="DeletePullThroughCacheRule";const Ue="DeletePullThroughCacheRuleRequest";const Me="DeletePullThroughCacheRuleResponse";const He="DescribePullThroughCacheRulesRequest";const $e="DescribePullThroughCacheRulesResponse";const Ge="DescribePullThroughCacheRules";const qe="DeregisterPullTimeUpdateExclusion";const ze="DeregisterPullTimeUpdateExclusionRequest";const Ve="DeregisterPullTimeUpdateExclusionResponse";const je="DeleteRepository";const Ye="DeleteRepositoryCreationTemplate";const Je="DeleteRepositoryCreationTemplateRequest";const We="DeleteRepositoryCreationTemplateResponse";const Ke="DescribeRepositoryCreationTemplatesRequest";const Xe="DescribeRepositoryCreationTemplatesResponse";const Ze="DescribeRepositoryCreationTemplates";const At="DeleteRegistryPolicy";const mt="DeleteRegistryPolicyRequest";const ht="DeleteRegistryPolicyResponse";const yt="DeleteRepositoryPolicyRequest";const Et="DeleteRepositoryPolicyResponse";const Ct="DeleteRepositoryPolicy";const It="DeleteRepositoryRequest";const bt="DeleteRepositoryResponse";const St="DescribeRegistryRequest";const Bt="DescribeRegistryResponse";const wt="DescribeRepositoriesRequest";const Rt="DescribeRepositoriesResponse";const Nt="DescribeRegistry";const Qt="DescribeRepositories";const xt="DeleteSigningConfiguration";const Tt="DeleteSigningConfigurationRequest";const vt="DeleteSigningConfigurationResponse";const Pt="ExclusionAlreadyExistsException";const Dt="EncryptionConfiguration";const kt="EncryptionConfigurationForRepositoryCreationTemplate";const _t="EnhancedImageScanFinding";const Lt="EnhancedImageScanFindingList";const Ot="ExclusionNotFoundException";const Ft="EmptyUploadException";const Ut="GetAccountSetting";const Mt="GetAccountSettingRequest";const Ht="GetAccountSettingResponse";const $t="GetAuthorizationToken";const Gt="GetAuthorizationTokenRequest";const qt="GetAuthorizationTokenResponse";const zt="GetDownloadUrlForLayer";const Vt="GetDownloadUrlForLayerRequest";const jt="GetDownloadUrlForLayerResponse";const Yt="GetLifecyclePolicy";const Jt="GetLifecyclePolicyPreview";const Wt="GetLifecyclePolicyPreviewRequest";const Kt="GetLifecyclePolicyPreviewResponse";const Xt="GetLifecyclePolicyRequest";const Zt="GetLifecyclePolicyResponse";const er="GetRegistryPolicy";const tr="GetRegistryPolicyRequest";const rr="GetRegistryPolicyResponse";const nr="GetRepositoryPolicyRequest";const sr="GetRepositoryPolicyResponse";const or="GetRepositoryPolicy";const ir="GetRegistryScanningConfiguration";const ar="GetRegistryScanningConfigurationRequest";const cr="GetRegistryScanningConfigurationResponse";const lr="GetSigningConfiguration";const ur="GetSigningConfigurationRequest";const dr="GetSigningConfigurationResponse";const pr="Image";const Ar="ImageArchivedException";const mr="ImageAlreadyExistsException";const gr="ImageDetail";const fr="ImageDigestDoesNotMatchException";const hr="ImageDetailList";const yr="ImageFailure";const Er="ImageFailureList";const Cr="ImageIdentifier";const Ir="ImageIdentifierList";const br="ImageList";const Sr="InvalidLayerException";const Br="InvalidLayerPartException";const wr="InitiateLayerUpload";const Rr="InitiateLayerUploadRequest";const Nr="InitiateLayerUploadResponse";const Qr="ImageNotFoundException";const xr="InvalidParameterException";const Tr="ImageReferrer";const vr="ImageReferrerList";const Pr="ImageReplicationStatus";const Dr="ImageReplicationStatusList";const kr="ImageScanningConfiguration";const _r="ImageStorageClassUpdateNotSupportedException";const Lr="ImageScanFinding";const Or="ImageScanFindingList";const Fr="ImageScanFindingsSummary";const Ur="ImageScanFindings";const Mr="ImageScanStatus";const Hr="ImageSigningStatusList";const $r="ImageSigningStatus";const Gr="ImageTagAlreadyExistsException";const qr="ImageTagMutabilityExclusionFilter";const zr="ImageTagMutabilityExclusionFilters";const Vr="InvalidTagParameterException";const jr="Key";const Yr="KmsException";const Jr="Layer";const Wr="LayerAlreadyExistsException";const Kr="LimitExceededException";const Xr="LayerFailure";const Zr="LayerFailureList";const en="ListImages";const tn="LayerInaccessibleException";const rn="ListImagesFilter";const nn="ListImagesRequest";const sn="ListImageReferrersFilter";const on="ListImageReferrersRequest";const an="ListImageReferrersResponse";const cn="ListImagesResponse";const ln="ListImageReferrers";const un="LayerList";const dn="LayersNotFoundException";const pn="LifecyclePolicyNotFoundException";const An="LifecyclePolicyPreviewFilter";const mn="LifecyclePolicyPreviewInProgressException";const gn="LifecyclePolicyPreviewNotFoundException";const hn="LifecyclePolicyPreviewResult";const yn="LifecyclePolicyPreviewResultList";const En="LifecyclePolicyPreviewSummary";const Cn="LifecyclePolicyRuleAction";const In="LayerPartTooSmallException";const bn="ListPullTimeUpdateExclusions";const Sn="ListPullTimeUpdateExclusionsRequest";const Bn="ListPullTimeUpdateExclusionsResponse";const wn="ListTagsForResource";const Rn="ListTagsForResourceRequest";const Nn="ListTagsForResourceResponse";const Qn="PutAccountSetting";const xn="PutAccountSettingRequest";const Tn="PutAccountSettingResponse";const vn="PutImage";const Pn="PutImageRequest";const Dn="PutImageResponse";const kn="PutImageScanningConfiguration";const _n="PutImageScanningConfigurationRequest";const Ln="PutImageScanningConfigurationResponse";const On="PutImageTagMutability";const Fn="PutImageTagMutabilityRequest";const Un="PutImageTagMutabilityResponse";const Mn="PutLifecyclePolicy";const Hn="PutLifecyclePolicyRequest";const $n="PutLifecyclePolicyResponse";const Gn="PutReplicationConfiguration";const qn="PutReplicationConfigurationRequest";const zn="PutReplicationConfigurationResponse";const Vn="PutRegistryPolicy";const jn="PutRegistryPolicyRequest";const Yn="PutRegistryPolicyResponse";const Jn="PutRegistryScanningConfiguration";const Wn="PutRegistryScanningConfigurationRequest";const Kn="PutRegistryScanningConfigurationResponse";const Xn="PutSigningConfiguration";const Zn="PutSigningConfigurationRequest";const es="PutSigningConfigurationResponse";const ts="PullThroughCacheRule";const rs="PullThroughCacheRuleAlreadyExistsException";const ns="PullThroughCacheRuleList";const ss="PullThroughCacheRuleNotFoundException";const os="PackageVulnerabilityDetails";const as="Recommendation";const cs="RepositoryAlreadyExistsException";const ls="ReplicationConfiguration";const us="RepositoryCreationTemplate";const ds="RepositoryCreationTemplateList";const ps="ReplicationDestination";const As="ReplicationDestinationList";const ms="ResourceDetails";const gs="RepositoryFilter";const fs="RepositoryFilterList";const hs="ReferencedImagesNotFoundException";const ys="RepositoryList";const Es="ResourceList";const Cs="RepositoryNotEmptyException";const Is="RepositoryNotFoundException";const bs="RegistryPolicyNotFoundException";const Ss="RepositoryPolicyNotFoundException";const Bs="RegisterPullTimeUpdateExclusion";const ws="RegisterPullTimeUpdateExclusionRequest";const Rs="RegisterPullTimeUpdateExclusionResponse";const Ns="ReplicationRule";const Qs="ReplicationRuleList";const xs="RegistryScanningConfiguration";const Ts="RepositoryScanningConfigurationFailure";const vs="RepositoryScanningConfigurationFailureList";const Ps="RepositoryScanningConfigurationList";const Ds="RepositoryScanningConfiguration";const ks="RegistryScanningRule";const _s="RegistryScanningRuleList";const Ls="Remediation";const Os="Repository";const Fs="Resource";const Us="SigningConfiguration";const Ms="SigningConfigurationNotFoundException";const Hs="ScoreDetails";const $s="ServerException";const Gs="SubjectIdentifier";const qs="StartImageScan";const zs="StartImageScanRequest";const Vs="StartImageScanResponse";const js="StartLifecyclePolicyPreview";const Ys="StartLifecyclePolicyPreviewRequest";const Js="StartLifecyclePolicyPreviewResponse";const Ws="ScanNotFoundException";const Ks="SecretNotFoundException";const Xs="SigningRule";const Zs="ScanningRepositoryFilter";const eo="ScanningRepositoryFilterList";const to="SigningRepositoryFilterList";const ro="SigningRepositoryFilter";const no="SigningRuleList";const so="SetRepositoryPolicy";const oo="SetRepositoryPolicyRequest";const io="SetRepositoryPolicyResponse";const ao="Tag";const co="TemplateAlreadyExistsException";const lo="TransitioningImageTotalCount";const uo="TransitioningImageTotalCounts";const po="TagList";const Ao="TooManyTagsException";const mo="TemplateNotFoundException";const go="TagResource";const fo="TagResourceRequest";const ho="TagResourceResponse";const yo="UpdateImageStorageClass";const Eo="UpdateImageStorageClassRequest";const Co="UpdateImageStorageClassResponse";const Io="UnsupportedImageTypeException";const bo="UploadLayerPart";const So="UploadLayerPartRequest";const Bo="UploadLayerPartResponse";const wo="UploadNotFoundException";const Ro="UpdatePullThroughCacheRule";const No="UpdatePullThroughCacheRuleRequest";const Qo="UpdatePullThroughCacheRuleResponse";const xo="UntagResource";const To="UpdateRepositoryCreationTemplate";const vo="UpdateRepositoryCreationTemplateRequest";const Po="UpdateRepositoryCreationTemplateResponse";const Do="UntagResourceRequest";const ko="UntagResourceResponse";const _o="UnableToAccessSecretException";const Lo="UnableToDecryptSecretValueException";const Oo="UnableToGetUpstreamImageException";const Fo="UnableToGetUpstreamLayerException";const Uo="UnsupportedUpstreamRegistryException";const Mo="Value";const Ho="ValidationException";const $o="VulnerablePackage";const Go="VulnerablePackagesList";const qo="ValidatePullThroughCacheRule";const zo="ValidatePullThroughCacheRuleRequest";const Vo="ValidatePullThroughCacheRuleResponse";const jo="architecture";const Yo="awsAccountId";const Jo="authorizationData";const Wo="awsEcrContainerImage";const Ko="appliedFor";const Xo="acceptedMediaTypes";const Zo="artifactMediaType";const ei="appliedRulePriority";const ti="artifactStatus";const ri="appliedScanFilters";const ni="authorizationToken";const si="artifactType";const oi="artifactTypes";const ii="action";const ai="adjustments";const ci="annotations";const li="arch";const ui="attributes";const di="author";const pi="baseScore";const Ai="client";const mi="credentialArn";const gi="createdAt";const fi="customRoleArn";const hi="cvss";const yi="description";const Ei="downloadUrl";const Ci="destinations";const Ii="details";const bi="digest";const Si="error";const Bi="expiresAt";const wi="exploitAvailable";const Ri="encryptionConfiguration";const Ni="enhancedFindings";const Qi="expiringImageTotalCount";const xi="ecrRepositoryPrefix";const Ti="ecrRepositoryPrefixes";const vi="encryptionType";const Pi="epoch";const Di="failures";const ki="findingArn";const _i="fixAvailable";const Li="failureCode";const Oi="fixedInVersion";const Fi="firstObservedAt";const Ui="filePath";const Mi="failureReason";const Hi="findingSeverityCounts";const $i="filterType";const Gi="failure";const qi="filter";const zi="findings";const Vi="force";const ji="httpError";const Yi="images";const Ji="imageDetails";const Wi="imageDigest";const Ki="imageHash";const Xi="imageIds";const Zi="imageId";const ea="imageManifest";const ta="imageManifestMediaType";const ra="imagePushedAt";const na="imageStatus";const sa="imageScanningConfiguration";const oa="imageScanCompletedAt";const ia="imageScanFindings";const aa="imageScanFindingsSummary";const ca="imageSizeInBytes";const la="imageScanStatus";const ua="imageTags";const da="imageTotalCount";const pa="imageTagMutability";const Aa="imageTagMutabilityExclusionFilters";const ma="imageTag";const ga="inUseCount";const fa="isValid";const ha="id";const ya="image";const Ea="key";const Ca="kmsError";const Ia="kmsKey";const ba="layers";const Sa="layerAvailability";const Ba="lastArchivedAt";const wa="lastActivatedAt";const Ra="lastByteReceived";const Na="layerDigests";const Qa="layerDigest";const xa="lastEvaluatedAt";const Ta="lastInUseAt";const va="lastObservedAt";const Pa="lifecyclePolicy";const Da="layerPartBlob";const ka="lifecyclePolicyText";const _a="lastRecordedPullTime";const La="layerSize";const Oa="lastValidByteReceived";const Fa="message";const Ua="maxResults";const Ma="mediaType";const Ha="metric";const $a="name";const Ga="nextToken";const qa="platform";const za="pushedAt";const Va="principalArn";const ja="proxyEndpoint";const Ya="partFirstByte";const Ja="partLastByte";const Wa="packageManager";const Ka="previewResults";const Xa="partSize";const Za="policyText";const ec="pullThroughCacheRules";const tc="pullTimeUpdateExclusions";const rc="packageVulnerabilityDetails";const nc="prefix";const sc="prefixes";const oc="registry";const ic="resourceArn";const ac="repositoryArn";const cc="replicationConfiguration";const lc="repositoryCreationTemplate";const uc="repositoryCreationTemplates";const dc="repositoryFilters";const pc="registryId";const Ac="registryIds";const mc="repositoryName";const gc="repositoryNames";const fc="repositoryPolicy";const hc="replicationStatuses";const yc="registryScanningConfiguration";const Ec="resourceTags";const Cc="referenceUrls";const Ic="repositoryUri";const bc="relatedVulnerabilities";const Sc="repository";const Bc="reason";const wc="recommendation";const Rc="referrers";const Nc="region";const Qc="release";const xc="remediation";const Tc="repositories";const vc="resources";const Pc="rules";const Dc="smithy.ts.sdk.synthetic.com.amazonaws.ecr";const kc="scanningConfigurations";const _c="scanningConfiguration";const Lc="signingConfiguration";const Oc="storageClass";const Fc="scoreDetails";const Uc="scanFrequency";const Mc="subjectId";const Hc="sourceLayerHash";const $c="subjectManifestDigest";const Gc="scanOnPush";const qc="signingProfileArn";const zc="scoreSource";const Vc="signingStatuses";const jc="scanType";const Yc="sourceUrl";const Jc="scoringVector";const Wc="score";const Kc="server";const Xc="severity";const Zc="size";const el="source";const tl="status";const rl="summary";const nl="tags";const sl="transitioningImageTotalCounts";const ol="tagKeys";const il="tagStatus";const al="targetStorageClass";const cl="text";const ll="title";const ul="type";const dl="uri";const pl="updatedAt";const Al="uploadId";const ml="upstreamRegistry";const gl="upstreamRepositoryPrefix";const fl="upstreamRegistryUrl";const hl="url";const yl="value";const El="vendorCreatedAt";const Cl="vulnerabilityId";const Il="vulnerablePackages";const bl="vendorSeverity";const Sl="vulnerabilitySourceUpdatedAt";const Bl="vendorUpdatedAt";const wl="version";const Rl="com.amazonaws.ecr";const Nl=n(6890);const Ql=n(5502);const xl=n(4901);const Tl=Nl.TypeRegistry.for(Dc);t.ECRServiceException$=[-3,Dc,"ECRServiceException",0,[],[]];Tl.registerError(t.ECRServiceException$,Ql.ECRServiceException);const vl=Nl.TypeRegistry.for(Rl);t.BlockedByOrganizationPolicyException$=[-3,Rl,y,{[Si]:Ai},[Fa],[0]];vl.registerError(t.BlockedByOrganizationPolicyException$,xl.BlockedByOrganizationPolicyException);t.EmptyUploadException$=[-3,Rl,Ft,{[Si]:Ai},[Fa],[0]];vl.registerError(t.EmptyUploadException$,xl.EmptyUploadException);t.ExclusionAlreadyExistsException$=[-3,Rl,Pt,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ExclusionAlreadyExistsException$,xl.ExclusionAlreadyExistsException);t.ExclusionNotFoundException$=[-3,Rl,Ot,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ExclusionNotFoundException$,xl.ExclusionNotFoundException);t.ImageAlreadyExistsException$=[-3,Rl,mr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageAlreadyExistsException$,xl.ImageAlreadyExistsException);t.ImageArchivedException$=[-3,Rl,Ar,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageArchivedException$,xl.ImageArchivedException);t.ImageDigestDoesNotMatchException$=[-3,Rl,fr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageDigestDoesNotMatchException$,xl.ImageDigestDoesNotMatchException);t.ImageNotFoundException$=[-3,Rl,Qr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageNotFoundException$,xl.ImageNotFoundException);t.ImageStorageClassUpdateNotSupportedException$=[-3,Rl,_r,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageStorageClassUpdateNotSupportedException$,xl.ImageStorageClassUpdateNotSupportedException);t.ImageTagAlreadyExistsException$=[-3,Rl,Gr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageTagAlreadyExistsException$,xl.ImageTagAlreadyExistsException);t.InvalidLayerException$=[-3,Rl,Sr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.InvalidLayerException$,xl.InvalidLayerException);t.InvalidLayerPartException$=[-3,Rl,Br,{[Si]:Ai},[pc,mc,Al,Oa,Fa],[0,0,0,1,0]];vl.registerError(t.InvalidLayerPartException$,xl.InvalidLayerPartException);t.InvalidParameterException$=[-3,Rl,xr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.InvalidParameterException$,xl.InvalidParameterException);t.InvalidTagParameterException$=[-3,Rl,Vr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.InvalidTagParameterException$,xl.InvalidTagParameterException);t.KmsException$=[-3,Rl,Yr,{[Si]:Ai},[Fa,Ca],[0,0]];vl.registerError(t.KmsException$,xl.KmsException);t.LayerAlreadyExistsException$=[-3,Rl,Wr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayerAlreadyExistsException$,xl.LayerAlreadyExistsException);t.LayerInaccessibleException$=[-3,Rl,tn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayerInaccessibleException$,xl.LayerInaccessibleException);t.LayerPartTooSmallException$=[-3,Rl,In,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayerPartTooSmallException$,xl.LayerPartTooSmallException);t.LayersNotFoundException$=[-3,Rl,dn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayersNotFoundException$,xl.LayersNotFoundException);t.LifecyclePolicyNotFoundException$=[-3,Rl,pn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LifecyclePolicyNotFoundException$,xl.LifecyclePolicyNotFoundException);t.LifecyclePolicyPreviewInProgressException$=[-3,Rl,mn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LifecyclePolicyPreviewInProgressException$,xl.LifecyclePolicyPreviewInProgressException);t.LifecyclePolicyPreviewNotFoundException$=[-3,Rl,gn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LifecyclePolicyPreviewNotFoundException$,xl.LifecyclePolicyPreviewNotFoundException);t.LimitExceededException$=[-3,Rl,Kr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LimitExceededException$,xl.LimitExceededException);t.PullThroughCacheRuleAlreadyExistsException$=[-3,Rl,rs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.PullThroughCacheRuleAlreadyExistsException$,xl.PullThroughCacheRuleAlreadyExistsException);t.PullThroughCacheRuleNotFoundException$=[-3,Rl,ss,{[Si]:Ai},[Fa],[0]];vl.registerError(t.PullThroughCacheRuleNotFoundException$,xl.PullThroughCacheRuleNotFoundException);t.ReferencedImagesNotFoundException$=[-3,Rl,hs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ReferencedImagesNotFoundException$,xl.ReferencedImagesNotFoundException);t.RegistryPolicyNotFoundException$=[-3,Rl,bs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RegistryPolicyNotFoundException$,xl.RegistryPolicyNotFoundException);t.RepositoryAlreadyExistsException$=[-3,Rl,cs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryAlreadyExistsException$,xl.RepositoryAlreadyExistsException);t.RepositoryNotEmptyException$=[-3,Rl,Cs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryNotEmptyException$,xl.RepositoryNotEmptyException);t.RepositoryNotFoundException$=[-3,Rl,Is,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryNotFoundException$,xl.RepositoryNotFoundException);t.RepositoryPolicyNotFoundException$=[-3,Rl,Ss,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryPolicyNotFoundException$,xl.RepositoryPolicyNotFoundException);t.ScanNotFoundException$=[-3,Rl,Ws,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ScanNotFoundException$,xl.ScanNotFoundException);t.SecretNotFoundException$=[-3,Rl,Ks,{[Si]:Ai},[Fa],[0]];vl.registerError(t.SecretNotFoundException$,xl.SecretNotFoundException);t.ServerException$=[-3,Rl,$s,{[Si]:Kc},[Fa],[0]];vl.registerError(t.ServerException$,xl.ServerException);t.SigningConfigurationNotFoundException$=[-3,Rl,Ms,{[Si]:Ai},[Fa],[0]];vl.registerError(t.SigningConfigurationNotFoundException$,xl.SigningConfigurationNotFoundException);t.TemplateAlreadyExistsException$=[-3,Rl,co,{[Si]:Ai},[Fa],[0]];vl.registerError(t.TemplateAlreadyExistsException$,xl.TemplateAlreadyExistsException);t.TemplateNotFoundException$=[-3,Rl,mo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.TemplateNotFoundException$,xl.TemplateNotFoundException);t.TooManyTagsException$=[-3,Rl,Ao,{[Si]:Ai},[Fa],[0]];vl.registerError(t.TooManyTagsException$,xl.TooManyTagsException);t.UnableToAccessSecretException$=[-3,Rl,_o,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToAccessSecretException$,xl.UnableToAccessSecretException);t.UnableToDecryptSecretValueException$=[-3,Rl,Lo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToDecryptSecretValueException$,xl.UnableToDecryptSecretValueException);t.UnableToGetUpstreamImageException$=[-3,Rl,Oo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToGetUpstreamImageException$,xl.UnableToGetUpstreamImageException);t.UnableToGetUpstreamLayerException$=[-3,Rl,Fo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToGetUpstreamLayerException$,xl.UnableToGetUpstreamLayerException);t.UnsupportedImageTypeException$=[-3,Rl,Io,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnsupportedImageTypeException$,xl.UnsupportedImageTypeException);t.UnsupportedUpstreamRegistryException$=[-3,Rl,Uo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnsupportedUpstreamRegistryException$,xl.UnsupportedUpstreamRegistryException);t.UploadNotFoundException$=[-3,Rl,wo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UploadNotFoundException$,xl.UploadNotFoundException);t.ValidationException$=[-3,Rl,Ho,{[Si]:Ai,[ji]:400},[Fa],[0]];vl.registerError(t.ValidationException$,xl.ValidationException);t.errorTypeRegistries=[Tl,vl];t.Attribute$=[3,Rl,o,0,[Ea,yl],[0,0],1];t.AuthorizationData$=[3,Rl,i,0,[ni,Bi,ja],[0,4,0]];t.AwsEcrContainerImageDetails$=[3,Rl,d,0,[jo,di,Ki,ua,qa,za,Ta,ga,oc,mc],[0,0,0,64|0,0,4,4,1,0,0]];t.BatchCheckLayerAvailabilityRequest$=[3,Rl,Q,0,[mc,Na,pc],[0,64|0,0],2];t.BatchCheckLayerAvailabilityResponse$=[3,Rl,v,0,[ba,Di],[()=>Zl,()=>Xl]];t.BatchDeleteImageRequest$=[3,Rl,k,0,[mc,Xi,pc],[0,()=>$l,0],2];t.BatchDeleteImageResponse$=[3,Rl,$,0,[Xi,Di],[()=>$l,()=>Hl]];t.BatchGetImageRequest$=[3,Rl,ee,0,[mc,Xi,pc,Xo],[0,()=>$l,0,64|0],2];t.BatchGetImageResponse$=[3,Rl,te,0,[Yi,Di],[()=>Gl,()=>Hl]];t.BatchGetRepositoryScanningConfigurationRequest$=[3,Rl,ne,0,[gc],[64|0],1];t.BatchGetRepositoryScanningConfigurationResponse$=[3,Rl,se,0,[kc,Di],[()=>hu,()=>fu]];t.CompleteLayerUploadRequest$=[3,Rl,ie,0,[mc,Al,Na,pc],[0,0,64|0,0],3];t.CompleteLayerUploadResponse$=[3,Rl,ae,0,[pc,mc,Al,Qa],[0,0,0,0]];t.CreatePullThroughCacheRuleRequest$=[3,Rl,le,0,[xi,fl,pc,ml,mi,fi,gl],[0,0,0,0,0,0,0],2];t.CreatePullThroughCacheRuleResponse$=[3,Rl,ue,0,[xi,fl,gi,pc,ml,mi,fi,gl],[0,0,4,0,0,0,0,0]];t.CreateRepositoryCreationTemplateRequest$=[3,Rl,Ae,0,[nc,Ko,yi,Ri,Ec,pa,Aa,fc,Pa,fi],[0,64|0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Bu,0,()=>Jl,0,0,0],2];t.CreateRepositoryCreationTemplateResponse$=[3,Rl,me,0,[pc,lc],[0,()=>t.RepositoryCreationTemplate$]];t.CreateRepositoryRequest$=[3,Rl,ge,0,[mc,pc,nl,pa,Aa,sa,Ri],[0,0,()=>Bu,0,()=>Jl,()=>t.ImageScanningConfiguration$,()=>t.EncryptionConfiguration$],1];t.CreateRepositoryResponse$=[3,Rl,fe,0,[Sc],[()=>t.Repository$]];t.CvssScore$=[3,Rl,he,0,[pi,Jc,el,wl],[1,0,0,0]];t.CvssScoreAdjustment$=[3,Rl,ye,0,[Ha,Bc],[0,0]];t.CvssScoreDetails$=[3,Rl,Ce,0,[ai,Wc,zc,Jc,wl],[()=>Ll,1,0,0,0]];t.DeleteLifecyclePolicyRequest$=[3,Rl,Le,0,[mc,pc],[0,0],1];t.DeleteLifecyclePolicyResponse$=[3,Rl,Oe,0,[pc,mc,ka,xa],[0,0,0,4]];t.DeletePullThroughCacheRuleRequest$=[3,Rl,Ue,0,[xi,pc],[0,0],1];t.DeletePullThroughCacheRuleResponse$=[3,Rl,Me,0,[xi,fl,gi,pc,mi,fi,gl],[0,0,4,0,0,0,0]];t.DeleteRegistryPolicyRequest$=[3,Rl,mt,0,[],[]];t.DeleteRegistryPolicyResponse$=[3,Rl,ht,0,[pc,Za],[0,0]];t.DeleteRepositoryCreationTemplateRequest$=[3,Rl,Je,0,[nc],[0],1];t.DeleteRepositoryCreationTemplateResponse$=[3,Rl,We,0,[pc,lc],[0,()=>t.RepositoryCreationTemplate$]];t.DeleteRepositoryPolicyRequest$=[3,Rl,yt,0,[mc,pc],[0,0],1];t.DeleteRepositoryPolicyResponse$=[3,Rl,Et,0,[pc,mc,Za],[0,0,0]];t.DeleteRepositoryRequest$=[3,Rl,It,0,[mc,pc,Vi],[0,0,2],1];t.DeleteRepositoryResponse$=[3,Rl,bt,0,[Sc],[()=>t.Repository$]];t.DeleteSigningConfigurationRequest$=[3,Rl,Tt,0,[],[]];t.DeleteSigningConfigurationResponse$=[3,Rl,vt,0,[pc,Lc],[0,()=>t.SigningConfiguration$]];t.DeregisterPullTimeUpdateExclusionRequest$=[3,Rl,ze,0,[Va],[0],1];t.DeregisterPullTimeUpdateExclusionResponse$=[3,Rl,Ve,0,[Va],[0]];t.DescribeImageReplicationStatusRequest$=[3,Rl,Re,0,[mc,Zi,pc],[0,()=>t.ImageIdentifier$,0],2];t.DescribeImageReplicationStatusResponse$=[3,Rl,Ne,0,[mc,Zi,hc],[0,()=>t.ImageIdentifier$,()=>zl]];t.DescribeImageScanFindingsRequest$=[3,Rl,Te,0,[mc,Zi,pc,Ga,Ua],[0,()=>t.ImageIdentifier$,0,0,1],2];t.DescribeImageScanFindingsResponse$=[3,Rl,ve,0,[pc,mc,Zi,la,ia,Ga],[0,0,()=>t.ImageIdentifier$,()=>t.ImageScanStatus$,()=>t.ImageScanFindings$,0]];t.DescribeImagesFilter$=[3,Rl,Se,0,[il,na],[0,0]];t.DescribeImageSigningStatusRequest$=[3,Rl,De,0,[mc,Zi,pc],[0,()=>t.ImageIdentifier$,0],2];t.DescribeImageSigningStatusResponse$=[3,Rl,ke,0,[mc,Zi,pc,Vc],[0,()=>t.ImageIdentifier$,0,()=>jl]];t.DescribeImagesRequest$=[3,Rl,Be,0,[mc,pc,Xi,Ga,Ua,qi],[0,0,()=>$l,0,1,()=>t.DescribeImagesFilter$],1];t.DescribeImagesResponse$=[3,Rl,Qe,0,[Ji,Ga],[()=>Ml,0]];t.DescribePullThroughCacheRulesRequest$=[3,Rl,He,0,[pc,Ti,Ga,Ua],[0,64|0,0,1]];t.DescribePullThroughCacheRulesResponse$=[3,Rl,$e,0,[ec,Ga],[()=>nu,0]];t.DescribeRegistryRequest$=[3,Rl,St,0,[],[]];t.DescribeRegistryResponse$=[3,Rl,Bt,0,[pc,cc],[0,()=>t.ReplicationConfiguration$]];t.DescribeRepositoriesRequest$=[3,Rl,wt,0,[pc,gc,Ga,Ua],[0,64|0,0,1]];t.DescribeRepositoriesResponse$=[3,Rl,Rt,0,[Tc,Ga],[()=>mu,0]];t.DescribeRepositoryCreationTemplatesRequest$=[3,Rl,Ke,0,[sc,Ga,Ua],[64|0,0,1]];t.DescribeRepositoryCreationTemplatesResponse$=[3,Rl,Xe,0,[pc,uc,Ga],[0,()=>pu,0]];t.EncryptionConfiguration$=[3,Rl,Dt,0,[vi,Ia],[0,0],1];t.EncryptionConfigurationForRepositoryCreationTemplate$=[3,Rl,kt,0,[vi,Ia],[0,0],1];t.EnhancedImageScanFinding$=[3,Rl,_t,0,[Yo,yi,ki,Fi,va,rc,xc,vc,Wc,Fc,Xc,tl,ll,ul,pl,_i,wi],[0,0,0,4,4,()=>t.PackageVulnerabilityDetails$,()=>t.Remediation$,()=>yu,1,()=>t.ScoreDetails$,0,0,0,0,4,0,0]];t.GetAccountSettingRequest$=[3,Rl,Mt,0,[$a],[0],1];t.GetAccountSettingResponse$=[3,Rl,Ht,0,[$a,yl],[0,0]];t.GetAuthorizationTokenRequest$=[3,Rl,Gt,0,[Ac],[64|0]];t.GetAuthorizationTokenResponse$=[3,Rl,qt,0,[Jo],[()=>kl]];t.GetDownloadUrlForLayerRequest$=[3,Rl,Vt,0,[mc,Qa,pc],[0,0,0],2];t.GetDownloadUrlForLayerResponse$=[3,Rl,jt,0,[Ei,Qa],[0,0]];t.GetLifecyclePolicyPreviewRequest$=[3,Rl,Wt,0,[mc,pc,Xi,Ga,Ua,qi],[0,0,()=>$l,0,1,()=>t.LifecyclePolicyPreviewFilter$],1];t.GetLifecyclePolicyPreviewResponse$=[3,Rl,Kt,0,[pc,mc,ka,tl,Ga,Ka,rl],[0,0,0,0,0,()=>eu,()=>t.LifecyclePolicyPreviewSummary$]];t.GetLifecyclePolicyRequest$=[3,Rl,Xt,0,[mc,pc],[0,0],1];t.GetLifecyclePolicyResponse$=[3,Rl,Zt,0,[pc,mc,ka,xa],[0,0,0,4]];t.GetRegistryPolicyRequest$=[3,Rl,tr,0,[],[]];t.GetRegistryPolicyResponse$=[3,Rl,rr,0,[pc,Za],[0,0]];t.GetRegistryScanningConfigurationRequest$=[3,Rl,ar,0,[],[]];t.GetRegistryScanningConfigurationResponse$=[3,Rl,cr,0,[pc,_c],[0,()=>t.RegistryScanningConfiguration$]];t.GetRepositoryPolicyRequest$=[3,Rl,nr,0,[mc,pc],[0,0],1];t.GetRepositoryPolicyResponse$=[3,Rl,sr,0,[pc,mc,Za],[0,0,0]];t.GetSigningConfigurationRequest$=[3,Rl,ur,0,[],[]];t.GetSigningConfigurationResponse$=[3,Rl,dr,0,[pc,Lc],[0,()=>t.SigningConfiguration$]];t.Image$=[3,Rl,pr,0,[pc,mc,Zi,ea,ta],[0,0,()=>t.ImageIdentifier$,0,0]];t.ImageDetail$=[3,Rl,gr,0,[pc,mc,Wi,ua,ca,ra,la,aa,ta,Zo,_a,$c,na,Ba,wa],[0,0,0,64|0,1,4,()=>t.ImageScanStatus$,()=>t.ImageScanFindingsSummary$,0,0,4,0,0,4,4]];t.ImageFailure$=[3,Rl,yr,0,[Zi,Li,Mi],[()=>t.ImageIdentifier$,0,0]];t.ImageIdentifier$=[3,Rl,Cr,0,[Wi,ma],[0,0]];t.ImageReferrer$=[3,Rl,Tr,0,[bi,Ma,Zc,si,ci,ti],[0,0,1,0,128|0,0],3];t.ImageReplicationStatus$=[3,Rl,Pr,0,[Nc,pc,tl,Li],[0,0,0,0]];t.ImageScanFinding$=[3,Rl,Lr,0,[$a,yi,dl,Xc,ui],[0,0,0,0,()=>Dl]];t.ImageScanFindings$=[3,Rl,Ur,0,[oa,Sl,Hi,zi,Ni],[4,4,128|1,()=>Vl,()=>Fl]];t.ImageScanFindingsSummary$=[3,Rl,Fr,0,[oa,Sl,Hi],[4,4,128|1]];t.ImageScanningConfiguration$=[3,Rl,kr,0,[Gc],[2]];t.ImageScanStatus$=[3,Rl,Mr,0,[tl,yi],[0,0]];t.ImageSigningStatus$=[3,Rl,$r,0,[qc,Li,Mi,tl],[0,0,0,0]];t.ImageTagMutabilityExclusionFilter$=[3,Rl,qr,0,[$i,qi],[0,0],2];t.InitiateLayerUploadRequest$=[3,Rl,Rr,0,[mc,pc],[0,0],1];t.InitiateLayerUploadResponse$=[3,Rl,Nr,0,[Al,Xa],[0,1]];t.Layer$=[3,Rl,Jr,0,[Qa,Sa,La,Ma],[0,0,1,0]];t.LayerFailure$=[3,Rl,Xr,0,[Qa,Li,Mi],[0,0,0]];t.LifecyclePolicyPreviewFilter$=[3,Rl,An,0,[il],[0]];t.LifecyclePolicyPreviewResult$=[3,Rl,hn,0,[ua,Wi,ra,ii,ei,Oc],[64|0,0,4,()=>t.LifecyclePolicyRuleAction$,1,0]];t.LifecyclePolicyPreviewSummary$=[3,Rl,En,0,[Qi,sl],[1,()=>wu]];t.LifecyclePolicyRuleAction$=[3,Rl,Cn,0,[ul,al],[0,0]];t.ListImageReferrersFilter$=[3,Rl,sn,0,[oi,ti],[64|0,0]];t.ListImageReferrersRequest$=[3,Rl,on,0,[mc,Mc,pc,qi,Ga,Ua],[0,()=>t.SubjectIdentifier$,0,()=>t.ListImageReferrersFilter$,0,1],2];t.ListImageReferrersResponse$=[3,Rl,an,0,[Rc,Ga],[()=>ql,0]];t.ListImagesFilter$=[3,Rl,rn,0,[il,na],[0,0]];t.ListImagesRequest$=[3,Rl,nn,0,[mc,pc,Ga,Ua,qi],[0,0,0,1,()=>t.ListImagesFilter$],1];t.ListImagesResponse$=[3,Rl,cn,0,[Xi,Ga],[()=>$l,0]];t.ListPullTimeUpdateExclusionsRequest$=[3,Rl,Sn,0,[Ua,Ga],[1,0]];t.ListPullTimeUpdateExclusionsResponse$=[3,Rl,Bn,0,[tc,Ga],[64|0,0]];t.ListTagsForResourceRequest$=[3,Rl,Rn,0,[ic],[0],1];t.ListTagsForResourceResponse$=[3,Rl,Nn,0,[nl],[()=>Bu]];t.PackageVulnerabilityDetails$=[3,Rl,os,0,[hi,Cc,bc,el,Yc,El,bl,Bl,Cl,Il],[()=>Ol,64|0,64|0,0,0,4,0,4,0,()=>Ru]];t.PullThroughCacheRule$=[3,Rl,ts,0,[xi,fl,gi,pc,mi,fi,gl,ml,pl],[0,0,4,0,0,0,0,0,4]];t.PutAccountSettingRequest$=[3,Rl,xn,0,[$a,yl],[0,0],2];t.PutAccountSettingResponse$=[3,Rl,Tn,0,[$a,yl],[0,0]];t.PutImageRequest$=[3,Rl,Pn,0,[mc,ea,pc,ta,ma,Wi],[0,0,0,0,0,0],2];t.PutImageResponse$=[3,Rl,Dn,0,[ya],[()=>t.Image$]];t.PutImageScanningConfigurationRequest$=[3,Rl,_n,0,[mc,sa,pc],[0,()=>t.ImageScanningConfiguration$,0],2];t.PutImageScanningConfigurationResponse$=[3,Rl,Ln,0,[pc,mc,sa],[0,0,()=>t.ImageScanningConfiguration$]];t.PutImageTagMutabilityRequest$=[3,Rl,Fn,0,[mc,pa,pc,Aa],[0,0,0,()=>Jl],2];t.PutImageTagMutabilityResponse$=[3,Rl,Un,0,[pc,mc,pa,Aa],[0,0,0,()=>Jl]];t.PutLifecyclePolicyRequest$=[3,Rl,Hn,0,[mc,ka,pc],[0,0,0],2];t.PutLifecyclePolicyResponse$=[3,Rl,$n,0,[pc,mc,ka],[0,0,0]];t.PutRegistryPolicyRequest$=[3,Rl,jn,0,[Za],[0],1];t.PutRegistryPolicyResponse$=[3,Rl,Yn,0,[pc,Za],[0,0]];t.PutRegistryScanningConfigurationRequest$=[3,Rl,Wn,0,[jc,Pc],[0,()=>cu]];t.PutRegistryScanningConfigurationResponse$=[3,Rl,Kn,0,[yc],[()=>t.RegistryScanningConfiguration$]];t.PutReplicationConfigurationRequest$=[3,Rl,qn,0,[cc],[()=>t.ReplicationConfiguration$],1];t.PutReplicationConfigurationResponse$=[3,Rl,zn,0,[cc],[()=>t.ReplicationConfiguration$]];t.PutSigningConfigurationRequest$=[3,Rl,Zn,0,[Lc],[()=>t.SigningConfiguration$],1];t.PutSigningConfigurationResponse$=[3,Rl,es,0,[Lc],[()=>t.SigningConfiguration$]];t.Recommendation$=[3,Rl,as,0,[hl,cl],[0,0]];t.RegisterPullTimeUpdateExclusionRequest$=[3,Rl,ws,0,[Va],[0],1];t.RegisterPullTimeUpdateExclusionResponse$=[3,Rl,Rs,0,[Va,gi],[0,4]];t.RegistryScanningConfiguration$=[3,Rl,xs,0,[jc,Pc],[0,()=>cu]];t.RegistryScanningRule$=[3,Rl,ks,0,[Uc,dc],[0,()=>Cu],2];t.Remediation$=[3,Rl,Ls,0,[wc],[()=>t.Recommendation$]];t.ReplicationConfiguration$=[3,Rl,ls,0,[Pc],[()=>du],1];t.ReplicationDestination$=[3,Rl,ps,0,[Nc,pc],[0,0],2];t.ReplicationRule$=[3,Rl,Ns,0,[Ci,dc],[()=>uu,()=>Au],1];t.Repository$=[3,Rl,Os,0,[ac,pc,mc,Ic,gi,pa,Aa,sa,Ri],[0,0,0,0,4,0,()=>Jl,()=>t.ImageScanningConfiguration$,()=>t.EncryptionConfiguration$]];t.RepositoryCreationTemplate$=[3,Rl,us,0,[nc,yi,Ri,Ec,pa,Aa,fc,Pa,Ko,fi,gi,pl],[0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Bu,0,()=>Jl,0,0,64|0,0,4,4]];t.RepositoryFilter$=[3,Rl,gs,0,[qi,$i],[0,0],2];t.RepositoryScanningConfiguration$=[3,Rl,Ds,0,[ac,mc,Gc,Uc,ri],[0,0,2,0,()=>Cu]];t.RepositoryScanningConfigurationFailure$=[3,Rl,Ts,0,[mc,Li,Mi],[0,0,0]];t.Resource$=[3,Rl,Fs,0,[Ii,ha,nl,ul],[()=>t.ResourceDetails$,0,128|0,0]];t.ResourceDetails$=[3,Rl,ms,0,[Wo],[()=>t.AwsEcrContainerImageDetails$]];t.ScanningRepositoryFilter$=[3,Rl,Zs,0,[qi,$i],[0,0],2];t.ScoreDetails$=[3,Rl,Hs,0,[hi],[()=>t.CvssScoreDetails$]];t.SetRepositoryPolicyRequest$=[3,Rl,oo,0,[mc,Za,pc,Vi],[0,0,0,2],2];t.SetRepositoryPolicyResponse$=[3,Rl,io,0,[pc,mc,Za],[0,0,0]];t.SigningConfiguration$=[3,Rl,Us,0,[Pc],[()=>bu],1];t.SigningRepositoryFilter$=[3,Rl,ro,0,[qi,$i],[0,0],2];t.SigningRule$=[3,Rl,Xs,0,[qc,dc],[0,()=>Iu],1];t.StartImageScanRequest$=[3,Rl,zs,0,[mc,Zi,pc],[0,()=>t.ImageIdentifier$,0],2];t.StartImageScanResponse$=[3,Rl,Vs,0,[pc,mc,Zi,la],[0,0,()=>t.ImageIdentifier$,()=>t.ImageScanStatus$]];t.StartLifecyclePolicyPreviewRequest$=[3,Rl,Ys,0,[mc,pc,ka],[0,0,0],1];t.StartLifecyclePolicyPreviewResponse$=[3,Rl,Js,0,[pc,mc,ka,tl],[0,0,0,0]];t.SubjectIdentifier$=[3,Rl,Gs,0,[Wi],[0],1];t.Tag$=[3,Rl,ao,0,[jr,Mo],[0,0],2];t.TagResourceRequest$=[3,Rl,fo,0,[ic,nl],[0,()=>Bu],2];t.TagResourceResponse$=[3,Rl,ho,0,[],[]];t.TransitioningImageTotalCount$=[3,Rl,lo,0,[al,da],[0,1]];t.UntagResourceRequest$=[3,Rl,Do,0,[ic,ol],[0,64|0],2];t.UntagResourceResponse$=[3,Rl,ko,0,[],[]];t.UpdateImageStorageClassRequest$=[3,Rl,Eo,0,[mc,Zi,al,pc],[0,()=>t.ImageIdentifier$,0,0],3];t.UpdateImageStorageClassResponse$=[3,Rl,Co,0,[pc,mc,Zi,na],[0,0,()=>t.ImageIdentifier$,0]];t.UpdatePullThroughCacheRuleRequest$=[3,Rl,No,0,[xi,pc,mi,fi],[0,0,0,0],1];t.UpdatePullThroughCacheRuleResponse$=[3,Rl,Qo,0,[xi,pc,pl,mi,fi,gl],[0,0,4,0,0,0]];t.UpdateRepositoryCreationTemplateRequest$=[3,Rl,vo,0,[nc,yi,Ri,Ec,pa,Aa,fc,Pa,Ko,fi],[0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Bu,0,()=>Jl,0,0,64|0,0],1];t.UpdateRepositoryCreationTemplateResponse$=[3,Rl,Po,0,[pc,lc],[0,()=>t.RepositoryCreationTemplate$]];t.UploadLayerPartRequest$=[3,Rl,So,0,[mc,Al,Ya,Ja,Da,pc],[0,0,1,1,21,0],5];t.UploadLayerPartResponse$=[3,Rl,Bo,0,[pc,mc,Al,Ra],[0,0,0,1]];t.ValidatePullThroughCacheRuleRequest$=[3,Rl,zo,0,[xi,pc],[0,0],1];t.ValidatePullThroughCacheRuleResponse$=[3,Rl,Vo,0,[xi,pc,fl,mi,fi,gl,fa,Gi],[0,0,0,0,0,0,2,0]];t.VulnerablePackage$=[3,Rl,$o,0,[li,Pi,Ui,$a,Wa,Qc,Hc,wl,Oi],[0,1,0,0,0,0,0,0,0]];var Pl=null&&64|0;var Dl=[1,Rl,p,0,()=>t.Attribute$];var kl=[1,Rl,c,0,()=>t.AuthorizationData$];var _l=null&&64|0;var Ll=[1,Rl,Ee,0,()=>t.CvssScoreAdjustment$];var Ol=[1,Rl,Ie,0,()=>t.CvssScore$];var Fl=[1,Rl,Lt,0,()=>t.EnhancedImageScanFinding$];var Ul=null&&64|0;var Ml=[1,Rl,hr,0,()=>t.ImageDetail$];var Hl=[1,Rl,Er,0,()=>t.ImageFailure$];var $l=[1,Rl,Ir,0,()=>t.ImageIdentifier$];var Gl=[1,Rl,br,0,()=>t.Image$];var ql=[1,Rl,vr,0,()=>t.ImageReferrer$];var zl=[1,Rl,Dr,0,()=>t.ImageReplicationStatus$];var Vl=[1,Rl,Or,0,()=>t.ImageScanFinding$];var jl=[1,Rl,Hr,0,()=>t.ImageSigningStatus$];var Yl=null&&64|0;var Jl=[1,Rl,zr,0,()=>t.ImageTagMutabilityExclusionFilter$];var Wl=null&&64|0;var Kl=null&&64|0;var Xl=[1,Rl,Zr,0,()=>t.LayerFailure$];var Zl=[1,Rl,un,0,()=>t.Layer$];var eu=[1,Rl,yn,0,()=>t.LifecyclePolicyPreviewResult$];var tu=null&&64|0;var ru=null&&64|0;var nu=[1,Rl,ns,0,()=>t.PullThroughCacheRule$];var su=null&&64|0;var ou=null&&64|0;var iu=null&&64|0;var au=null&&64|0;var cu=[1,Rl,_s,0,()=>t.RegistryScanningRule$];var lu=null&&64|0;var uu=[1,Rl,As,0,()=>t.ReplicationDestination$];var du=[1,Rl,Qs,0,()=>t.ReplicationRule$];var pu=[1,Rl,ds,0,()=>t.RepositoryCreationTemplate$];var Au=[1,Rl,fs,0,()=>t.RepositoryFilter$];var mu=[1,Rl,ys,0,()=>t.Repository$];var gu=null&&64|0;var fu=[1,Rl,vs,0,()=>t.RepositoryScanningConfigurationFailure$];var hu=[1,Rl,Ps,0,()=>t.RepositoryScanningConfiguration$];var yu=[1,Rl,Es,0,()=>t.Resource$];var Eu=null&&64|0;var Cu=[1,Rl,eo,0,()=>t.ScanningRepositoryFilter$];var Iu=[1,Rl,to,0,()=>t.SigningRepositoryFilter$];var bu=[1,Rl,no,0,()=>t.SigningRule$];var Su=null&&64|0;var Bu=[1,Rl,po,0,()=>t.Tag$];var wu=[1,Rl,uo,0,()=>t.TransitioningImageTotalCount$];var Ru=[1,Rl,Go,0,()=>t.VulnerablePackage$];var Nu=null&&128|0;var Qu=null&&128|1;var xu=null&&128|0;t.BatchCheckLayerAvailability$=[9,Rl,C,0,()=>t.BatchCheckLayerAvailabilityRequest$,()=>t.BatchCheckLayerAvailabilityResponse$];t.BatchDeleteImage$=[9,Rl,D,0,()=>t.BatchDeleteImageRequest$,()=>t.BatchDeleteImageResponse$];t.BatchGetImage$=[9,Rl,V,0,()=>t.BatchGetImageRequest$,()=>t.BatchGetImageResponse$];t.BatchGetRepositoryScanningConfiguration$=[9,Rl,re,0,()=>t.BatchGetRepositoryScanningConfigurationRequest$,()=>t.BatchGetRepositoryScanningConfigurationResponse$];t.CompleteLayerUpload$=[9,Rl,oe,0,()=>t.CompleteLayerUploadRequest$,()=>t.CompleteLayerUploadResponse$];t.CreatePullThroughCacheRule$=[9,Rl,ce,0,()=>t.CreatePullThroughCacheRuleRequest$,()=>t.CreatePullThroughCacheRuleResponse$];t.CreateRepository$=[9,Rl,de,0,()=>t.CreateRepositoryRequest$,()=>t.CreateRepositoryResponse$];t.CreateRepositoryCreationTemplate$=[9,Rl,pe,0,()=>t.CreateRepositoryCreationTemplateRequest$,()=>t.CreateRepositoryCreationTemplateResponse$];t.DeleteLifecyclePolicy$=[9,Rl,_e,0,()=>t.DeleteLifecyclePolicyRequest$,()=>t.DeleteLifecyclePolicyResponse$];t.DeletePullThroughCacheRule$=[9,Rl,Fe,0,()=>t.DeletePullThroughCacheRuleRequest$,()=>t.DeletePullThroughCacheRuleResponse$];t.DeleteRegistryPolicy$=[9,Rl,At,0,()=>t.DeleteRegistryPolicyRequest$,()=>t.DeleteRegistryPolicyResponse$];t.DeleteRepository$=[9,Rl,je,0,()=>t.DeleteRepositoryRequest$,()=>t.DeleteRepositoryResponse$];t.DeleteRepositoryCreationTemplate$=[9,Rl,Ye,0,()=>t.DeleteRepositoryCreationTemplateRequest$,()=>t.DeleteRepositoryCreationTemplateResponse$];t.DeleteRepositoryPolicy$=[9,Rl,Ct,0,()=>t.DeleteRepositoryPolicyRequest$,()=>t.DeleteRepositoryPolicyResponse$];t.DeleteSigningConfiguration$=[9,Rl,xt,0,()=>t.DeleteSigningConfigurationRequest$,()=>t.DeleteSigningConfigurationResponse$];t.DeregisterPullTimeUpdateExclusion$=[9,Rl,qe,0,()=>t.DeregisterPullTimeUpdateExclusionRequest$,()=>t.DeregisterPullTimeUpdateExclusionResponse$];t.DescribeImageReplicationStatus$=[9,Rl,we,0,()=>t.DescribeImageReplicationStatusRequest$,()=>t.DescribeImageReplicationStatusResponse$];t.DescribeImages$=[9,Rl,be,0,()=>t.DescribeImagesRequest$,()=>t.DescribeImagesResponse$];t.DescribeImageScanFindings$=[9,Rl,xe,0,()=>t.DescribeImageScanFindingsRequest$,()=>t.DescribeImageScanFindingsResponse$];t.DescribeImageSigningStatus$=[9,Rl,Pe,0,()=>t.DescribeImageSigningStatusRequest$,()=>t.DescribeImageSigningStatusResponse$];t.DescribePullThroughCacheRules$=[9,Rl,Ge,0,()=>t.DescribePullThroughCacheRulesRequest$,()=>t.DescribePullThroughCacheRulesResponse$];t.DescribeRegistry$=[9,Rl,Nt,0,()=>t.DescribeRegistryRequest$,()=>t.DescribeRegistryResponse$];t.DescribeRepositories$=[9,Rl,Qt,0,()=>t.DescribeRepositoriesRequest$,()=>t.DescribeRepositoriesResponse$];t.DescribeRepositoryCreationTemplates$=[9,Rl,Ze,0,()=>t.DescribeRepositoryCreationTemplatesRequest$,()=>t.DescribeRepositoryCreationTemplatesResponse$];t.GetAccountSetting$=[9,Rl,Ut,0,()=>t.GetAccountSettingRequest$,()=>t.GetAccountSettingResponse$];t.GetAuthorizationToken$=[9,Rl,$t,0,()=>t.GetAuthorizationTokenRequest$,()=>t.GetAuthorizationTokenResponse$];t.GetDownloadUrlForLayer$=[9,Rl,zt,0,()=>t.GetDownloadUrlForLayerRequest$,()=>t.GetDownloadUrlForLayerResponse$];t.GetLifecyclePolicy$=[9,Rl,Yt,0,()=>t.GetLifecyclePolicyRequest$,()=>t.GetLifecyclePolicyResponse$];t.GetLifecyclePolicyPreview$=[9,Rl,Jt,0,()=>t.GetLifecyclePolicyPreviewRequest$,()=>t.GetLifecyclePolicyPreviewResponse$];t.GetRegistryPolicy$=[9,Rl,er,0,()=>t.GetRegistryPolicyRequest$,()=>t.GetRegistryPolicyResponse$];t.GetRegistryScanningConfiguration$=[9,Rl,ir,0,()=>t.GetRegistryScanningConfigurationRequest$,()=>t.GetRegistryScanningConfigurationResponse$];t.GetRepositoryPolicy$=[9,Rl,or,0,()=>t.GetRepositoryPolicyRequest$,()=>t.GetRepositoryPolicyResponse$];t.GetSigningConfiguration$=[9,Rl,lr,0,()=>t.GetSigningConfigurationRequest$,()=>t.GetSigningConfigurationResponse$];t.InitiateLayerUpload$=[9,Rl,wr,0,()=>t.InitiateLayerUploadRequest$,()=>t.InitiateLayerUploadResponse$];t.ListImageReferrers$=[9,Rl,ln,0,()=>t.ListImageReferrersRequest$,()=>t.ListImageReferrersResponse$];t.ListImages$=[9,Rl,en,0,()=>t.ListImagesRequest$,()=>t.ListImagesResponse$];t.ListPullTimeUpdateExclusions$=[9,Rl,bn,0,()=>t.ListPullTimeUpdateExclusionsRequest$,()=>t.ListPullTimeUpdateExclusionsResponse$];t.ListTagsForResource$=[9,Rl,wn,0,()=>t.ListTagsForResourceRequest$,()=>t.ListTagsForResourceResponse$];t.PutAccountSetting$=[9,Rl,Qn,0,()=>t.PutAccountSettingRequest$,()=>t.PutAccountSettingResponse$];t.PutImage$=[9,Rl,vn,0,()=>t.PutImageRequest$,()=>t.PutImageResponse$];t.PutImageScanningConfiguration$=[9,Rl,kn,0,()=>t.PutImageScanningConfigurationRequest$,()=>t.PutImageScanningConfigurationResponse$];t.PutImageTagMutability$=[9,Rl,On,0,()=>t.PutImageTagMutabilityRequest$,()=>t.PutImageTagMutabilityResponse$];t.PutLifecyclePolicy$=[9,Rl,Mn,0,()=>t.PutLifecyclePolicyRequest$,()=>t.PutLifecyclePolicyResponse$];t.PutRegistryPolicy$=[9,Rl,Vn,0,()=>t.PutRegistryPolicyRequest$,()=>t.PutRegistryPolicyResponse$];t.PutRegistryScanningConfiguration$=[9,Rl,Jn,0,()=>t.PutRegistryScanningConfigurationRequest$,()=>t.PutRegistryScanningConfigurationResponse$];t.PutReplicationConfiguration$=[9,Rl,Gn,0,()=>t.PutReplicationConfigurationRequest$,()=>t.PutReplicationConfigurationResponse$];t.PutSigningConfiguration$=[9,Rl,Xn,0,()=>t.PutSigningConfigurationRequest$,()=>t.PutSigningConfigurationResponse$];t.RegisterPullTimeUpdateExclusion$=[9,Rl,Bs,0,()=>t.RegisterPullTimeUpdateExclusionRequest$,()=>t.RegisterPullTimeUpdateExclusionResponse$];t.SetRepositoryPolicy$=[9,Rl,so,0,()=>t.SetRepositoryPolicyRequest$,()=>t.SetRepositoryPolicyResponse$];t.StartImageScan$=[9,Rl,qs,0,()=>t.StartImageScanRequest$,()=>t.StartImageScanResponse$];t.StartLifecyclePolicyPreview$=[9,Rl,js,0,()=>t.StartLifecyclePolicyPreviewRequest$,()=>t.StartLifecyclePolicyPreviewResponse$];t.TagResource$=[9,Rl,go,0,()=>t.TagResourceRequest$,()=>t.TagResourceResponse$];t.UntagResource$=[9,Rl,xo,0,()=>t.UntagResourceRequest$,()=>t.UntagResourceResponse$];t.UpdateImageStorageClass$=[9,Rl,yo,0,()=>t.UpdateImageStorageClassRequest$,()=>t.UpdateImageStorageClassResponse$];t.UpdatePullThroughCacheRule$=[9,Rl,Ro,0,()=>t.UpdatePullThroughCacheRuleRequest$,()=>t.UpdatePullThroughCacheRuleResponse$];t.UpdateRepositoryCreationTemplate$=[9,Rl,To,0,()=>t.UpdateRepositoryCreationTemplateRequest$,()=>t.UpdateRepositoryCreationTemplateResponse$];t.UploadLayerPart$=[9,Rl,bo,0,()=>t.UploadLayerPartRequest$,()=>t.UploadLayerPartResponse$];t.ValidatePullThroughCacheRule$=[9,Rl,qo,0,()=>t.ValidatePullThroughCacheRuleRequest$,()=>t.ValidatePullThroughCacheRuleResponse$]},8704:(e,t,n)=>{var o=n(2356);var i=n(402);var c=n(8857);var d=n(5152);var p=n(5118);var y=n(4645);var C=n(6890);var Q=n(1411);var v=n(3422);var D=n(2430);var k=n(8385);var $=n(1577);var V=n(4274);const ee={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!ee.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){ee.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}const getDateHeader=e=>o.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,t)=>Math.abs(getSkewCorrectedDate(t).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if(isClockSkewed(n,t)){return n-Date.now()}return t};const throwSigningPropertyError=(e,t)=>{if(!t){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return t};const validateSigningProperties=async e=>{const t=throwSigningPropertyError("context",e.context);const n=throwSigningPropertyError("config",e.config);const o=t.endpointV2?.properties?.authSchemes?.[0];const i=throwSigningPropertyError("signer",n.signer);const c=await i(o);const d=e?.signingRegion;const p=e?.signingRegionSet;const y=e?.signingName;return{config:n,signer:c,signingRegion:d,signingRegionSet:p,signingName:y}};class AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const i=await validateSigningProperties(n);const{config:c,signer:d}=i;let{signingRegion:p,signingName:y}=i;const C=n.context;if(C?.authSchemes?.length??0>1){const[e,t]=C.authSchemes;if(e?.name==="sigv4a"&&t?.name==="sigv4"){p=t?.signingRegion??p;y=t?.signingName??y}}const Q=await d.sign(e,{signingDate:getSkewCorrectedDate(c.systemClockOffset),signingRegion:p,signingService:y});return Q}errorHandler(e){return t=>{const n=t.ServerTime??getDateHeader(t.$response);if(n){const o=throwSigningPropertyError("config",e.config);const i=o.systemClockOffset;o.systemClockOffset=getUpdatedSystemClockOffset(n,o.systemClockOffset);const c=o.systemClockOffset!==i;if(c&&t.$metadata){t.$metadata.clockSkewCorrected=true}}throw t}}successHandler(e,t){const n=getDateHeader(e);if(n){const e=throwSigningPropertyError("config",t.config);e.systemClockOffset=getUpdatedSystemClockOffset(n,e.systemClockOffset)}}}const te=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:i,signer:c,signingRegion:d,signingRegionSet:p,signingName:y}=await validateSigningProperties(n);const C=await(i.sigv4aSigningRegionSet?.());const Q=(C??p??[d]).join(",");const v=await c.sign(e,{signingDate:getSkewCorrectedDate(i.systemClockOffset),signingRegion:Q,signingService:y});return v}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const re="AWS_AUTH_SCHEME_PREFERENCE";const ne="auth_scheme_preference";const se={environmentVariableSelector:(e,t)=>{if(t?.signingName){const n=getBearerTokenEnvKey(t.signingName);if(n in e)return["httpBearerAuth"]}if(!(re in e))return undefined;return getArrayForCommaSeparatedString(e[re])},configFileSelector:e=>{if(!(ne in e))return undefined;return getArrayForCommaSeparatedString(e[ne])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=i.normalizeProvider(e.sigv4aSigningRegionSet);return e};const oe={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new c.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new c.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let t=e.credentials;let n=!!e.credentials;let o=undefined;Object.defineProperty(e,"credentials",{set(i){if(i&&i!==t&&i!==o){n=true}t=i;const c=normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider});const p=bindCallerConfig(e,c);if(n&&!p.attributed){const e=typeof t==="object"&&t!==null;o=async t=>{const n=await p(t);const o=n;if(e&&(!o.$source||Object.keys(o.$source).length===0)){return d.setCredentialFeature(o,"CREDENTIALS_CODE","e")}return o};o.memoized=p.memoized;o.configBound=p.configBound;o.attributed=true}else{o=p}},get(){return o},enumerable:true,configurable:true});e.credentials=t;const{signingEscapePath:c=true,systemClockOffset:y=e.systemClockOffset||0,sha256:C}=e;let Q;if(e.signer){Q=i.normalizeProvider(e.signer)}else if(e.regionInfoProvider){Q=()=>i.normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([t,n])=>{const{signingRegion:o,signingService:i}=t;e.signingRegion=e.signingRegion||o||n;e.signingName=e.signingName||i||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:C,uriEscapePath:c};const y=e.signerConstructor||p.SignatureV4;return new y(d)}))}else{Q=async t=>{t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await i.normalizeProvider(e.region)(),properties:{}},t);const n=t.signingRegion;const o=t.signingName;e.signingRegion=e.signingRegion||n;e.signingName=e.signingName||o||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:C,uriEscapePath:c};const y=e.signerConstructor||p.SignatureV4;return new y(d)}}const v=Object.assign(e,{systemClockOffset:y,signingEscapePath:c,signer:Q});return v};const ie=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:n}){let o;if(t){if(!t?.memoized){o=i.memoizeIdentityProvider(t,i.isIdentityExpired,i.doesIdentityRequireRefresh)}else{o=t}}else{if(n){o=i.normalizeProvider(n(Object.assign({},e,{parentClientConfig:e})))}else{o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}o.memoized=true;return o}function bindCallerConfig(e,t){if(t.configBound){return t}const fn=async n=>t({...n,callerClientConfig:e});fn.memoized=t.memoized;fn.configBound=true;return fn}class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:c}=e.getMergedTraits();const d=c===void 0;return!t&&!n&&!o&&!i&&d}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,i,c){let d=t;let p=e;if(e.includes("#")){[d,p]=e.split("#")}const y={$metadata:i,$fault:n.statusCode<500?"client":"server"};const Q=C.TypeRegistry.for(d);try{const t=c?.(Q,p)??Q.getSchema(e);return{errorSchema:t,errorMetadata:y}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=C.TypeRegistry.for("smithy.ts.sdk.synthetic."+d);const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:p}),y),o)}throw this.decorateServiceException(Object.assign(new Error(p),y),o)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=Q.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error?.Type,Code:o.Error?.Code,Message:o.Error?.message??o.Error?.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return Q.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const c={Code:t,Type:o};Object.assign(e,c);for(const[e,t]of i){c[e==="message"?"Message":e]=t}delete c.__type;e.Error=c}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>C.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends y.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:t}){super({defaultNamespace:e});this.awsQueryCompatible=!!t;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const c=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return y.loadSmithyRpcV2CborErrorCode(n,o)??"Unknown"})();const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const Q=C.NormalizedSchema.of(d);const v=o.message??o.Message??"Unknown";const D=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const k=new D(v);const $={};for(const[e,t]of Q.structIterator()){if(o[e]!=null){$[e]=this.deserializer.readValue(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,$)}throw this.mixin.decorateServiceException(Object.assign(k,p,{$fault:Q.getMergedTraits().error,message:v},$),o)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)){const t=e.includes(".");if(t){return new D.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return t}const collectBodyString=(e,t)=>Q.collectBody(e,t).then((e=>(t?.utf8Encoder??$.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=C.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let c=void 0;const{jsonName:d}=this.settings;if(d){c={}}let p;if(n){p=new UnionSerde(e,i)}for(const[t,y]of o.structIterator()){let o=t;if(d){o=y.getMergedTraits().jsonName??o;c[o]=t}if(n){p.mark(o)}if(e[o]!=null){i[t]=this._read(y,e[o])}}if(n){p.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=d?c[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];const i=!!o.getMergedTraits().sparse;for(const o of t){if(i||o!=null){n.push(this._read(e,o))}}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};const i=!!o.getMergedTraits().sparse;for(const[o,c]of Object.entries(t)){if(i||c!=null){n[o]=this._read(e,c)}}return n}}if(o.isBlobSchema()&&typeof t==="string"){return k.fromBase64(t)}const i=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&i){const e=i==="application/json"||i.endsWith("+json");if(e){return D.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=v.determineTimestampFormat(o,this.settings);switch(e){case 5:return D.parseRfc3339DateTimeWithOffset(t);case 6:return D.parseRfc7231DateTime(t);case 7:return D.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof D.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new D.NumericValue(e.string,e.type)}return new D.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof D.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const ae=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof D.NumericValue){const e=`${ae+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${ae+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=C.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=C.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const i=C.NormalizedSchema.of(e);if(o){if(i.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let c=void 0;if(o){c={}}for(const[t,d]of i.structIterator()){const p=this._write(d,e[t],i);if(p!==undefined){let e=t;if(o){e=d.getMergedTraits().jsonName??t;c[t]=e}n[e]=p}}if(i.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,i]of Object.entries(e)){const e=o?c[t]??t:t;if(!(e in n)){n[e]=this._write(15,i)}}}return n}if(Array.isArray(t)&&i.isListSchema()){const e=i.getValueSchema();const n=[];const o=!!i.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(i.isMapSchema()){const e=i.getValueSchema();const n={};const o=!!i.getMergedTraits().sparse;for(const[i,c]of Object.entries(t)){if(o||c!=null){n[i]=this._write(e,c)}}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema())){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??k.toBase64)(t)}if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema())){const e=v.determineTimestampFormat(i,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return D.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof D.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(i.isStringSchema()){if(typeof t==="undefined"&&i.isIdempotencyToken()){return D.generateIdempotencyToken()}const e=i.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return D.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&i.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&i.isBlobSchema()){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??k.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(i.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof D.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(i,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends v.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e});this.serviceTarget=t;this.codec=o??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(C.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const c=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const y=C.NormalizedSchema.of(d);const Q=o.message??o.Message??"Unknown";const v=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const D=new v(Q);const k={};for(const[e,t]of y.structIterator()){if(o[e]!=null){k[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,k)}throw this.mixin.decorateServiceException(Object.assign(D,p,{$fault:y.getMergedTraits().error,message:Q},k),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends v.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const t={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(t);this.serializer=new v.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new v.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=C.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const i=C.NormalizedSchema.of(e.output);for(const[e,t]of i.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,i){const c=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i);const y=C.NormalizedSchema.of(d);const Q=o.message??o.Message??"Unknown";const v=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const D=new v(Q);await this.deserializeHttpMessage(d,t,n,o);const k={};for(const[e,t]of y.structIterator()){const n=t.getMergedTraits().jsonName??e;k[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(D,p,{$fault:y.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return Q.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new v.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=C.NormalizedSchema.of(e);const i=o.getMemberSchemas();const c=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(i).find((e=>!!e.getMemberTraits().eventPayload));if(c){const e={};const n=Object.keys(i)[0];const o=i[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(i[n],t)}return e}const d=(this.serdeContext?.utf8Encoder??$.toUtf8)(t);const p=this.parseXml(d);return this.readSchema(e,n?p[n]:p)}readSchema(e,t){const n=C.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.sparse;const i=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const c=[];const d=o.getMergedTraits().xmlName??"member";const p=i?t:(t[0]??t)[d];const y=Array.isArray(p)?p:[p];for(const t of y){if(t!=null||e){c.push(this.readSchema(o,t))}}return c}const c={};if(n.isMapSchema()){const o=n.getKeySchema();const d=n.getValueSchema();let p;if(i){p=Array.isArray(t)?t:[t]}else{p=Array.isArray(t.entry)?t.entry:[t.entry]}const y=o.getMergedTraits().xmlName??"key";const C=d.getMergedTraits().xmlName??"value";for(const t of p){const n=t[y];const o=t[C];if(o!=null||e){c[n]=this.readSchema(d,o)}}return c}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,c)}for(const[i,d]of n.structIterator()){const n=d.getMergedTraits();const p=!n.httpPayload?d.getMemberTraits().xmlName??i:n.xmlName??d.getName();if(e){o.mark(p)}if(t[p]!=null){c[i]=this.readSchema(d,t[p])}}if(e){o.writeUnknown()}return c}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=V.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return Q.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=C.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??k.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(D.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof D.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=v.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Q.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let c=1;for(const o of t){if(o==null){continue}const t=e.getMergedTraits();const d=this.getKey("member",t.xmlName,t.ec2QueryName);const p=i?`${n}${c}`:`${n}${d}.${c}`;this.write(e,o,p);++c}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const c=o.getMergedTraits().xmlFlattened;let d=1;for(const[o,p]of Object.entries(t)){if(p==null){continue}const t=e.getMergedTraits();const y=this.getKey("key",t.xmlName,t.ec2QueryName);const C=c?`${n}${d}.${y}`:`${n}entry.${d}.${y}`;const Q=i.getMergedTraits();const v=this.getKey("value",Q.xmlName,Q.ec2QueryName);const D=c?`${n}${d}.${v}`:`${n}entry.${d}.${v}`;this.write(e,o,C);this.write(i,p,D);++d}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,c]of o.structIterator()){if(t[i]==null&&!c.isIdempotencyToken()){continue}const o=c.getMergedTraits();const d=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const p=`${n}${d}`;this.write(c,t[i],p);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,n,o){const{ec2:i,capitalizeKeys:c}=this.settings;if(i&&n){return n}const d=t??e;if(c&&o==="struct"){return d[0].toUpperCase()+d.slice(1)}return d}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${v.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=v.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends v.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(C.deref(e.input)==="unit"||!o.body){o.body=""}const i=e.name.split("#")[1]??e.name;o.body=`Action=${i}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const i=C.NormalizedSchema.of(e.output);const c={};if(n.statusCode>=300){const i=await v.collectBody(n.body,t);if(i.byteLength>0){Object.assign(c,await o.read(15,i))}await this.handleError(e,t,n,c,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const d=e.name.split("#")[1]??e.name;const p=i.isStructSchema()&&this.useNestedResult()?d+"Result":undefined;const y=await v.collectBody(n.body,t);if(y.byteLength>0){Object.assign(c,await o.read(i,y,p))}const Q={$metadata:this.deserializeMetadata(n),...c};return Q}useNestedResult(){return true}async handleError(e,t,n,o,i){const c=this.loadQueryErrorCode(n,o)??"Unknown";const d=this.loadQueryError(o)??{};const p=this.loadQueryErrorMessage(o);d.message=p;d.Error={Type:d.Type,Code:d.Code,Message:p};const{errorSchema:y,errorMetadata:Q}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,d,i,this.mixin.findQueryCompatibleError);const v=C.NormalizedSchema.of(y);const D=C.TypeRegistry.for(y[1]).getErrorCtor(y)??Error;const k=new D(p);const $={Type:d.Error.Type,Code:d.Error.Code,Error:d.Error};for(const[e,t]of v.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=d[n]??o[n];$[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(k,Q,{$fault:v.getMergedTraits().error,message:p},$),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=V.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return Q.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=C.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??k.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const c=V.XmlNode.of(i);const[d,p]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){c.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,c,p)}else if(o.isMapSchema()){this.writeMap(o,e,c,p)}else if(o.isStructSchema()){c.addChildNode(this.writeStruct(o,e,p))}else{const t=V.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,p);c.addChildNode(t)}}}const{$unknown:y}=t;if(y&&e.isUnionSchema()&&Array.isArray(y)&&Object.keys(t).length===1){const[e,n]=y;const o=V.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof V.XmlNode||t instanceof V.XmlText){c.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,p);c.addChildNode(o)}if(p){c.addAttribute(d,p)}return c}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const c=e.getValueSchema();const d=c.getMergedTraits();const p=!!d.sparse;const y=!!i.xmlFlattened;const[C,Q]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(c.isListSchema()){this.writeList(c,Array.isArray(n)?n:[n],t,Q)}else if(c.isMapSchema()){this.writeMap(c,n,t,Q)}else if(c.isStructSchema()){const o=this.writeStruct(c,n,Q);t.addChildNode(o.withName(y?i.xmlName??e.getMemberName():d.xmlName??"member"))}else{const o=V.XmlNode.of(y?i.xmlName??e.getMemberName():d.xmlName??"member");this.writeSimpleInto(c,n,o,Q);t.addChildNode(o)}};if(y){for(const e of t){if(p||e!=null){writeItem(n,e)}}}else{const o=V.XmlNode.of(i.xmlName??e.getMemberName());if(Q){o.addAttribute(C,Q)}for(const e of t){if(p||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const c=e.getMergedTraits();const d=e.getKeySchema();const p=d.getMergedTraits();const y=p.xmlName??"key";const C=e.getValueSchema();const Q=C.getMergedTraits();const v=Q.xmlName??"value";const D=!!Q.sparse;const k=!!c.xmlFlattened;const[$,ee]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=V.XmlNode.of(y,t);const[i,c]=this.getXmlnsAttribute(d,ee);if(c){o.addAttribute(i,c)}e.addChildNode(o);let p=V.XmlNode.of(v);if(C.isListSchema()){this.writeList(C,n,p,ee)}else if(C.isMapSchema()){this.writeMap(C,n,p,ee,true)}else if(C.isStructSchema()){p=this.writeStruct(C,n,ee)}else{this.writeSimpleInto(C,n,p,ee)}e.addChildNode(p)};if(k){for(const[o,i]of Object.entries(t)){if(D||i!=null){const t=V.XmlNode.of(c.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=V.XmlNode.of(c.xmlName??e.getMemberName());if(ee){o.addAttribute($,ee)}n.addChildNode(o)}for(const[e,c]of Object.entries(t)){if(D||c!=null){const t=V.XmlNode.of("entry");addKeyValue(t,e,c);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=C.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??k.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=v.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=Q.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=Q.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof D.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=D.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const i=this.writeSimple(e,t);const c=C.NormalizedSchema.of(e);const d=new V.XmlText(i);const[p,y]=this.getXmlnsAttribute(c,o);if(y){n.addAttribute(p,y)}n.addChildNode(d)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends v.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new v.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new v.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=C.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(i)){o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const c=loadRestXmlErrorCode(n,o)??"Unknown";if(o.Error&&typeof o.Error==="object"){for(const e of Object.keys(o.Error)){o[e]=o.Error[e];if(e.toLowerCase()==="message"){o.message=o.Error[e]}}}if(o.RequestId&&!i.requestId){i.requestId=o.RequestId}const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i);const y=C.NormalizedSchema.of(d);const Q=o.Error?.message??o.Error?.Message??o.message??o.Message??"Unknown";const v=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const D=new v(Q);await this.deserializeHttpMessage(d,t,n,o);const k={};for(const[e,t]of y.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];k[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(D,p,{$fault:y.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AWSSDKSigV4Signer=te;t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;t.AwsSdkSigV4Signer=AwsSdkSigV4Signer;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=se;t.NODE_SIGV4A_CONFIG_OPTIONS=oe;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getBearerTokenEnvKey=getBearerTokenEnvKey;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody;t.resolveAWSSDKSigV4Config=ie;t.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;t.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=ee;t.validateSigningProperties=validateSigningProperties},5152:(e,t)=>{const n={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!n.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){n.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=n},7288:(e,t,n)=>{var o=n(4645);var i=n(6890);var c=n(1411);var d=n(3422);var p=n(2430);var y=n(8385);var C=n(1577);var Q=n(4274);class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:c}=e.getMergedTraits();const d=c===void 0;return!t&&!n&&!o&&!i&&d}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,c,d){let p=t;let y=e;if(e.includes("#")){[p,y]=e.split("#")}const C={$metadata:c,$fault:n.statusCode<500?"client":"server"};const Q=i.TypeRegistry.for(p);try{const t=d?.(Q,y)??Q.getSchema(e);return{errorSchema:t,errorMetadata:C}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=i.TypeRegistry.for("smithy.ts.sdk.synthetic."+p);const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:y}),C),o)}throw this.decorateServiceException(Object.assign(new Error(y),C),o)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=c.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error?.Type,Code:o.Error?.Code,Message:o.Error?.message??o.Error?.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return c.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const c={Code:t,Type:o};Object.assign(e,c);for(const[e,t]of i){c[e==="message"?"Message":e]=t}delete c.__type;e.Error=c}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>i.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends o.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:t}){super({defaultNamespace:e});this.awsQueryCompatible=!!t;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,c,d){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(c,n)}const p=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return o.loadSmithyRpcV2CborErrorCode(n,c)??"Unknown"})();const{errorSchema:y,errorMetadata:C}=await this.mixin.getErrorSchemaOrThrowBaseException(p,this.options.defaultNamespace,n,c,d,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const Q=i.NormalizedSchema.of(y);const v=c.message??c.Message??"Unknown";const D=i.TypeRegistry.for(y[1]).getErrorCtor(y)??Error;const k=new D(v);const $={};for(const[e,t]of Q.structIterator()){if(c[e]!=null){$[e]=this.deserializer.readValue(t,c[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(c,$)}throw this.mixin.decorateServiceException(Object.assign(k,C,{$fault:Q.getMergedTraits().error,message:v},$),c)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)){const t=e.includes(".");if(t){return new p.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return t}const collectBodyString=(e,t)=>c.collectBody(e,t).then((e=>(t?.utf8Encoder??C.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=i.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let c=void 0;const{jsonName:d}=this.settings;if(d){c={}}let p;if(n){p=new UnionSerde(e,i)}for(const[t,y]of o.structIterator()){let o=t;if(d){o=y.getMergedTraits().jsonName??o;c[o]=t}if(n){p.mark(o)}if(e[o]!=null){i[t]=this._read(y,e[o])}}if(n){p.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=d?c[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];const i=!!o.getMergedTraits().sparse;for(const o of t){if(i||o!=null){n.push(this._read(e,o))}}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};const i=!!o.getMergedTraits().sparse;for(const[o,c]of Object.entries(t)){if(i||c!=null){n[o]=this._read(e,c)}}return n}}if(o.isBlobSchema()&&typeof t==="string"){return y.fromBase64(t)}const c=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&c){const e=c==="application/json"||c.endsWith("+json");if(e){return p.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:return p.parseRfc3339DateTimeWithOffset(t);case 6:return p.parseRfc7231DateTime(t);case 7:return p.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof p.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new p.NumericValue(e.string,e.type)}return new p.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof p.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const v=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof p.NumericValue){const e=`${v+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${v+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=i.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=i.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const c=i.NormalizedSchema.of(e);if(o){if(c.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let i=void 0;if(o){i={}}for(const[t,d]of c.structIterator()){const p=this._write(d,e[t],c);if(p!==undefined){let e=t;if(o){e=d.getMergedTraits().jsonName??t;i[t]=e}n[e]=p}}if(c.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,c]of Object.entries(e)){const e=o?i[t]??t:t;if(!(e in n)){n[e]=this._write(15,c)}}}return n}if(Array.isArray(t)&&c.isListSchema()){const e=c.getValueSchema();const n=[];const o=!!c.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(c.isMapSchema()){const e=c.getValueSchema();const n={};const o=!!c.getMergedTraits().sparse;for(const[i,c]of Object.entries(t)){if(o||c!=null){n[i]=this._write(e,c)}}return n}if(t instanceof Uint8Array&&(c.isBlobSchema()||c.isDocumentSchema())){if(c===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??y.toBase64)(t)}if(t instanceof Date&&(c.isTimestampSchema()||c.isDocumentSchema())){const e=d.determineTimestampFormat(c,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return p.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof p.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(c.isStringSchema()){if(typeof t==="undefined"&&c.isIdempotencyToken()){return p.generateIdempotencyToken()}const e=c.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return p.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&c.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&c.isBlobSchema()){if(c===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??y.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(c.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof p.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(c,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends d.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e});this.serviceTarget=t;this.codec=o??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(i.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,c){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const d=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:p,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,c,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const C=i.NormalizedSchema.of(p);const Q=o.message??o.Message??"Unknown";const v=i.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const D=new v(Q);const k={};for(const[e,t]of C.structIterator()){if(o[e]!=null){k[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,k)}throw this.mixin.decorateServiceException(Object.assign(D,y,{$fault:C.getMergedTraits().error,message:Q},k),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends d.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const t={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(t);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const c=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const c=i.NormalizedSchema.of(e.output);for(const[e,t]of c.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,c){const d=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:p,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,c);const C=i.NormalizedSchema.of(p);const Q=o.message??o.Message??"Unknown";const v=i.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const D=new v(Q);await this.deserializeHttpMessage(p,t,n,o);const k={};for(const[e,t]of C.structIterator()){const n=t.getMergedTraits().jsonName??e;k[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(D,y,{$fault:C.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return c.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new d.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=i.NormalizedSchema.of(e);const c=o.getMemberSchemas();const d=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(c).find((e=>!!e.getMemberTraits().eventPayload));if(d){const e={};const n=Object.keys(c)[0];const o=c[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(c[n],t)}return e}const p=(this.serdeContext?.utf8Encoder??C.toUtf8)(t);const y=this.parseXml(p);return this.readSchema(e,n?y[n]:y)}readSchema(e,t){const n=i.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.sparse;const i=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const c=[];const d=o.getMergedTraits().xmlName??"member";const p=i?t:(t[0]??t)[d];const y=Array.isArray(p)?p:[p];for(const t of y){if(t!=null||e){c.push(this.readSchema(o,t))}}return c}const c={};if(n.isMapSchema()){const o=n.getKeySchema();const d=n.getValueSchema();let p;if(i){p=Array.isArray(t)?t:[t]}else{p=Array.isArray(t.entry)?t.entry:[t.entry]}const y=o.getMergedTraits().xmlName??"key";const C=d.getMergedTraits().xmlName??"value";for(const t of p){const n=t[y];const o=t[C];if(o!=null||e){c[n]=this.readSchema(d,o)}}return c}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,c)}for(const[i,d]of n.structIterator()){const n=d.getMergedTraits();const p=!n.httpPayload?d.getMemberTraits().xmlName??i:n.xmlName??d.getName();if(e){o.mark(p)}if(t[p]!=null){c[i]=this.readSchema(d,t[p])}}if(e){o.writeUnknown()}return c}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=Q.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return c.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=i.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??y.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(p.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof p.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(c.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let c=1;for(const o of t){if(o==null){continue}const t=e.getMergedTraits();const d=this.getKey("member",t.xmlName,t.ec2QueryName);const p=i?`${n}${c}`:`${n}${d}.${c}`;this.write(e,o,p);++c}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const c=o.getMergedTraits().xmlFlattened;let d=1;for(const[o,p]of Object.entries(t)){if(p==null){continue}const t=e.getMergedTraits();const y=this.getKey("key",t.xmlName,t.ec2QueryName);const C=c?`${n}${d}.${y}`:`${n}entry.${d}.${y}`;const Q=i.getMergedTraits();const v=this.getKey("value",Q.xmlName,Q.ec2QueryName);const D=c?`${n}${d}.${v}`:`${n}entry.${d}.${v}`;this.write(e,o,C);this.write(i,p,D);++d}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,c]of o.structIterator()){if(t[i]==null&&!c.isIdempotencyToken()){continue}const o=c.getMergedTraits();const d=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const p=`${n}${d}`;this.write(c,t[i],p);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,n,o){const{ec2:i,capitalizeKeys:c}=this.settings;if(i&&n){return n}const d=t??e;if(c&&o==="struct"){return d[0].toUpperCase()+d.slice(1)}return d}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${d.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=d.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends d.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(i.deref(e.input)==="unit"||!o.body){o.body=""}const c=e.name.split("#")[1]??e.name;o.body=`Action=${c}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const c=i.NormalizedSchema.of(e.output);const p={};if(n.statusCode>=300){const i=await d.collectBody(n.body,t);if(i.byteLength>0){Object.assign(p,await o.read(15,i))}await this.handleError(e,t,n,p,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const y=e.name.split("#")[1]??e.name;const C=c.isStructSchema()&&this.useNestedResult()?y+"Result":undefined;const Q=await d.collectBody(n.body,t);if(Q.byteLength>0){Object.assign(p,await o.read(c,Q,C))}const v={$metadata:this.deserializeMetadata(n),...p};return v}useNestedResult(){return true}async handleError(e,t,n,o,c){const d=this.loadQueryErrorCode(n,o)??"Unknown";const p=this.loadQueryError(o)??{};const y=this.loadQueryErrorMessage(o);p.message=y;p.Error={Type:p.Type,Code:p.Code,Message:y};const{errorSchema:C,errorMetadata:Q}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,p,c,this.mixin.findQueryCompatibleError);const v=i.NormalizedSchema.of(C);const D=i.TypeRegistry.for(C[1]).getErrorCtor(C)??Error;const k=new D(y);const $={Type:p.Error.Type,Code:p.Error.Code,Error:p.Error};for(const[e,t]of v.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=p[n]??o[n];$[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(k,Q,{$fault:v.getMergedTraits().error,message:y},$),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=Q.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return c.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??y.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const c=Q.XmlNode.of(i);const[d,p]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){c.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,c,p)}else if(o.isMapSchema()){this.writeMap(o,e,c,p)}else if(o.isStructSchema()){c.addChildNode(this.writeStruct(o,e,p))}else{const t=Q.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,p);c.addChildNode(t)}}}const{$unknown:y}=t;if(y&&e.isUnionSchema()&&Array.isArray(y)&&Object.keys(t).length===1){const[e,n]=y;const o=Q.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof Q.XmlNode||t instanceof Q.XmlText){c.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,p);c.addChildNode(o)}if(p){c.addAttribute(d,p)}return c}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const c=e.getValueSchema();const d=c.getMergedTraits();const p=!!d.sparse;const y=!!i.xmlFlattened;const[C,v]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(c.isListSchema()){this.writeList(c,Array.isArray(n)?n:[n],t,v)}else if(c.isMapSchema()){this.writeMap(c,n,t,v)}else if(c.isStructSchema()){const o=this.writeStruct(c,n,v);t.addChildNode(o.withName(y?i.xmlName??e.getMemberName():d.xmlName??"member"))}else{const o=Q.XmlNode.of(y?i.xmlName??e.getMemberName():d.xmlName??"member");this.writeSimpleInto(c,n,o,v);t.addChildNode(o)}};if(y){for(const e of t){if(p||e!=null){writeItem(n,e)}}}else{const o=Q.XmlNode.of(i.xmlName??e.getMemberName());if(v){o.addAttribute(C,v)}for(const e of t){if(p||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const c=e.getMergedTraits();const d=e.getKeySchema();const p=d.getMergedTraits();const y=p.xmlName??"key";const C=e.getValueSchema();const v=C.getMergedTraits();const D=v.xmlName??"value";const k=!!v.sparse;const $=!!c.xmlFlattened;const[V,ee]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=Q.XmlNode.of(y,t);const[i,c]=this.getXmlnsAttribute(d,ee);if(c){o.addAttribute(i,c)}e.addChildNode(o);let p=Q.XmlNode.of(D);if(C.isListSchema()){this.writeList(C,n,p,ee)}else if(C.isMapSchema()){this.writeMap(C,n,p,ee,true)}else if(C.isStructSchema()){p=this.writeStruct(C,n,ee)}else{this.writeSimpleInto(C,n,p,ee)}e.addChildNode(p)};if($){for(const[o,i]of Object.entries(t)){if(k||i!=null){const t=Q.XmlNode.of(c.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=Q.XmlNode.of(c.xmlName??e.getMemberName());if(ee){o.addAttribute(V,ee)}n.addChildNode(o)}for(const[e,c]of Object.entries(t)){if(k||c!=null){const t=Q.XmlNode.of("entry");addKeyValue(t,e,c);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=i.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??y.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=d.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=c.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=c.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof p.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=p.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const c=this.writeSimple(e,t);const d=i.NormalizedSchema.of(e);const p=new Q.XmlText(c);const[y,C]=this.getXmlnsAttribute(d,o);if(C){n.addAttribute(y,C)}n.addChildNode(p)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends d.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const c=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(c)){o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,c){const d=loadRestXmlErrorCode(n,o)??"Unknown";if(o.Error&&typeof o.Error==="object"){for(const e of Object.keys(o.Error)){o[e]=o.Error[e];if(e.toLowerCase()==="message"){o.message=o.Error[e]}}}if(o.RequestId&&!c.requestId){c.requestId=o.RequestId}const{errorSchema:p,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,c);const C=i.NormalizedSchema.of(p);const Q=o.Error?.message??o.Error?.Message??o.message??o.Message??"Unknown";const v=i.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const D=new v(Q);await this.deserializeHttpMessage(p,t,n,o);const k={};for(const[e,t]of C.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];k[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(D,y,{$fault:C.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody},5606:(e,t,n)=>{var o=n(5152);var i=n(8857);const c="AWS_ACCESS_KEY_ID";const d="AWS_SECRET_ACCESS_KEY";const p="AWS_SESSION_TOKEN";const y="AWS_CREDENTIAL_EXPIRATION";const C="AWS_CREDENTIAL_SCOPE";const Q="AWS_ACCOUNT_ID";const fromEnv=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[c];const n=process.env[d];const v=process.env[p];const D=process.env[y];const k=process.env[C];const $=process.env[Q];if(t&&n){const e={accessKeyId:t,secretAccessKey:n,...v&&{sessionToken:v},...D&&{expiration:new Date(D)},...k&&{credentialScope:k},...$&&{accountId:$}};o.setCredentialFeature(e,"CREDENTIALS_ENV_VARS","g");return e}throw new i.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};t.ENV_ACCOUNT_ID=Q;t.ENV_CREDENTIAL_SCOPE=C;t.ENV_EXPIRATION=y;t.ENV_KEY=c;t.ENV_SECRET=d;t.ENV_SESSION=p;t.fromEnv=fromEnv},5861:(e,t,n)=>{var o=n(5606);var i=n(8857);var c=n(4964);const d="AWS_EC2_METADATA_DISABLED";const remoteProvider=async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:o,fromContainerMetadata:c,fromInstanceMetadata:p}=await n.e(566).then(n.t.bind(n,566,19));if(process.env[o]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await n.e(605).then(n.bind(n,8605));return i.chain(t(e),c(e))}if(process.env[d]&&process.env[d]!=="false"){return async()=>{throw new i.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}}e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return p(e)};function memoizeChain(e,t){const n=internalCreateChain(e);let o;let i;let c;const provider=async e=>{if(e?.forceRefresh){return await n(e)}if(c?.expiration){if(c?.expiration?.getTime()<Date.now()){c=undefined}}if(o){await o}else if(!c||t?.(c)){if(c){if(!i){i=n(e).then((e=>{c=e})).finally((()=>{i=undefined}))}}else{o=n(e).then((e=>{c=e})).finally((()=>{o=undefined}));return provider(e)}}return c};return provider}const internalCreateChain=e=>async t=>{let n;for(const o of e){try{return await o(t)}catch(e){n=e;if(e?.tryNextLink){continue}throw e}}throw n};let p=false;const defaultProvider=(e={})=>memoizeChain([async()=>{const t=e.profile??process.env[c.ENV_PROFILE];if(t){const t=process.env[o.ENV_KEY]&&process.env[o.ENV_SECRET];if(t){if(!p){const t=e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn;t(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);p=true}}throw new i.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:true})}e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return o.fromEnv(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:o,ssoAccountId:c,ssoRegion:d,ssoRoleName:p,ssoSession:y}=e;if(!o&&!c&&!d&&!p&&!y){throw new i.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger})}const{fromSSO:C}=await n.e(998).then(n.t.bind(n,998,19));return C(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:o}=await n.e(869).then(n.t.bind(n,5869,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:o}=await n.e(360).then(n.t.bind(n,5360,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:o}=await Promise.all([n.e(136),n.e(956)]).then(n.t.bind(n,9956,23));return o(e)(t)},async()=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(e))()},async()=>{throw new i.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:e.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=e=>e?.expiration!==undefined;const credentialsTreatedAsExpired=e=>e?.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5;t.credentialsTreatedAsExpired=credentialsTreatedAsExpired;t.credentialsWillNeedRefresh=credentialsWillNeedRefresh;t.defaultProvider=defaultProvider},2590:(e,t,n)=>{var o=n(2356);function resolveHostHeaderConfig(e){return e}const hostHeaderMiddleware=e=>t=>async n=>{if(!o.HttpRequest.isInstance(n.request))return t(n);const{request:i}=n;const{handlerProtocol:c=""}=e.requestHandler.metadata||{};if(c.indexOf("h2")>=0&&!i.headers[":authority"]){delete i.headers["host"];i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"")}else if(!i.headers["host"]){let e=i.hostname;if(i.port!=null)e+=`:${i.port}`;i.headers["host"]=e}return t(n)};const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:t=>{t.add(hostHeaderMiddleware(e),i)}});t.getHostHeaderPlugin=getHostHeaderPlugin;t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions=i;t.resolveHostHeaderConfig=resolveHostHeaderConfig},5242:(e,t)=>{const loggerMiddleware=()=>(e,t)=>async n=>{try{const o=await e(n);const{clientName:i,commandName:c,logger:d,dynamoDbDocumentClientOptions:p={}}=t;const{overrideInputFilterSensitiveLog:y,overrideOutputFilterSensitiveLog:C}=p;const Q=y??t.inputFilterSensitiveLog;const v=C??t.outputFilterSensitiveLog;const{$metadata:D,...k}=o.output;d?.info?.({clientName:i,commandName:c,input:Q(n.input),output:v(k),metadata:D});return o}catch(e){const{clientName:o,commandName:i,logger:c,dynamoDbDocumentClientOptions:d={}}=t;const{overrideInputFilterSensitiveLog:p}=d;const y=p??t.inputFilterSensitiveLog;c?.error?.({clientName:o,commandName:i,input:y(n.input),error:e,metadata:e.$metadata});throw e}};const n={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(loggerMiddleware(),n)}});t.getLoggerPlugin=getLoggerPlugin;t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions=n},1568:(e,t,n)=>{var o=n(2521);const i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(o.recursionDetectionMiddleware(),i)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},2521:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.recursionDetectionMiddleware=void 0;const o=n(9320);const i=n(2356);const c="X-Amzn-Trace-Id";const d="AWS_LAMBDA_FUNCTION_NAME";const p="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=()=>e=>async t=>{const{request:n}=t;if(!i.HttpRequest.isInstance(n)){return e(t)}const y=Object.keys(n.headers??{}).find((e=>e.toLowerCase()===c.toLowerCase()))??c;if(n.headers.hasOwnProperty(y)){return e(t)}const C=process.env[d];const Q=process.env[p];const v=await o.InvokeStore.getInstanceAsync();const D=v?.getXRayTraceId();const k=D??Q;const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(C)&&nonEmptyString(k)){n.headers[c]=k}return e({...t,request:n})};t.recursionDetectionMiddleware=recursionDetectionMiddleware},2959:(e,t,n)=>{var o=n(402);var i=n(3068);var c=n(2356);var d=n(8704);const p=undefined;function isValidUserAgentAppId(e){if(e===undefined){return true}return typeof e==="string"&&e.length<=50}function resolveUserAgentConfig(e){const t=o.normalizeProvider(e.userAgentAppId??p);const{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==="string"?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!isValidUserAgentAppId(n)){const t=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof n!=="string"){t?.warn("userAgentAppId must be a string or undefined.")}else if(n.length>50){t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return n}})}const y=/\d{12}\.ddb/;async function checkFeatures(e,t,n){const o=n.request;if(o?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){d.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof t.retryStrategy==="function"){const n=await t.retryStrategy();if(typeof n.acquireInitialRetryToken==="function"){if(n.constructor?.name?.includes("Adaptive")){d.setFeature(e,"RETRY_MODE_ADAPTIVE","F")}else{d.setFeature(e,"RETRY_MODE_STANDARD","E")}}else{d.setFeature(e,"RETRY_MODE_LEGACY","D")}}if(typeof t.accountIdEndpointMode==="function"){const n=e.endpointV2;if(String(n?.url?.hostname).match(y)){d.setFeature(e,"ACCOUNT_ID_ENDPOINT","O")}switch(await(t.accountIdEndpointMode?.())){case"disabled":d.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":d.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":d.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const t=i;if(t.accountId){d.setFeature(e,"RESOLVED_ACCOUNT_ID","T")}for(const[n,o]of Object.entries(t.$source??{})){d.setFeature(e,n,o)}}}const C="user-agent";const Q="x-amz-user-agent";const v=" ";const D="/";const k=/[^!$%&'*+\-.^_`|~\w]/g;const $=/[^!$%&'*+\-.^_`|~\w#]/g;const V="-";const ee=1024;function encodeFeatures(e){let t="";for(const n in e){const o=e[n];if(t.length+o.length+1<=ee){if(t.length){t+=","+o}else{t+=o}continue}break}return t}const userAgentMiddleware=e=>(t,n)=>async o=>{const{request:d}=o;if(!c.HttpRequest.isInstance(d)){return t(o)}const{headers:p}=d;const y=n?.userAgent?.map(escapeUserAgent)||[];const D=(await e.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(n,e,o);const k=n;D.push(`m/${encodeFeatures(Object.assign({},n.__smithy_context?.features,k.__aws_sdk_context?.features))}`);const $=e?.customUserAgent?.map(escapeUserAgent)||[];const V=await e.userAgentAppId();if(V){D.push(escapeUserAgent([`app`,`${V}`]))}const ee=i.getUserAgentPrefix();const te=(ee?[ee]:[]).concat([...D,...y,...$]).join(v);const re=[...D.filter((e=>e.startsWith("aws-sdk-"))),...$].join(v);if(e.runtime!=="browser"){if(re){p[Q]=p[Q]?`${p[C]} ${re}`:re}p[C]=te}else{p[Q]=te}return t({...o,request:d})};const escapeUserAgent=e=>{const t=e[0].split(D).map((e=>e.replace(k,V))).join(D);const n=e[1]?.replace($,V);const o=t.indexOf(D);const i=t.substring(0,o);let c=t.substring(o+1);if(i==="api"){c=c.toLowerCase()}return[i,c,n].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};const te={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:t=>{t.add(userAgentMiddleware(e),te)}});t.DEFAULT_UA_APP_ID=p;t.getUserAgentMiddlewareOptions=te;t.getUserAgentPlugin=getUserAgentPlugin;t.resolveUserAgentConfig=resolveUserAgentConfig;t.userAgentMiddleware=userAgentMiddleware},6463:(e,t,n)=>{var o=n(5779);var i=n(9316);const getAwsRegionExtensionConfiguration=e=>({setRegion(t){e.region=t},region(){return e.region}});const resolveAwsRegionExtensionConfiguration=e=>({region:e.region()});t.NODE_REGION_CONFIG_FILE_OPTIONS=i.NODE_REGION_CONFIG_FILE_OPTIONS;t.NODE_REGION_CONFIG_OPTIONS=i.NODE_REGION_CONFIG_OPTIONS;t.REGION_ENV_NAME=i.REGION_ENV_NAME;t.REGION_INI_NAME=i.REGION_INI_NAME;t.resolveRegionConfig=i.resolveRegionConfig;t.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;t.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},5779:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.warning=void 0;t.stsRegionDefaultResolver=stsRegionDefaultResolver;const o=n(9316);const i=n(5704);function stsRegionDefaultResolver(e={}){return(0,i.loadConfig)({...o.NODE_REGION_CONFIG_OPTIONS,async default(){if(!t.warning.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...o.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}t.warning={silence:false}},3068:(e,t,n)=>{var o=n(9674);var i=n(4494);const isVirtualHostableS3Bucket=(e,t=false)=>{if(t){for(const t of e.split(".")){if(!isVirtualHostableS3Bucket(t)){return false}}return true}if(!o.isValidHostLabel(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if(o.isIpAddress(e)){return false}return true};const c=":";const d="/";const parseArn=e=>{const t=e.split(c);if(t.length<6)return null;const[n,o,i,p,y,...C]=t;if(n!=="arn"||o===""||i===""||C.join(c)==="")return null;const Q=C.map((e=>e.split(d))).flat();return{partition:o,service:i,region:p,accountId:y,resourceId:Q}};var p=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}];var y="1.1";var C={partitions:p,version:y};let Q=C;let v="";const partition=e=>{const{partitions:t}=Q;for(const n of t){const{regions:t,outputs:o}=n;for(const[n,i]of Object.entries(t)){if(n===e){return{...o,...i}}}}for(const n of t){const{regionRegex:t,outputs:o}=n;if(new RegExp(t).test(e)){return{...o}}}const n=t.find((e=>e.id==="aws"));if(!n){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...n.outputs}};const setPartitionInfo=(e,t="")=>{Q=e;v=t};const useDefaultPartitionInfo=()=>{setPartitionInfo(C,"")};const getUserAgentPrefix=()=>v;const D={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};o.customEndpointFunctions.aws=D;const resolveDefaultAwsRegionalEndpointsConfig=e=>{if(typeof e.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>toEndpointV1(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:undefined},{logger:e.logger}))}return e};const toEndpointV1=e=>i.parseUrl(e.url);t.EndpointError=o.EndpointError;t.isIpAddress=o.isIpAddress;t.resolveEndpoint=o.resolveEndpoint;t.awsEndpointFunctions=D;t.getUserAgentPrefix=getUserAgentPrefix;t.partition=partition;t.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;t.setPartitionInfo=setPartitionInfo;t.toEndpointV1=toEndpointV1;t.useDefaultPartitionInfo=useDefaultPartitionInfo},1656:(e,t,n)=>{var o=n(8161);var i=n(1708);var c=n(1455);var d=n(6760);var p=n(2959);const getRuntimeUserAgentPair=()=>{const e=["deno","bun","llrt"];for(const t of e){if(i.versions[t]){return[`md/${t}`,i.versions[t]]}}return["md/nodejs",i.versions.node]};const getTypeScriptPackageJsonPath=(e="")=>{let t;const n=d.normalize(e);const o=n.split(d.sep);const i=o.indexOf("node_modules");if(i!==-1){t=o.slice(0,i).join(d.sep)}else{t=e}return d.join(t,"node_modules","typescript","package.json")};let y;const getTypeScriptUserAgentPair=async()=>{if(y===null){return undefined}else if(typeof y==="string"){return["md/tsc",y]}try{const e=await c.readFile(getTypeScriptPackageJsonPath(__dirname),"utf-8");const{version:t}=JSON.parse(e);if(typeof t!=="string"){y=null;return undefined}y=t;return["md/tsc",y]}catch{y=null}};const C={isCrtAvailable:false};const isCrtAvailable=()=>{if(C.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:e,clientVersion:t})=>{const n=getRuntimeUserAgentPair();return async c=>{const d=[["aws-sdk-js",t],["ua","2.1"],[`os/${o.platform()}`,o.release()],["lang/js"],n];const p=await getTypeScriptUserAgentPair();if(p){d.push(p)}const y=isCrtAvailable();if(y){d.push(y)}if(e){d.push([`api/${e}`,t])}if(i.env.AWS_EXECUTION_ENV){d.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const C=await(c?.userAgentAppId?.());const Q=C?[...d,[`app/${C}`]]:[...d];return Q}};const Q=createDefaultUserAgentProvider;const v="AWS_SDK_UA_APP_ID";const D="sdk_ua_app_id";const k="sdk-ua-app-id";const $={environmentVariableSelector:e=>e[v],configFileSelector:e=>e[D]??e[k],default:p.DEFAULT_UA_APP_ID};t.NODE_APP_ID_CONFIG_OPTIONS=$;t.UA_APP_ID_ENV_NAME=v;t.UA_APP_ID_INI_NAME=D;t.createDefaultUserAgentProvider=createDefaultUserAgentProvider;t.crtAvailability=C;t.defaultUserAgent=Q},4274:(e,t,n)=>{var o=n(3343);function escapeAttribute(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function escapeElement(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class XmlText{value;constructor(e){this.value=e}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(e,t,n){const o=new XmlNode(e);if(t!==undefined){o.addChildNode(new XmlText(t))}if(n!==undefined){o.withName(n)}return o}constructor(e,t=[]){this.name=e;this.children=t}withName(e){this.name=e;return this}addAttribute(e,t){this.attributes[e]=t;return this}addChildNode(e){this.children.push(e);return this}removeAttribute(e){delete this.attributes[e];return this}n(e){this.name=e;return this}c(e){this.children.push(e);return this}a(e,t){if(t!=null){this.attributes[e]=t}return this}cc(e,t,n=t){if(e[t]!=null){const o=XmlNode.of(t,e[t]).withName(n);this.c(o)}}l(e,t,n,o){if(e[t]!=null){const e=o();e.map((e=>{e.withName(n);this.c(e)}))}}lc(e,t,n,o){if(e[t]!=null){const e=o();const t=new XmlNode(n);e.map((e=>{t.c(e)}));this.c(t)}}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const n=this.attributes;for(const e of Object.keys(n)){const o=n[e];if(o!=null){t+=` ${e}="${escapeAttribute(""+o)}"`}}return t+=!e?"/>":`>${this.children.map((e=>e.toString())).join("")}</${this.name}>`}}t.parseXML=o.parseXML;t.XmlNode=XmlNode;t.XmlText=XmlText},3343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseXML=parseXML;const o=n(591);const i=new o.XMLParser({attributeNamePrefix:"",htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined});i.addEntity("#xD","\r");i.addEntity("#10","\n");function parseXML(e){return i.parse(e,true)}},9320:(e,t,n)=>{const o={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")};const i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!i){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=o;isProtectedKey(e){return Object.values(o).includes(e)}getRequestId(){return this.get(o.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(o.X_RAY_TRACE_ID)}getTenantId(){return this.get(o.TENANT_ID)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}this.currentContext=this.currentContext||{};this.currentContext[e]=t}run(e,t){this.currentContext=e;return t()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const e=new InvokeStoreMulti;const t=await Promise.resolve().then(n.t.bind(n,6698,23));e.als=new t.AsyncLocalStorage;return e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}const n=this.als.getStore();if(!n){throw new Error("No context available")}n[e]=t}run(e,t){return this.als.run(e,t)}}t.InvokeStore=void 0;(function(e){let t=null;async function getInstanceAsync(){if(!t){t=(async()=>{const e="AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const t=e?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!i&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!i&&globalThis.awslambda){globalThis.awslambda.InvokeStore=t;return t}else{return t}})()}return t}e.getInstanceAsync=getInstanceAsync;e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{t=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(t.InvokeStore||(t.InvokeStore={}));t.InvokeStoreBase=InvokeStoreBase},5862:(e,t,n)=>{var o;o={value:true};var i=n(5004);var c=n(1391);var d=n(7132);const p=i.createClientLogger("core-lro");const y=2e3;const C=["succeeded","canceled","failed"];function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:n,isOperationError:o}=e;return e=>{if(o(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let o=e;while(o.innererror){o=o.innererror;n=o.code;t=appendReadableErrorMessage(t,o.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:o,isDone:i,processResult:c,getError:d,response:y,setErrorAsResult:C}=e;switch(o){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=d===null||d===void 0?void 0:d(y);let o="";if(e){const{code:t,message:n}=simplifyError(e);o=`. ${t}. ${n}`}const i=`The long-running operation has failed${o}`;n.setError(t,new Error(i));n.setFailed(t);p.warning(i);break}case"canceled":{n.setCanceled(t);break}}if((i===null||i===void 0?void 0:i(y,t))||i===undefined&&["succeeded","canceled"].concat(C?[]:["failed"]).includes(o)){n.setResult(t,buildResult({response:y,state:t,processResult:c}))}}function buildResult(e){const{processResult:t,response:n,state:o}=e;return t?t(n,o):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:o,getOperationStatus:i,withOperationLocation:c,setErrorAsResult:d}=e;const{operationLocation:y,resourceLocation:C,metadata:Q,response:v}=await t();if(y)c===null||c===void 0?void 0:c(y,false);const D={metadata:Q,operationLocation:y,resourceLocation:C};p.verbose(`LRO: Operation description:`,D);const k=n.initState(D);const $=i({response:v,state:k,operationLocation:y});processOperationStatus({state:k,status:$,stateProxy:n,response:v,setErrorAsResult:d,processResult:o});return k}async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:o,operationLocation:i,getOperationStatus:c,getResourceLocation:d,isOperationError:y,options:Q}=e;const v=await t(i,Q).catch(setStateError({state:n,stateProxy:o,isOperationError:y}));const D=c(v,n);p.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${D}\n\tPolling status: ${C.includes(D)?"Stopped":"Running"}`);if(D==="succeeded"){const e=d(v,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:o,isOperationError:y})),status:D}}}return{response:v,status:D}}async function pollOperation(e){const{poll:t,state:n,stateProxy:o,options:i,getOperationStatus:c,getResourceLocation:d,getOperationLocation:p,isOperationError:y,withOperationLocation:Q,getPollingInterval:v,processResult:D,getError:k,updateState:$,setDelay:V,isDone:ee,setErrorAsResult:te}=e;const{operationLocation:re}=n.config;if(re!==undefined){const{response:e,status:ne}=await pollOperationHelper({poll:t,getOperationStatus:c,state:n,stateProxy:o,operationLocation:re,getResourceLocation:d,isOperationError:y,options:i});processOperationStatus({status:ne,response:e,state:n,stateProxy:o,isDone:ee,processResult:D,getError:k,setErrorAsResult:te});if(!C.includes(ne)){const t=v===null||v===void 0?void 0:v(e);if(t)V(t);const o=p===null||p===void 0?void 0:p(e,n);if(o!==undefined){const e=re!==o;n.config.operationLocation=o;Q===null||Q===void 0?void 0:Q(o,e)}else Q===null||Q===void 0?void 0:Q(re,false)}$===null||$===void 0?void 0:$(n,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){const{location:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;switch(n){case"PUT":{return o}case"DELETE":{return undefined}default:{switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return t}}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;const c=getOperationLocationHeader(t);const d=getAzureAsyncOperationHeader(t);const p=getOperationLocationPollingUrl({operationLocation:c,azureAsyncOperation:d});const y=getLocationHeader(t);const C=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(p!==undefined){return{mode:"OperationLocation",operationLocation:p,resourceLocation:findResourceLocation({requestMethod:C,location:y,requestPath:o,resourceLocationConfig:i})}}else if(y!==undefined){return{mode:"ResourceLocation",operationLocation:y}}else if(C==="PUT"&&o){return{mode:"Body",operationLocation:o}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{p.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:o,provisioningState:i}=(t=e.body)!==null&&t!==void 0?t:{};const c=(n=o===null||o===void 0?void 0:o.provisioningState)!==null&&n!==void 0?n:i;return transformStatus({status:c,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function getErrorFromResponse(e){const t=e.flatResponse.error;if(!t){p.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){p.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t<n){return n-t}return undefined}function getStatusFromInitialResponse(e){const{response:t,state:n,operationLocation:o}=e;function helper(){var e;const o=(e=n.config.metadata)===null||e===void 0?void 0:e["mode"];switch(o){case undefined:return toOperationStatus(t.rawResponse.statusCode);case"Body":return getOperationStatus(t,n);default:return"running"}}const i=helper();return i==="running"&&o===undefined?"succeeded":i}async function initHttpOperation(e){const{stateProxy:t,resourceLocationConfig:n,processResult:o,lro:i,setErrorAsResult:c}=e;return initOperation({init:async()=>{const e=await i.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:c})}function getOperationLocation({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${o}`)}}function getResourceLocation({flatResponse:e},t){if(typeof e==="object"){const n=e.resourceLocation;if(n!==undefined){t.config.resourceLocation=n}}return t.config.resourceLocation}function isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:o,processResult:i,updateState:c,setDelay:d,state:p,setErrorAsResult:y}=e;return pollOperation({state:p,stateProxy:n,setDelay:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:c,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:y})}const createStateProxy$1=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:o,isOperationError:i,getResourceLocation:p,getPollingInterval:C,getError:Q,resolveOnUnsuccessful:v}=e;return async({init:e,poll:D},k)=>{const{processResult:$,updateState:V,withOperationLocation:ee,intervalInMs:te=y,restoreFrom:re}=k||{};const ne=createStateProxy$1();const se=ee?(()=>{let e=false;return(t,n)=>{if(n)ee(t);else if(!e)ee(t);e=true}})():undefined;const oe=re?deserializeState(re):await initOperation({init:e,stateProxy:ne,processResult:$,getOperationStatus:n,withOperationLocation:se,setErrorAsResult:!v});let ie;const ae=new c.AbortController;const ce=new Map;const handleProgressEvents=async()=>ce.forEach((e=>e(oe)));const le="Operation was canceled";let ue=te;const de={getOperationState:()=>oe,getResult:()=>oe.result,isDone:()=>["succeeded","failed","canceled"].includes(oe.status),isStopped:()=>ie===undefined,stopPolling:()=>{ae.abort()},toString:()=>JSON.stringify({state:oe}),onProgress:e=>{const t=Symbol();ce.set(t,e);return()=>ce.delete(t)},pollUntilDone:e=>ie!==null&&ie!==void 0?ie:ie=(async()=>{const{abortSignal:t}=e||{};const{signal:n}=t?new c.AbortController([t,ae.signal]):ae;if(!de.isDone()){await de.poll({abortSignal:n});while(!de.isDone()){await d.delay(ue,{abortSignal:n});await de.poll({abortSignal:n})}}if(v){return de.getResult()}else{switch(oe.status){case"succeeded":return de.getResult();case"canceled":throw new Error(le);case"failed":throw oe.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{ie=undefined})),async poll(e){if(v){if(de.isDone())return}else{switch(oe.status){case"succeeded":return;case"canceled":throw new Error(le);case"failed":throw oe.error}}await pollOperation({poll:D,state:oe,stateProxy:ne,getOperationLocation:t,isOperationError:i,withOperationLocation:se,getPollingInterval:C,getOperationStatus:o,getResourceLocation:p,processResult:$,getError:Q,updateState:V,options:e,setDelay:e=>{ue=e},setErrorAsResult:!v});await handleProgressEvents();if(!v){switch(oe.status){case"canceled":throw new Error(le);case"failed":throw oe.error}}}};return de}}async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:o,processResult:i,restoreFrom:c,updateState:d,withOperationLocation:p,resolveOnUnsuccessful:y=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:y})({init:async()=>{const t=await e.sendInitialRequest();const o=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:o,withOperationLocation:p,restoreFrom:c,updateState:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e})}const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,o,i,c,d){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=o;this.processResult=i;this.updateState=c;this.isDone=d}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const i=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:i?({flatResponse:e},t)=>i(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){p.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);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 e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.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(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:n=y,resumeFrom:o,resolveOnUnsuccessful:i=false,isDone:c,lroResourceLocationConfig:d,processResult:p,updateState:C}=t||{};const Q=o?deserializeState(o):{};const v=new GenericPollOperation(Q,e,!i,d,p,C,c);super(v);this.resolveOnUnsuccessful=i;this.config={intervalInMs:n};v.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}o=LroEngine;t.vu=Poller;o=PollerCancelledError;o=PollerStoppedError;o=createHttpPoller},1391:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const o=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);o.set(this,false)}get aborted(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);o.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);const i=o.indexOf(t);if(i>-1){o.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}o.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},7132:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(1391);var i=n(6982);var c;const d=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((c=process.versions)===null||c===void 0?void 0:c.node);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:i,abortErrorMsg:c}=t!==null&&t!==void 0?t:{};return new Promise(((t,d)=>{function rejectOnAbort(){d(new o.AbortError(c!==null&&c!==void 0?c:"The operation was aborted."))}function removeListeners(){i===null||i===void 0?void 0:i.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(i===null||i===void 0?void 0:i.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();d(e)}))}catch(e){d(e)}i===null||i===void 0?void 0:i.addEventListener("abort",onAbort)}))}const p="The delay was aborted.";function delay(e,t){let n;const{abortSignal:o,abortErrorMsg:i}=t!==null&&t!==void 0?t:{};return createAbortablePromise((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:i!==null&&i!==void 0?i:p})}function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return i.createHmac("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return i.createHash("sha256").update(e).digest(t)}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}function generateUUID(){let e="";for(let t=0;t<32;t++){const n=Math.floor(Math.random()*16);if(t===12){e+="4"}else if(t===16){e+=n&3|8}else{e+=n.toString(16)}if(t===7||t===11||t===15||t===19){e+="-"}}return e}var y;let C=typeof((y=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||y===void 0?void 0:y.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):i.randomUUID;if(!C){C=generateUUID}function randomUUID(){return C()}t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.createAbortablePromise=createAbortablePromise;t.delay=delay;t.getErrorMessage=getErrorMessage;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isDefined=isDefined;t.isError=isError;t.isNode=d;t.isObject=isObject;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;t.randomUUID=randomUUID},5004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(857);var i=n(9023);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var c=_interopDefaultLegacy(i);function log(e,...t){process.stderr.write(`${c["default"].format(e,...t)}${o.EOL}`)}const d=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let p;let y=[];let C=[];const Q=[];if(d){enable(d)}const v=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){p=e;y=[];C=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){C.push(new RegExp(`^${e.substr(1)}$`))}else{y.push(new RegExp(`^${e}$`))}}for(const e of Q){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of C){if(t.test(e)){return false}}for(const t of y){if(t.test(e)){return true}}return false}function disable(){const e=p||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:v.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}Q.push(t);return t}function destroy(){const e=Q.indexOf(this);if(e>=0){Q.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}var D=v;const k=new Set;const $=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let V;const ee=D("azure");ee.log=(...e)=>{D.log(...e)};const te=["verbose","info","warning","error"];if($){if(isAzureLogLevel($)){setLogLevel($)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${$}'; logging is not enabled. Acceptable values: ${te.join(", ")}.`)}}function setLogLevel(e){if(e&&!isAzureLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${te.join(",")}`)}V=e;const t=[];for(const e of k){if(shouldEnable(e)){t.push(e.namespace)}}D.enable(t.join(","))}function getLogLevel(){return V}const re={verbose:400,info:300,warning:200,error:100};function createClientLogger(e){const t=ee.extend(e);patchLogMethod(ee,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function createLogger(e,t){const n=Object.assign(e.extend(t),{level:t});patchLogMethod(e,n);if(shouldEnable(n)){const e=D.disable();D.enable(e+","+n.namespace)}k.add(n);return n}function shouldEnable(e){return Boolean(V&&re[e.level]<=re[V])}function isAzureLogLevel(e){return te.includes(e)}t.AzureLogger=ee;t.createClientLogger=createClientLogger;t.getLogLevel=getLogLevel;t.setLogLevel=setLogLevel},1046:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?c[d.COMPARATORLOOSE]:c[d.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new C(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}return p(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new Q(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new Q(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(p(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(p(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(7766);const{safeRe:c,t:d}=n(4836);const p=n(7721);const y=n(2814);const C=n(5186);const Q=n(3177)},3177:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=d(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof p){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0){this.formatted+="||"}const t=this.set[e];for(let e=0;e<t.length;e++){if(e>0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&V)|(this.options.loose&&ee);const n=t+":"+e;const o=c.get(n);if(o){return o}const i=this.options.loose;const d=i?Q[v.HYPHENRANGELOOSE]:Q[v.HYPHENRANGE];e=e.replace(d,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(Q[v.COMPARATORTRIM],D);y("comparator trim",e);e=e.replace(Q[v.TILDETRIM],k);y("tilde trim",e);e=e.replace(Q[v.CARETTRIM],$);y("caret trim",e);let C=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){C=C.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(Q[v.COMPARATORLOOSE])}))}y("range list",C);const te=new Map;const re=C.map((e=>new p(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];c.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const i=n(7515);const c=new i;const d=n(7766);const p=n(1046);const y=n(2814);const C=n(5186);const{safeRe:Q,t:v,comparatorTrimReplace:D,tildeTrimReplace:k,caretTrimReplace:$}=n(4836);const{FLAG_INCLUDE_PRERELEASE:V,FLAG_LOOSE:ee}=n(8504);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(Q[v.BUILD],"");y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?Q[v.TILDELOOSE]:Q[v.TILDE];return e.replace(n,((t,n,o,i,c)=>{y("tilde",e,t,n,o,i,c);let d;if(isX(n)){d=""}else if(isX(o)){d=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){d=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(c){y("replaceTilde pr",c);d=`>=${n}.${o}.${i}-${c} <${n}.${+o+1}.0-0`}else{d=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}y("tilde return",d);return d}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?Q[v.CARETLOOSE]:Q[v.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,c,d)=>{y("caret",e,t,n,i,c,d);let p;if(isX(n)){p=""}else if(isX(i)){p=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(c)){if(n==="0"){p=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{p=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(d){y("replaceCaret pr",d);if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}-${d} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}-${d} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c}-${d} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}${o} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}${o} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c} <${+n+1}.0.0-0`}}y("caret return",p);return p}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?Q[v.XRANGELOOSE]:Q[v.XRANGE];return e.replace(n,((n,o,i,c,d,p)=>{y("xRange",e,n,o,i,c,d,p);const C=isX(i);const Q=C||isX(c);const v=Q||isX(d);const D=v;if(o==="="&&D){o=""}p=t.includePrerelease?"-0":"";if(C){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&D){if(Q){c=0}d=0;if(o===">"){o=">=";if(Q){i=+i+1;c=0;d=0}else{c=+c+1;d=0}}else if(o==="<="){o="<";if(Q){i=+i+1}else{c=+c+1}}if(o==="<"){p="-0"}n=`${o+i}.${c}.${d}${p}`}else if(Q){n=`>=${i}.0.0${p} <${+i+1}.0.0-0`}else if(v){n=`>=${i}.${c}.0${p} <${i}.${+c+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(Q[v.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(Q[t.includePrerelease?v.GTE0PRE:v.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,c,d,p,y,C,Q,v,D)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(c)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(d){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(C)){y=""}else if(isX(Q)){y=`<${+C+1}.0.0-0`}else if(isX(v)){y=`<${C}.${+Q+1}.0-0`}else if(D){y=`<=${C}.${Q}.${v}-${D}`}else if(e){y=`<${C}.${Q}.${+v+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++){y(e[n].semver);if(e[n].semver===p.ANY){continue}if(e[n].semver.prerelease.length>0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},5186:(e,t,n)=>{const o=n(2814);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:c}=n(8504);const{safeRe:d,t:p}=n(4836);const y=n(7766);const{compareIdentifiers:C}=n(7865);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?d[p.LOOSE]:d[p.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>c||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>c||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>c||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<c){return t}}return e}))}this.build=n[5]?n[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){o("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.major<e.major){return-1}if(this.major>e.major){return 1}if(this.minor<e.minor){return-1}if(this.minor>e.minor){return 1}if(this.patch<e.patch){return-1}if(this.patch>e.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?d[p.PRERELEASELOOSE]:d[p.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(C(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},5436:(e,t,n)=>{const o=n(7526);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},7721:(e,t,n)=>{const o=n(4107);const i=n(7705);const c=n(7962);const d=n(5603);const p=n(525);const y=n(3966);const cmp=(e,t,n,C)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,C);case"!=":return i(e,n,C);case">":return c(e,n,C);case">=":return d(e,n,C);case"<":return p(e,n,C);case"<=":return y(e,n,C);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},6356:(e,t,n)=>{const o=n(5186);const i=n(7526);const{safeRe:c,t:d}=n(4836);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?c[d.COERCEFULL]:c[d.COERCE])}else{const o=t.includePrerelease?c[d.COERCERTLFULL]:c[d.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const p=n[2];const y=n[3]||"0";const C=n[4]||"0";const Q=t.includePrerelease&&n[5]?`-${n[5]}`:"";const v=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${p}.${y}.${C}${Q}${v}`,t)};e.exports=coerce},2147:(e,t,n)=>{const o=n(5186);const compareBuild=(e,t,n)=>{const i=new o(e,n);const c=new o(t,n);return i.compare(c)||i.compareBuild(c)};e.exports=compareBuild},8545:(e,t,n)=>{const o=n(18);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},18:(e,t,n)=>{const o=n(5186);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},7290:(e,t,n)=>{const o=n(7526);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const c=n.compare(i);if(c===0){return null}const d=c>0;const p=d?n:i;const y=d?i:n;const C=!!p.prerelease.length;const Q=!!y.prerelease.length;if(Q&&!C){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(p)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const v=C?"pre":"";if(n.major!==i.major){return v+"major"}if(n.minor!==i.minor){return v+"minor"}if(n.patch!==i.patch){return v+"patch"}return"prerelease"};e.exports=diff},4107:(e,t,n)=>{const o=n(18);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},7962:(e,t,n)=>{const o=n(18);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},5603:(e,t,n)=>{const o=n(18);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2317:(e,t,n)=>{const o=n(5186);const inc=(e,t,n,i,c)=>{if(typeof n==="string"){c=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,c).version}catch(e){return null}};e.exports=inc},525:(e,t,n)=>{const o=n(18);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},3966:(e,t,n)=>{const o=n(18);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},4716:(e,t,n)=>{const o=n(5186);const major=(e,t)=>new o(e,t).major;e.exports=major},7968:(e,t,n)=>{const o=n(5186);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},7705:(e,t,n)=>{const o=n(18);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},7526:(e,t,n)=>{const o=n(5186);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},4807:(e,t,n)=>{const o=n(5186);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5039:(e,t,n)=>{const o=n(7526);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},5236:(e,t,n)=>{const o=n(18);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},9547:(e,t,n)=>{const o=n(2147);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},6076:(e,t,n)=>{const o=n(3177);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},6293:(e,t,n)=>{const o=n(2147);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},2475:(e,t,n)=>{const o=n(7526);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},1955:(e,t,n)=>{const o=n(4836);const i=n(8504);const c=n(5186);const d=n(7865);const p=n(7526);const y=n(2475);const C=n(5436);const Q=n(2317);const v=n(7290);const D=n(4716);const k=n(7968);const $=n(4807);const V=n(5039);const ee=n(18);const te=n(5236);const re=n(8545);const ne=n(2147);const se=n(6293);const oe=n(9547);const ie=n(7962);const ae=n(525);const ce=n(4107);const le=n(7705);const ue=n(5603);const de=n(3966);const pe=n(7721);const Ae=n(6356);const me=n(1046);const ge=n(3177);const fe=n(6076);const he=n(8465);const ye=n(1550);const Ee=n(9820);const Ce=n(2271);const Ie=n(8816);const be=n(6317);const Se=n(5133);const Be=n(8548);const we=n(9118);const Re=n(3139);const Ne=n(1093);e.exports={parse:p,valid:y,clean:C,inc:Q,diff:v,major:D,minor:k,patch:$,prerelease:V,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:se,rsort:oe,gt:ie,lt:ae,eq:ce,neq:le,gte:ue,lte:de,cmp:pe,coerce:Ae,Comparator:me,Range:ge,satisfies:fe,toComparators:he,maxSatisfying:ye,minSatisfying:Ee,minVersion:Ce,validRange:Ie,outside:be,gtr:Se,ltr:Be,intersects:we,simplifyRange:Re,subset:Ne,SemVer:c,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},8504:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const c=n-6;const d=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:o,RELEASE_TYPES:d,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2814:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},7865:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:e<n?-1:1}const o=t.test(e);const i=t.test(n);if(o&&i){e=+e;n=+n}return e===n?0:o&&!i?-1:i&&!o?1:e<n?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},7515:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},7766:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},4836:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:c}=n(8504);const d=n(2814);t=e.exports={};const p=t.re=[];const y=t.safeRe=[];const C=t.src=[];const Q=t.safeSrc=[];const v=t.t={};let D=0;const k="[a-zA-Z0-9-]";const $=[["\\s",1],["\\d",c],[k,i]];const makeSafeRegex=e=>{for(const[t,n]of $){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=D++;d(e,i,t);v[e]=i;C[i]=t;Q[i]=o;p[i]=new RegExp(t,n?"g":undefined);y[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k}*`);createToken("MAINVERSION",`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${C[v.PRERELEASEIDENTIFIER]}(?:\\.${C[v.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${C[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${C[v.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${k}+`);createToken("BUILD",`(?:\\+(${C[v.BUILDIDENTIFIER]}(?:\\.${C[v.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${C[v.MAINVERSION]}${C[v.PRERELEASE]}?${C[v.BUILD]}?`);createToken("FULL",`^${C[v.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${C[v.MAINVERSIONLOOSE]}${C[v.PRERELEASELOOSE]}?${C[v.BUILD]}?`);createToken("LOOSE",`^${C[v.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${C[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${C[v.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:${C[v.PRERELEASE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:${C[v.PRERELEASELOOSE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${C[v.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",C[v.COERCEPLAIN]+`(?:${C[v.PRERELEASE]})?`+`(?:${C[v.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",C[v.COERCE],true);createToken("COERCERTLFULL",C[v.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${C[v.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${C[v.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${C[v.LONECARET]}${C[v.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${C[v.LONECARET]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${C[v.GTLT]}\\s*(${C[v.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]}|${C[v.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${C[v.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${C[v.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5133:(e,t,n)=>{const o=n(6317);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},9118:(e,t,n)=>{const o=n(3177);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},8548:(e,t,n)=>{const o=n(6317);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},1550:(e,t,n)=>{const o=n(5186);const i=n(3177);const maxSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===-1){c=e;d=new o(c,n)}}}));return c};e.exports=maxSatisfying},9820:(e,t,n)=>{const o=n(5186);const i=n(3177);const minSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===1){c=e;d=new o(c,n)}}}));return c};e.exports=minSatisfying},2271:(e,t,n)=>{const o=n(5186);const i=n(3177);const c=n(7962);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let d=null;i.forEach((e=>{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!d||c(t,d)){d=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(d&&(!n||c(n,d))){n=d}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},6317:(e,t,n)=>{const o=n(5186);const i=n(1046);const{ANY:c}=i;const d=n(3177);const p=n(6076);const y=n(7962);const C=n(525);const Q=n(3966);const v=n(5603);const outside=(e,t,n,D)=>{e=new o(e,D);t=new d(t,D);let k,$,V,ee,te;switch(n){case">":k=y;$=Q;V=C;ee=">";te=">=";break;case"<":k=C;$=v;V=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(e,t,D)){return false}for(let n=0;n<t.set.length;++n){const o=t.set[n];let d=null;let p=null;o.forEach((e=>{if(e.semver===c){e=new i(">=0.0.0")}d=d||e;p=p||e;if(k(e.semver,d.semver,D)){d=e}else if(V(e.semver,p.semver,D)){p=e}}));if(d.operator===ee||d.operator===te){return false}if((!p.operator||p.operator===ee)&&$(e,p.semver)){return false}else if(p.operator===te&&V(e,p.semver)){return false}}return true};e.exports=outside},3139:(e,t,n)=>{const o=n(6076);const i=n(18);e.exports=(e,t,n)=>{const c=[];let d=null;let p=null;const y=e.sort(((e,t)=>i(e,t,n)));for(const e of y){const i=o(e,t,n);if(i){p=e;if(!d){d=e}}else{if(p){c.push([d,p])}p=null;d=null}}if(d){c.push([d,null])}const C=[];for(const[e,t]of c){if(e===t){C.push(e)}else if(!t&&e===y[0]){C.push("*")}else if(!t){C.push(`>=${e}`)}else if(e===y[0]){C.push(`<=${t}`)}else{C.push(`${e} - ${t}`)}}const Q=C.join(" || ");const v=typeof t.raw==="string"?t.raw:String(t);return Q.length<v.length?Q:t}},1093:(e,t,n)=>{const o=n(3177);const i=n(1046);const{ANY:c}=i;const d=n(6076);const p=n(18);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const y=[new i(">=0.0.0-0")];const C=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===c){if(t.length===1&&t[0].semver===c){return true}else if(n.includePrerelease){e=y}else{e=C}}if(t.length===1&&t[0].semver===c){if(n.includePrerelease){return true}else{t=C}}const o=new Set;let i,Q;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){Q=lowerLT(Q,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let v;if(i&&Q){v=p(i.semver,Q.semver,n);if(v>0){return null}else if(v===0&&(i.operator!==">="||Q.operator!=="<=")){return null}}for(const e of o){if(i&&!d(e,String(i),n)){return null}if(Q&&!d(e,String(Q),n)){return null}for(const o of t){if(!d(e,String(o),n)){return false}}return true}let D,k;let $,V;let ee=Q&&!n.includePrerelease&&Q.semver.prerelease.length?Q.semver:false;let te=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(ee&&ee.prerelease.length===1&&Q.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){V=V||e.operator===">"||e.operator===">=";$=$||e.operator==="<"||e.operator==="<=";if(i){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){D=higherGT(i,e,n);if(D===e&&D!==i){return false}}else if(i.operator===">="&&!d(i.semver,String(e),n)){return false}}if(Q){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){k=lowerLT(Q,e,n);if(k===e&&k!==Q){return false}}else if(Q.operator==="<="&&!d(Q.semver,String(e),n)){return false}}if(!e.operator&&(Q||i)&&v!==0){return false}}if(i&&$&&!Q&&v!==0){return false}if(Q&&V&&!i&&v!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},8465:(e,t,n)=>{const o=n(3177);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},8816:(e,t,n)=>{const o=n(3177);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},9316:(e,t,n)=>{var o=n(6716);var i=n(6324);var c=n(9674);const d="AWS_USE_DUALSTACK_ENDPOINT";const p="use_dualstack_endpoint";const y=false;const C={environmentVariableSelector:e=>o.booleanSelector(e,d,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,p,o.SelectorType.CONFIG),default:false};const Q="AWS_USE_FIPS_ENDPOINT";const v="use_fips_endpoint";const D=false;const k={environmentVariableSelector:e=>o.booleanSelector(e,Q,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,v,o.SelectorType.CONFIG),default:false};const resolveCustomEndpointsConfig=e=>{const{tls:t,endpoint:n,urlParser:o,useDualstackEndpoint:c}=e;return Object.assign(e,{tls:t??true,endpoint:i.normalizeProvider(typeof n==="string"?o(n):n),isCustomEndpoint:true,useDualstackEndpoint:i.normalizeProvider(c??false)})};const getEndpointFromRegion=async e=>{const{tls:t=true}=e;const n=await e.region();const o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!o.test(n)){throw new Error("Invalid region in client config")}const i=await e.useDualstackEndpoint();const c=await e.useFipsEndpoint();const{hostname:d}=await e.regionInfoProvider(n,{useDualstackEndpoint:i,useFipsEndpoint:c})??{};if(!d){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${t?"https:":"http:"}//${d}`)};const resolveEndpointsConfig=e=>{const t=i.normalizeProvider(e.useDualstackEndpoint??false);const{endpoint:n,useFipsEndpoint:o,urlParser:c,tls:d}=e;return Object.assign(e,{tls:d??true,endpoint:n?i.normalizeProvider(typeof n==="string"?c(n):n):()=>getEndpointFromRegion({...e,useDualstackEndpoint:t,useFipsEndpoint:o}),isCustomEndpoint:!!n,useDualstackEndpoint:t})};const $="AWS_REGION";const V="region";const ee={environmentVariableSelector:e=>e[$],configFileSelector:e=>e[V],default:()=>{throw new Error("Region is missing")}};const te={preferredFile:"credentials"};const re=new Set;const checkRegion=(e,t=c.isValidHostLabel)=>{if(!re.has(e)&&!t(e)){if(e==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`)}}else{re.add(e)}};const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));const getRealRegion=e=>isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t){throw new Error("Region is missing")}return Object.assign(e,{region:async()=>{const e=typeof t==="function"?await t():t;const n=getRealRegion(e);checkRegion(n);return n},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(isFipsRegion(e)){return true}return typeof n!=="function"?Promise.resolve(!!n):n()}})};const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find((({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack")))?.hostname;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:n})=>t?t:n?n.replace("{region}",e):undefined;const getResolvedPartition=(e,{partitionHash:t})=>Object.keys(t||{}).find((n=>t[n].regions.includes(e)))??"aws";const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:o})=>{if(t){return t}else if(o){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=e.match(t);if(o){return o[0].slice(1,-1)}}};const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:o,regionHash:i,partitionHash:c})=>{const d=getResolvedPartition(e,{partitionHash:c});const p=e in i?e:c[d]?.endpoint??e;const y={useFipsEndpoint:t,useDualstackEndpoint:n};const C=getHostnameFromVariants(i[p]?.variants,y);const Q=getHostnameFromVariants(c[d]?.variants,y);const v=getResolvedHostname(p,{regionHostname:C,partitionHostname:Q});if(v===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:p,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const D=getResolvedSigningRegion(v,{signingRegion:i[p]?.signingRegion,regionRegex:c[d].regionRegex,useFipsEndpoint:t});return{partition:d,signingService:o,hostname:v,...D&&{signingRegion:D},...i[p]?.signingService&&{signingService:i[p].signingService}}};t.CONFIG_USE_DUALSTACK_ENDPOINT=p;t.CONFIG_USE_FIPS_ENDPOINT=v;t.DEFAULT_USE_DUALSTACK_ENDPOINT=y;t.DEFAULT_USE_FIPS_ENDPOINT=D;t.ENV_USE_DUALSTACK_ENDPOINT=d;t.ENV_USE_FIPS_ENDPOINT=Q;t.NODE_REGION_CONFIG_FILE_OPTIONS=te;t.NODE_REGION_CONFIG_OPTIONS=ee;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=C;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=k;t.REGION_ENV_NAME=$;t.REGION_INI_NAME=V;t.getRegionInfo=getRegionInfo;t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;t.resolveEndpointsConfig=resolveEndpointsConfig;t.resolveRegionConfig=resolveRegionConfig},402:(e,t,n)=>{var o=n(690);var i=n(6324);var c=n(3255);var d=n(2356);var p=n(3422);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const resolveAuthOptions=(e,t)=>{if(!t||t.length===0){return e}const n=[];for(const o of t){for(const t of e){const e=t.schemeId.split("#")[1];if(e===o){n.push(t)}}}for(const t of e){if(!n.find((({schemeId:e})=>e===t.schemeId))){n.push(t)}}return n};function convertHttpAuthSchemesToMap(e){const t=new Map;for(const n of e){t.set(n.schemeId,n)}return t}const httpAuthSchemeMiddleware=(e,t)=>(n,o)=>async c=>{const d=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,c.input));const p=e.authSchemePreference?await e.authSchemePreference():[];const y=resolveAuthOptions(d,p);const C=convertHttpAuthSchemesToMap(e.httpAuthSchemes);const Q=i.getSmithyContext(o);const v=[];for(const n of y){const i=C.get(n.schemeId);if(!i){v.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const c=i.identityProvider(await t.identityProviderConfigProvider(e));if(!c){v.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:d={},signingProperties:p={}}=n.propertiesExtractor?.(e,o)||{};n.identityProperties=Object.assign(n.identityProperties||{},d);n.signingProperties=Object.assign(n.signingProperties||{},p);Q.selectedHttpAuthScheme={httpAuthOption:n,identity:await c(n.identityProperties),signer:i.signer};break}if(!Q.selectedHttpAuthScheme){throw new Error(v.join("\n"))}return n(c)};const y={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),y)}});const C={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:c.serializerMiddlewareOption.name};const getHttpAuthSchemePlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),C)}});const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,t)=>{};const httpSigningMiddleware=e=>(e,t)=>async n=>{if(!d.HttpRequest.isInstance(n.request)){return e(n)}const o=i.getSmithyContext(t);const c=o.selectedHttpAuthScheme;if(!c){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:p={}},identity:y,signer:C}=c;const Q=await e({...n,request:await C.sign(n.request,y,p)}).catch((C.errorHandler||defaultErrorHandler)(p));(C.successHandler||defaultSuccessHandler)(Q.response,p);return Q};const Q={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=e=>({applyToStack:e=>{e.addRelativeTo(httpSigningMiddleware(),Q)}});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};const makePagedClientRequest=async(e,t,n,o=e=>e,...i)=>{let c=new e(n);c=o(c)??c;return await t.send(c,...i)};function createPaginator(e,t,n,o,i){return async function*paginateOperation(c,d,...p){const y=d;let C=c.startingToken??y[n];let Q=true;let v;while(Q){y[n]=C;if(i){y[i]=y[i]??c.pageSize}if(c.client instanceof e){v=await makePagedClientRequest(t,c.client,d,c.withCommand,...p)}else{throw new Error(`Invalid client, expected instance of ${e.name}`)}yield v;const D=C;C=get(v,o);Q=!!(C&&(!c.stopOnSameToken||C!==D))}return undefined}}const get=(e,t)=>{let n=e;const o=t.split(".");for(const e of o){if(!n||typeof n!=="object"){return undefined}n=n[e]}return n};function setFeature(e,t,n){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[t]=n}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(e){for(const[t,n]of Object.entries(e)){if(n!==undefined){this.authSchemes.set(t,n)}}}getIdentityProvider(e){return this.authSchemes.get(e)}}class HttpApiKeyAuthSigner{async sign(e,t,n){if(!n){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!n.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!n.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!t.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const i=d.HttpRequest.clone(e);if(n.in===o.HttpApiKeyAuthLocation.QUERY){i.query[n.name]=t.apiKey}else if(n.in===o.HttpApiKeyAuthLocation.HEADER){i.headers[n.name]=n.scheme?`${n.scheme} ${t.apiKey}`:t.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+n.in+"`")}return i}}class HttpBearerAuthSigner{async sign(e,t,n){const o=d.HttpRequest.clone(e);if(!t.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}o.headers["Authorization"]=`Bearer ${t.token}`;return o}}class NoAuthSigner{async sign(e,t,n){return e}}const createIsIdentityExpiredFunction=e=>function isIdentityExpired(t){return doesIdentityRequireRefresh(t)&&t.expiration.getTime()-Date.now()<e};const v=3e5;const D=createIsIdentityExpiredFunction(v);const doesIdentityRequireRefresh=e=>e.expiration!==undefined;const memoizeIdentityProvider=(e,t,n)=>{if(e===undefined){return undefined}const o=typeof e!=="function"?async()=>Promise.resolve(e):e;let i;let c;let d;let p=false;const coalesceProvider=async e=>{if(!c){c=o(e)}try{i=await c;d=true;p=false}finally{c=undefined}return i};if(t===undefined){return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}return i}}return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}if(p){return i}if(!n(i)){p=true;return i}if(t(i)){await coalesceProvider(e);return i}return i}};t.requestBuilder=p.requestBuilder;t.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;t.EXPIRATION_MS=v;t.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;t.HttpBearerAuthSigner=HttpBearerAuthSigner;t.NoAuthSigner=NoAuthSigner;t.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;t.createPaginator=createPaginator;t.doesIdentityRequireRefresh=doesIdentityRequireRefresh;t.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;t.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;t.getHttpSigningPlugin=getHttpSigningPlugin;t.getSmithyContext=getSmithyContext;t.httpAuthSchemeEndpointRuleSetMiddlewareOptions=y;t.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;t.httpAuthSchemeMiddlewareOptions=C;t.httpSigningMiddleware=httpSigningMiddleware;t.httpSigningMiddlewareOptions=Q;t.isIdentityExpired=D;t.memoizeIdentityProvider=memoizeIdentityProvider;t.normalizeProvider=normalizeProvider;t.setFeature=setFeature},4645:(e,t,n)=>{var o=n(2430);var i=n(1577);var c=n(3422);var d=n(2356);var p=n(2098);var y=n(6890);var C=n(6324);var Q=n(8385);const v=0;const D=1;const k=2;const $=3;const V=4;const ee=5;const te=6;const re=7;const ne=20;const se=21;const oe=22;const ie=23;const ae=24;const ce=25;const le=26;const ue=27;const de=31;function alloc(e){return typeof Buffer!=="undefined"?Buffer.alloc(e):new Uint8Array(e)}const pe=Symbol("@smithy/core/cbor::tagSymbol");function tag(e){e[pe]=true;return e}const Ae=typeof TextDecoder!=="undefined";const me=typeof Buffer!=="undefined";let ge=alloc(0);let fe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength);const he=Ae?new TextDecoder:null;let ye=0;function setPayload(e){ge=e;fe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength)}function decode(e,t){if(e>=t){throw new Error("unexpected end of (decode) payload.")}const n=(ge[e]&224)>>5;const i=ge[e]&31;switch(n){case v:case D:case te:let c;let d;if(i<24){c=i;d=1}else{switch(i){case ae:case ce:case le:case ue:const n=Ee[i];const o=n+1;d=o;if(t-e<o){throw new Error(`countLength ${n} greater than remaining buf len.`)}const p=e+1;if(n===1){c=ge[p]}else if(n===2){c=fe.getUint16(p)}else if(n===4){c=fe.getUint32(p)}else{c=fe.getBigUint64(p)}break;default:throw new Error(`unexpected minor value ${i}.`)}}if(n===v){ye=d;return castBigInt(c)}else if(n===D){let e;if(typeof c==="bigint"){e=BigInt(-1)-c}else{e=-1-c}ye=d;return castBigInt(e)}else{if(i===2||i===3){const n=decodeCount(e+d,t);let o=BigInt(0);const c=e+d+ye;for(let e=c;e<c+n;++e){o=o<<BigInt(8)|BigInt(ge[e])}ye=d+ye+n;return i===3?-o-BigInt(1):o}else if(i===4){const n=decode(e+d,t);const[i,c]=n;const p=c<0?-1:1;const y="0".repeat(Math.abs(i)+1)+String(BigInt(p)*BigInt(c));let C;const Q=c<0?"-":"";C=i===0?y:y.slice(0,y.length+i)+"."+y.slice(i);C=C.replace(/^0+/g,"");if(C===""){C="0"}if(C[0]==="."){C="0"+C}C=Q+C;ye=d+ye;return o.nv(C)}else{const n=decode(e+d,t);const o=ye;ye=d+o;return tag({tag:castBigInt(c),value:n})}}case $:case ee:case V:case k:if(i===de){switch(n){case $:return decodeUtf8StringIndefinite(e,t);case ee:return decodeMapIndefinite(e,t);case V:return decodeListIndefinite(e,t);case k:return decodeUnstructuredByteStringIndefinite(e,t)}}else{switch(n){case $:return decodeUtf8String(e,t);case ee:return decodeMap(e,t);case V:return decodeList(e,t);case k:return decodeUnstructuredByteString(e,t)}}default:return decodeSpecial(e,t)}}function bytesToUtf8(e,t,n){if(me&&e.constructor?.name==="Buffer"){return e.toString("utf-8",t,n)}if(he){return he.decode(e.subarray(t,n))}return i.toUtf8(e.subarray(t,n))}function demote(e){const t=Number(e);if(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t){console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${e}) to ${t} with loss of precision.`))}return t}const Ee={[ae]:1,[ce]:2,[le]:4,[ue]:8};function bytesToFloat16(e,t){const n=e>>7;const o=(e&124)>>2;const i=(e&3)<<8|t;const c=n===0?1:-1;let d;let p;if(o===0){if(i===0){return 0}else{d=Math.pow(2,1-15);p=0}}else if(o===31){if(i===0){return c*Infinity}else{return NaN}}else{d=Math.pow(2,o-15);p=1}p+=i/1024;return c*(d*p)}function decodeCount(e,t){const n=ge[e]&31;if(n<24){ye=1;return n}if(n===ae||n===ce||n===le||n===ue){const o=Ee[n];ye=o+1;if(t-e<ye){throw new Error(`countLength ${o} greater than remaining buf len.`)}const i=e+1;if(o===1){return ge[i]}else if(o===2){return fe.getUint16(i)}else if(o===4){return fe.getUint32(i)}return demote(fe.getBigUint64(i))}throw new Error(`unexpected minor value ${n}.`)}function decodeUtf8String(e,t){const n=decodeCount(e,t);const o=ye;e+=o;if(t-e<n){throw new Error(`string len ${n} greater than remaining buf len.`)}const i=bytesToUtf8(ge,e,e+n);ye=o+n;return i}function decodeUtf8StringIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(ge[e]===255){const t=alloc(n.length);t.set(n,0);ye=e-o+2;return bytesToUtf8(t,0,t.length)}const i=(ge[e]&224)>>5;const c=ge[e]&31;if(i!==$){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(c===de){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const p=ye;e+=p;for(let e=0;e<d.length;++e){n.push(d[e])}}throw new Error("expected break marker.")}function decodeUnstructuredByteString(e,t){const n=decodeCount(e,t);const o=ye;e+=o;if(t-e<n){throw new Error(`unstructured byte string len ${n} greater than remaining buf len.`)}const i=ge.subarray(e,e+n);ye=o+n;return i}function decodeUnstructuredByteStringIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(ge[e]===255){const t=alloc(n.length);t.set(n,0);ye=e-o+2;return t}const i=(ge[e]&224)>>5;const c=ge[e]&31;if(i!==k){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(c===de){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const p=ye;e+=p;for(let e=0;e<d.length;++e){n.push(d[e])}}throw new Error("expected break marker.")}function decodeList(e,t){const n=decodeCount(e,t);const o=ye;e+=o;const i=e;const c=Array(n);for(let o=0;o<n;++o){const n=decode(e,t);const i=ye;c[o]=n;e+=i}ye=o+(e-i);return c}function decodeListIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(ge[e]===255){ye=e-o+2;return n}const i=decode(e,t);const c=ye;e+=c;n.push(i)}throw new Error("expected break marker.")}function decodeMap(e,t){const n=decodeCount(e,t);const o=ye;e+=o;const i=e;const c={};for(let o=0;o<n;++o){if(e>=t){throw new Error("unexpected end of map payload.")}const n=(ge[e]&224)>>5;if(n!==$){throw new Error(`unexpected major type ${n} for map key at index ${e}.`)}const o=decode(e,t);e+=ye;const i=decode(e,t);e+=ye;c[o]=i}ye=o+(e-i);return c}function decodeMapIndefinite(e,t){e+=1;const n=e;const o={};for(;e<t;){if(e>=t){throw new Error("unexpected end of map payload.")}if(ge[e]===255){ye=e-n+2;return o}const i=(ge[e]&224)>>5;if(i!==$){throw new Error(`unexpected major type ${i} for map key.`)}const c=decode(e,t);e+=ye;const d=decode(e,t);e+=ye;o[c]=d}throw new Error("expected break marker.")}function decodeSpecial(e,t){const n=ge[e]&31;switch(n){case se:case ne:ye=1;return n===se;case oe:ye=1;return null;case ie:ye=1;return null;case ce:if(t-e<3){throw new Error("incomplete float16 at end of buf.")}ye=3;return bytesToFloat16(ge[e+1],ge[e+2]);case le:if(t-e<5){throw new Error("incomplete float32 at end of buf.")}ye=5;return fe.getFloat32(e+1);case ue:if(t-e<9){throw new Error("incomplete float64 at end of buf.")}ye=9;return fe.getFloat64(e+1);default:throw new Error(`unexpected minor value ${n}.`)}}function castBigInt(e){if(typeof e==="number"){return e}const t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER){return t}return e}const Ce=typeof Buffer!=="undefined";const Ie=2048;let be=alloc(Ie);let Se=new DataView(be.buffer,be.byteOffset,be.byteLength);let Be=0;function ensureSpace(e){const t=be.byteLength-Be;if(t<e){if(Be<16e6){resize(Math.max(be.byteLength*4,be.byteLength+e))}else{resize(be.byteLength+e+16e6)}}}function toUint8Array(){const e=alloc(Be);e.set(be.subarray(0,Be),0);Be=0;return e}function resize(e){const t=be;be=alloc(e);if(t){if(t.copy){t.copy(be,0,0,t.byteLength)}else{be.set(t,0)}}Se=new DataView(be.buffer,be.byteOffset,be.byteLength)}function encodeHeader(e,t){if(t<24){be[Be++]=e<<5|t}else if(t<1<<8){be[Be++]=e<<5|24;be[Be++]=t}else if(t<1<<16){be[Be++]=e<<5|ce;Se.setUint16(Be,t);Be+=2}else if(t<2**32){be[Be++]=e<<5|le;Se.setUint32(Be,t);Be+=4}else{be[Be++]=e<<5|ue;Se.setBigUint64(Be,typeof t==="bigint"?t:BigInt(t));Be+=8}}function encode(e){const t=[e];while(t.length){const e=t.pop();ensureSpace(typeof e==="string"?e.length*4:64);if(typeof e==="string"){if(Ce){encodeHeader($,Buffer.byteLength(e));Be+=be.write(e,Be)}else{const t=i.fromUtf8(e);encodeHeader($,t.byteLength);be.set(t,Be);Be+=t.byteLength}continue}else if(typeof e==="number"){if(Number.isInteger(e)){const t=e>=0;const n=t?v:D;const o=t?e:-e-1;if(o<24){be[Be++]=n<<5|o}else if(o<256){be[Be++]=n<<5|24;be[Be++]=o}else if(o<65536){be[Be++]=n<<5|ce;be[Be++]=o>>8;be[Be++]=o}else if(o<4294967296){be[Be++]=n<<5|le;Se.setUint32(Be,o);Be+=4}else{be[Be++]=n<<5|ue;Se.setBigUint64(Be,BigInt(o));Be+=8}continue}be[Be++]=re<<5|ue;Se.setFloat64(Be,e);Be+=8;continue}else if(typeof e==="bigint"){const t=e>=0;const n=t?v:D;const o=t?e:-e-BigInt(1);const i=Number(o);if(i<24){be[Be++]=n<<5|i}else if(i<256){be[Be++]=n<<5|24;be[Be++]=i}else if(i<65536){be[Be++]=n<<5|ce;be[Be++]=i>>8;be[Be++]=i&255}else if(i<4294967296){be[Be++]=n<<5|le;Se.setUint32(Be,i);Be+=4}else if(o<BigInt("18446744073709551616")){be[Be++]=n<<5|ue;Se.setBigUint64(Be,o);Be+=8}else{const e=o.toString(2);const n=new Uint8Array(Math.ceil(e.length/8));let i=o;let c=0;while(n.byteLength-++c>=0){n[n.byteLength-c]=Number(i&BigInt(255));i>>=BigInt(8)}ensureSpace(n.byteLength*2);be[Be++]=t?194:195;if(Ce){encodeHeader(k,Buffer.byteLength(n))}else{encodeHeader(k,n.byteLength)}be.set(n,Be);Be+=n.byteLength}continue}else if(e===null){be[Be++]=re<<5|oe;continue}else if(typeof e==="boolean"){be[Be++]=re<<5|(e?se:ne);continue}else if(typeof e==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(e)){for(let n=e.length-1;n>=0;--n){t.push(e[n])}encodeHeader(V,e.length);continue}else if(typeof e.byteLength==="number"){ensureSpace(e.length*2);encodeHeader(k,e.length);be.set(e,Be);Be+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof o.NumericValue){const n=e.string.indexOf(".");const o=n===-1?0:n-e.string.length+1;const i=BigInt(e.string.replace(".",""));be[Be++]=196;t.push(i);t.push(o);encodeHeader(V,2);continue}if(e[pe]){if("tag"in e&&"value"in e){t.push(e.value);encodeHeader(te,e.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e))}}const n=Object.keys(e);for(let o=n.length-1;o>=0;--o){const i=n[o];t.push(e[i]);t.push(i)}encodeHeader(ee,n.length);continue}throw new Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}const we={deserialize(e){setPayload(e);return decode(0,e.length)},serialize(e){try{encode(e);return toUint8Array()}catch(e){toUint8Array();throw e}},resizeEncodingBuffer(e){resize(e)}};const parseCborBody=(e,t)=>c.collectBody(e,t).then((async e=>{if(e.length){try{return we.deserialize(e)}catch(n){Object.defineProperty(n,"$responseBodyText",{value:t.utf8Encoder(e)});throw n}}return{}}));const dateToTag=e=>tag({tag:1,value:e.getTime()/1e3});const parseCborErrorBody=async(e,t)=>{const n=await parseCborBody(e,t);n.message=n.message??n.Message;return n};const loadSmithyRpcV2CborErrorCode=(e,t)=>{const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}const n=Object.keys(t).find((e=>e.toLowerCase()==="code"));if(n&&t[n]!==undefined){return sanitizeErrorCode(t[n])}};const checkCborResponse=e=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)}};const buildHttpRpcRequest=async(e,t,n,o,i)=>{const{hostname:c,protocol:y="https",port:C,path:Q}=await e.endpoint();const v={protocol:y,hostname:c,port:C,method:"POST",path:Q.endsWith("/")?Q.slice(0,-1)+n:Q+n,headers:{...t}};if(o!==undefined){v.hostname=o}if(i!==undefined){v.body=i;try{v.headers["content-length"]=String(p.calculateBodyLength(i))}catch(e){}}return new d.HttpRequest(v)};class CborCodec extends c.SerdeContext{createSerializer(){const e=new CborShapeSerializer;e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new CborShapeDeserializer;e.setSerdeContext(this.serdeContext);return e}}class CborShapeSerializer extends c.SerdeContext{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){const n=y.NormalizedSchema.of(e);if(t==null){if(n.isIdempotencyToken()){return o.generateIdempotencyToken()}return t}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??Q.fromBase64)(t)}return t}if(n.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint"){return dateToTag(new Date(Number(t)/1e3|0))}return dateToTag(t)}if(typeof t==="function"||typeof t==="object"){const e=t;if(n.isListSchema()&&Array.isArray(e)){const t=!!n.getMergedTraits().sparse;const o=[];let i=0;for(const c of e){const e=this.serialize(n.getValueSchema(),c);if(e!=null||t){o[i++]=e}}return o}if(e instanceof Date){return dateToTag(e)}const o={};if(n.isMapSchema()){const t=!!n.getMergedTraits().sparse;for(const i of Object.keys(e)){const c=this.serialize(n.getValueSchema(),e[i]);if(c!=null||t){o[i]=c}}}else if(n.isStructSchema()){for(const[t,i]of n.structIterator()){const n=this.serialize(i,e[t]);if(n!=null){o[t]=n}}const t=n.isUnionSchema();if(t&&Array.isArray(e.$unknown)){const[t,n]=e.$unknown;o[t]=n}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){if(!(t in o)){o[t]=this.serialize(15,n)}}}}else if(n.isDocumentSchema()){for(const t of Object.keys(e)){o[t]=this.serialize(n.getValueSchema(),e[t])}}else if(n.isBigDecimalSchema()){return e}return o}return t}flush(){const e=we.serialize(this.value);this.value=undefined;return e}}class CborShapeDeserializer extends c.SerdeContext{read(e,t){const n=we.deserialize(t);return this.readValue(e,n)}readValue(e,t){const n=y.NormalizedSchema.of(e);if(n.isTimestampSchema()){if(typeof t==="number"){return o._parseEpochTimestamp(t)}if(typeof t==="object"){if(t.tag===1&&"value"in t){return o._parseEpochTimestamp(t.value)}}}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??Q.fromBase64)(t)}return t}if(typeof t==="undefined"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol"){return t}else if(typeof t==="object"){if(t===null){return null}if("byteLength"in t){return t}if(t instanceof Date){return t}if(n.isDocumentSchema()){return t}if(n.isListSchema()){const e=[];const o=n.getValueSchema();const i=!!n.getMergedTraits().sparse;for(const n of t){const t=this.readValue(o,n);if(t!=null||i){e.push(t)}}return e}const e={};if(n.isMapSchema()){const o=!!n.getMergedTraits().sparse;const i=n.getValueSchema();for(const n of Object.keys(t)){const c=this.readValue(i,t[n]);if(c!=null||o){e[n]=c}}}else if(n.isStructSchema()){const o=n.isUnionSchema();let i;if(o){i=new Set(Object.keys(t).filter((e=>e!=="__type")))}for(const[c,d]of n.structIterator()){if(o){i.delete(c)}if(t[c]!=null){e[c]=this.readValue(d,t[c])}}if(o&&i?.size===1&&Object.keys(e).length===0){const n=i.values().next().value;e.$unknown=[n,t[n]]}else if(typeof t.__type==="string"){for(const[n,o]of Object.entries(t)){if(!(n in e)){e[n]=o}}}}else if(t instanceof o.NumericValue){return t}return e}else{return t}}}class SmithyRpcV2CborProtocol extends c.RpcProtocol{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(y.deref(e.input)==="unit"){delete o.body;delete o.headers["content-type"]}else{if(!o.body){this.serializer.write(15,{});o.body=this.serializer.flush()}try{o.headers["content-length"]=String(o.body.byteLength)}catch(e){}}const{service:i,operation:c}=C.getSmithyContext(n);const d=`/service/${i}/operation/${c}`;if(o.path.endsWith("/")){o.path+=d.slice(1)}else{o.path+=d}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const c=loadSmithyRpcV2CborErrorCode(n,o)??"Unknown";const d={$metadata:i,$fault:n.statusCode<=500?"client":"server"};let p=this.options.defaultNamespace;if(c.includes("#")){[p]=c.split("#")}const C=this.compositeErrorRegistry;const Q=y.TypeRegistry.for(p);C.copyFrom(Q);let v;try{v=C.getSchema(c)}catch(e){if(o.Message){o.message=o.Message}const t=y.TypeRegistry.for("smithy.ts.sdk.synthetic."+p);C.copyFrom(t);const n=C.getBaseException();if(n){const e=C.getErrorCtor(n);throw Object.assign(new e({name:c}),d,o)}throw Object.assign(new Error(c),d,o)}const D=y.NormalizedSchema.of(v);const k=C.getErrorCtor(v);const $=o.message??o.Message??"Unknown";const V=new k($);const ee={};for(const[e,t]of D.structIterator()){ee[e]=this.deserializer.readValue(t,o[e])}throw Object.assign(V,d,{$fault:D.getMergedTraits().error,message:$},ee)}getDefaultContentType(){return"application/cbor"}}t.CborCodec=CborCodec;t.CborShapeDeserializer=CborShapeDeserializer;t.CborShapeSerializer=CborShapeSerializer;t.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;t.buildHttpRpcRequest=buildHttpRpcRequest;t.cbor=we;t.checkCborResponse=checkCborResponse;t.dateToTag=dateToTag;t.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;t.parseCborBody=parseCborBody;t.parseCborErrorBody=parseCborErrorBody;t.tag=tag;t.tagSymbol=pe},3422:(e,t,n)=>{var o=n(4252);var i=n(6890);var c=n(2430);var d=n(2356);var p=n(8385);var y=n(1577);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return o.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return o.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const n=t.streamCollector(e);return o.Uint8ArrayBlobAdapter.mutate(await n)};function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}class SerdeContext{serdeContext;setSerdeContext(e){this.serdeContext=e}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(e){super();this.options=e;this.compositeErrorRegistry=i.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(t)}}getRequestType(){return d.HttpRequest}getResponseType(){return d.HttpResponse}setSerdeContext(e){this.serdeContext=e;this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(e)}}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol;e.hostname=t.url.hostname;e.port=t.url.port?Number(t.url.port):undefined;e.path=t.url.pathname;e.fragment=t.url.hash||void 0;e.username=t.url.username||void 0;e.password=t.url.password||void 0;if(!e.query){e.query={}}for(const[n,o]of t.url.searchParams.entries()){e.query[n]=o}return e}else{e.protocol=t.protocol;e.hostname=t.hostname;e.port=t.port?Number(t.port):undefined;e.path=t.path;e.query={...t.query};return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix){return}const o=i.NormalizedSchema.of(t.input);const c=i.translateTraits(t.traits??{});if(c.endpoint){let t=c.endpoint?.[0];if(typeof t==="string"){const i=[...o.structIterator()].filter((([,e])=>e.getMergedTraits().hostLabel));for(const[e]of i){const o=n[e];if(typeof o!=="string"){throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`)}t=t.replace(`{${e}}`,o)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){const o=await this.loadEventStreamCapability();return o.serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){const o=await this.loadEventStreamCapability();return o.deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await n.e(579).then(n.t.bind(n,6579,19));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,o,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return e.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o={...t??{}};const c=this.serializer;const p={};const y={};const C=await n.endpoint();const Q=i.NormalizedSchema.of(e?.input);const v=[];const D=[];let k=false;let $;const V=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:p,headers:y,body:undefined});if(C){this.updateServiceEndpoint(V,C);this.setHostPrefix(V,e,o);const t=i.translateTraits(e.traits);if(t.http){V.method=t.http[0];const[e,n]=t.http[1].split("?");if(V.path=="/"){V.path=e}else{V.path+=e}const o=new URLSearchParams(n??"");Object.assign(p,Object.fromEntries(o))}}for(const[e,t]of Q.structIterator()){const n=t.getMergedTraits()??{};const i=o[e];if(i==null&&!t.isIdempotencyToken()){if(n.httpLabel){if(V.path.includes(`{${e}+}`)||V.path.includes(`{${e}}`)){throw new Error(`No value provided for input HTTP label: ${e}.`)}}continue}if(n.httpPayload){const n=t.isStreaming();if(n){const n=t.isStructSchema();if(n){if(o[e]){$=await this.serializeEventStream({eventStream:o[e],requestSchema:Q})}}else{$=i}}else{c.write(t,i);$=c.flush()}delete o[e]}else if(n.httpLabel){c.write(t,i);const n=c.flush();if(V.path.includes(`{${e}+}`)){V.path=V.path.replace(`{${e}+}`,n.split("/").map(extendedEncodeURIComponent).join("/"))}else if(V.path.includes(`{${e}}`)){V.path=V.path.replace(`{${e}}`,extendedEncodeURIComponent(n))}delete o[e]}else if(n.httpHeader){c.write(t,i);y[n.httpHeader.toLowerCase()]=String(c.flush());delete o[e]}else if(typeof n.httpPrefixHeaders==="string"){for(const[e,o]of Object.entries(i)){const i=n.httpPrefixHeaders+e;c.write([t.getValueSchema(),{httpHeader:i}],o);y[i.toLowerCase()]=c.flush()}delete o[e]}else if(n.httpQuery||n.httpQueryParams){this.serializeQuery(t,i,p);delete o[e]}else{k=true;v.push(e);D.push(t)}}if(k&&o){const[e,t]=(Q.getName(true)??"#Unknown").split("#");const n=Q.getSchema()[6];const i=[3,e,t,Q.getMergedTraits(),v,D,undefined];if(n){i[6]=n}else{i.pop()}c.write(i,o);$=c.flush()}V.headers=y;V.query=p;V.body=$;return V}serializeQuery(e,t,n){const o=this.serializer;const i=e.getMergedTraits();if(i.httpQueryParams){for(const[o,c]of Object.entries(t)){if(!(o in n)){const t=e.getValueSchema();Object.assign(t.getMergedTraits(),{...i,httpQuery:o,httpQueryParams:undefined});this.serializeQuery(t,c,n)}}return}if(e.isListSchema()){const c=!!e.getMergedTraits().sparse;const d=[];for(const n of t){o.write([e.getValueSchema(),i],n);const t=o.flush();if(c||t!==undefined){d.push(t)}}n[i.httpQuery]=d}else{o.write([e,i],t);n[i.httpQuery]=o.flush()}}async deserializeResponse(e,t,n){const o=this.deserializer;const c=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const p=await this.deserializeHttpMessage(c,t,n,d);if(p.length){const e=await collectBody(n.body,t);if(e.byteLength>0){const t=await o.read(c,e);for(const e of p){if(t[e]!=null){d[e]=t[e]}}}}else if(p.discardResponseBody){await collectBody(n.body,t)}d.$metadata=this.deserializeMetadata(n);return d}async deserializeHttpMessage(e,t,n,d,p){let y;if(d instanceof Set){y=p}else{y=d}let C=true;const Q=this.deserializer;const v=i.NormalizedSchema.of(e);const D=[];for(const[e,i]of v.structIterator()){const d=i.getMemberTraits();if(d.httpPayload){C=false;const c=i.isStreaming();if(c){const t=i.isStructSchema();if(t){y[e]=await this.deserializeEventStream({response:n,responseSchema:v})}else{y[e]=o.sdkStreamMixin(n.body)}}else if(n.body){const o=await collectBody(n.body,t);if(o.byteLength>0){y[e]=await Q.read(i,o)}}}else if(d.httpHeader){const t=String(d.httpHeader).toLowerCase();const o=n.headers[t];if(null!=o){if(i.isListSchema()){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;let d;if(n.isTimestampSchema()&&n.getSchema()===4){d=c.splitEvery(o,",",2)}else{d=c.splitHeader(o)}const p=[];for(const e of d){p.push(await Q.read(n,e.trim()))}y[e]=p}else{y[e]=await Q.read(i,o)}}}else if(d.httpPrefixHeaders!==undefined){y[e]={};for(const[t,o]of Object.entries(n.headers)){if(t.startsWith(d.httpPrefixHeaders)){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;y[e][t.slice(d.httpPrefixHeaders.length)]=await Q.read(n,o)}}}else if(d.httpResponseCode){y[e]=n.statusCode}else{D.push(e)}}D.discardResponseBody=C;return D}}class RpcProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o=this.serializer;const c={};const p={};const y=await n.endpoint();const C=i.NormalizedSchema.of(e?.input);const Q=C.getSchema();let v;const D=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:c,headers:p,body:undefined});if(y){this.updateServiceEndpoint(D,y);this.setHostPrefix(D,e,t)}const k={...t};if(t){const e=C.getEventStreamMember();if(e){if(k[e]){const t={};for(const[n,i]of C.structIterator()){if(n!==e&&k[n]){o.write(i,k[n]);t[n]=o.flush()}}v=await this.serializeEventStream({eventStream:k[e],requestSchema:C,initialRequest:t})}}else{o.write(Q,k);v=o.flush()}}D.headers=p;D.query=c;D.body=v;D.method="POST";return D}async deserializeResponse(e,t,n){const o=this.deserializer;const c=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const p=c.getEventStreamMember();if(p){d[p]=await this.deserializeEventStream({response:n,responseSchema:c,initialResponseContainer:d})}else{const e=await collectBody(n.body,t);if(e.byteLength>0){Object.assign(d,await o.read(c,e))}}d.$metadata=this.deserializeMetadata(n);return d}}const resolvedPath=(e,t,n,o,i,c)=>{if(t!=null&&t[n]!==undefined){const t=o();if(t==null||t.length<=0){throw new Error("Empty value provided for input HTTP label: "+n+".")}e=e.replace(i,c?t.split("/").map((e=>extendedEncodeURIComponent(e))).join("/"):extendedEncodeURIComponent(t))}else{throw new Error("No value provided for input HTTP label: "+n+".")}return e};function requestBuilder(e,t){return new RequestBuilder(e,t)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,t){this.input=e;this.context=t}async build(){const{hostname:e,protocol:t="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(const e of this.resolvePathStack){e(this.path)}return new d.HttpRequest({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){this.hostname=e;return this}bp(e){this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e}));return this}p(e,t,n,o){this.resolvePathStack.push((i=>{this.path=resolvedPath(i,this.input,e,t,n,o)}));return this}h(e){this.headers=e;return this}q(e){this.query=e;return this}b(e){this.body=e;return this}m(e){this.method=e;return this}}function determineTimestampFormat(e,t){if(t.timestampFormat.useTrait){if(e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7)){return e.getSchema()}}const{httpLabel:n,httpPrefixHeaders:o,httpHeader:i,httpQuery:c}=e.getMergedTraits();const d=t.httpBindings?typeof o==="string"||Boolean(i)?6:Boolean(c)||Boolean(n)?5:undefined:undefined;return d??t.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(e){super();this.settings=e}read(e,t){const n=i.NormalizedSchema.of(e);if(n.isListSchema()){return c.splitHeader(t).map((e=>this.read(n.getValueSchema(),e)))}if(n.isBlobSchema()){return(this.serdeContext?.base64Decoder??p.fromBase64)(t)}if(n.isTimestampSchema()){const e=determineTimestampFormat(n,this.settings);switch(e){case 5:return c._parseRfc3339DateTimeWithOffset(t);case 6:return c._parseRfc7231DateTime(t);case 7:return c._parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(n.isStringSchema()){const e=n.getMergedTraits().mediaType;let o=t;if(e){if(n.getMergedTraits().httpHeader){o=this.base64ToUtf8(o)}const t=e==="application/json"||e.endsWith("+json");if(t){o=c.LazyJsonString.from(o)}return o}}if(n.isNumericSchema()){return Number(t)}if(n.isBigIntegerSchema()){return BigInt(t)}if(n.isBigDecimalSchema()){return new c.NumericValue(t,"bigDecimal")}if(n.isBooleanSchema()){return String(t).toLowerCase()==="true"}return t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??y.toUtf8)((this.serdeContext?.base64Decoder??p.fromBase64)(e))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(e,t){super();this.codecDeserializer=e;this.stringDeserializer=new FromStringShapeDeserializer(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e);this.codecDeserializer.setSerdeContext(e);this.serdeContext=e}read(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();const c=this.serdeContext?.utf8Encoder??y.toUtf8;if(o.httpHeader||o.httpResponseCode){return this.stringDeserializer.read(n,c(t))}if(o.httpPayload){if(n.isBlobSchema()){const e=this.serdeContext?.utf8Decoder??y.fromUtf8;if(typeof t==="string"){return e(t)}return t}else if(n.isStringSchema()){if("byteLength"in t){return c(t)}return t}}return this.codecDeserializer.read(n,t)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);switch(typeof t){case"object":if(t===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(t instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(true)}`)}const e=determineTimestampFormat(n,this.settings);switch(e){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=c.dateToUtcString(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t);this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in t){this.stringBuffer=(this.serdeContext?.base64Encoder??p.toBase64)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e="";for(const o of t){this.write([n.getValueSchema(),n.getMergedTraits()],o);const t=this.flush();const i=n.getValueSchema().isTimestampSchema()?t:c.quoteHeader(t);if(e!==""){e+=", "}e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=n.getMergedTraits().mediaType;let o=t;if(e){const t=e==="application/json"||e.endsWith("+json");if(t){o=c.LazyJsonString.from(o)}if(n.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??p.toBase64)(o.toString());return}}this.stringBuffer=t;break;default:if(n.isIdempotencyToken()){this.stringBuffer=c.generateIdempotencyToken()}else{this.stringBuffer=String(t)}}}flush(){const e=this.stringBuffer;this.stringBuffer="";return e}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new ToStringShapeSerializer(t)){this.codecSerializer=e;this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e);this.stringSerializer.setSerdeContext(e)}write(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,t);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==undefined){const e=this.buffer;this.buffer=undefined;return e}return this.codecSerializer.flush()}}t.FromStringShapeDeserializer=FromStringShapeDeserializer;t.HttpBindingProtocol=HttpBindingProtocol;t.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;t.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;t.HttpProtocol=HttpProtocol;t.RequestBuilder=RequestBuilder;t.RpcProtocol=RpcProtocol;t.SerdeContext=SerdeContext;t.ToStringShapeSerializer=ToStringShapeSerializer;t.collectBody=collectBody;t.determineTimestampFormat=determineTimestampFormat;t.extendedEncodeURIComponent=extendedEncodeURIComponent;t.requestBuilder=requestBuilder;t.resolvedPath=resolvedPath},6890:(e,t,n)=>{var o=n(2356);var i=n(6324);const deref=e=>{if(typeof e==="function"){return e()}return e};const operation=(e,t,n,o,i)=>({name:t,namespace:e,traits:n,input:o,output:i});const schemaDeserializationMiddleware=e=>(t,n)=>async c=>{const{response:d}=await t(c);const{operationSchema:p}=i.getSmithyContext(n);const[,y,C,Q,v,D]=p??[];try{const t=await e.protocol.deserializeResponse(operation(y,C,Q,v,D),{...e,...n},d);return{response:d,output:t}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!n.logger||n.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{n.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const schemaSerializationMiddleware=e=>(t,n)=>async o=>{const{operationSchema:c}=i.getSmithyContext(n);const[,d,p,y,C,Q]=c??[];const v=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;const D=await e.protocol.serializeRequest(operation(d,p,y,C,Q),o.input,{...e,...n,endpoint:v});return t({...o,request:D})};const c={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const d={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(e){return{applyToStack:t=>{t.add(schemaSerializationMiddleware(e),d);t.add(schemaDeserializationMiddleware(e),c);e.protocol.setSerdeContext(e)}}}class Schema{name;namespace;traits;static assign(e,t){const n=Object.assign(e,t);return n}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(e,t,n,o)=>Schema.assign(new ListSchema,{name:t,namespace:e,traits:n,valueSchema:o});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(e,t,n,o,i)=>Schema.assign(new MapSchema,{name:t,namespace:e,traits:n,keySchema:o,valueSchema:i});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(e,t,n,o,i)=>Schema.assign(new OperationSchema,{name:t,namespace:e,traits:n,input:o,output:i});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(e,t,n,o,i)=>Schema.assign(new StructureSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(e,t,n,o,i,c)=>Schema.assign(new ErrorSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i,ctor:null});function translateTraits(e){if(typeof e==="object"){return e}e=e|0;const t={};let n=0;for(const o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((e>>n++&1)===1){t[o]=1}}return t}const p={it:Symbol.for("@smithy/nor-struct-it")};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e;this.memberName=t;const n=[];let o=e;let i=e;this._isMemberSchema=false;while(isMemberSchema(o)){n.push(o[1]);o=o[0];i=deref(o);this._isMemberSchema=true}if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,translateTraits(t))}}else{this.memberTraits=0}if(i instanceof NormalizedSchema){const e=this.memberTraits;Object.assign(this,i);this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=t??i.memberName;return}this.schema=deref(i);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(i);this.traits=0}if(this._isMemberSchema&&!t){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}static of(e){const t=deref(e);if(t instanceof NormalizedSchema){return t}if(isMemberSchema(t)){const[n,o]=t;if(n instanceof NormalizedSchema){Object.assign(n.getMergedTraits(),translateTraits(o));return n}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new NormalizedSchema(t)}getSchema(){const e=this.schema;if(Array.isArray(e)&&e[0]===0){return e[4]}return e}getName(e=false){const{name:t}=this;const n=!e&&t&&t.includes("#");return n?t.split("#")[1]:t||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e==="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e==="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}const t=e[0];return t===3||t===-3||t===4}isUnionSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}return e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e==="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const n=this.getSchema();const o=e?15:n[4]??0;return member([o,0],"key")}getValueSchema(){const e=this.getSchema();const[t,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const i=typeof e==="number"?63&e:e&&typeof e==="object"&&(n||o)?e[3+e[0]]:t?15:void 0;if(i!=null){return member([i,0],n?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const n=t[4].indexOf(e);const o=t[5][n];return member(isMemberSchema(o)?o:[o,0],e)}if(this.isDocumentSchema()){return member([15,0],e)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,n]of this.structIterator()){e[t]=n}}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,t]of this.structIterator()){if(t.isStreaming()&&t.isStructSchema()){return e}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const e=this.getSchema();const t=e[4].length;let n=e[p.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let o=0;o<t;++o){const t=e[4][o];const i=member([e[5][o],0],t);yield n[o]=[t,i]}e[p.it]=n}}function member(e,t){if(e instanceof NormalizedSchema){return Object.assign(e,{memberName:t,_isMemberSchema:true})}const n=NormalizedSchema;return new n(e,t)}const isMemberSchema=e=>Array.isArray(e)&&e.length===2;const isStaticSchema=e=>Array.isArray(e)&&e.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:o,schemaRef:n});const simAdapter=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:n,schemaRef:o});const y={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e;this.schemas=t;this.exceptions=n}static for(e){if(!TypeRegistry.registries.has(e)){TypeRegistry.registries.set(e,new TypeRegistry(e))}return TypeRegistry.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:n}=this;for(const[n,o]of e.schemas){if(!t.has(n)){t.set(n,o)}}for(const[t,o]of e.exceptions){if(!n.has(t)){n.set(t,o)}}}register(e,t){const n=this.normalizeShapeId(e);for(const e of[this,TypeRegistry.for(n.split("#")[0])]){e.schemas.set(n,t)}}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const n=e;const o=n[1];for(const e of[this,TypeRegistry.for(o)]){e.schemas.set(o+"#"+n[2],n);e.exceptions.set(n,t)}}getErrorCtor(e){const t=e;if(this.exceptions.has(t)){return this.exceptions.get(t)}const n=TypeRegistry.for(t[1]);return n.exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys()){if(Array.isArray(e)){const[,t,n]=e;const o=t+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException")){return e}}}return undefined}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(e){if(e.includes("#")){return e}return this.namespace+"#"+e}}t.ErrorSchema=ErrorSchema;t.ListSchema=ListSchema;t.MapSchema=MapSchema;t.NormalizedSchema=NormalizedSchema;t.OperationSchema=OperationSchema;t.SCHEMA=y;t.Schema=Schema;t.SimpleSchema=SimpleSchema;t.StructureSchema=StructureSchema;t.TypeRegistry=TypeRegistry;t.deref=deref;t.deserializerMiddlewareOption=c;t.error=error;t.getSchemaSerdePlugin=getSchemaSerdePlugin;t.isStaticSchema=isStaticSchema;t.list=list;t.map=map;t.op=op;t.operation=operation;t.serializerMiddlewareOption=d;t.sim=sim;t.simAdapter=simAdapter;t.struct=struct;t.translateTraits=translateTraits},2430:(e,t,n)=>{var o=n(266);const copyDocumentWithTransform=(e,t,n=e=>e)=>e;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){v.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const t=e.toLowerCase();if(t==="false"||t==="true"){v.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(t==="false"){return false}if(t==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e)){v.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return t}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};const i=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const t=expectNumber(e);if(t!==undefined&&!Number.isNaN(t)&&t!==Infinity&&t!==-Infinity){if(Math.abs(t)>i){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return t};const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};const c=expectLong;const expectInt32=e=>expectSizedInt(e,32);const expectShort=e=>expectSizedInt(e,16);const expectByte=e=>expectSizedInt(e,8);const expectSizedInt=(e,t)=>{const n=expectLong(e);if(n!==undefined&&castInt(n,t)!==n){throw new TypeError(`Expected ${t}-bit integer, got ${e}`)}return n};const castInt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){v.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};const expectUnion=e=>{if(e===null||e===undefined){return undefined}const t=expectObject(e);const n=Object.entries(t).filter((([,e])=>e!=null)).map((([e])=>e));if(n.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(n.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`)}return t};const strictParseDouble=e=>{if(typeof e=="string"){return expectNumber(parseNumber(e))}return expectNumber(e)};const d=strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return expectFloat32(parseNumber(e))}return expectFloat32(e)};const p=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(p);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectNumber(e)};const y=limitedParseDouble;const C=limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectFloat32(e)};const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return expectLong(parseNumber(e))}return expectLong(e)};const Q=strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return expectInt32(parseNumber(e))}return expectInt32(e)};const strictParseShort=e=>{if(typeof e==="string"){return expectShort(parseNumber(e))}return expectShort(e)};const strictParseByte=e=>{if(typeof e==="string"){return expectByte(parseNumber(e))}return expectByte(e)};const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");const v={warn:console.warn};const D=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const n=e.getUTCMonth();const o=e.getUTCDay();const i=e.getUTCDate();const c=e.getUTCHours();const d=e.getUTCMinutes();const p=e.getUTCSeconds();const y=i<10?`0${i}`:`${i}`;const C=c<10?`0${c}`:`${c}`;const Q=d<10?`0${d}`:`${d}`;const v=p<10?`0${p}`:`${p}`;return`${D[o]}, ${y} ${k[n]} ${t} ${C}:${Q}:${v} GMT`}const $=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=$.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,c,d,p,y,C]=t;const Q=strictParseShort(stripLeadingZeroes(o));const v=parseDateValue(i,"month",1,12);const D=parseDateValue(c,"day",1,31);return buildDate(Q,v,D,{hours:d,minutes:p,seconds:y,fractionalMilliseconds:C})};const V=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=V.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,c,d,p,y,C,Q]=t;const v=strictParseShort(stripLeadingZeroes(o));const D=parseDateValue(i,"month",1,12);const k=parseDateValue(c,"day",1,31);const $=buildDate(v,D,k,{hours:d,minutes:p,seconds:y,fractionalMilliseconds:C});if(Q.toUpperCase()!="Z"){$.setTime($.getTime()-parseOffsetToMilliseconds(Q))}return $};const ee=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const te=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const re=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=ee.exec(e);if(t){const[e,n,o,i,c,d,p,y]=t;return buildDate(strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:c,minutes:d,seconds:p,fractionalMilliseconds:y})}t=te.exec(e);if(t){const[e,n,o,i,c,d,p,y]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(i),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:c,minutes:d,seconds:p,fractionalMilliseconds:y}))}t=re.exec(e);if(t){const[e,n,o,i,c,d,p,y]=t;return buildDate(strictParseShort(stripLeadingZeroes(y)),parseMonthByShortName(n),parseDateValue(o.trimLeft(),"day",1,31),{hours:i,minutes:c,seconds:d,fractionalMilliseconds:p})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=strictParseDouble(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};const buildDate=(e,t,n,o)=>{const i=t-1;validateDayOfMonth(e,i,n);return new Date(Date.UTC(e,i,n,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const n=Math.floor(t/100)*100+strictParseShort(stripLeadingZeroes(e));if(n<t){return n+100}return n};const ne=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>ne){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=k.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const se=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,n)=>{let o=se[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${k[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,o)=>{const i=strictParseByte(stripLeadingZeroes(e));if(i<n||i>o){throw new TypeError(`${t} must be between ${n} and ${o}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return strictParseFloat32("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let n=1;if(t=="+"){n=1}else if(t=="-"){n=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const o=Number(e.substring(1,3));const i=Number(e.substring(4,6));return n*(o*60+i)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)};const oe=function LazyJsonString(e){const t=Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}});return t};oe.from=e=>{if(e&&typeof e==="object"&&(e instanceof oe||"deserializeJSON"in e)){return e}else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype){return oe(String(e))}return oe(JSON.stringify(e))};oe.fromObject=oe.from;function quoteHeader(e){if(e.includes(",")||e.includes('"')){e=`"${e.replace(/"/g,'\\"')}"`}return e}const ie=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const ae=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const ce=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const le=`(\\d?\\d)`;const ue=`(\\d{4})`;const de=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const pe=new RegExp(`^${ie}, ${le} ${ae} ${ue} ${ce} GMT$`);const Ae=new RegExp(`^${ie}, ${le}-${ae}-(\\d\\d) ${ce} GMT$`);const me=new RegExp(`^${ie} ${ae} ( [1-9]|\\d\\d) ${ce} ${ue}$`);const ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=e=>{if(e==null){return void 0}let t=NaN;if(typeof e==="number"){t=e}else if(typeof e==="string"){if(!/^-?\d*\.?\d+$/.test(e)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}t=Number.parseFloat(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}if(isNaN(t)||Math.abs(t)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(t*1e3))};const _parseRfc3339DateTimeWithOffset=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const t=de.exec(e);if(!t){throw new TypeError(`Invalid RFC3339 timestamp format ${e}`)}const[,n,o,i,c,d,p,,y,C]=t;range(o,1,12);range(i,1,31);range(c,0,23);range(d,0,59);range(p,0,60);const Q=new Date(Date.UTC(Number(n),Number(o)-1,Number(i),Number(c),Number(d),Number(p),Number(y)?Math.round(parseFloat(`0.${y}`)*1e3):0));Q.setUTCFullYear(Number(n));if(C.toUpperCase()!="Z"){const[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(C)||[void 0,"+",0,0];const o=e==="-"?1:-1;Q.setTime(Q.getTime()+o*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return Q};const _parseRfc7231DateTime=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let t;let n;let o;let i;let c;let d;let p;let y;if(y=pe.exec(e)){[,t,n,o,i,c,d,p]=y}else if(y=Ae.exec(e)){[,t,n,o,i,c,d,p]=y;o=(Number(o)+1900).toString()}else if(y=me.exec(e)){[,n,t,i,c,d,p,o]=y}if(o&&d){const e=Date.UTC(Number(o),ge.indexOf(n),Number(t),Number(i),Number(c),Number(d),p?Math.round(parseFloat(`0.${p}`)*1e3):0);range(t,1,31);range(i,0,23);range(c,0,59);range(d,0,60);const y=new Date(e);y.setUTCFullYear(Number(o));return y}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function range(e,t,n){const o=Number(e);if(o<t||o>n){throw new Error(`Value ${o} out of range [${t}, ${n}]`)}}function splitEvery(e,t,n){if(n<=0||!Number.isInteger(n)){throw new Error("Invalid number of delimiters ("+n+") for splitEvery.")}const o=e.split(t);if(n===1){return o}const i=[];let c="";for(let e=0;e<o.length;e++){if(c===""){c=o[e]}else{c+=t+o[e]}if((e+1)%n===0){i.push(c);c=""}}if(c!==""){i.push(c)}return i}const splitHeader=e=>{const t=e.length;const n=[];let o=false;let i=undefined;let c=0;for(let d=0;d<t;++d){const t=e[d];switch(t){case`"`:if(i!=="\\"){o=!o}break;case",":if(!o){n.push(e.slice(c,d));c=d+1}break}i=t}n.push(e.slice(c));return n.map((e=>{e=e.trim();const t=e.length;if(t<2){return e}if(e[0]===`"`&&e[t-1]===`"`){e=e.slice(1,t-1)}return e.replace(/\\"/g,'"')}))};const fe=/^-?\d*(\.\d+)?$/;class NumericValue{string;type;constructor(e,t){this.string=e;this.type=t;if(!fe.test(e)){throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!=="object"){return false}const t=e;return NumericValue.prototype.isPrototypeOf(e)||t.type==="bigDecimal"&&fe.test(t.string)}}function nv(e){return new NumericValue(String(e),"bigDecimal")}t.generateIdempotencyToken=o.v4;t.LazyJsonString=oe;t.NumericValue=NumericValue;t._parseEpochTimestamp=_parseEpochTimestamp;t._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;t._parseRfc7231DateTime=_parseRfc7231DateTime;t.copyDocumentWithTransform=copyDocumentWithTransform;t.dateToUtcString=dateToUtcString;t.expectBoolean=expectBoolean;t.expectByte=expectByte;t.expectFloat32=expectFloat32;t.expectInt=c;t.expectInt32=expectInt32;t.expectLong=expectLong;t.expectNonNull=expectNonNull;t.expectNumber=expectNumber;t.expectObject=expectObject;t.expectShort=expectShort;t.expectString=expectString;t.expectUnion=expectUnion;t.handleFloat=y;t.limitedParseDouble=limitedParseDouble;t.limitedParseFloat=C;t.limitedParseFloat32=limitedParseFloat32;t.logger=v;t.nv=nv;t.parseBoolean=parseBoolean;t.parseEpochTimestamp=parseEpochTimestamp;t.parseRfc3339DateTime=parseRfc3339DateTime;t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;t.parseRfc7231DateTime=parseRfc7231DateTime;t.quoteHeader=quoteHeader;t.splitEvery=splitEvery;t.splitHeader=splitHeader;t.strictParseByte=strictParseByte;t.strictParseDouble=strictParseDouble;t.strictParseFloat=d;t.strictParseFloat32=strictParseFloat32;t.strictParseInt=Q;t.strictParseInt32=strictParseInt32;t.strictParseLong=strictParseLong;t.strictParseShort=strictParseShort},7809:(e,t,n)=>{var o=n(2356);var i=n(8256);var c=n(8385);function createRequest(e,t){return new Request(e,t)}function requestTimeout(e=0){return new Promise(((t,n)=>{if(e){setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError";n(t)}),e)}}))}const d={supported:undefined};class FetchHttpHandler{config;configProvider;static create(e){if(typeof e?.handle==="function"){return e}return new FetchHttpHandler(e)}constructor(e){if(typeof e==="function"){this.configProvider=e().then((e=>e||{}))}else{this.config=e??{};this.configProvider=Promise.resolve(this.config)}if(d.supported===undefined){d.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in createRequest("https://[::1]"))}}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}const c=n??this.config.requestTimeout;const p=this.config.keepAlive===true;const y=this.config.credentials;if(t?.aborted){const e=new Error("Request aborted");e.name="AbortError";return Promise.reject(e)}let C=e.path;const Q=i.buildQueryString(e.query||{});if(Q){C+=`?${Q}`}if(e.fragment){C+=`#${e.fragment}`}let v="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";v=`${t}:${n}@`}const{port:D,method:k}=e;const $=`${e.protocol}//${v}${e.hostname}${D?`:${D}`:""}${C}`;const V=k==="GET"||k==="HEAD"?undefined:e.body;const ee={body:V,headers:new Headers(e.headers),method:k,credentials:y};if(this.config?.cache){ee.cache=this.config.cache}if(V){ee.duplex="half"}if(typeof AbortController!=="undefined"){ee.signal=t}if(d.supported){ee.keepalive=p}if(typeof this.config.requestInit==="function"){Object.assign(ee,this.config.requestInit(e))}let removeSignalEventListener=()=>{};const te=createRequest($,ee);const re=[fetch(te).then((e=>{const t=e.headers;const n={};for(const e of t.entries()){n[e[0]]=e[1]}const i=e.body!=undefined;if(!i){return e.blob().then((t=>({response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:t})})))}return{response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}})),requestTimeout(c)];if(t){re.push(new Promise(((e,n)=>{const onAbort=()=>{const e=new Error("Request aborted");e.name="AbortError";n(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});removeSignalEventListener=()=>e.removeEventListener("abort",onAbort)}else{t.onabort=onAbort}})))}return Promise.race(re).finally(removeSignalEventListener)}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>{n[e]=t;return n}))}httpHandlerConfigs(){return this.config??{}}}const streamCollector=async e=>{if(typeof Blob==="function"&&e instanceof Blob||e.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==undefined){return new Uint8Array(await e.arrayBuffer())}return collectBlob(e)}return collectStream(e)};async function collectBlob(e){const t=await readToBase64(e);const n=c.fromBase64(t);return new Uint8Array(n)}async function collectStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:c}=await n.read();if(c){t.push(c);i+=c.length}o=e}const c=new Uint8Array(i);let d=0;for(const e of t){c.set(e,d);d+=e.length}return c}function readToBase64(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{if(o.readyState!==2){return n(new Error("Reader aborted too early"))}const e=o.result??"";const i=e.indexOf(",");const c=i>-1?i+1:e.length;t(e.substring(c))};o.onabort=()=>n(new Error("Read aborted"));o.onerror=()=>n(o.error);o.readAsDataURL(e)}))}t.FetchHttpHandler=FetchHttpHandler;t.keepAliveSupport=d;t.streamCollector=streamCollector},2711:(e,t,n)=>{var o=n(4151);var i=n(1577);var c=n(181);var d=n(6982);class Hash{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update(i.toUint8Array(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?d.createHmac(this.algorithmIdentifier,castSourceData(this.secret)):d.createHash(this.algorithmIdentifier)}}function castSourceData(e,t){if(c.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return o.fromString(e,t)}if(ArrayBuffer.isView(e)){return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return o.fromArrayBuffer(e)}t.Hash=Hash},6130:(e,t)=>{const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},7212:(e,t,n)=>{var o=n(2356);const i="content-length";function contentLengthMiddleware(e){return t=>async n=>{const c=n.request;if(o.HttpRequest.isInstance(c)){const{body:t,headers:n}=c;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(i)===-1){try{const n=e(t);c.headers={...c.headers,[i]:String(n)}}catch(e){}}}return t({...n,request:c})}}const c={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:t=>{t.add(contentLengthMiddleware(e.bodyLengthChecker),c)}});t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions=c;t.getContentLengthPlugin=getContentLengthPlugin},6041:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromConfig=void 0;const o=n(5704);const i=n(8008);const getEndpointFromConfig=async e=>(0,o.loadConfig)((0,i.getEndpointUrlConfig)(e??""))();t.getEndpointFromConfig=getEndpointFromConfig},8008:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrlConfig=void 0;const o=n(4964);const i="AWS_ENDPOINT_URL";const c="endpoint_url";const getEndpointUrlConfig=e=>({environmentVariableSelector:t=>{const n=e.split(" ").map((e=>e.toUpperCase()));const o=t[[i,...n].join("_")];if(o)return o;const c=t[i];if(c)return c;return undefined},configFileSelector:(t,n)=>{if(n&&t.services){const i=n[["services",t.services].join(o.CONFIG_PREFIX_SEPARATOR)];if(i){const t=e.split(" ").map((e=>e.toLowerCase()));const n=i[[t.join("_"),c].join(o.CONFIG_PREFIX_SEPARATOR)];if(n)return n}}const i=t[c];if(i)return i;return undefined},default:undefined});t.getEndpointUrlConfig=getEndpointUrlConfig},99:(e,t,n)=>{var o=n(6041);var i=n(4494);var c=n(402);var d=n(6324);var p=n(3255);const resolveParamsForS3=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket==="string"){e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(t)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};const y=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const C=/(\d+\.){3}\d+/;const Q=/\.\./;const isDnsCompatibleBucketName=e=>y.test(e)&&!C.test(e)&&!Q.test(e);const isArnBucketName=e=>{const[t,n,o,,,i]=e.split(":");const c=t==="arn"&&e.split(":").length>=6;const d=Boolean(c&&n&&o&&i);if(c&&!d){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return d};const createConfigValueProvider=(e,t,n,o=false)=>{const configProvider=async()=>{let i;if(o){const o=n.clientContextParams;const c=o?.[e];i=c??n[e]??n[t]}else{i=n[e]??n[t]}if(typeof i==="function"){return i()}return i};if(e==="credentialScope"||t==="CredentialScope"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.credentialScope??e?.CredentialScope;return t}}if(e==="accountId"||t==="AccountId"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.accountId??e?.AccountId;return t}}if(e==="endpoint"||t==="endpoint"){return async()=>{if(n.isCustomEndpoint===false){return undefined}const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:n,port:o,path:i}=e;return`${t}//${n}${o?":"+o:""}${i}`}}return e}}return configProvider};const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){return i.parseUrl(e.url)}return e}return i.parseUrl(e)};const getEndpointFromInstructions=async(e,t,n,i)=>{if(!n.isCustomEndpoint){let e;if(n.serviceConfiguredEndpoint){e=await n.serviceConfiguredEndpoint()}else{e=await o.getEndpointFromConfig(n.serviceId)}if(e){n.endpoint=()=>Promise.resolve(toEndpointV1(e));n.isCustomEndpoint=true}}const c=await resolveParams(e,t,n);if(typeof n.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const d=n.endpointProvider(c,i);return d};const resolveParams=async(e,t,n)=>{const o={};const i=t?.getEndpointParameterInstructions?.()||{};for(const[t,c]of Object.entries(i)){switch(c.type){case"staticContextParams":o[t]=c.value;break;case"contextParams":o[t]=e[c.name];break;case"clientContextParams":case"builtInParams":o[t]=await createConfigValueProvider(c.name,t,n,c.type!=="builtInParams")();break;case"operationContextParams":o[t]=c.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(c))}}if(Object.keys(i).length===0){Object.assign(o,n)}if(String(n.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(o)}return o};const endpointMiddleware=({config:e,instructions:t})=>(n,o)=>async i=>{if(e.isCustomEndpoint){c.setFeature(o,"ENDPOINT_OVERRIDE","N")}const p=await getEndpointFromInstructions(i.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=p;o.authSchemes=p.properties?.authSchemes;const y=o.authSchemes?.[0];if(y){o["signing_region"]=y.signingRegion;o["signing_service"]=y.signingName;const e=d.getSmithyContext(o);const t=e?.selectedHttpAuthScheme?.httpAuthOption;if(t){t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:y.signingRegion,signingRegion:y.signingRegion,signing_service:y.signingName,signingName:y.signingName,signingRegionSet:y.signingRegionSet},y.properties)}}return n({...i})};const v={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:p.serializerMiddlewareOption.name};const getEndpointPlugin=(e,t)=>({applyToStack:n=>{n.addRelativeTo(endpointMiddleware({config:e,instructions:t}),v)}});const resolveEndpointConfig=e=>{const t=e.tls??true;const{endpoint:n,useDualstackEndpoint:i,useFipsEndpoint:c}=e;const p=n!=null?async()=>toEndpointV1(await d.normalizeProvider(n)()):undefined;const y=!!n;const C=Object.assign(e,{endpoint:p,tls:t,isCustomEndpoint:y,useDualstackEndpoint:d.normalizeProvider(i??false),useFipsEndpoint:d.normalizeProvider(c??false)});let Q=undefined;C.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!Q){Q=o.getEndpointFromConfig(e.serviceId)}return Q};return C};const resolveEndpointRequiredConfig=e=>{const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return e};t.endpointMiddleware=endpointMiddleware;t.endpointMiddlewareOptions=v;t.getEndpointFromInstructions=getEndpointFromInstructions;t.getEndpointPlugin=getEndpointPlugin;t.resolveEndpointConfig=resolveEndpointConfig;t.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;t.resolveParams=resolveParams;t.toEndpointV1=toEndpointV1},9618:(e,t,n)=>{var o=n(5518);var i=n(2356);var c=n(2058);var d=n(266);var p=n(6324);var y=n(1411);var C=n(9831);const getDefaultRetryQuota=(e,t)=>{const n=e;const i=o.NO_RETRY_INCREMENT;const c=o.RETRY_COST;const d=o.TIMEOUT_RETRY_COST;let p=e;const getCapacityAmount=e=>e.name==="TimeoutError"?d:c;const hasRetryTokens=e=>getCapacityAmount(e)<=p;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);p-=t;return t};const releaseRetryTokens=e=>{p+=e??i;p=Math.min(p,n)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const defaultRetryDecider=e=>{if(!e){return false}return c.isRetryableByTrait(e)||c.isClockSkewError(e)||c.isThrottlingError(e)||c.isTransientError(e)};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=o.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e;this.retryDecider=t?.retryDecider??defaultRetryDecider;this.delayDecider=t?.delayDecider??defaultDelayDecider;this.retryQuota=t?.retryQuota??getDefaultRetryQuota(o.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=o.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,n){let p;let y=0;let C=0;const Q=await this.getMaxAttempts();const{request:v}=t;if(i.HttpRequest.isInstance(v)){v.headers[o.INVOCATION_ID_HEADER]=d.v4()}while(true){try{if(i.HttpRequest.isInstance(v)){v.headers[o.REQUEST_HEADER]=`attempt=${y+1}; max=${Q}`}if(n?.beforeRequest){await n.beforeRequest()}const{response:c,output:d}=await e(t);if(n?.afterRequest){n.afterRequest(c)}this.retryQuota.releaseRetryTokens(p);d.$metadata.attempts=y+1;d.$metadata.totalRetryDelay=C;return{response:c,output:d}}catch(e){const t=asSdkError(e);y++;if(this.shouldRetry(t,y,Q)){p=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider(c.isThrottlingError(t)?o.THROTTLING_RETRY_DELAY_BASE:o.DEFAULT_RETRY_DELAY_BASE,y);const n=getDelayFromRetryAfterHeader(t.$response);const i=Math.max(n||0,e);C+=i;await new Promise((e=>setTimeout(e,i)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=y;t.$metadata.totalRetryDelay=C;throw t}}}}const getDelayFromRetryAfterHeader=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return o*1e3;const c=new Date(n);return c.getTime()-Date.now()};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(e,t){const{rateLimiter:n,...i}=t??{};super(e,i);this.rateLimiter=n??new o.DefaultRateLimiter;this.mode=o.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}const Q="AWS_MAX_ATTEMPTS";const v="max_attempts";const D={environmentVariableSelector:e=>{const t=e[Q];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Environment variable ${Q} mast be a number, got "${t}"`)}return n},configFileSelector:e=>{const t=e[v];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Shared config file entry ${v} mast be a number, got "${t}"`)}return n},default:o.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:i}=e;const c=p.normalizeProvider(i??o.DEFAULT_MAX_ATTEMPTS);return Object.assign(e,{maxAttempts:c,retryStrategy:async()=>{if(t){return t}const e=await p.normalizeProvider(n)();if(e===o.RETRY_MODES.ADAPTIVE){return new o.AdaptiveRetryStrategy(c)}return new o.StandardRetryStrategy(c)}})};const k="AWS_RETRY_MODE";const $="retry_mode";const V={environmentVariableSelector:e=>e[k],configFileSelector:e=>e[$],default:o.DEFAULT_RETRY_MODE};const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:n}=t;if(i.HttpRequest.isInstance(n)){delete n.headers[o.INVOCATION_ID_HEADER];delete n.headers[o.REQUEST_HEADER]}return e(t)};const ee={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo(omitRetryHeadersMiddleware(),ee)}});const retryMiddleware=e=>(t,n)=>async c=>{let p=await e.retryStrategy();const Q=await e.maxAttempts();if(isRetryStrategyV2(p)){p=p;let e=await p.acquireInitialRetryToken(n["partition_id"]);let v=new Error;let D=0;let k=0;const{request:$}=c;const V=i.HttpRequest.isInstance($);if(V){$.headers[o.INVOCATION_ID_HEADER]=d.v4()}while(true){try{if(V){$.headers[o.REQUEST_HEADER]=`attempt=${D+1}; max=${Q}`}const{response:n,output:i}=await t(c);p.recordSuccess(e);i.$metadata.attempts=D+1;i.$metadata.totalRetryDelay=k;return{response:n,output:i}}catch(t){const o=getRetryErrorInfo(t);v=asSdkError(t);if(V&&C.isStreamingPayload($)){(n.logger instanceof y.NoOpLogger?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw v}try{e=await p.refreshRetryTokenForRetry(e,o)}catch(e){if(!v.$metadata){v.$metadata={}}v.$metadata.attempts=D+1;v.$metadata.totalRetryDelay=k;throw v}D=e.getRetryCount();const i=e.getRetryDelay();k+=i;await new Promise((e=>setTimeout(e,i)))}}}else{p=p;if(p?.mode)n.userAgent=[...n.userAgent||[],["cfg/retry-mode",p.mode]];return p.retry(t,c)}};const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const t={error:e,errorType:getRetryErrorType(e)};const n=getRetryAfterHint(e.$response);if(n){t.retryAfterHint=n}return t};const getRetryErrorType=e=>{if(c.isThrottlingError(e))return"THROTTLING";if(c.isTransientError(e))return"TRANSIENT";if(c.isServerError(e))return"SERVER_ERROR";return"CLIENT_ERROR"};const te={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:t=>{t.add(retryMiddleware(e),te)}});const getRetryAfterHint=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return new Date(o*1e3);const c=new Date(n);return c};t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.CONFIG_MAX_ATTEMPTS=v;t.CONFIG_RETRY_MODE=$;t.ENV_MAX_ATTEMPTS=Q;t.ENV_RETRY_MODE=k;t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=D;t.NODE_RETRY_MODE_CONFIG_OPTIONS=V;t.StandardRetryStrategy=StandardRetryStrategy;t.defaultDelayDecider=defaultDelayDecider;t.defaultRetryDecider=defaultRetryDecider;t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;t.getRetryAfterHint=getRetryAfterHint;t.getRetryPlugin=getRetryPlugin;t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions=ee;t.resolveRetryConfig=resolveRetryConfig;t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions=te},9831:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.isStreamingPayload=void 0;const o=n(2203);const isStreamingPayload=e=>e?.body instanceof o.Readable||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;t.isStreamingPayload=isStreamingPayload},3255:(e,t,n)=>{var o=n(2356);const deserializerMiddleware=(e,t)=>(n,i)=>async c=>{const{response:d}=await n(c);try{const n=await t(d,e);return{response:d,output:n}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{i.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const serializerMiddleware=(e,t)=>(n,o)=>async i=>{const c=e;const d=o.endpointV2?.url&&c.urlParser?async()=>c.urlParser(o.endpointV2.url):c.endpoint;if(!d){throw new Error("No valid endpoint provider available.")}const p=await t(i.input,{...e,endpoint:d});return n({...i,request:p})};const i={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const c={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,t,n){return{applyToStack:o=>{o.add(deserializerMiddleware(e,n),i);o.add(serializerMiddleware(e,t),c)}}}t.deserializerMiddleware=deserializerMiddleware;t.deserializerMiddlewareOption=i;t.getSerdePlugin=getSerdePlugin;t.serializerMiddleware=serializerMiddleware;t.serializerMiddlewareOption=c},9208:(e,t)=>{const getAllAliases=(e,t)=>{const n=[];if(e){n.push(e)}if(t){for(const e of t){n.push(e)}}return n};const getMiddlewareNameWithAliases=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`;const constructStack=()=>{let e=[];let t=[];let i=false;const c=new Set;const sort=e=>e.sort(((e,t)=>n[t.step]-n[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]));const removeByName=n=>{let o=false;const filterCb=e=>{const t=getAllAliases(e.name,e.aliases);if(t.includes(n)){o=true;for(const e of t){c.delete(e)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const removeByReference=n=>{let o=false;const filterCb=e=>{if(e.middleware===n){o=true;for(const t of getAllAliases(e.name,e.aliases)){c.delete(t)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const cloneTo=n=>{e.forEach((e=>{n.add(e.middleware,{...e})}));t.forEach((e=>{n.addRelativeTo(e.middleware,{...e})}));n.identifyOnResolve?.(d.identifyOnResolve());return n};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(n=false)=>{const o=[];const i=[];const c={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){c[e]=t}o.push(t)}));t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){c[e]=t}i.push(t)}));i.forEach((e=>{if(e.toMiddleware){const t=c[e.toMiddleware];if(t===undefined){if(n){return}throw new Error(`${e.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(e.name,e.aliases)} `+`middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const d=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return d};const d={add:(t,n={})=>{const{name:o,override:i,aliases:d}=n;const p={step:"initialize",priority:"normal",middleware:t,...n};const y=getAllAliases(o,d);if(y.length>0){if(y.some((e=>c.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const t of y){const n=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(n===-1){continue}const i=e[n];if(i.step!==p.step||p.priority!==i.priority){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware with `+`${i.priority} priority in ${i.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(o,d)}" middleware with `+`${p.priority} priority in ${p.step} step.`)}e.splice(n,1)}}for(const e of y){c.add(e)}}e.push(p)},addRelativeTo:(e,n)=>{const{name:o,override:i,aliases:d}=n;const p={middleware:e,...n};const y=getAllAliases(o,d);if(y.length>0){if(y.some((e=>c.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const e of y){const n=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(n===-1){continue}const i=t[n];if(i.toMiddleware!==p.toMiddleware||i.relation!==p.relation){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware `+`${i.relation} "${i.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(o,d)}" middleware ${p.relation} `+`"${p.toMiddleware}" middleware.`)}t.splice(n,1)}}for(const e of y){c.add(e)}}t.push(p)},clone:()=>cloneTo(constructStack()),use:e=>{e.applyToStack(d)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:n=>{let o=false;const filterCb=e=>{const{tags:t,name:i,aliases:d}=e;if(t&&t.includes(n)){const e=getAllAliases(i,d);for(const t of e){c.delete(t)}o=true;return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o},concat:e=>{const t=cloneTo(constructStack());t.use(e);t.identifyOnResolve(i||t.identifyOnResolve()||(e.identifyOnResolve?.()??false));return t},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return getMiddlewareNameWithAliases(e.name,e.aliases)+" - "+t})),identifyOnResolve(e){if(typeof e==="boolean")i=e;return i},resolve:(e,t)=>{for(const n of getMiddlewareList().map((e=>e.middleware)).reverse()){e=n(e,t)}if(i){console.log(d.identify())}return e}};return d};const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1};t.constructStack=constructStack},5704:(e,t,n)=>{var o=n(8857);var i=n(4964);function getSelectorName(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));t.delete("CONFIG");t.delete("CONFIG_PREFIX_SEPARATOR");t.delete("ENV");return[...t].join(", ")}catch(t){return e}}const fromEnv=(e,t)=>async()=>{try{const n=e(process.env,t);if(n===undefined){throw new Error}return n}catch(n){throw new o.CredentialsProviderError(n.message||`Not found in ENV: ${getSelectorName(e.toString())}`,{logger:t?.logger})}};const fromSharedConfigFiles=(e,{preferredFile:t="config",...n}={})=>async()=>{const c=i.getProfileName(n);const{configFile:d,credentialsFile:p}=await i.loadSharedConfigFiles(n);const y=p[c]||{};const C=d[c]||{};const Q=t==="config"?{...y,...C}:{...C,...y};try{const n=t==="config"?d:p;const o=e(Q,n);if(o===undefined){throw new Error}return o}catch(t){throw new o.CredentialsProviderError(t.message||`Not found in config files w/ profile [${c}]: ${getSelectorName(e.toString())}`,{logger:n.logger})}};const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():o.fromStatic(e);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},i={})=>{const{signingName:c,logger:d}=i;const p={signingName:c,logger:d};return o.memoize(o.chain(fromEnv(e,p),fromSharedConfigFiles(t,i),fromStatic(n)))};t.loadConfig=loadConfig},1279:(e,t,n)=>{var o=n(2356);var i=n(8256);var c=n(8611);var d=n(5692);var p=n(2203);var y=n(5675);const C=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=e=>{const t={};for(const n of Object.keys(e)){const o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t};const Q={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};const v=1e3;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return-1}const registerTimeout=o=>{const i=Q.setTimeout((()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))}),n-o);const doWithSocket=e=>{if(e?.connecting){e.on("connect",(()=>{Q.clearTimeout(i)}))}else{Q.clearTimeout(i)}};if(e.socket){doWithSocket(e.socket)}else{e.on("socket",doWithSocket)}};if(n<2e3){registerTimeout(0);return 0}return Q.setTimeout(registerTimeout.bind(null,v),v)};const setRequestTimeout=(e,t,n=0,o,i)=>{if(n){return Q.setTimeout((()=>{let c=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){const n=Object.assign(new Error(c),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(n);t(n)}else{c+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;i?.warn?.(c)}}),n)}return-1};const D=3e3;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:n},o=D)=>{if(t!==true){return-1}const registerListener=()=>{if(e.socket){e.socket.setKeepAlive(t,n||0)}else{e.on("socket",(e=>{e.setKeepAlive(t,n||0)}))}};if(o===0){registerListener();return 0}return Q.setTimeout(registerListener,o)};const k=3e3;const setSocketTimeout=(e,t,n=0)=>{const registerTimeout=o=>{const i=n-o;const onTimeout=()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket){e.socket.setTimeout(i,onTimeout);e.on("close",(()=>e.socket?.removeListener("timeout",onTimeout)))}else{e.setTimeout(i,onTimeout)}};if(0<n&&n<6e3){registerTimeout(0);return 0}return Q.setTimeout(registerTimeout.bind(null,n===0?0:k),k)};const $=6e3;async function writeRequestBody(e,t,n=$,o=false){const i=t.headers??{};const c=i.Expect||i.expect;let d=-1;let p=true;if(!o&&c==="100-continue"){p=await Promise.race([new Promise((e=>{d=Number(Q.setTimeout((()=>e(true)),Math.max($,n)))})),new Promise((t=>{e.on("continue",(()=>{Q.clearTimeout(d);t(true)}));e.on("response",(()=>{Q.clearTimeout(d);t(false)}));e.on("error",(()=>{Q.clearTimeout(d);t(false)}))}))])}if(p){writeBody(e,t.body)}}function writeBody(e,t){if(t instanceof p.Readable){t.pipe(e);return}if(t){const n=Buffer.isBuffer(t);const o=typeof t==="string";if(n||o){if(n&&t.byteLength===0){e.end()}else{e.end(t)}return}const i=t;if(typeof i==="object"&&i.buffer&&typeof i.byteOffset==="number"&&typeof i.byteLength==="number"){e.end(Buffer.from(i.buffer,i.byteOffset,i.byteLength));return}e.end(Buffer.from(t));return}e.end()}const V=0;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttpHandler(e)}static checkSocketUsage(e,t,n=console){const{sockets:o,requests:i,maxSockets:c}=e;if(typeof c!=="number"||c===Infinity){return t}const d=15e3;if(Date.now()-d<t){return t}if(o&&i){for(const e in o){const t=o[e]?.length??0;const d=i[e]?.length??0;if(t>=c&&d>=2*c){n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${d} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return t}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(n)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:i,httpAgent:p,httpsAgent:y,throwOnRequestTimeout:C,logger:Q}=e||{};const v=true;const D=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:i,throwOnRequestTimeout:C,httpAgent:(()=>{if(p instanceof c.Agent||typeof p?.destroy==="function"){this.externalAgent=true;return p}return new c.Agent({keepAlive:v,maxSockets:D,...p})})(),httpsAgent:(()=>{if(y instanceof d.Agent||typeof y?.destroy==="function"){this.externalAgent=true;return y}return new d.Agent({keepAlive:v,maxSockets:D,...y})})(),logger:Q}}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((p,y)=>{const v=this.config;let D=undefined;const k=[];const resolve=async e=>{await D;k.forEach(Q.clearTimeout);p(e)};const reject=async e=>{await D;k.forEach(Q.clearTimeout);y(e)};if(t?.aborted){const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const $=e.protocol==="https:";const V=e.headers??{};const ee=(V.Expect??V.expect)==="100-continue";let te=$?v.httpsAgent:v.httpAgent;if(ee&&!this.externalAgent){te=new($?d.Agent:c.Agent)({keepAlive:false,maxSockets:Infinity})}k.push(Q.setTimeout((()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(te,this.socketWarningTimestamp,v.logger)}),v.socketAcquisitionWarningTimeout??(v.requestTimeout??2e3)+(v.connectionTimeout??1e3)));const re=i.buildQueryString(e.query||{});let ne=undefined;if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";ne=`${t}:${n}`}let se=e.path;if(re){se+=`?${re}`}if(e.fragment){se+=`#${e.fragment}`}let oe=e.hostname??"";if(oe[0]==="["&&oe.endsWith("]")){oe=e.hostname.slice(1,-1)}else{oe=e.hostname}const ie={headers:e.headers,host:oe,method:e.method,path:se,port:e.port,agent:te,auth:ne};const ae=$?d.request:c.request;const ce=ae(ie,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:getTransformedHeaders(e.headers),body:e});resolve({response:t})}));ce.on("error",(e=>{if(C.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));if(t){const onAbort=()=>{ce.destroy();const e=new Error("Request aborted");e.name="AbortError";reject(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ce.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}const le=n??v.requestTimeout;k.push(setConnectionTimeout(ce,reject,v.connectionTimeout));k.push(setRequestTimeout(ce,reject,le,v.throwOnRequestTimeout,v.logger??console));k.push(setSocketTimeout(ce,reject,v.socketTimeout));const ue=ie.agent;if(typeof ue==="object"&&"keepAlive"in ue){k.push(setSocketKeepAlive(ce,{keepAlive:ue.keepAlive,keepAliveMsecs:ue.keepAliveMsecs}))}D=writeRequestBody(ce,e,le,this.externalAgent).catch((e=>{k.forEach(Q.clearTimeout);return y(e)}))}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}}class NodeHttp2ConnectionPool{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t=>t!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const t of this.sessions){if(t===e){if(!t.destroyed){t.destroy()}}}}}class NodeHttp2ConnectionManager{constructor(e){this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}config;sessionCache=new Map;lease(e,t){const n=this.getUrlString(e);const o=this.sessionCache.get(n);if(o){const e=o.poll();if(e&&!this.config.disableConcurrency){return e}}const i=y.connect(n);if(this.config.maxConcurrency){i.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}i.unref();const destroySessionCb=()=>{i.destroy();this.deleteSession(n,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSession(n,i)));if(t.requestTimeout){i.setTimeout(t.requestTimeout,destroySessionCb)}const c=this.sessionCache.get(n)||new NodeHttp2ConnectionPool;c.offerLast(i);this.sessionCache.set(n,c);return i}deleteSession(e,t){const n=this.sessionCache.get(e);if(!n){return}if(!n.contains(t)){return}n.remove(t);this.sessionCache.set(e,n)}release(e,t){const n=this.getUrlString(e);this.sessionCache.get(n)?.offerLast(t)}destroy(){for(const[e,t]of this.sessionCache){for(const e of t){if(!e.destroyed){e.destroy()}t.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttp2Handler(e)}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(n)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:c,disableConcurrentStreams:d}=this.config;const p=n??c;return new Promise(((n,c)=>{let C=false;let Q=undefined;const resolve=async e=>{await Q;n(e)};const reject=async e=>{await Q;c(e)};if(t?.aborted){C=true;const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const{hostname:v,method:D,port:k,protocol:$,query:V}=e;let ee="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";ee=`${t}:${n}@`}const te=`${$}//${ee}${v}${k?`:${k}`:""}`;const re={destination:new URL(te)};const ne=this.connectionManager.lease(re,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:d||false});const rejectWithDestroy=e=>{if(d){this.destroySession(ne)}C=true;reject(e)};const se=i.buildQueryString(V||{});let oe=e.path;if(se){oe+=`?${se}`}if(e.fragment){oe+=`#${e.fragment}`}const ie=ne.request({...e.headers,[y.constants.HTTP2_HEADER_PATH]:oe,[y.constants.HTTP2_HEADER_METHOD]:D});ne.ref();ie.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:getTransformedHeaders(e),body:ie});C=true;resolve({response:t});if(d){ne.close();this.connectionManager.deleteSession(te,ne)}}));if(p){ie.setTimeout(p,(()=>{ie.close();const e=new Error(`Stream timed out because of no activity for ${p} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){const onAbort=()=>{ie.close();const e=new Error("Request aborted");e.name="AbortError";rejectWithDestroy(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ie.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}ie.on("frameError",((e,t,n)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));ie.on("error",rejectWithDestroy);ie.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${ie.rstCode}.`))}));ie.on("close",(()=>{ne.unref();if(d){ne.destroy()}if(!C){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));Q=writeRequestBody(ie,e,p)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed){e.destroy()}}}class Collector extends p.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e);n()}}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((t,n)=>{const o=new Collector;e.pipe(o);e.on("error",(e=>{o.end();n(e)}));o.on("error",n);o.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}))};const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:c}=await n.read();if(c){t.push(c);i+=c.length}o=e}const c=new Uint8Array(i);let d=0;for(const e of t){c.set(e,d);d+=e.length}return c}t.DEFAULT_REQUEST_TIMEOUT=V;t.NodeHttp2Handler=NodeHttp2Handler;t.NodeHttpHandler=NodeHttpHandler;t.streamCollector=streamCollector},8857:(e,t)=>{class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(e,t=true){let n;let o=true;if(typeof t==="boolean"){n=undefined;o=t}else if(t!=null&&typeof t==="object"){n=t.logger;o=t.tryNextLink??true}super(e);this.tryNextLink=o;Object.setPrototypeOf(this,ProviderError.prototype);n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...e)=>async()=>{if(e.length===0){throw new ProviderError("No providers in chain")}let t;for(const n of e){try{const e=await n();return e}catch(e){t=e;if(e?.tryNextLink){continue}throw e}}throw t};const fromStatic=e=>()=>Promise.resolve(e);const memoize=(e,t,n)=>{let o;let i;let c;let d=false;const coalesceProvider=async()=>{if(!i){i=e()}try{o=await i;c=true;d=false}finally{i=undefined}return o};if(t===undefined){return async e=>{if(!c||e?.forceRefresh){o=await coalesceProvider()}return o}}return async e=>{if(!c||e?.forceRefresh){o=await coalesceProvider()}if(d){return o}if(n&&!n(o)){d=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.CredentialsProviderError=CredentialsProviderError;t.ProviderError=ProviderError;t.TokenProviderError=TokenProviderError;t.chain=chain;t.fromStatic=fromStatic;t.memoize=memoize},2356:(e,t,n)=>{var o=n(690);const getHttpHandlerExtensionConfiguration=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});class Field{name;kind;values;constructor({name:e,kind:t=o.FieldPosition.HEADER,values:n=[]}){this.name=e;this.kind=t;this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static clone(e){const t=new HttpRequest({...e,headers:{...e.headers}});if(t.query){t.query=cloneQuery(t.query)}return t}static isInstance(e){if(!e){return false}const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{})}class HttpResponse{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.Field=Field;t.Fields=Fields;t.HttpRequest=HttpRequest;t.HttpResponse=HttpResponse;t.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;t.isValidHostname=isValidHostname;t.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig},8256:(e,t,n)=>{var o=n(146);function buildQueryString(e){const t=[];for(let n of Object.keys(e).sort()){const i=e[n];n=o.escapeUri(n);if(Array.isArray(i)){for(let e=0,c=i.length;e<c;e++){t.push(`${n}=${o.escapeUri(i[e])}`)}}else{let e=n;if(i||typeof i==="string"){e+=`=${o.escapeUri(i)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},8822:(e,t)=>{function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const n of e.split("&")){let[e,o=null]=n.split("=");e=decodeURIComponent(e);if(o){o=decodeURIComponent(o)}if(!(e in t)){t[e]=o}else if(Array.isArray(t[e])){t[e].push(o)}else{t[e]=[t[e],o]}}}return t}t.parseQueryString=parseQueryString},2058:(e,t)=>{const n=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const o=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const i=["TimeoutError","RequestTimeout","RequestTimeoutException"];const c=[500,502,503,504];const d=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const p=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];const isRetryableByTrait=e=>e?.$retryable!==undefined;const isClockSkewError=e=>n.includes(e.name);const isClockSkewCorrectedError=e=>e.$metadata?.clockSkewCorrected;const isBrowserNetworkError=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const n=e&&e instanceof TypeError;if(!n){return false}return t.has(e.message)};const isThrottlingError=e=>e.$metadata?.httpStatusCode===429||o.includes(e.name)||e.$retryable?.throttling==true;const isTransientError=(e,t=0)=>isRetryableByTrait(e)||isClockSkewCorrectedError(e)||i.includes(e.name)||d.includes(e?.code||"")||p.includes(e?.code||"")||c.includes(e.$metadata?.httpStatusCode||0)||isBrowserNetworkError(e)||e.cause!==undefined&&t<=10&&isTransientError(e.cause,t+1);const isServerError=e=>{if(e.$metadata?.httpStatusCode!==undefined){const t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!isTransientError(e)){return true}return false}return false};t.isBrowserNetworkError=isBrowserNetworkError;t.isClockSkewCorrectedError=isClockSkewCorrectedError;t.isClockSkewError=isClockSkewError;t.isRetryableByTrait=isRetryableByTrait;t.isServerError=isServerError;t.isThrottlingError=isThrottlingError;t.isTransientError=isTransientError},1791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const o=n(857);const i=n(6928);const c={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:d=`C:${i.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${d}${n}`;const p=getHomeDirCacheKey();if(!c[p])c[p]=(0,o.homedir)();return c[p]};t.getHomeDir=getHomeDir},269:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const o=n(6982);const i=n(6928);const c=n(1791);const getSSOTokenFilepath=e=>{const t=(0,o.createHash)("sha1");const n=t.update(e).digest("hex");return(0,i.join)((0,c.getHomeDir)(),".aws","sso","cache",`${n}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},1326:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=t.tokenIntercept=void 0;const o=n(1943);const i=n(269);t.tokenIntercept={};const getSSOTokenFromFile=async e=>{if(t.tokenIntercept[e]){return t.tokenIntercept[e]}const n=(0,i.getSSOTokenFilepath)(e);const c=await(0,o.readFile)(n,"utf8");return JSON.parse(c)};t.getSSOTokenFromFile=getSSOTokenFromFile},4964:(e,t,n)=>{var o=n(1791);var i=n(269);var c=n(1326);var d=n(6928);var p=n(690);var y=n(6684);const C="AWS_PROFILE";const Q="default";const getProfileName=e=>e.profile||process.env[C]||Q;const v=".";const getConfigData=e=>Object.entries(e).filter((([e])=>{const t=e.indexOf(v);if(t===-1){return false}return Object.values(p.IniSectionType).includes(e.substring(0,t))})).reduce(((e,[t,n])=>{const o=t.indexOf(v);const i=t.substring(0,o)===p.IniSectionType.PROFILE?t.substring(o+1):t;e[i]=n;return e}),{...e.default&&{default:e.default}});const D="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[D]||d.join(o.getHomeDir(),".aws","config");const k="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[k]||d.join(o.getHomeDir(),".aws","credentials");const $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;const V=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let n;let o;for(const i of e.split(/\r?\n/)){const e=i.split(/(^|\s)[;#]/)[0].trim();const c=e[0]==="["&&e[e.length-1]==="]";if(c){n=undefined;o=undefined;const t=e.substring(1,e.length-1);const i=$.exec(t);if(i){const[,e,,t]=i;if(Object.values(p.IniSectionType).includes(e)){n=[e,t].join(v)}}else{n=t}if(V.includes(t)){throw new Error(`Found invalid profile name "${t}"`)}}else if(n){const c=e.indexOf("=");if(![0,-1].includes(c)){const[d,p]=[e.substring(0,c).trim(),e.substring(c+1).trim()];if(p===""){o=d}else{if(o&&i.trimStart()===i){o=undefined}t[n]=t[n]||{};const e=o?[o,d].join(v):d;t[n][e]=p}}}}return t};const swallowError$1=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=getCredentialsFilepath(),configFilepath:n=getConfigFilepath()}=e;const i=o.getHomeDir();const c="~/";let p=t;if(t.startsWith(c)){p=d.join(i,t.slice(2))}let C=n;if(n.startsWith(c)){C=d.join(i,n.slice(2))}const Q=await Promise.all([y.readFile(C,{ignoreCache:e.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),y.readFile(p,{ignoreCache:e.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:Q[0],credentialsFile:Q[1]}};const getSsoSessionData=e=>Object.entries(e).filter((([e])=>e.startsWith(p.IniSectionType.SSO_SESSION+v))).reduce(((e,[t,n])=>({...e,[t.substring(t.indexOf(v)+1)]:n})),{});const swallowError=()=>({});const loadSsoSessionData=async(e={})=>y.readFile(e.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...e)=>{const t={};for(const n of e){for(const[e,o]of Object.entries(n)){if(t[e]!==undefined){Object.assign(t[e],o)}else{t[e]=o}}}return t};const parseKnownFiles=async e=>{const t=await loadSharedConfigFiles(e);return mergeConfigFiles(t.configFile,t.credentialsFile)};const ee={getFileRecord(){return y.fileIntercept},interceptFile(e,t){y.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return c.tokenIntercept},interceptToken(e,t){c.tokenIntercept[e]=t}};t.getSSOTokenFromFile=c.getSSOTokenFromFile;t.readFile=y.readFile;t.CONFIG_PREFIX_SEPARATOR=v;t.DEFAULT_PROFILE=Q;t.ENV_PROFILE=C;t.externalDataInterceptor=ee;t.getProfileName=getProfileName;t.loadSharedConfigFiles=loadSharedConfigFiles;t.loadSsoSessionData=loadSsoSessionData;t.parseKnownFiles=parseKnownFiles;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},6684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readFile=t.fileIntercept=t.filePromises=void 0;const o=n(1455);t.filePromises={};t.fileIntercept={};const readFile=(e,n)=>{if(t.fileIntercept[e]!==undefined){return t.fileIntercept[e]}if(!t.filePromises[e]||n?.ignoreCache){t.filePromises[e]=(0,o.readFile)(e,"utf8")}return t.filePromises[e]};t.readFile=readFile},5118:(e,t,n)=>{var o=n(6435);var i=n(1577);var c=n(6130);var d=n(2356);var p=n(6324);var y=n(146);const C="X-Amz-Algorithm";const Q="X-Amz-Credential";const v="X-Amz-Date";const D="X-Amz-SignedHeaders";const k="X-Amz-Expires";const $="X-Amz-Signature";const V="X-Amz-Security-Token";const ee="X-Amz-Region-Set";const te="authorization";const re=v.toLowerCase();const ne="date";const se=[te,re,ne];const oe=$.toLowerCase();const ie="x-amz-content-sha256";const ae=V.toLowerCase();const ce="host";const le={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const ue=/^proxy-/;const de=/^sec-/;const pe=[/^proxy-/i,/^sec-/i];const Ae="AWS4-HMAC-SHA256";const me="AWS4-ECDSA-P256-SHA256";const ge="AWS4-HMAC-SHA256-PAYLOAD";const fe="UNSIGNED-PAYLOAD";const he=50;const ye="aws4_request";const Ee=60*60*24*7;const Ce={};const Ie=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${ye}`;const getSigningKey=async(e,t,n,i,c)=>{const d=await hmac(e,t.secretAccessKey,t.accessKeyId);const p=`${n}:${i}:${c}:${o.toHex(d)}:${t.sessionToken}`;if(p in Ce){return Ce[p]}Ie.push(p);while(Ie.length>he){delete Ce[Ie.shift()]}let y=`AWS4${t.secretAccessKey}`;for(const t of[n,i,c,ye]){y=await hmac(e,y,t)}return Ce[p]=y};const clearCredentialCache=()=>{Ie.length=0;Object.keys(Ce).forEach((e=>{delete Ce[e]}))};const hmac=(e,t,n)=>{const o=new e(t);o.update(i.toUint8Array(n));return o.digest()};const getCanonicalHeaders=({headers:e},t,n)=>{const o={};for(const i of Object.keys(e).sort()){if(e[i]==undefined){continue}const c=i.toLowerCase();if(c in le||t?.has(c)||ue.test(c)||de.test(c)){if(!n||n&&!n.has(c)){continue}}o[c]=e[i].trim().replace(/\s+/g," ")}return o};const getPayloadHash=async({headers:e,body:t},n)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===ie){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||c.isArrayBuffer(t)){const e=new n;e.update(i.toUint8Array(t));return o.toHex(await e.digest())}return fe};class HeaderFormatter{format(e){const t=[];for(const n of Object.keys(e)){const o=i.fromUtf8(n);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let o=0;for(const e of t){n.set(e,o);o+=e.byteLength}return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));n.setUint8(0,4);n.setInt32(1,e.value,false);return new Uint8Array(n.buffer);case"long":const c=new Uint8Array(9);c[0]=5;c.set(e.value.bytes,1);return c;case"binary":const d=new DataView(new ArrayBuffer(3+e.value.byteLength));d.setUint8(0,6);d.setUint16(1,e.value.byteLength,false);const p=new Uint8Array(d.buffer);p.set(e.value,3);return p;case"string":const y=i.fromUtf8(e.value);const C=new DataView(new ArrayBuffer(3+y.byteLength));C.setUint8(0,7);C.setUint16(1,y.byteLength,false);const Q=new Uint8Array(C.buffer);Q.set(y,3);return Q;case"timestamp":const v=new Uint8Array(9);v[0]=8;v.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return v;case"uuid":if(!be.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const D=new Uint8Array(17);D[0]=9;D.set(o.fromHex(e.value.replace(/\-/g,"")),1);return D}}}const be=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256){t[n]=o}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt(o.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}const hasHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return true}}return false};const moveHeadersToQuery=(e,t={})=>{const{headers:n,query:o={}}=d.HttpRequest.clone(e);for(const e of Object.keys(n)){const i=e.toLowerCase();if(i.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i)){o[e]=n[e];delete n[e]}}return{...e,headers:n,query:o}};const prepareRequest=e=>{e=d.HttpRequest.clone(e);for(const t of Object.keys(e.headers)){if(se.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const o of Object.keys(e)){if(o.toLowerCase()===oe){continue}const i=y.escapeUri(o);t.push(i);const c=e[o];if(typeof c==="string"){n[i]=`${i}=${y.escapeUri(c)}`}else if(Array.isArray(c)){n[i]=c.slice(0).reduce(((e,t)=>e.concat([`${i}=${y.escapeUri(t)}`])),[]).sort().join("&")}}return t.sort().map((e=>n[e])).filter((e=>e)).join("&")};const iso8601=e=>toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:c=true}){this.service=o;this.sha256=i;this.uriEscapePath=c;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=p.normalizeProvider(n);this.credentialProvider=p.normalizeProvider(t)}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${getCanonicalQuery(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n,c){const d=new this.sha256;d.update(i.toUint8Array(n));const p=await d.digest();return`${c}\n${e}\n${t}\n${o.toHex(p)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/")){if(n?.length===0)continue;if(n===".")continue;if(n===".."){t.pop()}else{t.push(n)}}const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;const o=y.escapeUri(n);return o.replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(e){const t=iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:c=true}){super({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:c})}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:i,unhoistableHeaders:c,signableHeaders:d,hoistableHeaders:p,signingRegion:y,signingService:ee}=t;const te=await this.credentialProvider();this.validateResolvedCredentials(te);const re=y??await this.regionProvider();const{longDate:ne,shortDate:se}=this.formatDate(n);if(o>Ee){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const oe=createScope(se,re,ee??this.service);const ie=moveHeadersToQuery(prepareRequest(e),{unhoistableHeaders:c,hoistableHeaders:p});if(te.sessionToken){ie.query[V]=te.sessionToken}ie.query[C]=Ae;ie.query[Q]=`${te.accessKeyId}/${oe}`;ie.query[v]=ne;ie.query[k]=o.toString(10);const ae=getCanonicalHeaders(ie,i,d);ie.query[D]=this.getCanonicalHeaderList(ae);ie.query[$]=await this.getSignature(ne,oe,this.getSigningKey(te,re,se,ee),this.createCanonicalRequest(ie,ae,await getPayloadHash(e,this.sha256)));return ie}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:i,signingRegion:c,signingService:d}){const p=c??await this.regionProvider();const{shortDate:y,longDate:C}=this.formatDate(n);const Q=createScope(y,p,d??this.service);const v=await getPayloadHash({headers:{},body:t},this.sha256);const D=new this.sha256;D.update(e);const k=o.toHex(await D.digest());const $=[ge,C,Q,i,k,v].join("\n");return this.signString($,{signingDate:n,signingRegion:p,signingService:d})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:o}){const i=this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:o,priorSignature:e.priorSignature});return i.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:c}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const p=n??await this.regionProvider();const{shortDate:y}=this.formatDate(t);const C=new this.sha256(await this.getSigningKey(d,p,y,c));C.update(i.toUint8Array(e));return o.toHex(await C.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:i,signingService:c}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const p=i??await this.regionProvider();const y=prepareRequest(e);const{longDate:C,shortDate:Q}=this.formatDate(t);const v=createScope(Q,p,c??this.service);y.headers[re]=C;if(d.sessionToken){y.headers[ae]=d.sessionToken}const D=await getPayloadHash(y,this.sha256);if(!hasHeader(ie,y.headers)&&this.applyChecksum){y.headers[ie]=D}const k=getCanonicalHeaders(y,o,n);const $=await this.getSignature(C,v,this.getSigningKey(d,p,Q,c),this.createCanonicalRequest(y,k,D));y.headers[te]=`${Ae} `+`Credential=${d.accessKeyId}/${v}, `+`SignedHeaders=${this.getCanonicalHeaderList(k)}, `+`Signature=${$}`;return y}async getSignature(e,t,n,c){const d=await this.createStringToSign(e,t,c,Ae);const p=new this.sha256(await n);p.update(i.toUint8Array(d));return o.toHex(await p.digest())}getSigningKey(e,t,n,o){return getSigningKey(this.sha256,e,n,t,o||this.service)}}const Se={SignatureV4a:null};t.ALGORITHM_IDENTIFIER=Ae;t.ALGORITHM_IDENTIFIER_V4A=me;t.ALGORITHM_QUERY_PARAM=C;t.ALWAYS_UNSIGNABLE_HEADERS=le;t.AMZ_DATE_HEADER=re;t.AMZ_DATE_QUERY_PARAM=v;t.AUTH_HEADER=te;t.CREDENTIAL_QUERY_PARAM=Q;t.DATE_HEADER=ne;t.EVENT_ALGORITHM_IDENTIFIER=ge;t.EXPIRES_QUERY_PARAM=k;t.GENERATED_HEADERS=se;t.HOST_HEADER=ce;t.KEY_TYPE_IDENTIFIER=ye;t.MAX_CACHE_SIZE=he;t.MAX_PRESIGNED_TTL=Ee;t.PROXY_HEADER_PATTERN=ue;t.REGION_SET_PARAM=ee;t.SEC_HEADER_PATTERN=de;t.SHA256_HEADER=ie;t.SIGNATURE_HEADER=oe;t.SIGNATURE_QUERY_PARAM=$;t.SIGNED_HEADERS_QUERY_PARAM=D;t.SignatureV4=SignatureV4;t.SignatureV4Base=SignatureV4Base;t.TOKEN_HEADER=ae;t.TOKEN_QUERY_PARAM=V;t.UNSIGNABLE_PATTERNS=pe;t.UNSIGNED_PAYLOAD=fe;t.clearCredentialCache=clearCredentialCache;t.createScope=createScope;t.getCanonicalHeaders=getCanonicalHeaders;t.getCanonicalQuery=getCanonicalQuery;t.getPayloadHash=getPayloadHash;t.getSigningKey=getSigningKey;t.hasHeader=hasHeader;t.moveHeadersToQuery=moveHeadersToQuery;t.prepareRequest=prepareRequest;t.signatureV4aContainer=Se},1411:(e,t,n)=>{var o=n(9208);var i=n(3422);var c=n(690);var d=n(6890);var p=n(2430);class Client{config;middlewareStack=o.constructStack();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:n}=e;if(n){if(typeof t==="function"){e.protocol=new t(n)}}}send(e,t,n){const o=typeof t!=="function"?t:undefined;const i=typeof t==="function"?t:n;const c=o===undefined&&this.config.cacheMiddleware===true;let d;if(c){if(!this.handlers){this.handlers=new WeakMap}const t=this.handlers;if(t.has(e.constructor)){d=t.get(e.constructor)}else{d=e.resolveMiddleware(this.middlewareStack,this.config,o);t.set(e.constructor,d)}}else{delete this.handlers;d=e.resolveMiddleware(this.middlewareStack,this.config,o)}if(i){d(e).then((e=>i(null,e.output)),(e=>i(e))).catch((()=>{}))}else{return d(e).then((e=>e.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const y="***SensitiveInformation***";function schemaLogFilter(e,t){if(t==null){return t}const n=d.NormalizedSchema.of(e);if(n.getMergedTraits().sensitive){return y}if(n.isListSchema()){const e=!!n.getValueSchema().getMergedTraits().sensitive;if(e){return y}}else if(n.isMapSchema()){const e=!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive;if(e){return y}}else if(n.isStructSchema()&&typeof t==="object"){const e=t;const o={};for(const[t,i]of n.structIterator()){if(e[t]!=null){o[t]=schemaLogFilter(i,e[t])}}return o}return t}class Command{middlewareStack=o.constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(e,t,n,{middlewareFn:o,clientName:i,commandName:d,inputFilterSensitiveLog:p,outputFilterSensitiveLog:y,smithyContext:C,additionalContext:Q,CommandCtor:v}){for(const i of o.bind(this)(v,e,t,n)){this.middlewareStack.use(i)}const D=e.concat(this.middlewareStack);const{logger:k}=t;const $={logger:k,clientName:i,commandName:d,inputFilterSensitiveLog:p,outputFilterSensitiveLog:y,[c.SMITHY_CONTEXT_KEY]:{commandInstance:this,...C},...Q};const{requestHandler:V}=t;return D.resolve((e=>V.handle(e.request,n||{})),$)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){this._ep=e;return this}m(e){this._middlewareFn=e;return this}s(e,t,n={}){this._smithyContext={service:e,operation:t,...n};return this}c(e={}){this._additionalContext=e;return this}n(e,t){this._clientName=e;this._commandName=t;return this}f(e=e=>e,t=e=>e){this._inputFilterSensitiveLog=e;this._outputFilterSensitiveLog=t;return this}ser(e){this._serializer=e;return this}de(e){this._deserializer=e;return this}sc(e){this._operationSchema=e;this._smithyContext.operationSchema=e;return this}build(){const e=this;let t;return t=class extends Command{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super();this.input=t??{};e._init(this);this.schema=e._operationSchema}resolveMiddleware(n,o,i){const c=e._operationSchema;const d=c?.[4]??c?.input;const p=c?.[5]??c?.output;return this.resolveMiddlewareWithContext(n,o,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(c?schemaLogFilter.bind(null,d):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(c?schemaLogFilter.bind(null,p):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const C="***SensitiveInformation***";const createAggregatedClient=(e,t,n)=>{for(const[n,o]of Object.entries(e)){const methodImpl=async function(e,t,n){const i=new o(e);if(typeof t==="function"){this.send(i,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(i,t||{},n)}else{return this.send(i,t)}};const e=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[e]=methodImpl}const{paginators:o={},waiters:i={}}=n??{};for(const[e,n]of Object.entries(o)){if(t.prototype[e]===void 0){t.prototype[e]=function(e={},t,...o){return n({...t,client:this},e,...o)}}}for(const[e,n]of Object.entries(i)){if(t.prototype[e]===void 0){t.prototype[e]=async function(e={},t,...o){let i=t;if(typeof t==="number"){i={maxWaitTime:t}}return n({...i,client:this},e,...o)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}static isInstance(e){if(!e)return false;const t=e;return ServiceException.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return false;const t=e;if(this===ServiceException){return ServiceException.isInstance(e)}if(ServiceException.isInstance(e)){if(t.name&&this.name){return this.prototype.isPrototypeOf(e)||t.name===this.name}return this.prototype.isPrototypeOf(e)}return false}}const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,n])=>{if(e[t]==undefined||e[t]===""){e[t]=n}}));const n=e.message||e.Message||"UnknownError";e.message=n;delete e.Message;return e};const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:n,errorCode:o})=>{const i=deserializeMetadata(e);const c=i.httpStatusCode?i.httpStatusCode+"":undefined;const d=new n({name:t?.code||t?.Code||o||c||"UnknownError",$fault:"client",$metadata:i});throw decorateServiceException(d,t)};const withBaseException=e=>({output:t,parsedBody:n,errorCode:o})=>{throwDefaultError({output:t,parsedBody:n,exceptionCtor:e,errorCode:o})};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let Q=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!Q&&parseInt(e.substring(1,e.indexOf(".")))<16){Q=true}};const v=Object.values(c.AlgorithmId);const getChecksumConfiguration=e=>{const t=[];for(const n in c.AlgorithmId){const o=c.AlgorithmId[n];if(e[o]===undefined){continue}t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}for(const[n,o]of Object.entries(e.checksumAlgorithms??{})){t.push({algorithmId:()=>n,checksumConstructor:()=>o})}return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const o=n.algorithmId();const i=n.checksumConstructor();if(v.includes(o)){e.checksumAlgorithms[o.toUpperCase()]=i}else{e.checksumAlgorithms[o]=i}t.push(n)},checksumAlgorithms(){return t}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{const n=e.algorithmId();if(v.includes(n)){t[n]=e.checksumConstructor()}}));return t};const getRetryConfiguration=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}});const resolveRetryRuntimeConfig=e=>{const t={};t.retryStrategy=e.retryStrategy();return t};const getDefaultExtensionConfiguration=e=>Object.assign(getChecksumConfiguration(e),getRetryConfiguration(e));const D=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>Object.assign(resolveChecksumRuntimeConfig(e),resolveRetryRuntimeConfig(e));const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];const getValueFromTextNode=e=>{const t="#text";for(const n in e){if(e.hasOwnProperty(n)&&e[n][t]!==undefined){e[n]=e[n][t]}else if(typeof e[n]==="object"&&e[n]!==null){e[n]=getValueFromTextNode(e[n])}}return e};const isSerializableHeaderValue=e=>e!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(e,t,n){let o;let i;let c;if(typeof t==="undefined"&&typeof n==="undefined"){o={};c=e}else{o=e;if(typeof t==="function"){i=t;c=n;return mapWithFilter(o,i,c)}else{c=t}}for(const e of Object.keys(c)){if(!Array.isArray(c[e])){o[e]=c[e];continue}applyInstruction(o,null,c,e)}return o}const convertMap=e=>{const t={};for(const[n,o]of Object.entries(e||{})){t[n]=[,o]}return t};const take=(e,t)=>{const n={};for(const o in t){applyInstruction(n,e,t,o)}return n};const mapWithFilter=(e,t,n)=>map(e,Object.entries(n).reduce(((e,[n,o])=>{if(Array.isArray(o)){e[n]=o}else{if(typeof o==="function"){e[n]=[t,o()]}else{e[n]=[t,o]}}return e}),{}));const applyInstruction=(e,t,n,o)=>{if(t!==null){let i=n[o];if(typeof i==="function"){i=[,i]}const[c=nonNullish,d=pass,p=o]=i;if(typeof c==="function"&&c(t[p])||typeof c!=="function"&&!!c){e[o]=d(t[p])}return}let[i,c]=n[o];if(typeof c==="function"){let t;const n=i===undefined&&(t=c())!=null;const d=typeof i==="function"&&!!i(void 0)||typeof i!=="function"&&!!i;if(n){e[o]=t}else if(d){e[o]=c()}}else{const t=i===undefined&&c!=null;const n=typeof i==="function"&&!!i(c)||typeof i!=="function"&&!!i;if(t||n){e[o]=c}}};const nonNullish=e=>e!=null;const pass=e=>e;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};const serializeDateTime=e=>e.toISOString().replace(".000Z","Z");const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null)).map(_json)}if(typeof e==="object"){const t={};for(const n of Object.keys(e)){if(e[n]==null){continue}t[n]=_json(e[n])}return t}return e};t.collectBody=i.collectBody;t.extendedEncodeURIComponent=i.extendedEncodeURIComponent;t.resolvedPath=i.resolvedPath;t.Client=Client;t.Command=Command;t.NoOpLogger=NoOpLogger;t.SENSITIVE_STRING=C;t.ServiceException=ServiceException;t._json=_json;t.convertMap=convertMap;t.createAggregatedClient=createAggregatedClient;t.decorateServiceException=decorateServiceException;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getArrayIfSingleItem=getArrayIfSingleItem;t.getDefaultClientConfiguration=D;t.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;t.getValueFromTextNode=getValueFromTextNode;t.isSerializableHeaderValue=isSerializableHeaderValue;t.loadConfigsForDefaultMode=loadConfigsForDefaultMode;t.map=map;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;t.serializeDateTime=serializeDateTime;t.serializeFloat=serializeFloat;t.take=take;t.throwDefaultError=throwDefaultError;t.withBaseException=withBaseException;Object.prototype.hasOwnProperty.call(p,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:p["__proto__"]});Object.keys(p).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=p[e]}))},690:(e,t)=>{t.HttpAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpAuthLocation||(t.HttpAuthLocation={}));t.HttpApiKeyAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpApiKeyAuthLocation||(t.HttpApiKeyAuthLocation={}));t.EndpointURLScheme=void 0;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(t.EndpointURLScheme||(t.EndpointURLScheme={}));t.AlgorithmId=void 0;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(t.AlgorithmId||(t.AlgorithmId={}));const getChecksumConfiguration=e=>{const n=[];if(e.sha256!==undefined){n.push({algorithmId:()=>t.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){n.push({algorithmId:()=>t.AlgorithmId.MD5,checksumConstructor:()=>e.md5})}return{addChecksumAlgorithm(e){n.push(e)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};const getDefaultClientConfiguration=e=>getChecksumConfiguration(e);const resolveDefaultRuntimeConfig=e=>resolveChecksumRuntimeConfig(e);t.FieldPosition=void 0;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(t.FieldPosition||(t.FieldPosition={}));const n="__smithy_context";t.IniSectionType=void 0;(function(e){e["PROFILE"]="profile";e["SSO_SESSION"]="sso-session";e["SERVICES"]="services"})(t.IniSectionType||(t.IniSectionType={}));t.RequestHandlerProtocol=void 0;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}));t.SMITHY_CONTEXT_KEY=n;t.getDefaultClientConfiguration=getDefaultClientConfiguration;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},4494:(e,t,n)=>{var o=n(8822);const parseUrl=e=>{if(typeof e==="string"){return parseUrl(new URL(e))}const{hostname:t,pathname:n,port:i,protocol:c,search:d}=e;let p;if(d){p=o.parseQueryString(d)}return{hostname:t,port:i?parseInt(i):undefined,protocol:c,path:n,query:p}};t.parseUrl=parseUrl},2674:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const o=n(4151);const i=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!i.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,o.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},8385:(e,t,n)=>{var o=n(2674);var i=n(4871);Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},4871:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const o=n(4151);const i=n(1577);const toBase64=e=>{let t;if(typeof e==="string"){t=(0,i.fromUtf8)(e)}else{t=e}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return(0,o.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")};t.toBase64=toBase64},2098:(e,t)=>{const n=typeof TextEncoder=="function"?new TextEncoder:null;const calculateBodyLength=e=>{if(typeof e==="string"){if(n){return n.encode(e).byteLength}let t=e.length;for(let n=t-1;n>=0;n--){const o=e.charCodeAt(n);if(o>127&&o<=2047)t++;else if(o>2047&&o<=65535)t+=2;if(o>=56320&&o<=57343)n--}return t}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},3638:(e,t,n)=>{var o=n(3024);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.byteLength(e)}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(e instanceof o.ReadStream){if(e.path!=null){return o.lstatSync(e.path).size}else if(typeof e.fd==="number"){return o.fstatSync(e.fd).size}}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},4151:(e,t,n)=>{var o=n(6130);var i=n(181);const fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!o.isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return i.Buffer.from(e,t,n)};const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?i.Buffer.from(e,t):i.Buffer.from(e)};t.fromArrayBuffer=fromArrayBuffer;t.fromString=fromString},6716:(e,t)=>{const booleanSelector=(e,t,n)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)};const numberSelector=(e,t,n)=>{if(!(t in e))return undefined;const o=parseInt(e[t],10);if(Number.isNaN(o)){throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`)}return o};t.SelectorType=void 0;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(t.SelectorType||(t.SelectorType={}));t.booleanSelector=booleanSelector;t.numberSelector=numberSelector},673:(e,t,n)=>{var o=n(9316);var i=n(5704);var c=n(8857);const d="AWS_EXECUTION_ENV";const p="AWS_REGION";const y="AWS_DEFAULT_REGION";const C="AWS_EC2_METADATA_DISABLED";const Q=["in-region","cross-region","mobile","standard","legacy"];const v="/latest/meta-data/placement/region";const D="AWS_DEFAULTS_MODE";const k="defaults_mode";const $={environmentVariableSelector:e=>e[D],configFileSelector:e=>e[k],default:"legacy"};const resolveDefaultsModeConfig=({region:e=i.loadConfig(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=i.loadConfig($)}={})=>c.memoize((async()=>{const n=typeof t==="function"?await t():t;switch(n?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Q.join(", ")}, got ${n}`)}}));const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const n=await inferPhysicalRegion();if(!n){return"standard"}if(t===n){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[d]&&(process.env[p]||process.env[y])){return process.env[p]??process.env[y]}if(!process.env[C]){try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await n.e(566).then(n.t.bind(n,566,19));const o=await e();return(await t({...o,path:v})).toString()}catch(e){}}};t.resolveDefaultsModeConfig=resolveDefaultsModeConfig},9674:(e,t,n)=>{var o=n(690);class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50;if(t){this.parameters=t}}get(e,t){const n=this.hash(e);if(n===false){return t()}if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;while(true){const{value:n,done:o}=e.next();this.data.delete(n);if(o||++t>10){break}}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(n.length===0){return false}for(const o of n){const n=String(e[o]??"");if(n.includes("|;")){return false}t+=n+"|;"}return t}}const i=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=e=>i.test(e)||e.startsWith("[")&&e.endsWith("]");const c=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,t=false)=>{if(!t){return c.test(e)}const n=e.split(".");for(const e of n){if(!isValidHostLabel(e)){return false}}return true};const d={};const p="endpoints";function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}const booleanEquals=(e,t)=>e===t;const getAttrPathList=e=>{const t=e.split(".");const n=[];for(const o of t){const t=o.indexOf("[");if(t!==-1){if(o.indexOf("]")!==o.length-1){throw new EndpointError(`Path: '${e}' does not end with ']'`)}const i=o.slice(t+1,-1);if(Number.isNaN(parseInt(i))){throw new EndpointError(`Invalid array index: '${i}' in path: '${e}'`)}if(t!==0){n.push(o.slice(0,t))}n.push(i)}else{n.push(o)}}return n};const getAttr=(e,t)=>getAttrPathList(t).reduce(((n,o)=>{if(typeof n!=="object"){throw new EndpointError(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(n)){return n[parseInt(o)]}return n[o]}),e);const isSet=e=>e!=null;const not=e=>!e;const y={[o.EndpointURLScheme.HTTP]:80,[o.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:n,protocol:o="",path:i="",query:c={}}=e;const d=new URL(`${o}//${t}${n?`:${n}`:""}${i}`);d.search=Object.entries(c).map((([e,t])=>`${e}=${t}`)).join("&");return d}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const n=t.href;const{host:i,hostname:c,pathname:d,protocol:p,search:C}=t;if(C){return null}const Q=p.slice(0,-1);if(!Object.values(o.EndpointURLScheme).includes(Q)){return null}const v=isIpAddress(c);const D=n.includes(`${i}:${y[Q]}`)||typeof e==="string"&&e.includes(`${i}:${y[Q]}`);const k=`${i}${D?`:${y[Q]}`:``}`;return{scheme:Q,authority:k,path:d,normalizedPath:d.endsWith("/")?d:`${d}/`,isIp:v}};const stringEquals=(e,t)=>e===t;const substring=(e,t,n,o)=>{if(t>=n||e.length<n||/[^\u0000-\u007f]/.test(e)){return null}if(!o){return e.substring(t,n)}return e.substring(e.length-n,e.length-t)};const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));const C={booleanEquals:booleanEquals,getAttr:getAttr,isSet:isSet,isValidHostLabel:isValidHostLabel,not:not,parseURL:parseURL,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(e,t)=>{const n=[];const o={...t.endpointParams,...t.referenceRecord};let i=0;while(i<e.length){const t=e.indexOf("{",i);if(t===-1){n.push(e.slice(i));break}n.push(e.slice(i,t));const c=e.indexOf("}",t);if(c===-1){n.push(e.slice(t));break}if(e[t+1]==="{"&&e[c+1]==="}"){n.push(e.slice(t+1,c));i=c+2}const d=e.substring(t+1,c);if(d.includes("#")){const[e,t]=d.split("#");n.push(getAttr(o[e],t))}else{n.push(o[d])}i=c+1}return n.join("")};const getReferenceValue=({ref:e},t)=>{const n={...t.endpointParams,...t.referenceRecord};return n[e]};const evaluateExpression=(e,t,n)=>{if(typeof e==="string"){return evaluateTemplate(e,n)}else if(e["fn"]){return Q.callFunction(e,n)}else if(e["ref"]){return getReferenceValue(e,n)}throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};const callFunction=({fn:e,argv:t},n)=>{const o=t.map((e=>["boolean","number"].includes(typeof e)?e:Q.evaluateExpression(e,"arg",n)));const i=e.split(".");if(i[0]in d&&i[1]!=null){return d[i[0]][i[1]](...o)}return C[e](...o)};const Q={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord){throw new EndpointError(`'${e}' is already defined in Reference Record.`)}const o=callFunction(t,n);n.logger?.debug?.(`${p} evaluateCondition: ${toDebugString(t)} = ${toDebugString(o)}`);return{result:o===""?true:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};const evaluateConditions=(e=[],t)=>{const n={};for(const o of e){const{result:e,toAssign:i}=evaluateCondition(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e){return{result:e}}if(i){n[i.name]=i.value;t.logger?.debug?.(`${p} assign: ${i.name} := ${toDebugString(i.value)}`)}}return{result:true,referenceRecord:n}};const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:o.map((e=>{const o=evaluateExpression(e,"Header value entry",t);if(typeof o!=="string"){throw new EndpointError(`Header '${n}' value '${o}' is not a string`)}return o}))})),{});const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:v.getEndpointProperty(o,t)})),{});const getEndpointProperty=(e,t)=>{if(Array.isArray(e)){return e.map((e=>getEndpointProperty(e,t)))}switch(typeof e){case"string":return evaluateTemplate(e,t);case"object":if(e===null){throw new EndpointError(`Unexpected endpoint property: ${e}`)}return v.getEndpointProperties(e,t);case"boolean":return e;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};const v={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(e,t)=>{const n=evaluateExpression(e,"Endpoint URL",t);if(typeof n==="string"){try{return new URL(n)}catch(e){console.error(`Failed to construct URL with ${n}`,e);throw e}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};const evaluateEndpointRule=(e,t)=>{const{conditions:n,endpoint:o}=e;const{result:i,referenceRecord:c}=evaluateConditions(n,t);if(!i){return}const d={...t,referenceRecord:{...t.referenceRecord,...c}};const{url:y,properties:C,headers:Q}=o;t.logger?.debug?.(`${p} Resolving endpoint from template: ${toDebugString(o)}`);return{...Q!=undefined&&{headers:getEndpointHeaders(Q,d)},...C!=undefined&&{properties:getEndpointProperties(C,d)},url:getEndpointUrl(y,d)}};const evaluateErrorRule=(e,t)=>{const{conditions:n,error:o}=e;const{result:i,referenceRecord:c}=evaluateConditions(n,t);if(!i){return}throw new EndpointError(evaluateExpression(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))};const evaluateRules=(e,t)=>{for(const n of e){if(n.type==="endpoint"){const e=evaluateEndpointRule(n,t);if(e){return e}}else if(n.type==="error"){evaluateErrorRule(n,t)}else if(n.type==="tree"){const e=D.evaluateTreeRule(n,t);if(e){return e}}else{throw new EndpointError(`Unknown endpoint rule: ${n}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(e,t)=>{const{conditions:n,rules:o}=e;const{result:i,referenceRecord:c}=evaluateConditions(n,t);if(!i){return}return D.evaluateRules(o,{...t,referenceRecord:{...t.referenceRecord,...c}})};const D={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(e,t)=>{const{endpointParams:n,logger:o}=t;const{parameters:i,rules:c}=e;t.logger?.debug?.(`${p} Initial EndpointParams: ${toDebugString(n)}`);const d=Object.entries(i).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(d.length>0){for(const[e,t]of d){n[e]=n[e]??t}}const y=Object.entries(i).filter((([,e])=>e.required)).map((([e])=>e));for(const e of y){if(n[e]==null){throw new EndpointError(`Missing required parameter: '${e}'`)}}const C=evaluateRules(c,{endpointParams:n,logger:o,referenceRecord:{}});t.logger?.debug?.(`${p} Resolved endpoint: ${toDebugString(C)}`);return C};t.EndpointCache=EndpointCache;t.EndpointError=EndpointError;t.customEndpointFunctions=d;t.isIpAddress=isIpAddress;t.isValidHostLabel=isValidHostLabel;t.resolveEndpoint=resolveEndpoint},6435:(e,t)=>{const n={};const o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}n[e]=t;o[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2).toLowerCase();if(i in o){t[n/2]=o[i]}else{throw new Error(`Cannot decode unrecognized sequence ${i} as hexadecimal`)}}return t}function toHex(e){let t="";for(let o=0;o<e.byteLength;o++){t+=n[e[o]]}return t}t.fromHex=fromHex;t.toHex=toHex},6324:(e,t,n)=>{var o=n(690);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.getSmithyContext=getSmithyContext;t.normalizeProvider=normalizeProvider},5518:(e,t,n)=>{var o=n(2058);t.RETRY_MODES=void 0;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(t.RETRY_MODES||(t.RETRY_MODES={}));const i=3;const c=t.RETRY_MODES.STANDARD;class DefaultRateLimiter{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=false;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7;this.minCapacity=e?.minCapacity??1;this.minFillRate=e?.minFillRate??.5;this.scaleConstant=e?.scaleConstant??.4;this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>DefaultRateLimiter.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if(o.isThrottlingError(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const d=100;const p=20*1e3;const y=500;const C=500;const Q=5;const v=10;const D=1;const k="amz-sdk-invocation-id";const $="amz-sdk-request";const getDefaultRetryBackoffStrategy=()=>{let e=d;const computeNextBackoffDelay=t=>Math.floor(Math.min(p,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};const createDefaultRetryToken=({retryDelay:e,retryCount:t,retryCost:n})=>{const getRetryCount=()=>t;const getRetryDelay=()=>Math.min(p,e);const getRetryCost=()=>n;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};class StandardRetryStrategy{maxAttempts;mode=t.RETRY_MODES.STANDARD;capacity=C;retryBackoffStrategy=getDefaultRetryBackoffStrategy();maxAttemptsProvider;constructor(e){this.maxAttempts=e;this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return createDefaultRetryToken({retryDelay:d,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?y:d);const o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,o):o;const c=this.getCapacityCost(n);this.capacity-=c;return createDefaultRetryToken({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:c})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(C,this.capacity+(e.getRetryCost()??D))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${i}`);return i}}shouldRetry(e,t,n){const o=e.getRetryCount()+1;return o<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?v:Q}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class AdaptiveRetryStrategy{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=t.RETRY_MODES.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new DefaultRateLimiter;this.standardRetryStrategy=new StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}class ConfiguredRetryStrategy extends StandardRetryStrategy{computeNextBackoffDelay;constructor(e,t=d){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const n=await super.refreshRetryTokenForRetry(e,t);n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount());return n}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.ConfiguredRetryStrategy=ConfiguredRetryStrategy;t.DEFAULT_MAX_ATTEMPTS=i;t.DEFAULT_RETRY_DELAY_BASE=d;t.DEFAULT_RETRY_MODE=c;t.DefaultRateLimiter=DefaultRateLimiter;t.INITIAL_RETRY_TOKENS=C;t.INVOCATION_ID_HEADER=k;t.MAXIMUM_RETRY_DELAY=p;t.NO_RETRY_INCREMENT=D;t.REQUEST_HEADER=$;t.RETRY_COST=Q;t.StandardRetryStrategy=StandardRetryStrategy;t.THROTTLING_RETRY_DELAY_BASE=y;t.TIMEOUT_RETRY_COST=v},1732:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ByteArrayCollector=void 0;class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e);this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const e=this.byteArrays[0];this.reset();return e}const e=this.allocByteArray(this.byteLength);let t=0;for(let n=0;n<this.byteArrays.length;++n){const o=this.byteArrays[n];e.set(o,t);t+=o.byteLength}this.reset();return e}reset(){this.byteArrays=[];this.byteLength=0}}t.ByteArrayCollector=ByteArrayCollector},7753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const n=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends n{}t.ChecksumStream=ChecksumStream},1775:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const o=n(8385);const i=n(2203);class ChecksumStream extends i.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:i,base64Encoder:c}){super();if(typeof n.pipe==="function"){this.source=n}else{throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}this.base64Encoder=c??o.toBase64;this.expectedChecksum=e;this.checksum=t;this.checksumSourceLocation=i;this.source.pipe(this)}_read(e){if(this.pendingCallback){const e=this.pendingCallback;this.pendingCallback=null;e()}}_write(e,t,n){try{this.checksum.update(e);const t=this.push(e);if(!t){this.pendingCallback=n;return}}catch(e){return n(e)}return n()}async _final(e){try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(t){return e(t)}this.push(null);return e()}}t.ChecksumStream=ChecksumStream},4129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=void 0;const o=n(8385);const i=n(4414);const c=n(7753);const createChecksumStream=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:d,base64Encoder:p})=>{if(!(0,i.isReadableStream)(n)){throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}const y=p??o.toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const C=new TransformStream({start(){},async transform(e,n){t.update(e);n.enqueue(e)},async flush(n){const o=await t.digest();const i=y(o);if(e!==i){const t=new Error(`Checksum mismatch: expected "${e}" but received "${i}"`+` in response header "${d}".`);n.error(t)}else{n.terminate()}}});n.pipeThrough(C);const Q=C.readable;Object.setPrototypeOf(Q,c.ChecksumStream.prototype);return Q};t.createChecksumStream=createChecksumStream},5639:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=createChecksumStream;const o=n(4414);const i=n(1775);const c=n(4129);function createChecksumStream(e){if(typeof ReadableStream==="function"&&(0,o.isReadableStream)(e.source)){return(0,c.createChecksumStream)(e)}return new i.ChecksumStream(e)}},2005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=createBufferedReadable;const o=n(7075);const i=n(1732);const c=n(8213);const d=n(4414);function createBufferedReadable(e,t,n){if((0,d.isReadableStream)(e)){return(0,c.createBufferedReadableStream)(e,t,n)}const p=new o.Readable({read(){}});let y=false;let C=0;const Q=["",new i.ByteArrayCollector((e=>new Uint8Array(e))),new i.ByteArrayCollector((e=>Buffer.from(new Uint8Array(e))))];let v=-1;e.on("data",(e=>{const o=(0,c.modeOf)(e,true);if(v!==o){if(v>=0){p.push((0,c.flush)(Q,v))}v=o}if(v===-1){p.push(e);return}const i=(0,c.sizeOf)(e);C+=i;const d=(0,c.sizeOf)(Q[v]);if(i>=t&&d===0){p.push(e)}else{const o=(0,c.merge)(Q,v,e);if(!y&&C>t*2){y=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){p.push((0,c.flush)(Q,v))}}}));e.on("end",(()=>{if(v!==-1){const e=(0,c.flush)(Q,v);if((0,c.sizeOf)(e)>0){p.push(e)}}p.push(null)}));return p}},8213:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=void 0;t.createBufferedReadableStream=createBufferedReadableStream;t.merge=merge;t.flush=flush;t.sizeOf=sizeOf;t.modeOf=modeOf;const o=n(1732);function createBufferedReadableStream(e,t,n){const i=e.getReader();let c=false;let d=0;const p=["",new o.ByteArrayCollector((e=>new Uint8Array(e)))];let y=-1;const pull=async e=>{const{value:o,done:C}=await i.read();const Q=o;if(C){if(y!==-1){const t=flush(p,y);if(sizeOf(t)>0){e.enqueue(t)}}e.close()}else{const o=modeOf(Q,false);if(y!==o){if(y>=0){e.enqueue(flush(p,y))}y=o}if(y===-1){e.enqueue(Q);return}const i=sizeOf(Q);d+=i;const C=sizeOf(p[y]);if(i>=t&&C===0){e.enqueue(Q)}else{const o=merge(p,y,Q);if(!c&&d>t*2){c=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){e.enqueue(flush(p,y))}else{await pull(e)}}}};return new ReadableStream({pull:pull})}t.createBufferedReadable=createBufferedReadableStream;function merge(e,t,n){switch(t){case 0:e[0]+=n;return sizeOf(e[0]);case 1:case 2:e[t].push(n);return sizeOf(e[t])}}function flush(e,t){switch(t){case 0:const n=e[0];e[0]="";return n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function sizeOf(e){return e?.byteLength??e?.length??0}function modeOf(e,t=true){if(t&&typeof Buffer!=="undefined"&&e instanceof Buffer){return 2}if(e instanceof Uint8Array){return 1}if(typeof e==="string"){return 0}return-1}},3492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=void 0;const getAwsChunkedEncodingStream=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:o,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:d}=t;const p=n!==undefined&&o!==undefined&&i!==undefined&&c!==undefined&&d!==undefined;const y=p?d(i,e):undefined;const C=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:i}=await C.read();if(i){e.enqueue(`0\r\n`);if(p){const t=n(await y);e.enqueue(`${c}:${t}\r\n`);e.enqueue(`\r\n`)}e.close()}else{e.enqueue(`${(o(t)||0).toString(16)}\r\n${t}\r\n`)}}})};t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},6522:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;const o=n(7075);const i=n(3492);const c=n(4414);function getAwsChunkedEncodingStream(e,t){const n=e;const d=e;if((0,c.isReadableStream)(d)){return(0,i.getAwsChunkedEncodingStream)(d,t)}const{base64Encoder:p,bodyLengthChecker:y,checksumAlgorithmFn:C,checksumLocationName:Q,streamHasher:v}=t;const D=p!==undefined&&C!==undefined&&Q!==undefined&&v!==undefined;const k=D?v(C,n):undefined;const $=new o.Readable({read:()=>{}});n.on("data",(e=>{const t=y(e)||0;if(t===0){return}$.push(`${t.toString(16)}\r\n`);$.push(e);$.push("\r\n")}));n.on("end",(async()=>{$.push(`0\r\n`);if(D){const e=p(await k);$.push(`${Q}:${e}\r\n`);$.push(`\r\n`)}$.push(null)}));return $}},66:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=headStream;async function headStream(e,t){let n=0;const o=[];const i=e.getReader();let c=false;while(!c){const{done:e,value:d}=await i.read();if(d){o.push(d);n+=d?.byteLength??0}if(n>=t){break}c=e}i.releaseLock();const d=new Uint8Array(Math.min(t,n));let p=0;for(const e of o){if(e.byteLength>d.byteLength-p){d.set(e.subarray(0,d.byteLength-p),p);break}else{d.set(e,p)}p+=e.length}return d}},8412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=void 0;const o=n(2203);const i=n(66);const c=n(4414);const headStream=(e,t)=>{if((0,c.isReadableStream)(e)){return(0,i.headStream)(e,t)}return new Promise(((n,o)=>{const i=new Collector;i.limit=t;e.pipe(i);e.on("error",(e=>{i.end();o(e)}));i.on("error",o);i.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.buffers));n(e)}))}))};t.headStream=headStream;class Collector extends o.Writable{buffers=[];limit=Infinity;bytesBuffered=0;_write(e,t,n){this.buffers.push(e);this.bytesBuffered+=e.byteLength??0;if(this.bytesBuffered>=this.limit){const e=this.bytesBuffered-this.limit;const t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e);this.emit("finish")}n()}}},4252:(e,t,n)=>{var o=n(8385);var i=n(1577);var c=n(1775);var d=n(5639);var p=n(2005);var y=n(6522);var C=n(8412);var Q=n(7201);var v=n(2108);var D=n(4414);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,t="utf-8"){if(typeof e==="string"){if(t==="base64"){return Uint8ArrayBlobAdapter.mutate(o.fromBase64(e))}return Uint8ArrayBlobAdapter.mutate(i.fromUtf8(e))}throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){if(e==="base64"){return o.toBase64(this)}return i.toUtf8(this)}}t.isBlob=D.isBlob;t.isReadableStream=D.isReadableStream;t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;Object.prototype.hasOwnProperty.call(c,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:c["__proto__"]});Object.keys(c).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=c[e]}));Object.prototype.hasOwnProperty.call(d,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:d["__proto__"]});Object.keys(d).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=d[e]}));Object.prototype.hasOwnProperty.call(p,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:p["__proto__"]});Object.keys(p).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=p[e]}));Object.prototype.hasOwnProperty.call(y,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:y["__proto__"]});Object.keys(y).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=y[e]}));Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=C[e]}));Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:Q["__proto__"]});Object.keys(Q).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=Q[e]}));Object.prototype.hasOwnProperty.call(v,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:v["__proto__"]});Object.keys(v).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=v[e]}))},2207:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(7809);const i=n(8385);const c=n(6435);const d=n(1577);const p=n(4414);const y="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!isBlobInstance(e)&&!(0,p.isReadableStream)(e)){const t=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(y)}t=true;return await(0,o.streamCollector)(e)};const blobToWebStream=e=>{if(typeof e.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return e.stream()};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e==="base64"){return(0,i.toBase64)(t)}else if(e==="hex"){return(0,c.toHex)(t)}else if(e===undefined||e==="utf8"||e==="utf-8"){return(0,d.toUtf8)(t)}else if(typeof TextDecoder==="function"){return new TextDecoder(e).decode(t)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(t){throw new Error(y)}t=true;if(isBlobInstance(e)){return blobToWebStream(e)}else if((0,p.isReadableStream)(e)){return e}else{throw new Error(`Cannot transform payload to web stream, got ${e}`)}}})};t.sdkStreamMixin=sdkStreamMixin;const isBlobInstance=e=>typeof Blob==="function"&&e instanceof Blob},7201:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(1279);const i=n(4151);const c=n(2203);const d=n(2207);const p="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!(e instanceof c.Readable)){try{return(0,d.sdkStreamMixin)(e)}catch(t){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(p)}t=true;return await(0,o.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,i.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const n=new TextDecoder(e);return n.decode(t)}},transformToWebStream:()=>{if(t){throw new Error(p)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof c.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}t=true;return c.Readable.toWeb(e)}})};t.sdkStreamMixin=sdkStreamMixin},7570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;async function splitStream(e){if(typeof e.stream==="function"){e=e.stream()}const t=e;return t.tee()}},2108:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;const o=n(2203);const i=n(7570);const c=n(4414);async function splitStream(e){if((0,c.isReadableStream)(e)||(0,c.isBlob)(e)){return(0,i.splitStream)(e)}const t=new o.PassThrough;const n=new o.PassThrough;e.pipe(t);e.pipe(n);return[t,n]}},4414:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isBlob=t.isReadableStream=void 0;const isReadableStream=e=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);t.isReadableStream=isReadableStream;const isBlob=e=>typeof Blob==="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);t.isBlob=isBlob},146:(e,t)=>{const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=e=>e.split("/").map(escapeUri).join("/");t.escapeUri=escapeUri;t.escapeUriPath=escapeUriPath},1577:(e,t,n)=>{var o=n(4151);const fromUtf8=e=>{const t=o.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toUint8Array=e=>{if(typeof e==="string"){return fromUtf8(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};const toUtf8=e=>{if(typeof e==="string"){return e}if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};t.fromUtf8=fromUtf8;t.toUint8Array=toUint8Array;t.toUtf8=toUtf8},5290:(e,t)=>{const getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if(typeof n==="object"&&n!==null){if(e.has(n)){return"[Circular]"}e.add(n)}return n}};const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));const n={minDelay:2,maxDelay:120};t.WaiterState=void 0;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===t.WaiterState.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},getCircularReplacer())}`);t.name="AbortError";throw t}else if(e.state===t.WaiterState.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},getCircularReplacer())}`);t.name="TimeoutError";throw t}else if(e.state!==t.WaiterState.SUCCESS){throw new Error(`${JSON.stringify(e,getCircularReplacer())}`)}return e};const exponentialBackoffWithJitter=(e,t,n,o)=>{if(o>n)return t;const i=e*2**(o-1);return randomInRange(e,i)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:n,maxWaitTime:o,abortController:i,client:c,abortSignal:d},p,y)=>{const C={};const{state:Q,reason:v}=await y(c,p);if(v){const e=createMessageFromResponse(v);C[e]|=0;C[e]+=1}if(Q!==t.WaiterState.RETRY){return{state:Q,reason:v,observedResponses:C}}let D=1;const k=Date.now()+o*1e3;const $=Math.log(n/e)/Math.log(2)+1;while(true){if(i?.signal?.aborted||d?.aborted){const e="AbortController signal aborted.";C[e]|=0;C[e]+=1;return{state:t.WaiterState.ABORTED,observedResponses:C}}const o=exponentialBackoffWithJitter(e,n,$,D);if(Date.now()+o*1e3>k){return{state:t.WaiterState.TIMEOUT,observedResponses:C}}await sleep(o);const{state:Q,reason:v}=await y(c,p);if(v){const e=createMessageFromResponse(v);C[e]|=0;C[e]+=1}if(Q!==t.WaiterState.RETRY){return{state:Q,reason:v,observedResponses:C}}D+=1}};const createMessageFromResponse=e=>{if(e?.$responseBodyText){return`Deserialization error for body: ${e.$responseBodyText}`}if(e?.$metadata?.httpStatusCode){if(e.$response||e.message){return`${e.$response.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`}return`${e.$metadata.httpStatusCode}: OK`}return String(e?.message??JSON.stringify(e,getCircularReplacer())??"Unknown")};const validateWaiterOptions=e=>{if(e.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};const abortTimeout=e=>{let n;const o=new Promise((o=>{n=()=>o({state:t.WaiterState.ABORTED});if(typeof e.addEventListener==="function"){e.addEventListener("abort",n)}else{e.onabort=n}}));return{clearListener(){if(typeof e.removeEventListener==="function"){e.removeEventListener("abort",n)}},aborted:o}};const createWaiter=async(e,t,o)=>{const i={...n,...e};validateWaiterOptions(i);const c=[runPolling(i,t,o)];const d=[];if(e.abortSignal){const{aborted:t,clearListener:n}=abortTimeout(e.abortSignal);d.push(n);c.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:n}=abortTimeout(e.abortController.signal);d.push(n);c.push(t)}return Promise.race(c).then((e=>{for(const e of d){e()}return e}))};t.checkExceptions=checkExceptions;t.createWaiter=createWaiter;t.waiterServiceDefaults=n},266:(e,t,n)=>{var o=n(8492);const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const v4=()=>{if(o.randomUUID){return o.randomUUID()}const e=new Uint8Array(16);crypto.getRandomValues(e);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return i[e[0]]+i[e[1]]+i[e[2]]+i[e[3]]+"-"+i[e[4]]+i[e[5]]+"-"+i[e[6]]+i[e[7]]+"-"+i[e[8]]+i[e[9]]+"-"+i[e[10]]+i[e[11]]+i[e[12]]+i[e[13]]+i[e[14]]+i[e[15]]};t.v4=v4},8492:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=void 0;const o=n(1860);const i=o.__importDefault(n(6982));t.randomUUID=i.default.randomUUID.bind(i.default)},5183:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const d=c(n(8611));const p=c(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?p:d).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},8894:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const p=c(n(8611));d(n(5183),t);const y=Symbol("AgentBaseInternalState");class Agent extends p.Agent{constructor(e){super(e);this[y]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};Promise.resolve().then((()=>this.connect(e,o))).then((i=>{if(i instanceof p.Agent){return i.addRequest(e,o)}this[y].currentSocket=i;super.createSocket(e,t,n)}),n)}createConnection(){const e=this[y].currentSocket;this[y].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[y].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[y]){this[y].defaultPort=e}}get protocol(){return this[y].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[y]){this[y].protocol=e}}}t.Agent=Agent},9380:e=>{e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var o=range(e,t,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var o,i,c,d,p;var y=n.indexOf(e);var C=n.indexOf(t,y+1);var Q=y;if(y>=0&&C>0){if(e===t){return[y,C]}o=[];c=n.length;while(Q>=0&&!p){if(Q==y){o.push(Q);y=n.indexOf(e,Q+1)}else if(o.length==1){p=[o.pop(),C]}else{i=o.pop();if(i<c){c=i;d=C}C=n.indexOf(t,Q+1)}Q=y<C&&y>=0?y:C}if(o.length){p=[c,d]}}return p}},7087:e=>{e.exports=function(e,n){var o=[];for(var i=0;i<e.length;i++){var c=n(e[i],i);if(t(c))o.push.apply(o,c);else o.push(c)}return o};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},6110:(e,t,n)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){i=o}}));t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(897)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let n=null;let o;let i;function debug(...e){if(!debug.enabled){return}const n=debug;const o=Number(new Date);const i=o-(t||o);n.diff=i;n.prev=t;n.curr=o;t=o;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let c=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,o)=>{if(t==="%%"){return"%"}c++;const i=createDebug.formatters[o];if(typeof i==="function"){const o=e[c];t=i.call(n,o);e.splice(c,1);c--}return t}));createDebug.formatArgs.call(n,e);const d=n.log||createDebug.log;d.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const o=n.length;for(t=0;t<o;t++){if(!n[t]){continue}e=n[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t<n;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,n=createDebug.names.length;t<n;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(5108)}},5108:(e,t,n)=>{const o=n(2018);const i=n(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const i="[3"+(o<8?o:"8;5;"+o);const c=` ${i};1m${n} [0m`;t[0]=c+t[0].split("\n").join("\n"+c);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;o<n.length;o++){e.inspectOpts[n[o]]=t.inspectOpts[n[o]]}}e.exports=n(897)(t);const{formatters:c}=e.exports;c.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};c.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},3813:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const i=t.indexOf("--");return o!==-1&&(i===-1||o<i)}},1970:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpProxyAgent=void 0;const p=c(n(9278));const y=c(n(4756));const C=d(n(2830));const Q=n(4434);const v=n(8894);const D=n(7016);const k=(0,C.default)("http-proxy-agent");class HttpProxyAgent extends v.Agent{constructor(e,t){super(t);this.proxy=typeof e==="string"?new D.URL(e):e;this.proxyHeaders=t?.headers??{};k("Creating new HttpProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...t?omit(t,"headers"):null,host:n,port:o}}addRequest(e,t){e._header=null;this.setRequestProps(e,t);super.addRequest(e,t)}setRequestProps(e,t){const{proxy:n}=this;const o=t.secureEndpoint?"https:":"http:";const i=e.getHeader("host")||"localhost";const c=`${o}//${i}`;const d=new D.URL(e.path,c);if(t.port!==80){d.port=String(t.port)}e.path=String(d);const p=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;p["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!p["Proxy-Connection"]){p["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const t of Object.keys(p)){const n=p[t];if(n){e.setHeader(t,n)}}}async connect(e,t){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,t)}let n;let o;k("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){k("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);k("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){k("Creating `tls.Socket`: %o",this.connectOpts);i=y.connect(this.connectOpts)}else{k("Creating `net.Socket`: %o",this.connectOpts);i=p.connect(this.connectOpts)}await(0,Q.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},3669:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const p=c(n(9278));const y=c(n(4756));const C=d(n(2613));const Q=d(n(2830));const v=n(3333);const D=n(7016);const k=n(7943);const $=(0,Q.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!p.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends v.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new D.URL(e):e;this.proxyHeaders=t?.headers??{};$("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){$("Creating `tls.Socket`: %o",this.connectOpts);o=y.connect(setServernameFromNonIpHost(this.connectOpts))}else{$("Creating `net.Socket`: %o",this.connectOpts);o=p.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const c=p.isIPv6(t.host)?`[${t.host}]`:t.host;let d=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${c}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){d+=`${e}: ${i[e]}\r\n`}const Q=(0,k.parseProxyResponse)(o);o.write(`${d}\r\n`);const{connect:v,buffered:D}=await Q;e.emit("proxyConnect",v);this.emit("proxyConnect",v,e);if(v.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){$("Upgrading socket connection to TLS");return y.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const V=new p.Socket({writable:false});V.readable=true;e.once("socket",(e=>{$("Replaying proxy buffer for failed request");(0,C.default)(e.listenerCount("data")>0);e.push(D);e.push(null)}));return V}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},7943:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const i=o(n(2830));const c=(0,i.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();c("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();c("onerror %o",e);n(e)}function ondata(d){i.push(d);o+=d.length;const p=Buffer.concat(i,o);const y=p.indexOf("\r\n\r\n");if(y===-1){c("have not received end of HTTP headers yet...");read();return}const C=p.slice(0,y).toString("ascii").split("\r\n");const Q=C.shift();if(!Q){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const v=Q.split(" ");const D=+v[1];const k=v.slice(2).join(" ");const $={};for(const t of C){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const c=t.slice(o+1).trimStart();const d=$[i];if(typeof d==="string"){$[i]=[d,c]}else if(Array.isArray(d)){d.push(c)}else{$[i]=c}}c("got proxy server response: %o %o",Q,$);cleanup();t({connect:{statusCode:D,statusText:k,headers:$},buffered:p})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},8515:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const d=c(n(8611));const p=c(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?p:d).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},3333:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const p=c(n(9278));const y=c(n(8611));const C=n(5692);d(n(8515),t);const Q=Symbol("AgentBaseInternalState");class Agent extends y.Agent{constructor(e){super(e);this[Q]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new p.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=typeof e.secureEndpoint==="boolean"?e.secureEndpoint:this.isSecureEndpoint(e);if(t){return C.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const c=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((d=>{this.decrementSockets(i,c);if(d instanceof y.Agent){try{return d.addRequest(e,o)}catch(e){return n(e)}}this[Q].currentSocket=d;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,c);n(e)}))}createConnection(){const e=this[Q].currentSocket;this[Q].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[Q].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[Q]){this[Q].defaultPort=e}}get protocol(){return this[Q].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[Q]){this[Q].protocol=e}}}t.Agent=Agent},3772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var o=function(){try{return n(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=o.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var c=n(3783);var d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var p="[^/]";var y=p+"*?";var C="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var Q="(?:(?!(?:\\/|^)\\.).)*?";var v=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var D=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,o,i){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,o,i){return t(n,o,ext(e,i))};n.Minimatch=function Minimatch(n,o){return new t.Minimatch(n,ext(e,o))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,o){return t.filter(n,ext(e,o))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,o){return t.makeRe(n,ext(e,o))};n.braceExpand=function braceExpand(n,o){return t.braceExpand(n,ext(e,o))};n.match=function(n,o,i){return t.match(n,o,ext(e,i))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&o.sep!=="/"){e=e.split(o.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(D)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var o=0;if(n.nonegate)return;for(var i=0,c=e.length;i<c&&e.charAt(i)==="!";i++){t=!t;o++}if(o)this.pattern=e.substr(o);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return c(e)}var k=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>k){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var $={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return i;else e="*"}if(e==="")return"";var o="";var c=!!n.nocase;var C=false;var Q=[];var D=[];var k;var V=false;var ee=-1;var te=-1;var re=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ne=this;function clearStateChar(){if(k){switch(k){case"*":o+=y;c=true;break;case"?":o+=p;c=true;break;default:o+="\\"+k;break}ne.debug("clearStateChar %j %j",k,o);k=false}}for(var se=0,oe=e.length,ie;se<oe&&(ie=e.charAt(se));se++){this.debug("%s\t%s %s %j",e,se,o,ie);if(C&&v[ie]){o+="\\"+ie;C=false;continue}switch(ie){case"/":{return false}case"\\":clearStateChar();C=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,se,o,ie);if(V){this.debug(" in class");if(ie==="!"&&se===te+1)ie="^";o+=ie;continue}ne.debug("call clearStateChar %j",k);clearStateChar();k=ie;if(n.noext)clearStateChar();continue;case"(":if(V){o+="(";continue}if(!k){o+="\\(";continue}Q.push({type:k,start:se-1,reStart:o.length,open:d[k].open,close:d[k].close});o+=k==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",k,o);k=false;continue;case")":if(V||!Q.length){o+="\\)";continue}clearStateChar();c=true;var ae=Q.pop();o+=ae.close;if(ae.type==="!"){D.push(ae)}ae.reEnd=o.length;continue;case"|":if(V||!Q.length||C){o+="\\|";C=false;continue}clearStateChar();o+="|";continue;case"[":clearStateChar();if(V){o+="\\"+ie;continue}V=true;te=se;ee=o.length;o+=ie;continue;case"]":if(se===te+1||!V){o+="\\"+ie;C=false;continue}var ce=e.substring(te+1,se);try{RegExp("["+ce+"]")}catch(e){var le=this.parse(ce,$);o=o.substr(0,ee)+"\\["+le[0]+"\\]";c=c||le[1];V=false;continue}c=true;V=false;o+=ie;continue;default:clearStateChar();if(C){C=false}else if(v[ie]&&!(ie==="^"&&V)){o+="\\"}o+=ie}}if(V){ce=e.substr(te+1);le=this.parse(ce,$);o=o.substr(0,ee)+"\\["+le[0];c=c||le[1]}for(ae=Q.pop();ae;ae=Q.pop()){var ue=o.slice(ae.reStart+ae.open.length);this.debug("setting tail",o,ae);ue=ue.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){if(!n){n="\\"}return t+t+n+"|"}));this.debug("tail=%j\n %s",ue,ue,ae,o);var de=ae.type==="*"?y:ae.type==="?"?p:"\\"+ae.type;c=true;o=o.slice(0,ae.reStart)+de+"\\("+ue}clearStateChar();if(C){o+="\\\\"}var pe=false;switch(o.charAt(0)){case"[":case".":case"(":pe=true}for(var Ae=D.length-1;Ae>-1;Ae--){var me=D[Ae];var ge=o.slice(0,me.reStart);var fe=o.slice(me.reStart,me.reEnd-8);var he=o.slice(me.reEnd-8,me.reEnd);var ye=o.slice(me.reEnd);he+=ye;var Ee=ge.split("(").length-1;var Ce=ye;for(se=0;se<Ee;se++){Ce=Ce.replace(/\)[+*?]?/,"")}ye=Ce;var Ie="";if(ye===""&&t!==$){Ie="$"}var be=ge+fe+ye+Ie+he;o=be}if(o!==""&&c){o="(?=.)"+o}if(pe){o=re+o}if(t===$){return[o,c]}if(!c){return globUnescape(e)}var Se=n.nocase?"i":"";try{var Be=new RegExp("^"+o+"$",Se)}catch(e){return new RegExp("$.")}Be._glob=e;Be._src=o;return Be}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var n=t.noglobstar?y:t.dot?C:Q;var o=t.nocase?"i":"";var c=e.map((function(e){return e.map((function(e){return e===i?n:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");c="^(?:"+c+")$";if(this.negate)c="^(?!"+c+").*$";try{this.regexp=new RegExp(c,o)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,n){n=n||{};var o=new Minimatch(t,n);e=e.filter((function(e){return o.match(e)}));if(o.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var n=this.options;if(o.sep!=="/"){e=e.split(o.sep).join("/")}e=e.split(D);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var c;var d;for(d=e.length-1;d>=0;d--){c=e[d];if(c)break}for(d=0;d<i.length;d++){var p=i[d];var y=e;if(n.matchBase&&p.length===1){y=[c]}var C=this.matchOne(y,p,t);if(C){if(n.flipNegate)return true;return!this.negate}}if(n.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,n){var o=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var c=0,d=0,p=e.length,y=t.length;c<p&&d<y;c++,d++){this.debug("matchOne loop");var C=t[d];var Q=e[c];this.debug(t,C,Q);if(C===false)return false;if(C===i){this.debug("GLOBSTAR",[t,C,Q]);var v=c;var D=d+1;if(D===y){this.debug("** at the end");for(;c<p;c++){if(e[c]==="."||e[c]===".."||!o.dot&&e[c].charAt(0)===".")return false}return true}while(v<p){var k=e[v];this.debug("\nglobstar while",e,v,t,D,k);if(this.matchOne(e.slice(v),t.slice(D),n)){this.debug("globstar found match!",v,p,k);return true}else{if(k==="."||k===".."||!o.dot&&k.charAt(0)==="."){this.debug("dot detected!",e,v,t,D);break}this.debug("globstar swallow a segment, and continue");v++}}if(n){this.debug("\n>>> no match, partial?",e,v,t,D);if(v===p)return true}return false}var $;if(typeof C==="string"){$=Q===C;this.debug("string match",C,Q,$)}else{$=Q.match(C);this.debug("pattern match",C,Q,$)}if(!$)return false}if(c===p&&d===y){return true}else if(c===p){return n}else if(d===y){return c===p-1&&e[c]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3783:(e,t,n)=>{var o=n(7087);var i=n(9380);e.exports=expandTop;var c="\0SLASH"+Math.random()+"\0";var d="\0OPEN"+Math.random()+"\0";var p="\0CLOSE"+Math.random()+"\0";var y="\0COMMA"+Math.random()+"\0";var C="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(c).split("\\{").join(d).split("\\}").join(p).split("\\,").join(y).split("\\.").join(C)}function unescapeBraces(e){return e.split(c).join("\\").split(d).join("{").split(p).join("}").split(y).join(",").split(C).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=i("{","}",e);if(!n)return e.split(",");var o=n.pre;var c=n.body;var d=n.post;var p=o.split(",");p[p.length-1]+="{"+c+"}";var y=parseCommaParts(d);if(d.length){p[p.length-1]+=y.shift();p.push.apply(p,y)}t.push.apply(t,p);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var c=i("{","}",e);if(!c||/\$$/.test(c.pre))return[e];var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body);var C=d||y;var Q=c.body.indexOf(",")>=0;if(!C&&!Q){if(c.post.match(/,(?!,).*\}/)){e=c.pre+"{"+c.body+p+c.post;return expand(e)}return[e]}var v;if(C){v=c.body.split(/\.\./)}else{v=parseCommaParts(c.body);if(v.length===1){v=expand(v[0],false).map(embrace);if(v.length===1){var D=c.post.length?expand(c.post,false):[""];return D.map((function(e){return c.pre+v[0]+e}))}}}var k=c.pre;var D=c.post.length?expand(c.post,false):[""];var $;if(C){var V=numeric(v[0]);var ee=numeric(v[1]);var te=Math.max(v[0].length,v[1].length);var re=v.length==3?Math.abs(numeric(v[2])):1;var ne=lte;var se=ee<V;if(se){re*=-1;ne=gte}var oe=v.some(isPadded);$=[];for(var ie=V;ne(ie,ee);ie+=re){var ae;if(y){ae=String.fromCharCode(ie);if(ae==="\\")ae=""}else{ae=String(ie);if(oe){var ce=te-ae.length;if(ce>0){var le=new Array(ce+1).join("0");if(ie<0)ae="-"+le+ae.slice(1);else ae=le+ae}}}$.push(ae)}}else{$=o(v,(function(e){return expand(e,false)}))}for(var ue=0;ue<$.length;ue++){for(var de=0;de<D.length;de++){var pe=k+$[ue]+D[de];if(!t||C||pe)n.push(pe)}}return n}},744:e=>{var t=1e3;var n=t*60;var o=n*60;var i=o*24;var c=i*7;var d=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!p){return}var y=parseFloat(p[1]);var C=(p[2]||"ms").toLowerCase();switch(C){case"years":case"year":case"yrs":case"yr":case"y":return y*d;case"weeks":case"week":case"w":return y*c;case"days":case"day":case"d":return y*i;case"hours":case"hour":case"hrs":case"hr":case"h":return y*o;case"minutes":case"minute":case"mins":case"min":case"m":return y*n;case"seconds":case"second":case"secs":case"sec":case"s":return y*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return undefined}}function fmtShort(e){var c=Math.abs(e);if(c>=i){return Math.round(e/i)+"d"}if(c>=o){return Math.round(e/o)+"h"}if(c>=n){return Math.round(e/n)+"m"}if(c>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var c=Math.abs(e);if(c>=i){return plural(e,c,i,"day")}if(c>=o){return plural(e,c,o,"hour")}if(c>=n){return plural(e,c,n,"minute")}if(c>=t){return plural(e,c,t,"second")}return e+" ms"}function plural(e,t,n,o){var i=t>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}},9379:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?c[d.COMPARATORLOOSE]:c[d.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new C(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}return p(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new Q(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new Q(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(p(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(p(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(356);const{safeRe:c,t:d}=n(5471);const p=n(8646);const y=n(1159);const C=n(7163);const Q=n(6782)},6782:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=d(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof p){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0){this.formatted+="||"}const t=this.set[e];for(let e=0;e<t.length;e++){if(e>0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&V)|(this.options.loose&&ee);const n=t+":"+e;const o=c.get(n);if(o){return o}const i=this.options.loose;const d=i?Q[v.HYPHENRANGELOOSE]:Q[v.HYPHENRANGE];e=e.replace(d,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(Q[v.COMPARATORTRIM],D);y("comparator trim",e);e=e.replace(Q[v.TILDETRIM],k);y("tilde trim",e);e=e.replace(Q[v.CARETTRIM],$);y("caret trim",e);let C=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){C=C.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(Q[v.COMPARATORLOOSE])}))}y("range list",C);const te=new Map;const re=C.map((e=>new p(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];c.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const i=n(1383);const c=new i;const d=n(356);const p=n(9379);const y=n(1159);const C=n(7163);const{safeRe:Q,t:v,comparatorTrimReplace:D,tildeTrimReplace:k,caretTrimReplace:$}=n(5471);const{FLAG_INCLUDE_PRERELEASE:V,FLAG_LOOSE:ee}=n(5101);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(Q[v.BUILD],"");y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?Q[v.TILDELOOSE]:Q[v.TILDE];return e.replace(n,((t,n,o,i,c)=>{y("tilde",e,t,n,o,i,c);let d;if(isX(n)){d=""}else if(isX(o)){d=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){d=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(c){y("replaceTilde pr",c);d=`>=${n}.${o}.${i}-${c} <${n}.${+o+1}.0-0`}else{d=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}y("tilde return",d);return d}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?Q[v.CARETLOOSE]:Q[v.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,c,d)=>{y("caret",e,t,n,i,c,d);let p;if(isX(n)){p=""}else if(isX(i)){p=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(c)){if(n==="0"){p=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{p=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(d){y("replaceCaret pr",d);if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}-${d} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}-${d} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c}-${d} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}${o} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}${o} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c} <${+n+1}.0.0-0`}}y("caret return",p);return p}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?Q[v.XRANGELOOSE]:Q[v.XRANGE];return e.replace(n,((n,o,i,c,d,p)=>{y("xRange",e,n,o,i,c,d,p);const C=isX(i);const Q=C||isX(c);const v=Q||isX(d);const D=v;if(o==="="&&D){o=""}p=t.includePrerelease?"-0":"";if(C){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&D){if(Q){c=0}d=0;if(o===">"){o=">=";if(Q){i=+i+1;c=0;d=0}else{c=+c+1;d=0}}else if(o==="<="){o="<";if(Q){i=+i+1}else{c=+c+1}}if(o==="<"){p="-0"}n=`${o+i}.${c}.${d}${p}`}else if(Q){n=`>=${i}.0.0${p} <${+i+1}.0.0-0`}else if(v){n=`>=${i}.${c}.0${p} <${i}.${+c+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(Q[v.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(Q[t.includePrerelease?v.GTE0PRE:v.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,c,d,p,y,C,Q,v,D)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(c)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(d){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(C)){y=""}else if(isX(Q)){y=`<${+C+1}.0.0-0`}else if(isX(v)){y=`<${C}.${+Q+1}.0-0`}else if(D){y=`<=${C}.${Q}.${v}-${D}`}else if(e){y=`<${C}.${Q}.${+v+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++){y(e[n].semver);if(e[n].semver===p.ANY){continue}if(e[n].semver.prerelease.length>0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},7163:(e,t,n)=>{const o=n(1159);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:c}=n(5101);const{safeRe:d,t:p}=n(5471);const y=n(356);const{compareIdentifiers:C}=n(3348);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?d[p.LOOSE]:d[p.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>c||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>c||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>c||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<c){return t}}return e}))}this.build=n[5]?n[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){o("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.major<e.major){return-1}if(this.major>e.major){return 1}if(this.minor<e.minor){return-1}if(this.minor>e.minor){return 1}if(this.patch<e.patch){return-1}if(this.patch>e.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?d[p.PRERELEASELOOSE]:d[p.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(C(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,n)=>{const o=n(6353);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},8646:(e,t,n)=>{const o=n(5082);const i=n(4974);const c=n(6599);const d=n(1236);const p=n(3872);const y=n(6717);const cmp=(e,t,n,C)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,C);case"!=":return i(e,n,C);case">":return c(e,n,C);case">=":return d(e,n,C);case"<":return p(e,n,C);case"<=":return y(e,n,C);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,n)=>{const o=n(7163);const i=n(6353);const{safeRe:c,t:d}=n(5471);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?c[d.COERCEFULL]:c[d.COERCE])}else{const o=t.includePrerelease?c[d.COERCERTLFULL]:c[d.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const p=n[2];const y=n[3]||"0";const C=n[4]||"0";const Q=t.includePrerelease&&n[5]?`-${n[5]}`:"";const v=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${p}.${y}.${C}${Q}${v}`,t)};e.exports=coerce},7648:(e,t,n)=>{const o=n(7163);const compareBuild=(e,t,n)=>{const i=new o(e,n);const c=new o(t,n);return i.compare(c)||i.compareBuild(c)};e.exports=compareBuild},6874:(e,t,n)=>{const o=n(8469);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},8469:(e,t,n)=>{const o=n(7163);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},711:(e,t,n)=>{const o=n(6353);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const c=n.compare(i);if(c===0){return null}const d=c>0;const p=d?n:i;const y=d?i:n;const C=!!p.prerelease.length;const Q=!!y.prerelease.length;if(Q&&!C){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(p)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const v=C?"pre":"";if(n.major!==i.major){return v+"major"}if(n.minor!==i.minor){return v+"minor"}if(n.patch!==i.patch){return v+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,n)=>{const o=n(8469);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},6599:(e,t,n)=>{const o=n(8469);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},1236:(e,t,n)=>{const o=n(8469);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2338:(e,t,n)=>{const o=n(7163);const inc=(e,t,n,i,c)=>{if(typeof n==="string"){c=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,c).version}catch(e){return null}};e.exports=inc},3872:(e,t,n)=>{const o=n(8469);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},6717:(e,t,n)=>{const o=n(8469);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},8511:(e,t,n)=>{const o=n(7163);const major=(e,t)=>new o(e,t).major;e.exports=major},2603:(e,t,n)=>{const o=n(7163);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},4974:(e,t,n)=>{const o=n(8469);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},6353:(e,t,n)=>{const o=n(7163);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},8756:(e,t,n)=>{const o=n(7163);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5714:(e,t,n)=>{const o=n(6353);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},2173:(e,t,n)=>{const o=n(8469);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},7192:(e,t,n)=>{const o=n(7648);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},8011:(e,t,n)=>{const o=n(6782);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,n)=>{const o=n(7648);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},8780:(e,t,n)=>{const o=n(6353);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},2088:(e,t,n)=>{const o=n(5471);const i=n(5101);const c=n(7163);const d=n(3348);const p=n(6353);const y=n(8780);const C=n(1799);const Q=n(2338);const v=n(711);const D=n(8511);const k=n(2603);const $=n(8756);const V=n(5714);const ee=n(8469);const te=n(2173);const re=n(6874);const ne=n(7648);const se=n(9872);const oe=n(7192);const ie=n(6599);const ae=n(3872);const ce=n(5082);const le=n(4974);const ue=n(1236);const de=n(6717);const pe=n(8646);const Ae=n(5385);const me=n(9379);const ge=n(6782);const fe=n(8011);const he=n(4750);const ye=n(5574);const Ee=n(8595);const Ce=n(1866);const Ie=n(4737);const be=n(280);const Se=n(2276);const Be=n(5213);const we=n(3465);const Re=n(2028);const Ne=n(1489);e.exports={parse:p,valid:y,clean:C,inc:Q,diff:v,major:D,minor:k,patch:$,prerelease:V,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:se,rsort:oe,gt:ie,lt:ae,eq:ce,neq:le,gte:ue,lte:de,cmp:pe,coerce:Ae,Comparator:me,Range:ge,satisfies:fe,toComparators:he,maxSatisfying:ye,minSatisfying:Ee,minVersion:Ce,validRange:Ie,outside:be,gtr:Se,ltr:Be,intersects:we,simplifyRange:Re,subset:Ne,SemVer:c,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},5101:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const c=n-6;const d=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:o,RELEASE_TYPES:d,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:e<n?-1:1}const o=t.test(e);const i=t.test(n);if(o&&i){e=+e;n=+n}return e===n?0:o&&!i?-1:i&&!o?1:e<n?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:c}=n(5101);const d=n(1159);t=e.exports={};const p=t.re=[];const y=t.safeRe=[];const C=t.src=[];const Q=t.safeSrc=[];const v=t.t={};let D=0;const k="[a-zA-Z0-9-]";const $=[["\\s",1],["\\d",c],[k,i]];const makeSafeRegex=e=>{for(const[t,n]of $){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=D++;d(e,i,t);v[e]=i;C[i]=t;Q[i]=o;p[i]=new RegExp(t,n?"g":undefined);y[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k}*`);createToken("MAINVERSION",`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${C[v.PRERELEASEIDENTIFIER]}(?:\\.${C[v.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${C[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${C[v.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${k}+`);createToken("BUILD",`(?:\\+(${C[v.BUILDIDENTIFIER]}(?:\\.${C[v.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${C[v.MAINVERSION]}${C[v.PRERELEASE]}?${C[v.BUILD]}?`);createToken("FULL",`^${C[v.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${C[v.MAINVERSIONLOOSE]}${C[v.PRERELEASELOOSE]}?${C[v.BUILD]}?`);createToken("LOOSE",`^${C[v.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${C[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${C[v.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:${C[v.PRERELEASE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:${C[v.PRERELEASELOOSE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${C[v.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",C[v.COERCEPLAIN]+`(?:${C[v.PRERELEASE]})?`+`(?:${C[v.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",C[v.COERCE],true);createToken("COERCERTLFULL",C[v.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${C[v.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${C[v.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${C[v.LONECARET]}${C[v.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${C[v.LONECARET]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${C[v.GTLT]}\\s*(${C[v.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]}|${C[v.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${C[v.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${C[v.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,n)=>{const o=n(280);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},3465:(e,t,n)=>{const o=n(6782);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},5213:(e,t,n)=>{const o=n(280);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},5574:(e,t,n)=>{const o=n(7163);const i=n(6782);const maxSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===-1){c=e;d=new o(c,n)}}}));return c};e.exports=maxSatisfying},8595:(e,t,n)=>{const o=n(7163);const i=n(6782);const minSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===1){c=e;d=new o(c,n)}}}));return c};e.exports=minSatisfying},1866:(e,t,n)=>{const o=n(7163);const i=n(6782);const c=n(6599);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let d=null;i.forEach((e=>{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!d||c(t,d)){d=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(d&&(!n||c(n,d))){n=d}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},280:(e,t,n)=>{const o=n(7163);const i=n(9379);const{ANY:c}=i;const d=n(6782);const p=n(8011);const y=n(6599);const C=n(3872);const Q=n(6717);const v=n(1236);const outside=(e,t,n,D)=>{e=new o(e,D);t=new d(t,D);let k,$,V,ee,te;switch(n){case">":k=y;$=Q;V=C;ee=">";te=">=";break;case"<":k=C;$=v;V=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(e,t,D)){return false}for(let n=0;n<t.set.length;++n){const o=t.set[n];let d=null;let p=null;o.forEach((e=>{if(e.semver===c){e=new i(">=0.0.0")}d=d||e;p=p||e;if(k(e.semver,d.semver,D)){d=e}else if(V(e.semver,p.semver,D)){p=e}}));if(d.operator===ee||d.operator===te){return false}if((!p.operator||p.operator===ee)&&$(e,p.semver)){return false}else if(p.operator===te&&V(e,p.semver)){return false}}return true};e.exports=outside},2028:(e,t,n)=>{const o=n(8011);const i=n(8469);e.exports=(e,t,n)=>{const c=[];let d=null;let p=null;const y=e.sort(((e,t)=>i(e,t,n)));for(const e of y){const i=o(e,t,n);if(i){p=e;if(!d){d=e}}else{if(p){c.push([d,p])}p=null;d=null}}if(d){c.push([d,null])}const C=[];for(const[e,t]of c){if(e===t){C.push(e)}else if(!t&&e===y[0]){C.push("*")}else if(!t){C.push(`>=${e}`)}else if(e===y[0]){C.push(`<=${t}`)}else{C.push(`${e} - ${t}`)}}const Q=C.join(" || ");const v=typeof t.raw==="string"?t.raw:String(t);return Q.length<v.length?Q:t}},1489:(e,t,n)=>{const o=n(6782);const i=n(9379);const{ANY:c}=i;const d=n(8011);const p=n(8469);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const y=[new i(">=0.0.0-0")];const C=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===c){if(t.length===1&&t[0].semver===c){return true}else if(n.includePrerelease){e=y}else{e=C}}if(t.length===1&&t[0].semver===c){if(n.includePrerelease){return true}else{t=C}}const o=new Set;let i,Q;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){Q=lowerLT(Q,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let v;if(i&&Q){v=p(i.semver,Q.semver,n);if(v>0){return null}else if(v===0&&(i.operator!==">="||Q.operator!=="<=")){return null}}for(const e of o){if(i&&!d(e,String(i),n)){return null}if(Q&&!d(e,String(Q),n)){return null}for(const o of t){if(!d(e,String(o),n)){return false}}return true}let D,k;let $,V;let ee=Q&&!n.includePrerelease&&Q.semver.prerelease.length?Q.semver:false;let te=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(ee&&ee.prerelease.length===1&&Q.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){V=V||e.operator===">"||e.operator===">=";$=$||e.operator==="<"||e.operator==="<=";if(i){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){D=higherGT(i,e,n);if(D===e&&D!==i){return false}}else if(i.operator===">="&&!d(i.semver,String(e),n)){return false}}if(Q){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){k=lowerLT(Q,e,n);if(k===e&&k!==Q){return false}}else if(Q.operator==="<="&&!d(Q.semver,String(e),n)){return false}}if(!e.operator&&(Q||i)&&v!==0){return false}}if(i&&$&&!Q&&v!==0){return false}if(Q&&V&&!i&&v!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,n)=>{const o=n(6782);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,n)=>{const o=n(6782);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},1450:(e,t,n)=>{const o=n(857);const i=n(2018);const c=n(3813);const{env:d}=process;let p;if(c("no-color")||c("no-colors")||c("color=false")||c("color=never")){p=0}else if(c("color")||c("colors")||c("color=true")||c("color=always")){p=1}if("FORCE_COLOR"in d){if(d.FORCE_COLOR==="true"){p=1}else if(d.FORCE_COLOR==="false"){p=0}else{p=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(p===0){return 0}if(c("color=16m")||c("color=full")||c("color=truecolor")){return 3}if(c("color=256")){return 2}if(e&&!t&&p===undefined){return 0}const n=p||0;if(d.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in d){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in d))||d.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in d){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0}if(d.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in d){const e=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(d.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)){return 1}if("COLORTERM"in d){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},1288:(e,t,n)=>{var o;
|
||
/*!
|
||
* Tmp
|
||
*
|
||
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
||
*
|
||
* MIT Licensed
|
||
*/const i=n(9896);const c=n(857);const d=n(6928);const p=n(6982);const y={fs:i.constants,os:c.constants};const C="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Q=/XXXXXX/,v=3,D=(y.O_CREAT||y.fs.O_CREAT)|(y.O_EXCL||y.fs.O_EXCL)|(y.O_RDWR||y.fs.O_RDWR),k=c.platform()==="win32",$=y.EBADF||y.os.errno.EBADF,V=y.ENOENT||y.os.errno.ENOENT,ee=448,te=384,re="exit",ne=[],se=i.rmdirSync.bind(i);let oe=false;function rimraf(e,t){return i.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return i.rmSync(e,{recursive:true})}function tmpName(e,t){const n=_parseArguments(e,t),o=n[0],c=n[1];_assertAndSanitizeOptions(o,(function(e,t){if(e)return c(e);let n=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);i.stat(e,(function(t){if(!t){if(n-- >0)return _getUniqueName();return c(new Error("Could not get a unique tmp filename, max tries reached "+e))}c(null,e)}))}catch(e){c(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),n=t[0];const o=_assertAndSanitizeOptionsSync(n);let c=o.tries;do{const e=_generateTmpName(o);try{i.statSync(e)}catch(t){return e}}while(c-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const n=_parseArguments(e,t),o=n[0],c=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return c(e);i.open(t,D,o.mode||te,(function _fileCreated(e,n){if(e)return c(e);if(o.discardDescriptor){return i.close(n,(function _discardCallback(e){return c(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,o,false))}))}else{const e=o.discardDescriptor||o.detachDescriptor;c(null,t,n,_prepareTmpFileRemoveCallback(t,e?-1:n,o,false))}}))}))}function fileSync(e){const t=_parseArguments(e),n=t[0];const o=n.discardDescriptor||n.detachDescriptor;const c=tmpNameSync(n);let d=i.openSync(c,D,n.mode||te);if(n.discardDescriptor){i.closeSync(d);d=undefined}return{name:c,fd:d,removeCallback:_prepareTmpFileRemoveCallback(c,o?-1:d,n,true)}}function dir(e,t){const n=_parseArguments(e,t),o=n[0],c=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return c(e);i.mkdir(t,o.mode||ee,(function _dirCreated(e){if(e)return c(e);c(null,t,_prepareTmpDirRemoveCallback(t,o,false))}))}))}function dirSync(e){const t=_parseArguments(e),n=t[0];const o=tmpNameSync(n);i.mkdirSync(o,n.mode||ee);return{name:o,removeCallback:_prepareTmpDirRemoveCallback(o,n,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])i.close(e[0],(function(){i.unlink(e[1],_handler)}));else i.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])i.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{i.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,n,o){const i=_prepareRemoveCallback(_removeFileSync,[t,e],o);const c=_prepareRemoveCallback(_removeFileAsync,[t,e],o,i);if(!n.keep)ne.unshift(i);return o?i:c}function _prepareTmpDirRemoveCallback(e,t,n){const o=t.unsafeCleanup?rimraf:i.rmdir.bind(i);const c=t.unsafeCleanup?FN_RIMRAF_SYNC:se;const d=_prepareRemoveCallback(c,e,n);const p=_prepareRemoveCallback(o,e,n,d);if(!t.keep)ne.unshift(d);return n?d:p}function _prepareRemoveCallback(e,t,n,o){let i=false;return function _cleanupCallback(c){if(!i){const d=o||_cleanupCallback;const p=ne.indexOf(d);if(p>=0)ne.splice(p,1);i=true;if(n||e===se||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,c||function(){})}}}}function _garbageCollector(){if(!oe)return;while(ne.length){try{ne[0]()}catch(e){}}}function _randomChars(e){let t=[],n=null;try{n=p.randomBytes(e)}catch(t){n=p.pseudoRandomBytes(e)}for(let o=0;o<e;o++){t.push(C[n[o]%C.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const n={};for(const t of Object.getOwnPropertyNames(e)){n[t]=e[t]}return[n,t]}function _resolvePath(e,t,n){const o=d.isAbsolute(e)?e:d.join(t,e);i.stat(o,(function(e){if(e){i.realpath(d.dirname(o),(function(e,t){if(e)return n(e);n(null,d.join(t,d.basename(o)))}))}else{i.realpath(o,n)}}))}function _resolvePathSync(e,t){const n=d.isAbsolute(e)?e:d.join(t,e);try{i.statSync(n);return i.realpathSync(n)}catch(e){const t=i.realpathSync(d.dirname(n));return d.join(t,d.basename(n))}}function _generateTmpName(e){const t=e.tmpdir;if(!_isUndefined(e.name)){return d.join(t,e.dir,e.name)}if(!_isUndefined(e.template)){return d.join(t,e.dir,e.template).replace(Q,_randomChars(6))}const n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_randomChars(12),e.postfix?"-"+e.postfix:""].join("");return d.join(t,e.dir,n)}function _assertOptionsBase(e){if(!_isUndefined(e.name)){const t=e.name;if(d.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);const n=d.basename(t);if(n===".."||n==="."||n!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!_isUndefined(e.template)&&!e.template.match(Q)){throw new Error(`Invalid template, found "${e.template}".`)}if(!_isUndefined(e.tries)&&isNaN(e.tries)||e.tries<0){throw new Error(`Invalid tries, found "${e.tries}".`)}e.tries=_isUndefined(e.name)?e.tries||v:1;e.keep=!!e.keep;e.detachDescriptor=!!e.detachDescriptor;e.discardDescriptor=!!e.discardDescriptor;e.unsafeCleanup=!!e.unsafeCleanup;e.prefix=_isUndefined(e.prefix)?"":e.prefix;e.postfix=_isUndefined(e.postfix)?"":e.postfix}function _getRelativePath(e,t,n,o){if(_isUndefined(t))return o(null);_resolvePath(t,n,(function(t,i){if(t)return o(t);const c=d.relative(n,i);if(!i.startsWith(n)){return o(new Error(`${e} option must be relative to "${n}", found "${c}".`))}o(null,c)}))}function _getRelativePathSync(e,t,n){if(_isUndefined(t))return;const o=_resolvePathSync(t,n);const i=d.relative(n,o);if(!o.startsWith(n)){throw new Error(`${e} option must be relative to "${n}", found "${i}".`)}return i}function _assertAndSanitizeOptions(e,t){_getTmpDir(e,(function(n,o){if(n)return t(n);e.tmpdir=o;try{_assertOptionsBase(e,o)}catch(n){return t(n)}_getRelativePath("dir",e.dir,o,(function(n,i){if(n)return t(n);e.dir=_isUndefined(i)?"":i;_getRelativePath("template",e.template,o,(function(n,o){if(n)return t(n);e.template=o;t(null,e)}))}))}))}function _assertAndSanitizeOptionsSync(e){const t=e.tmpdir=_getTmpDirSync(e);_assertOptionsBase(e,t);const n=_getRelativePathSync("dir",e.dir,t);e.dir=_isUndefined(n)?"":n;e.template=_getRelativePathSync("template",e.template,t);return e}function _isEBADF(e){return _isExpectedError(e,-$,"EBADF")}function _isENOENT(e){return _isExpectedError(e,-V,"ENOENT")}function _isExpectedError(e,t,n){return k?e.code===n:e.code===n&&e.errno===t}function setGracefulCleanup(){oe=true}function _getTmpDir(e,t){return i.realpath(e&&e.tmpdir||c.tmpdir(),t)}function _getTmpDirSync(e){return i.realpathSync(e&&e.tmpdir||c.tmpdir())}process.addListener(re,_garbageCollector);o={enumerable:true,configurable:false,get:function(){return _getTmpDirSync()}};o=dir;o=dirSync;o=file;o=fileSync;o=tmpName;e.exports.om=tmpNameSync;o=setGracefulCleanup},1860:e=>{var t;var n;var o;var i;var c;var d;var p;var y;var C;var Q;var v;var D;var k;var $;var V;var ee;var te;var re;var ne;var se;var oe;var ie;var ae;var ce;var le;var ue;var de;var pe;var Ae;var me;var ge;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fe(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};o=function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++){if(t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i]))n[o[i]]=e[o[i]]}return n};i=function(e,t,n,o){var i=arguments.length,c=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")c=Reflect.decorate(e,t,n,o);else for(var p=e.length-1;p>=0;p--)if(d=e[p])c=(i<3?d(c):i>3?d(t,n,c):d(t,n))||c;return i>3&&c&&Object.defineProperty(t,n,c),c};c=function(e,t){return function(n,o){t(n,o,e)}};d=function(e,t,n,o,i,c){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var d=o.kind,p=d==="getter"?"get":d==="setter"?"set":"value";var y=!t&&e?o["static"]?e:e.prototype:null;var C=t||(y?Object.getOwnPropertyDescriptor(y,o.name):{});var Q,v=false;for(var D=n.length-1;D>=0;D--){var k={};for(var $ in o)k[$]=$==="access"?{}:o[$];for(var $ in o.access)k.access[$]=o.access[$];k.addInitializer=function(e){if(v)throw new TypeError("Cannot add initializers after decoration has completed");c.push(accept(e||null))};var V=(0,n[D])(d==="accessor"?{get:C.get,set:C.set}:C[p],k);if(d==="accessor"){if(V===void 0)continue;if(V===null||typeof V!=="object")throw new TypeError("Object expected");if(Q=accept(V.get))C.get=Q;if(Q=accept(V.set))C.set=Q;if(Q=accept(V.init))i.unshift(Q)}else if(Q=accept(V)){if(d==="field")i.unshift(Q);else C[p]=Q}}if(y)Object.defineProperty(y,o.name,C);v=true};p=function(e,t,n){var o=arguments.length>2;for(var i=0;i<t.length;i++){n=o?t[i].call(e,n):t[i].call(e)}return o?n:void 0};y=function(e){return typeof e==="symbol"?e:"".concat(e)};C=function(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})};Q=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};v=function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};D=function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,i,c,d;return d={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function verb(e){return function(t){return step([e,t])}}function step(p){if(o)throw new TypeError("Generator is already executing.");while(d&&(d=0,p[0]&&(n=0)),n)try{if(o=1,i&&(c=p[0]&2?i["return"]:p[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,p[1])).done)return c;if(i=0,c)p=[p[0]&2,c.value];switch(p[0]){case 0:case 1:c=p;break;case 4:n.label++;return{value:p[1],done:false};case 5:n.label++;i=p[1];p=[0];continue;case 7:p=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){n.label=p[1];break}if(p[0]===6&&n.label<c[1]){n.label=c[1];c=p;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(p);break}if(c[2])n.ops.pop();n.trys.pop();continue}p=t.call(e,n)}catch(e){p=[6,e];i=0}finally{o=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:true}}};k=function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))Ae(t,e,n)};Ae=Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]};$=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&o>=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};V=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,c=[],d;try{while((t===void 0||t-- >0)&&!(i=o.next()).done)c.push(i.value)}catch(e){d={error:e}}finally{try{if(i&&!i.done&&(n=o["return"]))n.call(o)}finally{if(d)throw d.error}}return c};ee=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(V(arguments[t]));return e};te=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<n;t++)for(var c=arguments[t],d=0,p=c.length;d<p;d++,i++)o[i]=c[d];return o};re=function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,c;o<i;o++){if(c||!(o in t)){if(!c)c=Array.prototype.slice.call(t,0,o);c[o]=t[o]}}return e.concat(c||Array.prototype.slice.call(t))};ne=function(e){return this instanceof ne?(this.v=e,this):new ne(e)};se=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),i,c=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(e){if(o[e])i[e]=function(t){return new Promise((function(n,o){c.push([e,t,n,o])>1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(c[0][3],e)}}function step(e){e.value instanceof ne?Promise.resolve(e.value.v).then(fulfill,reject):settle(c[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),c.shift(),c.length)resume(c[0][0],c[0][1])}};oe=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:ne(e[o](t)),done:false}:i?i(t):t}:i}};ie=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof $==="function"?$(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};ae=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var he=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};ce=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))Ae(t,e,n);he(t,e);return t};le=function(e){return e&&e.__esModule?e:{default:e}};ue=function(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)};de=function(e,t,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n};pe=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};me=function(e,t,n){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose]}if(typeof o!=="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:o,async:n})}else if(n){e.stack.push({async:true})}return t};var ye=typeof SuppressedError==="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};ge=function(e){function fail(t){e.error=e.hasError?new ye(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}function next(){while(e.stack.length){var t=e.stack.pop();try{var n=t.dispose&&t.dispose.call(t.value);if(t.async)return Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}catch(e){fail(e)}}if(e.hasError)throw e.error}return next()};e("__extends",t);e("__assign",n);e("__rest",o);e("__decorate",i);e("__param",c);e("__esDecorate",d);e("__runInitializers",p);e("__propKey",y);e("__setFunctionName",C);e("__metadata",Q);e("__awaiter",v);e("__generator",D);e("__exportStar",k);e("__createBinding",Ae);e("__values",$);e("__read",V);e("__spread",ee);e("__spreadArrays",te);e("__spreadArray",re);e("__await",ne);e("__asyncGenerator",se);e("__asyncDelegator",oe);e("__asyncValues",ie);e("__makeTemplateObject",ae);e("__importStar",ce);e("__importDefault",le);e("__classPrivateFieldGet",ue);e("__classPrivateFieldSet",de);e("__classPrivateFieldIn",pe);e("__addDisposableResource",me);e("__disposeResources",ge)}))},770:(e,t,n)=>{e.exports=n(218)},218:(e,t,n)=>{var o=n(9278);var i=n(4756);var c=n(8611);var d=n(5692);var p=n(4434);var y=n(2613);var C=n(9023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=c.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=c.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=d.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=d.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||c.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,i){var c=toOptions(n,o,i);for(var d=0,p=t.requests.length;d<p;++d){var y=t.requests[d];if(y.host===c.host&&y.port===c.port){t.requests.splice(d,1);y.request.onSocket(e);return}}e.destroy();t.removeSocket(e)}))}C.inherits(TunnelingAgent,p.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,n,o){var i=this;var c=mergeOptions({request:e},i.options,toOptions(t,n,o));if(i.sockets.length>=this.maxSockets){i.requests.push(c);return}i.createSocket(c,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,c)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var o={};n.sockets.push(o);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}Q("making CONNECT request");var c=n.request(i);c.useChunkedEncodingByDefault=false;c.once("response",onResponse);c.once("upgrade",onUpgrade);c.once("connect",onConnect);c.once("error",onError);c.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(i,d,p){c.removeAllListeners();d.removeAllListeners();if(i.statusCode!==200){Q("tunneling socket could not be established, statusCode=%d",i.statusCode);d.destroy();var y=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}if(p.length>0){Q("got illegal response body from proxy");d.destroy();var y=new Error("got illegal response body from proxy");y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}Q("tunneling connection has established");n.sockets[n.sockets.indexOf(o)]=d;return t(d)}function onError(t){c.removeAllListeners();Q("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(o){var c=e.request.getHeader("host");var d=mergeOptions({},n.options,{socket:o,servername:c?c.replace(/:.*$/,""):e.host});var p=i.connect(0,d);n.sockets[n.sockets.indexOf(o)]=p;t(p)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t<n;++t){var o=arguments[t];if(typeof o==="object"){var i=Object.keys(o);for(var c=0,d=i.length;c<d;++c){var p=i[c];if(o[p]!==undefined){e[p]=o[p]}}}}return e}var Q;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){Q=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{Q=function(){}}t.debug=Q},6752:(e,t,n)=>{const o=n(3701);const i=n(883);const c=n(628);const d=n(837);const p=n(7405);const y=n(6672);const C=n(3137);const Q=n(50);const v=n(8707);const D=n(3440);const{InvalidArgumentError:k}=v;const $=n(6615);const V=n(9136);const ee=n(7365);const te=n(7501);const re=n(4004);const ne=n(2429);const se=n(7816);const{getGlobalDispatcher:oe,setGlobalDispatcher:ie}=n(2581);const ae=n(8155);const ce=n(8754);const le=n(5092);Object.assign(i.prototype,$);e.exports.Dispatcher=i;e.exports.Client=o;e.exports.Pool=c;e.exports.BalancedPool=d;e.exports.Agent=p;e.exports.ProxyAgent=y;e.exports.EnvHttpProxyAgent=C;e.exports.RetryAgent=Q;e.exports.RetryHandler=se;e.exports.DecoratorHandler=ae;e.exports.RedirectHandler=ce;e.exports.createRedirectInterceptor=le;e.exports.interceptors={redirect:n(1514),retry:n(2026),dump:n(8060),dns:n(379)};e.exports.buildConnector=V;e.exports.errors=v;e.exports.util={parseHeaders:D.parseHeaders,headerNameToString:D.headerNameToString};function makeDispatcher(e){return(t,n,o)=>{if(typeof n==="function"){o=n;n=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new k("invalid url")}if(n!=null&&typeof n!=="object"){throw new k("invalid opts")}if(n&&n.path!=null){if(typeof n.path!=="string"){throw new k("invalid opts.path")}let e=n.path;if(!n.path.startsWith("/")){e=`/${e}`}t=new URL(D.parseOrigin(t).origin+e)}else{if(!n){n=typeof t==="object"?t:{}}t=D.parseURL(t)}const{agent:i,dispatcher:c=oe()}=n;if(i){throw new k("unsupported opts.agent. Did you mean opts.client?")}return e.call(c,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},o)}}e.exports.setGlobalDispatcher=ie;e.exports.getGlobalDispatcher=oe;const ue=n(4398).fetch;e.exports.fetch=async function fetch(e,t=undefined){try{return await ue(e,t)}catch(e){if(e&&typeof e==="object"){Error.captureStackTrace(e)}throw e}};e.exports.Headers=n(660).Headers;e.exports.Response=n(9051).Response;e.exports.Request=n(9967).Request;e.exports.FormData=n(5910).FormData;e.exports.File=globalThis.File??n(4573).File;e.exports.FileReader=n(8355).FileReader;const{setGlobalOrigin:de,getGlobalOrigin:pe}=n(1059);e.exports.setGlobalOrigin=de;e.exports.getGlobalOrigin=pe;const{CacheStorage:Ae}=n(3245);const{kConstruct:me}=n(109);e.exports.caches=new Ae(me);const{deleteCookie:ge,getCookies:fe,getSetCookies:he,setCookie:ye}=n(9061);e.exports.deleteCookie=ge;e.exports.getCookies=fe;e.exports.getSetCookies=he;e.exports.setCookie=ye;const{parseMIMEType:Ee,serializeAMimeType:Ce}=n(1900);e.exports.parseMIMEType=Ee;e.exports.serializeAMimeType=Ce;const{CloseEvent:Ie,ErrorEvent:be,MessageEvent:Se}=n(5188);e.exports.WebSocket=n(3726).WebSocket;e.exports.CloseEvent=Ie;e.exports.ErrorEvent=be;e.exports.MessageEvent=Se;e.exports.request=makeDispatcher($.request);e.exports.stream=makeDispatcher($.stream);e.exports.pipeline=makeDispatcher($.pipeline);e.exports.connect=makeDispatcher($.connect);e.exports.upgrade=makeDispatcher($.upgrade);e.exports.MockClient=ee;e.exports.MockPool=re;e.exports.MockAgent=te;e.exports.mockErrors=ne;const{EventSource:Be}=n(1238);e.exports.EventSource=Be},158:(e,t,n)=>{const{addAbortListener:o}=n(3440);const{RequestAbortedError:i}=n(8707);const c=Symbol("kListener");const d=Symbol("kSignal");function abort(e){if(e.abort){e.abort(e[d]?.reason)}else{e.reason=e[d]?.reason??new i}removeSignal(e)}function addSignal(e,t){e.reason=null;e[d]=null;e[c]=null;if(!t){return}if(t.aborted){abort(e);return}e[d]=t;e[c]=()=>{abort(e)};o(e[d],e[c])}function removeSignal(e){if(!e[d]){return}if("removeEventListener"in e[d]){e[d].removeEventListener("abort",e[c])}else{e[d].removeListener("abort",e[c])}e[d]=null;e[c]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(e,t,n)=>{const o=n(4589);const{AsyncResource:i}=n(6698);const{InvalidArgumentError:c,SocketError:d}=n(8707);const p=n(3440);const{addSignal:y,removeSignal:C}=n(158);class ConnectHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new c("invalid opts")}if(typeof t!=="function"){throw new c("invalid callback")}const{signal:n,opaque:o,responseHeaders:i}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=o||null;this.responseHeaders=i||null;this.callback=t;this.abort=null;y(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(){throw new d("bad connect",null)}onUpgrade(e,t,n){const{callback:o,opaque:i,context:c}=this;C(this);this.callback=null;let d=t;if(d!=null){d=this.responseHeaders==="raw"?p.parseRawHeaders(t):p.parseHeaders(t)}this.runInAsyncScope(o,null,null,{statusCode:e,headers:d,socket:n,opaque:i,context:c})}onError(e){const{callback:t,opaque:n}=this;C(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,n)=>{connect.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=connect},6862:(e,t,n)=>{const{Readable:o,Duplex:i,PassThrough:c}=n(7075);const{InvalidArgumentError:d,InvalidReturnValueError:p,RequestAbortedError:y}=n(8707);const C=n(3440);const{AsyncResource:Q}=n(6698);const{addSignal:v,removeSignal:D}=n(158);const k=n(4589);const $=Symbol("resume");class PipelineRequest extends o{constructor(){super({autoDestroy:true});this[$]=null}_read(){const{[$]:e}=this;if(e){this[$]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends o{constructor(e){super({autoDestroy:true});this[$]=e}_read(){this[$]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new y}t(e)}}class PipelineHandler extends Q{constructor(e,t){if(!e||typeof e!=="object"){throw new d("invalid opts")}if(typeof t!=="function"){throw new d("invalid handler")}const{signal:n,method:o,opaque:c,onInfo:p,responseHeaders:Q}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new d("invalid method")}if(p&&typeof p!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=c||null;this.responseHeaders=Q||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=p||null;this.req=(new PipelineRequest).on("error",C.nop);this.ret=new i({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e?.resume){e.resume()}},write:(e,t,n)=>{const{req:o}=this;if(o.push(e,t)||o._readableState.destroyed){n()}else{o[$]=n}},destroy:(e,t)=>{const{body:n,req:o,res:i,ret:c,abort:d}=this;if(!e&&!c._readableState.endEmitted){e=new y}if(d&&e){d()}C.destroy(n,e);C.destroy(o,e);C.destroy(i,e);D(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;v(this,n)}onConnect(e,t){const{ret:n,res:o}=this;if(this.reason){e(this.reason);return}k(!o,"pipeline cannot be retried");k(!n.destroyed);this.abort=e;this.context=t}onHeaders(e,t,n){const{opaque:o,handler:i,context:c}=this;if(e<200){if(this.onInfo){const n=this.responseHeaders==="raw"?C.parseRawHeaders(t):C.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new PipelineResponse(n);let d;try{this.handler=null;const n=this.responseHeaders==="raw"?C.parseRawHeaders(t):C.parseHeaders(t);d=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:o,body:this.res,context:c})}catch(e){this.res.on("error",C.nop);throw e}if(!d||typeof d.on!=="function"){throw new p("expected Readable")}d.on("data",(e=>{const{ret:t,body:n}=this;if(!t.push(e)&&n.pause){n.pause()}})).on("error",(e=>{const{ret:t}=this;C.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){C.destroy(e,new y)}}));this.body=d}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;C.destroy(t,e)}}function pipeline(e,t){try{const n=new PipelineHandler(e,t);this.dispatch({...e,body:n.req},n);return n.ret}catch(e){return(new c).destroy(e)}}e.exports=pipeline},4043:(e,t,n)=>{const o=n(4589);const{Readable:i}=n(9927);const{InvalidArgumentError:c,RequestAbortedError:d}=n(8707);const p=n(3440);const{getResolveErrorBodyCallback:y}=n(7655);const{AsyncResource:C}=n(6698);class RequestHandler extends C{constructor(e,t){if(!e||typeof e!=="object"){throw new c("invalid opts")}const{signal:n,method:o,opaque:i,body:y,onInfo:C,responseHeaders:Q,throwOnError:v,highWaterMark:D}=e;try{if(typeof t!=="function"){throw new c("invalid callback")}if(D&&(typeof D!=="number"||D<0)){throw new c("invalid highWaterMark")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new c("invalid method")}if(C&&typeof C!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(p.isStream(y)){p.destroy(y.on("error",p.nop),e)}throw e}this.method=o;this.responseHeaders=Q||null;this.opaque=i||null;this.callback=t;this.res=null;this.abort=null;this.body=y;this.trailers={};this.context=null;this.onInfo=C||null;this.throwOnError=v;this.highWaterMark=D;this.signal=n;this.reason=null;this.removeAbortListener=null;if(p.isStream(y)){y.on("error",(e=>{this.onError(e)}))}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new d}else{this.removeAbortListener=p.addAbortListener(this.signal,(()=>{this.reason=this.signal.reason??new d;if(this.res){p.destroy(this.res.on("error",p.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}))}}}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(e,t,n,o){const{callback:c,opaque:d,abort:C,context:Q,responseHeaders:v,highWaterMark:D}=this;const k=v==="raw"?p.parseRawHeaders(t):p.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:k})}return}const $=v==="raw"?p.parseHeaders(t):k;const V=$["content-type"];const ee=$["content-length"];const te=new i({resume:n,abort:C,contentType:V,contentLength:this.method!=="HEAD"&&ee?Number(ee):null,highWaterMark:D});if(this.removeAbortListener){te.on("close",this.removeAbortListener)}this.callback=null;this.res=te;if(c!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(y,null,{callback:c,body:te,contentType:V,statusCode:e,statusMessage:o,headers:k})}else{this.runInAsyncScope(c,null,null,{statusCode:e,headers:k,trailers:this.trailers,opaque:d,body:te,context:Q})}}}onData(e){return this.res.push(e)}onComplete(e){p.parseHeaders(e,this.trailers);this.res.push(null)}onError(e){const{res:t,callback:n,body:o,opaque:i}=this;if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:i})}))}if(t){this.res=null;queueMicrotask((()=>{p.destroy(t,e)}))}if(o){this.body=null;p.destroy(o,e)}if(this.removeAbortListener){t?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(e,t){if(t===undefined){return new Promise(((t,n)=>{request.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,n)=>{const o=n(4589);const{finished:i,PassThrough:c}=n(7075);const{InvalidArgumentError:d,InvalidReturnValueError:p}=n(8707);const y=n(3440);const{getResolveErrorBodyCallback:C}=n(7655);const{AsyncResource:Q}=n(6698);const{addSignal:v,removeSignal:D}=n(158);class StreamHandler extends Q{constructor(e,t,n){if(!e||typeof e!=="object"){throw new d("invalid opts")}const{signal:o,method:i,opaque:c,body:p,onInfo:C,responseHeaders:Q,throwOnError:D}=e;try{if(typeof n!=="function"){throw new d("invalid callback")}if(typeof t!=="function"){throw new d("invalid factory")}if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new d("invalid method")}if(C&&typeof C!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(y.isStream(p)){y.destroy(p.on("error",y.nop),e)}throw e}this.responseHeaders=Q||null;this.opaque=c||null;this.factory=t;this.callback=n;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=p;this.onInfo=C||null;this.throwOnError=D||false;if(y.isStream(p)){p.on("error",(e=>{this.onError(e)}))}v(this,o)}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(e,t,n,o){const{factory:d,opaque:Q,context:v,callback:D,responseHeaders:k}=this;const $=k==="raw"?y.parseRawHeaders(t):y.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:$})}return}this.factory=null;let V;if(this.throwOnError&&e>=400){const n=k==="raw"?y.parseHeaders(t):$;const i=n["content-type"];V=new c;this.callback=null;this.runInAsyncScope(C,null,{callback:D,body:V,contentType:i,statusCode:e,statusMessage:o,headers:$})}else{if(d===null){return}V=this.runInAsyncScope(d,null,{statusCode:e,headers:$,opaque:Q,context:v});if(!V||typeof V.write!=="function"||typeof V.end!=="function"||typeof V.on!=="function"){throw new p("expected Writable")}i(V,{readable:false},(e=>{const{callback:t,res:n,opaque:o,trailers:i,abort:c}=this;this.res=null;if(e||!n.readable){y.destroy(n,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:o,trailers:i});if(e){c()}}))}V.on("drain",n);this.res=V;const ee=V.writableNeedDrain!==undefined?V.writableNeedDrain:V._writableState?.needDrain;return ee!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;D(this);if(!t){return}this.trailers=y.parseHeaders(e);t.end()}onError(e){const{res:t,callback:n,opaque:o,body:i}=this;D(this);this.factory=null;if(t){this.res=null;y.destroy(t,e)}else if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))}if(i){this.body=null;y.destroy(i,e)}}}function stream(e,t,n){if(n===undefined){return new Promise(((n,o)=>{stream.call(this,e,t,((e,t)=>e?o(e):n(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,n))}catch(t){if(typeof n!=="function"){throw t}const o=e?.opaque;queueMicrotask((()=>n(t,{opaque:o})))}}e.exports=stream},1882:(e,t,n)=>{const{InvalidArgumentError:o,SocketError:i}=n(8707);const{AsyncResource:c}=n(6698);const d=n(3440);const{addSignal:p,removeSignal:y}=n(158);const C=n(4589);class UpgradeHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid callback")}const{signal:n,opaque:i,responseHeaders:c}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=c||null;this.opaque=i||null;this.callback=t;this.abort=null;this.context=null;p(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}C(this.callback);this.abort=e;this.context=null}onHeaders(){throw new i("bad upgrade",null)}onUpgrade(e,t,n){C(e===101);const{callback:o,opaque:i,context:c}=this;y(this);this.callback=null;const p=this.responseHeaders==="raw"?d.parseRawHeaders(t):d.parseHeaders(t);this.runInAsyncScope(o,null,null,{headers:p,socket:n,opaque:i,context:c})}onError(e){const{callback:t,opaque:n}=this;y(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,n)=>{upgrade.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=upgrade},6615:(e,t,n)=>{e.exports.request=n(4043);e.exports.stream=n(3560);e.exports.pipeline=n(6862);e.exports.upgrade=n(1882);e.exports.connect=n(2279)},9927:(e,t,n)=>{const o=n(4589);const{Readable:i}=n(7075);const{RequestAbortedError:c,NotSupportedError:d,InvalidArgumentError:p,AbortError:y}=n(8707);const C=n(3440);const{ReadableStreamFrom:Q}=n(3440);const v=Symbol("kConsume");const D=Symbol("kReading");const k=Symbol("kBody");const $=Symbol("kAbort");const V=Symbol("kContentType");const ee=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends i{constructor({resume:e,abort:t,contentType:n="",contentLength:o,highWaterMark:i=64*1024}){super({autoDestroy:true,read:e,highWaterMark:i});this._readableState.dataEmitted=false;this[$]=t;this[v]=null;this[k]=null;this[V]=n;this[ee]=o;this[D]=false}destroy(e){if(!e&&!this._readableState.endEmitted){e=new c}if(e){this[$]()}return super.destroy(e)}_destroy(e,t){if(!this[D]){setImmediate((()=>{t(e)}))}else{t(e)}}on(e,...t){if(e==="data"||e==="readable"){this[D]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);if(e==="data"||e==="readable"){this[D]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return n}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[v]&&e!==null){consumePush(this[v],e);return this[D]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new d}get bodyUsed(){return C.isDisturbed(this)}get body(){if(!this[k]){this[k]=Q(this);if(this[v]){this[k].getReader();o(this[k].locked)}}return this[k]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024;const n=e?.signal;if(n!=null&&(typeof n!=="object"||!("aborted"in n))){throw new p("signal must be an AbortSignal")}n?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise(((e,o)=>{if(this[ee]>t){this.destroy(new y)}const onAbort=()=>{this.destroy(n.reason??new y)};n?.addEventListener("abort",onAbort);this.on("close",(function(){n?.removeEventListener("abort",onAbort);if(n?.aborted){o(n.reason??new y)}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}}function isLocked(e){return e[k]&&e[k].locked===true||e[v]}function isUnusable(e){return C.isDisturbed(e)||isLocked(e)}async function consume(e,t){o(!e[v]);return new Promise(((n,o)=>{if(isUnusable(e)){const t=e._readableState;if(t.destroyed&&t.closeEmitted===false){e.on("error",(e=>{o(e)})).on("close",(()=>{o(new TypeError("unusable"))}))}else{o(t.errored??new TypeError("unusable"))}}else{queueMicrotask((()=>{e[v]={type:t,stream:e,resolve:n,reject:o,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[v],e)})).on("close",(function(){if(this[v].body!==null){consumeFinish(this[v],new c)}}));consumeStart(e[v])}))}}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;if(t.bufferIndex){const n=t.bufferIndex;const o=t.buffer.length;for(let i=n;i<o;i++){consumePush(e,t.buffer[i])}}else{for(const n of t.buffer){consumePush(e,n)}}if(t.endEmitted){consumeEnd(this[v])}else{e.stream.on("end",(function(){consumeEnd(this[v])}))}e.stream.resume();while(e.stream.read()!=null){}}function chunksDecode(e,t){if(e.length===0||t===0){return""}const n=e.length===1?e[0]:Buffer.concat(e,t);const o=n.length;const i=o>2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,o)}function chunksConcat(e,t){if(e.length===0||t===0){return new Uint8Array(0)}if(e.length===1){return new Uint8Array(e[0])}const n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer);let o=0;for(let t=0;t<e.length;++t){const i=e[t];n.set(i,o);o+=i.length}return n}function consumeEnd(e){const{type:t,body:n,resolve:o,stream:i,length:c}=e;try{if(t==="text"){o(chunksDecode(n,c))}else if(t==="json"){o(JSON.parse(chunksDecode(n,c)))}else if(t==="arrayBuffer"){o(chunksConcat(n,c).buffer)}else if(t==="blob"){o(new Blob(n,{type:i[V]}))}else if(t==="bytes"){o(chunksConcat(n,c))}consumeFinish(e)}catch(e){i.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}e.exports={Readable:BodyReadable,chunksDecode:chunksDecode}},7655:(e,t,n)=>{const o=n(4589);const{ResponseStatusCodeError:i}=n(8707);const{chunksDecode:c}=n(9927);const d=128*1024;async function getResolveErrorBodyCallback({callback:e,body:t,contentType:n,statusCode:p,statusMessage:y,headers:C}){o(t);let Q=[];let v=0;try{for await(const e of t){Q.push(e);v+=e.length;if(v>d){Q=[];v=0;break}}}catch{Q=[];v=0}const D=`Response status code ${p}${y?`: ${y}`:""}`;if(p===204||!n||!v){queueMicrotask((()=>e(new i(D,p,C))));return}const k=Error.stackTraceLimit;Error.stackTraceLimit=0;let $;try{if(isContentTypeApplicationJson(n)){$=JSON.parse(c(Q,v))}else if(isContentTypeText(n)){$=c(Q,v)}}catch{}finally{Error.stackTraceLimit=k}queueMicrotask((()=>e(new i(D,p,C,$))))}const isContentTypeApplicationJson=e=>e.length>15&&e[11]==="/"&&e[0]==="a"&&e[1]==="p"&&e[2]==="p"&&e[3]==="l"&&e[4]==="i"&&e[5]==="c"&&e[6]==="a"&&e[7]==="t"&&e[8]==="i"&&e[9]==="o"&&e[10]==="n"&&e[12]==="j"&&e[13]==="s"&&e[14]==="o"&&e[15]==="n";const isContentTypeText=e=>e.length>4&&e[4]==="/"&&e[0]==="t"&&e[1]==="e"&&e[2]==="x"&&e[3]==="t";e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(e,t,n)=>{const o=n(7030);const i=n(4589);const c=n(3440);const{InvalidArgumentError:d,ConnectTimeoutError:p}=n(8707);const y=n(6603);function noop(){}let C;let Q;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){Q=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size<this._maxCachedSessions){return}const t=this._sessionCache.get(e);if(t!==undefined&&t.deref()===undefined){this._sessionCache.delete(e)}}))}get(e){const t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){if(this._maxCachedSessions===0){return}this._sessionCache.set(e,new WeakRef(t));this._sessionRegistry.register(t,e)}}}else{Q=class SimpleSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(this._maxCachedSessions===0){return}if(this._sessionCache.size>=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:p,timeout:y,session:D,...k}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new d("maxCachedSessions must be a positive integer or zero")}const $={path:p,...k};const V=new Q(t==null?100:t);y=y==null?1e4:y;e=e!=null?e:false;return function connect({hostname:t,host:d,protocol:p,port:Q,servername:k,localAddress:ee,httpSocket:te},re){let ne;if(p==="https:"){if(!C){C=n(1692)}k=k||$.servername||c.getServerName(d)||null;const o=k||t;i(o);const p=D||V.get(o)||null;Q=Q||443;ne=C.connect({highWaterMark:16384,...$,servername:k,session:p,localAddress:ee,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:te,port:Q,host:t});ne.on("session",(function(e){V.set(o,e)}))}else{i(!te,"httpSocket can only be sent on TLS update");Q=Q||80;ne=o.connect({highWaterMark:64*1024,...$,localAddress:ee,port:Q,host:t})}if($.keepAlive==null||$.keepAlive){const e=$.keepAliveInitialDelay===undefined?6e4:$.keepAliveInitialDelay;ne.setKeepAlive(true,e)}const se=v(new WeakRef(ne),{timeout:y,hostname:t,port:Q});ne.setNoDelay(true).once(p==="https:"?"secureConnect":"connect",(function(){queueMicrotask(se);if(re){const e=re;re=null;e(null,this)}})).on("error",(function(e){queueMicrotask(se);if(re){const t=re;re=null;t(e)}}));return ne}}const v=process.platform==="win32"?(e,t)=>{if(!t.timeout){return noop}let n=null;let o=null;const i=y.setFastTimeout((()=>{n=setImmediate((()=>{o=setImmediate((()=>onConnectTimeout(e.deref(),t)))}))}),t.timeout);return()=>{y.clearFastTimeout(i);clearImmediate(n);clearImmediate(o)}}:(e,t)=>{if(!t.timeout){return noop}let n=null;const o=y.setFastTimeout((()=>{n=setImmediate((()=>{onConnectTimeout(e.deref(),t)}))}),t.timeout);return()=>{y.clearFastTimeout(o);clearImmediate(n)}};function onConnectTimeout(e,t){if(e==null){return}let n="Connect Timeout Error";if(Array.isArray(e.autoSelectFamilyAttemptedAddresses)){n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{n+=` (attempted address: ${t.hostname}:${t.port},`}n+=` timeout: ${t.timeout}ms)`;c.destroy(e,new p(n))}e.exports=buildConnector},735:e=>{const t={};const n=["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 e=0;e<n.length;++e){const o=n[e];const i=o.toLowerCase();t[o]=t[i]=i}Object.setPrototypeOf(t,null);e.exports={wellknownHeaderNames:n,headerNameLowerCasedRecord:t}},2414:(e,t,n)=>{const o=n(3053);const i=n(7975);const c=i.debuglog("undici");const d=i.debuglog("fetch");const p=i.debuglog("websocket");let y=false;const C={beforeConnect:o.channel("undici:client:beforeConnect"),connected:o.channel("undici:client:connected"),connectError:o.channel("undici:client:connectError"),sendHeaders:o.channel("undici:client:sendHeaders"),create:o.channel("undici:request:create"),bodySent:o.channel("undici:request:bodySent"),headers:o.channel("undici:request:headers"),trailers:o.channel("undici:request:trailers"),error:o.channel("undici:request:error"),open:o.channel("undici:websocket:open"),close:o.channel("undici:websocket:close"),socketError:o.channel("undici:websocket:socket_error"),ping:o.channel("undici:websocket:ping"),pong:o.channel("undici:websocket:pong")};if(c.enabled||d.enabled){const e=d.enabled?d:c;o.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:c}}=t;e("connecting to %s using %s%s",`${c}${i?`:${i}`:""}`,o,n)}));o.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:c}}=t;e("connected to %s using %s%s",`${c}${i?`:${i}`:""}`,o,n)}));o.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:c},error:d}=t;e("connection to %s using %s%s errored - %s",`${c}${i?`:${i}`:""}`,o,n,d.message)}));o.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("sending request to %s %s/%s",n,i,o)}));o.channel("undici:request:headers").subscribe((t=>{const{request:{method:n,path:o,origin:i},response:{statusCode:c}}=t;e("received response to %s %s/%s - HTTP %d",n,i,o,c)}));o.channel("undici:request:trailers").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("trailers received from %s %s/%s",n,i,o)}));o.channel("undici:request:error").subscribe((t=>{const{request:{method:n,path:o,origin:i},error:c}=t;e("request to %s %s/%s errored - %s",n,i,o,c.message)}));y=true}if(p.enabled){if(!y){const e=c.enabled?c:p;o.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:c}}=t;e("connecting to %s%s using %s%s",c,i?`:${i}`:"",o,n)}));o.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:c}}=t;e("connected to %s%s using %s%s",c,i?`:${i}`:"",o,n)}));o.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:c},error:d}=t;e("connection to %s%s using %s%s errored - %s",c,i?`:${i}`:"",o,n,d.message)}));o.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("sending request to %s %s/%s",n,i,o)}))}o.channel("undici:websocket:open").subscribe((e=>{const{address:{address:t,port:n}}=e;p("connection opened %s%s",t,n?`:${n}`:"")}));o.channel("undici:websocket:close").subscribe((e=>{const{websocket:t,code:n,reason:o}=e;p("closed connection to %s - %s %s",t.url,n,o)}));o.channel("undici:websocket:socket_error").subscribe((e=>{p("connection errored - %s",e.message)}));o.channel("undici:websocket:ping").subscribe((e=>{p("ping received")}));o.channel("undici:websocket:pong").subscribe((e=>{p("pong received")}))}e.exports={channels:C}},8707:e=>{const t=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[t]===true}[t]=true}const n=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(e){super(e);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[n]===true}[n]=true}const o=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(e){super(e);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[o]===true}[o]=true}const i=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(e){super(e);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[i]===true}[i]=true}const c=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(e){super(e);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[c]===true}[c]=true}const d=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(e,t,n,o){super(e);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=o;this.status=t;this.statusCode=t;this.headers=n}static[Symbol.hasInstance](e){return e&&e[d]===true}[d]=true}const p=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(e){super(e);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[p]===true}[p]=true}const y=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(e){super(e);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[y]===true}[y]=true}const C=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(e){super(e);this.name="AbortError";this.message=e||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[C]===true}[C]=true}const Q=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(e){super(e);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[Q]===true}[Q]=true}const v=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(e){super(e);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[v]===true}[v]=true}const D=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[D]===true}[D]=true}const k=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[k]===true}[k]=true}const $=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(e){super(e);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[$]===true}[$]=true}const V=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(e){super(e);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[V]===true}[V]=true}const ee=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(e,t){super(e);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}static[Symbol.hasInstance](e){return e&&e[ee]===true}[ee]=true}const te=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(e){super(e);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[te]===true}[te]=true}const re=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[re]===true}[re]=true}const ne=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(e,t,n){super(e);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=n?n.toString():undefined}static[Symbol.hasInstance](e){return e&&e[ne]===true}[ne]=true}const se=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[se]===true}[se]=true}const oe=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=o;this.headers=n}static[Symbol.hasInstance](e){return e&&e[oe]===true}[oe]=true}const ie=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);this.name="ResponseError";this.message=e||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=t;this.data=o;this.headers=n}static[Symbol.hasInstance](e){return e&&e[ie]===true}[ie]=true}const ae=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(e,t,n){super(t,{cause:e,...n??{}});this.name="SecureProxyConnectionError";this.message=t||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=e}static[Symbol.hasInstance](e){return e&&e[ae]===true}[ae]=true}e.exports={AbortError:AbortError,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,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError}},4655:(e,t,n)=>{const{InvalidArgumentError:o,NotSupportedError:i}=n(8707);const c=n(4589);const{isValidHTTPToken:d,isValidHeaderValue:p,isStream:y,destroy:C,isBuffer:Q,isFormDataLike:v,isIterable:D,isBlobLike:k,buildURL:$,validateHandler:V,getServerName:ee,normalizedMethodRecords:te}=n(3440);const{channels:re}=n(2414);const{headerNameLowerCasedRecord:ne}=n(735);const se=/[^\u0021-\u00ff]/;const oe=Symbol("handler");class Request{constructor(e,{path:t,method:n,body:i,headers:c,query:p,idempotent:ne,blocking:ie,upgrade:ae,headersTimeout:ce,bodyTimeout:le,reset:ue,throwOnError:de,expectContinue:pe,servername:Ae},me){if(typeof t!=="string"){throw new o("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&n!=="CONNECT"){throw new o("path must be an absolute URL or start with a slash")}else if(se.test(t)){throw new o("invalid request path")}if(typeof n!=="string"){throw new o("method must be a string")}else if(te[n]===undefined&&!d(n)){throw new o("invalid request method")}if(ae&&typeof ae!=="string"){throw new o("upgrade must be a string")}if(ce!=null&&(!Number.isFinite(ce)||ce<0)){throw new o("invalid headersTimeout")}if(le!=null&&(!Number.isFinite(le)||le<0)){throw new o("invalid bodyTimeout")}if(ue!=null&&typeof ue!=="boolean"){throw new o("invalid reset")}if(pe!=null&&typeof pe!=="boolean"){throw new o("invalid expectContinue")}this.headersTimeout=ce;this.bodyTimeout=le;this.throwOnError=de===true;this.method=n;this.abort=null;if(i==null){this.body=null}else if(y(i)){this.body=i;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){C(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(Q(i)){this.body=i.byteLength?i:null}else if(ArrayBuffer.isView(i)){this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null}else if(i instanceof ArrayBuffer){this.body=i.byteLength?Buffer.from(i):null}else if(typeof i==="string"){this.body=i.length?Buffer.from(i):null}else if(v(i)||D(i)||k(i)){this.body=i}else{throw new o("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ae||null;this.path=p?$(t,p):t;this.origin=e;this.idempotent=ne==null?n==="HEAD"||n==="GET":ne;this.blocking=ie==null?false:ie;this.reset=ue==null?null:ue;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=pe!=null?pe:false;if(Array.isArray(c)){if(c.length%2!==0){throw new o("headers array must be even")}for(let e=0;e<c.length;e+=2){processHeader(this,c[e],c[e+1])}}else if(c&&typeof c==="object"){if(c[Symbol.iterator]){for(const e of c){if(!Array.isArray(e)||e.length!==2){throw new o("headers must be in key-value pair format")}processHeader(this,e[0],e[1])}}else{const e=Object.keys(c);for(let t=0;t<e.length;++t){processHeader(this,e[t],c[e[t]])}}}else if(c!=null){throw new o("headers must be an object or an array")}V(me,n,ae);this.servername=Ae||ee(this.host);this[oe]=me;if(re.create.hasSubscribers){re.create.publish({request:this})}}onBodySent(e){if(this[oe].onBodySent){try{return this[oe].onBodySent(e)}catch(e){this.abort(e)}}}onRequestSent(){if(re.bodySent.hasSubscribers){re.bodySent.publish({request:this})}if(this[oe].onRequestSent){try{return this[oe].onRequestSent()}catch(e){this.abort(e)}}}onConnect(e){c(!this.aborted);c(!this.completed);if(this.error){e(this.error)}else{this.abort=e;return this[oe].onConnect(e)}}onResponseStarted(){return this[oe].onResponseStarted?.()}onHeaders(e,t,n,o){c(!this.aborted);c(!this.completed);if(re.headers.hasSubscribers){re.headers.publish({request:this,response:{statusCode:e,headers:t,statusText:o}})}try{return this[oe].onHeaders(e,t,n,o)}catch(e){this.abort(e)}}onData(e){c(!this.aborted);c(!this.completed);try{return this[oe].onData(e)}catch(e){this.abort(e);return false}}onUpgrade(e,t,n){c(!this.aborted);c(!this.completed);return this[oe].onUpgrade(e,t,n)}onComplete(e){this.onFinally();c(!this.aborted);this.completed=true;if(re.trailers.hasSubscribers){re.trailers.publish({request:this,trailers:e})}try{return this[oe].onComplete(e)}catch(e){this.onError(e)}}onError(e){this.onFinally();if(re.error.hasSubscribers){re.error.publish({request:this,error:e})}if(this.aborted){return}this.aborted=true;return this[oe].onError(e)}onFinally(){if(this.errorHandler){this.body.off("error",this.errorHandler);this.errorHandler=null}if(this.endHandler){this.body.off("end",this.endHandler);this.endHandler=null}}addHeader(e,t){processHeader(this,e,t);return this}}function processHeader(e,t,n){if(n&&(typeof n==="object"&&!Array.isArray(n))){throw new o(`invalid ${t} header`)}else if(n===undefined){return}let c=ne[t];if(c===undefined){c=t.toLowerCase();if(ne[c]===undefined&&!d(c)){throw new o("invalid header key")}}if(Array.isArray(n)){const e=[];for(let i=0;i<n.length;i++){if(typeof n[i]==="string"){if(!p(n[i])){throw new o(`invalid ${t} header`)}e.push(n[i])}else if(n[i]===null){e.push("")}else if(typeof n[i]==="object"){throw new o(`invalid ${t} header`)}else{e.push(`${n[i]}`)}}n=e}else if(typeof n==="string"){if(!p(n)){throw new o(`invalid ${t} header`)}}else if(n===null){n=""}else{n=`${n}`}if(e.host===null&&c==="host"){if(typeof n!=="string"){throw new o("invalid host header")}e.host=n}else if(e.contentLength===null&&c==="content-length"){e.contentLength=parseInt(n,10);if(!Number.isFinite(e.contentLength)){throw new o("invalid content-length header")}}else if(e.contentType===null&&c==="content-type"){e.contentType=n;e.headers.push(t,n)}else if(c==="transfer-encoding"||c==="keep-alive"||c==="upgrade"){throw new o(`invalid ${c} header`)}else if(c==="connection"){const t=typeof n==="string"?n.toLowerCase():null;if(t!=="close"&&t!=="keep-alive"){throw new o("invalid connection header")}if(t==="close"){e.reset=true}}else if(c==="expect"){throw new i("expect header not supported")}else{e.headers.push(t,n)}}e.exports=Request},6443:e=>{e.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"),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"),kBody:Symbol("abstracted request body"),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"),kResume:Symbol("resume"),kOnError:Symbol("on error"),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"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}},7752:(e,t,n)=>{const{wellknownHeaderNames:o,headerNameLowerCasedRecord:i}=n(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(e,t,n){if(n===undefined||n>=e.length){throw new TypeError("Unreachable")}const o=this.code=e.charCodeAt(n);if(o>127){throw new TypeError("key must be ascii string")}if(e.length!==++n){this.middle=new TstNode(e,t,n)}else{this.value=t}}add(e,t){const n=e.length;if(n===0){throw new TypeError("Unreachable")}let o=0;let i=this;while(true){const c=e.charCodeAt(o);if(c>127){throw new TypeError("key must be ascii string")}if(i.code===c){if(n===++o){i.value=t;break}else if(i.middle!==null){i=i.middle}else{i.middle=new TstNode(e,t,o);break}}else if(i.code<c){if(i.left!==null){i=i.left}else{i.left=new TstNode(e,t,o);break}}else if(i.right!==null){i=i.right}else{i.right=new TstNode(e,t,o);break}}}search(e){const t=e.length;let n=0;let o=this;while(o!==null&&n<t){let i=e[n];if(i<=90&&i>=65){i|=32}while(o!==null){if(i===o.code){if(t===++n){return o}o=o.middle;break}o=o.code<i?o.left:o.right}}return null}}class TernarySearchTree{node=null;insert(e,t){if(this.node===null){this.node=new TstNode(e,t,0)}else{this.node.add(e,t)}}lookup(e){return this.node?.search(e)?.value??null}}const c=new TernarySearchTree;for(let e=0;e<o.length;++e){const t=i[o[e]];c.insert(t,t)}e.exports={TernarySearchTree:TernarySearchTree,tree:c}},3440:(e,t,n)=>{const o=n(4589);const{kDestroyed:i,kBodyUsed:c,kListeners:d,kBody:p}=n(6443);const{IncomingMessage:y}=n(7067);const C=n(7075);const Q=n(7030);const{Blob:v}=n(4573);const D=n(7975);const{stringify:k}=n(1792);const{EventEmitter:$}=n(8474);const{InvalidArgumentError:V}=n(8707);const{headerNameLowerCasedRecord:ee}=n(735);const{tree:te}=n(7752);const[re,ne]=process.versions.node.split(".").map((e=>Number(e)));class BodyAsyncIterable{constructor(e){this[p]=e;this[c]=false}async*[Symbol.asyncIterator](){o(!this[c],"disturbed");this[c]=true;yield*this[p]}}function wrapRequestBody(e){if(isStream(e)){if(bodyLength(e)===0){e.on("data",(function(){o(false)}))}if(typeof e.readableDidRead!=="boolean"){e[c]=false;$.prototype.on.call(e,"data",(function(){this[c]=true}))}return e}else if(e&&typeof e.pipeTo==="function"){return new BodyAsyncIterable(e)}else if(e&&typeof e!=="string"&&!ArrayBuffer.isView(e)&&isIterable(e)){return new BodyAsyncIterable(e)}else{return e}}function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){if(e===null){return false}else if(e instanceof v){return true}else if(typeof e!=="object"){return false}else{const t=e[Symbol.toStringTag];return(t==="Blob"||t==="File")&&("stream"in e&&typeof e.stream==="function"||"arrayBuffer"in e&&typeof e.arrayBuffer==="function")}}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const n=k(t);if(n){e+="?"+n}return e}function isValidPort(e){const t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function isHttpOrHttpsPrefixed(e){return e!=null&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&(e[4]===":"||e[4]==="s"&&e[5]===":")}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new V("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new V("Invalid URL: The URL argument must be a non-null object.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&isValidPort(e.port)===false){throw new V("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new V("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new V("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new V("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new V("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new V("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let n=e.origin!=null?e.origin:`${e.protocol||""}//${e.hostname||""}:${t}`;let o=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(n[n.length-1]==="/"){n=n.slice(0,n.length-1)}if(o&&o[0]!=="/"){o=`/${o}`}return new URL(`${n}${o}`)}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new V("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new V("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");o(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}o(typeof e==="string");const t=getHostname(e);if(Q.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return e&&!!(e.destroyed||e[i]||C.isDestroyed?.(e))}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===y){e.socket=null}e.destroy(t)}else if(t){queueMicrotask((()=>{e.emit("error",t)}))}if(e.destroyed!==true){e[i]=true}}const se=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(se);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return typeof e==="string"?ee[e]??e.toLowerCase():te.lookup(e)??e.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(e){return te.lookup(e)??e.toString("latin1").toLowerCase()}function parseHeaders(e,t){if(t===undefined)t={};for(let n=0;n<e.length;n+=2){const o=headerNameToString(e[n]);let i=t[o];if(i){if(typeof i==="string"){i=[i];t[o]=i}i.push(e[n+1].toString("utf8"))}else{const i=e[n+1];if(typeof i==="string"){t[o]=i}else{t[o]=Array.isArray(i)?i.map((e=>e.toString("utf8"))):i.toString("utf8")}}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=e.length;const n=new Array(t);let o=false;let i=-1;let c;let d;let p=0;for(let t=0;t<e.length;t+=2){c=e[t];d=e[t+1];typeof c!=="string"&&(c=c.toString());typeof d!=="string"&&(d=d.toString("utf8"));p=c.length;if(p===14&&c[7]==="-"&&(c==="content-length"||c.toLowerCase()==="content-length")){o=true}else if(p===19&&c[7]==="-"&&(c==="content-disposition"||c.toLowerCase()==="content-disposition")){i=t+1}n[t]=c;n[t+1]=d}if(o&&i!==-1){n[i]=Buffer.from(n[i]).toString("latin1")}return n}function isBuffer(e){return e instanceof Uint8Array||Buffer.isBuffer(e)}function validateHandler(e,t,n){if(!e||typeof e!=="object"){throw new V("handler must be an object")}if(typeof e.onConnect!=="function"){throw new V("invalid onConnect method")}if(typeof e.onError!=="function"){throw new V("invalid onError method")}if(typeof e.onBodySent!=="function"&&e.onBodySent!==undefined){throw new V("invalid onBodySent method")}if(n||t==="CONNECT"){if(typeof e.onUpgrade!=="function"){throw new V("invalid onUpgrade method")}}else{if(typeof e.onHeaders!=="function"){throw new V("invalid onHeaders method")}if(typeof e.onData!=="function"){throw new V("invalid onData method")}if(typeof e.onComplete!=="function"){throw new V("invalid onComplete method")}}}function isDisturbed(e){return!!(e&&(C.isDisturbed(e)||e[c]))}function isErrored(e){return!!(e&&C.isErrored(e))}function isReadable(e){return!!(e&&C.isReadable(e))}function getSocketInfo(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead}}function ReadableStreamFrom(e){let t;return new ReadableStream({async start(){t=e[Symbol.asyncIterator]()},async pull(e){const{done:n,value:o}=await t.next();if(n){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{const t=Buffer.isBuffer(o)?o:Buffer.from(o);if(t.byteLength){e.enqueue(new Uint8Array(t))}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const oe=typeof String.prototype.toWellFormed==="function";const ie=typeof String.prototype.isWellFormed==="function";function toUSVString(e){return oe?`${e}`.toWellFormed():D.toUSVString(e)}function isUSVString(e){return ie?`${e}`.isWellFormed():toUSVString(e)===`${e}`}function isTokenCharCode(e){switch(e){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 e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t<e.length;++t){if(!isTokenCharCode(e.charCodeAt(t))){return false}}return true}const ae=/[^\t\x20-\x7e\x80-\xff]/;function isValidHeaderValue(e){return!ae.test(e)}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}function addListener(e,t,n){const o=e[d]??=[];o.push([t,n]);e.on(t,n);return e}function removeAllListeners(e){for(const[t,n]of e[d]??[]){e.removeListener(t,n)}e[d]=null}function errorRequest(e,t,n){try{t.onError(n);o(t.aborted)}catch(n){e.emit("error",n)}}const ce=Object.create(null);ce.enumerable=true;const le={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};const ue={...le,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(le,null);Object.setPrototypeOf(ue,null);e.exports={kEnumerableProperty:ce,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isUSVString:isUSVString,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,bufferToLowerCasedHeaderName:bufferToLowerCasedHeaderName,addListener:addListener,removeAllListeners:removeAllListeners,errorRequest:errorRequest,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,addAbortListener:addAbortListener,isValidHTTPToken:isValidHTTPToken,isValidHeaderValue:isValidHeaderValue,isTokenCharCode:isTokenCharCode,parseRangeHeader:parseRangeHeader,normalizedMethodRecordsBase:le,normalizedMethodRecords:ue,isValidPort:isValidPort,isHttpOrHttpsPrefixed:isHttpOrHttpsPrefixed,nodeMajor:re,nodeMinor:ne,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:wrapRequestBody}},7405:(e,t,n)=>{const{InvalidArgumentError:o}=n(8707);const{kClients:i,kRunning:c,kClose:d,kDestroy:p,kDispatch:y,kInterceptors:C}=n(6443);const Q=n(1841);const v=n(628);const D=n(3701);const k=n(3440);const $=n(5092);const V=Symbol("onConnect");const ee=Symbol("onDisconnect");const te=Symbol("onConnectionError");const re=Symbol("maxRedirections");const ne=Symbol("onDrain");const se=Symbol("factory");const oe=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new D(e,t):new v(e,t)}class Agent extends Q{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:n,...c}={}){super();if(typeof e!=="function"){throw new o("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new o("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new o("maxRedirections must be a positive number")}if(n&&typeof n!=="function"){n={...n}}this[C]=c.interceptors?.Agent&&Array.isArray(c.interceptors.Agent)?c.interceptors.Agent:[$({maxRedirections:t})];this[oe]={...k.deepClone(c),connect:n};this[oe].interceptors=c.interceptors?{...c.interceptors}:undefined;this[re]=t;this[se]=e;this[i]=new Map;this[ne]=(e,t)=>{this.emit("drain",e,[this,...t])};this[V]=(e,t)=>{this.emit("connect",e,[this,...t])};this[ee]=(e,t,n)=>{this.emit("disconnect",e,[this,...t],n)};this[te]=(e,t,n)=>{this.emit("connectionError",e,[this,...t],n)}}get[c](){let e=0;for(const t of this[i].values()){e+=t[c]}return e}[y](e,t){let n;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){n=String(e.origin)}else{throw new o("opts.origin must be a non-empty string or URL.")}let c=this[i].get(n);if(!c){c=this[se](e.origin,this[oe]).on("drain",this[ne]).on("connect",this[V]).on("disconnect",this[ee]).on("connectionError",this[te]);this[i].set(n,c)}return c.dispatch(e,t)}async[d](){const e=[];for(const t of this[i].values()){e.push(t.close())}this[i].clear();await Promise.all(e)}async[p](e){const t=[];for(const n of this[i].values()){t.push(n.destroy(e))}this[i].clear();await Promise.all(t)}}e.exports=Agent},837:(e,t,n)=>{const{BalancedPoolMissingUpstreamError:o,InvalidArgumentError:i}=n(8707);const{PoolBase:c,kClients:d,kNeedDrain:p,kAddClient:y,kRemoveClient:C,kGetDispatcher:Q}=n(2128);const v=n(628);const{kUrl:D,kInterceptors:k}=n(6443);const{parseOrigin:$}=n(3440);const V=Symbol("factory");const ee=Symbol("options");const te=Symbol("kGreatestCommonDivisor");const re=Symbol("kCurrentWeight");const ne=Symbol("kIndex");const se=Symbol("kWeight");const oe=Symbol("kMaxWeightPerServer");const ie=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(e===0)return t;while(t!==0){const n=t;t=e%t;e=n}return e}function defaultFactory(e,t){return new v(e,t)}class BalancedPool extends c{constructor(e=[],{factory:t=defaultFactory,...n}={}){super();this[ee]=n;this[ne]=-1;this[re]=0;this[oe]=this[ee].maxWeightPerServer||100;this[ie]=this[ee].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new i("factory must be a function.")}this[k]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[];this[V]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=$(e).origin;if(this[d].find((e=>e[D].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const n=this[V](t,Object.assign({},this[ee]));this[y](n);n.on("connect",(()=>{n[se]=Math.min(this[oe],n[se]+this[ie])}));n.on("connectionError",(()=>{n[se]=Math.max(1,n[se]-this[ie]);this._updateBalancedPoolStats()}));n.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){n[se]=Math.max(1,n[se]-this[ie]);this._updateBalancedPoolStats()}}));for(const e of this[d]){e[se]=this[oe]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let e=0;for(let t=0;t<this[d].length;t++){e=getGreatestCommonDivisor(this[d][t][se],e)}this[te]=e}removeUpstream(e){const t=$(e).origin;const n=this[d].find((e=>e[D].origin===t&&e.closed!==true&&e.destroyed!==true));if(n){this[C](n)}return this}get upstreams(){return this[d].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[D].origin))}[Q](){if(this[d].length===0){throw new o}const e=this[d].find((e=>!e[p]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[d].map((e=>e[p])).reduce(((e,t)=>e&&t),true);if(t){return}let n=0;let i=this[d].findIndex((e=>!e[p]));while(n++<this[d].length){this[ne]=(this[ne]+1)%this[d].length;const e=this[d][this[ne]];if(e[se]>this[d][i][se]&&!e[p]){i=this[ne]}if(this[ne]===0){this[re]=this[re]-this[te];if(this[re]<=0){this[re]=this[oe]}}if(e[se]>=this[re]&&!e[p]){return e}}this[re]=this[d][i][se];this[ne]=i;return this[d][i]}}e.exports=BalancedPool},637:(e,t,n)=>{const o=n(4589);const i=n(3440);const{channels:c}=n(2414);const d=n(6603);const{RequestContentLengthMismatchError:p,ResponseContentLengthMismatchError:y,RequestAbortedError:C,HeadersTimeoutError:Q,HeadersOverflowError:v,SocketError:D,InformationalError:k,BodyTimeoutError:$,HTTPParserError:V,ResponseExceededMaxSizeError:ee}=n(8707);const{kUrl:te,kReset:re,kClient:ne,kParser:se,kBlocking:oe,kRunning:ie,kPending:ae,kSize:ce,kWriting:le,kQueue:ue,kNoRef:de,kKeepAliveDefaultTimeout:pe,kHostHeader:Ae,kPendingIdx:me,kRunningIdx:ge,kError:fe,kPipelining:he,kSocket:ye,kKeepAliveTimeoutValue:Ee,kMaxHeadersSize:Ce,kKeepAliveMaxTimeout:Ie,kKeepAliveTimeoutThreshold:be,kHeadersTimeout:Se,kBodyTimeout:Be,kStrictContentLength:we,kMaxRequests:Re,kCounter:Ne,kMaxResponseSize:Qe,kOnError:xe,kResume:Te,kHTTPContext:ve}=n(6443);const Pe=n(2824);const De=Buffer.alloc(0);const ke=Buffer[Symbol.species];const _e=i.addListener;const Le=i.removeAllListeners;let Oe;async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?n(3870):undefined;let t;try{t=await WebAssembly.compile(n(3434))}catch(o){t=await WebAssembly.compile(e||n(3870))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{o(Me.ptr===e);const i=t-Ge+He.byteOffset;return Me.onStatus(new ke(He.buffer,i,n))||0},wasm_on_message_begin:e=>{o(Me.ptr===e);return Me.onMessageBegin()||0},wasm_on_header_field:(e,t,n)=>{o(Me.ptr===e);const i=t-Ge+He.byteOffset;return Me.onHeaderField(new ke(He.buffer,i,n))||0},wasm_on_header_value:(e,t,n)=>{o(Me.ptr===e);const i=t-Ge+He.byteOffset;return Me.onHeaderValue(new ke(He.buffer,i,n))||0},wasm_on_headers_complete:(e,t,n,i)=>{o(Me.ptr===e);return Me.onHeadersComplete(t,Boolean(n),Boolean(i))||0},wasm_on_body:(e,t,n)=>{o(Me.ptr===e);const i=t-Ge+He.byteOffset;return Me.onBody(new ke(He.buffer,i,n))||0},wasm_on_message_complete:e=>{o(Me.ptr===e);return Me.onMessageComplete()||0}}})}let Fe=null;let Ue=lazyllhttp();Ue.catch();let Me=null;let He=null;let $e=0;let Ge=null;const qe=0;const ze=1;const Ve=2|ze;const je=4|ze;const Ye=8|qe;class Parser{constructor(e,t,{exports:n}){o(Number.isFinite(e[Ce])&&e[Ce]>0);this.llhttp=n;this.ptr=this.llhttp.llhttp_alloc(Pe.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[Ce];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[Qe]}setTimeout(e,t){if(e!==this.timeoutValue||t&ze^this.timeoutType&ze){if(this.timeout){d.clearTimeout(this.timeout);this.timeout=null}if(e){if(t&ze){this.timeout=d.setFastTimeout(onParserTimeout,e,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,e,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=t}resume(){if(this.socket.destroyed||!this.paused){return}o(this.ptr!=null);o(Me==null);this.llhttp.llhttp_resume(this.ptr);o(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){o(this.ptr!=null);o(Me==null);o(!this.paused);const{socket:t,llhttp:n}=this;if(e.length>$e){if(Ge){n.free(Ge)}$e=Math.ceil(e.length/4096)*4096;Ge=n.malloc($e)}new Uint8Array(n.memory.buffer,Ge,$e).set(e);try{let o;try{He=e;Me=this;o=n.llhttp_execute(this.ptr,Ge,e.length)}catch(e){throw e}finally{Me=null;He=null}const i=n.llhttp_get_error_pos(this.ptr)-Ge;if(o===Pe.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(i))}else if(o===Pe.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(i))}else if(o!==Pe.ERROR.OK){const t=n.llhttp_get_error_reason(this.ptr);let c="";if(t){const e=new Uint8Array(n.memory.buffer,t).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,t,e).toString()+")"}throw new V(c,Pe.ERROR[o],e.slice(i))}}catch(e){i.destroy(t,e)}}destroy(){o(this.ptr!=null);o(Me==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&d.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const n=t[ue][t[ge]];if(!n){return-1}n.onResponseStarted()}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const n=this.headers[t-2];if(n.length===10){const t=i.bufferToLowerCasedHeaderName(n);if(t==="keep-alive"){this.keepAlive+=e.toString()}else if(t==="connection"){this.connection+=e.toString()}}else if(n.length===14&&i.bufferToLowerCasedHeaderName(n)==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){i.destroy(this.socket,new v)}}onUpgrade(e){const{upgrade:t,client:n,socket:c,headers:d,statusCode:p}=this;o(t);o(n[ye]===c);o(!c.destroyed);o(!this.paused);o((d.length&1)===0);const y=n[ue][n[ge]];o(y);o(y.upgrade||y.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;c.unshift(e);c[se].destroy();c[se]=null;c[ne]=null;c[fe]=null;Le(c);n[ye]=null;n[ve]=null;n[ue][n[ge]++]=null;n.emit("disconnect",n[te],[n],new k("upgrade"));try{y.onUpgrade(p,d,c)}catch(e){i.destroy(c,e)}n[Te]()}onHeadersComplete(e,t,n){const{client:c,socket:d,headers:p,statusText:y}=this;if(d.destroyed){return-1}const C=c[ue][c[ge]];if(!C){return-1}o(!this.upgrade);o(this.statusCode<200);if(e===100){i.destroy(d,new D("bad response",i.getSocketInfo(d)));return-1}if(t&&!C.upgrade){i.destroy(d,new D("bad upgrade",i.getSocketInfo(d)));return-1}o(this.timeoutType===Ve);this.statusCode=e;this.shouldKeepAlive=n||C.method==="HEAD"&&!d[re]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=C.bodyTimeout!=null?C.bodyTimeout:c[Be];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(C.method==="CONNECT"){o(c[ie]===1);this.upgrade=true;return 2}if(t){o(c[ie]===1);this.upgrade=true;return 2}o((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&c[he]){const e=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-c[be],c[Ie]);if(t<=0){d[re]=true}else{c[Ee]=t}}else{c[Ee]=c[pe]}}else{d[re]=true}const Q=C.onHeaders(e,p,this.resume,y)===false;if(C.aborted){return-1}if(C.method==="HEAD"){return 1}if(e<200){return 1}if(d[oe]){d[oe]=false;c[Te]()}return Q?Pe.ERROR.PAUSED:0}onBody(e){const{client:t,socket:n,statusCode:c,maxResponseSize:d}=this;if(n.destroyed){return-1}const p=t[ue][t[ge]];o(p);o(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}o(c>=200);if(d>-1&&this.bytesRead+e.length>d){i.destroy(n,new ee);return-1}this.bytesRead+=e.length;if(p.onData(e)===false){return Pe.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:n,upgrade:c,headers:d,contentLength:p,bytesRead:C,shouldKeepAlive:Q}=this;if(t.destroyed&&(!n||Q)){return-1}if(c){return}o(n>=100);o((this.headers.length&1)===0);const v=e[ue][e[ge]];o(v);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(n<200){return}if(v.method!=="HEAD"&&p&&C!==parseInt(p,10)){i.destroy(t,new y);return-1}v.onComplete(d);e[ue][e[ge]++]=null;if(t[le]){o(e[ie]===0);i.destroy(t,new k("reset"));return Pe.ERROR.PAUSED}else if(!Q){i.destroy(t,new k("reset"));return Pe.ERROR.PAUSED}else if(t[re]&&e[ie]===0){i.destroy(t,new k("reset"));return Pe.ERROR.PAUSED}else if(e[he]==null||e[he]===1){setImmediate((()=>e[Te]()))}else{e[Te]()}}}function onParserTimeout(e){const{socket:t,timeoutType:n,client:c,paused:d}=e.deref();if(n===Ve){if(!t[le]||t.writableNeedDrain||c[ie]>1){o(!d,"cannot be paused while waiting for headers");i.destroy(t,new Q)}}else if(n===je){if(!d){i.destroy(t,new $)}}else if(n===Ye){o(c[ie]===0&&c[Ee]);i.destroy(t,new k("socket idle timeout"))}}async function connectH1(e,t){e[ye]=t;if(!Fe){Fe=await Ue;Ue=null}t[de]=false;t[le]=false;t[re]=false;t[oe]=false;t[se]=new Parser(e,t,Fe);_e(t,"error",(function(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const t=this[se];if(e.code==="ECONNRESET"&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[fe]=e;this[ne][xe](e)}));_e(t,"readable",(function(){const e=this[se];if(e){e.readMore()}}));_e(t,"end",(function(){const e=this[se];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}i.destroy(this,new D("other side closed",i.getSocketInfo(this)))}));_e(t,"close",(function(){const e=this[ne];const t=this[se];if(t){if(!this[fe]&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete()}this[se].destroy();this[se]=null}const n=this[fe]||new D("closed",i.getSocketInfo(this));e[ye]=null;e[ve]=null;if(e.destroyed){o(e[ae]===0);const t=e[ue].splice(e[ge]);for(let o=0;o<t.length;o++){const c=t[o];i.errorRequest(e,c,n)}}else if(e[ie]>0&&n.code!=="UND_ERR_INFO"){const t=e[ue][e[ge]];e[ue][e[ge]++]=null;i.errorRequest(e,t,n)}e[me]=e[ge];o(e[ie]===0);e.emit("disconnect",e[te],[e],n);e[Te]()}));let n=false;t.on("close",(()=>{n=true}));return{version:"h1",defaultPipelining:1,write(...t){return writeH1(e,...t)},resume(){resumeH1(e)},destroy(e,o){if(n){queueMicrotask(o)}else{t.destroy(e).on("close",o)}},get destroyed(){return t.destroyed},busy(n){if(t[le]||t[re]||t[oe]){return true}if(n){if(e[ie]>0&&!n.idempotent){return true}if(e[ie]>0&&(n.upgrade||n.method==="CONNECT")){return true}if(e[ie]>0&&i.bodyLength(n.body)!==0&&(i.isStream(n.body)||i.isAsyncIterable(n.body)||i.isFormDataLike(n.body))){return true}}return false}}}function resumeH1(e){const t=e[ye];if(t&&!t.destroyed){if(e[ce]===0){if(!t[de]&&t.unref){t.unref();t[de]=true}}else if(t[de]&&t.ref){t.ref();t[de]=false}if(e[ce]===0){if(t[se].timeoutType!==Ye){t[se].setTimeout(e[Ee],Ye)}}else if(e[ie]>0&&t[se].statusCode<200){if(t[se].timeoutType!==Ve){const n=e[ue][e[ge]];const o=n.headersTimeout!=null?n.headersTimeout:e[Se];t[se].setTimeout(o,Ve)}}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function writeH1(e,t){const{method:d,path:y,host:Q,upgrade:v,blocking:D,reset:$}=t;let{body:V,headers:ee,contentLength:te}=t;const ne=d==="PUT"||d==="POST"||d==="PATCH"||d==="QUERY"||d==="PROPFIND"||d==="PROPPATCH";if(i.isFormDataLike(V)){if(!Oe){Oe=n(4492).extractBody}const[e,o]=Oe(V);if(t.contentType==null){ee.push("content-type",o)}V=e.stream;te=e.length}else if(i.isBlobLike(V)&&t.contentType==null&&V.type){ee.push("content-type",V.type)}if(V&&typeof V.read==="function"){V.read(0)}const se=i.bodyLength(V);te=se??te;if(te===null){te=t.contentLength}if(te===0&&!ne){te=null}if(shouldSendContentLength(d)&&te>0&&t.contentLength!==null&&t.contentLength!==te){if(e[we]){i.errorRequest(e,t,new p);return false}process.emitWarning(new p)}const ie=e[ye];const abort=n=>{if(t.aborted||t.completed){return}i.errorRequest(e,t,n||new C);i.destroy(V);i.destroy(ie,new k("aborted"))};try{t.onConnect(abort)}catch(n){i.errorRequest(e,t,n)}if(t.aborted){return false}if(d==="HEAD"){ie[re]=true}if(v||d==="CONNECT"){ie[re]=true}if($!=null){ie[re]=$}if(e[Re]&&ie[Ne]++>=e[Re]){ie[re]=true}if(D){ie[oe]=true}let ae=`${d} ${y} HTTP/1.1\r\n`;if(typeof Q==="string"){ae+=`host: ${Q}\r\n`}else{ae+=e[Ae]}if(v){ae+=`connection: upgrade\r\nupgrade: ${v}\r\n`}else if(e[he]&&!ie[re]){ae+="connection: keep-alive\r\n"}else{ae+="connection: close\r\n"}if(Array.isArray(ee)){for(let e=0;e<ee.length;e+=2){const t=ee[e+0];const n=ee[e+1];if(Array.isArray(n)){for(let e=0;e<n.length;e++){ae+=`${t}: ${n[e]}\r\n`}}else{ae+=`${t}: ${n}\r\n`}}}if(c.sendHeaders.hasSubscribers){c.sendHeaders.publish({request:t,headers:ae,socket:ie})}if(!V||se===0){writeBuffer(abort,null,e,t,ie,te,ae,ne)}else if(i.isBuffer(V)){writeBuffer(abort,V,e,t,ie,te,ae,ne)}else if(i.isBlobLike(V)){if(typeof V.stream==="function"){writeIterable(abort,V.stream(),e,t,ie,te,ae,ne)}else{writeBlob(abort,V,e,t,ie,te,ae,ne)}}else if(i.isStream(V)){writeStream(abort,V,e,t,ie,te,ae,ne)}else if(i.isIterable(V)){writeIterable(abort,V,e,t,ie,te,ae,ne)}else{o(false)}return true}function writeStream(e,t,n,c,d,p,y,Q){o(p!==0||n[ie]===0,"stream body cannot be pipelined");let v=false;const D=new AsyncWriter({abort:e,socket:d,request:c,contentLength:p,client:n,expectsPayload:Q,header:y});const onData=function(e){if(v){return}try{if(!D.write(e)&&this.pause){this.pause()}}catch(e){i.destroy(this,e)}};const onDrain=function(){if(v){return}if(t.resume){t.resume()}};const onClose=function(){queueMicrotask((()=>{t.removeListener("error",onFinished)}));if(!v){const e=new C;queueMicrotask((()=>onFinished(e)))}};const onFinished=function(e){if(v){return}v=true;o(d.destroyed||d[le]&&n[ie]<=1);d.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!e){try{D.end()}catch(t){e=t}}D.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){i.destroy(t,e)}else{i.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(t.resume){t.resume()}d.on("drain",onDrain).on("error",onFinished);if(t.errorEmitted??t.errored){setImmediate((()=>onFinished(t.errored)))}else if(t.endEmitted??t.readableEnded){setImmediate((()=>onFinished(null)))}if(t.closeEmitted??t.closed){setImmediate(onClose)}}function writeBuffer(e,t,n,c,d,p,y,C){try{if(!t){if(p===0){d.write(`${y}content-length: 0\r\n\r\n`,"latin1")}else{o(p===null,"no body must not have content length");d.write(`${y}\r\n`,"latin1")}}else if(i.isBuffer(t)){o(p===t.byteLength,"buffer body must have content length");d.cork();d.write(`${y}content-length: ${p}\r\n\r\n`,"latin1");d.write(t);d.uncork();c.onBodySent(t);if(!C&&c.reset!==false){d[re]=true}}c.onRequestSent();n[Te]()}catch(t){e(t)}}async function writeBlob(e,t,n,i,c,d,y,C){o(d===t.size,"blob body must have content length");try{if(d!=null&&d!==t.size){throw new p}const e=Buffer.from(await t.arrayBuffer());c.cork();c.write(`${y}content-length: ${d}\r\n\r\n`,"latin1");c.write(e);c.uncork();i.onBodySent(e);i.onRequestSent();if(!C&&i.reset!==false){c[re]=true}n[Te]()}catch(t){e(t)}}async function writeIterable(e,t,n,i,c,d,p,y){o(d!==0||n[ie]===0,"iterator body cannot be pipelined");let C=null;function onDrain(){if(C){const e=C;C=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(C===null);if(c[fe]){t(c[fe])}else{C=e}}));c.on("close",onDrain).on("drain",onDrain);const Q=new AsyncWriter({abort:e,socket:c,request:i,contentLength:d,client:n,expectsPayload:y,header:p});try{for await(const e of t){if(c[fe]){throw c[fe]}if(!Q.write(e)){await waitForDrain()}}Q.end()}catch(e){Q.destroy(e)}finally{c.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:e,socket:t,request:n,contentLength:o,client:i,expectsPayload:c,header:d}){this.socket=t;this.request=n;this.contentLength=o;this.client=i;this.bytesWritten=0;this.expectsPayload=c;this.header=d;this.abort=e;t[le]=true}write(e){const{socket:t,request:n,contentLength:o,client:i,bytesWritten:c,expectsPayload:d,header:y}=this;if(t[fe]){throw t[fe]}if(t.destroyed){return false}const C=Buffer.byteLength(e);if(!C){return true}if(o!==null&&c+C>o){if(i[we]){throw new p}process.emitWarning(new p)}t.cork();if(c===0){if(!d&&n.reset!==false){t[re]=true}if(o===null){t.write(`${y}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${y}content-length: ${o}\r\n\r\n`,"latin1")}}if(o===null){t.write(`\r\n${C.toString(16)}\r\n`,"latin1")}this.bytesWritten+=C;const Q=t.write(e);t.uncork();n.onBodySent(e);if(!Q){if(t[se].timeout&&t[se].timeoutType===Ve){if(t[se].timeout.refresh){t[se].timeout.refresh()}}}return Q}end(){const{socket:e,contentLength:t,client:n,bytesWritten:o,expectsPayload:i,header:c,request:d}=this;d.onRequestSent();e[le]=false;if(e[fe]){throw e[fe]}if(e.destroyed){return}if(o===0){if(i){e.write(`${c}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${c}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&o!==t){if(n[we]){throw new p}else{process.emitWarning(new p)}}if(e[se].timeout&&e[se].timeoutType===Ve){if(e[se].timeout.refresh){e[se].timeout.refresh()}}n[Te]()}destroy(e){const{socket:t,client:n,abort:i}=this;t[le]=false;if(e){o(n[ie]<=1,"pipeline should only contain this request");i(e)}}}e.exports=connectH1},8788:(e,t,n)=>{const o=n(4589);const{pipeline:i}=n(7075);const c=n(3440);const{RequestContentLengthMismatchError:d,RequestAbortedError:p,SocketError:y,InformationalError:C}=n(8707);const{kUrl:Q,kReset:v,kClient:D,kRunning:k,kPending:$,kQueue:V,kPendingIdx:ee,kRunningIdx:te,kError:re,kSocket:ne,kStrictContentLength:se,kOnError:oe,kMaxConcurrentStreams:ie,kHTTP2Session:ae,kResume:ce,kSize:le,kHTTPContext:ue}=n(6443);const de=Symbol("open streams");let pe;let Ae=false;let me;try{me=n(2467)}catch{me={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:ge,HTTP2_HEADER_METHOD:fe,HTTP2_HEADER_PATH:he,HTTP2_HEADER_SCHEME:ye,HTTP2_HEADER_CONTENT_LENGTH:Ee,HTTP2_HEADER_EXPECT:Ce,HTTP2_HEADER_STATUS:Ie}}=me;function parseH2Headers(e){const t=[];for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.push(Buffer.from(n),Buffer.from(e))}}else{t.push(Buffer.from(n),Buffer.from(o))}}return t}async function connectH2(e,t){e[ne]=t;if(!Ae){Ae=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const n=me.connect(e[Q],{createConnection:()=>t,peerMaxConcurrentStreams:e[ie]});n[de]=0;n[D]=e;n[ne]=t;c.addListener(n,"error",onHttp2SessionError);c.addListener(n,"frameError",onHttp2FrameError);c.addListener(n,"end",onHttp2SessionEnd);c.addListener(n,"goaway",onHTTP2GoAway);c.addListener(n,"close",(function(){const{[D]:e}=this;const{[ne]:t}=e;const n=this[ne][re]||this[re]||new y("closed",c.getSocketInfo(t));e[ae]=null;if(e.destroyed){o(e[$]===0);const t=e[V].splice(e[te]);for(let o=0;o<t.length;o++){const i=t[o];c.errorRequest(e,i,n)}}}));n.unref();e[ae]=n;t[ae]=n;c.addListener(t,"error",(function(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[re]=e;this[D][oe](e)}));c.addListener(t,"end",(function(){c.destroy(this,new y("other side closed",c.getSocketInfo(this)))}));c.addListener(t,"close",(function(){const t=this[re]||new y("closed",c.getSocketInfo(this));e[ne]=null;if(this[ae]!=null){this[ae].destroy(t)}e[ee]=e[te];o(e[k]===0);e.emit("disconnect",e[Q],[e],t);e[ce]()}));let i=false;t.on("close",(()=>{i=true}));return{version:"h2",defaultPipelining:Infinity,write(...t){return writeH2(e,...t)},resume(){resumeH2(e)},destroy(e,n){if(i){queueMicrotask(n)}else{t.destroy(e).on("close",n)}},get destroyed(){return t.destroyed},busy(){return false}}}function resumeH2(e){const t=e[ne];if(t?.destroyed===false){if(e[le]===0&&e[ie]===0){t.unref();e[ae].unref()}else{t.ref();e[ae].ref()}}}function onHttp2SessionError(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[ne][re]=e;this[D][oe](e)}function onHttp2FrameError(e,t,n){if(n===0){const n=new C(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[ne][re]=n;this[D][oe](n)}}function onHttp2SessionEnd(){const e=new y("other side closed",c.getSocketInfo(this[ne]));this.destroy(e);c.destroy(this[ne],e)}function onHTTP2GoAway(e){const t=this[re]||new y(`HTTP/2: "GOAWAY" frame received with code ${e}`,c.getSocketInfo(this));const n=this[D];n[ne]=null;n[ue]=null;if(this[ae]!=null){this[ae].destroy(t);this[ae]=null}c.destroy(this[ne],t);if(n[te]<n[V].length){const e=n[V][n[te]];n[V][n[te]++]=null;c.errorRequest(n,e,t);n[ee]=n[te]}o(n[k]===0);n.emit("disconnect",n[Q],[n],t);n[ce]()}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function writeH2(e,t){const i=e[ae];const{method:y,path:v,host:D,upgrade:k,expectContinue:$,signal:re,headers:oe}=t;let{body:ie}=t;if(k){c.errorRequest(e,t,new Error("Upgrade not supported for H2"));return false}const le={};for(let e=0;e<oe.length;e+=2){const t=oe[e+0];const n=oe[e+1];if(Array.isArray(n)){for(let e=0;e<n.length;e++){if(le[t]){le[t]+=`,${n[e]}`}else{le[t]=n[e]}}}else{le[t]=n}}let ue;const{hostname:Ae,port:me}=e[Q];le[ge]=D||`${Ae}${me?`:${me}`:""}`;le[fe]=y;const abort=n=>{if(t.aborted||t.completed){return}n=n||new p;c.errorRequest(e,t,n);if(ue!=null){c.destroy(ue,n)}c.destroy(ie,n);e[V][e[te]++]=null;e[ce]()};try{t.onConnect(abort)}catch(n){c.errorRequest(e,t,n)}if(t.aborted){return false}if(y==="CONNECT"){i.ref();ue=i.request(le,{endStream:false,signal:re});if(ue.id&&!ue.pending){t.onUpgrade(null,null,ue);++i[de];e[V][e[te]++]=null}else{ue.once("ready",(()=>{t.onUpgrade(null,null,ue);++i[de];e[V][e[te]++]=null}))}ue.once("close",(()=>{i[de]-=1;if(i[de]===0)i.unref()}));return true}le[he]=v;le[ye]="https";const be=y==="PUT"||y==="POST"||y==="PATCH";if(ie&&typeof ie.read==="function"){ie.read(0)}let Se=c.bodyLength(ie);if(c.isFormDataLike(ie)){pe??=n(4492).extractBody;const[e,t]=pe(ie);le["content-type"]=t;ie=e.stream;Se=e.length}if(Se==null){Se=t.contentLength}if(Se===0||!be){Se=null}if(shouldSendContentLength(y)&&Se>0&&t.contentLength!=null&&t.contentLength!==Se){if(e[se]){c.errorRequest(e,t,new d);return false}process.emitWarning(new d)}if(Se!=null){o(ie,"no body must not have content length");le[Ee]=`${Se}`}i.ref();const Be=y==="GET"||y==="HEAD"||ie===null;if($){le[Ce]="100-continue";ue=i.request(le,{endStream:Be,signal:re});ue.once("continue",writeBodyH2)}else{ue=i.request(le,{endStream:Be,signal:re});writeBodyH2()}++i[de];ue.once("response",(n=>{const{[Ie]:o,...i}=n;t.onResponseStarted();if(t.aborted){const n=new p;c.errorRequest(e,t,n);c.destroy(ue,n);return}if(t.onHeaders(Number(o),parseH2Headers(i),ue.resume.bind(ue),"")===false){ue.pause()}ue.on("data",(e=>{if(t.onData(e)===false){ue.pause()}}))}));ue.once("end",(()=>{if(ue.state?.state==null||ue.state.state<6){t.onComplete([])}if(i[de]===0){i.unref()}abort(new C("HTTP/2: stream half-closed (remote)"));e[V][e[te]++]=null;e[ee]=e[te];e[ce]()}));ue.once("close",(()=>{i[de]-=1;if(i[de]===0){i.unref()}}));ue.once("error",(function(e){abort(e)}));ue.once("frameError",((e,t)=>{abort(new C(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}));return true;function writeBodyH2(){if(!ie||Se===0){writeBuffer(abort,ue,null,e,t,e[ne],Se,be)}else if(c.isBuffer(ie)){writeBuffer(abort,ue,ie,e,t,e[ne],Se,be)}else if(c.isBlobLike(ie)){if(typeof ie.stream==="function"){writeIterable(abort,ue,ie.stream(),e,t,e[ne],Se,be)}else{writeBlob(abort,ue,ie,e,t,e[ne],Se,be)}}else if(c.isStream(ie)){writeStream(abort,e[ne],be,ue,ie,e,t,Se)}else if(c.isIterable(ie)){writeIterable(abort,ue,ie,e,t,e[ne],Se,be)}else{o(false)}}}function writeBuffer(e,t,n,i,d,p,y,C){try{if(n!=null&&c.isBuffer(n)){o(y===n.byteLength,"buffer body must have content length");t.cork();t.write(n);t.uncork();t.end();d.onBodySent(n)}if(!C){p[v]=true}d.onRequestSent();i[ce]()}catch(t){e(t)}}function writeStream(e,t,n,d,p,y,C,Q){o(Q!==0||y[k]===0,"stream body cannot be pipelined");const D=i(p,d,(o=>{if(o){c.destroy(D,o);e(o)}else{c.removeAllListeners(D);C.onRequestSent();if(!n){t[v]=true}y[ce]()}}));c.addListener(D,"data",onPipeData);function onPipeData(e){C.onBodySent(e)}}async function writeBlob(e,t,n,i,c,p,y,C){o(y===n.size,"blob body must have content length");try{if(y!=null&&y!==n.size){throw new d}const e=Buffer.from(await n.arrayBuffer());t.cork();t.write(e);t.uncork();t.end();c.onBodySent(e);c.onRequestSent();if(!C){p[v]=true}i[ce]()}catch(t){e(t)}}async function writeIterable(e,t,n,i,c,d,p,y){o(p!==0||i[k]===0,"iterator body cannot be pipelined");let C=null;function onDrain(){if(C){const e=C;C=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(C===null);if(d[re]){t(d[re])}else{C=e}}));t.on("close",onDrain).on("drain",onDrain);try{for await(const e of n){if(d[re]){throw d[re]}const n=t.write(e);c.onBodySent(e);if(!n){await waitForDrain()}}t.end();c.onRequestSent();if(!y){d[v]=true}i[ce]()}catch(t){e(t)}finally{t.off("close",onDrain).off("drain",onDrain)}}e.exports=connectH2},3701:(e,t,n)=>{const o=n(4589);const i=n(7030);const c=n(7067);const d=n(3440);const{channels:p}=n(2414);const y=n(4655);const C=n(1841);const{InvalidArgumentError:Q,InformationalError:v,ClientDestroyedError:D}=n(8707);const k=n(9136);const{kUrl:$,kServerName:V,kClient:ee,kBusy:te,kConnect:re,kResuming:ne,kRunning:se,kPending:oe,kSize:ie,kQueue:ae,kConnected:ce,kConnecting:le,kNeedDrain:ue,kKeepAliveDefaultTimeout:de,kHostHeader:pe,kPendingIdx:Ae,kRunningIdx:me,kError:ge,kPipelining:fe,kKeepAliveTimeoutValue:he,kMaxHeadersSize:ye,kKeepAliveMaxTimeout:Ee,kKeepAliveTimeoutThreshold:Ce,kHeadersTimeout:Ie,kBodyTimeout:be,kStrictContentLength:Se,kConnector:Be,kMaxRedirections:we,kMaxRequests:Re,kCounter:Ne,kClose:Qe,kDestroy:xe,kDispatch:Te,kInterceptors:ve,kLocalAddress:Pe,kMaxResponseSize:De,kOnError:ke,kHTTPContext:_e,kMaxConcurrentStreams:Le,kResume:Oe}=n(6443);const Fe=n(637);const Ue=n(8788);let Me=false;const He=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(e){return e[fe]??e[_e]?.defaultPipelining??1}class Client extends C{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:p,requestTimeout:y,connectTimeout:C,bodyTimeout:v,idleTimeout:D,keepAlive:ee,keepAliveTimeout:te,maxKeepAliveTimeout:re,keepAliveMaxTimeout:se,keepAliveTimeoutThreshold:oe,socketPath:ie,pipelining:ce,tls:le,strictContentLength:ge,maxCachedSessions:Ne,maxRedirections:Qe,connect:xe,maxRequestsPerClient:Te,localAddress:Fe,maxResponseSize:Ue,autoSelectFamily:Ge,autoSelectFamilyAttemptTimeout:qe,maxConcurrentStreams:ze,allowH2:Ve}={}){super();if(ee!==undefined){throw new Q("unsupported keepAlive, use pipelining=0 instead")}if(p!==undefined){throw new Q("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(y!==undefined){throw new Q("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(D!==undefined){throw new Q("unsupported idleTimeout, use keepAliveTimeout instead")}if(re!==undefined){throw new Q("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(n!=null&&!Number.isFinite(n)){throw new Q("invalid maxHeaderSize")}if(ie!=null&&typeof ie!=="string"){throw new Q("invalid socketPath")}if(C!=null&&(!Number.isFinite(C)||C<0)){throw new Q("invalid connectTimeout")}if(te!=null&&(!Number.isFinite(te)||te<=0)){throw new Q("invalid keepAliveTimeout")}if(se!=null&&(!Number.isFinite(se)||se<=0)){throw new Q("invalid keepAliveMaxTimeout")}if(oe!=null&&!Number.isFinite(oe)){throw new Q("invalid keepAliveTimeoutThreshold")}if(o!=null&&(!Number.isInteger(o)||o<0)){throw new Q("headersTimeout must be a positive integer or zero")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new Q("bodyTimeout must be a positive integer or zero")}if(xe!=null&&typeof xe!=="function"&&typeof xe!=="object"){throw new Q("connect must be a function or an object")}if(Qe!=null&&(!Number.isInteger(Qe)||Qe<0)){throw new Q("maxRedirections must be a positive number")}if(Te!=null&&(!Number.isInteger(Te)||Te<0)){throw new Q("maxRequestsPerClient must be a positive number")}if(Fe!=null&&(typeof Fe!=="string"||i.isIP(Fe)===0)){throw new Q("localAddress must be valid string IP address")}if(Ue!=null&&(!Number.isInteger(Ue)||Ue<-1)){throw new Q("maxResponseSize must be a positive number")}if(qe!=null&&(!Number.isInteger(qe)||qe<-1)){throw new Q("autoSelectFamilyAttemptTimeout must be a positive number")}if(Ve!=null&&typeof Ve!=="boolean"){throw new Q("allowH2 must be a valid boolean value")}if(ze!=null&&(typeof ze!=="number"||ze<1)){throw new Q("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof xe!=="function"){xe=k({...le,maxCachedSessions:Ne,allowH2:Ve,socketPath:ie,timeout:C,...Ge?{autoSelectFamily:Ge,autoSelectFamilyAttemptTimeout:qe}:undefined,...xe})}if(t?.Client&&Array.isArray(t.Client)){this[ve]=t.Client;if(!Me){Me=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[ve]=[$e({maxRedirections:Qe})]}this[$]=d.parseOrigin(e);this[Be]=xe;this[fe]=ce!=null?ce:1;this[ye]=n||c.maxHeaderSize;this[de]=te==null?4e3:te;this[Ee]=se==null?6e5:se;this[Ce]=oe==null?2e3:oe;this[he]=this[de];this[V]=null;this[Pe]=Fe!=null?Fe:null;this[ne]=0;this[ue]=0;this[pe]=`host: ${this[$].hostname}${this[$].port?`:${this[$].port}`:""}\r\n`;this[be]=v!=null?v:3e5;this[Ie]=o!=null?o:3e5;this[Se]=ge==null?true:ge;this[we]=Qe;this[Re]=Te;this[He]=null;this[De]=Ue>-1?Ue:-1;this[Le]=ze!=null?ze:100;this[_e]=null;this[ae]=[];this[me]=0;this[Ae]=0;this[Oe]=e=>resume(this,e);this[ke]=e=>onError(this,e)}get pipelining(){return this[fe]}set pipelining(e){this[fe]=e;this[Oe](true)}get[oe](){return this[ae].length-this[Ae]}get[se](){return this[Ae]-this[me]}get[ie](){return this[ae].length-this[me]}get[ce](){return!!this[_e]&&!this[le]&&!this[_e].destroyed}get[te](){return Boolean(this[_e]?.busy(null)||this[ie]>=(getPipelining(this)||1)||this[oe]>0)}[re](e){connect(this);this.once("connect",e)}[Te](e,t){const n=e.origin||this[$].origin;const o=new y(n,e,t);this[ae].push(o);if(this[ne]){}else if(d.bodyLength(o.body)==null&&d.isIterable(o.body)){this[ne]=1;queueMicrotask((()=>resume(this)))}else{this[Oe](true)}if(this[ne]&&this[ue]!==2&&this[te]){this[ue]=2}return this[ue]<2}async[Qe](){return new Promise((e=>{if(this[ie]){this[He]=e}else{e(null)}}))}async[xe](e){return new Promise((t=>{const n=this[ae].splice(this[Ae]);for(let t=0;t<n.length;t++){const o=n[t];d.errorRequest(this,o,e)}const callback=()=>{if(this[He]){this[He]();this[He]=null}t(null)};if(this[_e]){this[_e].destroy(e,callback);this[_e]=null}else{queueMicrotask(callback)}this[Oe]()}))}}const $e=n(5092);function onError(e,t){if(e[se]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){o(e[Ae]===e[me]);const n=e[ae].splice(e[me]);for(let o=0;o<n.length;o++){const i=n[o];d.errorRequest(e,i,t)}o(e[ie]===0)}}async function connect(e){o(!e[le]);o(!e[_e]);let{host:t,hostname:n,protocol:c,port:y}=e[$];if(n[0]==="["){const e=n.indexOf("]");o(e!==-1);const t=n.substring(1,e);o(i.isIP(t));n=t}e[le]=true;if(p.beforeConnect.hasSubscribers){p.beforeConnect.publish({connectParams:{host:t,hostname:n,protocol:c,port:y,version:e[_e]?.version,servername:e[V],localAddress:e[Pe]},connector:e[Be]})}try{const i=await new Promise(((o,i)=>{e[Be]({host:t,hostname:n,protocol:c,port:y,servername:e[V],localAddress:e[Pe]},((e,t)=>{if(e){i(e)}else{o(t)}}))}));if(e.destroyed){d.destroy(i.on("error",noop),new D);return}o(i);try{e[_e]=i.alpnProtocol==="h2"?await Ue(e,i):await Fe(e,i)}catch(e){i.destroy().on("error",noop);throw e}e[le]=false;i[Ne]=0;i[Re]=e[Re];i[ee]=e;i[ge]=null;if(p.connected.hasSubscribers){p.connected.publish({connectParams:{host:t,hostname:n,protocol:c,port:y,version:e[_e]?.version,servername:e[V],localAddress:e[Pe]},connector:e[Be],socket:i})}e.emit("connect",e[$],[e])}catch(i){if(e.destroyed){return}e[le]=false;if(p.connectError.hasSubscribers){p.connectError.publish({connectParams:{host:t,hostname:n,protocol:c,port:y,version:e[_e]?.version,servername:e[V],localAddress:e[Pe]},connector:e[Be],error:i})}if(i.code==="ERR_TLS_CERT_ALTNAME_INVALID"){o(e[se]===0);while(e[oe]>0&&e[ae][e[Ae]].servername===e[V]){const t=e[ae][e[Ae]++];d.errorRequest(e,t,i)}}else{onError(e,i)}e.emit("connectionError",e[$],[e],i)}e[Oe]()}function emitDrain(e){e[ue]=0;e.emit("drain",e[$],[e])}function resume(e,t){if(e[ne]===2){return}e[ne]=2;_resume(e,t);e[ne]=0;if(e[me]>256){e[ae].splice(0,e[me]);e[Ae]-=e[me];e[me]=0}}function _resume(e,t){while(true){if(e.destroyed){o(e[oe]===0);return}if(e[He]&&!e[ie]){e[He]();e[He]=null;return}if(e[_e]){e[_e].resume()}if(e[te]){e[ue]=2}else if(e[ue]===2){if(t){e[ue]=1;queueMicrotask((()=>emitDrain(e)))}else{emitDrain(e)}continue}if(e[oe]===0){return}if(e[se]>=(getPipelining(e)||1)){return}const n=e[ae][e[Ae]];if(e[$].protocol==="https:"&&e[V]!==n.servername){if(e[se]>0){return}e[V]=n.servername;e[_e]?.destroy(new v("servername changed"),(()=>{e[_e]=null;resume(e)}))}if(e[le]){return}if(!e[_e]){connect(e);return}if(e[_e].destroyed){return}if(e[_e].busy(n)){return}if(!n.aborted&&e[_e].write(n)){e[Ae]++}else{e[ae].splice(e[Ae],1)}}}e.exports=Client},1841:(e,t,n)=>{const o=n(883);const{ClientDestroyedError:i,ClientClosedError:c,InvalidArgumentError:d}=n(8707);const{kDestroy:p,kClose:y,kClosed:C,kDestroyed:Q,kDispatch:v,kInterceptors:D}=n(6443);const k=Symbol("onDestroyed");const $=Symbol("onClosed");const V=Symbol("Intercepted Dispatch");class DispatcherBase extends o{constructor(){super();this[Q]=false;this[k]=null;this[C]=false;this[$]=[]}get destroyed(){return this[Q]}get closed(){return this[C]}get interceptors(){return this[D]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[D][t];if(typeof e!=="function"){throw new d("interceptor must be an function")}}}this[D]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((n,o)=>n?t(n):e(o)))}))}if(typeof e!=="function"){throw new d("invalid callback")}if(this[Q]){queueMicrotask((()=>e(new i,null)));return}if(this[C]){if(this[$]){this[$].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[C]=true;this[$].push(e);const onClosed=()=>{const e=this[$];this[$]=null;for(let t=0;t<e.length;t++){e[t](null,null)}};this[y]().then((()=>this.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,n)=>{this.destroy(e,((e,o)=>e?n(e):t(o)))}))}if(typeof t!=="function"){throw new d("invalid callback")}if(this[Q]){if(this[k]){this[k].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new i}this[Q]=true;this[k]=this[k]||[];this[k].push(t);const onDestroyed=()=>{const e=this[k];this[k]=null;for(let t=0;t<e.length;t++){e[t](null,null)}};this[p](e).then((()=>{queueMicrotask(onDestroyed)}))}[V](e,t){if(!this[D]||this[D].length===0){this[V]=this[v];return this[v](e,t)}let n=this[v].bind(this);for(let e=this[D].length-1;e>=0;e--){n=this[D][e](n)}this[V]=n;return n(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new d("handler must be an object")}try{if(!e||typeof e!=="object"){throw new d("opts must be an object.")}if(this[Q]||this[k]){throw new i}if(this[C]){throw new c}return this[V](e,t)}catch(e){if(typeof t.onError!=="function"){throw new d("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},883:(e,t,n)=>{const o=n(8474);class Dispatcher extends o{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){const t=Array.isArray(e[0])?e[0]:e;let n=this.dispatch.bind(this);for(const e of t){if(e==null){continue}if(typeof e!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof e}`)}n=e(n);if(n==null||typeof n!=="function"||n.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,n)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(e,t){super();this.#e=e;this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}}e.exports=Dispatcher},3137:(e,t,n)=>{const o=n(1841);const{kClose:i,kDestroy:c,kClosed:d,kDestroyed:p,kDispatch:y,kNoProxyAgent:C,kHttpProxyAgent:Q,kHttpsProxyAgent:v}=n(6443);const D=n(6672);const k=n(7405);const $={"http:":80,"https:":443};let V=false;class EnvHttpProxyAgent extends o{#r=null;#n=null;#s=null;constructor(e={}){super();this.#s=e;if(!V){V=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:t,httpsProxy:n,noProxy:o,...i}=e;this[C]=new k(i);const c=t??process.env.http_proxy??process.env.HTTP_PROXY;if(c){this[Q]=new D({...i,uri:c})}else{this[Q]=this[C]}const d=n??process.env.https_proxy??process.env.HTTPS_PROXY;if(d){this[v]=new D({...i,uri:d})}else{this[v]=this[Q]}this.#o()}[y](e,t){const n=new URL(e.origin);const o=this.#i(n);return o.dispatch(e,t)}async[i](){await this[C].close();if(!this[Q][d]){await this[Q].close()}if(!this[v][d]){await this[v].close()}}async[c](e){await this[C].destroy(e);if(!this[Q][p]){await this[Q].destroy(e)}if(!this[v][p]){await this[v].destroy(e)}}#i(e){let{protocol:t,host:n,port:o}=e;n=n.replace(/:\d*$/,"").toLowerCase();o=Number.parseInt(o,10)||$[t]||0;if(!this.#a(n,o)){return this[C]}if(t==="https:"){return this[v]}return this[Q]}#a(e,t){if(this.#c){this.#o()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let n=0;n<this.#n.length;n++){const o=this.#n[n];if(o.port&&o.port!==t){continue}if(!/^[.*]/.test(o.hostname)){if(e===o.hostname){return false}}else{if(e.endsWith(o.hostname.replace(/^\*/,""))){return false}}}return true}#o(){const e=this.#s.noProxy??this.#l;const t=e.split(/[,\s]/);const n=[];for(let e=0;e<t.length;e++){const o=t[e];if(!o){continue}const i=o.match(/^(.+):(\d+)$/);n.push({hostname:(i?i[1]:o).toLowerCase(),port:i?Number.parseInt(i[2],10):0})}this.#r=e;this.#n=n}get#c(){if(this.#s.noProxy!==undefined){return false}return this.#r!==this.#l}get#l(){return process.env.no_proxy??process.env.NO_PROXY??""}}e.exports=EnvHttpProxyAgent},4660:e=>{const t=2048;const n=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&n)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&n}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&n;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},2128:(e,t,n)=>{const o=n(1841);const i=n(4660);const{kConnected:c,kSize:d,kRunning:p,kPending:y,kQueued:C,kBusy:Q,kFree:v,kUrl:D,kClose:k,kDestroy:$,kDispatch:V}=n(6443);const ee=n(3246);const te=Symbol("clients");const re=Symbol("needDrain");const ne=Symbol("queue");const se=Symbol("closed resolve");const oe=Symbol("onDrain");const ie=Symbol("onConnect");const ae=Symbol("onDisconnect");const ce=Symbol("onConnectionError");const le=Symbol("get dispatcher");const ue=Symbol("add client");const de=Symbol("remove client");const pe=Symbol("stats");class PoolBase extends o{constructor(){super();this[ne]=new i;this[te]=[];this[C]=0;const e=this;this[oe]=function onDrain(t,n){const o=e[ne];let i=false;while(!i){const t=o.shift();if(!t){break}e[C]--;i=!this.dispatch(t.opts,t.handler)}this[re]=i;if(!this[re]&&e[re]){e[re]=false;e.emit("drain",t,[e,...n])}if(e[se]&&o.isEmpty()){Promise.all(e[te].map((e=>e.close()))).then(e[se])}};this[ie]=(t,n)=>{e.emit("connect",t,[e,...n])};this[ae]=(t,n,o)=>{e.emit("disconnect",t,[e,...n],o)};this[ce]=(t,n,o)=>{e.emit("connectionError",t,[e,...n],o)};this[pe]=new ee(this)}get[Q](){return this[re]}get[c](){return this[te].filter((e=>e[c])).length}get[v](){return this[te].filter((e=>e[c]&&!e[re])).length}get[y](){let e=this[C];for(const{[y]:t}of this[te]){e+=t}return e}get[p](){let e=0;for(const{[p]:t}of this[te]){e+=t}return e}get[d](){let e=this[C];for(const{[d]:t}of this[te]){e+=t}return e}get stats(){return this[pe]}async[k](){if(this[ne].isEmpty()){await Promise.all(this[te].map((e=>e.close())))}else{await new Promise((e=>{this[se]=e}))}}async[$](e){while(true){const t=this[ne].shift();if(!t){break}t.handler.onError(e)}await Promise.all(this[te].map((t=>t.destroy(e))))}[V](e,t){const n=this[le]();if(!n){this[re]=true;this[ne].push({opts:e,handler:t});this[C]++}else if(!n.dispatch(e,t)){n[re]=true;this[re]=!this[le]()}return!this[re]}[ue](e){e.on("drain",this[oe]).on("connect",this[ie]).on("disconnect",this[ae]).on("connectionError",this[ce]);this[te].push(e);if(this[re]){queueMicrotask((()=>{if(this[re]){this[oe](e[D],[this,e])}}))}return this}[de](e){e.close((()=>{const t=this[te].indexOf(e);if(t!==-1){this[te].splice(t,1)}}));this[re]=this[te].some((e=>!e[re]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:te,kNeedDrain:re,kAddClient:ue,kRemoveClient:de,kGetDispatcher:le}},3246:(e,t,n)=>{const{kFree:o,kConnected:i,kPending:c,kQueued:d,kRunning:p,kSize:y}=n(6443);const C=Symbol("pool");class PoolStats{constructor(e){this[C]=e}get connected(){return this[C][i]}get free(){return this[C][o]}get pending(){return this[C][c]}get queued(){return this[C][d]}get running(){return this[C][p]}get size(){return this[C][y]}}e.exports=PoolStats},628:(e,t,n)=>{const{PoolBase:o,kClients:i,kNeedDrain:c,kAddClient:d,kGetDispatcher:p}=n(2128);const y=n(3701);const{InvalidArgumentError:C}=n(8707);const Q=n(3440);const{kUrl:v,kInterceptors:D}=n(6443);const k=n(9136);const $=Symbol("options");const V=Symbol("connections");const ee=Symbol("factory");function defaultFactory(e,t){return new y(e,t)}class Pool extends o{constructor(e,{connections:t,factory:n=defaultFactory,connect:o,connectTimeout:c,tls:d,maxCachedSessions:p,socketPath:y,autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re,allowH2:ne,...se}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new C("invalid connections")}if(typeof n!=="function"){throw new C("factory must be a function.")}if(o!=null&&typeof o!=="function"&&typeof o!=="object"){throw new C("connect must be a function or an object")}if(typeof o!=="function"){o=k({...d,maxCachedSessions:p,allowH2:ne,socketPath:y,timeout:c,...te?{autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re}:undefined,...o})}this[D]=se.interceptors?.Pool&&Array.isArray(se.interceptors.Pool)?se.interceptors.Pool:[];this[V]=t||null;this[v]=Q.parseOrigin(e);this[$]={...Q.deepClone(se),connect:o,allowH2:ne};this[$].interceptors=se.interceptors?{...se.interceptors}:undefined;this[ee]=n;this.on("connectionError",((e,t,n)=>{for(const e of t){const t=this[i].indexOf(e);if(t!==-1){this[i].splice(t,1)}}}))}[p](){for(const e of this[i]){if(!e[c]){return e}}if(!this[V]||this[i].length<this[V]){const e=this[ee](this[v],this[$]);this[d](e);return e}}}e.exports=Pool},6672:(e,t,n)=>{const{kProxy:o,kClose:i,kDestroy:c,kDispatch:d,kInterceptors:p}=n(6443);const{URL:y}=n(3136);const C=n(7405);const Q=n(628);const v=n(1841);const{InvalidArgumentError:D,RequestAbortedError:k,SecureProxyConnectionError:$}=n(8707);const V=n(9136);const ee=n(3701);const te=Symbol("proxy agent");const re=Symbol("proxy client");const ne=Symbol("proxy headers");const se=Symbol("request tls settings");const oe=Symbol("proxy tls settings");const ie=Symbol("connect endpoint function");const ae=Symbol("tunnel proxy");function defaultProtocolPort(e){return e==="https:"?443:80}function defaultFactory(e,t){return new Q(e,t)}const noop=()=>{};function defaultAgentFactory(e,t){if(t.connections===1){return new ee(e,t)}return new Q(e,t)}class Http1ProxyWrapper extends v{#u;constructor(e,{headers:t={},connect:n,factory:o}){super();if(!e){throw new D("Proxy URL is mandatory")}this[ne]=t;if(o){this.#u=o(e,{connect:n})}else{this.#u=new ee(e,{connect:n})}}[d](e,t){const n=t.onHeaders;t.onHeaders=function(e,o,i){if(e===407){if(typeof t.onError==="function"){t.onError(new D("Proxy Authentication Required (407)"))}return}if(n)n.call(this,e,o,i)};const{origin:o,path:i="/",headers:c={}}=e;e.path=o+i;if(!("host"in c)&&!("Host"in c)){const{host:e}=new y(o);c.host=e}e.headers={...this[ne],...c};return this.#u[d](e,t)}async[i](){return this.#u.close()}async[c](e){return this.#u.destroy(e)}}class ProxyAgent extends v{constructor(e){super();if(!e||typeof e==="object"&&!(e instanceof y)&&!e.uri){throw new D("Proxy uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new D("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:n=true}=e;const i=this.#d(e);const{href:c,origin:d,port:Q,protocol:v,username:ee,password:ce,hostname:le}=i;this[o]={uri:c,protocol:v};this[p]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];this[se]=e.requestTls;this[oe]=e.proxyTls;this[ne]=e.headers||{};this[ae]=n;if(e.auth&&e.token){throw new D("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[ne]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[ne]["proxy-authorization"]=e.token}else if(ee&&ce){this[ne]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(ee)}:${decodeURIComponent(ce)}`).toString("base64")}`}const ue=V({...e.proxyTls});this[ie]=V({...e.requestTls});const de=e.factory||defaultAgentFactory;const factory=(e,t)=>{const{protocol:n}=new y(e);if(!this[ae]&&n==="http:"&&this[o].protocol==="http:"){return new Http1ProxyWrapper(this[o].uri,{headers:this[ne],connect:ue,factory:de})}return de(e,t)};this[re]=t(i,{connect:ue});this[te]=new C({...e,factory:factory,connect:async(e,t)=>{let n=e.host;if(!e.port){n+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:o,statusCode:i}=await this[re].connect({origin:d,port:Q,path:n,signal:e.signal,headers:{...this[ne],host:e.host},servername:this[oe]?.servername||le});if(i!==200){o.on("error",noop).destroy();t(new k(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,o);return}let c;if(this[se]){c=this[se].servername}else{c=e.servername}this[ie]({...e,servername:c,httpSocket:o},t)}catch(e){if(e.code==="ERR_TLS_CERT_ALTNAME_INVALID"){t(new $(e))}else{t(e)}}}})}dispatch(e,t){const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);if(n&&!("host"in n)&&!("Host"in n)){const{host:t}=new y(e.origin);n.host=t}return this[te].dispatch({...e,headers:n},t)}#d(e){if(typeof e==="string"){return new y(e)}else if(e instanceof y){return e}else{return new y(e.uri)}}async[i](){await this[te].close();await this[re].close()}async[c](){await this[te].destroy();await this[re].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let n=0;n<e.length;n+=2){t[e[n]]=e[n+1]}return t}return e}function throwIfProxyAuthIsSent(e){const t=e&&Object.keys(e).find((e=>e.toLowerCase()==="proxy-authorization"));if(t){throw new D("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},50:(e,t,n)=>{const o=n(883);const i=n(7816);class RetryAgent extends o{#p=null;#A=null;constructor(e,t={}){super(t);this.#p=e;this.#A=t}dispatch(e,t){const n=new i({...e,retryOptions:this.#A},{dispatch:this.#p.dispatch.bind(this.#p),handler:t});return this.#p.dispatch(e,n)}close(){return this.#p.close()}destroy(){return this.#p.destroy()}}e.exports=RetryAgent},2581:(e,t,n)=>{const o=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:i}=n(8707);const c=n(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new c)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new i("Argument agent must implement Agent")}Object.defineProperty(globalThis,o,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[o]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:e=>{e.exports=class DecoratorHandler{#m;constructor(e){if(typeof e!=="object"||e===null){throw new TypeError("handler must be an object")}this.#m=e}onConnect(...e){return this.#m.onConnect?.(...e)}onError(...e){return this.#m.onError?.(...e)}onUpgrade(...e){return this.#m.onUpgrade?.(...e)}onResponseStarted(...e){return this.#m.onResponseStarted?.(...e)}onHeaders(...e){return this.#m.onHeaders?.(...e)}onData(...e){return this.#m.onData?.(...e)}onComplete(...e){return this.#m.onComplete?.(...e)}onBodySent(...e){return this.#m.onBodySent?.(...e)}}},8754:(e,t,n)=>{const o=n(3440);const{kBodyUsed:i}=n(6443);const c=n(4589);const{InvalidArgumentError:d}=n(8707);const p=n(8474);const y=[300,301,302,303,307,308];const C=Symbol("body");class BodyAsyncIterable{constructor(e){this[C]=e;this[i]=false}async*[Symbol.asyncIterator](){c(!this[i],"disturbed");this[i]=true;yield*this[C]}}class RedirectHandler{constructor(e,t,n,y){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new d("maxRedirections must be a positive number")}o.validateHandler(y,n.method,n.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...n,maxRedirections:0};this.maxRedirections=t;this.handler=y;this.history=[];this.redirectionLimitReached=false;if(o.isStream(this.opts.body)){if(o.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){c(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[i]=false;p.prototype.on.call(this.opts.body,"data",(function(){this[i]=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)&&o.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,n,i){this.location=this.history.length>=this.maxRedirections||o.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,n,i)}const{origin:c,pathname:d,search:p}=o.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const y=p?`${d}${p}`:d;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==c);this.opts.path=y;this.opts.origin=c;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(y.indexOf(e)===-1){return null}for(let e=0;e<t.length;e+=2){if(t[e].length===8&&o.headerNameToString(t[e])==="location"){return t[e+1]}}}function shouldRemoveHeader(e,t,n){if(e.length===4){return o.headerNameToString(e)==="host"}if(t&&o.headerNameToString(e).startsWith("content-")){return true}if(n&&(e.length===13||e.length===6||e.length===19)){const t=o.headerNameToString(e);return t==="authorization"||t==="cookie"||t==="proxy-authorization"}return false}function cleanRequestHeaders(e,t,n){const o=[];if(Array.isArray(e)){for(let i=0;i<e.length;i+=2){if(!shouldRemoveHeader(e[i],t,n)){o.push(e[i],e[i+1])}}}else if(e&&typeof e==="object"){for(const i of Object.keys(e)){if(!shouldRemoveHeader(i,t,n)){o.push(i,e[i])}}}else{c(e==null,"headers must be an object or an array")}return o}e.exports=RedirectHandler},7816:(e,t,n)=>{const o=n(4589);const{kRetryHandlerDefaultRetry:i}=n(6443);const{RequestRetryError:c}=n(8707);const{isDisturbed:d,parseHeaders:p,parseRangeHeader:y,wrapRequestBody:C}=n(3440);function calculateRetryAfterHeader(e){const t=Date.now();return new Date(e).getTime()-t}class RetryHandler{constructor(e,t){const{retryOptions:n,...o}=e;const{retry:c,maxRetries:d,maxTimeout:p,minTimeout:y,timeoutFactor:Q,methods:v,errorCodes:D,retryAfter:k,statusCodes:$}=n??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts={...o,body:C(e.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:c??RetryHandler[i],retryAfter:k??true,maxTimeout:p??30*1e3,minTimeout:y??500,timeoutFactor:Q??2,maxRetries:d??5,methods:v??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:$??[500,502,503,504,429],errorCodes:D??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,n){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,n)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[i](e,{state:t,opts:n},o){const{statusCode:i,code:c,headers:d}=e;const{method:p,retryOptions:y}=n;const{maxRetries:C,minTimeout:Q,maxTimeout:v,timeoutFactor:D,statusCodes:k,errorCodes:$,methods:V}=y;const{counter:ee}=t;if(c&&c!=="UND_ERR_REQ_RETRY"&&!$.includes(c)){o(e);return}if(Array.isArray(V)&&!V.includes(p)){o(e);return}if(i!=null&&Array.isArray(k)&&!k.includes(i)){o(e);return}if(ee>C){o(e);return}let te=d?.["retry-after"];if(te){te=Number(te);te=Number.isNaN(te)?calculateRetryAfterHeader(te):te*1e3}const re=te>0?Math.min(te,v):Math.min(Q*D**(ee-1),v);setTimeout((()=>o(null)),re)}onHeaders(e,t,n,i){const d=p(t);this.retryCount+=1;if(e>=300){if(this.retryOpts.statusCodes.includes(e)===false){return this.handler.onHeaders(e,t,n,i)}else{this.abort(new c("Request failed",e,{headers:d,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(e!==206&&(this.start>0||e!==200)){this.abort(new c("server does not support the range header and the payload was partially consumed",e,{headers:d,data:{count:this.retryCount}}));return false}const t=y(d["content-range"]);if(!t){this.abort(new c("Content-Range mismatch",e,{headers:d,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==d.etag){this.abort(new c("ETag mismatch",e,{headers:d,data:{count:this.retryCount}}));return false}const{start:i,size:p,end:C=p-1}=t;o(this.start===i,"content-range mismatch");o(this.end==null||this.end===C,"content-range mismatch");this.resume=n;return true}if(this.end==null){if(e===206){const c=y(d["content-range"]);if(c==null){return this.handler.onHeaders(e,t,n,i)}const{start:p,size:C,end:Q=C-1}=c;o(p!=null&&Number.isFinite(p),"content-range mismatch");o(Q!=null&&Number.isFinite(Q),"invalid content-length");this.start=p;this.end=Q}if(this.end==null){const e=d["content-length"];this.end=e!=null?Number(e)-1:null}o(Number.isFinite(this.start));o(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=n;this.etag=d.etag!=null?d.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(e,t,n,i)}const C=new c("Request failed",e,{headers:d,data:{count:this.retryCount}});this.abort(C);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||d(this.opts.body)){return this.handler.onError(e)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||d(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){const e={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){e["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},379:(e,t,n)=>{const{isIP:o}=n(7030);const{lookup:i}=n(610);const c=n(8155);const{InvalidArgumentError:d,InformationalError:p}=n(8707);const y=Math.pow(2,31)-1;class DNSInstance{#g=0;#f=0;#h=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(e){this.#g=e.maxTTL;this.#f=e.maxItems;this.dualStack=e.dualStack;this.affinity=e.affinity;this.lookup=e.lookup??this.#y;this.pick=e.pick??this.#E}get full(){return this.#h.size===this.#f}runLookup(e,t,n){const o=this.#h.get(e.hostname);if(o==null&&this.full){n(null,e.origin);return}const i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#g,maxItems:this.#f};if(o==null){this.lookup(e,i,((t,o)=>{if(t||o==null||o.length===0){n(t??new p("No DNS entries found"));return}this.setRecords(e,o);const c=this.#h.get(e.hostname);const d=this.pick(e,c,i.affinity);let y;if(typeof d.port==="number"){y=`:${d.port}`}else if(e.port!==""){y=`:${e.port}`}else{y=""}n(null,`${e.protocol}//${d.family===6?`[${d.address}]`:d.address}${y}`)}))}else{const c=this.pick(e,o,i.affinity);if(c==null){this.#h.delete(e.hostname);this.runLookup(e,t,n);return}let d;if(typeof c.port==="number"){d=`:${c.port}`}else if(e.port!==""){d=`:${e.port}`}else{d=""}n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${d}`)}}#y(e,t,n){i(e.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},((e,t)=>{if(e){return n(e)}const o=new Map;for(const e of t){o.set(`${e.address}:${e.family}`,e)}n(null,o.values())}))}#E(e,t,n){let o=null;const{records:i,offset:c}=t;let d;if(this.dualStack){if(n==null){if(c==null||c===y){t.offset=0;n=4}else{t.offset++;n=(t.offset&1)===1?6:4}}if(i[n]!=null&&i[n].ips.length>0){d=i[n]}else{d=i[n===4?6:4]}}else{d=i[n]}if(d==null||d.ips.length===0){return o}if(d.offset==null||d.offset===y){d.offset=0}else{d.offset++}const p=d.offset%d.ips.length;o=d.ips[p]??null;if(o==null){return o}if(Date.now()-o.timestamp>o.ttl){d.ips.splice(p,1);return this.pick(e,t,n)}return o}setRecords(e,t){const n=Date.now();const o={records:{4:null,6:null}};for(const e of t){e.timestamp=n;if(typeof e.ttl==="number"){e.ttl=Math.min(e.ttl,this.#g)}else{e.ttl=this.#g}const t=o.records[e.family]??{ips:[]};t.ips.push(e);o.records[e.family]=t}this.#h.set(e.hostname,o)}getHandler(e,t){return new DNSDispatchHandler(this,e,t)}}class DNSDispatchHandler extends c{#C=null;#s=null;#t=null;#m=null;#I=null;constructor(e,{origin:t,handler:n,dispatch:o},i){super(n);this.#I=t;this.#m=n;this.#s={...i};this.#C=e;this.#t=o}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#C.dualStack){this.#C.runLookup(this.#I,this.#s,((e,t)=>{if(e){return this.#m.onError(e)}const n={...this.#s,origin:t};this.#t(n,this)}));return}this.#m.onError(e);return}case"ENOTFOUND":this.#C.deleteRecord(this.#I);default:this.#m.onError(e);break}}}e.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=="number"||e?.maxTTL<0)){throw new d("Invalid maxTTL. Must be a positive number")}if(e?.maxItems!=null&&(typeof e?.maxItems!=="number"||e?.maxItems<1)){throw new d("Invalid maxItems. Must be a positive number and greater than zero")}if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6){throw new d("Invalid affinity. Must be either 4 or 6")}if(e?.dualStack!=null&&typeof e?.dualStack!=="boolean"){throw new d("Invalid dualStack. Must be a boolean")}if(e?.lookup!=null&&typeof e?.lookup!=="function"){throw new d("Invalid lookup. Must be a function")}if(e?.pick!=null&&typeof e?.pick!=="function"){throw new d("Invalid pick. Must be a function")}const t=e?.dualStack??true;let n;if(t){n=e?.affinity??null}else{n=e?.affinity??4}const i={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:n,maxItems:e?.maxItems??Infinity};const c=new DNSInstance(i);return e=>function dnsInterceptor(t,n){const i=t.origin.constructor===URL?t.origin:new URL(t.origin);if(o(i.hostname)!==0){return e(t,n)}c.runLookup(i,t,((o,d)=>{if(o){return n.onError(o)}let p=null;p={...t,servername:i.hostname,origin:d,headers:{host:i.hostname,...t.headers}};e(p,c.getHandler({origin:i,dispatch:e,handler:n},t))}));return true}}},8060:(e,t,n)=>{const o=n(3440);const{InvalidArgumentError:i,RequestAbortedError:c}=n(8707);const d=n(8155);class DumpHandler extends d{#b=1024*1024;#S=null;#B=false;#w=false;#R=0;#N=null;#m=null;constructor({maxSize:e},t){super(t);if(e!=null&&(!Number.isFinite(e)||e<1)){throw new i("maxSize must be a number greater than 0")}this.#b=e??this.#b;this.#m=t}onConnect(e){this.#S=e;this.#m.onConnect(this.#Q.bind(this))}#Q(e){this.#w=true;this.#N=e}onHeaders(e,t,n,i){const d=o.parseHeaders(t);const p=d["content-length"];if(p!=null&&p>this.#b){throw new c(`Response size (${p}) larger than maxSize (${this.#b})`)}if(this.#w){return true}return this.#m.onHeaders(e,t,n,i)}onError(e){if(this.#B){return}e=this.#N??e;this.#m.onError(e)}onData(e){this.#R=this.#R+e.length;if(this.#R>=this.#b){this.#B=true;if(this.#w){this.#m.onError(this.#N)}else{this.#m.onComplete([])}}return true}onComplete(e){if(this.#B){return}if(this.#w){this.#m.onError(this.reason);return}this.#m.onComplete(e)}}function createDumpInterceptor({maxSize:e}={maxSize:1024*1024}){return t=>function Intercept(n,o){const{dumpMaxSize:i=e}=n;const c=new DumpHandler({maxSize:i},o);return t(n,c)}}e.exports=createDumpInterceptor},5092:(e,t,n)=>{const o=n(8754);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(n,i){const{maxRedirections:c=e}=n;if(!c){return t(n,i)}const d=new o(t,c,n,i);n={...n,maxRedirections:0};return t(n,d)}}e.exports=createRedirectInterceptor},1514:(e,t,n)=>{const o=n(8754);e.exports=e=>{const t=e?.maxRedirections;return e=>function redirectInterceptor(n,i){const{maxRedirections:c=t,...d}=n;if(!c){return e(n,i)}const p=new o(e,c,n,i);return e(d,p)}}},2026:(e,t,n)=>{const o=n(7816);e.exports=e=>t=>function retryInterceptor(n,i){return t(n,new o({...n,retryOptions:{...e,...n.retryOptions}},{handler:i,dispatch:t}))}},2824:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const o=n(172);var i;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(i=t.ERROR||(t.ERROR={}));var c;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(c=t.TYPE||(t.TYPE={}));var d;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(d=t.FLAGS||(t.FLAGS={}));var p;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(p=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var y;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(y=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[y.DELETE,y.GET,y.HEAD,y.POST,y.PUT,y.CONNECT,y.OPTIONS,y.TRACE,y.COPY,y.LOCK,y.MKCOL,y.MOVE,y.PROPFIND,y.PROPPATCH,y.SEARCH,y.UNLOCK,y.BIND,y.REBIND,y.UNBIND,y.ACL,y.REPORT,y.MKACTIVITY,y.CHECKOUT,y.MERGE,y["M-SEARCH"],y.NOTIFY,y.SUBSCRIBE,y.UNSUBSCRIBE,y.PATCH,y.PURGE,y.MKCALENDAR,y.LINK,y.UNLINK,y.PRI,y.SOURCE];t.METHODS_ICE=[y.SOURCE];t.METHODS_RTSP=[y.OPTIONS,y.DESCRIBE,y.ANNOUNCE,y.SETUP,y.PLAY,y.PAUSE,y.TEARDOWN,y.GET_PARAMETER,y.SET_PARAMETER,y.REDIRECT,y.RECORD,y.FLUSH,y.GET,y.POST];t.METHOD_MAP=o.enumToMap(y);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var C;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(C=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.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};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var Q;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(Q=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:Q.CONNECTION,"content-length":Q.CONTENT_LENGTH,"proxy-connection":Q.CONNECTION,"transfer-encoding":Q.TRANSFER_ENCODING,upgrade:Q.UPGRADE}},3870:(e,t,n)=>{const{Buffer:o}=n(4573);e.exports=o.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3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NAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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CGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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QwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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DAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((n=>{const o=e[n];if(typeof o==="number"){t[n]=o}}));return t}t.enumToMap=enumToMap},7501:(e,t,n)=>{const{kClients:o}=n(6443);const i=n(7405);const{kAgent:c,kMockAgentSet:d,kMockAgentGet:p,kDispatches:y,kIsMockActive:C,kNetConnect:Q,kGetNetConnect:v,kOptions:D,kFactory:k}=n(1117);const $=n(7365);const V=n(4004);const{matchValue:ee,buildMockOptions:te}=n(3397);const{InvalidArgumentError:re,UndiciError:ne}=n(8707);const se=n(883);const oe=n(1529);const ie=n(6142);class MockAgent extends se{constructor(e){super(e);this[Q]=true;this[C]=true;if(e?.agent&&typeof e.agent.dispatch!=="function"){throw new re("Argument opts.agent must implement Agent")}const t=e?.agent?e.agent:new i(e);this[c]=t;this[o]=t[o];this[D]=te(e)}get(e){let t=this[p](e);if(!t){t=this[k](e);this[d](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[c].dispatch(e,t)}async close(){await this[c].close();this[o].clear()}deactivate(){this[C]=false}activate(){this[C]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[Q])){this[Q].push(e)}else{this[Q]=[e]}}else if(typeof e==="undefined"){this[Q]=true}else{throw new re("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[Q]=false}get isMockActive(){return this[C]}[d](e,t){this[o].set(e,t)}[k](e){const t=Object.assign({agent:this},this[D]);return this[D]&&this[D].connections===1?new $(e,t):new V(e,t)}[p](e){const t=this[o].get(e);if(t){return t}if(typeof e!=="string"){const t=this[k]("http://localhost:9999");this[d](e,t);return t}for(const[t,n]of Array.from(this[o])){if(n&&typeof t!=="string"&&ee(t,e)){const t=this[k](e);this[d](e,t);t[y]=n[y];return t}}}[v](){return this[Q]}pendingInterceptors(){const e=this[o];return Array.from(e.entries()).flatMap((([e,t])=>t[y].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new ie}={}){const t=this.pendingInterceptors();if(t.length===0){return}const n=new oe("interceptor","interceptors").pluralize(t.length);throw new ne(`\n${n.count} ${n.noun} ${n.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},7365:(e,t,n)=>{const{promisify:o}=n(7975);const i=n(3701);const{buildMockDispatch:c}=n(3397);const{kDispatches:d,kMockAgent:p,kClose:y,kOriginalClose:C,kOrigin:Q,kOriginalDispatch:v,kConnected:D}=n(1117);const{MockInterceptor:k}=n(1511);const $=n(6443);const{InvalidArgumentError:V}=n(8707);class MockClient extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new V("Argument opts.agent must implement Agent")}this[p]=t.agent;this[Q]=e;this[d]=[];this[D]=1;this[v]=this.dispatch;this[C]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[y]}get[$.kConnected](){return this[D]}intercept(e){return new k(e,this[d])}async[y](){await o(this[C])();this[D]=0;this[p][$.kClients].delete(this[Q])}}e.exports=MockClient},2429:(e,t,n)=>{const{UndiciError:o}=n(8707);const i=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends o{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[i]===true}[i]=true}e.exports={MockNotMatchedError:MockNotMatchedError}},1511:(e,t,n)=>{const{getResponseData:o,buildKey:i,addMockDispatch:c}=n(3397);const{kDispatches:d,kDispatchKey:p,kDefaultHeaders:y,kDefaultTrailers:C,kContentLength:Q,kMockDispatch:v}=n(1117);const{InvalidArgumentError:D}=n(8707);const{buildURL:k}=n(3440);class MockScope{constructor(e){this[v]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new D("waitInMs must be a valid integer > 0")}this[v].delay=e;return this}persist(){this[v].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new D("repeatTimes must be a valid integer > 0")}this[v].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new D("opts must be an object")}if(typeof e.path==="undefined"){throw new D("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=k(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[p]=i(e);this[d]=t;this[y]={};this[C]={};this[Q]=false}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:n}){const i=o(t);const c=this[Q]?{"content-length":i.length}:{};const d={...this[y],...c,...n.headers};const p={...this[C],...n.trailers};return{statusCode:e,data:t,headers:d,trailers:p}}validateReplyParameters(e){if(typeof e.statusCode==="undefined"){throw new D("statusCode must be defined")}if(typeof e.responseOptions!=="object"||e.responseOptions===null){throw new D("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const n=e(t);if(typeof n!=="object"||n===null){throw new D("reply options callback must return an object")}const o={data:"",responseOptions:{},...n};this.validateReplyParameters(o);return{...this.createMockScopeDispatchData(o)}};const t=c(this[d],this[p],wrappedDefaultsCallback);return new MockScope(t)}const t={statusCode:e,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(t);const n=this.createMockScopeDispatchData(t);const o=c(this[d],this[p],n);return new MockScope(o)}replyWithError(e){if(typeof e==="undefined"){throw new D("error must be defined")}const t=c(this[d],this[p],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new D("headers must be defined")}this[y]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new D("trailers must be defined")}this[C]=e;return this}replyContentLength(){this[Q]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},4004:(e,t,n)=>{const{promisify:o}=n(7975);const i=n(628);const{buildMockDispatch:c}=n(3397);const{kDispatches:d,kMockAgent:p,kClose:y,kOriginalClose:C,kOrigin:Q,kOriginalDispatch:v,kConnected:D}=n(1117);const{MockInterceptor:k}=n(1511);const $=n(6443);const{InvalidArgumentError:V}=n(8707);class MockPool extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new V("Argument opts.agent must implement Agent")}this[p]=t.agent;this[Q]=e;this[d]=[];this[D]=1;this[v]=this.dispatch;this[C]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[y]}get[$.kConnected](){return this[D]}intercept(e){return new k(e,this[d])}async[y](){await o(this[C])();this[D]=0;this[p][$.kClients].delete(this[Q])}}e.exports=MockPool},1117:e=>{e.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")}},3397:(e,t,n)=>{const{MockNotMatchedError:o}=n(2429);const{kDispatches:i,kMockAgent:c,kOriginalDispatch:d,kOrigin:p,kGetNetConnect:y}=n(1117);const{buildURL:C}=n(3440);const{STATUS_CODES:Q}=n(7067);const{types:{isPromise:v}}=n(7975);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let n=0;n<e.length;n+=2){if(e[n].toLocaleLowerCase()===t.toLocaleLowerCase()){return e[n+1]}}return undefined}else if(typeof e.get==="function"){return e.get(t)}else{return lowerCaseEntries(e)[t.toLocaleLowerCase()]}}function buildHeadersFromArray(e){const t=e.slice();const n=[];for(let e=0;e<t.length;e+=2){n.push([t[e],t[e+1]])}return Object.fromEntries(n)}function matchHeaders(e,t){if(typeof e.headers==="function"){if(Array.isArray(t)){t=buildHeadersFromArray(t)}return e.headers(t?lowerCaseEntries(t):{})}if(typeof e.headers==="undefined"){return true}if(typeof t!=="object"||typeof e.headers!=="object"){return false}for(const[n,o]of Object.entries(e.headers)){const e=getHeaderByName(t,n);if(!matchValue(o,e)){return false}}return true}function safeUrl(e){if(typeof e!=="string"){return e}const t=e.split("?");if(t.length!==2){return e}const n=new URLSearchParams(t.pop());n.sort();return[...t,n.toString()].join("?")}function matchKey(e,{path:t,method:n,body:o,headers:i}){const c=matchValue(e.path,t);const d=matchValue(e.method,n);const p=typeof e.body!=="undefined"?matchValue(e.body,o):true;const y=matchHeaders(e,i);return c&&d&&p&&y}function getResponseData(e){if(Buffer.isBuffer(e)){return e}else if(e instanceof Uint8Array){return e}else if(e instanceof ArrayBuffer){return e}else if(typeof e==="object"){return JSON.stringify(e)}else{return e.toString()}}function getMockDispatch(e,t){const n=t.query?C(t.path,t.query):t.path;const i=typeof n==="string"?safeUrl(n):n;let c=e.filter((({consumed:e})=>!e)).filter((({path:e})=>matchValue(safeUrl(e),i)));if(c.length===0){throw new o(`Mock dispatch not matched for path '${i}'`)}c=c.filter((({method:e})=>matchValue(e,t.method)));if(c.length===0){throw new o(`Mock dispatch not matched for method '${t.method}' on path '${i}'`)}c=c.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(c.length===0){throw new o(`Mock dispatch not matched for body '${t.body}' on path '${i}'`)}c=c.filter((e=>matchHeaders(e,t.headers)));if(c.length===0){const e=typeof t.headers==="object"?JSON.stringify(t.headers):t.headers;throw new o(`Mock dispatch not matched for headers '${e}' on path '${i}'`)}return c[0]}function addMockDispatch(e,t,n){const o={timesInvoked:0,times:1,persist:false,consumed:false};const i=typeof n==="function"?{callback:n}:{...n};const c={...o,...t,pending:true,data:{error:null,...i}};e.push(c);return c}function deleteMockDispatch(e,t){const n=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(n!==-1){e.splice(n,1)}}function buildKey(e){const{path:t,method:n,body:o,headers:i,query:c}=e;return{path:t,method:n,body:o,headers:i,query:c}}function generateKeyValues(e){const t=Object.keys(e);const n=[];for(let o=0;o<t.length;++o){const i=t[o];const c=e[i];const d=Buffer.from(`${i}`);if(Array.isArray(c)){for(let e=0;e<c.length;++e){n.push(d,Buffer.from(`${c[e]}`))}}else{n.push(d,Buffer.from(`${c}`))}}return n}function getStatusText(e){return Q[e]||"unknown"}async function getResponse(e){const t=[];for await(const n of e){t.push(n)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const n=buildKey(e);const o=getMockDispatch(this[i],n);o.timesInvoked++;if(o.data.callback){o.data={...o.data,...o.data.callback(e)}}const{data:{statusCode:c,data:d,headers:p,trailers:y,error:C},delay:Q,persist:D}=o;const{timesInvoked:k,times:$}=o;o.consumed=!D&&k>=$;o.pending=k<$;if(C!==null){deleteMockDispatch(this[i],n);t.onError(C);return true}if(typeof Q==="number"&&Q>0){setTimeout((()=>{handleReply(this[i])}),Q)}else{handleReply(this[i])}function handleReply(o,i=d){const C=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const Q=typeof i==="function"?i({...e,headers:C}):i;if(v(Q)){Q.then((e=>handleReply(o,e)));return}const D=getResponseData(Q);const k=generateKeyValues(p);const $=generateKeyValues(y);t.onConnect?.((e=>t.onError(e)),null);t.onHeaders?.(c,k,resume,getStatusText(c));t.onData?.(Buffer.from(D));t.onComplete?.($);deleteMockDispatch(o,n)}function resume(){}return true}function buildMockDispatch(){const e=this[c];const t=this[p];const n=this[d];return function dispatch(i,c){if(e.isMockActive){try{mockDispatch.call(this,i,c)}catch(d){if(d instanceof o){const p=e[y]();if(p===false){throw new o(`${d.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(p,t)){n.call(this,i,c)}else{throw new o(`${d.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw d}}}else{n.call(this,i,c)}}}function checkNetConnect(e,t){const n=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,n.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...n}=e;return n}}e.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,buildHeadersFromArray:buildHeadersFromArray}},6142:(e,t,n)=>{const{Transform:o}=n(7075);const{Console:i}=n(7540);const c=process.versions.icu?"✅":"Y ";const d=process.versions.icu?"❌":"N ";e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new o({transform(e,t,n){n(null,e)}});this.logger=new i({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:n},persist:o,times:i,timesInvoked:p,origin:y})=>({Method:e,Origin:y,Path:t,"Status code":n,Persistent:o?c:d,Invocations:p,Remaining:o?Infinity:i-p})));this.logger.table(t);return this.transform.read().toString()}}},1529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const n={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const o=e===1;const i=o?t:n;const c=o?this.singular:this.plural;return{...i,count:e,noun:c}}}},6603:e=>{let t=0;const n=1e3;const o=(n>>1)-1;let i;const c=Symbol("kFastTimer");const d=[];const p=-2;const y=-1;const C=0;const Q=1;function onTick(){t+=o;let e=0;let n=d.length;while(e<n){const i=d[e];if(i._state===C){i._idleStart=t-o;i._state=Q}else if(i._state===Q&&t>=i._idleStart+i._idleTimeout){i._state=y;i._idleStart=-1;i._onTimeout(i._timerArg)}if(i._state===y){i._state=p;if(--n!==0){d[e]=d[n]}}else{++e}}d.length=n;if(d.length!==0){refreshTimeout()}}function refreshTimeout(){if(i){i.refresh()}else{clearTimeout(i);i=setTimeout(onTick,o);if(i.unref){i.unref()}}}class FastTimer{[c]=true;_state=p;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e;this._idleTimeout=t;this._timerArg=n;this.refresh()}refresh(){if(this._state===p){d.push(this)}if(!i||d.length===1){refreshTimeout()}this._state=C}clear(){this._state=y;this._idleStart=-1}}e.exports={setTimeout(e,t,o){return t<=n?setTimeout(e,t,o):new FastTimer(e,t,o)},clearTimeout(e){if(e[c]){e.clear()}else{clearTimeout(e)}},setFastTimeout(e,t,n){return new FastTimer(e,t,n)},clearFastTimeout(e){e.clear()},now(){return t},tick(e=0){t+=e-n+1;onTick();onTick()},reset(){t=0;d.length=0;clearTimeout(i);i=null},kFastTimer:c}},9634:(e,t,n)=>{const{kConstruct:o}=n(109);const{urlEquals:i,getFieldValues:c}=n(6798);const{kEnumerableProperty:d,isDisturbed:p}=n(3440);const{webidl:y}=n(5893);const{Response:C,cloneResponse:Q,fromInnerResponse:v}=n(9051);const{Request:D,fromInnerRequest:k}=n(9967);const{kState:$}=n(3627);const{fetching:V}=n(4398);const{urlIsHttpHttpsScheme:ee,createDeferredPromise:te,readAllBytes:re}=n(3168);const ne=n(4589);class Cache{#x;constructor(){if(arguments[0]!==o){y.illegalConstructor()}y.util.markAsUncloneable(this);this.#x=arguments[1]}async match(e,t={}){y.brandCheck(this,Cache);const n="Cache.match";y.argumentLengthCheck(arguments,1,n);e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");const o=this.#T(e,t,1);if(o.length===0){return}return o[0]}async matchAll(e=undefined,t={}){y.brandCheck(this,Cache);const n="Cache.matchAll";if(e!==undefined)e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");return this.#T(e,t)}async add(e){y.brandCheck(this,Cache);const t="Cache.add";y.argumentLengthCheck(arguments,1,t);e=y.converters.RequestInfo(e,t,"request");const n=[e];const o=this.addAll(n);return await o}async addAll(e){y.brandCheck(this,Cache);const t="Cache.addAll";y.argumentLengthCheck(arguments,1,t);const n=[];const o=[];for(let n of e){if(n===undefined){throw y.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]})}n=y.converters.RequestInfo(n);if(typeof n==="string"){continue}const e=n[$];if(!ee(e.url)||e.method!=="GET"){throw y.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}}const i=[];for(const d of e){const e=new D(d)[$];if(!ee(e.url)){throw y.errors.exception({header:t,message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";o.push(e);const p=te();i.push(V({request:e,processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){p.reject(y.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=c(e.headersList.get("vary"));for(const e of t){if(e==="*"){p.reject(y.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of i){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){p.reject(new DOMException("aborted","AbortError"));return}p.resolve(e)}}));n.push(p.promise)}const d=Promise.all(n);const p=await d;const C=[];let Q=0;for(const e of p){const t={type:"put",request:o[Q],response:e};C.push(t);Q++}const v=te();let k=null;try{this.#v(C)}catch(e){k=e}queueMicrotask((()=>{if(k===null){v.resolve(undefined)}else{v.reject(k)}}));return v.promise}async put(e,t){y.brandCheck(this,Cache);const n="Cache.put";y.argumentLengthCheck(arguments,2,n);e=y.converters.RequestInfo(e,n,"request");t=y.converters.Response(t,n,"response");let o=null;if(e instanceof D){o=e[$]}else{o=new D(e)[$]}if(!ee(o.url)||o.method!=="GET"){throw y.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"})}const i=t[$];if(i.status===206){throw y.errors.exception({header:n,message:"Got 206 status"})}if(i.headersList.contains("vary")){const e=c(i.headersList.get("vary"));for(const t of e){if(t==="*"){throw y.errors.exception({header:n,message:"Got * vary field value"})}}}if(i.body&&(p(i.body.stream)||i.body.stream.locked)){throw y.errors.exception({header:n,message:"Response body is locked or disturbed"})}const d=Q(i);const C=te();if(i.body!=null){const e=i.body.stream;const t=e.getReader();re(t).then(C.resolve,C.reject)}else{C.resolve(undefined)}const v=[];const k={type:"put",request:o,response:d};v.push(k);const V=await C.promise;if(d.body!=null){d.body.source=V}const ne=te();let se=null;try{this.#v(v)}catch(e){se=e}queueMicrotask((()=>{if(se===null){ne.resolve()}else{ne.reject(se)}}));return ne.promise}async delete(e,t={}){y.brandCheck(this,Cache);const n="Cache.delete";y.argumentLengthCheck(arguments,1,n);e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");let o=null;if(e instanceof D){o=e[$];if(o.method!=="GET"&&!t.ignoreMethod){return false}}else{ne(typeof e==="string");o=new D(e)[$]}const i=[];const c={type:"delete",request:o,options:t};i.push(c);const d=te();let p=null;let C;try{C=this.#v(i)}catch(e){p=e}queueMicrotask((()=>{if(p===null){d.resolve(!!C?.length)}else{d.reject(p)}}));return d.promise}async keys(e=undefined,t={}){y.brandCheck(this,Cache);const n="Cache.keys";if(e!==undefined)e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");let o=null;if(e!==undefined){if(e instanceof D){o=e[$];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new D(e)[$]}}const i=te();const c=[];if(e===undefined){for(const e of this.#x){c.push(e[0])}}else{const e=this.#P(o,t);for(const t of e){c.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of c){const n=k(t,(new AbortController).signal,"immutable");e.push(n)}i.resolve(Object.freeze(e))}));return i.promise}#v(e){const t=this.#x;const n=[...t];const o=[];const i=[];try{for(const n of e){if(n.type!=="delete"&&n.type!=="put"){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(n.type==="delete"&&n.response!=null){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#P(n.request,n.options,o).length){throw new DOMException("???","InvalidStateError")}let e;if(n.type==="delete"){e=this.#P(n.request,n.options);if(e.length===0){return[]}for(const n of e){const e=t.indexOf(n);ne(e!==-1);t.splice(e,1)}}else if(n.type==="put"){if(n.response==null){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const i=n.request;if(!ee(i.url)){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(i.method!=="GET"){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(n.options!=null){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#P(n.request);for(const n of e){const e=t.indexOf(n);ne(e!==-1);t.splice(e,1)}t.push([n.request,n.response]);o.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){this.#x.length=0;this.#x=n;throw e}}#P(e,t,n){const o=[];const i=n??this.#x;for(const n of i){const[i,c]=n;if(this.#D(e,i,c,t)){o.push(n)}}return o}#D(e,t,n=null,o){const d=new URL(e.url);const p=new URL(t.url);if(o?.ignoreSearch){p.search="";d.search=""}if(!i(d,p,true)){return false}if(n==null||o?.ignoreVary||!n.headersList.contains("vary")){return true}const y=c(n.headersList.get("vary"));for(const n of y){if(n==="*"){return false}const o=t.headersList.get(n);const i=e.headersList.get(n);if(o!==i){return false}}return true}#T(e,t,n=Infinity){let o=null;if(e!==undefined){if(e instanceof D){o=e[$];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new D(e)[$]}}const i=[];if(e===undefined){for(const e of this.#x){i.push(e[1])}}else{const e=this.#P(o,t);for(const t of e){i.push(t[1])}}const c=[];for(const e of i){const t=v(e,"immutable");c.push(t.clone());if(c.length>=n){break}}return Object.freeze(c)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:d,matchAll:d,add:d,addAll:d,put:d,delete:d,keys:d});const se=[{key:"ignoreSearch",converter:y.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:y.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:y.converters.boolean,defaultValue:()=>false}];y.converters.CacheQueryOptions=y.dictionaryConverter(se);y.converters.MultiCacheQueryOptions=y.dictionaryConverter([...se,{key:"cacheName",converter:y.converters.DOMString}]);y.converters.Response=y.interfaceConverter(C);y.converters["sequence<RequestInfo>"]=y.sequenceConverter(y.converters.RequestInfo);e.exports={Cache:Cache}},3245:(e,t,n)=>{const{kConstruct:o}=n(109);const{Cache:i}=n(9634);const{webidl:c}=n(5893);const{kEnumerableProperty:d}=n(3440);class CacheStorage{#k=new Map;constructor(){if(arguments[0]!==o){c.illegalConstructor()}c.util.markAsUncloneable(this)}async match(e,t={}){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,"CacheStorage.match");e=c.converters.RequestInfo(e);t=c.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#k.has(t.cacheName)){const n=this.#k.get(t.cacheName);const c=new i(o,n);return await c.match(e,t)}}else{for(const n of this.#k.values()){const c=new i(o,n);const d=await c.match(e,t);if(d!==undefined){return d}}}}async has(e){c.brandCheck(this,CacheStorage);const t="CacheStorage.has";c.argumentLengthCheck(arguments,1,t);e=c.converters.DOMString(e,t,"cacheName");return this.#k.has(e)}async open(e){c.brandCheck(this,CacheStorage);const t="CacheStorage.open";c.argumentLengthCheck(arguments,1,t);e=c.converters.DOMString(e,t,"cacheName");if(this.#k.has(e)){const t=this.#k.get(e);return new i(o,t)}const n=[];this.#k.set(e,n);return new i(o,n)}async delete(e){c.brandCheck(this,CacheStorage);const t="CacheStorage.delete";c.argumentLengthCheck(arguments,1,t);e=c.converters.DOMString(e,t,"cacheName");return this.#k.delete(e)}async keys(){c.brandCheck(this,CacheStorage);const e=this.#k.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:d,has:d,open:d,delete:d,keys:d});e.exports={CacheStorage:CacheStorage}},109:(e,t,n)=>{e.exports={kConstruct:n(6443).kConstruct}},6798:(e,t,n)=>{const o=n(4589);const{URLSerializer:i}=n(1900);const{isValidHeaderName:c}=n(3168);function urlEquals(e,t,n=false){const o=i(e,n);const c=i(t,n);return o===c}function getFieldValues(e){o(e!==null);const t=[];for(let n of e.split(",")){n=n.trim();if(c(n)){t.push(n)}}return t}e.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:e=>{const t=1024;const n=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:n}},9061:(e,t,n)=>{const{parseSetCookie:o}=n(1978);const{stringify:i}=n(7797);const{webidl:c}=n(5893);const{Headers:d}=n(660);function getCookies(e){c.argumentLengthCheck(arguments,1,"getCookies");c.brandCheck(e,d,{strict:false});const t=e.get("cookie");const n={};if(!t){return n}for(const e of t.split(";")){const[t,...o]=e.split("=");n[t.trim()]=o.join("=")}return n}function deleteCookie(e,t,n){c.brandCheck(e,d,{strict:false});const o="deleteCookie";c.argumentLengthCheck(arguments,2,o);t=c.converters.DOMString(t,o,"name");n=c.converters.DeleteCookieAttributes(n);setCookie(e,{name:t,value:"",expires:new Date(0),...n})}function getSetCookies(e){c.argumentLengthCheck(arguments,1,"getSetCookies");c.brandCheck(e,d,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>o(e)))}function setCookie(e,t){c.argumentLengthCheck(arguments,2,"setCookie");c.brandCheck(e,d,{strict:false});t=c.converters.Cookie(t);const n=i(t);if(n){e.append("Set-Cookie",n)}}c.converters.DeleteCookieAttributes=c.dictionaryConverter([{converter:c.nullableConverter(c.converters.DOMString),key:"path",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.DOMString),key:"domain",defaultValue:()=>null}]);c.converters.Cookie=c.dictionaryConverter([{converter:c.converters.DOMString,key:"name"},{converter:c.converters.DOMString,key:"value"},{converter:c.nullableConverter((e=>{if(typeof e==="number"){return c.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:()=>null},{converter:c.nullableConverter(c.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.DOMString),key:"path",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.boolean),key:"secure",defaultValue:()=>null},{converter:c.nullableConverter(c.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:c.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:c.sequenceConverter(c.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(e,t,n)=>{const{maxNameValuePairSize:o,maxAttributeValueSize:i}=n(1276);const{isCTLExcludingHtab:c}=n(7797);const{collectASequenceOfCodePointsFast:d}=n(1900);const p=n(4589);function parseSetCookie(e){if(c(e)){return null}let t="";let n="";let i="";let p="";if(e.includes(";")){const o={position:0};t=d(";",e,o);n=e.slice(o.position)}else{t=e}if(!t.includes("=")){p=t}else{const e={position:0};i=d("=",t,e);p=t.slice(e.position+1)}i=i.trim();p=p.trim();if(i.length+p.length>o){return null}return{name:i,value:p,...parseUnparsedAttributes(n)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}p(e[0]===";");e=e.slice(1);let n="";if(e.includes(";")){n=d(";",e,{position:0});e=e.slice(n.length)}else{n=e;e=""}let o="";let c="";if(n.includes("=")){const e={position:0};o=d("=",n,e);c=n.slice(e.position+1)}else{o=n}o=o.trim();c=c.trim();if(c.length>i){return parseUnparsedAttributes(e,t)}const y=o.toLowerCase();if(y==="expires"){const e=new Date(c);t.expires=e}else if(y==="max-age"){const n=c.charCodeAt(0);if((n<48||n>57)&&c[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(c)){return parseUnparsedAttributes(e,t)}const o=Number(c);t.maxAge=o}else if(y==="domain"){let e=c;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(y==="path"){let e="";if(c.length===0||c[0]!=="/"){e="/"}else{e=c}t.path=e}else if(y==="secure"){t.secure=true}else if(y==="httponly"){t.httpOnly=true}else if(y==="samesite"){let e="Default";const n=c.toLowerCase();if(n.includes("none")){e="None"}if(n.includes("strict")){e="Strict"}if(n.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${o}=${c}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:e=>{function isCTLExcludingHtab(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n>=0&&n<=8||n>=10&&n<=31||n===127){return true}}return false}function validateCookieName(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<33||n>126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){let t=e.length;let n=0;if(e[0]==='"'){if(t===1||e[t-1]!=='"'){throw new Error("Invalid cookie value")}--t;++n}while(n<t){const t=e.charCodeAt(n++);if(t<33||t>126||t===34||t===44||t===59||t===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<32||n===127||n===59){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const o=Array(61).fill(0).map(((e,t)=>t.toString().padStart(2,"0")));function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}return`${t[e.getUTCDay()]}, ${o[e.getUTCDate()]} ${n[e.getUTCMonth()]} ${e.getUTCFullYear()} ${o[e.getUTCHours()]}:${o[e.getUTCMinutes()]}:${o[e.getUTCSeconds()]} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const n of e.unparsed){if(!n.includes("=")){throw new Error("Invalid unparsed")}const[e,...o]=n.split("=");t.push(`${e.trim()}=${o.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(e,t,n)=>{const{Transform:o}=n(7075);const{isASCIINumber:i,isValidLastEventId:c}=n(4811);const d=[239,187,191];const p=10;const y=13;const C=58;const Q=32;class EventSourceStream extends o{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(e={}){e.readableObjectMode=true;super(e);this.state=e.eventSourceSettings||{};if(e.push){this.push=e.push}}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,e])}else{this.buffer=e}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===d[0]){n();return}this.checkBOM=false;n();return;case 2:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]){n();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;n();return}this.checkBOM=false;break;default:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos<this.buffer.length){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===p){this.buffer=this.buffer.subarray(this.pos+1);this.pos=0;this.crlfCheck=false;continue}this.crlfCheck=false}if(this.buffer[this.pos]===p||this.buffer[this.pos]===y){if(this.buffer[this.pos]===y){this.crlfCheck=true}this.buffer=this.buffer.subarray(this.pos+1);this.pos=0;if(this.event.data!==undefined||this.event.event||this.event.id||this.event.retry){this.processEvent(this.event)}this.clearEvent();continue}this.eventEndCheck=false;continue}if(this.buffer[this.pos]===p||this.buffer[this.pos]===y){if(this.buffer[this.pos]===y){this.crlfCheck=true}this.parseLine(this.buffer.subarray(0,this.pos),this.event);this.buffer=this.buffer.subarray(this.pos+1);this.pos=0;this.eventEndCheck=true;continue}this.pos++}n()}parseLine(e,t){if(e.length===0){return}const n=e.indexOf(C);if(n===0){return}let o="";let d="";if(n!==-1){o=e.subarray(0,n).toString("utf8");let t=n+1;if(e[t]===Q){++t}d=e.subarray(t).toString("utf8")}else{o=e.toString("utf8");d=""}switch(o){case"data":if(t[o]===undefined){t[o]=d}else{t[o]+=`\n${d}`}break;case"retry":if(i(d)){t[o]=d}break;case"id":if(c(d)){t[o]=d}break;case"event":if(d.length>0){t[o]=d}break}}processEvent(e){if(e.retry&&i(e.retry)){this.state.reconnectionTime=parseInt(e.retry,10)}if(e.id&&c(e.id)){this.state.lastEventId=e.id}if(e.data!==undefined){this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}e.exports={EventSourceStream:EventSourceStream}},1238:(e,t,n)=>{const{pipeline:o}=n(7075);const{fetching:i}=n(4398);const{makeRequest:c}=n(9967);const{webidl:d}=n(5893);const{EventSourceStream:p}=n(4031);const{parseMIMEType:y}=n(1900);const{createFastMessageEvent:C}=n(5188);const{isNetworkError:Q}=n(9051);const{delay:v}=n(4811);const{kEnumerableProperty:D}=n(3440);const{environmentSettingsObject:k}=n(3168);let $=false;const V=3e3;const ee=0;const te=1;const re=2;const ne="anonymous";const se="use-credentials";class EventSource extends EventTarget{#_={open:null,error:null,message:null};#L=null;#O=false;#F=ee;#U=null;#M=null;#e;#C;constructor(e,t={}){super();d.util.markAsUncloneable(this);const n="EventSource constructor";d.argumentLengthCheck(arguments,1,n);if(!$){$=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}e=d.converters.USVString(e,n,"url");t=d.converters.EventSourceInitDict(t,n,"eventSourceInitDict");this.#e=t.dispatcher;this.#C={lastEventId:"",reconnectionTime:V};const o=k;let i;try{i=new URL(e,o.settingsObject.baseUrl);this.#C.origin=i.origin}catch(e){throw new DOMException(e,"SyntaxError")}this.#L=i.href;let p=ne;if(t.withCredentials){p=se;this.#O=true}const y={redirect:"follow",keepalive:true,mode:"cors",credentials:p==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};y.client=k.settingsObject;y.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];y.cache="no-store";y.initiator="other";y.urlList=[new URL(this.#L)];this.#U=c(y);this.#H()}get readyState(){return this.#F}get url(){return this.#L}get withCredentials(){return this.#O}#H(){if(this.#F===re)return;this.#F=ee;const e={request:this.#U,dispatcher:this.#e};const processEventSourceEndOfBody=e=>{if(Q(e)){this.dispatchEvent(new Event("error"));this.close()}this.#$()};e.processResponseEndOfBody=processEventSourceEndOfBody;e.processResponse=e=>{if(Q(e)){if(e.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#$();return}}const t=e.headersList.get("content-type",true);const n=t!==null?y(t):"failure";const i=n!=="failure"&&n.essence==="text/event-stream";if(e.status!==200||i===false){this.close();this.dispatchEvent(new Event("error"));return}this.#F=te;this.dispatchEvent(new Event("open"));this.#C.origin=e.urlList[e.urlList.length-1].origin;const c=new p({eventSourceSettings:this.#C,push:e=>{this.dispatchEvent(C(e.type,e.options))}});o(e.body.stream,c,(e=>{if(e?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}}))};this.#M=i(e)}async#$(){if(this.#F===re)return;this.#F=ee;this.dispatchEvent(new Event("error"));await v(this.#C.reconnectionTime);if(this.#F!==ee)return;if(this.#C.lastEventId.length){this.#U.headersList.set("last-event-id",this.#C.lastEventId,true)}this.#H()}close(){d.brandCheck(this,EventSource);if(this.#F===re)return;this.#F=re;this.#M.abort();this.#U=null}get onopen(){return this.#_.open}set onopen(e){if(this.#_.open){this.removeEventListener("open",this.#_.open)}if(typeof e==="function"){this.#_.open=e;this.addEventListener("open",e)}else{this.#_.open=null}}get onmessage(){return this.#_.message}set onmessage(e){if(this.#_.message){this.removeEventListener("message",this.#_.message)}if(typeof e==="function"){this.#_.message=e;this.addEventListener("message",e)}else{this.#_.message=null}}get onerror(){return this.#_.error}set onerror(e){if(this.#_.error){this.removeEventListener("error",this.#_.error)}if(typeof e==="function"){this.#_.error=e;this.addEventListener("error",e)}else{this.#_.error=null}}}const oe={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:ee,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:te,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:re,writable:false}};Object.defineProperties(EventSource,oe);Object.defineProperties(EventSource.prototype,oe);Object.defineProperties(EventSource.prototype,{close:D,onerror:D,onmessage:D,onopen:D,readyState:D,url:D,withCredentials:D});d.converters.EventSourceInitDict=d.dictionaryConverter([{key:"withCredentials",converter:d.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:d.converters.any}]);e.exports={EventSource:EventSource,defaultReconnectionTime:V}},4811:e=>{function isValidLastEventId(e){return e.indexOf("\0")===-1}function isASCIINumber(e){if(e.length===0)return false;for(let t=0;t<e.length;t++){if(e.charCodeAt(t)<48||e.charCodeAt(t)>57)return false}return true}function delay(e){return new Promise((t=>{setTimeout(t,e).unref()}))}e.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(e,t,n)=>{const o=n(3440);const{ReadableStreamFrom:i,isBlobLike:c,isReadableStreamLike:d,readableStreamClose:p,createDeferredPromise:y,fullyReadBody:C,extractMimeType:Q,utf8DecodeBytes:v}=n(3168);const{FormData:D}=n(5910);const{kState:k}=n(3627);const{webidl:$}=n(5893);const{Blob:V}=n(4573);const ee=n(4589);const{isErrored:te,isDisturbed:re}=n(7075);const{isArrayBuffer:ne}=n(3429);const{serializeAMimeType:se}=n(1900);const{multipartFormDataParser:oe}=n(116);let ie;try{const e=n(7598);ie=t=>e.randomInt(0,t)}catch{ie=e=>Math.floor(Math.random(e))}const ae=new TextEncoder;function noop(){}const ce=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let le;if(ce){le=new FinalizationRegistry((e=>{const t=e.deref();if(t&&!t.locked&&!re(t)&&!te(t)){t.cancel("Response object has been garbage collected").catch(noop)}}))}function extractBody(e,t=false){let n=null;if(e instanceof ReadableStream){n=e}else if(c(e)){n=e.stream()}else{n=new ReadableStream({async pull(e){const t=typeof C==="string"?ae.encode(C):C;if(t.byteLength){e.enqueue(t)}queueMicrotask((()=>p(e)))},start(){},type:"bytes"})}ee(d(n));let y=null;let C=null;let Q=null;let v=null;if(typeof e==="string"){C=e;v="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){C=e.toString();v="application/x-www-form-urlencoded;charset=UTF-8"}else if(ne(e)){C=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){C=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(o.isFormDataLike(e)){const t=`----formdata-undici-0${`${ie(1e11)}`.padStart(11,"0")}`;const n=`--${t}\r\nContent-Disposition: form-data`
|
||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const o=[];const i=new Uint8Array([13,10]);Q=0;let c=false;for(const[t,d]of e){if(typeof d==="string"){const e=ae.encode(n+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);o.push(e);Q+=e.byteLength}else{const e=ae.encode(`${n}; name="${escape(normalizeLinefeeds(t))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);o.push(e,d,i);if(typeof d.size==="number"){Q+=e.byteLength+d.size+i.byteLength}else{c=true}}}const d=ae.encode(`--${t}--\r\n`);o.push(d);Q+=d.byteLength;if(c){Q=null}C=e;y=async function*(){for(const e of o){if(e.stream){yield*e.stream()}else{yield e}}};v=`multipart/form-data; boundary=${t}`}else if(c(e)){C=e;Q=e.size;if(e.type){v=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(o.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof ReadableStream?e:i(e)}if(typeof C==="string"||o.isBuffer(C)){Q=Buffer.byteLength(C)}if(y!=null){let t;n=new ReadableStream({async start(){t=y(e)[Symbol.asyncIterator]()},async pull(e){const{value:o,done:i}=await t.next();if(i){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!te(n)){const t=new Uint8Array(o);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const D={stream:n,source:C,length:Q};return[D,v]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){ee(!o.isDisturbed(e),"The body has already been consumed.");ee(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[n,o]=t.stream.tee();t.stream=n;return{stream:o,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=se(t)}return new V([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,v,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const n=oe(e,t);if(n==="failure"){throw new TypeError("Failed to parse body as FormData.")}const o=new D;o[k]=n;return o}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const n=new D;for(const[e,o]of t){n.append(e,o)}return n}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,n){$.brandCheck(e,n);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[k]);const o=y();const errorSteps=e=>o.reject(e);const successSteps=e=>{try{o.resolve(t(e))}catch(e){errorSteps(e)}};if(e[k].body==null){successSteps(Buffer.allocUnsafe(0));return o.promise}await C(e[k].body,successSteps,errorSteps);return o.promise}function bodyUnusable(e){const t=e[k].body;return t!=null&&(t.stream.locked||o.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(v(e))}function bodyMimeType(e){const t=e[k].headersList;const n=Q(t);if(n==="failure"){return null}return n}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:le,hasFinalizationRegistry:ce,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const n=new Set(t);const o=[101,204,205,304];const i=[301,302,303,307,308];const c=new Set(i);const d=["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","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const p=new Set(d);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 C=new Set(y);const Q=["follow","manual","error"];const v=["GET","HEAD","OPTIONS","TRACE"];const D=new Set(v);const k=["navigate","same-origin","no-cors","cors"];const $=["omit","same-origin","include"];const V=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const ee=["content-encoding","content-language","content-location","content-type","content-length"];const te=["half"];const re=["CONNECT","TRACE","TRACK"];const ne=new Set(re);const se=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const oe=new Set(se);e.exports={subresource:se,forbiddenMethods:re,requestBodyHeader:ee,referrerPolicy:y,requestRedirect:Q,requestMode:k,requestCredentials:$,requestCache:V,redirectStatus:i,corsSafeListedMethods:t,nullBodyStatus:o,safeMethods:v,badPorts:d,requestDuplex:te,subresourceSet:oe,badPortsSet:p,redirectStatusSet:c,corsSafeListedMethodsSet:n,safeMethodsSet:D,forbiddenMethodsSet:ne,referrerPolicySet:C}},1900:(e,t,n)=>{const o=n(4589);const i=new TextEncoder;const c=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const d=/[\u000A\u000D\u0009\u0020]/;const p=/[\u0009\u000A\u000C\u000D\u0020]/g;const y=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(e){o(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const n={position:0};let i=collectASequenceOfCodePointsFast(",",t,n);const c=i.length;i=removeASCIIWhitespace(i,true,true);if(n.position>=t.length){return"failure"}n.position++;const d=t.slice(c+1);let p=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(i)){const e=isomorphicDecode(p);p=forgivingBase64(e);if(p==="failure"){return"failure"}i=i.slice(0,-6);i=i.replace(/(\u0020)+$/,"");i=i.slice(0,-1)}if(i.startsWith(";")){i="text/plain"+i}let y=parseMIMEType(i);if(y==="failure"){y=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:y,body:p}}function URLSerializer(e,t=false){if(!t){return e.href}const n=e.href;const o=e.hash.length;const i=o===0?n:n.substring(0,n.length-o);if(!o&&n.endsWith("#")){return i.slice(0,-1)}return i}function collectASequenceOfCodePoints(e,t,n){let o="";while(n.position<t.length&&e(t[n.position])){o+=t[n.position];n.position++}return o}function collectASequenceOfCodePointsFast(e,t,n){const o=t.indexOf(e,n.position);const i=n.position;if(o===-1){n.position=t.length;return t.slice(i)}n.position=o;return t.slice(i,n.position)}function stringPercentDecode(e){const t=i.encode(e);return percentDecode(t)}function isHexCharByte(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexByteToNumber(e){return e>=48&&e<=57?e-48:(e&223)-55}function percentDecode(e){const t=e.length;const n=new Uint8Array(t);let o=0;for(let i=0;i<t;++i){const t=e[i];if(t!==37){n[o++]=t}else if(t===37&&!(isHexCharByte(e[i+1])&&isHexCharByte(e[i+2]))){n[o++]=37}else{n[o++]=hexByteToNumber(e[i+1])<<4|hexByteToNumber(e[i+2]);i+=2}}return t===o?n:n.subarray(0,o)}function parseMIMEType(e){e=removeHTTPWhitespace(e,true,true);const t={position:0};const n=collectASequenceOfCodePointsFast("/",e,t);if(n.length===0||!c.test(n)){return"failure"}if(t.position>e.length){return"failure"}t.position++;let o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0||!c.test(o)){return"failure"}const i=n.toLowerCase();const p=o.toLowerCase();const C={type:i,subtype:p,parameters:new Map,essence:`${i}/${p}`};while(t.position<e.length){t.position++;collectASequenceOfCodePoints((e=>d.test(e)),e,t);let n=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);n=n.toLowerCase();if(t.position<e.length){if(e[t.position]===";"){continue}t.position++}if(t.position>e.length){break}let o=null;if(e[t.position]==='"'){o=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0){continue}}if(n.length!==0&&c.test(n)&&(o.length===0||y.test(o))&&!C.parameters.has(n)){C.parameters.set(n,o)}}return C}function forgivingBase64(e){e=e.replace(p,"");let t=e.length;if(t%4===0){if(e.charCodeAt(t-1)===61){--t;if(e.charCodeAt(t-1)===61){--t}}}if(t%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t))){return"failure"}const n=Buffer.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function collectAnHTTPQuotedString(e,t,n){const i=t.position;let c="";o(e[t.position]==='"');t.position++;while(true){c+=collectASequenceOfCodePoints((e=>e!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const n=e[t.position];t.position++;if(n==="\\"){if(t.position>=e.length){c+="\\";break}c+=e[t.position];t.position++}else{o(n==='"');break}}if(n){return c}return e.slice(i,t.position)}function serializeAMimeType(e){o(e!=="failure");const{parameters:t,essence:n}=e;let i=n;for(let[e,n]of t.entries()){i+=";";i+=e;i+="=";if(!c.test(n)){n=n.replace(/(\\|")/g,"\\$1");n='"'+n;n+='"'}i+=n}return i}function isHTTPWhiteSpace(e){return e===13||e===10||e===9||e===32}function removeHTTPWhitespace(e,t=true,n=true){return removeChars(e,t,n,isHTTPWhiteSpace)}function isASCIIWhitespace(e){return e===13||e===10||e===9||e===12||e===32}function removeASCIIWhitespace(e,t=true,n=true){return removeChars(e,t,n,isASCIIWhitespace)}function removeChars(e,t,n,o){let i=0;let c=e.length-1;if(t){while(i<e.length&&o(e.charCodeAt(i)))i++}if(n){while(c>0&&o(e.charCodeAt(c)))c--}return i===0&&c===e.length-1?e:e.slice(i,c+1)}function isomorphicDecode(e){const t=e.length;if((2<<15)-1>t){return String.fromCharCode.apply(null,e)}let n="";let o=0;let i=(2<<15)-1;while(o<t){if(o+i>t){i=t-o}n+=String.fromCharCode.apply(null,e.subarray(o,o+=i))}return n}function minimizeSupportedMimeType(e){switch(e.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(e.subtype.endsWith("+json")){return"application/json"}if(e.subtype.endsWith("+xml")){return"application/xml"}return""}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:c,isomorphicDecode:isomorphicDecode}},6653:(e,t,n)=>{const{kConnected:o,kSize:i}=n(6443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[o]===0&&this.value[i]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[o]===0&&e[i]===0){this.finalizer(t)}}))}}unregister(e){}}e.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(e,t,n)=>{const{Blob:o,File:i}=n(4573);const{kState:c}=n(3627);const{webidl:d}=n(5893);class FileLike{constructor(e,t,n={}){const o=t;const i=n.type;const d=n.lastModified??Date.now();this[c]={blobLike:e,name:o,type:i,lastModified:d}}stream(...e){d.brandCheck(this,FileLike);return this[c].blobLike.stream(...e)}arrayBuffer(...e){d.brandCheck(this,FileLike);return this[c].blobLike.arrayBuffer(...e)}slice(...e){d.brandCheck(this,FileLike);return this[c].blobLike.slice(...e)}text(...e){d.brandCheck(this,FileLike);return this[c].blobLike.text(...e)}get size(){d.brandCheck(this,FileLike);return this[c].blobLike.size}get type(){d.brandCheck(this,FileLike);return this[c].blobLike.type}get name(){d.brandCheck(this,FileLike);return this[c].name}get lastModified(){d.brandCheck(this,FileLike);return this[c].lastModified}get[Symbol.toStringTag](){return"File"}}d.converters.Blob=d.interfaceConverter(o);function isFileLike(e){return e instanceof i||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(e,t,n)=>{const{isUSVString:o,bufferToLowerCasedHeaderName:i}=n(3440);const{utf8DecodeBytes:c}=n(3168);const{HTTP_TOKEN_CODEPOINTS:d,isomorphicDecode:p}=n(1900);const{isFileLike:y}=n(7114);const{makeEntry:C}=n(5910);const Q=n(4589);const{File:v}=n(4573);const D=globalThis.File??v;const k=Buffer.from('form-data; name="');const $=Buffer.from("; filename");const V=Buffer.from("--");const ee=Buffer.from("--\r\n");function isAsciiString(e){for(let t=0;t<e.length;++t){if((e.charCodeAt(t)&~127)!==0){return false}}return true}function validateBoundary(e){const t=e.length;if(t<27||t>70){return false}for(let n=0;n<t;++n){const t=e.charCodeAt(n);if(!(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95)){return false}}return true}function multipartFormDataParser(e,t){Q(t!=="failure"&&t.essence==="multipart/form-data");const n=t.parameters.get("boundary");if(n===undefined){return"failure"}const i=Buffer.from(`--${n}`,"utf8");const d=[];const p={position:0};while(e[p.position]===13&&e[p.position+1]===10){p.position+=2}let v=e.length;while(e[v-1]===10&&e[v-2]===13){v-=2}if(v!==e.length){e=e.subarray(0,v)}while(true){if(e.subarray(p.position,p.position+i.length).equals(i)){p.position+=i.length}else{return"failure"}if(p.position===e.length-2&&bufferStartsWith(e,V,p)||p.position===e.length-4&&bufferStartsWith(e,ee,p)){return d}if(e[p.position]!==13||e[p.position+1]!==10){return"failure"}p.position+=2;const t=parseMultipartFormDataHeaders(e,p);if(t==="failure"){return"failure"}let{name:n,filename:v,contentType:k,encoding:$}=t;p.position+=2;let te;{const t=e.indexOf(i.subarray(2),p.position);if(t===-1){return"failure"}te=e.subarray(p.position,t-4);p.position+=te.length;if($==="base64"){te=Buffer.from(te.toString(),"base64")}}if(e[p.position]!==13||e[p.position+1]!==10){return"failure"}else{p.position+=2}let re;if(v!==null){k??="text/plain";if(!isAsciiString(k)){k=""}re=new D([te],v,{type:k})}else{re=c(Buffer.from(te))}Q(o(n));Q(typeof re==="string"&&o(re)||y(re));d.push(C(n,re,v))}}function parseMultipartFormDataHeaders(e,t){let n=null;let o=null;let c=null;let y=null;while(true){if(e[t.position]===13&&e[t.position+1]===10){if(n===null){return"failure"}return{name:n,filename:o,contentType:c,encoding:y}}let C=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==58),e,t);C=removeChars(C,true,true,(e=>e===9||e===32));if(!d.test(C.toString())){return"failure"}if(e[t.position]!==58){return"failure"}t.position++;collectASequenceOfBytes((e=>e===32||e===9),e,t);switch(i(C)){case"content-disposition":{n=o=null;if(!bufferStartsWith(e,k,t)){return"failure"}t.position+=17;n=parseMultipartFormDataName(e,t);if(n===null){return"failure"}if(bufferStartsWith(e,$,t)){let n=t.position+$.length;if(e[n]===42){t.position+=1;n+=1}if(e[n]!==61||e[n+1]!==34){return"failure"}t.position+=12;o=parseMultipartFormDataName(e,t);if(o===null){return"failure"}}break}case"content-type":{let n=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);n=removeChars(n,false,true,(e=>e===9||e===32));c=p(n);break}case"content-transfer-encoding":{let n=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);n=removeChars(n,false,true,(e=>e===9||e===32));y=p(n);break}default:{collectASequenceOfBytes((e=>e!==10&&e!==13),e,t)}}if(e[t.position]!==13&&e[t.position+1]!==10){return"failure"}else{t.position+=2}}}function parseMultipartFormDataName(e,t){Q(e[t.position-1]===34);let n=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==34),e,t);if(e[t.position]!==34){return null}else{t.position++}n=(new TextDecoder).decode(n).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return n}function collectASequenceOfBytes(e,t,n){let o=n.position;while(o<t.length&&e(t[o])){++o}return t.subarray(n.position,n.position=o)}function removeChars(e,t,n,o){let i=0;let c=e.length-1;if(t){while(i<e.length&&o(e[i]))i++}if(n){while(c>0&&o(e[c]))c--}return i===0&&c===e.length-1?e:e.subarray(i,c+1)}function bufferStartsWith(e,t,n){if(e.length<t.length){return false}for(let o=0;o<t.length;o++){if(t[o]!==e[n.position+o]){return false}}return true}e.exports={multipartFormDataParser:multipartFormDataParser,validateBoundary:validateBoundary}},5910:(e,t,n)=>{const{isBlobLike:o,iteratorMixin:i}=n(3168);const{kState:c}=n(3627);const{kEnumerableProperty:d}=n(3440);const{FileLike:p,isFileLike:y}=n(7114);const{webidl:C}=n(5893);const{File:Q}=n(4573);const v=n(7975);const D=globalThis.File??Q;class FormData{constructor(e){C.util.markAsUncloneable(this);if(e!==undefined){throw C.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[c]=[]}append(e,t,n=undefined){C.brandCheck(this,FormData);const i="FormData.append";C.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=C.converters.USVString(e,i,"name");t=o(t)?C.converters.Blob(t,i,"value",{strict:false}):C.converters.USVString(t,i,"value");n=arguments.length===3?C.converters.USVString(n,i,"filename"):undefined;const d=makeEntry(e,t,n);this[c].push(d)}delete(e){C.brandCheck(this,FormData);const t="FormData.delete";C.argumentLengthCheck(arguments,1,t);e=C.converters.USVString(e,t,"name");this[c]=this[c].filter((t=>t.name!==e))}get(e){C.brandCheck(this,FormData);const t="FormData.get";C.argumentLengthCheck(arguments,1,t);e=C.converters.USVString(e,t,"name");const n=this[c].findIndex((t=>t.name===e));if(n===-1){return null}return this[c][n].value}getAll(e){C.brandCheck(this,FormData);const t="FormData.getAll";C.argumentLengthCheck(arguments,1,t);e=C.converters.USVString(e,t,"name");return this[c].filter((t=>t.name===e)).map((e=>e.value))}has(e){C.brandCheck(this,FormData);const t="FormData.has";C.argumentLengthCheck(arguments,1,t);e=C.converters.USVString(e,t,"name");return this[c].findIndex((t=>t.name===e))!==-1}set(e,t,n=undefined){C.brandCheck(this,FormData);const i="FormData.set";C.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=C.converters.USVString(e,i,"name");t=o(t)?C.converters.Blob(t,i,"name",{strict:false}):C.converters.USVString(t,i,"name");n=arguments.length===3?C.converters.USVString(n,i,"name"):undefined;const d=makeEntry(e,t,n);const p=this[c].findIndex((t=>t.name===e));if(p!==-1){this[c]=[...this[c].slice(0,p),d,...this[c].slice(p+1).filter((t=>t.name!==e))]}else{this[c].push(d)}}[v.inspect.custom](e,t){const n=this[c].reduce(((e,t)=>{if(e[t.name]){if(Array.isArray(e[t.name])){e[t.name].push(t.value)}else{e[t.name]=[e[t.name],t.value]}}else{e[t.name]=t.value}return e}),{__proto__:null});t.depth??=e;t.colors??=true;const o=v.formatWithOptions(t,n);return`FormData ${o.slice(o.indexOf("]")+2)}`}}i("FormData",FormData,c,"name","value");Object.defineProperties(FormData.prototype,{append:d,delete:d,get:d,getAll:d,has:d,set:d,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,n){if(typeof t==="string"){}else{if(!y(t)){t=t instanceof Blob?new D([t],"blob",{type:t.type}):new p(t,"blob",{type:t.type})}if(n!==undefined){const e={type:t.type,lastModified:t.lastModified};t=t instanceof Q?new D([t],n,e):new p(t,n,e)}}return{name:e,value:t}}e.exports={FormData:FormData,makeEntry:makeEntry}},1059:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const n=new URL(e);if(n.protocol!=="http:"&&n.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${n.protocol}`)}Object.defineProperty(globalThis,t,{value:n,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(e,t,n)=>{const{kConstruct:o}=n(6443);const{kEnumerableProperty:i}=n(3440);const{iteratorMixin:c,isValidHeaderName:d,isValidHeaderValue:p}=n(3168);const{webidl:y}=n(5893);const C=n(4589);const Q=n(7975);const v=Symbol("headers map");const D=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let n=e.length;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(n-1)))--n;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&n===e.length?e:e.substring(t,n)}function fill(e,t){if(Array.isArray(t)){for(let n=0;n<t.length;++n){const o=t[n];if(o.length!==2){throw y.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${o.length}.`})}appendHeader(e,o[0],o[1])}}else if(typeof t==="object"&&t!==null){const n=Object.keys(t);for(let o=0;o<n.length;++o){appendHeader(e,n[o],t[n[o]])}}else{throw y.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}}function appendHeader(e,t,n){n=headerValueNormalize(n);if(!d(t)){throw y.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!p(n)){throw y.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header value"})}if(k(e)==="immutable"){throw new TypeError("immutable")}return V(e).append(t,n,false)}function compareHeaderName(e,t){return e[0]<t[0]?-1:1}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[v]=new Map(e[v]);this[D]=e[D];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[v]=new Map(e);this[D]=null}}contains(e,t){return this[v].has(t?e:e.toLowerCase())}clear(){this[v].clear();this[D]=null;this.cookies=null}append(e,t,n){this[D]=null;const o=n?e:e.toLowerCase();const i=this[v].get(o);if(i){const e=o==="cookie"?"; ":", ";this[v].set(o,{name:i.name,value:`${i.value}${e}${t}`})}else{this[v].set(o,{name:e,value:t})}if(o==="set-cookie"){(this.cookies??=[]).push(t)}}set(e,t,n){this[D]=null;const o=n?e:e.toLowerCase();if(o==="set-cookie"){this.cookies=[t]}this[v].set(o,{name:e,value:t})}delete(e,t){this[D]=null;if(!t)e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[v].delete(e)}get(e,t){return this[v].get(t?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(const{0:e,1:{value:t}}of this[v]){yield[e,t]}}get entries(){const e={};if(this[v].size!==0){for(const{name:t,value:n}of this[v].values()){e[t]=n}}return e}rawValues(){return this[v].values()}get entriesList(){const e=[];if(this[v].size!==0){for(const{0:t,1:{name:n,value:o}}of this[v]){if(t==="set-cookie"){for(const t of this.cookies){e.push([n,t])}}else{e.push([n,o])}}}return e}toSortedArray(){const e=this[v].size;const t=new Array(e);if(e<=32){if(e===0){return t}const n=this[v][Symbol.iterator]();const o=n.next().value;t[0]=[o[0],o[1].value];C(o[1].value!==null);for(let o=1,i=0,c=0,d=0,p=0,y,Q;o<e;++o){Q=n.next().value;y=t[o]=[Q[0],Q[1].value];C(y[1]!==null);d=0;c=o;while(d<c){p=d+(c-d>>1);if(t[p][0]<=y[0]){d=p+1}else{c=p}}if(o!==p){i=o;while(i>d){t[i]=t[--i]}t[d]=y}}if(!n.next().done){throw new TypeError("Unreachable")}return t}else{let e=0;for(const{0:n,1:{value:o}}of this[v]){t[e++]=[n,o];C(o!==null)}return t.sort(compareHeaderName)}}}class Headers{#G;#q;constructor(e=undefined){y.util.markAsUncloneable(this);if(e===o){return}this.#q=new HeadersList;this.#G="none";if(e!==undefined){e=y.converters.HeadersInit(e,"Headers contructor","init");fill(this,e)}}append(e,t){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,2,"Headers.append");const n="Headers.append";e=y.converters.ByteString(e,n,"name");t=y.converters.ByteString(t,n,"value");return appendHeader(this,e,t)}delete(e){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,1,"Headers.delete");const t="Headers.delete";e=y.converters.ByteString(e,t,"name");if(!d(e)){throw y.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this.#G==="immutable"){throw new TypeError("immutable")}if(!this.#q.contains(e,false)){return}this.#q.delete(e,false)}get(e){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,1,"Headers.get");const t="Headers.get";e=y.converters.ByteString(e,t,"name");if(!d(e)){throw y.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#q.get(e,false)}has(e){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,1,"Headers.has");const t="Headers.has";e=y.converters.ByteString(e,t,"name");if(!d(e)){throw y.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#q.contains(e,false)}set(e,t){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,2,"Headers.set");const n="Headers.set";e=y.converters.ByteString(e,n,"name");t=y.converters.ByteString(t,n,"value");t=headerValueNormalize(t);if(!d(e)){throw y.errors.invalidArgument({prefix:n,value:e,type:"header name"})}else if(!p(t)){throw y.errors.invalidArgument({prefix:n,value:t,type:"header value"})}if(this.#G==="immutable"){throw new TypeError("immutable")}this.#q.set(e,t,false)}getSetCookie(){y.brandCheck(this,Headers);const e=this.#q.cookies;if(e){return[...e]}return[]}get[D](){if(this.#q[D]){return this.#q[D]}const e=[];const t=this.#q.toSortedArray();const n=this.#q.cookies;if(n===null||n.length===1){return this.#q[D]=t}for(let o=0;o<t.length;++o){const{0:i,1:c}=t[o];if(i==="set-cookie"){for(let t=0;t<n.length;++t){e.push([i,n[t]])}}else{e.push([i,c])}}return this.#q[D]=e}[Q.inspect.custom](e,t){t.depth??=e;return`Headers ${Q.formatWithOptions(t,this.#q.entries)}`}static getHeadersGuard(e){return e.#G}static setHeadersGuard(e,t){e.#G=t}static getHeadersList(e){return e.#q}static setHeadersList(e,t){e.#q=t}}const{getHeadersGuard:k,setHeadersGuard:$,getHeadersList:V,setHeadersList:ee}=Headers;Reflect.deleteProperty(Headers,"getHeadersGuard");Reflect.deleteProperty(Headers,"setHeadersGuard");Reflect.deleteProperty(Headers,"getHeadersList");Reflect.deleteProperty(Headers,"setHeadersList");c("Headers",Headers,D,0,1);Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,[Symbol.toStringTag]:{value:"Headers",configurable:true},[Q.inspect.custom]:{enumerable:false}});y.converters.HeadersInit=function(e,t,n){if(y.util.Type(e)==="Object"){const o=Reflect.get(e,Symbol.iterator);if(!Q.types.isProxy(e)&&o===Headers.prototype.entries){try{return V(e).entriesList}catch{}}if(typeof o==="function"){return y.converters["sequence<sequence<ByteString>>"](e,t,n,o.bind(e))}return y.converters["record<ByteString, ByteString>"](e,t,n)}throw y.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};e.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:k,setHeadersGuard:$,setHeadersList:ee,getHeadersList:V}},4398:(e,t,n)=>{const{makeNetworkError:o,makeAppropriateNetworkError:i,filterResponse:c,makeResponse:d,fromInnerResponse:p}=n(9051);const{HeadersList:y}=n(660);const{Request:C,cloneRequest:Q}=n(9967);const v=n(8522);const{bytesMatch:D,makePolicyContainer:k,clonePolicyContainer:$,requestBadPort:V,TAOCheck:ee,appendRequestOriginHeader:te,responseLocationURL:re,requestCurrentURL:ne,setRequestReferrerPolicyOnRedirect:se,tryUpgradeRequestToAPotentiallyTrustworthyURL:oe,createOpaqueTimingInfo:ie,appendFetchMetadata:ae,corsCheck:ce,crossOriginResourcePolicyCheck:le,determineRequestsReferrer:ue,coarsenedSharedCurrentTime:de,createDeferredPromise:pe,isBlobLike:Ae,sameOrigin:me,isCancelled:ge,isAborted:fe,isErrorLike:he,fullyReadBody:ye,readableStreamClose:Ee,isomorphicEncode:Ce,urlIsLocal:Ie,urlIsHttpHttpsScheme:be,urlHasHttpsScheme:Se,clampAndCoarsenConnectionTimingInfo:Be,simpleRangeHeaderValue:we,buildContentRange:Re,createInflate:Ne,extractMimeType:Qe}=n(3168);const{kState:xe,kDispatcher:Te}=n(3627);const ve=n(4589);const{safelyExtractBody:Pe,extractBody:De}=n(4492);const{redirectStatusSet:ke,nullBodyStatus:_e,safeMethodsSet:Le,requestBodyHeader:Oe,subresourceSet:Fe}=n(4495);const Ue=n(8474);const{Readable:Me,pipeline:He,finished:$e}=n(7075);const{addAbortListener:Ge,isErrored:qe,isReadable:ze,bufferToLowerCasedHeaderName:Ve}=n(3440);const{dataURLProcessor:je,serializeAMimeType:Ye,minimizeSupportedMimeType:Je}=n(1900);const{getGlobalDispatcher:We}=n(2581);const{webidl:Ke}=n(5893);const{STATUS_CODES:Xe}=n(7067);const Ze=["GET","HEAD"];const At=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let mt;class Fetch extends Ue{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing"}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function handleFetchDone(e){finalizeAndReportTiming(e,"fetch")}function fetch(e,t=undefined){Ke.argumentLengthCheck(arguments,1,"globalThis.fetch");let n=pe();let o;try{o=new C(e,t)}catch(e){n.reject(e);return n.promise}const i=o[xe];if(o.signal.aborted){abortFetch(n,i,null,o.signal.reason);return n.promise}const c=i.client.globalObject;if(c?.constructor?.name==="ServiceWorkerGlobalScope"){i.serviceWorkers="none"}let d=null;let y=false;let Q=null;Ge(o.signal,(()=>{y=true;ve(Q!=null);Q.abort(o.signal.reason);const e=d?.deref();abortFetch(n,i,e,o.signal.reason)}));const processResponse=e=>{if(y){return}if(e.aborted){abortFetch(n,i,d,Q.serializedAbortReason);return}if(e.type==="error"){n.reject(new TypeError("fetch failed",{cause:e.error}));return}d=new WeakRef(p(e,"immutable"));n.resolve(d.deref());n=null};Q=fetching({request:i,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:o[Te]});return n.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const n=e.urlList[0];let o=e.timingInfo;let i=e.cacheState;if(!be(n)){return}if(o===null){return}if(!e.timingAllowPassed){o=ie({startTime:o.startTime});i=""}o.endTime=de();e.timingInfo=o;ht(o,n.href,t,globalThis,i)}const ht=performance.markResourceTiming;function abortFetch(e,t,n,o){if(e){e.reject(o)}if(t.body!=null&&ze(t.body?.stream)){t.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(n==null){return}const i=n[xe];if(i.body!=null&&ze(i.body?.stream)){i.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseEndOfBody:i,processResponseConsumeBody:c,useParallelQueue:d=false,dispatcher:p=We()}){ve(p);let y=null;let C=false;if(e.client!=null){y=e.client.globalObject;C=e.client.crossOriginIsolatedCapability}const Q=de(C);const v=ie({startTime:Q});const D={controller:new Fetch(p),request:e,timingInfo:v,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseConsumeBody:c,processResponseEndOfBody:i,taskDestination:y,crossOriginIsolatedCapability:C};ve(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=$(e.client.policyContainer)}else{e.policyContainer=k()}}if(!e.headersList.contains("accept",true)){const t="*/*";e.headersList.append("accept",t,true)}if(!e.headersList.contains("accept-language",true)){e.headersList.append("accept-language","*",true)}if(e.priority===null){}if(Fe.has(e.destination)){}mainFetch(D).catch((e=>{D.controller.terminate(e)}));return D.controller}async function mainFetch(e,t=false){const n=e.request;let i=null;if(n.localURLsOnly&&!Ie(ne(n))){i=o("local URLs only")}oe(n);if(V(n)==="blocked"){i=o("bad port")}if(n.referrerPolicy===""){n.referrerPolicy=n.policyContainer.referrerPolicy}if(n.referrer!=="no-referrer"){n.referrer=ue(n)}if(i===null){i=await(async()=>{const t=ne(n);if(me(t,n.url)&&n.responseTainting==="basic"||t.protocol==="data:"||(n.mode==="navigate"||n.mode==="websocket")){n.responseTainting="basic";return await schemeFetch(e)}if(n.mode==="same-origin"){return o('request mode cannot be "same-origin"')}if(n.mode==="no-cors"){if(n.redirect!=="follow"){return o('redirect mode cannot be "follow" for "no-cors" request')}n.responseTainting="opaque";return await schemeFetch(e)}if(!be(ne(n))){return o("URL scheme must be a HTTP(S) scheme")}n.responseTainting="cors";return await httpFetch(e)})()}if(t){return i}if(i.status!==0&&!i.internalResponse){if(n.responseTainting==="cors"){}if(n.responseTainting==="basic"){i=c(i,"basic")}else if(n.responseTainting==="cors"){i=c(i,"cors")}else if(n.responseTainting==="opaque"){i=c(i,"opaque")}else{ve(false)}}let d=i.status===0?i:i.internalResponse;if(d.urlList.length===0){d.urlList.push(...n.urlList)}if(!n.timingAllowFailed){i.timingAllowPassed=true}if(i.type==="opaque"&&d.status===206&&d.rangeRequested&&!n.headers.contains("range",true)){i=d=o()}if(i.status!==0&&(n.method==="HEAD"||n.method==="CONNECT"||_e.includes(d.status))){d.body=null;e.controller.dump=true}if(n.integrity){const processBodyError=t=>fetchFinale(e,o(t));if(n.responseTainting==="opaque"||i.body==null){processBodyError(i.error);return}const processBody=t=>{if(!D(t,n.integrity)){processBodyError("integrity mismatch");return}i.body=Pe(t)[0];fetchFinale(e,i)};await ye(i.body,processBody,processBodyError)}else{fetchFinale(e,i)}}function schemeFetch(e){if(ge(e)&&e.request.redirectCount===0){return Promise.resolve(i(e))}const{request:t}=e;const{protocol:c}=ne(t);switch(c){case"about:":{return Promise.resolve(o("about scheme is not supported"))}case"blob:":{if(!mt){mt=n(4573).resolveObjectURL}const e=ne(t);if(e.search.length!==0){return Promise.resolve(o("NetworkError when attempting to fetch resource."))}const i=mt(e.toString());if(t.method!=="GET"||!Ae(i)){return Promise.resolve(o("invalid method"))}const c=d();const p=i.size;const y=Ce(`${p}`);const C=i.type;if(!t.headersList.contains("range",true)){const e=De(i);c.statusText="OK";c.body=e[0];c.headersList.set("content-length",y,true);c.headersList.set("content-type",C,true)}else{c.rangeRequested=true;const e=t.headersList.get("range",true);const n=we(e,true);if(n==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}let{rangeStartValue:d,rangeEndValue:y}=n;if(d===null){d=p-y;y=d+y-1}else{if(d>=p){return Promise.resolve(o("Range start is greater than the blob's size."))}if(y===null||y>=p){y=p-1}}const Q=i.slice(d,y,C);const v=De(Q);c.body=v[0];const D=Ce(`${Q.size}`);const k=Re(d,y,p);c.status=206;c.statusText="Partial Content";c.headersList.set("content-length",D,true);c.headersList.set("content-type",C,true);c.headersList.set("content-range",k,true)}return Promise.resolve(c)}case"data:":{const e=ne(t);const n=je(e);if(n==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}const i=Ye(n.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:Pe(n.body)[0]}))}case"file:":{return Promise.resolve(o("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>o(e)))}default:{return Promise.resolve(o("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){let n=e.timingInfo;const processResponseEndOfBody=()=>{const o=Date.now();if(e.request.destination==="document"){e.controller.fullTimingInfo=n}e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:"){return}n.endTime=o;let i=t.cacheState;const c=t.bodyInfo;if(!t.timingAllowPassed){n=ie(n);i=""}let d=0;if(e.request.mode!=="navigator"||!t.hasCrossOriginRedirects){d=t.status;const e=Qe(t.headersList);if(e!=="failure"){c.contentType=Je(e)}}if(e.request.initiatorType!=null){ht(n,e.request.url.href,e.request.initiatorType,globalThis,i,c,d)}};const processResponseEndOfBodyTask=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}if(e.request.initiatorType!=null){e.controller.reportTimingSteps()}};queueMicrotask((()=>processResponseEndOfBodyTask()))};if(e.processResponse!=null){queueMicrotask((()=>{e.processResponse(t);e.processResponse=null}))}const o=t.type==="error"?t:t.internalResponse??t;if(o.body==null){processResponseEndOfBody()}else{$e(o.body.stream,(()=>{processResponseEndOfBody()}))}}async function httpFetch(e){const t=e.request;let n=null;let i=null;const c=e.timingInfo;if(t.serviceWorkers==="all"){}if(n===null){if(t.redirect==="follow"){t.serviceWorkers="none"}i=n=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&ce(t,n)==="failure"){return o("cors failure")}if(ee(t,n)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||n.type==="opaque")&&le(t.origin,t.client,t.destination,i)==="blocked"){return o("blocked")}if(ke.has(i.status)){if(t.redirect!=="manual"){e.controller.connection.destroy(undefined,false)}if(t.redirect==="error"){n=o("unexpected redirect")}else if(t.redirect==="manual"){n=i}else if(t.redirect==="follow"){n=await httpRedirectFetch(e,n)}else{ve(false)}}n.timingInfo=c;return n}function httpRedirectFetch(e,t){const n=e.request;const i=t.internalResponse?t.internalResponse:t;let c;try{c=re(i,ne(n).hash);if(c==null){return t}}catch(e){return Promise.resolve(o(e))}if(!be(c)){return Promise.resolve(o("URL scheme must be a HTTP(S) scheme"))}if(n.redirectCount===20){return Promise.resolve(o("redirect count exceeded"))}n.redirectCount+=1;if(n.mode==="cors"&&(c.username||c.password)&&!me(n,c)){return Promise.resolve(o('cross origin not allowed for request mode "cors"'))}if(n.responseTainting==="cors"&&(c.username||c.password)){return Promise.resolve(o('URL cannot contain credentials for request mode "cors"'))}if(i.status!==303&&n.body!=null&&n.body.source==null){return Promise.resolve(o())}if([301,302].includes(i.status)&&n.method==="POST"||i.status===303&&!Ze.includes(n.method)){n.method="GET";n.body=null;for(const e of Oe){n.headersList.delete(e)}}if(!me(ne(n),c)){n.headersList.delete("authorization",true);n.headersList.delete("proxy-authorization",true);n.headersList.delete("cookie",true);n.headersList.delete("host",true)}if(n.body!=null){ve(n.body.source!=null);n.body=Pe(n.body.source)[0]}const d=e.timingInfo;d.redirectEndTime=d.postRedirectStartTime=de(e.crossOriginIsolatedCapability);if(d.redirectStartTime===0){d.redirectStartTime=d.startTime}n.urlList.push(c);se(n,i);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,n=false){const c=e.request;let d=null;let p=null;let y=null;const C=null;const v=false;if(c.window==="no-window"&&c.redirect==="error"){d=e;p=c}else{p=Q(c);d={...e};d.request=p}const D=c.credentials==="include"||c.credentials==="same-origin"&&c.responseTainting==="basic";const k=p.body?p.body.length:null;let $=null;if(p.body==null&&["POST","PUT"].includes(p.method)){$="0"}if(k!=null){$=Ce(`${k}`)}if($!=null){p.headersList.append("content-length",$,true)}if(k!=null&&p.keepalive){}if(p.referrer instanceof URL){p.headersList.append("referer",Ce(p.referrer.href),true)}te(p);ae(p);if(!p.headersList.contains("user-agent",true)){p.headersList.append("user-agent",At)}if(p.cache==="default"&&(p.headersList.contains("if-modified-since",true)||p.headersList.contains("if-none-match",true)||p.headersList.contains("if-unmodified-since",true)||p.headersList.contains("if-match",true)||p.headersList.contains("if-range",true))){p.cache="no-store"}if(p.cache==="no-cache"&&!p.preventNoCacheCacheControlHeaderModification&&!p.headersList.contains("cache-control",true)){p.headersList.append("cache-control","max-age=0",true)}if(p.cache==="no-store"||p.cache==="reload"){if(!p.headersList.contains("pragma",true)){p.headersList.append("pragma","no-cache",true)}if(!p.headersList.contains("cache-control",true)){p.headersList.append("cache-control","no-cache",true)}}if(p.headersList.contains("range",true)){p.headersList.append("accept-encoding","identity",true)}if(!p.headersList.contains("accept-encoding",true)){if(Se(ne(p))){p.headersList.append("accept-encoding","br, gzip, deflate",true)}else{p.headersList.append("accept-encoding","gzip, deflate",true)}}p.headersList.delete("host",true);if(D){}if(C==null){p.cache="no-store"}if(p.cache!=="no-store"&&p.cache!=="reload"){}if(y==null){if(p.cache==="only-if-cached"){return o("only if cached")}const e=await httpNetworkFetch(d,D,n);if(!Le.has(p.method)&&e.status>=200&&e.status<=399){}if(v&&e.status===304){}if(y==null){y=e}}y.urlList=[...p.urlList];if(p.headersList.contains("range",true)){y.rangeRequested=true}y.requestIncludesCredentials=D;if(y.status===407){if(c.window==="no-window"){return o()}if(ge(e)){return i(e)}return o("proxy authentication required")}if(y.status===421&&!n&&(c.body==null||c.body.source!=null)){if(ge(e)){return i(e)}e.controller.connection.destroy();y=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return y}async function httpNetworkFetch(e,t=false,n=false){ve(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e,t=true){if(!this.destroyed){this.destroyed=true;if(t){this.abort?.(e??new DOMException("The operation was aborted.","AbortError"))}}}};const c=e.request;let p=null;const C=e.timingInfo;const Q=null;if(Q==null){c.cache="no-store"}const D=n?"yes":"no";if(c.mode==="websocket"){}else{}let k=null;if(c.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(c.body!=null){const processBodyChunk=async function*(t){if(ge(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(ge(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(ge(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};k=async function*(){try{for await(const e of c.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:n,statusText:o,headersList:i,socket:c}=await dispatch({body:k});if(c){p=d({status:n,statusText:o,headersList:i,socket:c})}else{const c=t[Symbol.asyncIterator]();e.controller.next=()=>c.next();p=d({status:n,statusText:o,headersList:i})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return i(e,t)}return o(t)}const pullAlgorithm=async()=>{await e.controller.resume()};const cancelAlgorithm=t=>{if(!ge(e)){e.controller.abort(t)}};const $=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)},type:"bytes"});p.body={stream:$,source:null,length:null};e.controller.onAborted=onAborted;e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let n;try{const{done:n,value:o}=await e.controller.next();if(fe(e)){break}t=n?undefined:o}catch(o){if(e.controller.ended&&!C.encodedBodySize){t=undefined}else{t=o;n=true}}if(t===undefined){Ee(e.controller.controller);finalizeResponse(e,p);return}C.decodedBodySize+=t?.byteLength??0;if(n){e.controller.terminate(t);return}const o=new Uint8Array(t);if(o.byteLength){e.controller.controller.enqueue(o)}if(qe($)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0){return}}};function onAborted(t){if(fe(e)){p.aborted=true;if(ze($)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(ze($)){e.controller.controller.error(new TypeError("terminated",{cause:he(t)?t:undefined}))}}e.controller.connection.destroy()}return p;function dispatch({body:t}){const n=ne(c);const o=e.controller.dispatcher;return new Promise(((i,d)=>o.dispatch({path:n.pathname+n.search,origin:n.origin,method:c.method,body:o.isMockActive?c.body&&(c.body.source||c.body.stream):t,headers:c.headersList.entries,maxRedirections:0,upgrade:c.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:n}=e.controller;C.finalConnectionTimingInfo=Be(undefined,C.postRedirectStartTime,e.crossOriginIsolatedCapability);if(n.destroyed){t(new DOMException("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=n.abort=t}C.finalNetworkRequestStartTime=de(e.crossOriginIsolatedCapability)},onResponseStarted(){C.finalNetworkResponseStartTime=de(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,o){if(e<200){return}let p="";const C=new y;for(let e=0;e<t.length;e+=2){C.append(Ve(t[e]),t[e+1].toString("latin1"),true)}p=C.get("location",true);this.body=new Me({read:n});const Q=[];const D=p&&c.redirect==="follow"&&ke.has(e);if(c.method!=="HEAD"&&c.method!=="CONNECT"&&!_e.includes(e)&&!D){const e=C.get("content-encoding",true);const t=e?e.toLowerCase().split(","):[];const n=5;if(t.length>n){d(new Error(`too many content-encodings in response: ${t.length}, maximum allowed is ${n}`));return true}for(let e=t.length-1;e>=0;--e){const n=t[e].trim();if(n==="x-gzip"||n==="gzip"){Q.push(v.createGunzip({flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH}))}else if(n==="deflate"){Q.push(Ne({flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH}))}else if(n==="br"){Q.push(v.createBrotliDecompress({flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH}))}else{Q.length=0;break}}}const k=this.onError.bind(this);i({status:e,statusText:o,headersList:C,body:Q.length?He(this.body,...Q,(e=>{if(e){this.onError(e)}})).on("error",k):this.body.on("error",k)});return true},onData(t){if(e.controller.dump){return}const n=t;C.encodedBodySize+=n.byteLength;return this.body.push(n)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}if(e.controller.onAborted){e.controller.off("terminated",e.controller.onAborted)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);d(t)},onUpgrade(e,t,n){if(e!==101){return}const o=new y;for(let e=0;e<t.length;e+=2){o.append(Ve(t[e]),t[e+1].toString("latin1"),true)}i({status:e,statusText:Xe[e],headersList:o,socket:n});return true}})))}}e.exports={fetch:fetch,Fetch:Fetch,fetching:fetching,finalizeAndReportTiming:finalizeAndReportTiming}},9967:(e,t,n)=>{const{extractBody:o,mixinBody:i,cloneBody:c,bodyUnusable:d}=n(4492);const{Headers:p,fill:y,HeadersList:C,setHeadersGuard:Q,getHeadersGuard:v,setHeadersList:D,getHeadersList:k}=n(660);const{FinalizationRegistry:$}=n(6653)();const V=n(3440);const ee=n(7975);const{isValidHTTPToken:te,sameOrigin:re,environmentSettingsObject:ne}=n(3168);const{forbiddenMethodsSet:se,corsSafeListedMethodsSet:oe,referrerPolicy:ie,requestRedirect:ae,requestMode:ce,requestCredentials:le,requestCache:ue,requestDuplex:de}=n(4495);const{kEnumerableProperty:pe,normalizedMethodRecordsBase:Ae,normalizedMethodRecords:me}=V;const{kHeaders:ge,kSignal:fe,kState:he,kDispatcher:ye}=n(3627);const{webidl:Ee}=n(5893);const{URLSerializer:Ce}=n(1900);const{kConstruct:Ie}=n(6443);const be=n(4589);const{getMaxListeners:Se,setMaxListeners:Be,getEventListeners:we,defaultMaxListeners:Re}=n(8474);const Ne=Symbol("abortController");const Qe=new $((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));const xe=new WeakMap;function buildAbort(e){return abort;function abort(){const t=e.deref();if(t!==undefined){Qe.unregister(abort);this.removeEventListener("abort",abort);t.abort(this.reason);const e=xe.get(t.signal);if(e!==undefined){if(e.size!==0){for(const t of e){const e=t.deref();if(e!==undefined){e.abort(this.reason)}}e.clear()}xe.delete(t.signal)}}}}let Te=false;class Request{constructor(e,t={}){Ee.util.markAsUncloneable(this);if(e===Ie){return}const n="Request constructor";Ee.argumentLengthCheck(arguments,1,n);e=Ee.converters.RequestInfo(e,n,"input");t=Ee.converters.RequestInit(t,n,"init");let i=null;let c=null;const v=ne.settingsObject.baseUrl;let $=null;if(typeof e==="string"){this[ye]=t.dispatcher;let n;try{n=new URL(e,v)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(n.username||n.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}i=makeRequest({urlList:[n]});c="cors"}else{this[ye]=t.dispatcher||e[ye];be(e instanceof Request);i=e[he];$=e[fe]}const ee=ne.settingsObject.origin;let ie="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&re(i.window,ee)){ie=i.window}if(t.window!=null){throw new TypeError(`'window' option '${ie}' must be null`)}if("window"in t){ie="no-window"}i=makeRequest({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:ne.settingsObject,window:ie,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});const ae=Object.keys(t).length!==0;if(ae){if(i.mode==="navigate"){i.mode="same-origin"}i.reloadNavigation=false;i.historyNavigation=false;i.origin="client";i.referrer="client";i.referrerPolicy="";i.url=i.urlList[i.urlList.length-1];i.urlList=[i.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){i.referrer="no-referrer"}else{let t;try{t=new URL(e,v)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||ee&&!re(t,ne.settingsObject.baseUrl)){i.referrer="client"}else{i.referrer=t}}}if(t.referrerPolicy!==undefined){i.referrerPolicy=t.referrerPolicy}let ce;if(t.mode!==undefined){ce=t.mode}else{ce=c}if(ce==="navigate"){throw Ee.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(ce!=null){i.mode=ce}if(t.credentials!==undefined){i.credentials=t.credentials}if(t.cache!==undefined){i.cache=t.cache}if(i.cache==="only-if-cached"&&i.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){i.redirect=t.redirect}if(t.integrity!=null){i.integrity=String(t.integrity)}if(t.keepalive!==undefined){i.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;const n=me[e];if(n!==undefined){i.method=n}else{if(!te(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}const t=e.toUpperCase();if(se.has(t)){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=Ae[t]??e;i.method=e}if(!Te&&i.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});Te=true}}if(t.signal!==undefined){$=t.signal}this[he]=i;const le=new AbortController;this[fe]=le.signal;if($!=null){if(!$||typeof $.aborted!=="boolean"||typeof $.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if($.aborted){le.abort($.reason)}else{this[Ne]=le;const e=new WeakRef(le);const t=buildAbort(e);try{if(typeof Se==="function"&&Se($)===Re){Be(1500,$)}else if(we($,"abort").length>=Re){Be(1500,$)}}catch{}V.addAbortListener($,t);Qe.register(le,{signal:$,abort:t},t)}}this[ge]=new p(Ie);D(this[ge],i.headersList);Q(this[ge],"request");if(ce==="no-cors"){if(!oe.has(i.method)){throw new TypeError(`'${i.method} is unsupported in no-cors mode.`)}Q(this[ge],"request-no-cors")}if(ae){const e=k(this[ge]);const n=t.headers!==undefined?t.headers:new C(e);e.clear();if(n instanceof C){for(const{name:t,value:o}of n.rawValues()){e.append(t,o,false)}e.cookies=n.cookies}else{y(this[ge],n)}}const ue=e instanceof Request?e[he].body:null;if((t.body!=null||ue!=null)&&(i.method==="GET"||i.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let de=null;if(t.body!=null){const[e,n]=o(t.body,i.keepalive);de=e;if(n&&!k(this[ge]).contains("content-type",true)){this[ge].append("content-type",n)}}const pe=de??ue;if(pe!=null&&pe.source==null){if(de!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(i.mode!=="same-origin"&&i.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}i.useCORSPreflightFlag=true}let Ce=pe;if(de==null&&ue!=null){if(d(e)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const t=new TransformStream;ue.stream.pipeThrough(t);Ce={source:ue.source,length:ue.length,stream:t.readable}}this[he].body=Ce}get method(){Ee.brandCheck(this,Request);return this[he].method}get url(){Ee.brandCheck(this,Request);return Ce(this[he].url)}get headers(){Ee.brandCheck(this,Request);return this[ge]}get destination(){Ee.brandCheck(this,Request);return this[he].destination}get referrer(){Ee.brandCheck(this,Request);if(this[he].referrer==="no-referrer"){return""}if(this[he].referrer==="client"){return"about:client"}return this[he].referrer.toString()}get referrerPolicy(){Ee.brandCheck(this,Request);return this[he].referrerPolicy}get mode(){Ee.brandCheck(this,Request);return this[he].mode}get credentials(){return this[he].credentials}get cache(){Ee.brandCheck(this,Request);return this[he].cache}get redirect(){Ee.brandCheck(this,Request);return this[he].redirect}get integrity(){Ee.brandCheck(this,Request);return this[he].integrity}get keepalive(){Ee.brandCheck(this,Request);return this[he].keepalive}get isReloadNavigation(){Ee.brandCheck(this,Request);return this[he].reloadNavigation}get isHistoryNavigation(){Ee.brandCheck(this,Request);return this[he].historyNavigation}get signal(){Ee.brandCheck(this,Request);return this[fe]}get body(){Ee.brandCheck(this,Request);return this[he].body?this[he].body.stream:null}get bodyUsed(){Ee.brandCheck(this,Request);return!!this[he].body&&V.isDisturbed(this[he].body.stream)}get duplex(){Ee.brandCheck(this,Request);return"half"}clone(){Ee.brandCheck(this,Request);if(d(this)){throw new TypeError("unusable")}const e=cloneRequest(this[he]);const t=new AbortController;if(this.signal.aborted){t.abort(this.signal.reason)}else{let e=xe.get(this.signal);if(e===undefined){e=new Set;xe.set(this.signal,e)}const n=new WeakRef(t);e.add(n);V.addAbortListener(t.signal,buildAbort(n))}return fromInnerRequest(e,t.signal,v(this[ge]))}[ee.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${ee.formatWithOptions(t,n)}`}}i(Request);function makeRequest(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??false,unsafeRequest:e.unsafeRequest??false,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??false,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??false,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??false,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??false,historyNavigation:e.historyNavigation??false,userActivation:e.userActivation??false,taintedOrigin:e.taintedOrigin??false,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??false,done:e.done??false,timingAllowFailed:e.timingAllowFailed??false,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new C(e.headersList):new C}}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=c(t,e.body)}return t}function fromInnerRequest(e,t,n){const o=new Request(Ie);o[he]=e;o[fe]=t;o[ge]=new p(Ie);D(o[ge],e.headersList);Q(o[ge],n);return o}Object.defineProperties(Request.prototype,{method:pe,url:pe,headers:pe,redirect:pe,clone:pe,signal:pe,duplex:pe,destination:pe,body:pe,bodyUsed:pe,isHistoryNavigation:pe,isReloadNavigation:pe,keepalive:pe,integrity:pe,cache:pe,credentials:pe,attribute:pe,referrerPolicy:pe,referrer:pe,mode:pe,[Symbol.toStringTag]:{value:"Request",configurable:true}});Ee.converters.Request=Ee.interfaceConverter(Request);Ee.converters.RequestInfo=function(e,t,n){if(typeof e==="string"){return Ee.converters.USVString(e,t,n)}if(e instanceof Request){return Ee.converters.Request(e,t,n)}return Ee.converters.USVString(e,t,n)};Ee.converters.AbortSignal=Ee.interfaceConverter(AbortSignal);Ee.converters.RequestInit=Ee.dictionaryConverter([{key:"method",converter:Ee.converters.ByteString},{key:"headers",converter:Ee.converters.HeadersInit},{key:"body",converter:Ee.nullableConverter(Ee.converters.BodyInit)},{key:"referrer",converter:Ee.converters.USVString},{key:"referrerPolicy",converter:Ee.converters.DOMString,allowedValues:ie},{key:"mode",converter:Ee.converters.DOMString,allowedValues:ce},{key:"credentials",converter:Ee.converters.DOMString,allowedValues:le},{key:"cache",converter:Ee.converters.DOMString,allowedValues:ue},{key:"redirect",converter:Ee.converters.DOMString,allowedValues:ae},{key:"integrity",converter:Ee.converters.DOMString},{key:"keepalive",converter:Ee.converters.boolean},{key:"signal",converter:Ee.nullableConverter((e=>Ee.converters.AbortSignal(e,"RequestInit","signal",{strict:false})))},{key:"window",converter:Ee.converters.any},{key:"duplex",converter:Ee.converters.DOMString,allowedValues:de},{key:"dispatcher",converter:Ee.converters.any}]);e.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(e,t,n)=>{const{Headers:o,HeadersList:i,fill:c,getHeadersGuard:d,setHeadersGuard:p,setHeadersList:y}=n(660);const{extractBody:C,cloneBody:Q,mixinBody:v,hasFinalizationRegistry:D,streamRegistry:k,bodyUnusable:$}=n(4492);const V=n(3440);const ee=n(7975);const{kEnumerableProperty:te}=V;const{isValidReasonPhrase:re,isCancelled:ne,isAborted:se,isBlobLike:oe,serializeJavascriptValueToJSONString:ie,isErrorLike:ae,isomorphicEncode:ce,environmentSettingsObject:le}=n(3168);const{redirectStatusSet:ue,nullBodyStatus:de}=n(4495);const{kState:pe,kHeaders:Ae}=n(3627);const{webidl:me}=n(5893);const{FormData:ge}=n(5910);const{URLSerializer:fe}=n(1900);const{kConstruct:he}=n(6443);const ye=n(4589);const{types:Ee}=n(7975);const Ce=new TextEncoder("utf-8");class Response{static error(){const e=fromInnerResponse(makeNetworkError(),"immutable");return e}static json(e,t={}){me.argumentLengthCheck(arguments,1,"Response.json");if(t!==null){t=me.converters.ResponseInit(t)}const n=Ce.encode(ie(e));const o=C(n);const i=fromInnerResponse(makeResponse({}),"response");initializeResponse(i,t,{body:o[0],type:"application/json"});return i}static redirect(e,t=302){me.argumentLengthCheck(arguments,1,"Response.redirect");e=me.converters.USVString(e);t=me.converters["unsigned short"](t);let n;try{n=new URL(e,le.settingsObject.baseUrl)}catch(t){throw new TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!ue.has(t)){throw new RangeError(`Invalid status code ${t}`)}const o=fromInnerResponse(makeResponse({}),"immutable");o[pe].status=t;const i=ce(fe(n));o[pe].headersList.append("location",i,true);return o}constructor(e=null,t={}){me.util.markAsUncloneable(this);if(e===he){return}if(e!==null){e=me.converters.BodyInit(e)}t=me.converters.ResponseInit(t);this[pe]=makeResponse({});this[Ae]=new o(he);p(this[Ae],"response");y(this[Ae],this[pe].headersList);let n=null;if(e!=null){const[t,o]=C(e);n={body:t,type:o}}initializeResponse(this,t,n)}get type(){me.brandCheck(this,Response);return this[pe].type}get url(){me.brandCheck(this,Response);const e=this[pe].urlList;const t=e[e.length-1]??null;if(t===null){return""}return fe(t,true)}get redirected(){me.brandCheck(this,Response);return this[pe].urlList.length>1}get status(){me.brandCheck(this,Response);return this[pe].status}get ok(){me.brandCheck(this,Response);return this[pe].status>=200&&this[pe].status<=299}get statusText(){me.brandCheck(this,Response);return this[pe].statusText}get headers(){me.brandCheck(this,Response);return this[Ae]}get body(){me.brandCheck(this,Response);return this[pe].body?this[pe].body.stream:null}get bodyUsed(){me.brandCheck(this,Response);return!!this[pe].body&&V.isDisturbed(this[pe].body.stream)}clone(){me.brandCheck(this,Response);if($(this)){throw me.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[pe]);if(D&&this[pe].body?.stream){k.register(this,new WeakRef(this[pe].body.stream))}return fromInnerResponse(e,d(this[Ae]))}[ee.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${ee.formatWithOptions(t,n)}`}}v(Response);Object.defineProperties(Response.prototype,{type:te,url:te,status:te,ok:te,redirected:te,statusText:te,headers:te,clone:te,body:te,bodyUsed:te,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:te,redirect:te,error:te});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=Q(t,e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new i(e?.headersList):new i,urlList:e?.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=ae(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function isNetworkError(e){return e.type==="error"&&e.status===0}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,o){ye(!(n in t));e[n]=o;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{ye(false)}}function makeAppropriateNetworkError(e,t=null){ye(ne(e));return se(e)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,n){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!re(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[pe].status=t.status}if("statusText"in t&&t.statusText!=null){e[pe].statusText=t.statusText}if("headers"in t&&t.headers!=null){c(e[Ae],t.headers)}if(n){if(de.includes(e.status)){throw me.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`})}e[pe].body=n.body;if(n.type!=null&&!e[pe].headersList.contains("content-type",true)){e[pe].headersList.append("content-type",n.type,true)}}}function fromInnerResponse(e,t){const n=new Response(he);n[pe]=e;n[Ae]=new o(he);y(n[Ae],e.headersList);p(n[Ae],t);if(D&&e.body?.stream){k.register(n,new WeakRef(e.body.stream))}return n}me.converters.ReadableStream=me.interfaceConverter(ReadableStream);me.converters.FormData=me.interfaceConverter(ge);me.converters.URLSearchParams=me.interfaceConverter(URLSearchParams);me.converters.XMLHttpRequestBodyInit=function(e,t,n){if(typeof e==="string"){return me.converters.USVString(e,t,n)}if(oe(e)){return me.converters.Blob(e,t,n,{strict:false})}if(ArrayBuffer.isView(e)||Ee.isArrayBuffer(e)){return me.converters.BufferSource(e,t,n)}if(V.isFormDataLike(e)){return me.converters.FormData(e,t,n,{strict:false})}if(e instanceof URLSearchParams){return me.converters.URLSearchParams(e,t,n)}return me.converters.DOMString(e,t,n)};me.converters.BodyInit=function(e,t,n){if(e instanceof ReadableStream){return me.converters.ReadableStream(e,t,n)}if(e?.[Symbol.asyncIterator]){return e}return me.converters.XMLHttpRequestBodyInit(e,t,n)};me.converters.ResponseInit=me.dictionaryConverter([{key:"status",converter:me.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:me.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:me.converters.HeadersInit}]);e.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(e,t,n)=>{const{Transform:o}=n(7075);const i=n(8522);const{redirectStatusSet:c,referrerPolicySet:d,badPortsSet:p}=n(4495);const{getGlobalOrigin:y}=n(1059);const{collectASequenceOfCodePoints:C,collectAnHTTPQuotedString:Q,removeChars:v,parseMIMEType:D}=n(1900);const{performance:k}=n(643);const{isBlobLike:$,ReadableStreamFrom:V,isValidHTTPToken:ee,normalizedMethodRecordsBase:te}=n(3440);const re=n(4589);const{isUint8Array:ne}=n(3429);const{webidl:se}=n(5893);let oe=[];let ie;try{ie=n(7598);const e=["sha256","sha384","sha512"];oe=ie.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const n=t.length;return n===0?null:t[n-1].toString()}function responseLocationURL(e,t){if(!c.has(e.status)){return null}let n=e.headersList.get("location",true);if(n!==null&&isValidHeaderValue(n)){if(!isValidEncodedURL(n)){n=normalizeBinaryStringToUtf8(n)}n=new URL(n,responseURL(e))}if(n&&!n.hash){n.hash=t}return n}function isValidEncodedURL(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n>126||n<32){return false}}return true}function normalizeBinaryStringToUtf8(e){return Buffer.from(e,"binary").toString("utf8")}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&p.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(!(n===9||n>=32&&n<=126||n>=128&&n<=255)){return false}}return true}const ae=ee;function isValidHeaderValue(e){return(e[0]==="\t"||e[0]===" "||e[e.length-1]==="\t"||e[e.length-1]===" "||e.includes("\n")||e.includes("\r")||e.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(e,t){const{headersList:n}=t;const o=(n.get("referrer-policy",true)??"").split(",");let i="";if(o.length>0){for(let e=o.length;e!==0;e--){const t=o[e-1].trim();if(d.has(t)){i=t;break}}}if(i!==""){e.referrerPolicy=i}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t,true)}function appendRequestOriginHeader(e){let t=e.origin;if(t==="client"||t===undefined){return}if(e.responseTainting==="cors"||e.mode==="websocket"){e.headersList.append("origin",t,true)}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}e.headersList.append("origin",t,true)}}function coarsenTime(e,t){return e}function clampAndCoarsenConnectionTimingInfo(e,t,n){if(!e?.startTime||e.startTime<t){return{domainLookupStartTime:t,domainLookupEndTime:t,connectionStartTime:t,connectionEndTime:t,secureConnectionStartTime:t,ALPNNegotiatedProtocol:e?.ALPNNegotiatedProtocol}}return{domainLookupStartTime:coarsenTime(e.domainLookupStartTime,n),domainLookupEndTime:coarsenTime(e.domainLookupEndTime,n),connectionStartTime:coarsenTime(e.connectionStartTime,n),connectionEndTime:coarsenTime(e.connectionEndTime,n),secureConnectionStartTime:coarsenTime(e.secureConnectionStartTime,n),ALPNNegotiatedProtocol:e.ALPNNegotiatedProtocol}}function coarsenedSharedCurrentTime(e){return coarsenTime(k.now(),e)}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.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(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;re(t);let n=null;if(e.referrer==="client"){const e=y();if(!e||e.origin==="null"){return"no-referrer"}n=new URL(e)}else if(e.referrer instanceof URL){n=e.referrer}let o=stripURLForReferrer(n);const i=stripURLForReferrer(n,true);if(o.toString().length>4096){o=i}const c=sameOrigin(e,o);const d=isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return i!=null?i:stripURLForReferrer(n,true);case"unsafe-url":return o;case"same-origin":return c?i:"no-referrer";case"origin-when-cross-origin":return c?o:i;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(o,t)){return o}if(isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return i}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":i}}function stripURLForReferrer(e,t){re(e instanceof URL);e=new URL(e);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(ie===undefined){return true}const n=parseMetadata(t);if(n==="no metadata"){return true}if(n.length===0){return true}const o=getStrongestMetadata(n);const i=filterMetadataListByAlgorithm(n,o);for(const t of i){const n=t.algo;const o=t.hash;let i=ie.createHash(n).update(e).digest("base64");if(i[i.length-1]==="="){if(i[i.length-2]==="="){i=i.slice(0,-2)}else{i=i.slice(0,-1)}}if(compareBase64Mixed(i,o)){return true}}return false}const ce=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let n=true;for(const o of e.split(" ")){n=false;const e=ce.exec(o);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const i=e.groups.algo.toLowerCase();if(oe.includes(i)){t.push(e.groups)}}if(n===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let n=1;n<e.length;++n){const o=e[n];if(o.algo[3]==="5"){t="sha512";break}else if(t[3]==="3"){continue}else if(o.algo[3]==="3"){t="sha384"}}return t}function filterMetadataListByAlgorithm(e,t){if(e.length===1){return e}let n=0;for(let o=0;o<e.length;++o){if(e[o].algo===t){e[n++]=e[o]}}e.length=n;return e}function compareBase64Mixed(e,t){if(e.length!==t.length){return false}for(let n=0;n<e.length;++n){if(e[n]!==t[n]){if(e[n]==="+"&&t[n]==="-"||e[n]==="/"&&t[n]==="_"){continue}return false}}return true}function tryUpgradeRequestToAPotentiallyTrustworthyURL(e){}function sameOrigin(e,t){if(e.origin===t.origin&&e.origin==="null"){return true}if(e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port){return true}return false}function createDeferredPromise(){let e;let t;const n=new Promise(((n,o)=>{e=n;t=o}));return{promise:n,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}function normalizeMethod(e){return te[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}re(typeof t==="string");return t}const le=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(e,t,n=0,o=1){class FastIterableIterator{#z;#V;#j;constructor(e,t){this.#z=e;this.#V=t;this.#j=0}next(){if(typeof this!=="object"||this===null||!(#z in this)){throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`)}const i=this.#j;const c=this.#z[t];const d=c.length;if(i>=d){return{value:undefined,done:true}}const{[n]:p,[o]:y}=c[i];this.#j=i+1;let C;switch(this.#V){case"key":C=p;break;case"value":C=y;break;case"key+value":C=[p,y];break}return{value:C,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,le);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${e} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(e,t){return new FastIterableIterator(e,t)}}function iteratorMixin(e,t,n,o=0,i=1){const c=createIterator(e,n,o,i);const d={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){se.brandCheck(this,t);return c(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){se.brandCheck(this,t);return c(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){se.brandCheck(this,t);return c(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(n,o=globalThis){se.brandCheck(this,t);se.argumentLengthCheck(arguments,1,`${e}.forEach`);if(typeof n!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`)}for(const{0:e,1:t}of c(this,"key+value")){n.call(o,t,e,this)}}}};return Object.defineProperties(t.prototype,{...d,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:d.entries.value}})}async function fullyReadBody(e,t,n){const o=t;const i=n;let c;try{c=e.stream.getReader()}catch(e){i(e);return}try{o(await readAllBytes(c))}catch(e){i(e)}}function isReadableStreamLike(e){return e instanceof ReadableStream||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}function readableStreamClose(e){try{e.close();e.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed")){throw e}}}const ue=/[^\x00-\xFF]/;function isomorphicEncode(e){re(!ue.test(e));return e}async function readAllBytes(e){const t=[];let n=0;while(true){const{done:o,value:i}=await e.read();if(o){return Buffer.concat(t,n)}if(!ne(i)){throw new TypeError("Received non-Uint8Array chunk")}t.push(i);n+=i.length}}function urlIsLocal(e){re("protocol"in e);const t=e.protocol;return t==="about:"||t==="blob:"||t==="data:"}function urlHasHttpsScheme(e){return typeof e==="string"&&e[5]===":"&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&e[4]==="s"||e.protocol==="https:"}function urlIsHttpHttpsScheme(e){re("protocol"in e);const t=e.protocol;return t==="http:"||t==="https:"}function simpleRangeHeaderValue(e,t){const n=e;if(!n.startsWith("bytes")){return"failure"}const o={position:5};if(t){C((e=>e==="\t"||e===" "),n,o)}if(n.charCodeAt(o.position)!==61){return"failure"}o.position++;if(t){C((e=>e==="\t"||e===" "),n,o)}const i=C((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),n,o);const c=i.length?Number(i):null;if(t){C((e=>e==="\t"||e===" "),n,o)}if(n.charCodeAt(o.position)!==45){return"failure"}o.position++;if(t){C((e=>e==="\t"||e===" "),n,o)}const d=C((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),n,o);const p=d.length?Number(d):null;if(o.position<n.length){return"failure"}if(p===null&&c===null){return"failure"}if(c>p){return"failure"}return{rangeStartValue:c,rangeEndValue:p}}function buildContentRange(e,t,n){let o="bytes ";o+=isomorphicEncode(`${e}`);o+="-";o+=isomorphicEncode(`${t}`);o+="/";o+=isomorphicEncode(`${n}`);return o}class InflateStream extends o{#Y;constructor(e){super();this.#Y=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?i.createInflate(this.#Y):i.createInflateRaw(this.#Y);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",(()=>this.push(null)));this._inflateStream.on("error",(e=>this.destroy(e)))}this._inflateStream.write(e,t,n)}_final(e){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}e()}}function createInflate(e){return new InflateStream(e)}function extractMimeType(e){let t=null;let n=null;let o=null;const i=getDecodeSplit("content-type",e);if(i===null){return"failure"}for(const e of i){const i=D(e);if(i==="failure"||i.essence==="*/*"){continue}o=i;if(o.essence!==n){t=null;if(o.parameters.has("charset")){t=o.parameters.get("charset")}n=o.essence}else if(!o.parameters.has("charset")&&t!==null){o.parameters.set("charset",t)}}if(o==null){return"failure"}return o}function gettingDecodingSplitting(e){const t=e;const n={position:0};const o=[];let i="";while(n.position<t.length){i+=C((e=>e!=='"'&&e!==","),t,n);if(n.position<t.length){if(t.charCodeAt(n.position)===34){i+=Q(t,n);if(n.position<t.length){continue}}else{re(t.charCodeAt(n.position)===44);n.position++}}i=v(i,true,true,(e=>e===9||e===32));o.push(i);i=""}return o}function getDecodeSplit(e,t){const n=t.get(e,true);if(n===null){return null}return gettingDecodingSplitting(n)}const de=new TextDecoder;function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=de.decode(e);return t}class EnvironmentSettingsObjectBase{get baseUrl(){return y()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const pe=new EnvironmentSettingsObject;e.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:V,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:ee,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:$,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:ae,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:pe}},5893:(e,t,n)=>{const{types:o,inspect:i}=n(7975);const{markAsUncloneable:c}=n(5919);const{toUSVString:d}=n(3440);const p={};p.converters={};p.util={};p.errors={};p.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};p.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const n=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return p.errors.exception({header:e.prefix,message:n})};p.errors.invalidArgument=function(e){return p.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};p.brandCheck=function(e,t,n){if(n?.strict!==false){if(!(e instanceof t)){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}else{if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}};p.argumentLengthCheck=function({length:e},t,n){if(e<t){throw p.errors.exception({message:`${t} argument${t!==1?"s":""} required, `+`but${e?" only":""} ${e} found.`,header:n})}};p.illegalConstructor=function(){throw p.errors.exception({header:"TypeError",message:"Illegal constructor"})};p.util.Type=function(e){switch(typeof e){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":{if(e===null){return"Null"}return"Object"}}};p.util.markAsUncloneable=c||(()=>{});p.util.ConvertToInt=function(e,t,n,o){let i;let c;if(t===64){i=Math.pow(2,53)-1;if(n==="unsigned"){c=0}else{c=Math.pow(-2,53)+1}}else if(n==="unsigned"){c=0;i=Math.pow(2,t)-1}else{c=Math.pow(-2,t)-1;i=Math.pow(2,t-1)-1}let d=Number(e);if(d===0){d=0}if(o?.enforceRange===true){if(Number.isNaN(d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){throw p.errors.exception({header:"Integer conversion",message:`Could not convert ${p.util.Stringify(e)} to an integer.`})}d=p.util.IntegerPart(d);if(d<c||d>i){throw p.errors.exception({header:"Integer conversion",message:`Value must be between ${c}-${i}, got ${d}.`})}return d}if(!Number.isNaN(d)&&o?.clamp===true){d=Math.min(Math.max(d,c),i);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,t);if(n==="signed"&&d>=Math.pow(2,t)-1){return d-Math.pow(2,t)}return d};p.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};p.util.Stringify=function(e){const t=p.util.Type(e);switch(t){case"Symbol":return`Symbol(${e.description})`;case"Object":return i(e);case"String":return`"${e}"`;default:return`${e}`}};p.sequenceConverter=function(e){return(t,n,o,i)=>{if(p.util.Type(t)!=="Object"){throw p.errors.exception({header:n,message:`${o} (${p.util.Stringify(t)}) is not iterable.`})}const c=typeof i==="function"?i():t?.[Symbol.iterator]?.();const d=[];let y=0;if(c===undefined||typeof c.next!=="function"){throw p.errors.exception({header:n,message:`${o} is not iterable.`})}while(true){const{done:t,value:i}=c.next();if(t){break}d.push(e(i,n,`${o}[${y++}]`))}return d}};p.recordConverter=function(e,t){return(n,i,c)=>{if(p.util.Type(n)!=="Object"){throw p.errors.exception({header:i,message:`${c} ("${p.util.Type(n)}") is not an Object.`})}const d={};if(!o.isProxy(n)){const o=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const p of o){const o=e(p,i,c);const y=t(n[p],i,c);d[o]=y}return d}const y=Reflect.ownKeys(n);for(const o of y){const p=Reflect.getOwnPropertyDescriptor(n,o);if(p?.enumerable){const p=e(o,i,c);const y=t(n[o],i,c);d[p]=y}}return d}};p.interfaceConverter=function(e){return(t,n,o,i)=>{if(i?.strict!==false&&!(t instanceof e)){throw p.errors.exception({header:n,message:`Expected ${o} ("${p.util.Stringify(t)}") to be an instance of ${e.name}.`})}return t}};p.dictionaryConverter=function(e){return(t,n,o)=>{const i=p.util.Type(t);const c={};if(i==="Null"||i==="Undefined"){return c}else if(i!=="Object"){throw p.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const i of e){const{key:e,defaultValue:d,required:y,converter:C}=i;if(y===true){if(!Object.hasOwn(t,e)){throw p.errors.exception({header:n,message:`Missing required key "${e}".`})}}let Q=t[e];const v=Object.hasOwn(i,"defaultValue");if(v&&Q!==null){Q??=d()}if(y||v||Q!==undefined){Q=C(Q,n,`${o}.${e}`);if(i.allowedValues&&!i.allowedValues.includes(Q)){throw p.errors.exception({header:n,message:`${Q} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`})}c[e]=Q}}return c}};p.nullableConverter=function(e){return(t,n,o)=>{if(t===null){return t}return e(t,n,o)}};p.converters.DOMString=function(e,t,n,o){if(e===null&&o?.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw p.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`})}return String(e)};p.converters.ByteString=function(e,t,n){const o=p.converters.DOMString(e,t,n);for(let e=0;e<o.length;e++){if(o.charCodeAt(e)>255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${o.charCodeAt(e)} which is greater than 255.`)}}return o};p.converters.USVString=d;p.converters.boolean=function(e){const t=Boolean(e);return t};p.converters.any=function(e){return e};p.converters["long long"]=function(e,t,n){const o=p.util.ConvertToInt(e,64,"signed",undefined,t,n);return o};p.converters["unsigned long long"]=function(e,t,n){const o=p.util.ConvertToInt(e,64,"unsigned",undefined,t,n);return o};p.converters["unsigned long"]=function(e,t,n){const o=p.util.ConvertToInt(e,32,"unsigned",undefined,t,n);return o};p.converters["unsigned short"]=function(e,t,n,o){const i=p.util.ConvertToInt(e,16,"unsigned",o,t,n);return i};p.converters.ArrayBuffer=function(e,t,n,i){if(p.util.Type(e)!=="Object"||!o.isAnyArrayBuffer(e)){throw p.errors.conversionFailed({prefix:t,argument:`${n} ("${p.util.Stringify(e)}")`,types:["ArrayBuffer"]})}if(i?.allowShared===false&&o.isSharedArrayBuffer(e)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.resizable||e.growable){throw p.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};p.converters.TypedArray=function(e,t,n,i,c){if(p.util.Type(e)!=="Object"||!o.isTypedArray(e)||e.constructor.name!==t.name){throw p.errors.conversionFailed({prefix:n,argument:`${i} ("${p.util.Stringify(e)}")`,types:[t.name]})}if(c?.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw p.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};p.converters.DataView=function(e,t,n,i){if(p.util.Type(e)!=="Object"||!o.isDataView(e)){throw p.errors.exception({header:t,message:`${n} is not a DataView.`})}if(i?.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw p.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};p.converters.BufferSource=function(e,t,n,i){if(o.isAnyArrayBuffer(e)){return p.converters.ArrayBuffer(e,t,n,{...i,allowShared:false})}if(o.isTypedArray(e)){return p.converters.TypedArray(e,e.constructor,t,n,{...i,allowShared:false})}if(o.isDataView(e)){return p.converters.DataView(e,t,n,{...i,allowShared:false})}throw p.errors.conversionFailed({prefix:t,argument:`${n} ("${p.util.Stringify(e)}")`,types:["BufferSource"]})};p.converters["sequence<ByteString>"]=p.sequenceConverter(p.converters.ByteString);p.converters["sequence<sequence<ByteString>>"]=p.sequenceConverter(p.converters["sequence<ByteString>"]);p.converters["record<ByteString, ByteString>"]=p.recordConverter(p.converters.ByteString,p.converters.ByteString);e.exports={webidl:p}},2607:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.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"}}e.exports={getEncoding:getEncoding}},8355:(e,t,n)=>{const{staticPropertyDescriptors:o,readOperation:i,fireAProgressEvent:c}=n(3610);const{kState:d,kError:p,kResult:y,kEvents:C,kAborted:Q}=n(961);const{webidl:v}=n(5893);const{kEnumerableProperty:D}=n(3440);class FileReader extends EventTarget{constructor(){super();this[d]="empty";this[y]=null;this[p]=null;this[C]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){v.brandCheck(this,FileReader);v.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");e=v.converters.Blob(e,{strict:false});i(this,e,"ArrayBuffer")}readAsBinaryString(e){v.brandCheck(this,FileReader);v.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");e=v.converters.Blob(e,{strict:false});i(this,e,"BinaryString")}readAsText(e,t=undefined){v.brandCheck(this,FileReader);v.argumentLengthCheck(arguments,1,"FileReader.readAsText");e=v.converters.Blob(e,{strict:false});if(t!==undefined){t=v.converters.DOMString(t,"FileReader.readAsText","encoding")}i(this,e,"Text",t)}readAsDataURL(e){v.brandCheck(this,FileReader);v.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");e=v.converters.Blob(e,{strict:false});i(this,e,"DataURL")}abort(){if(this[d]==="empty"||this[d]==="done"){this[y]=null;return}if(this[d]==="loading"){this[d]="done";this[y]=null}this[Q]=true;c("abort",this);if(this[d]!=="loading"){c("loadend",this)}}get readyState(){v.brandCheck(this,FileReader);switch(this[d]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){v.brandCheck(this,FileReader);return this[y]}get error(){v.brandCheck(this,FileReader);return this[p]}get onloadend(){v.brandCheck(this,FileReader);return this[C].loadend}set onloadend(e){v.brandCheck(this,FileReader);if(this[C].loadend){this.removeEventListener("loadend",this[C].loadend)}if(typeof e==="function"){this[C].loadend=e;this.addEventListener("loadend",e)}else{this[C].loadend=null}}get onerror(){v.brandCheck(this,FileReader);return this[C].error}set onerror(e){v.brandCheck(this,FileReader);if(this[C].error){this.removeEventListener("error",this[C].error)}if(typeof e==="function"){this[C].error=e;this.addEventListener("error",e)}else{this[C].error=null}}get onloadstart(){v.brandCheck(this,FileReader);return this[C].loadstart}set onloadstart(e){v.brandCheck(this,FileReader);if(this[C].loadstart){this.removeEventListener("loadstart",this[C].loadstart)}if(typeof e==="function"){this[C].loadstart=e;this.addEventListener("loadstart",e)}else{this[C].loadstart=null}}get onprogress(){v.brandCheck(this,FileReader);return this[C].progress}set onprogress(e){v.brandCheck(this,FileReader);if(this[C].progress){this.removeEventListener("progress",this[C].progress)}if(typeof e==="function"){this[C].progress=e;this.addEventListener("progress",e)}else{this[C].progress=null}}get onload(){v.brandCheck(this,FileReader);return this[C].load}set onload(e){v.brandCheck(this,FileReader);if(this[C].load){this.removeEventListener("load",this[C].load)}if(typeof e==="function"){this[C].load=e;this.addEventListener("load",e)}else{this[C].load=null}}get onabort(){v.brandCheck(this,FileReader);return this[C].abort}set onabort(e){v.brandCheck(this,FileReader);if(this[C].abort){this.removeEventListener("abort",this[C].abort)}if(typeof e==="function"){this[C].abort=e;this.addEventListener("abort",e)}else{this[C].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:o,LOADING:o,DONE:o,readAsArrayBuffer:D,readAsBinaryString:D,readAsText:D,readAsDataURL:D,abort:D,readyState:D,result:D,error:D,onloadstart:D,onprogress:D,onload:D,onabort:D,onerror:D,onloadend:D,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:o,LOADING:o,DONE:o});e.exports={FileReader:FileReader}},8573:(e,t,n)=>{const{webidl:o}=n(5893);const i=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=o.converters.DOMString(e,"ProgressEvent constructor","type");t=o.converters.ProgressEventInit(t??{});super(e,t);this[i]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){o.brandCheck(this,ProgressEvent);return this[i].lengthComputable}get loaded(){o.brandCheck(this,ProgressEvent);return this[i].loaded}get total(){o.brandCheck(this,ProgressEvent);return this[i].total}}o.converters.ProgressEventInit=o.dictionaryConverter([{key:"lengthComputable",converter:o.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}]);e.exports={ProgressEvent:ProgressEvent}},961:e=>{e.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")}},3610:(e,t,n)=>{const{kState:o,kError:i,kResult:c,kAborted:d,kLastProgressEventFired:p}=n(961);const{ProgressEvent:y}=n(8573);const{getEncoding:C}=n(2607);const{serializeAMimeType:Q,parseMIMEType:v}=n(1900);const{types:D}=n(7975);const{StringDecoder:k}=n(3193);const{btoa:$}=n(4573);const V={enumerable:true,writable:false,configurable:false};function readOperation(e,t,n,y){if(e[o]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}e[o]="loading";e[c]=null;e[i]=null;const C=t.stream();const Q=C.getReader();const v=[];let k=Q.read();let $=true;(async()=>{while(!e[d]){try{const{done:C,value:V}=await k;if($&&!e[d]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}$=false;if(!C&&D.isUint8Array(V)){v.push(V);if((e[p]===undefined||Date.now()-e[p]>=50)&&!e[d]){e[p]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}k=Q.read()}else if(C){queueMicrotask((()=>{e[o]="done";try{const o=packageData(v,n,t.type,y);if(e[d]){return}e[c]=o;fireAProgressEvent("load",e)}catch(t){e[i]=t;fireAProgressEvent("error",e)}if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[d]){return}queueMicrotask((()=>{e[o]="done";e[i]=t;fireAProgressEvent("error",e);if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const n=new y(e,{bubbles:false,cancelable:false});t.dispatchEvent(n)}function packageData(e,t,n,o){switch(t){case"DataURL":{let t="data:";const o=v(n||"application/octet-stream");if(o!=="failure"){t+=Q(o)}t+=";base64,";const i=new k("latin1");for(const n of e){t+=$(i.write(n))}t+=$(i.end());return t}case"Text":{let t="failure";if(o){t=C(o)}if(t==="failure"&&n){const e=v(n);if(e!=="failure"){t=C(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const n=new k("latin1");for(const o of e){t+=n.write(o)}t+=n.end();return t}}}function decode(e,t){const n=combineByteSequences(e);const o=BOMSniffing(n);let i=0;if(o!==null){t=o;i=o==="UTF-8"?3:2}const c=n.slice(i);return new TextDecoder(t).decode(c)}function BOMSniffing(e){const[t,n,o]=e;if(t===239&&n===187&&o===191){return"UTF-8"}else if(t===254&&n===255){return"UTF-16BE"}else if(t===255&&n===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let n=0;return e.reduce(((e,t)=>{e.set(t,n);n+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:V,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(e,t,n)=>{const{uid:o,states:i,sentCloseFrameState:c,emptyBuffer:d,opcodes:p}=n(736);const{kReadyState:y,kSentClose:C,kByteParser:Q,kReceivedClose:v,kResponse:D}=n(1216);const{fireEvent:k,failWebsocketConnection:$,isClosing:V,isClosed:ee,isEstablished:te,parseExtensions:re}=n(8625);const{channels:ne}=n(2414);const{CloseEvent:se}=n(5188);const{makeRequest:oe}=n(9967);const{fetching:ie}=n(4398);const{Headers:ae,getHeadersList:ce}=n(660);const{getDecodeSplit:le}=n(3168);const{WebsocketFrameSend:ue}=n(3264);let de;try{de=n(7598)}catch{}function establishWebSocketConnection(e,t,n,i,c,d){const p=e;p.protocol=e.protocol==="ws:"?"http:":"https:";const y=oe({urlList:[p],client:n,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(d.headers){const e=ce(new ae(d.headers));y.headersList=e}const C=de.randomBytes(16).toString("base64");y.headersList.append("sec-websocket-key",C);y.headersList.append("sec-websocket-version","13");for(const e of t){y.headersList.append("sec-websocket-protocol",e)}const Q="permessage-deflate; client_max_window_bits";y.headersList.append("sec-websocket-extensions",Q);const v=ie({request:y,useParallelQueue:true,dispatcher:d.dispatcher,processResponse(e){if(e.type==="error"||e.status!==101){$(i,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){$(i,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){$(i,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){$(i,'Server did not set Connection header to "upgrade".');return}const n=e.headersList.get("Sec-WebSocket-Accept");const d=de.createHash("sha1").update(C+o).digest("base64");if(n!==d){$(i,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const p=e.headersList.get("Sec-WebSocket-Extensions");let Q;if(p!==null){Q=re(p);if(!Q.has("permessage-deflate")){$(i,"Sec-WebSocket-Extensions header does not match.");return}}const v=e.headersList.get("Sec-WebSocket-Protocol");if(v!==null){const e=le("sec-websocket-protocol",y.headersList);if(!e.includes(v)){$(i,"Protocol was not set in the opening handshake.");return}}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(ne.open.hasSubscribers){ne.open.publish({address:e.socket.address(),protocol:v,extensions:p})}c(e,Q)}});return v}function closeWebSocketConnection(e,t,n,o){if(V(e)||ee(e)){}else if(!te(e)){$(e,"Connection was closed before it was established.");e[y]=i.CLOSING}else if(e[C]===c.NOT_SENT){e[C]=c.PROCESSING;const Q=new ue;if(t!==undefined&&n===undefined){Q.frameData=Buffer.allocUnsafe(2);Q.frameData.writeUInt16BE(t,0)}else if(t!==undefined&&n!==undefined){Q.frameData=Buffer.allocUnsafe(2+o);Q.frameData.writeUInt16BE(t,0);Q.frameData.write(n,2,"utf-8")}else{Q.frameData=d}const v=e[D].socket;v.write(Q.createFrame(p.CLOSE));e[C]=c.SENT;e[y]=i.CLOSING}else{e[y]=i.CLOSING}}function onSocketData(e){if(!this.ws[Q].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const{[D]:t}=e;t.socket.off("data",onSocketData);t.socket.off("close",onSocketClose);t.socket.off("error",onSocketError);const n=e[C]===c.SENT&&e[v];let o=1005;let d="";const p=e[Q].closingInfo;if(p&&!p.error){o=p.code??1005;d=p.reason}else if(!e[v]){o=1006}e[y]=i.CLOSED;k("close",e,((e,t)=>new se(e,t)),{wasClean:n,code:o,reason:d});if(ne.close.hasSubscribers){ne.close.publish({websocket:e,code:o,reason:d})}}function onSocketError(e){const{ws:t}=this;t[y]=i.CLOSING;if(ne.socketError.hasSubscribers){ne.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const n={enumerable:true,writable:false,configurable:false};const o={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const i={NOT_SENT:0,PROCESSING:1,SENT:2};const c={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const d=2**16-1;const p={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const y=Buffer.allocUnsafe(0);const C={string:1,typedArray:2,arrayBuffer:3,blob:4};e.exports={uid:t,sentCloseFrameState:i,staticPropertyDescriptors:n,states:o,opcodes:c,maxUnsigned16Bit:d,parserStates:p,emptyBuffer:y,sendHints:C}},5188:(e,t,n)=>{const{webidl:o}=n(5893);const{kEnumerableProperty:i}=n(3440);const{kConstruct:c}=n(6443);const{MessagePort:d}=n(5919);class MessageEvent extends Event{#J;constructor(e,t={}){if(e===c){super(arguments[1],arguments[2]);o.util.markAsUncloneable(this);return}const n="MessageEvent constructor";o.argumentLengthCheck(arguments,1,n);e=o.converters.DOMString(e,n,"type");t=o.converters.MessageEventInit(t,n,"eventInitDict");super(e,t);this.#J=t;o.util.markAsUncloneable(this)}get data(){o.brandCheck(this,MessageEvent);return this.#J.data}get origin(){o.brandCheck(this,MessageEvent);return this.#J.origin}get lastEventId(){o.brandCheck(this,MessageEvent);return this.#J.lastEventId}get source(){o.brandCheck(this,MessageEvent);return this.#J.source}get ports(){o.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#J.ports)){Object.freeze(this.#J.ports)}return this.#J.ports}initMessageEvent(e,t=false,n=false,i=null,c="",d="",p=null,y=[]){o.brandCheck(this,MessageEvent);o.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(e,{bubbles:t,cancelable:n,data:i,origin:c,lastEventId:d,source:p,ports:y})}static createFastMessageEvent(e,t){const n=new MessageEvent(c,e,t);n.#J=t;n.#J.data??=null;n.#J.origin??="";n.#J.lastEventId??="";n.#J.source??=null;n.#J.ports??=[];return n}}const{createFastMessageEvent:p}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#J;constructor(e,t={}){const n="CloseEvent constructor";o.argumentLengthCheck(arguments,1,n);e=o.converters.DOMString(e,n,"type");t=o.converters.CloseEventInit(t);super(e,t);this.#J=t;o.util.markAsUncloneable(this)}get wasClean(){o.brandCheck(this,CloseEvent);return this.#J.wasClean}get code(){o.brandCheck(this,CloseEvent);return this.#J.code}get reason(){o.brandCheck(this,CloseEvent);return this.#J.reason}}class ErrorEvent extends Event{#J;constructor(e,t){const n="ErrorEvent constructor";o.argumentLengthCheck(arguments,1,n);super(e,t);o.util.markAsUncloneable(this);e=o.converters.DOMString(e,n,"type");t=o.converters.ErrorEventInit(t??{});this.#J=t}get message(){o.brandCheck(this,ErrorEvent);return this.#J.message}get filename(){o.brandCheck(this,ErrorEvent);return this.#J.filename}get lineno(){o.brandCheck(this,ErrorEvent);return this.#J.lineno}get colno(){o.brandCheck(this,ErrorEvent);return this.#J.colno}get error(){o.brandCheck(this,ErrorEvent);return this.#J.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:i,origin:i,lastEventId:i,source:i,ports:i,initMessageEvent:i});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:i,code:i,wasClean:i});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:i,filename:i,lineno:i,colno:i,error:i});o.converters.MessagePort=o.interfaceConverter(d);o.converters["sequence<MessagePort>"]=o.sequenceConverter(o.converters.MessagePort);const y=[{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}];o.converters.MessageEventInit=o.dictionaryConverter([...y,{key:"data",converter:o.converters.any,defaultValue:()=>null},{key:"origin",converter:o.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:o.converters.DOMString,defaultValue:()=>""},{key:"source",converter:o.nullableConverter(o.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:o.converters["sequence<MessagePort>"],defaultValue:()=>new Array(0)}]);o.converters.CloseEventInit=o.dictionaryConverter([...y,{key:"wasClean",converter:o.converters.boolean,defaultValue:()=>false},{key:"code",converter:o.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:o.converters.USVString,defaultValue:()=>""}]);o.converters.ErrorEventInit=o.dictionaryConverter([...y,{key:"message",converter:o.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:o.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:o.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:p}},3264:(e,t,n)=>{const{maxUnsigned16Bit:o}=n(736);const i=16386;let c;let d=null;let p=i;try{c=n(7598)}catch{c={randomFillSync:function randomFillSync(e,t,n){for(let t=0;t<e.length;++t){e[t]=Math.random()*255|0}return e}}}function generateMask(){if(p===i){p=0;c.randomFillSync(d??=Buffer.allocUnsafe(i),0,i)}return[d[p++],d[p++],d[p++],d[p++]]}class WebsocketFrameSend{constructor(e){this.frameData=e}createFrame(e){const t=this.frameData;const n=generateMask();const i=t?.byteLength??0;let c=i;let d=6;if(i>o){d+=8;c=127}else if(i>125){d+=2;c=126}const p=Buffer.allocUnsafe(i+d);p[0]=p[1]=0;p[0]|=128;p[0]=(p[0]&240)+e;
|
||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */p[d-4]=n[0];p[d-3]=n[1];p[d-2]=n[2];p[d-1]=n[3];p[1]=c;if(c===126){p.writeUInt16BE(i,2)}else if(c===127){p[2]=p[3]=0;p.writeUIntBE(i,4,6)}p[1]|=128;for(let e=0;e<i;++e){p[d+e]=t[e]^n[e&3]}return p}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,t,n)=>{const{createInflateRaw:o,Z_DEFAULT_WINDOWBITS:i}=n(8522);const{isValidClientWindowBits:c}=n(8625);const d=Buffer.from([0,0,255,255]);const p=Symbol("kBuffer");const y=Symbol("kLength");class PerMessageDeflate{#W;#A={};constructor(e){this.#A.serverNoContextTakeover=e.has("server_no_context_takeover");this.#A.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,n){if(!this.#W){let e=i;if(this.#A.serverMaxWindowBits){if(!c(this.#A.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#A.serverMaxWindowBits)}this.#W=o({windowBits:e});this.#W[p]=[];this.#W[y]=0;this.#W.on("data",(e=>{this.#W[p].push(e);this.#W[y]+=e.length}));this.#W.on("error",(e=>{this.#W=null;n(e)}))}this.#W.write(e);if(t){this.#W.write(d)}this.#W.flush((()=>{const e=Buffer.concat(this.#W[p],this.#W[y]);this.#W[p].length=0;this.#W[y]=0;n(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,n)=>{const{Writable:o}=n(7075);const i=n(4589);const{parserStates:c,opcodes:d,states:p,emptyBuffer:y,sentCloseFrameState:C}=n(736);const{kReadyState:Q,kSentClose:v,kResponse:D,kReceivedClose:k}=n(1216);const{channels:$}=n(2414);const{isValidStatusCode:V,isValidOpcode:ee,failWebsocketConnection:te,websocketMessageReceived:re,utf8Decode:ne,isControlFrame:se,isTextBinaryFrame:oe,isContinuationFrame:ie}=n(8625);const{WebsocketFrameSend:ae}=n(3264);const{closeWebSocketConnection:ce}=n(6897);const{PerMessageDeflate:le}=n(9469);class ByteParser extends o{#K=[];#X=0;#Z=false;#C=c.INFO;#ee={};#te=[];#re;constructor(e,t){super();this.ws=e;this.#re=t==null?new Map:t;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new le(t))}}_write(e,t,n){this.#K.push(e);this.#X+=e.length;this.#Z=true;this.run(n)}run(e){while(this.#Z){if(this.#C===c.INFO){if(this.#X<2){return e()}const t=this.consume(2);const n=(t[0]&128)!==0;const o=t[0]&15;const i=(t[1]&128)===128;const p=!n&&o!==d.CONTINUATION;const y=t[1]&127;const C=t[0]&64;const Q=t[0]&32;const v=t[0]&16;if(!ee(o)){te(this.ws,"Invalid opcode received");return e()}if(i){te(this.ws,"Frame cannot be masked");return e()}if(C!==0&&!this.#re.has("permessage-deflate")){te(this.ws,"Expected RSV1 to be clear.");return}if(Q!==0||v!==0){te(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(p&&!oe(o)){te(this.ws,"Invalid frame type was fragmented.");return}if(oe(o)&&this.#te.length>0){te(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&p){te(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((y>125||p)&&se(o)){te(this.ws,"Control frame either too large or fragmented");return}if(ie(o)&&this.#te.length===0&&!this.#ee.compressed){te(this.ws,"Unexpected continuation frame");return}if(y<=125){this.#ee.payloadLength=y;this.#C=c.READ_DATA}else if(y===126){this.#C=c.PAYLOADLENGTH_16}else if(y===127){this.#C=c.PAYLOADLENGTH_64}if(oe(o)){this.#ee.binaryType=o;this.#ee.compressed=C!==0}this.#ee.opcode=o;this.#ee.masked=i;this.#ee.fin=n;this.#ee.fragmented=p}else if(this.#C===c.PAYLOADLENGTH_16){if(this.#X<2){return e()}const t=this.consume(2);this.#ee.payloadLength=t.readUInt16BE(0);this.#C=c.READ_DATA}else if(this.#C===c.PAYLOADLENGTH_64){if(this.#X<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);if(n>2**31-1){te(this.ws,"Received payload length > 2^31 bytes.");return}const o=t.readUInt32BE(4);this.#ee.payloadLength=(n<<8)+o;this.#C=c.READ_DATA}else if(this.#C===c.READ_DATA){if(this.#X<this.#ee.payloadLength){return e()}const t=this.consume(this.#ee.payloadLength);if(se(this.#ee.opcode)){this.#Z=this.parseControlFrame(t);this.#C=c.INFO}else{if(!this.#ee.compressed){this.#te.push(t);if(!this.#ee.fragmented&&this.#ee.fin){const e=Buffer.concat(this.#te);re(this.ws,this.#ee.binaryType,e);this.#te.length=0}this.#C=c.INFO}else{this.#re.get("permessage-deflate").decompress(t,this.#ee.fin,((t,n)=>{if(t){ce(this.ws,1007,t.message,t.message.length);return}this.#te.push(n);if(!this.#ee.fin){this.#C=c.INFO;this.#Z=true;this.run(e);return}re(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#Z=true;this.#C=c.INFO;this.#te.length=0;this.run(e)}));this.#Z=false;break}}}}}consume(e){if(e>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return y}if(this.#K[0].length===e){this.#X-=this.#K[0].length;return this.#K.shift()}const t=Buffer.allocUnsafe(e);let n=0;while(n!==e){const o=this.#K[0];const{length:i}=o;if(i+n===e){t.set(this.#K.shift(),n);break}else if(i+n>e){t.set(o.subarray(0,e-n),n);this.#K[0]=o.subarray(e-n);break}else{t.set(this.#K.shift(),n);n+=o.length}}this.#X-=e;return t}parseCloseBody(e){i(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!V(t)){return{code:1002,reason:"Invalid status code",error:true}}let n=e.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}try{n=ne(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:t,reason:n,error:false}}parseControlFrame(e){const{opcode:t,payloadLength:n}=this.#ee;if(t===d.CLOSE){if(n===1){te(this.ws,"Received close frame with a 1-byte body.");return false}this.#ee.closeInfo=this.parseCloseBody(e);if(this.#ee.closeInfo.error){const{code:e,reason:t}=this.#ee.closeInfo;ce(this.ws,e,t,t.length);te(this.ws,t);return false}if(this.ws[v]!==C.SENT){let e=y;if(this.#ee.closeInfo.code){e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#ee.closeInfo.code,0)}const t=new ae(e);this.ws[D].socket.write(t.createFrame(d.CLOSE),(e=>{if(!e){this.ws[v]=C.SENT}}))}this.ws[Q]=p.CLOSING;this.ws[k]=true;return false}else if(t===d.PING){if(!this.ws[k]){const t=new ae(e);this.ws[D].socket.write(t.createFrame(d.PONG));if($.ping.hasSubscribers){$.ping.publish({payload:e})}}}else if(t===d.PONG){if($.pong.hasSubscribers){$.pong.publish({payload:e})}}return true}get closingInfo(){return this.#ee.closeInfo}}e.exports={ByteParser:ByteParser}},3900:(e,t,n)=>{const{WebsocketFrameSend:o}=n(3264);const{opcodes:i,sendHints:c}=n(736);const d=n(4660);const p=Buffer[Symbol.species];class SendQueue{#ne=new d;#se=false;#oe;constructor(e){this.#oe=e}add(e,t,n){if(n!==c.blob){const o=createFrame(e,n);if(!this.#se){this.#oe.write(o,t)}else{const e={promise:null,callback:t,frame:o};this.#ne.push(e)}return}const o={promise:e.arrayBuffer().then((e=>{o.promise=null;o.frame=createFrame(e,n)})),callback:t,frame:null};this.#ne.push(o);if(!this.#se){this.#ie()}}async#ie(){this.#se=true;const e=this.#ne;while(!e.isEmpty()){const t=e.shift();if(t.promise!==null){await t.promise}this.#oe.write(t.frame,t.callback);t.callback=t.frame=null}this.#se=false}}function createFrame(e,t){return new o(toBuffer(e,t)).createFrame(t===c.string?i.TEXT:i.BINARY)}function toBuffer(e,t){switch(t){case c.string:return Buffer.from(e);case c.arrayBuffer:case c.blob:return new p(e);case c.typedArray:return new p(e.buffer,e.byteOffset,e.byteLength)}}e.exports={SendQueue:SendQueue}},1216:e=>{e.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")}},8625:(e,t,n)=>{const{kReadyState:o,kController:i,kResponse:c,kBinaryType:d,kWebSocketURL:p}=n(1216);const{states:y,opcodes:C}=n(736);const{ErrorEvent:Q,createFastMessageEvent:v}=n(5188);const{isUtf8:D}=n(4573);const{collectASequenceOfCodePointsFast:k,removeHTTPWhitespace:$}=n(1900);function isConnecting(e){return e[o]===y.CONNECTING}function isEstablished(e){return e[o]===y.OPEN}function isClosing(e){return e[o]===y.CLOSING}function isClosed(e){return e[o]===y.CLOSED}function fireEvent(e,t,n=(e,t)=>new Event(e,t),o={}){const i=n(e,o);t.dispatchEvent(i)}function websocketMessageReceived(e,t,n){if(e[o]!==y.OPEN){return}let i;if(t===C.TEXT){try{i=te(n)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===C.BINARY){if(e[d]==="blob"){i=new Blob([n])}else{i=toArrayBuffer(n)}}fireEvent("message",e,v,{origin:e[p].origin,data:i})}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function isValidSubprotocol(e){if(e.length===0){return false}for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<33||n>126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[i]:n,[c]:o}=e;n.abort();if(o?.socket&&!o.socket.destroyed){o.socket.destroy()}if(t){fireEvent("error",e,((e,t)=>new Q(e,t)),{error:new Error(t),message:t})}}function isControlFrame(e){return e===C.CLOSE||e===C.PING||e===C.PONG}function isContinuationFrame(e){return e===C.CONTINUATION}function isTextBinaryFrame(e){return e===C.TEXT||e===C.BINARY}function isValidOpcode(e){return isTextBinaryFrame(e)||isContinuationFrame(e)||isControlFrame(e)}function parseExtensions(e){const t={position:0};const n=new Map;while(t.position<e.length){const o=k(";",e,t);const[i,c=""]=o.split("=");n.set($(i,true,false),$(c,false,true));t.position++}return n}function isValidClientWindowBits(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<48||n>57){return false}}return true}const V=typeof process.versions.icu==="string";const ee=V?new TextDecoder("utf-8",{fatal:true}):undefined;const te=V?ee.decode.bind(ee):function(e){if(D(e)){return e.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};e.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:te,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(e,t,n)=>{const{webidl:o}=n(5893);const{URLSerializer:i}=n(1900);const{environmentSettingsObject:c}=n(3168);const{staticPropertyDescriptors:d,states:p,sentCloseFrameState:y,sendHints:C}=n(736);const{kWebSocketURL:Q,kReadyState:v,kController:D,kBinaryType:k,kResponse:$,kSentClose:V,kByteParser:ee}=n(1216);const{isConnecting:te,isEstablished:re,isClosing:ne,isValidSubprotocol:se,fireEvent:oe}=n(8625);const{establishWebSocketConnection:ie,closeWebSocketConnection:ae}=n(6897);const{ByteParser:ce}=n(1652);const{kEnumerableProperty:le,isBlobLike:ue}=n(3440);const{getGlobalDispatcher:de}=n(2581);const{types:pe}=n(7975);const{ErrorEvent:Ae,CloseEvent:me}=n(5188);const{SendQueue:ge}=n(3900);class WebSocket extends EventTarget{#_={open:null,error:null,close:null,message:null};#ae=0;#ce="";#re="";#le;constructor(e,t=[]){super();o.util.markAsUncloneable(this);const n="WebSocket constructor";o.argumentLengthCheck(arguments,1,n);const i=o.converters["DOMString or sequence<DOMString> or WebSocketInit"](t,n,"options");e=o.converters.USVString(e,n,"url");t=i.protocols;const d=c.settingsObject.baseUrl;let p;try{p=new URL(e,d)}catch(e){throw new DOMException(e,"SyntaxError")}if(p.protocol==="http:"){p.protocol="ws:"}else if(p.protocol==="https:"){p.protocol="wss:"}if(p.protocol!=="ws:"&&p.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${p.protocol}`,"SyntaxError")}if(p.hash||p.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>se(e)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[Q]=new URL(p.href);const C=c.settingsObject;this[D]=ie(p,t,C,this,((e,t)=>this.#ue(e,t)),i);this[v]=WebSocket.CONNECTING;this[V]=y.NOT_SENT;this[k]="blob"}close(e=undefined,t=undefined){o.brandCheck(this,WebSocket);const n="WebSocket.close";if(e!==undefined){e=o.converters["unsigned short"](e,n,"code",{clamp:true})}if(t!==undefined){t=o.converters.USVString(t,n,"reason")}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let i=0;if(t!==undefined){i=Buffer.byteLength(t);if(i>123){throw new DOMException(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError")}}ae(this,e,t,i)}send(e){o.brandCheck(this,WebSocket);const t="WebSocket.send";o.argumentLengthCheck(arguments,1,t);e=o.converters.WebSocketSendData(e,t,"data");if(te(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!re(this)||ne(this)){return}if(typeof e==="string"){const t=Buffer.byteLength(e);this.#ae+=t;this.#le.add(e,(()=>{this.#ae-=t}),C.string)}else if(pe.isArrayBuffer(e)){this.#ae+=e.byteLength;this.#le.add(e,(()=>{this.#ae-=e.byteLength}),C.arrayBuffer)}else if(ArrayBuffer.isView(e)){this.#ae+=e.byteLength;this.#le.add(e,(()=>{this.#ae-=e.byteLength}),C.typedArray)}else if(ue(e)){this.#ae+=e.size;this.#le.add(e,(()=>{this.#ae-=e.size}),C.blob)}}get readyState(){o.brandCheck(this,WebSocket);return this[v]}get bufferedAmount(){o.brandCheck(this,WebSocket);return this.#ae}get url(){o.brandCheck(this,WebSocket);return i(this[Q])}get extensions(){o.brandCheck(this,WebSocket);return this.#re}get protocol(){o.brandCheck(this,WebSocket);return this.#ce}get onopen(){o.brandCheck(this,WebSocket);return this.#_.open}set onopen(e){o.brandCheck(this,WebSocket);if(this.#_.open){this.removeEventListener("open",this.#_.open)}if(typeof e==="function"){this.#_.open=e;this.addEventListener("open",e)}else{this.#_.open=null}}get onerror(){o.brandCheck(this,WebSocket);return this.#_.error}set onerror(e){o.brandCheck(this,WebSocket);if(this.#_.error){this.removeEventListener("error",this.#_.error)}if(typeof e==="function"){this.#_.error=e;this.addEventListener("error",e)}else{this.#_.error=null}}get onclose(){o.brandCheck(this,WebSocket);return this.#_.close}set onclose(e){o.brandCheck(this,WebSocket);if(this.#_.close){this.removeEventListener("close",this.#_.close)}if(typeof e==="function"){this.#_.close=e;this.addEventListener("close",e)}else{this.#_.close=null}}get onmessage(){o.brandCheck(this,WebSocket);return this.#_.message}set onmessage(e){o.brandCheck(this,WebSocket);if(this.#_.message){this.removeEventListener("message",this.#_.message)}if(typeof e==="function"){this.#_.message=e;this.addEventListener("message",e)}else{this.#_.message=null}}get binaryType(){o.brandCheck(this,WebSocket);return this[k]}set binaryType(e){o.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[k]="blob"}else{this[k]=e}}#ue(e,t){this[$]=e;const n=new ce(this,t);n.on("drain",onParserDrain);n.on("error",onParserError.bind(this));e.socket.ws=this;this[ee]=n;this.#le=new ge(e.socket);this[v]=p.OPEN;const o=e.headersList.get("sec-websocket-extensions");if(o!==null){this.#re=o}const i=e.headersList.get("sec-websocket-protocol");if(i!==null){this.#ce=i}oe("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=p.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=p.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=p.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=p.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:le,readyState:le,bufferedAmount:le,onopen:le,onerror:le,onclose:le,close:le,onmessage:le,binaryType:le,send:le,extensions:le,protocol:le,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});o.converters["sequence<DOMString>"]=o.sequenceConverter(o.converters.DOMString);o.converters["DOMString or sequence<DOMString>"]=function(e,t,n){if(o.util.Type(e)==="Object"&&Symbol.iterator in e){return o.converters["sequence<DOMString>"](e)}return o.converters.DOMString(e,t,n)};o.converters.WebSocketInit=o.dictionaryConverter([{key:"protocols",converter:o.converters["DOMString or sequence<DOMString>"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:o.converters.any,defaultValue:()=>de()},{key:"headers",converter:o.nullableConverter(o.converters.HeadersInit)}]);o.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(e){if(o.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return o.converters.WebSocketInit(e)}return{protocols:o.converters["DOMString or sequence<DOMString>"](e)}};o.converters.WebSocketSendData=function(e){if(o.util.Type(e)==="Object"){if(ue(e)){return o.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||pe.isArrayBuffer(e)){return o.converters.BufferSource(e)}}return o.converters.USVString(e)};function onParserDrain(){this.ws[$].socket.resume()}function onParserError(e){let t;let n;if(e instanceof me){t=e.reason;n=e.code}else{t=e.message}oe("error",this,(()=>new Ae("error",{error:e,message:t})));ae(this,n)}e.exports={WebSocket:WebSocket}},2613:t=>{t.exports=e(import.meta.url)("assert")},181:t=>{t.exports=e(import.meta.url)("buffer")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},1943:t=>{t.exports=e(import.meta.url)("fs/promises")},8611:t=>{t.exports=e(import.meta.url)("http")},5675:t=>{t.exports=e(import.meta.url)("http2")},5692:t=>{t.exports=e(import.meta.url)("https")},9278:t=>{t.exports=e(import.meta.url)("net")},4589:t=>{t.exports=e(import.meta.url)("node:assert")},6698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},1421:t=>{t.exports=e(import.meta.url)("node:child_process")},7540:t=>{t.exports=e(import.meta.url)("node:console")},7598:t=>{t.exports=e(import.meta.url)("node:crypto")},3053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},610:t=>{t.exports=e(import.meta.url)("node:dns")},8474:t=>{t.exports=e(import.meta.url)("node:events")},3024:t=>{t.exports=e(import.meta.url)("node:fs")},1455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},7067:t=>{t.exports=e(import.meta.url)("node:http")},2467:t=>{t.exports=e(import.meta.url)("node:http2")},7030:t=>{t.exports=e(import.meta.url)("node:net")},8161:t=>{t.exports=e(import.meta.url)("node:os")},6760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},1708:t=>{t.exports=e(import.meta.url)("node:process")},1792:t=>{t.exports=e(import.meta.url)("node:querystring")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},1692:t=>{t.exports=e(import.meta.url)("node:tls")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},3429:t=>{t.exports=e(import.meta.url)("node:util/types")},5919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},8522:t=>{t.exports=e(import.meta.url)("node:zlib")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},4756:t=>{t.exports=e(import.meta.url)("tls")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3345:(e,t)=>{var n;n={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},8914:(e,t)=>{var n;n={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},1120:e=>{var t;const n=function NullObject(){};n.prototype=Object.create(null);const o=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;const i=/\\([\v\u0020-\u00ff])/gu;const c=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;const d={type:"",parameters:new n};Object.freeze(d.parameters);Object.freeze(d);function parse(e){if(typeof e!=="string"){throw new TypeError("argument header is required and must be a string")}let t=e.indexOf(";");const d=t!==-1?e.slice(0,t).trim():e.trim();if(c.test(d)===false){throw new TypeError("invalid media type")}const p={type:d.toLowerCase(),parameters:new n};if(t===-1){return p}let y;let C;let Q;o.lastIndex=t;while(C=o.exec(e)){if(C.index!==t){throw new TypeError("invalid parameter format")}t+=C[0].length;y=C[1].toLowerCase();Q=C[2];if(Q[0]==='"'){Q=Q.slice(1,Q.length-1);i.test(Q)&&(Q=Q.replace(i,"$1"))}p.parameters[y]=Q}if(t!==e.length){throw new TypeError("invalid parameter format")}return p}function safeParse(e){if(typeof e!=="string"){return d}let t=e.indexOf(";");const p=t!==-1?e.slice(0,t).trim():e.trim();if(c.test(p)===false){return d}const y={type:p.toLowerCase(),parameters:new n};if(t===-1){return y}let C;let Q;let v;o.lastIndex=t;while(Q=o.exec(e)){if(Q.index!==t){return d}t+=Q[0].length;C=Q[1].toLowerCase();v=Q[2];if(v[0]==='"'){v=v.slice(1,v.length-1);i.test(v)&&(v=v.replace(i,"$1"))}y.parameters[C]=v}if(t!==e.length){return d}return y}t={parse:parse,safeParse:safeParse};t=parse;e.exports.xL=safeParse;t=d},8658:(e,t,n)=>{const o=n(4012);e.exports={version:o.version}},591:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>dt,XMLParser:()=>it,XMLValidator:()=>re});const o=":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",i=new RegExp("^["+o+"]["+o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let o=t.exec(e);for(;o;){const i=[];i.startIndex=t.lastIndex-o[0].length;const c=o.length;for(let e=0;e<c;e++)i.push(o[e]);n.push(i),o=t.exec(e)}return n}const r=function(e){return!(null==i.exec(e))},c={allowBooleanAttributes:!1,unpairedTags:[]};function a(e,t){t=Object.assign({},c,t);const n=[];let o=!1,i=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let c=0;c<e.length;c++)if("<"===e[c]&&"?"===e[c+1]){if(c+=2,c=u(e,c),c.err)return c}else{if("<"!==e[c]){if(l(e[c]))continue;return m("InvalidChar","char '"+e[c]+"' is not expected.",b(e,c))}{let d=c;if(c++,"!"===e[c]){c=h(e,c);continue}{let p=!1;"/"===e[c]&&(p=!0,c++);let y="";for(;c<e.length&&">"!==e[c]&&" "!==e[c]&&"\t"!==e[c]&&"\n"!==e[c]&&"\r"!==e[c];c++)y+=e[c];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),c--),!r(y)){let t;return t=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",m("InvalidTag",t,b(e,c))}const C=f(e,c);if(!1===C)return m("InvalidAttr","Attributes for '"+y+"' have open quote.",b(e,c));let Q=C.value;if(c=C.index,"/"===Q[Q.length-1]){const n=c-Q.length;Q=Q.substring(0,Q.length-1);const i=g(Q,t);if(!0!==i)return m(i.err.code,i.err.msg,b(e,n+i.err.line));o=!0}else if(p){if(!C.tagClosed)return m("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",b(e,c));if(Q.trim().length>0)return m("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",b(e,d));if(0===n.length)return m("InvalidTag","Closing tag '"+y+"' has not been opened.",b(e,d));{const t=n.pop();if(y!==t.tagName){let n=b(e,t.tagStartPos);return m("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+y+"'.",b(e,d))}0==n.length&&(i=!0)}}else{const p=g(Q,t);if(!0!==p)return m(p.err.code,p.err.msg,b(e,c-Q.length+p.err.line));if(!0===i)return m("InvalidXml","Multiple possible root nodes found.",b(e,c));-1!==t.unpairedTags.indexOf(y)||n.push({tagName:y,tagStartPos:d}),o=!0}for(c++;c<e.length;c++)if("<"===e[c]){if("!"===e[c+1]){c++,c=h(e,c);continue}if("?"!==e[c+1])break;if(c=u(e,++c),c.err)return c}else if("&"===e[c]){const t=x(e,c);if(-1==t)return m("InvalidChar","char '&' is not expected.",b(e,c));c=t}else if(!0===i&&!l(e[c]))return m("InvalidXml","Extra text at the end",b(e,c));"<"===e[c]&&c--}}}return o?1==n.length?m("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",b(e,n[0].tagStartPos)):!(n.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function l(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const o=e.substr(n,t-n);if(t>5&&"xml"===o)return m("InvalidXml","XML declaration allowed only at the start of the document.",b(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function h(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const d='"',p="'";function f(e,t){let n="",o="",i=!1;for(;t<e.length;t++){if(e[t]===d||e[t]===p)""===o?o=e[t]:o!==e[t]||(o="");else if(">"===e[t]&&""===o){i=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:i}}const y=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function g(e,t){const n=s(e,y),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return m("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",N(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return m("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",N(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",N(n[e]));const i=n[e][2];if(!E(i))return m("InvalidAttr","Attribute '"+i+"' is an invalid name.",N(n[e]));if(o.hasOwnProperty(i))return m("InvalidAttr","Attribute '"+i+"' is repeated.",N(n[e]));o[i]=1}return!0}function x(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function m(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function E(e){return r(e)}function b(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function N(e){return e.startIndex+e[1].length}const C={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1};function T(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:e.maxEntitySize??1e4,maxExpansionDepth:e.maxExpansionDepth??10,maxTotalExpansions:e.maxTotalExpansions??1e3,maxExpandedLength:e.maxExpandedLength??1e5,allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:T(!0)}const w=function(e){const t=Object.assign({},C,e);return t.processEntities=T(t.processEntities),t};let Q;Q="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class I{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][Q]={startIndex:t})}static getMetaDataSymbol(){return Q}}class O{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let o=1,i=!1,c=!1,d="";for(;t<e.length;t++)if("<"!==e[t]||c)if(">"===e[t]){if(c?"-"===e[t-1]&&"-"===e[t-2]&&(c=!1,o--):o--,0===o)break}else"["===e[t]?i=!0:d+=e[t];else{if(i&&A(e,"!ENTITY",t)){let o,i;if(t+=7,[o,i,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===i.indexOf("&")){const e=o.replace(/[.\-+*:]/g,"\\.");n[o]={regx:RegExp(`&${e};`,"g"),val:i}}}else if(i&&A(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(i&&A(e,"!ATTLIST",t))t+=8;else if(i&&A(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!A(e,"!--",t))throw new Error("Invalid DOCTYPE");c=!0}o++,d=""}if(0!==o)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){t=P(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)n+=e[t],t++;if(S(n),t=P(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let o="";if([t,o]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&this.options.maxEntitySize&&o.length>this.options.maxEntitySize)throw new Error(`Entity "${n}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[n,o,--t]}readNotationExp(e,t){t=P(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;!this.suppressValidationErr&&S(n),t=P(e,t);const o=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==o&&"PUBLIC"!==o)throw new Error(`Expected SYSTEM or PUBLIC, found "${o}"`);t+=o.length,t=P(e,t);let i=null,c=null;if("PUBLIC"===o)[t,i]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=P(e,t)]&&"'"!==e[t]||([t,c]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===o&&([t,c]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!c))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:i,systemIdentifier:c,index:--t}}readIdentifierVal(e,t,n){let o="";const i=e[t];if('"'!==i&&"'"!==i)throw new Error(`Expected quoted string, found "${i}"`);for(t++;t<e.length&&e[t]!==i;)o+=e[t],t++;if(e[t]!==i)throw new Error(`Unterminated ${n} value`);return[++t,o]}readElementExp(e,t){t=P(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!this.suppressValidationErr&&!r(n))throw new Error(`Invalid element name: "${n}"`);let o="";if("E"===e[t=P(e,t)]&&A(e,"MPTY",t))t+=4;else if("A"===e[t]&&A(e,"NY",t))t+=2;else if("("===e[t]){for(t++;t<e.length&&")"!==e[t];)o+=e[t],t++;if(")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:o.trim(),index:t}}readAttlistExp(e,t){t=P(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;S(n),t=P(e,t);let o="";for(;t<e.length&&!/\s/.test(e[t]);)o+=e[t],t++;if(!S(o))throw new Error(`Invalid attribute name: "${o}"`);t=P(e,t);let i="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(i="NOTATION","("!==e[t=P(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){let o="";for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)o+=e[t],t++;if(o=o.trim(),!S(o))throw new Error(`Invalid notation name: "${o}"`);n.push(o),"|"===e[t]&&(t++,t=P(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,i+=" ("+n.join("|")+")"}else{for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;const n=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!n.includes(i.toUpperCase()))throw new Error(`Invalid attribute type: "${i}"`)}t=P(e,t);let c="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(c="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(c="#IMPLIED",t+=7):[t,c]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:n,attributeName:o,attributeType:i,defaultValue:c,index:t}}}const P=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function A(e,t,n){for(let o=0;o<t.length;o++)if(t[o]!==e[n+o+1])return!1;return!0}function S(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const v=/^[-+]?0x[a-fA-F0-9]+$/,D=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,k={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};const $=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function L(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}class F{constructor(e){if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>K(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>K(t,16,"&#x")}},this.addExternalEntities=j,this.parseXml=B,this.parseTextData=M,this.resolveNameSpace=_,this.buildAttributesMap=U,this.isItStopNode=X,this.replaceEntitiesValue=Y,this.readStopNodeData=q,this.saveTextToParentTag=G,this.addChild=R,this.ignoreAttributesFn=L(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t&&(t.startsWith("*.")?this.stopNodesWildcard.add(t.substring(2)):this.stopNodesExact.add(t))}}}}function j(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n],i=o.replace(/[.\-+*:]/g,"\\.");this.lastEntities[o]={regex:new RegExp("&"+i+";","g"),val:e[o]}}}function M(e,t,n,o,i,c,d){if(void 0!==e&&(this.options.trimValues&&!o&&(e=e.trim()),e.length>0)){d||(e=this.replaceEntitiesValue(e,t,n));const o=this.options.tagValueProcessor(t,e,n,i,c);return null==o?e:typeof o!=typeof e||o!==e?o:this.options.trimValues||e.trim()===e?Z(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function _(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const V=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function U(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const o=s(e,V),i=o.length,c={};for(let e=0;e<i;e++){const i=this.resolveNameSpace(o[e][1]);if(this.ignoreAttributesFn(i,t))continue;let d=o[e][4],p=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(p=this.options.transformAttributeName(p)),"__proto__"===p&&(p="#__proto__"),void 0!==d){this.options.trimValues&&(d=d.trim()),d=this.replaceEntitiesValue(d,n,t);const e=this.options.attributeValueProcessor(i,d,t);c[p]=null==e?d:typeof e!=typeof d||e!==d?e:Z(d,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(c[p]=!0)}if(!Object.keys(c).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=c,e}return c}}const B=function(e){e=e.replace(/\r\n?/g,"\n");const t=new I("!xml");let n=t,o="",i="";this.entityExpansionCount=0,this.currentExpandedLength=0;const c=new O(this.options.processEntities);for(let d=0;d<e.length;d++)if("<"===e[d])if("/"===e[d+1]){const t=z(e,">",d,"Closing Tag is not closed.");let c=e.substring(d+2,t).trim();if(this.options.removeNSPrefix){const e=c.indexOf(":");-1!==e&&(c=c.substr(e+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),n&&(o=this.saveTextToParentTag(o,n,i));const p=i.substring(i.lastIndexOf(".")+1);if(c&&-1!==this.options.unpairedTags.indexOf(c))throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);let y=0;p&&-1!==this.options.unpairedTags.indexOf(p)?(y=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=i.lastIndexOf("."),i=i.substring(0,y),n=this.tagsNodeStack.pop(),o="",d=t}else if("?"===e[d+1]){let t=W(e,d,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,i),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new I(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,i,t.tagName)),this.addChild(n,e,i,d)}d=t.closeIndex+1}else if("!--"===e.substr(d+1,3)){const t=z(e,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const c=e.substring(d+4,t-2);o=this.saveTextToParentTag(o,n,i),n.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}d=t}else if("!D"===e.substr(d+1,2)){const t=c.readDocType(e,d);this.docTypeEntities=t.entities,d=t.i}else if("!["===e.substr(d+1,2)){const t=z(e,"]]>",d,"CDATA is not closed.")-2,c=e.substring(d+9,t);o=this.saveTextToParentTag(o,n,i);let p=this.parseTextData(c,n.tagname,i,!0,!1,!0,!0);null==p&&(p=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):n.add(this.options.textNodeName,p),d=t+2}else{let c=W(e,d,this.options.removeNSPrefix),p=c.tagName;const y=c.rawTagName;let C=c.tagExp,Q=c.attrExpPresent,v=c.closeIndex;if(this.options.transformTagName){const e=this.options.transformTagName(p);C===p&&(C=e),p=e}n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,i,!1));const D=n;D&&-1!==this.options.unpairedTags.indexOf(D.tagname)&&(n=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),p!==t.tagname&&(i+=i?"."+p:p);const k=d;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,p)){let t="";if(C.length>0&&C.lastIndexOf("/")===C.length-1)"/"===p[p.length-1]?(p=p.substr(0,p.length-1),i=i.substr(0,i.length-1),C=p):C=C.substr(0,C.length-1),d=c.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(p))d=c.closeIndex;else{const n=this.readStopNodeData(e,y,v+1);if(!n)throw new Error(`Unexpected end of ${y}`);d=n.i,t=n.tagContent}const o=new I(p);p!==C&&Q&&(o[":@"]=this.buildAttributesMap(C,i,p)),t&&(t=this.parseTextData(t,p,i,!0,Q,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),o.add(this.options.textNodeName,t),this.addChild(n,o,i,k)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if("/"===p[p.length-1]?(p=p.substr(0,p.length-1),i=i.substr(0,i.length-1),C=p):C=C.substr(0,C.length-1),this.options.transformTagName){const e=this.options.transformTagName(p);C===p&&(C=e),p=e}const e=new I(p);p!==C&&Q&&(e[":@"]=this.buildAttributesMap(C,i,p)),this.addChild(n,e,i,k),i=i.substr(0,i.lastIndexOf("."))}else{const e=new I(p);this.tagsNodeStack.push(n),p!==C&&Q&&(e[":@"]=this.buildAttributesMap(C,i,p)),this.addChild(n,e,i,k),n=e}o="",d=v}}else o+=e[d];return t.child};function R(e,t,n,o){this.options.captureMetaData||(o=void 0);const i=this.options.updateTag(t.tagname,n,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t,o)):e.addChild(t,o))}const Y=function(e,t,n){if(-1===e.indexOf("&"))return e;const o=this.options.processEntities;if(!o.enabled)return e;if(o.allowedTags&&!o.allowedTags.includes(t))return e;if(o.tagFilter&&!o.tagFilter(t,n))return e;for(let t in this.docTypeEntities){const n=this.docTypeEntities[t],i=e.match(n.regx);if(i){if(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),o.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>o.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${o.maxExpandedLength}`)}}if(-1===e.indexOf("&"))return e;for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)};function G(e,t,n,o){return e&&(void 0===o&&(o=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function X(e,t,n,o){return!(!t||!t.has(o))||!(!e||!e.has(n))}function z(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i+t.length-1}function W(e,t,n,o=">"){const i=function(e,t,n=">"){let o,i="";for(let c=t;c<e.length;c++){let t=e[c];if(o)t===o&&(o="");else if('"'===t||"'"===t)o=t;else if(t===n[0]){if(!n[1])return{data:i,index:c};if(e[c+1]===n[1])return{data:i,index:c}}else"\t"===t&&(t=" ");i+=t}}(e,t+1,o);if(!i)return;let c=i.data;const d=i.index,p=c.search(/\s/);let y=c,C=!0;-1!==p&&(y=c.substring(0,p),c=c.substring(p+1).trimStart());const Q=y;if(n){const e=y.indexOf(":");-1!==e&&(y=y.substr(e+1),C=y!==i.data.substr(e+1))}return{tagName:y,tagExp:c,closeIndex:d,attrExpPresent:C,rawTagName:Q}}function q(e,t,n){const o=n;let i=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const c=z(e,">",n,`${t} is not closed`);if(e.substring(n+2,c).trim()===t&&(i--,0===i))return{tagContent:e.substring(o,n),i:c};n=c}else if("?"===e[n+1])n=z(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=z(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=z(e,"]]>",n,"StopNode is not closed.")-2;else{const o=W(e,n,">");o&&((o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&i++,n=o.closeIndex)}}function Z(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},k,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&v.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(-1!==n.search(/.+[eE].+/))return function(e,t,n){if(!n.eNotation)return e;const o=t.match($);if(o){let i=o[1]||"";const c=-1===o[3].indexOf("e")?"E":"e",d=o[2],p=i?e[d.length+1]===c:e[d.length]===c;return d.length>1&&p?e:1!==d.length||!o[3].startsWith(`.${c}`)&&o[3][0]!==c?n.leadingZeros&&!p?(t=(o[1]||"")+o[3],Number(t)):e:Number(t)}return e}(e,n,t);{const i=D.exec(n);if(i){const c=i[1]||"",d=i[2];let p=(o=i[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substring(0,o.length-1)),o):o;const y=c?"."===e[d.length+1]:"."===e[d.length];if(!t.leadingZeros&&(d.length>1||1===d.length&&!y))return e;{const o=Number(n),i=String(o);if(0===o||-0===o)return o;if(-1!==i.search(/[eE]/))return t.eNotation?o:e;if(-1!==n.indexOf("."))return"0"===i||i===p||i===`${c}${p}`?o:e;let y=d?p:n;return d?y===i||c+y===i?o:e:y===i||y===c+i?o:e}}return e}var o}(e,n)}return void 0!==e?e:""}function K(e,t,n){const o=Number.parseInt(e,t);return o>=0&&o<=1114111?String.fromCodePoint(o):n+e+";"}const ee=I.getMetaDataSymbol();function J(e,t){return H(e,t)}function H(e,t,n){let o;const i={};for(let c=0;c<e.length;c++){const d=e[c],p=tt(d);let y="";if(y=void 0===n?p:n+"."+p,p===t.textNodeName)void 0===o?o=d[p]:o+=""+d[p];else{if(void 0===p)continue;if(d[p]){let e=H(d[p],t,y);const n=nt(e,t);void 0!==d[ee]&&(e[ee]=d[ee]),d[":@"]?et(e,d[":@"],y,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==i[p]&&i.hasOwnProperty(p)?(Array.isArray(i[p])||(i[p]=[i[p]]),i[p].push(e)):t.isArray(p,y,n)?i[p]=[e]:i[p]=e}}}return"string"==typeof o?o.length>0&&(i[t.textNodeName]=o):void 0!==o&&(i[t.textNodeName]=o),i}function tt(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function et(e,t,n,o){if(t){const i=Object.keys(t),c=i.length;for(let d=0;d<c;d++){const c=i[d];o.isArray(c,n+"."+c,!0,!0)?e[c]=[t[c]]:e[c]=t[c]}}}function nt(e,t){const{textNodeName:n}=t,o=Object.keys(e).length;return 0===o||!(1!==o||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class it{constructor(e){this.externalEntities={},this.options=w(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=a(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new F(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:J(o,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return I.getMetaDataSymbol()}}function st(e,t){let n="";return t.format&&t.indentBy.length>0&&(n="\n"),rt(e,t,"",n)}function rt(e,t,n,o){let i="",c=!1;for(let d=0;d<e.length;d++){const p=e[d],y=ot(p);if(void 0===y)continue;let C="";if(C=0===n.length?y:`${n}.${y}`,y===t.textNodeName){let e=p[y];lt(C,t)||(e=t.tagValueProcessor(y,e),e=ut(e,t)),c&&(i+=o),i+=e,c=!1;continue}if(y===t.cdataPropName){c&&(i+=o),i+=`<![CDATA[${p[y][0][t.textNodeName]}]]>`,c=!1;continue}if(y===t.commentPropName){i+=o+`\x3c!--${p[y][0][t.textNodeName]}--\x3e`,c=!0;continue}if("?"===y[0]){const e=at(p[":@"],t),n="?xml"===y?"":o;let d=p[y][0][t.textNodeName];d=0!==d.length?" "+d:"",i+=n+`<${y}${d}${e}?>`,c=!0;continue}let Q=o;""!==Q&&(Q+=t.indentBy);const v=o+`<${y}${at(p[":@"],t)}`,D=rt(p[y],t,C,Q);-1!==t.unpairedTags.indexOf(y)?t.suppressUnpairedNode?i+=v+">":i+=v+"/>":D&&0!==D.length||!t.suppressEmptyNode?D&&D.endsWith(">")?i+=v+`>${D}${o}</${y}>`:(i+=v+">",D&&""!==o&&(D.includes("/>")||D.includes("</"))?i+=o+t.indentBy+D+o:i+=D,i+=`</${y}>`):i+=v+"/>",c=!0}return i}function ot(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(e.hasOwnProperty(o)&&":@"!==o)return o}}function at(e,t){let n="";if(e&&!t.ignoreAttributes)for(let o in e){if(!e.hasOwnProperty(o))continue;let i=t.attributeValueProcessor(o,e[o]);i=ut(i,t),!0===i&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function lt(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let o in t.stopNodes)if(t.stopNodes[o]===e||t.stopNodes[o]==="*."+n)return!0;return!1}function ut(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}return e}const te={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function dt(e){this.options=Object.assign({},te,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=L(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ct),this.processTextOrObjNode=pt,this.options.format?(this.indentate=ft,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function pt(e,t,n,o){const i=this.j2x(e,n+1,o.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n):this.buildObjectNode(i.val,t,i.attrStr,n)}function ft(e){return this.options.indentBy.repeat(e)}function ct(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}dt.prototype.build=function(e){return this.options.preserveOrder?st(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},dt.prototype.j2x=function(e,t,n){let o="",i="";const c=n.join(".");for(let d in e)if(Object.prototype.hasOwnProperty.call(e,d))if(void 0===e[d])this.isAttribute(d)&&(i+="");else if(null===e[d])this.isAttribute(d)||d===this.options.cdataPropName?i+="":"?"===d[0]?i+=this.indentate(t)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+d+"/"+this.tagEndChar;else if(e[d]instanceof Date)i+=this.buildTextValNode(e[d],d,"",t);else if("object"!=typeof e[d]){const n=this.isAttribute(d);if(n&&!this.ignoreAttributesFn(n,c))o+=this.buildAttrPairStr(n,""+e[d]);else if(!n)if(d===this.options.textNodeName){let t=this.options.tagValueProcessor(d,""+e[d]);i+=this.replaceEntitiesValue(t)}else i+=this.buildTextValNode(e[d],d,"",t)}else if(Array.isArray(e[d])){const o=e[d].length;let c="",p="";for(let y=0;y<o;y++){const o=e[d][y];if(void 0===o);else if(null===o)"?"===d[0]?i+=this.indentate(t)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+d+"/"+this.tagEndChar;else if("object"==typeof o)if(this.options.oneListGroup){const e=this.j2x(o,t+1,n.concat(d));c+=e.val,this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)&&(p+=e.attrStr)}else c+=this.processTextOrObjNode(o,d,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(d,o);e=this.replaceEntitiesValue(e),c+=e}else c+=this.buildTextValNode(o,d,"",t)}this.options.oneListGroup&&(c=this.buildObjectNode(c,d,p,t)),i+=c}else if(this.options.attributesGroupName&&d===this.options.attributesGroupName){const t=Object.keys(e[d]),n=t.length;for(let i=0;i<n;i++)o+=this.buildAttrPairStr(t[i],""+e[d][t[i]])}else i+=this.processTextOrObjNode(e[d],d,t,n);return{attrStr:o,val:i}},dt.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},dt.prototype.buildObjectNode=function(e,t,n,o){if(""===e)return"?"===t[0]?this.indentate(o)+"<"+t+n+"?"+this.tagEndChar:this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let i="</"+t+this.tagEndChar,c="";return"?"===t[0]&&(c="?",i=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===c.length?this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(o)+"<"+t+n+c+this.tagEndChar+e+this.indentate(o)+i:this.indentate(o)+"<"+t+n+c+">"+e+i}},dt.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},dt.prototype.buildTextValNode=function(e,t,n,o){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+i+"</"+t+this.tagEndChar}},dt.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const re={validate:a};e.exports=n})()},4012:e=>{e.exports=JSON.parse('{"name":"@actions/cache","version":"6.0.0","description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","type":"module","main":"lib/cache.js","types":"lib/cache.d.ts","exports":{".":{"types":"./lib/cache.d.ts","import":"./lib/cache.js"}},"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/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1","semver":"^7.7.3"},"devDependencies":{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1","typescript":"^5.2.2"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')},7643:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr-public","description":"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native","version":"3.1000.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr-public","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr-public","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.15","@aws-sdk/credential-provider-node":"^3.972.14","@aws-sdk/middleware-host-header":"^3.972.6","@aws-sdk/middleware-logger":"^3.972.6","@aws-sdk/middleware-recursion-detection":"^3.972.6","@aws-sdk/middleware-user-agent":"^3.972.15","@aws-sdk/region-config-resolver":"^3.972.6","@aws-sdk/types":"^3.973.4","@aws-sdk/util-endpoints":"^3.996.3","@aws-sdk/util-user-agent-browser":"^3.972.6","@aws-sdk/util-user-agent-node":"^3.973.0","@smithy/config-resolver":"^4.4.9","@smithy/core":"^3.23.6","@smithy/fetch-http-handler":"^5.3.11","@smithy/hash-node":"^4.2.10","@smithy/invalid-dependency":"^4.2.10","@smithy/middleware-content-length":"^4.2.10","@smithy/middleware-endpoint":"^4.4.20","@smithy/middleware-retry":"^4.4.37","@smithy/middleware-serde":"^4.2.11","@smithy/middleware-stack":"^4.2.10","@smithy/node-config-provider":"^4.3.10","@smithy/node-http-handler":"^4.4.12","@smithy/protocol-http":"^5.3.10","@smithy/smithy-client":"^4.12.0","@smithy/types":"^4.13.0","@smithy/url-parser":"^4.2.10","@smithy/util-base64":"^4.3.1","@smithy/util-body-length-browser":"^4.2.1","@smithy/util-body-length-node":"^4.2.2","@smithy/util-defaults-mode-browser":"^4.3.36","@smithy/util-defaults-mode-node":"^4.2.39","@smithy/util-endpoints":"^3.3.1","@smithy/util-middleware":"^4.2.10","@smithy/util-retry":"^4.2.10","@smithy/util-utf8":"^4.2.1","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr-public","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr-public"}}')},121:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr","description":"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native","version":"3.1000.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.15","@aws-sdk/credential-provider-node":"^3.972.14","@aws-sdk/middleware-host-header":"^3.972.6","@aws-sdk/middleware-logger":"^3.972.6","@aws-sdk/middleware-recursion-detection":"^3.972.6","@aws-sdk/middleware-user-agent":"^3.972.15","@aws-sdk/region-config-resolver":"^3.972.6","@aws-sdk/types":"^3.973.4","@aws-sdk/util-endpoints":"^3.996.3","@aws-sdk/util-user-agent-browser":"^3.972.6","@aws-sdk/util-user-agent-node":"^3.973.0","@smithy/config-resolver":"^4.4.9","@smithy/core":"^3.23.6","@smithy/fetch-http-handler":"^5.3.11","@smithy/hash-node":"^4.2.10","@smithy/invalid-dependency":"^4.2.10","@smithy/middleware-content-length":"^4.2.10","@smithy/middleware-endpoint":"^4.4.20","@smithy/middleware-retry":"^4.4.37","@smithy/middleware-serde":"^4.2.11","@smithy/middleware-stack":"^4.2.10","@smithy/node-config-provider":"^4.3.10","@smithy/node-http-handler":"^4.4.12","@smithy/protocol-http":"^5.3.10","@smithy/smithy-client":"^4.12.0","@smithy/types":"^4.13.0","@smithy/url-parser":"^4.2.10","@smithy/util-base64":"^4.3.1","@smithy/util-body-length-browser":"^4.2.1","@smithy/util-body-length-node":"^4.2.2","@smithy/util-defaults-mode-browser":"^4.3.36","@smithy/util-defaults-mode-node":"^4.2.39","@smithy/util-endpoints":"^3.3.1","@smithy/util-middleware":"^4.2.10","@smithy/util-retry":"^4.2.10","@smithy/util-utf8":"^4.2.1","@smithy/util-waiter":"^4.2.10","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}')}};var n={};function __nccwpck_require__(e){var o=n[e];if(o!==undefined){return o.exports}var i=n[e]={exports:{}};var c=true;try{t[e].call(i.exports,i,i.exports,__nccwpck_require__);c=false}finally{if(c)delete n[e]}return i.exports}__nccwpck_require__.m=t;(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(n,o){if(o&1)n=this(n);if(o&8)return n;if(typeof n==="object"&&n){if(o&4&&n.__esModule)return n;if(o&16&&typeof n.then==="function")return n}var i=Object.create(null);__nccwpck_require__.r(i);var c={};t=t||[null,e({}),e([]),e(e)];for(var d=o&2&&n;typeof d=="object"&&!~t.indexOf(d);d=e(d)){Object.getOwnPropertyNames(d).forEach((e=>c[e]=()=>n[e]))}c["default"]=()=>n;__nccwpck_require__.d(i,c);return i}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var n in t){if(__nccwpck_require__.o(t,n)&&!__nccwpck_require__.o(e,n)){Object.defineProperty(e,n,{enumerable:true,get:t[n]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((t,n)=>{__nccwpck_require__.f[n](e,t);return t}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";(()=>{var e={792:0};var installChunk=t=>{var{ids:n,modules:o,runtime:i}=t;var c,d,p=0;for(c in o){if(__nccwpck_require__.o(o,c)){__nccwpck_require__.m[c]=o[c]}}if(i)i(__nccwpck_require__);for(;p<n.length;p++){d=n[p];if(__nccwpck_require__.o(e,d)&&e[d]){e[d][0]()}e[n[p]]=0}};__nccwpck_require__.f.j=(t,n)=>{var o=__nccwpck_require__.o(e,t)?e[t]:undefined;if(o!==0){if(o){n.push(o[1])}else{if(true){var i=import("./"+__nccwpck_require__.u(t)).then(installChunk,(n=>{if(e[t]!==0)e[t]=undefined;throw n}));var i=Promise.race([i,new Promise((n=>o=e[t]=[n]))]);n.push(o[1]=i)}}}}})();var o={};__nccwpck_require__.d(o,{i:()=>main});var i={};__nccwpck_require__.r(i);__nccwpck_require__.d(i,{AccessPolicy:()=>Ni,AppendBlobAppendBlockExceptionHeaders:()=>cl,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>ul,AppendBlobAppendBlockFromUrlHeaders:()=>ll,AppendBlobAppendBlockHeaders:()=>al,AppendBlobCreateExceptionHeaders:()=>il,AppendBlobCreateHeaders:()=>ol,AppendBlobSealExceptionHeaders:()=>pl,AppendBlobSealHeaders:()=>dl,ArrowConfiguration:()=>ji,ArrowField:()=>Yi,BlobAbortCopyFromURLExceptionHeaders:()=>Tc,BlobAbortCopyFromURLHeaders:()=>xc,BlobAcquireLeaseExceptionHeaders:()=>mc,BlobAcquireLeaseHeaders:()=>Ac,BlobBreakLeaseExceptionHeaders:()=>bc,BlobBreakLeaseHeaders:()=>Ic,BlobChangeLeaseExceptionHeaders:()=>Cc,BlobChangeLeaseHeaders:()=>Ec,BlobCopyFromURLExceptionHeaders:()=>Qc,BlobCopyFromURLHeaders:()=>Nc,BlobCreateSnapshotExceptionHeaders:()=>Bc,BlobCreateSnapshotHeaders:()=>Sc,BlobDeleteExceptionHeaders:()=>Xa,BlobDeleteHeaders:()=>Ka,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>cc,BlobDeleteImmutabilityPolicyHeaders:()=>ac,BlobDownloadExceptionHeaders:()=>Ya,BlobDownloadHeaders:()=>ja,BlobFlatListSegment:()=>xi,BlobGetAccountInfoExceptionHeaders:()=>kc,BlobGetAccountInfoHeaders:()=>Dc,BlobGetPropertiesExceptionHeaders:()=>Wa,BlobGetPropertiesHeaders:()=>Ja,BlobGetTagsExceptionHeaders:()=>Fc,BlobGetTagsHeaders:()=>Oc,BlobHierarchyListSegment:()=>ki,BlobItemInternal:()=>Ti,BlobName:()=>vi,BlobPrefix:()=>_i,BlobPropertiesInternal:()=>Pi,BlobQueryExceptionHeaders:()=>Lc,BlobQueryHeaders:()=>_c,BlobReleaseLeaseExceptionHeaders:()=>fc,BlobReleaseLeaseHeaders:()=>gc,BlobRenewLeaseExceptionHeaders:()=>yc,BlobRenewLeaseHeaders:()=>hc,BlobServiceProperties:()=>ci,BlobServiceStatistics:()=>gi,BlobSetExpiryExceptionHeaders:()=>rc,BlobSetExpiryHeaders:()=>tc,BlobSetHttpHeadersExceptionHeaders:()=>sc,BlobSetHttpHeadersHeaders:()=>nc,BlobSetImmutabilityPolicyExceptionHeaders:()=>ic,BlobSetImmutabilityPolicyHeaders:()=>oc,BlobSetLegalHoldExceptionHeaders:()=>uc,BlobSetLegalHoldHeaders:()=>lc,BlobSetMetadataExceptionHeaders:()=>pc,BlobSetMetadataHeaders:()=>dc,BlobSetTagsExceptionHeaders:()=>Mc,BlobSetTagsHeaders:()=>Uc,BlobSetTierExceptionHeaders:()=>Pc,BlobSetTierHeaders:()=>vc,BlobStartCopyFromURLExceptionHeaders:()=>Rc,BlobStartCopyFromURLHeaders:()=>wc,BlobTag:()=>wi,BlobTags:()=>Bi,BlobUndeleteExceptionHeaders:()=>ec,BlobUndeleteHeaders:()=>Za,Block:()=>Fi,BlockBlobCommitBlockListExceptionHeaders:()=>bl,BlockBlobCommitBlockListHeaders:()=>Il,BlockBlobGetBlockListExceptionHeaders:()=>Bl,BlockBlobGetBlockListHeaders:()=>Sl,BlockBlobPutBlobFromUrlExceptionHeaders:()=>fl,BlockBlobPutBlobFromUrlHeaders:()=>gl,BlockBlobStageBlockExceptionHeaders:()=>yl,BlockBlobStageBlockFromURLExceptionHeaders:()=>Cl,BlockBlobStageBlockFromURLHeaders:()=>El,BlockBlobStageBlockHeaders:()=>hl,BlockBlobUploadExceptionHeaders:()=>ml,BlockBlobUploadHeaders:()=>Al,BlockList:()=>Oi,BlockLookupList:()=>Li,ClearRange:()=>Hi,ContainerAcquireLeaseExceptionHeaders:()=>Pa,ContainerAcquireLeaseHeaders:()=>va,ContainerBreakLeaseExceptionHeaders:()=>Fa,ContainerBreakLeaseHeaders:()=>Oa,ContainerChangeLeaseExceptionHeaders:()=>Ma,ContainerChangeLeaseHeaders:()=>Ua,ContainerCreateExceptionHeaders:()=>pa,ContainerCreateHeaders:()=>da,ContainerDeleteExceptionHeaders:()=>fa,ContainerDeleteHeaders:()=>ga,ContainerFilterBlobsExceptionHeaders:()=>Ta,ContainerFilterBlobsHeaders:()=>xa,ContainerGetAccessPolicyExceptionHeaders:()=>Ca,ContainerGetAccessPolicyHeaders:()=>Ea,ContainerGetAccountInfoExceptionHeaders:()=>Va,ContainerGetAccountInfoHeaders:()=>za,ContainerGetPropertiesExceptionHeaders:()=>ma,ContainerGetPropertiesHeaders:()=>Aa,ContainerItem:()=>yi,ContainerListBlobFlatSegmentExceptionHeaders:()=>$a,ContainerListBlobFlatSegmentHeaders:()=>Ha,ContainerListBlobHierarchySegmentExceptionHeaders:()=>qa,ContainerListBlobHierarchySegmentHeaders:()=>Ga,ContainerProperties:()=>Ei,ContainerReleaseLeaseExceptionHeaders:()=>ka,ContainerReleaseLeaseHeaders:()=>Da,ContainerRenameExceptionHeaders:()=>Ra,ContainerRenameHeaders:()=>wa,ContainerRenewLeaseExceptionHeaders:()=>La,ContainerRenewLeaseHeaders:()=>_a,ContainerRestoreExceptionHeaders:()=>Ba,ContainerRestoreHeaders:()=>Sa,ContainerSetAccessPolicyExceptionHeaders:()=>ba,ContainerSetAccessPolicyHeaders:()=>Ia,ContainerSetMetadataExceptionHeaders:()=>ya,ContainerSetMetadataHeaders:()=>ha,ContainerSubmitBatchExceptionHeaders:()=>Qa,ContainerSubmitBatchHeaders:()=>Na,CorsRule:()=>pi,DelimitedTextConfiguration:()=>zi,FilterBlobItem:()=>Si,FilterBlobSegment:()=>bi,GeoReplication:()=>fi,JsonTextConfiguration:()=>Vi,KeyInfo:()=>Ci,ListBlobsFlatSegmentResponse:()=>Qi,ListBlobsHierarchySegmentResponse:()=>Di,ListContainersSegmentResponse:()=>hi,Logging:()=>li,Metrics:()=>di,PageBlobClearPagesExceptionHeaders:()=>Vc,PageBlobClearPagesHeaders:()=>zc,PageBlobCopyIncrementalExceptionHeaders:()=>sl,PageBlobCopyIncrementalHeaders:()=>nl,PageBlobCreateExceptionHeaders:()=>$c,PageBlobCreateHeaders:()=>Hc,PageBlobGetPageRangesDiffExceptionHeaders:()=>Xc,PageBlobGetPageRangesDiffHeaders:()=>Kc,PageBlobGetPageRangesExceptionHeaders:()=>Wc,PageBlobGetPageRangesHeaders:()=>Jc,PageBlobResizeExceptionHeaders:()=>el,PageBlobResizeHeaders:()=>Zc,PageBlobUpdateSequenceNumberExceptionHeaders:()=>rl,PageBlobUpdateSequenceNumberHeaders:()=>tl,PageBlobUploadPagesExceptionHeaders:()=>qc,PageBlobUploadPagesFromURLExceptionHeaders:()=>Yc,PageBlobUploadPagesFromURLHeaders:()=>jc,PageBlobUploadPagesHeaders:()=>Gc,PageList:()=>Ui,PageRange:()=>Mi,QueryFormat:()=>qi,QueryRequest:()=>$i,QuerySerialization:()=>Gi,RetentionPolicy:()=>ui,ServiceFilterBlobsExceptionHeaders:()=>ua,ServiceFilterBlobsHeaders:()=>la,ServiceGetAccountInfoExceptionHeaders:()=>ia,ServiceGetAccountInfoHeaders:()=>oa,ServiceGetPropertiesExceptionHeaders:()=>Xi,ServiceGetPropertiesHeaders:()=>Ki,ServiceGetStatisticsExceptionHeaders:()=>ea,ServiceGetStatisticsHeaders:()=>Zi,ServiceGetUserDelegationKeyExceptionHeaders:()=>sa,ServiceGetUserDelegationKeyHeaders:()=>na,ServiceListContainersSegmentExceptionHeaders:()=>ra,ServiceListContainersSegmentHeaders:()=>ta,ServiceSetPropertiesExceptionHeaders:()=>Wi,ServiceSetPropertiesHeaders:()=>Ji,ServiceSubmitBatchExceptionHeaders:()=>ca,ServiceSubmitBatchHeaders:()=>aa,SignedIdentifier:()=>Ri,StaticWebsite:()=>Ai,StorageError:()=>mi,UserDelegationKey:()=>Ii});var c=__nccwpck_require__(857);function utils_toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function utils_toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}function command_issueCommand(e,t,n){const o=new Command(e,t,n);process.stdout.write(o.toString()+c.EOL)}function command_issue(e,t=""){command_issueCommand(e,{},t)}const d="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=d+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const o=this.properties[n];if(o){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(o)}`}}}}e+=`${d}${escapeData(this.message)}`;return e}}function escapeData(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var p=__nccwpck_require__(6982);var y=__nccwpck_require__(9896);function file_command_issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!y.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}y.appendFileSync(n,`${utils_toCommandValue(t)}${c.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(e,t){const n=`ghadelimiter_${p.randomUUID()}`;const o=utils_toCommandValue(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(o.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${c.EOL}${o}${c.EOL}${n}`}var C=__nccwpck_require__(6928);var Q=__nccwpck_require__.n(C);var v=__nccwpck_require__(8611);var D=__nccwpck_require__.t(v,2);var k=__nccwpck_require__(5692);var $=__nccwpck_require__.t(k,2);function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var V=__nccwpck_require__(770);var ee=__nccwpck_require__(6752);var te=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var re;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(re||(re={}));var ne;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(ne||(ne={}));var se;(function(e){e["ApplicationJson"]="application/json"})(se||(se={}));function lib_getProxyUrl(e){const t=pm.getProxyUrl(new URL(e));return t?t.href:""}const oe=[re.MovedPermanently,re.ResourceMoved,re.SeeOther,re.TemporaryRedirect,re.PermanentRedirect];const ie=[re.BadGateway,re.ServiceUnavailable,re.GatewayTimeout];const ae=["OPTIONS","GET","DELETE","HEAD"];const ce=10;const le=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(e){this.message=e}readBody(){return te(this,void 0,void 0,(function*(){return new Promise((e=>te(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return te(this,void 0,void 0,(function*(){return new Promise((e=>te(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class lib_HttpClient{constructor(e,t,n){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=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return te(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return te(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return te(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return te(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return te(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return te(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return te(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return te(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e){return te(this,arguments,void 0,(function*(e,t={}){t[ne.Accept]=this._getExistingOrDefaultHeader(t,ne.Accept,se.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t){return te(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[ne.Accept]=this._getExistingOrDefaultHeader(n,ne.Accept,se.ApplicationJson);n[ne.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,se.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t){return te(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[ne.Accept]=this._getExistingOrDefaultHeader(n,ne.Accept,se.ApplicationJson);n[ne.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,se.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t){return te(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[ne.Accept]=this._getExistingOrDefaultHeader(n,ne.Accept,se.ApplicationJson);n[ne.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,se.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return te(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let c=this._prepareRequest(e,i,o);const d=this._allowRetries&&ae.includes(e)?this._maxRetries+1:1;let p=0;let y;do{y=yield this.requestRaw(c,n);if(y&&y.message&&y.message.statusCode===re.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,c,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&oe.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const d=y.message.headers["location"];if(!d){break}const p=new URL(d);if(i.protocol==="https:"&&i.protocol!==p.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 y.readBody();if(p.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}c=this._prepareRequest(e,p,o);y=yield this.requestRaw(c,n);t--}if(!y.message.statusCode||!ie.includes(y.message.statusCode)){return y}p+=1;if(p<d){yield y.readBody();yield this._performExponentialBackoff(p)}}while(p<d);return y}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return te(this,void 0,void 0,(function*(){return new Promise(((n,o)=>{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let c;i.on("socket",(e=>{c=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?$:D;const c=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):c;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){o=typeof e==="number"?e.toString():e}}const i=e[t];if(i!==undefined){return typeof i==="number"?i.toString():i}if(o!==undefined){return o}return n}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[ne.ContentType];if(e){if(typeof e==="number"){n=String(e)}else if(Array.isArray(e)){n=e.join(", ")}else{n=e}}}const o=e[ne.ContentType];if(o!==undefined){if(typeof o==="number"){return String(o)}else if(Array.isArray(o)){return o.join(", ")}else{return o}}if(n!==undefined){return n}return t}_getAgent(e){let t;const n=getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||v.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const d=n.protocol==="https:";if(i){o=d?V.httpsOverHttps:V.httpsOverHttp}else{o=d?V.httpOverHttps:V.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=i?new k.Agent(e):new v.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new ee.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const n=process.env["ACTIONS_ORCHESTRATION_ID"];if(n){const e=n.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return te(this,void 0,void 0,(function*(){e=Math.min(ce,e);const t=le*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return te(this,void 0,void 0,(function*(){return new Promise(((n,o)=>te(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const c={statusCode:i,result:null,headers:{}};if(i===re.NotFound){n(c)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let d;let p;try{p=yield e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){d=JSON.parse(p,dateTimeDeserializer)}else{d=JSON.parse(p)}c.result=d}c.headers=e.message.headers}catch(e){}if(i>299){let e;if(d&&d.message){e=d.message}else if(p&&p.length>0){e=p}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=c.result;o(t)}else{n(c)}}))))}))}}const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});var ue=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return ue(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class auth_BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return ue(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return ue(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}var de=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],n)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){return de(this,void 0,void 0,(function*(){var t;const n=oidc_utils_OidcClient.createHttpClient();const o=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const i=(t=o.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return de(this,void 0,void 0,(function*(){try{let t=oidc_utils_OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}debug(`ID token url is ${t}`);const n=yield oidc_utils_OidcClient.getCall(t);setSecret(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}var pe=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const{access:Ae,appendFile:me,writeFile:ge}=y.promises;const fe="GITHUB_STEP_SUMMARY";const he="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return pe(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[fe];if(!e){throw new Error(`Unable to find environment variable for $${fe}. Check if your runtime environment supports job summaries.`)}try{yield Ae(e,y.constants.R_OK|y.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,n={}){const o=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${o}>`}return`<${e}${o}>${t}</${e}>`}write(e){return pe(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const o=t?ge:me;yield o(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return pe(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(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(c.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const o=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(n,o);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:n,colspan:o,rowspan:i}=e;const c=t?"th":"td";const d=Object.assign(Object.assign({},o&&{colspan:o}),i&&{rowspan:i});return this.wrap(c,n,d)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:o,height:i}=n||{};const c=Object.assign(Object.assign({},o&&{width:o}),i&&{height:i});const d=this.wrap("img",null,Object.assign({src:e,alt:t},c));return this.addRaw(d).addEOL()}addHeading(e,t){const n=`h${t}`;const o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const i=this.wrap(o,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t});const o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}}const ye=new Summary;const Ee=null&&ye;const Ce=null&&ye;function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,path.sep)}var Ie=__nccwpck_require__(3193);var be=__nccwpck_require__(4434);const Se=e(import.meta.url)("child_process");var Be=__nccwpck_require__(2613);var we=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const{chmod:Re,copyFile:Ne,lstat:Qe,mkdir:xe,open:Te,readdir:ve,rename:Pe,rm:De,rmdir:ke,stat:_e,symlink:Le,unlink:Oe}=y.promises;const Fe=process.platform==="win32";function readlink(e){return we(this,void 0,void 0,(function*(){const t=yield y.promises.readlink(e);if(Fe&&!t.endsWith("\\")){return`${t}\\`}return t}))}const Ue=268435456;const Me=y.constants.O_RDONLY;function exists(e){return we(this,void 0,void 0,(function*(){try{yield _e(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}function isDirectory(e){return we(this,arguments,void 0,(function*(e,t=false){const n=t?yield _e(e):yield Qe(e);return n.isDirectory()}))}function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(Fe){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function tryGetExecutablePath(e,t){return we(this,void 0,void 0,(function*(){let n=undefined;try{n=yield _e(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(Fe){const n=C.extname(e).toUpperCase();if(t.some((e=>e.toUpperCase()===n))){return e}}else{if(isUnixExecutable(n)){return e}}}const o=e;for(const i of t){e=o+i;n=undefined;try{n=yield _e(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(Fe){try{const t=C.dirname(e);const n=C.basename(e).toUpperCase();for(const o of yield ve(t)){if(n===o.toUpperCase()){e=C.join(t,o);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}function normalizeSeparators(e){e=e||"";if(Fe){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==undefined&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==undefined&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}var He=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function io_cp(e,t){return He(this,arguments,void 0,(function*(e,t,n={}){const{force:o,recursive:i,copySourceDirectory:c}=readCopyOptions(n);const d=(yield exists(t))?yield _e(t):null;if(d&&d.isFile()&&!o){return}const p=d&&d.isDirectory()&&c?C.join(t,C.basename(e)):t;if(!(yield exists(e))){throw new Error(`no such file or directory: ${e}`)}const y=yield _e(e);if(y.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,p,0,o)}}else{if(C.relative(e,p)===""){throw new Error(`'${p}' and '${e}' are the same file`)}yield io_copyFile(e,p,o)}}))}function mv(e,t){return He(this,arguments,void 0,(function*(e,t,n={}){if(yield ioUtil.exists(t)){let o=true;if(yield ioUtil.isDirectory(t)){t=path.join(t,path.basename(e));o=yield ioUtil.exists(t)}if(o){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(t));yield ioUtil.rename(e,t)}))}function rmRF(e){return He(this,void 0,void 0,(function*(){if(Fe){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield De(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function mkdirP(e){return He(this,void 0,void 0,(function*(){(0,Be.ok)(e,"a path argument must be provided");yield xe(e,{recursive:true})}))}function which(e,t){return He(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(Fe){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}function findInPath(e){return He(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(Fe&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(C.delimiter)){if(e){t.push(e)}}}if(isRooted(e)){const n=yield tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(C.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(C.delimiter)){if(e){n.push(e)}}}const o=[];for(const i of n){const n=yield tryGetExecutablePath(C.join(i,e),t);if(n){o.push(n)}}return o}))}function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const o=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:o}}function cpDirRecursive(e,t,n,o){return He(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const i=yield ve(e);for(const c of i){const i=`${e}/${c}`;const d=`${t}/${c}`;const p=yield Qe(i);if(p.isDirectory()){yield cpDirRecursive(i,d,n,o)}else{yield io_copyFile(i,d,o)}}yield Re(t,(yield _e(e)).mode)}))}function io_copyFile(e,t,n){return He(this,void 0,void 0,(function*(){if((yield Qe(e)).isSymbolicLink()){try{yield Qe(t);yield Oe(t)}catch(e){if(e.code==="EPERM"){yield Re(t,"0666");yield Oe(t)}}const n=yield readlink(e);yield Le(n,t,Fe?"junction":null)}else if(!(yield exists(t))||n){yield Ne(e,t)}}))}const $e=e(import.meta.url)("timers");var Ge=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const qe=process.platform==="win32";class ToolRunner extends be.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const o=this._getSpawnArgs(e);let i=t?"":"[command]";if(qe){if(this._isCmdFile()){i+=n;for(const e of o){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of o){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(n);for(const e of o){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=n;for(const e of o){i+=` ${e}`}}return i}_processLineBuffer(e,t,n){try{let o=t+e.toString();let i=o.indexOf(c.EOL);while(i>-1){const e=o.substring(0,i);n(e);o=o.substring(i+c.EOL.length);i=o.indexOf(c.EOL)}return o}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(qe){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(qe){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const o of e){if(t.some((e=>e===o))){n=true;break}}if(!n){return e}let o='"';let i=true;for(let t=e.length;t>0;t--){o+=e[t-1];if(i&&e[t-1]==="\\"){o+="\\"}else if(e[t-1]==='"'){i=true;o+='"'}else{i=false}}o+='"';return o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let n=true;for(let o=e.length;o>0;o--){t+=e[o-1];if(n&&e[o-1]==="\\"){t+="\\"}else if(e[o-1]==='"'){n=true;t+="\\"}else{n=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return Ge(this,void 0,void 0,(function*(){if(!isRooted(this.toolPath)&&(this.toolPath.includes("/")||qe&&this.toolPath.includes("\\"))){this.toolPath=C.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield which(this.toolPath,true);return new Promise(((e,t)=>Ge(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+c.EOL)}const o=new ExecState(n,this.toolPath);o.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const d=Se.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i));let p="";if(d.stdout){d.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let y="";if(d.stderr){d.stderr.on("data",(e=>{o.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}y=this._processLineBuffer(e,y,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}d.on("error",(e=>{o.processError=e.message;o.processExited=true;o.processClosed=true;o.CheckComplete()}));d.on("exit",(e=>{o.processExitCode=e;o.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);o.CheckComplete()}));d.on("close",(e=>{o.processExitCode=e;o.processExited=true;o.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);o.CheckComplete()}));o.on("done",((n,o)=>{if(p.length>0){this.emit("stdline",p)}if(y.length>0){this.emit("errline",y)}d.removeAllListeners();if(n){t(n)}else{e(o)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}function argStringToArray(e){const t=[];let n=false;let o=false;let i="";function append(e){if(o&&e!=='"'){i+="\\"}i+=e;o=false}for(let c=0;c<e.length;c++){const d=e.charAt(c);if(d==='"'){if(!o){n=!n}else{append(d)}continue}if(d==="\\"&&o){append(d);continue}if(d==="\\"&&n){o=true;continue}if(d===" "&&!n){if(i.length>0){t.push(i);i=""}continue}append(d)}if(i.length>0){t.push(i.trim())}return t}class ExecState extends be.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,$e.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}var ze=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function exec_exec(e,t,n){return ze(this,void 0,void 0,(function*(){const o=argStringToArray(e);if(o.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=o[0];t=o.slice(1).concat(t||[]);const c=new ToolRunner(i,t,n);return c.exec()}))}function getExecOutput(e,t,n){return ze(this,void 0,void 0,(function*(){var o,i;let c="";let d="";const p=new Ie.StringDecoder("utf8");const y=new Ie.StringDecoder("utf8");const C=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stdout;const Q=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{d+=y.write(e);if(Q){Q(e)}};const stdOutListener=e=>{c+=p.write(e);if(C){C(e)}};const v=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const D=yield exec_exec(e,t,Object.assign(Object.assign({},n),{listeners:v}));c+=p.end();d+=y.end();return{exitCode:D,stdout:c,stderr:d}}))}var Ve=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const getWindowsInfo=()=>Ve(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>Ve(void 0,void 0,void 0,(function*(){var e,t,n,o;const{stdout:i}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const c=(t=(e=i.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const d=(o=(n=i.match(/ProductName:\s*(.+)/))===null||n===void 0?void 0:n[1])!==null&&o!==void 0?o:"";return{name:d,version:c}}));const getLinuxInfo=()=>Ve(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,n]=e.trim().split("\n");return{name:t,version:n}}));const je=c.platform();const Ye=c.arch();const Je=je==="win32";const We=je==="darwin";const Ke=je==="linux";function getDetails(){return Ve(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield Je?getWindowsInfo():We?getMacOsInfo():getLinuxInfo()),{platform:je,arch:Ye,isWindows:Je,isMacOS:We,isLinux:Ke})}))}var Xe=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Ze;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(Ze||(Ze={}));function exportVariable(e,t){const n=toCommandValue(t);process.env[e]=n;const o=process.env["GITHUB_ENV"]||"";if(o){return issueFileCommand("ENV",prepareKeyValueMessage(e,t))}issueCommand("set-env",{name:e},n)}function core_setSecret(e){command_issueCommand("add-mask",{},e)}function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){issueFileCommand("PATH",e)}else{issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${path.delimiter}${process.env["PATH"]}`}function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}function getBooleanInput(e,t){const n=["true","True","TRUE"];const o=["false","False","FALSE"];const i=getInput(e,t);if(n.includes(i))return true;if(o.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(e,t){const n=process.env["GITHUB_OUTPUT"]||"";if(n){return issueFileCommand("OUTPUT",prepareKeyValueMessage(e,t))}process.stdout.write(os.EOL);issueCommand("set-output",{name:e},toCommandValue(t))}function setCommandEcho(e){issue("echo",e?"on":"off")}function setFailed(e){process.exitCode=Ze.Failure;core_error(e)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(e){command_issueCommand("debug",{},e)}function core_error(e,t={}){command_issueCommand("error",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function warning(e,t={}){command_issueCommand("warning",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function notice(e,t={}){issueCommand("notice",toCommandProperties(t),e instanceof Error?e.toString():e)}function info(e){process.stdout.write(e+c.EOL)}function startGroup(e){command_issue("group",e)}function endGroup(){command_issue("endgroup")}function group(e,t){return Xe(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){return file_command_issueFileCommand("STATE",file_command_prepareKeyValueMessage(e,t))}command_issueCommand("save-state",{name:e},utils_toCommandValue(t))}function getState(e){return process.env[`STATE_${e}`]||""}function getIDToken(e){return Xe(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(e)}))}var At=__nccwpck_require__(2088);var mt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const ht={readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let n="";if(y.existsSync(e)){n=y.readFileSync(e).toString()}else if(y.existsSync(t)){n=y.readFileSync(t).toString()}return n}};function _findMatch(e,t,n,o){return mt(this,void 0,void 0,(function*(){const i=os.platform();let c;let d;let p;for(const c of n){const n=c.version;debug(`check ${n} satisfies ${e}`);if(semver.satisfies(n,e)&&(!t||c.stable===t)){p=c.files.find((e=>{debug(`${e.arch}===${o} && ${e.platform}===${i}`);let t=e.arch===o&&e.platform===i;if(t&&e.platform_version){const n=_getOsVersion();if(n===e.platform_version){t=true}else{t=semver.satisfies(n,e.platform_version)}}return t}));if(p){debug(`matched ${c.version}`);d=c;break}}}if(d&&p){c=Object.assign({},d);c.files=[p]}return c}))}function _getOsVersion(){const e=os.platform();let t="";if(e==="darwin"){t=cp.execSync("sw_vers -productVersion").toString()}else if(e==="linux"){const e=ht.readLinuxVersionFile();if(e){const n=e.split("\n");for(const e of n){const n=e.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){t=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return t}function _readLinuxVersionFile(){return ht.readLinuxVersionFile()}var yt=__nccwpck_require__(2203);var Et=__nccwpck_require__(9023);var Ct=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class retry_helper_RetryHelper{constructor(e,t,n){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(n);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return Ct(this,void 0,void 0,(function*(){let n=1;while(n<this.maxAttempts){try{return yield e()}catch(e){if(t&&!t(e)){throw e}core.info(e.message)}const o=this.getSleepAmount();core.info(`Waiting ${o} seconds before trying again`);yield this.sleep(o);n++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Ct(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e*1e3)))}))}}var It=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}const bt=process.platform==="win32";const St=process.platform==="darwin";const Bt="actions/tool-cache";function downloadTool(e,t,n,o){return It(this,void 0,void 0,(function*(){t=t||path.join(_getTempDirectory(),crypto.randomUUID());yield io.mkdirP(path.dirname(t));core.debug(`Downloading ${e}`);core.debug(`Destination ${t}`);const i=3;const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const d=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const p=new RetryHelper(i,c,d);return yield p.execute((()=>It(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",n,o)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}function downloadToolAttempt(e,t,n,o){return It(this,void 0,void 0,(function*(){if(fs.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const i=new httpm.HttpClient(Bt,[],{allowRetries:false});if(n){core.debug("set auth");if(o===undefined){o={}}o.authorization=n}const c=yield i.get(e,o);if(c.message.statusCode!==200){const t=new HTTPError(c.message.statusCode);core.debug(`Failed to download from "${e}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`);throw t}const d=util.promisify(stream.pipeline);const p=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>c.message));const y=p();let C=false;try{yield d(y,fs.createWriteStream(t));core.debug("download complete");C=true;return t}finally{if(!C){core.debug("download failed");try{yield io.rmRF(t)}catch(e){core.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,n){return It(this,void 0,void 0,(function*(){ok(bt,"extract7z() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const o=process.cwd();process.chdir(t);if(n){try{const t=core.isDebug()?"-bb1":"-bb0";const o=["x",t,"-bd","-sccUTF-8",e];const i={silent:true};yield exec(`"${n}"`,o,i)}finally{process.chdir(o)}}else{const n=path.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const c=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const d=`& '${n}' -Source '${i}' -Target '${c}'`;const p=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",d];const y={silent:true};try{const e=yield io.which("powershell",true);yield exec(`"${e}"`,p,y)}finally{process.chdir(o)}}return t}))}function extractTar(e,t){return It(this,arguments,void 0,(function*(e,t,n="xz"){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);core.debug("Checking tar --version");let o="";yield exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>o+=e.toString(),stderr:e=>o+=e.toString()}});core.debug(o.trim());const i=o.toUpperCase().includes("GNU TAR");let c;if(n instanceof Array){c=n}else{c=[n]}if(core.isDebug()&&!n.includes("v")){c.push("-v")}let d=t;let p=e;if(bt&&i){c.push("--force-local");d=t.replace(/\\/g,"/");p=e.replace(/\\/g,"/")}if(i){c.push("--warning=no-unknown-keyword");c.push("--overwrite")}c.push("-C",d,"-f",p);yield exec(`tar`,c);return t}))}function extractXar(e,t){return It(this,arguments,void 0,(function*(e,t,n=[]){ok(St,"extractXar() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let o;if(n instanceof Array){o=n}else{o=[n]}o.push("-x","-C",t,"-f",e);if(core.isDebug()){o.push("-v")}const i=yield io.which("xar",true);yield exec(`"${i}"`,_unique(o));return t}))}function extractZip(e,t){return It(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(bt){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}function extractZipWin(e,t){return It(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=yield io.which("pwsh",false);if(i){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${o}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${o}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];core.debug(`Using pwsh at path: ${i}`);yield exec(`"${i}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${o}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${o}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const i=yield io.which("powershell",true);core.debug(`Using powershell at path: ${i}`);yield exec(`"${i}"`,t)}}))}function extractZipNix(e,t){return It(this,void 0,void 0,(function*(){const n=yield io.which("unzip",true);const o=[e];if(!core.isDebug()){o.unshift("-q")}o.unshift("-o");yield exec(`"${n}"`,o,{cwd:t})}))}function cacheDir(e,t,n,o){return It(this,void 0,void 0,(function*(){n=At.clean(n)||n;o=o||c.arch();core_debug(`Caching tool ${t} ${n} ${o}`);core_debug(`source dir: ${e}`);if(!y.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const i=yield _createToolPath(t,n,o);for(const t of y.readdirSync(e)){const n=C.join(e,t);yield io_cp(n,i,{recursive:true})}_completeToolPath(t,n,o);return i}))}function cacheFile(e,t,n,o,i){return It(this,void 0,void 0,(function*(){o=semver.clean(o)||o;i=i||os.arch();core.debug(`Caching tool ${n} ${o} ${i}`);core.debug(`source file: ${e}`);if(!fs.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const c=yield _createToolPath(n,o,i);const d=path.join(c,t);core.debug(`destination file ${d}`);yield io.cp(e,d);_completeToolPath(n,o,i);return c}))}function find(e,t,n){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}n=n||c.arch();if(!isExplicitVersion(t)){const o=findAllVersions(e,n);const i=evaluateVersions(o,t);t=i}let o="";if(t){t=At.clean(t)||"";const i=C.join(_getCacheDirectory(),e,t,n);core_debug(`checking cache: ${i}`);if(y.existsSync(i)&&y.existsSync(`${i}.complete`)){core_debug(`Found tool in cache ${e} ${t} ${n}`);o=i}else{core_debug("not found")}}return o}function findAllVersions(e,t){const n=[];t=t||c.arch();const o=C.join(_getCacheDirectory(),e);if(y.existsSync(o)){const e=y.readdirSync(o);for(const i of e){if(isExplicitVersion(i)){const e=C.join(o,i,t||"");if(y.existsSync(e)&&y.existsSync(`${e}.complete`)){n.push(i)}}}}return n}function getManifestFromRepo(e,t,n){return It(this,arguments,void 0,(function*(e,t,n,o="master"){let i=[];const c=`https://api.github.com/repos/${e}/${t}/git/trees/${o}`;const d=new httpm.HttpClient("tool-cache");const p={};if(n){core.debug("set auth");p.authorization=n}const y=yield d.getJson(c,p);if(!y.result){return i}let C="";for(const e of y.result.tree){if(e.path==="versions-manifest.json"){C=e.url;break}}p["accept"]="application/vnd.github.VERSION.raw";let Q=yield(yield d.get(C,p)).readBody();if(Q){Q=Q.replace(/^\uFEFF/,"");try{i=JSON.parse(Q)}catch(e){core.debug("Invalid json")}}return i}))}function findFromManifest(e,t,n){return It(this,arguments,void 0,(function*(e,t,n,o=os.arch()){const i=yield mm._findMatch(e,t,n,o);return i}))}function _createExtractFolder(e){return It(this,void 0,void 0,(function*(){if(!e){e=path.join(_getTempDirectory(),crypto.randomUUID())}yield io.mkdirP(e);return e}))}function _createToolPath(e,t,n){return It(this,void 0,void 0,(function*(){const o=C.join(_getCacheDirectory(),e,At.clean(t)||t,n||"");core_debug(`destination ${o}`);const i=`${o}.complete`;yield rmRF(o);yield rmRF(i);yield mkdirP(o);return o}))}function _completeToolPath(e,t,n){const o=C.join(_getCacheDirectory(),e,At.clean(t)||t,n||"");const i=`${o}.complete`;y.writeFileSync(i,"");core_debug("finished caching tool")}function isExplicitVersion(e){const t=At.clean(e)||"";core_debug(`isExplicit: ${t}`);const n=At.valid(t)!=null;core_debug(`explicit? ${n}`);return n}function evaluateVersions(e,t){let n="";core_debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(At.gt(e,t)){return 1}return-1}));for(let o=e.length-1;o>=0;o--){const i=e[o];const c=At.satisfies(i,t);if(c){n=i;break}}if(n){core_debug(`matched: ${n}`)}else{core_debug("match not found")}return n}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,Be.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const n=global[e];return n!==undefined?n:t}function _unique(e){return Array.from(new Set(e))}function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true,excludeHiddenFiles:false};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;core_debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;core_debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;core_debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;core_debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}if(typeof e.excludeHiddenFiles==="boolean"){t.excludeHiddenFiles=e.excludeHiddenFiles;core_debug(`excludeHiddenFiles '${t.excludeHiddenFiles}'`)}}return t}const wt=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(wt&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=C.dirname(e);if(wt&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}function ensureAbsoluteRoot(e,t){Be(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);Be(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(wt){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();Be(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(internal_path_helper_normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();Be(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}Be(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||wt&&e.endsWith("\\")){}else{e+=C.sep}return e+t}function hasAbsoluteRoot(e){Be(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=internal_path_helper_normalizeSeparators(e);if(wt){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}function hasRoot(e){Be(e,`isRooted parameter 'itemPath' must not be empty`);e=internal_path_helper_normalizeSeparators(e);if(wt){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function internal_path_helper_normalizeSeparators(e){e=e||"";if(wt){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function safeTrimTrailingSeparator(e){if(!e){return""}e=internal_path_helper_normalizeSeparators(e);if(!e.endsWith(C.sep)){return e}if(e===C.sep){return e}if(wt&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}var Rt;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(Rt||(Rt={}));const Nt=process.platform==="win32";function getSearchPaths(e){e=e.filter((e=>!e.negate));const t={};for(const n of e){const e=Nt?n.searchPath.toUpperCase():n.searchPath;t[e]="candidate"}const n=[];for(const o of e){const e=Nt?o.searchPath.toUpperCase():o.searchPath;if(t[e]==="included"){continue}let i=false;let c=e;let d=dirname(c);while(d!==c){if(t[d]){i=true;break}c=d;d=dirname(c)}if(!i){n.push(o.searchPath);t[e]="included"}}return n}function internal_pattern_helper_match(e,t){let n=Rt.None;for(const o of e){if(o.negate){n&=~o.match(t)}else{n|=o.match(t)}}return n}function internal_pattern_helper_partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}var Qt=__nccwpck_require__(3772);const xt=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){Be(e,`Parameter 'itemPath' must not be empty`);e=safeTrimTrailingSeparator(e);if(!hasRoot(e)){this.segments=e.split(C.sep)}else{let t=e;let n=dirname(t);while(n!==t){const e=C.basename(t);this.segments.unshift(e);t=n;n=dirname(t)}this.segments.unshift(t)}}else{Be(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t<e.length;t++){let n=e[t];Be(n,`Parameter 'itemPath' must not contain any empty segments`);n=internal_path_helper_normalizeSeparators(e[t]);if(t===0&&hasRoot(n)){n=safeTrimTrailingSeparator(n);Be(n===dirname(n),`Parameter 'itemPath' root segment contains information for multiple segments`);this.segments.push(n)}else{Be(!n.includes(C.sep),`Parameter 'itemPath' contains unexpected path separators`);this.segments.push(n)}}}}toString(){let e=this.segments[0];let t=e.endsWith(C.sep)||xt&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++){if(t){t=false}else{e+=C.sep}e+=this.segments[n]}return e}}const{Minimatch:Tt}=Qt;const vt=process.platform==="win32";class Pattern{constructor(e,t=false,n,o){this.negate=false;let i;if(typeof e==="string"){i=e.trim()}else{n=n||[];Be(n.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(n[0]);Be(t&&hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);i=new Path(n).toString().trim();if(e){i=`!${i}`}}while(i.startsWith("!")){this.negate=!this.negate;i=i.substr(1).trim()}i=Pattern.fixupPattern(i,o);this.segments=new Path(i).segments;this.trailingSeparator=internal_path_helper_normalizeSeparators(i).endsWith(C.sep);i=safeTrimTrailingSeparator(i);let c=false;const d=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!c&&!(c=e==="")));this.searchPath=new Path(d).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(d[0]),vt?"i":"");this.isImplicitPattern=t;const p={dot:true,nobrace:true,nocase:vt,nocomment:true,noext:true,nonegate:true};i=vt?i.replace(/\\/g,"/"):i;this.minimatch=new Tt(i,p)}match(e){if(this.segments[this.segments.length-1]==="**"){e=internal_path_helper_normalizeSeparators(e);if(!e.endsWith(C.sep)&&this.isImplicitPattern===false){e=`${e}${C.sep}`}}else{e=safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?Rt.Directory:Rt.All}return Rt.None}partialMatch(e){e=safeTrimTrailingSeparator(e);if(dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(vt?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(vt?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){Be(e,"pattern cannot be empty");const n=new Path(e).segments.map((e=>Pattern.getLiteral(e)));Be(n.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);Be(!hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=internal_path_helper_normalizeSeparators(e);if(e==="."||e.startsWith(`.${C.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${C.sep}`)){t=t||c.homedir();Be(t,"Unable to determine HOME directory");Be(hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(vt&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(vt&&(e==="\\"||e.match(/^\\[^\\]/))){let t=ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return internal_path_helper_normalizeSeparators(e)}static getLiteral(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(o==="\\"&&!vt&&n+1<e.length){t+=e[++n];continue}else if(o==="*"||o==="?"){return""}else if(o==="["&&n+1<e.length){let o="";let i=-1;for(let t=n+1;t<e.length;t++){const n=e[t];if(n==="\\"&&!vt&&t+1<e.length){o+=e[++t];continue}else if(n==="]"){i=t;break}else{o+=n}}if(i>=0){if(o.length>1){return""}if(o){t+=o;n=i;continue}}}t+=o}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}class SearchState{constructor(e,t){this.path=e;this.level=t}}var Pt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Dt=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};var kt=undefined&&undefined.__await||function(e){return this instanceof kt?(this.v=e,this):new kt(e)};var _t=undefined&&undefined.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),i,c=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),i[Symbol.asyncIterator]=function(){return this},i;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(o[e]){i[e]=function(t){return new Promise((function(n,o){c.push([e,t,n,o])>1||resume(e,t)}))};if(t)i[e]=t(i[e])}}function resume(e,t){try{step(o[e](t))}catch(e){settle(c[0][3],e)}}function step(e){e.value instanceof kt?Promise.resolve(e.value.v).then(fulfill,reject):settle(c[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),c.shift(),c.length)resume(c[0][0],c[0][1])}};const Lt=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Pt(this,void 0,void 0,(function*(){var e,t,n,o;const i=[];try{for(var c=true,d=Dt(this.globGenerator()),p;p=yield d.next(),e=p.done,!e;c=true){o=p.value;c=false;const e=o;i.push(e)}}catch(e){t={error:e}}finally{try{if(!c&&!e&&(n=d.return))yield n.call(d)}finally{if(t)throw t.error}}return i}))}globGenerator(){return _t(this,arguments,(function*globGenerator_1(){const e=getOptions(this.options);const t=[];for(const n of this.patterns){t.push(n);if(e.implicitDescendants&&(n.trailingSeparator||n.segments[n.segments.length-1]!=="**")){t.push(new Pattern(n.negate,true,n.segments.concat("**")))}}const n=[];for(const e of getSearchPaths(t)){core_debug(`Search path '${e}'`);try{yield kt(y.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}n.unshift(new SearchState(e,1))}const o=[];while(n.length){const i=n.pop();const c=internal_pattern_helper_match(t,i.path);const d=!!c||internal_pattern_helper_partialMatch(t,i.path);if(!c&&!d){continue}const p=yield kt(DefaultGlobber.stat(i,e,o));if(!p){continue}if(e.excludeHiddenFiles&&C.basename(i.path).match(/^\./)){continue}if(p.isDirectory()){if(c&Rt.Directory&&e.matchDirectories){yield yield kt(i.path)}else if(!d){continue}const t=i.level+1;const o=(yield kt(y.promises.readdir(i.path))).map((e=>new SearchState(C.join(i.path,e),t)));n.push(...o.reverse())}else if(c&Rt.File){yield yield kt(i.path)}}}))}static create(e,t){return Pt(this,void 0,void 0,(function*(){const n=new DefaultGlobber(t);if(Lt){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const o=e.split("\n").map((e=>e.trim()));for(const e of o){if(!e||e.startsWith("#")){continue}else{n.patterns.push(new Pattern(e))}}n.searchPaths.push(...getSearchPaths(n.patterns));return n}))}static stat(e,t,n){return Pt(this,void 0,void 0,(function*(){let o;if(t.followSymbolicLinks){try{o=yield y.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){core_debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}}else{o=yield y.promises.lstat(e.path)}if(o.isDirectory()&&t.followSymbolicLinks){const t=yield y.promises.realpath(e.path);while(n.length>=e.level){n.pop()}if(n.some((e=>e===t))){core_debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}n.push(t)}return o}))}}var Ot=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Ft=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};function hashFiles(e,t){return Ot(this,arguments,void 0,(function*(e,t,n=false){var o,i,c,d;var p;const y=n?core.info:core.debug;let C=false;const Q=t?t:(p=process.env["GITHUB_WORKSPACE"])!==null&&p!==void 0?p:process.cwd();const v=crypto.createHash("sha256");let D=0;try{for(var k=true,$=Ft(e.globGenerator()),V;V=yield $.next(),o=V.done,!o;k=true){d=V.value;k=false;const e=d;y(e);if(!e.startsWith(`${Q}${path.sep}`)){y(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(fs.statSync(e).isDirectory()){y(`Skip directory '${e}'.`);continue}const t=crypto.createHash("sha256");const n=util.promisify(stream.pipeline);yield n(fs.createReadStream(e),t);v.write(t.digest());D++;if(!C){C=true}}}catch(e){i={error:e}}finally{try{if(!k&&!o&&(c=$.return))yield c.call($)}finally{if(i)throw i.error}}v.end();if(C){y(`Found ${D} files to hash.`);return v.digest("hex")}else{y(`No matches found for glob`);return""}}))}var Ut=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function create(e,t){return Ut(this,void 0,void 0,(function*(){return yield DefaultGlobber.create(e,t)}))}function glob_hashFiles(e){return Ut(this,arguments,void 0,(function*(e,t="",n,o=false){let i=true;if(n&&typeof n.followSymbolicLinks==="boolean"){i=n.followSymbolicLinks}const c=yield create(e,{followSymbolicLinks:i});return _hashFiles(c,t,o)}))}var Mt;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(Mt||(Mt={}));var Ht;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(Ht||(Ht={}));var $t;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})($t||($t={}));const Gt=2;const qt=5e3;const zt=5e3;const Vt=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;const jt=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;const Yt="cache.tar";const Jt="manifest.txt";const Wt=10*Math.pow(1024,3);var Kt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Xt=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};const Zt="1.0";function createTempDirectory(){return Kt(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let n;if(e){n=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){n="/Users"}else{n="/home"}}t=C.join(n,"actions","temp")}const n=C.join(t,p.randomUUID());yield mkdirP(n);return n}))}function getArchiveFileSizeInBytes(e){return y.statSync(e).size}function resolvePaths(e){return Kt(this,void 0,void 0,(function*(){var t,n,o,i;var c;const d=[];const p=(c=process.env["GITHUB_WORKSPACE"])!==null&&c!==void 0?c:process.cwd();const y=yield create(e.join("\n"),{implicitDescendants:false});try{for(var Q=true,v=Xt(y.globGenerator()),D;D=yield v.next(),t=D.done,!t;Q=true){i=D.value;Q=false;const e=i;const t=C.relative(p,e).replace(new RegExp(`\\${C.sep}`,"g"),"/");core_debug(`Matched: ${t}`);if(t===""){d.push(".")}else{d.push(`${t}`)}}}catch(e){n={error:e}}finally{try{if(!Q&&!t&&(o=v.return))yield o.call(v)}finally{if(n)throw n.error}}return d}))}function unlinkFile(e){return Kt(this,void 0,void 0,(function*(){return Et.promisify(y.unlink)(e)}))}function getVersion(e){return Kt(this,arguments,void 0,(function*(e,t=[]){let n="";t.push("--version");core_debug(`Checking ${e} ${t.join(" ")}`);try{yield exec_exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){core_debug(e.message)}n=n.trim();core_debug(n);return n}))}function getCompressionMethod(){return Kt(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=At.clean(e);core_debug(`zstd version: ${t}`);if(e===""){return Ht.Gzip}else{return Ht.ZstdWithoutLong}}))}function getCacheFileName(e){return e===Ht.Gzip?Mt.Gzip:Mt.Zstd}function getGnuTarPathOnWindows(){return Kt(this,void 0,void 0,(function*(){if(y.existsSync(Vt)){return Vt}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?which("tar"):""}))}function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}function getCacheVersion(e,t,n=false){const o=e.slice();if(t){o.push(t)}if(process.platform==="win32"&&!n){o.push("windows-only")}o.push(Zt);return p.createHash("sha256").update(o.join("|")).digest("hex")}function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}var er=__nccwpck_require__(7016);class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}var tr=__nccwpck_require__(8161);var rr=__nccwpck_require__(7975);var nr=__nccwpck_require__(1708);function log(e,...t){nr.stderr.write(`${rr.format(e,...t)}${tr.EOL}`)}const sr=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let or;let ir=[];let ar=[];const cr=[];if(sr){enable(sr)}const lr=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){or=e;ir=[];ar=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){ar.push(e.substring(1))}else{ir.push(e)}}for(const e of cr){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of ar){if(namespaceMatches(e,t)){return false}}for(const t of ir){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let n=t;if(t.indexOf("**")!==-1){const e=[];let o="";for(const n of t){if(n==="*"&&o==="*"){continue}else{o=n;e.push(n)}}n=e.join("")}let o=0;let i=0;const c=n.length;const d=e.length;let p=-1;let y=-1;while(o<d&&i<c){if(n[i]==="*"){p=i;i++;if(i===c){return true}while(e[o]!==n[i]){o++;if(o===d){return false}}y=o;o++;i++;continue}else if(n[i]===e[o]){i++;o++}else if(p>=0){i=p+1;o=y+1;if(o===d){return false}while(e[o]!==n[i]){o++;if(o===d){return false}}y=o;o++;i++;continue}else{return false}}const C=o===e.length;const Q=i===n.length;const v=i===n.length-1&&n[i]==="*";return C&&(Q||v)}function disable(){const e=or||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:lr.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}cr.push(t);return t}function destroy(){const e=cr.indexOf(this);if(e>=0){cr.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const ur=lr;const dr=["verbose","info","warning","error"];const pr={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return dr.includes(e)}function createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let o;const i=ur(e.namespace);i.log=(...e)=>{ur.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${dr.join(",")}`)}o=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}ur.enable(n.join(","))}if(n){if(isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${dr.join(", ")}.`)}}function shouldEnable(e){return Boolean(o&&pr[e.level]<=pr[o])}function createLogger(e,n){const o=Object.assign(e.extend(n),{level:n});patchLogMethod(e,o);if(shouldEnable(o)){const e=ur.disable();ur.enable(e+","+o.namespace)}t.add(o);return o}function contextGetLogLevel(){return o}function contextCreateClientLogger(e){const t=i.extend(e);patchLogMethod(i,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:i}}const Ar=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const mr=Ar.logger;function setLogLevel(e){Ar.setLogLevel(e)}function getLogLevel(){return Ar.getLogLevel()}function createClientLogger(e){return Ar.createClientLogger(e)}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const gr=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!gr.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!gr.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const o=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return o(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const o=createPhase("None");const i=createPhase("Deserialize");const c=createPhase("Retry");const d=createPhase("Sign");const p=[n,o,i,c,d];function getPhase(e){if(e==="Retry"){return c}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return i}else if(e==="Sign"){return d}else{return o}}for(const e of this._policies){const n=e.policy;const o=e.options;const i=n.name;if(t.has(i)){throw new Error("Duplicate policy names not allowed in pipeline")}const c={policy:n,dependsOn:new Set,dependants:new Set};if(o.afterPhase){c.afterPhase=getPhase(o.afterPhase);c.afterPhase.hasAfterPolicies=true}t.set(i,c);const d=getPhase(o.phase);d.policies.add(c)}for(const e of this._policies){const{policy:n,options:o}=e;const i=n.name;const c=t.get(i);if(!c){throw new Error(`Missing node for policy ${i}`)}if(o.afterPolicies){for(const e of o.afterPolicies){const n=t.get(e);if(n){c.dependsOn.add(n);n.dependants.add(c)}}}if(o.beforePolicies){for(const e of o.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(c);c.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const o of n.policies){if(o.afterPhase&&(!o.afterPhase.hasRun||o.afterPhase.policies.size)){continue}if(o.dependsOn.size===0){e.push(o.policy);for(const e of o.dependants){e.dependsOn.delete(o)}t.delete(o.policy.name);n.policies.delete(o)}}}function walkPhases(){for(const e of p){walkPhase(e);if(e.policies.size>0&&e!==o){if(!o.hasRun){walkPhase(o)}return}if(e.hasAfterPolicies){walkPhase(o)}}}let y=0;while(t.size>0){y++;const t=e.length;walkPhases();if(e.length<=t&&y>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}const fr=rr.inspect.custom;const hr="REDACTED";const yr=["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 Er=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=yr.concat(e);t=Er.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return{...n,name:n.name,message:n.message}}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||isObject(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,hr)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=hr}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=hr}}return t}}const Cr=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,fr,{value:()=>`RestError: ${this.message} \n ${Cr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(e){if(e instanceof restError_RestError){return true}return isError(e)&&e.name==="RestError"}var Ir=__nccwpck_require__(7067);const br=e(import.meta.url)("node:https");var Sr=__nccwpck_require__(8522);var Br=__nccwpck_require__(7075);const wr=createClientLogger("ts-http-runtime");const Rr={};function nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends Br.Transform{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let n;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}n=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",n)}let o;if(e.timeout>0){o=setTimeout((()=>{const n=new Sanitizer;wr.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const i=e.headers.get("Accept-Encoding");const c=i?.includes("gzip")||i?.includes("deflate");let d=typeof e.body==="function"?e.body():e.body;if(d&&!e.headers.has("Content-Length")){const t=getBodyLength(d);if(t!==null){e.headers.set("Content-Length",t)}}let p;try{if(d&&e.onUploadProgress){const t=e.onUploadProgress;const n=new ReportTransform(t);n.on("error",(e=>{wr.error("Error in upload progress",e)}));if(nodeHttpClient_isReadableStream(d)){d.pipe(n)}else{n.end(d)}d=n}const n=await this.makeRequest(e,t,d);if(o!==undefined){clearTimeout(o)}const i=getResponseHeaders(n);const y=n.statusCode??0;const C={status:y,headers:i,request:e};if(e.method==="HEAD"){n.resume();return C}p=c?getDecodedResponseStream(n,i):n;const Q=e.onDownloadProgress;if(Q){const e=new ReportTransform(Q);e.on("error",(e=>{wr.error("Error in download progress",e)}));p.pipe(e);p=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(C.status)){C.readableStreamBody=p}else{C.bodyAsText=await streamToText(p)}return C}finally{if(e.abortSignal&&n){let t=Promise.resolve();if(nodeHttpClient_isReadableStream(d)){t=isStreamComplete(d)}let o=Promise.resolve();if(nodeHttpClient_isReadableStream(p)){o=isStreamComplete(p)}Promise.all([t,o]).then((()=>{if(n){e.abortSignal?.removeEventListener("abort",n)}})).catch((e=>{wr.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){const o=new URL(e.url);const i=o.protocol!=="https:";if(i&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const c=e.agent??this.getOrCreateAgent(e,i);const d={agent:c,hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((o,c)=>{const p=i?Ir.request(d,o):br.request(d,o);p.once("error",(t=>{c(new restError_RestError(t.message,{code:t.code??restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");p.destroy(e);c(e)}));if(n&&nodeHttpClient_isReadableStream(n)){n.pipe(p)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){p.end(n)}else if(isArrayBuffer(n)){p.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{wr.error("Unrecognized body type",n);c(new restError_RestError("Unrecognized body type"))}}else{p.end()}}))}getOrCreateAgent(e,t){const n=e.disableKeepAlive;if(t){if(n){return Ir.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new Ir.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(n&&!e.tlsSettings){return br.globalAgent}const t=e.tlsSettings??Rr;let o=this.cachedHttpsAgents.get(t);if(o&&o.options.keepAlive===!n){return o}wr.info("No cached TLS Agent exist, creating a new Agent");o=new br.Agent({keepAlive:!n,...t});this.cachedHttpsAgents.set(t,o);return o}}}function getResponseHeaders(e){const t=httpHeaders_createHttpHeaders();for(const n of Object.keys(e.headers)){const o=e.headers[n];if(Array.isArray(o)){if(o.length>0){t.set(n,o[0])}}else if(o){t.set(n,o)}}return t}function getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=Sr.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=Sr.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,n)=>{const o=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){o.push(e)}else{o.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(o).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){n(e)}else{n(new restError_RestError(`Error reading response as text: ${e.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(nodeHttpClient_isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const Nr="logPolicy";function logPolicy_logPolicy(e={}){const t=e.logger??wr.info;const n=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:Nr,async sendRequest(e,o){if(!t.enabled){return o(e)}t(`Request: ${n.sanitize(e)}`);const i=await o(e);t(`Response status code: ${i.status}`);t(`Headers: ${n.sanitize(i.headers)}`);return i}}}function getHeaderName(){return"User-Agent"}async function userAgentPlatform_setPlatformSpecificData(e){if(process&&process.versions){const t=`${os.type()} ${os.release()}; ${os.arch()}`;const n=process.versions;if(n.bun){e.set("Bun",`${n.bun} (${t})`)}else if(n.deno){e.set("Deno",`${n.deno} (${t})`)}else if(n.node){e.set("Node",`${n.node} (${t})`)}}}function getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return getHeaderName()}async function userAgent_getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",SDK_VERSION);await setPlatformSpecificData(t);const n=getUserAgentString(t);const o=e?`${e} ${n}`:n;return o}const Qr=getUserAgentHeaderName();const xr="userAgentPolicy";function userAgentPolicy_userAgentPolicy(e={}){const t=getUserAgentValue(e.userAgentPrefix);return{name:xr,async sendRequest(e,n){if(!e.headers.has(Qr)){e.headers.set(Qr,await t)}return n(e)}}}function random_getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const i=o/2+random_getRandomIntegerInclusive(0,o/2);return{retryAfterInMs:i}}const Tr="The operation was aborted.";function delay(e,t,n){return new Promise(((o,i)=>{let c=undefined;let d=undefined;const rejectOnAbort=()=>i(new AbortError(n?.abortErrorMsg?n?.abortErrorMsg:Tr));const removeListeners=()=>{if(n?.abortSignal&&d){n.abortSignal.removeEventListener("abort",d)}};d=()=>{if(c){clearTimeout(c)}removeListeners();return rejectOnAbort()};if(n?.abortSignal&&n.abortSignal.aborted){return rejectOnAbort()}c=setTimeout((()=>{removeListeners();o(t)}),e);if(n?.abortSignal){n.abortSignal.addEventListener("abort",d)}}))}function parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const o=Number(n);if(Number.isNaN(o))return;return o}const vr="Retry-After";const Pr=["retry-after-ms","x-ms-retry-after-ms",vr];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of Pr){const n=parseHeaderValueAsNumber(e,t);if(n===0||n){const e=t===vr?1e3:1;return n*e}}const t=e.headers.get(vr);if(!t)return;const n=Date.parse(t);const o=n-Date.now();return Number.isFinite(o)?Math.max(0,o):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const Dr=1e3;const kr=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??Dr;const n=e.maxRetryDelayInMs??kr;return{name:"exponentialRetryStrategy",retry({retryCount:o,response:i,responseError:c}){const d=isSystemError(c);const p=d&&e.ignoreSystemErrors;const y=isExponentialRetryResponse(i);const C=y&&e.ignoreHttpStatusCodes;const Q=i&&(isThrottlingRetryResponse(i)||!y);if(Q||C||p){return{skipStrategy:true}}if(c&&!d&&!y){return{errorToThrow:c}}return calculateRetryDelay(o,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const _r="0.3.2";const Lr=3;const Or=createClientLogger("ts-http-runtime retryPolicy");const Fr="retryPolicy";function retryPolicy_retryPolicy(e,t={maxRetries:Lr}){const n=t.logger||Or;return{name:Fr,async sendRequest(o,i){let c;let d;let p=-1;e:while(true){p+=1;c=undefined;d=undefined;try{n.info(`Retry ${p}: Attempting to send request`,o.requestId);c=await i(o);n.info(`Retry ${p}: Received a response from request`,o.requestId)}catch(e){n.error(`Retry ${p}: Received an error from request`,o.requestId);d=e;if(!e||d.name!=="RestError"){throw e}c=d.response}if(o.abortSignal?.aborted){n.error(`Retry ${p}: Request aborted.`);const e=new AbortError;throw e}if(p>=(t.maxRetries??Lr)){n.info(`Retry ${p}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(d){throw d}else if(c){return c}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${p}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${p}: Processing retry strategy ${t.name}.`);const i=t.retry({retryCount:p,response:c,responseError:d});if(i.skipStrategy){e.info(`Retry ${p}: Skipped.`);continue t}const{errorToThrow:y,retryAfterInMs:C,redirectTo:Q}=i;if(y){e.error(`Retry ${p}: Retry strategy ${t.name} throws error:`,y);throw y}if(C||C===0){e.info(`Retry ${p}: Retry strategy ${t.name} retries after ${C}`);await delay(C,undefined,{abortSignal:o.abortSignal});continue e}if(Q){e.info(`Retry ${p}: Retry strategy ${t.name} redirects to ${Q}`);o.url=Q;continue e}}if(d){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw d}if(c){n.info(`None of the retry strategies could work with the received response. Returning it.`);return c}}}}}const Ur="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Ur,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??Lr}).sendRequest}}function bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}const Mr=typeof window!=="undefined"&&typeof window.document!=="undefined";const Hr=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const $r=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Gr=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const qr=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const zr=qr&&!Gr&&!$r;const Vr=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const jr="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[n,o]of e.entries()){t[n]??=[];t[n].push(o)}return t}function formDataPolicy_formDataPolicy(){return{name:jr,async sendRequest(e,t){if(qr&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.append(n,e.toString())}}else{t.append(n,o.toString())}}return t.toString()}async function prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n??"multipart/form-data");const o=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){o.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const i=httpHeaders_createHttpHeaders();i.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);i.set("Content-Type",e.type||"application/octet-stream");o.push({headers:i,body:e})}}}t.multipartBody={parts:o}}var Yr=__nccwpck_require__(3669);var Jr=__nccwpck_require__(1970);const Wr="HTTPS_PROXY";const Kr="HTTP_PROXY";const Xr="ALL_PROXY";const Zr="NO_PROXY";const en="proxyPolicy";const tn=[];let rn=false;const nn=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(Wr);const t=getEnvironmentValue(Xr);const n=getEnvironmentValue(Kr);return e||t||n}function isBypassed(e,t,n){if(t.length===0){return false}const o=new URL(e).hostname;if(n?.has(o)){return n.get(o)}let i=false;for(const e of t){if(e[0]==="."){if(o.endsWith(e)){i=true}else{if(o.length===e.length-1&&o===e.slice(1)){i=true}}}else{if(o===e){i=true}}}n?.set(o,i);return i}function loadNoProxy(){const e=getEnvironmentValue(Zr);rn=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,n){if(e.agent){return}const o=new URL(e.url);const i=o.protocol!=="https:";if(e.tlsSettings){wr.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const c=e.headers.toJSON();if(i){if(!t.httpProxyAgent){t.httpProxyAgent=new Jr.HttpProxyAgent(n,{headers:c})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new Yr.HttpsProxyAgent(n,{headers:c})}e.agent=t.httpsProxyAgent}}function proxyPolicy_proxyPolicy(e,t){if(!rn){tn.push(...loadNoProxy())}const n=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const o={};return{name:en,async sendRequest(e,i){if(!e.proxySettings&&n&&!isBypassed(e.url,t?.customNoProxyList??tn,t?.customNoProxyList?undefined:nn)){setProxyAgentOnRequest(e,o,n)}else if(e.proxySettings){setProxyAgentOnRequest(e,o,getUrlFromProxySettings(e.proxySettings))}return i(e)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof e.stream==="function"}async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:n}=await e.read();if(t){return}yield n}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return yt.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return yt.Readable.from(Buffer.from(e))}else if(isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return yt.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(e){let t="";for(const[n,o]of e){t+=`${n}: ${o}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const n of e){const e=getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,n){const o=[bytesEncoding_stringToUint8Array(`--${n}`,"utf-8"),...t.flatMap((e=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(e.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,bytesEncoding_stringToUint8Array(`\r\n--${n}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const i=getTotalLength(o);if(i){e.headers.set("Content-Length",i)}e.body=await concat(o)}const sn="multipartPolicy";const on=70;const an=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>on){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!an.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:sn,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let n=e.multipartBody.boundary;const o=e.headers.get("Content-Type")??"multipart/mixed";const i=o.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i){throw new Error(`Got multipart request body, but content-type header was not multipart: ${o}`)}const[,c,d]=i;if(d&&n&&d!==n){throw new Error(`Multipart boundary was specified as ${d} in the header, but got ${n} in the request body`)}n??=d;if(n){assertValidBoundary(n)}else{n=generateBoundary()}e.headers.set("Content-Type",`${c}; boundary=${n}`);await buildRequestBody(e,e.multipartBody.parts,n);e.multipartBody=undefined;return t(e)}}}function createPipelineFromOptions_createPipelineFromOptions(e){const t=createEmptyPipeline();if(isNodeLike){if(e.agent){t.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(tlsPolicy(e.tlsOptions))}t.addPolicy(proxyPolicy(e.proxyOptions));t.addPolicy(decompressResponsePolicy())}t.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});t.addPolicy(userAgentPolicy(e.userAgentOptions));t.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(isNodeLike){t.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}let cn=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(e);if(typeof process?.emitWarning==="function"&&!cn){cn=true;process.emitWarning(e)}}function checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const ln="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:ln,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!o){return n(t)}if(o.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${o.apiKeyLocation}`)}t.headers.set(o.name,e.credential.key);return n(t)}}}const un="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:un,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!o){return n(t)}const{username:i,password:c}=e.credential;const d=uint8ArrayToString(stringToUint8Array(`${i}:${c}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${d}`);return n(t)}}}const dn="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:dn,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!o){return n(t)}const i=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}const pn="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:pn,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!o){return n(t)}const i=await e.credential.getOAuth2Token(o.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}let An;function clientHelpers_createDefaultPipeline(e={}){const t=createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy(e));const{credential:n,authSchemes:o,allowInsecureConnection:i}=e;if(n){if(isApiKeyCredential(n)){t.addPolicy(apiKeyAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isBasicCredential(n)){t.addPolicy(basicAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isBearerTokenCredential(n)){t.addPolicy(bearerAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isOAuth2TokenCredential(n)){t.addPolicy(oauth2AuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}}return t}function clientHelpers_getCachedDefaultHttpsClient(){if(!An){An=createDefaultHttpClient()}return An}function getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if(isBinaryBody(n)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const n=e.dispositionType??"form-data";let o=n;if(e.name){o+=`; name=${escapeDispositionField(e.name)}`}let i=undefined;if(e.filename){i=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){i=t}}if(i){o+=`; filename=${escapeDispositionField(i)}`}return o}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const n=getContentDisposition(e);const o=createHttpHeaders(e.headers??{});if(t){o.set("content-type",t)}if(n){o.set("content-disposition",n)}const i=normalizeBody(e.body,t);return{headers:o,body:i}}function multipart_buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest_sendRequest(e,t,n,o={},i){const c=i??getCachedDefaultHttpsClient();const d=buildPipelineRequest(e,t,o);try{const e=await n.sendRequest(c,d);const t=e.headers.toJSON();const i=e.readableStreamBody??e.browserStreamBody;const p=o.responseAsStream||i!==undefined?undefined:getResponseBody(e);const y=i??p;if(o?.onResponse){o.onResponse({...e,request:d,rawHeaders:t,parsedBody:p})}return{request:d,headers:t,status:`${e.status}`,body:y}}catch(e){if(isRestError(e)&&e.response&&o.onResponse){const{response:t}=e;const n=t.headers.toJSON();o?.onResponse({...t,request:d,rawHeaders:n},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,n={}){const o=getRequestContentType(n);const{body:i,multipartBody:c}=getRequestBody(n.body,o);const d=i!==undefined||c!==undefined;const p=createHttpHeaders({...n.headers?n.headers:{},accept:n.accept??n.headers?.accept??"application/json",...d&&o&&{"content-type":o}});return createPipelineRequest({url:t,method:e,body:i,multipartBody:c,headers:p,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(isReadableStream(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const n=t.split(";")[0];const o=e.bodyAsText??"";if(n==="text/plain"){return String(o)}try{return o?JSON.parse(o):undefined}catch(t){if(n==="application/json"){throw createParseError(e,t)}return String(o)}}function createParseError(e,t){const n=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const o=t.code??RestError.PARSE_ERROR;return new RestError(n,{code:o,statusCode:e.status,request:e.request,response:e})}function getClient(e,t={}){const n=t.pipeline??createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:o}of t.additionalPolicies){const t=o==="perRetry"?"Sign":undefined;n.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:o,httpClient:i}=t;const c=t.endpoint??e;const client=(e,...t)=>{const getUrl=n=>buildRequestUrl(c,e,t,{allowInsecureConnection:o,...n});return{get:(e={})=>buildOperation("GET",getUrl(e),n,e,o,i),post:(e={})=>buildOperation("POST",getUrl(e),n,e,o,i),put:(e={})=>buildOperation("PUT",getUrl(e),n,e,o,i),patch:(e={})=>buildOperation("PATCH",getUrl(e),n,e,o,i),delete:(e={})=>buildOperation("DELETE",getUrl(e),n,e,o,i),head:(e={})=>buildOperation("HEAD",getUrl(e),n,e,o,i),options:(e={})=>buildOperation("OPTIONS",getUrl(e),n,e,o,i),trace:(e={})=>buildOperation("TRACE",getUrl(e),n,e,o,i)}};return{path:client,pathUnchecked:client,pipeline:n}}function buildOperation(e,t,n,o,i,c){i=o.allowInsecureConnection??i;return{then:function(d,p){return sendRequest(e,t,n,{...o,allowInsecureConnection:i},c).then(d,p)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},c)}},async asNodeStream(){if(isNodeLike){return sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},c)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(e,t){const n=typeof e==="string"?t:e;const o=n.body?.error??n.body;const i=typeof e==="string"?e:o?.message??`Unexpected status code: ${n.status}`;return new RestError(i,{statusCode:statusCodeToNumber(n.status),code:o?.code,request:n.request,response:toPipelineResponse(n)})}function toPipelineResponse(e){return{headers:createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const mn=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const gn=mn.logger;function esm_setLogLevel(e){mn.setLogLevel(e)}function esm_getLogLevel(){return mn.getLogLevel()}function esm_createClientLogger(e){return mn.createClientLogger(e)}const hn=esm_createClientLogger("core-rest-pipeline");const yn="agentPolicy";function agentPolicy_agentPolicy(e){return{name:yn,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}const En="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:En,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const Cn="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const In="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:In,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const bn="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:bn,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const Sn="redirectPolicy";const Bn=["GET","HEAD"];function redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20}=e;return{name:Sn,async sendRequest(e,n){const o=await n(e);return handleRedirect(n,o,t)}}}async function handleRedirect(e,t,n,o=0){const{request:i,status:c,headers:d}=t;const p=d.get("location");if(p&&(c===300||c===301&&Bn.includes(i.method)||c===302&&Bn.includes(i.method)||c===303&&i.method==="POST"||c===307)&&o<n){const t=new URL(p,i.url);i.url=t.toString();if(c===303){i.method="GET";i.headers.delete("Content-Length");delete i.body}i.headers.delete("Authorization");const d=await e(i);return handleRedirect(e,d,n,o+1)}return t}const wn="tlsPolicy";function tlsPolicy_tlsPolicy(e){return{name:wn,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}const Rn=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(e={}){return logPolicy_logPolicy({logger:hn.info,...e})}const Nn=Sn;function policies_redirectPolicy_redirectPolicy(e={}){return redirectPolicy_redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(e){if(nr&&nr.versions){const t=`${tr.type()} ${tr.release()}; ${tr.arch()}`;const n=nr.versions;if(n.bun){e.set("Bun",`${n.bun} (${t})`)}else if(n.deno){e.set("Deno",`${n.deno} (${t})`)}else if(n.node){e.set("Node",`${n.node} (${t})`)}}}const Qn="1.22.2";const xn=3;function userAgent_getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",Qn);await util_userAgentPlatform_setPlatformSpecificData(t);const n=userAgent_getUserAgentString(t);const o=e?`${e} ${n}`:n;return o}const Tn=userAgent_getUserAgentHeaderName();const vn="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:vn,async sendRequest(e,n){if(!e.headers.has(Tn)){e.headers.set(Tn,await t)}return n(e)}}}var Pn=__nccwpck_require__(7598);async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return createHmac("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:o,abortErrorMsg:i}=t??{};return new Promise(((t,c)=>{function rejectOnAbort(){c(new AbortError_AbortError(i??"The operation was aborted."))}function removeListeners(){o?.removeEventListener("abort",onAbort)}function onAbort(){n?.();removeListeners();rejectOnAbort()}if(o?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();c(e)}))}catch(e){c(e)}o?.addEventListener("abort",onAbort)}))}const Dn="The delay was aborted.";function delay_delay(e,t){let n;const{abortSignal:o,abortErrorMsg:i}=t??{};return createAbortablePromise((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:i??Dn})}function delay_calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const i=o/2+getRandomIntegerInclusive(0,o/2);return{retryAfterInMs:i}}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}function esm_calculateRetryDelay(e,t){return tspRuntime.calculateRetryDelay(e,t)}function esm_computeSha256Hash(e,t){return tspRuntime.computeSha256Hash(e,t)}function esm_computeSha256Hmac(e,t,n){return tspRuntime.computeSha256Hmac(e,t,n)}function esm_getRandomIntegerInclusive(e,t){return tspRuntime.getRandomIntegerInclusive(e,t)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function esm_randomUUID(){return randomUUID()}const kn=Mr;const _n=Gr;const Ln=$r;const On=qr;const Fn=qr;const Un=zr;const Mn=Vr;const Hn=Hr;function esm_uint8ArrayToString(e,t){return tspRuntime.uint8ArrayToString(e,t)}function esm_stringToUint8Array(e,t){return tspRuntime.stringToUint8Array(e,t)}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const $n={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const Gn=Symbol("rawContent");function hasRawContent(e){return typeof e[Gn]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[Gn]()}else{return e}}function createFileFromStream(e,t,n={}){return{...$n,type:n.type??"",lastModified:n.lastModified??(new Date).getTime(),webkitRelativePath:n.webkitRelativePath??"",size:n.size??-1,name:t,stream:()=>{const t=e();if(file_isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[Gn]:e}}function createFile(e,t,n={}){if(isNodeLike){return{...$n,type:n.type??"",lastModified:n.lastModified??(new Date).getTime(),webkitRelativePath:n.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[Gn]:()=>e}}else{return new File([toArrayBuffer(e)],t,n)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const qn=sn;function policies_multipartPolicy_multipartPolicy(){const e=multipartPolicy_multipartPolicy();return{name:qn,sendRequest:async(t,n)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(t,n)}}}const zn=En;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const Vn=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy_defaultRetryPolicy(e)}const jn=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const Yn=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return getDefaultProxySettings(e)}function policies_proxyPolicy_proxyPolicy(e,t){return proxyPolicy_proxyPolicy(e,t)}const Jn="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:Jn,async sendRequest(t,n){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return n(t)}}}const Wn=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(e){return agentPolicy_agentPolicy(e)}const Kn=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(e){return tlsPolicy_tlsPolicy(e)}const Xn={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let t=new TracingContextImpl(e.parentContext);if(e.span){t=t.setValue(Xn.span,e.span)}if(e.namespace){t=t.setValue(Xn.namespace,e.namespace)}return t}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const n=new TracingContextImpl(this);n._contextMap.set(e,t);return n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}var Zn=__nccwpck_require__(8914);const es=Zn.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!es.instrumenterImplementation){es.instrumenterImplementation=createDefaultInstrumenter()}return es.instrumenterImplementation}function createTracingClient(e){const{namespace:t,packageName:n,packageVersion:o}=e;function startSpan(e,i,c){const d=getInstrumenter().startSpan(e,{...c,packageName:n,packageVersion:o,tracingContext:i?.tracingOptions?.tracingContext});let p=d.tracingContext;const y=d.span;if(!p.getValue(Xn.namespace)){p=p.setValue(Xn.namespace,t)}y.setAttribute("az.namespace",p.getValue(Xn.namespace));const C=Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:p}});return{span:y,updatedOptions:C}}async function withSpan(e,t,n,o){const{span:i,updatedOptions:c}=startSpan(e,t,o);try{const e=await withContext(c.tracingOptions.tracingContext,(()=>Promise.resolve(n(c,i))));i.setStatus({status:"success"});return e}catch(e){i.setStatus({status:"error",error:e});throw e}finally{i.end()}}function withContext(e,t,...n){return getInstrumenter().withContext(e,t,...n)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const ts=restError_RestError;function esm_restError_isRestError(e){return restError_isRestError(e)}const rs="tracingPolicy";function tracingPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);const n=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const o=tryCreateTracingClient();return{name:rs,async sendRequest(e,i){if(!o){return i(e)}const c=await t;const d={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":c,requestId:e.requestId};if(c){d["http.user_agent"]=c}const{span:p,tracingContext:y}=tryCreateSpan(o,e,d)??{};if(!p||!y){return i(e)}try{const t=await o.withContext(y,i,e);tryProcessResponse(p,t);return t}catch(e){tryProcessError(p,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:Qn})}catch(e){hn.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,t,n){try{const{span:o,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:n});if(!o.isRecording()){o.end();return undefined}const c=e.createRequestHeaders(i.tracingOptions.tracingContext);for(const[e,n]of Object.entries(c)){t.headers.set(e,n)}return{span:o,tracingContext:i.tracingOptions.tracingContext}}catch(e){hn.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:esm_isError(t)?t:undefined});if(esm_restError_isRestError(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){hn.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");if(n){e.setAttribute("serviceRequestId",n)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){hn.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let n=true;function cleanup(){if(n){e.removeEventListener("abort",listener);n=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}const ns="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:ns,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:n,cleanup:o}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{o?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=esm_pipeline_createEmptyPipeline();if(Fn){if(e.agent){t.addPolicy(policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(wrapAbortSignalLikePolicy());t.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[qn]});t.addPolicy(policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});t.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(Fn){t.addPolicy(policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(t){const{abortSignal:n,cleanup:o}=t.abortSignal?wrapAbortSignalLike(t.abortSignal):{};try{t.abortSignal=n;return await e.sendRequest(t)}finally{o?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const ss=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const as=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const cs=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const ls=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,t={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(e,{logger:ls,...t})}const us={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()<n){try{return await e()}catch{return null}}else{const t=await e();if(t===null){throw new Error("Failed to refresh access token.")}return t}}let o=await tryGetAccessToken();while(o===null){await delay_delay(t);o=await tryGetAccessToken()}return o}function tokenCycler_createTokenCycler(e,t){let n=null;let o=null;let i;const c={...us,...t};const d={get isRefreshing(){return n!==null},get shouldRefresh(){if(d.isRefreshing){return false}if(o?.refreshAfterTimestamp&&o.refreshAfterTimestamp<Date.now()){return true}return(o?.expiresOnTimestamp??0)-c.refreshWindowInMs<Date.now()},get mustRefresh(){return o===null||o.expiresOnTimestamp-c.forcedRefreshWindowInMs<Date.now()}};function refresh(t,p){if(!d.isRefreshing){const tryGetAccessToken=()=>e.getToken(t,p);n=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,o?.expiresOnTimestamp??Date.now()).then((e=>{n=null;o=e;i=p.tenantId;return o})).catch((e=>{n=null;o=null;i=undefined;throw e}))}return n}return async(e,t)=>{const n=Boolean(t.claims);const c=i!==t.tenantId;if(n){o=null}const p=c||n||d.mustRefresh;if(p){return refresh(e,t)}if(d.shouldRefresh){refresh(e,t)}return o}}const ds="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if(esm_restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions,enableCae:true};const c=await n(t,i);if(c){e.request.headers.set("Authorization",`Bearer ${c.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:n}=e;const o=await e.getAccessToken(n,{enableCae:true,claims:t});if(!o){return false}e.request.headers.set("Authorization",`${o.tokenType??"Bearer"} ${o.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:n,challengeCallbacks:o}=e;const i=e.logger||hn;const c={authorizeRequest:o?.authorizeRequest?.bind(o)??defaultAuthorizeRequest,authorizeRequestOnChallenge:o?.authorizeRequestOnChallenge?.bind(o)};const d=t?tokenCycler_createTokenCycler(t):()=>Promise.resolve(null);return{name:ds,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await c.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:d,logger:i});let o;let p;let y;[o,p]=await trySendRequest(e,t);if(isChallengeResponse(o)){let C=getCaeChallengeClaims(o.headers.get("WWW-Authenticate"));if(C){let c;try{c=atob(C)}catch(e){i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${C}`);return o}y=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(n)?n:[n],response:o,request:e,getAccessToken:d,logger:i},c);if(y){[o,p]=await trySendRequest(e,t)}}else if(c.authorizeRequestOnChallenge){y=await c.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:o,getAccessToken:d,logger:i});if(y){[o,p]=await trySendRequest(e,t)}if(isChallengeResponse(o)){C=getCaeChallengeClaims(o.headers.get("WWW-Authenticate"));if(C){let c;try{c=atob(C)}catch(e){i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${C}`);return o}y=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(n)?n:[n],response:o,request:e,getAccessToken:d,logger:i},c);if(y){[o,p]=await trySendRequest(e,t)}}}}}if(p){throw p}else{return o}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const n=/(\w+)="([^"]*)"/g;const o=[];let i;while((i=t.exec(e))!==null){const e=i[1];const t=i[2];const c={};let d;while((d=n.exec(t))!==null){c[d[1]]=d[2]}o.push({scheme:e,params:c})}return o}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const ps="auxiliaryAuthenticationHeaderPolicy";const As="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions};return(await n(t,i))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:n}=e;const o=e.logger||coreLogger;const i=new WeakMap;return{name:ps,async sendRequest(e,c){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){o.info(`${ps} header will not be set due to empty credentials.`);return c(e)}const d=[];for(const c of t){let t=i.get(c);if(!t){t=createTokenCycler(c);i.set(c,t)}d.push(sendAuthorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:t,logger:o}))}const p=(await Promise.all(d)).filter((e=>Boolean(e)));if(p.length===0){o.warning(`None of the auxiliary tokens are valid. ${As} header will not be set.`);return c(e)}e.headers.set(As,p.map((e=>`Bearer ${e}`)).join(", "));return c(e)}}}function isKeyCredential(e){return isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}const ms="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:ms,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===ms))}function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function base64_decodeStringToString(e){return Buffer.from(e,"base64").toString()}const gs="$";const hs="_";function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const ys=/^(-|\+)?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(e){return ys.test(e)}const Es=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return Es.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const n=e.parsedHeaders;if(e.request.method==="HEAD"){return{...n,body:e.parsedBody}}const o=t&&t.bodyMapper;const i=Boolean(o?.nullable);const c=o?.type.name;if(c==="Stream"){return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const d=c==="Composite"&&o.type.modelProperties||{};const p=Object.keys(d).some((e=>d[e].serializedName===""));if(c==="Sequence"||p){const t=e.parsedBody??[];for(const n of Object.keys(d)){if(d[n].serializedName){t[n]=e.parsedBody?.[n]}}if(n){for(const e of Object.keys(n)){t[e]=n[e]}}return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(d).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:isPrimitiveBody(e.parsedBody,c)})}class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,n){const failValidation=(e,o)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${o}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:n,ExclusiveMinimum:o,InclusiveMaximum:i,InclusiveMinimum:c,MaxItems:d,MaxLength:p,MinItems:y,MinLength:C,MultipleOf:Q,Pattern:v,UniqueItems:D}=e.constraints;if(n!==undefined&&t>=n){failValidation("ExclusiveMaximum",n)}if(o!==undefined&&t<=o){failValidation("ExclusiveMinimum",o)}if(i!==undefined&&t>i){failValidation("InclusiveMaximum",i)}if(c!==undefined&&t<c){failValidation("InclusiveMinimum",c)}if(d!==undefined&&t.length>d){failValidation("MaxItems",d)}if(p!==undefined&&t.length>p){failValidation("MaxLength",p)}if(y!==undefined&&t.length<y){failValidation("MinItems",y)}if(C!==undefined&&t.length<C){failValidation("MinLength",C)}if(Q!==undefined&&t%Q!==0){failValidation("MultipleOf",Q)}if(v){const e=typeof v==="string"?new RegExp(v):v;if(typeof t!=="string"||t.match(e)===null){failValidation("Pattern",v)}}if(D&&t.some(((e,t,n)=>n.indexOf(e)!==t))){failValidation("UniqueItems",D)}}}serialize(e,t,n,o={xml:{}}){const i={xml:{rootName:o.xml.rootName??"",includeRoot:o.xml.includeRoot??false,xmlCharKey:o.xml.xmlCharKey??hs}};let c={};const d=e.type.name;if(!n){n=e.serializedName}if(d.match(/^Sequence$/i)!==null){c=[]}if(e.isConstant){t=e.defaultValue}const{required:p,nullable:y}=e;if(p&&y&&t===undefined){throw new Error(`${n} cannot be undefined.`)}if(p&&!y&&(t===undefined||t===null)){throw new Error(`${n} cannot be null or undefined.`)}if(!p&&y===false&&t===null){throw new Error(`${n} cannot be null.`)}if(t===undefined||t===null){c=t}else{if(d.match(/^any$/i)!==null){c=t}else if(d.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){c=serializeBasicTypes(d,n,t)}else if(d.match(/^Enum$/i)!==null){const o=e;c=serializeEnumType(n,o.type.allowedValues,t)}else if(d.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){c=serializeDateTypes(d,t,n)}else if(d.match(/^ByteArray$/i)!==null){c=serializeByteArrayType(n,t)}else if(d.match(/^Base64Url$/i)!==null){c=serializeBase64UrlType(n,t)}else if(d.match(/^Sequence$/i)!==null){c=serializeSequenceType(this,e,t,n,Boolean(this.isXML),i)}else if(d.match(/^Dictionary$/i)!==null){c=serializeDictionaryType(this,e,t,n,Boolean(this.isXML),i)}else if(d.match(/^Composite$/i)!==null){c=serializeCompositeType(this,e,t,n,Boolean(this.isXML),i)}}return c}deserialize(e,t,n,o={xml:{}}){const i={xml:{rootName:o.xml.rootName??"",includeRoot:o.xml.includeRoot??false,xmlCharKey:o.xml.xmlCharKey??hs},ignoreUnknownProperties:o.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let c;const d=e.type.name;if(!n){n=e.serializedName}if(d.match(/^Composite$/i)!==null){c=deserializeCompositeType(this,e,t,n,i)}else{if(this.isXML){const e=i.xml.xmlCharKey;if(t[gs]!==undefined&&t[e]!==undefined){t=t[e]}}if(d.match(/^Number$/i)!==null){c=parseFloat(t);if(isNaN(c)){c=t}}else if(d.match(/^Boolean$/i)!==null){if(t==="true"){c=true}else if(t==="false"){c=false}else{c=t}}else if(d.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){c=t}else if(d.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){c=new Date(t)}else if(d.match(/^UnixTime$/i)!==null){c=unixTimeToDate(t)}else if(d.match(/^ByteArray$/i)!==null){c=decodeString(t)}else if(d.match(/^Base64Url$/i)!==null){c=base64UrlToByteArray(t)}else if(d.match(/^Sequence$/i)!==null){c=deserializeSequenceType(this,e,t,n,i)}else if(d.match(/^Dictionary$/i)!==null){c=deserializeDictionaryType(this,e,t,n,i)}}if(e.isConstant){c=e.defaultValue}return c}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let n=e.length;while(n-1>=0&&e[n-1]===t){--n}return e.substr(0,n)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let n="";if(e){const o=e.split(".");for(const e of o){if(e.charAt(e.length-1)==="\\"){n+=e.substr(0,e.length-1)+"."}else{n+=e;t.push(n);n=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,n){if(n!==null&&n!==undefined){if(e.match(/^Number$/i)!==null){if(typeof n!=="number"){throw new Error(`${t} with value ${n} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=="string"){throw new Error(`${t} with value "${n}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==="string"&&isValidUuid(n))){throw new Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=="boolean"){throw new Error(`${t} with value ${n} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof n;if(e!=="string"&&typeof n.pipe!=="function"&&typeof n.tee!=="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==="function"||typeof Blob==="object")&&n instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return n}function serializeEnumType(e,t,n){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const o=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===n.toLowerCase()}return e===n}));if(!o){throw new Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return n}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,n){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,n,o,i,c){if(!Array.isArray(n)){throw new Error(`${o} must be of type Array.`)}let d=t.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}.`)}if(d.type.name==="Composite"&&d.type.className){d=e.modelMappers[d.type.className]??d}const p=[];for(let t=0;t<n.length;t++){const y=e.serialize(d,n[t],o,c);if(i&&d.xmlNamespace){const e=d.xmlNamespacePrefix?`xmlns:${d.xmlNamespacePrefix}`:"xmlns";if(d.type.name==="Composite"){p[t]={...y};p[t][gs]={[e]:d.xmlNamespace}}else{p[t]={};p[t][c.xml.xmlCharKey]=y;p[t][gs]={[e]:d.xmlNamespace}}}else{p[t]=y}}return p}function serializeDictionaryType(e,t,n,o,i,c){if(typeof n!=="object"){throw new Error(`${o} must be of type object.`)}const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${o}.`)}const p={};for(const t of Object.keys(n)){const y=e.serialize(d,n[t],o,c);p[t]=getXmlObjectValue(d,y,i,c)}if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";const n=p;n[gs]={[e]:t.xmlNamespace};return n}return p}function resolveAdditionalProperties(e,t,n){const o=t.type.additionalProperties;if(!o&&t.type.className){const o=resolveReferencedMapper(e,t,n);return o?.type.additionalProperties}return o}function resolveReferencedMapper(e,t,n){const o=t.type.className;if(!o){throw new Error(`Class name for model "${n}" is not provided in the mapper "${JSON.stringify(t,undefined,2)}".`)}return e.modelMappers[o]}function resolveModelProperties(e,t,n){let o=t.type.modelProperties;if(!o){const i=resolveReferencedMapper(e,t,n);if(!i){throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`)}o=i?.type.modelProperties;if(!o){throw new Error(`modelProperties cannot be null or undefined in the `+`mapper "${JSON.stringify(i)}" of type "${t.type.className}" for object "${n}".`)}}return o}function serializeCompositeType(e,t,n,o,i,c){if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"clientName")}if(n!==undefined&&n!==null){const d={};const p=resolveModelProperties(e,t,o);for(const y of Object.keys(p)){const C=p[y];if(C.readOnly){continue}let Q;let v=d;if(e.isXML){if(C.xmlIsWrapped){Q=C.xmlName}else{Q=C.xmlElementName||C.xmlName}}else{const e=splitSerializeName(C.serializedName);Q=e.pop();for(const t of e){const e=v[t];if((e===undefined||e===null)&&(n[y]!==undefined&&n[y]!==null||C.defaultValue!==undefined)){v[t]={}}v=v[t]}}if(v!==undefined&&v!==null){if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";v[gs]={...v[gs],[e]:t.xmlNamespace}}const d=C.serializedName!==""?o+"."+C.serializedName:o;let p=n[y];const D=getPolymorphicDiscriminatorRecursively(e,t);if(D&&D.clientName===y&&(p===undefined||p===null)){p=t.serializedName}const k=e.serialize(C,p,d,c);if(k!==undefined&&Q!==undefined&&Q!==null){const e=getXmlObjectValue(C,k,i,c);if(i&&C.xmlIsAttribute){v[gs]=v[gs]||{};v[gs][Q]=k}else if(i&&C.xmlIsWrapped){v[Q]={[C.xmlElementName]:e}}else{v[Q]=e}}}}const y=resolveAdditionalProperties(e,t,o);if(y){const t=Object.keys(p);for(const i in n){const p=t.every((e=>e!==i));if(p){d[i]=e.serialize(y,n[i],o+'["'+i+'"]',c)}}}return d}return n}function getXmlObjectValue(e,t,n,o){if(!n||!e.xmlNamespace){return t}const i=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const c={[i]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[gs]){return t}else{const e={...t};e[gs]=c;return e}}const d={};d[o.xml.xmlCharKey]=t;d[gs]=c;return d}function isSpecialXmlProperty(e,t){return[gs,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,n,o,i){const c=i.xml.xmlCharKey??hs;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"serializedName")}const d=resolveModelProperties(e,t,o);let p={};const y=[];for(const C of Object.keys(d)){const Q=d[C];const v=splitSerializeName(d[C].serializedName);y.push(v[0]);const{serializedName:D,xmlName:k,xmlElementName:$}=Q;let V=o;if(D!==""&&D!==undefined){V=o+"."+D}const ee=Q.headerCollectionPrefix;if(ee){const t={};for(const o of Object.keys(n)){if(o.startsWith(ee)){t[o.substring(ee.length)]=e.deserialize(Q.type.value,n[o],V,i)}y.push(o)}p[C]=t}else if(e.isXML){if(Q.xmlIsAttribute&&n[gs]){p[C]=e.deserialize(Q,n[gs][k],V,i)}else if(Q.xmlIsMsText){if(n[c]!==undefined){p[C]=n[c]}else if(typeof n==="string"){p[C]=n}}else{const t=$||k||D;if(Q.xmlIsWrapped){const t=n[k];const o=t?.[$]??[];p[C]=e.deserialize(Q,o,V,i);y.push(k)}else{const o=n[t];p[C]=e.deserialize(Q,o,V,i);y.push(t)}}}else{let o;let c=n;let y=0;for(const e of v){if(!c)break;y++;c=c[e]}if(c===null&&y<v.length){c=undefined}o=c;const D=t.type.polymorphicDiscriminator;if(D&&C===D.clientName&&(o===undefined||o===null)){o=t.serializedName}let k;if(Array.isArray(n[C])&&d[C].serializedName===""){o=n[C];const t=e.deserialize(Q,o,V,i);for(const[e,n]of Object.entries(p)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=n}}p=t}else if(o!==undefined||Q.defaultValue!==undefined){k=e.deserialize(Q,o,V,i);p[C]=k}}}const C=t.type.additionalProperties;if(C){const isAdditionalProperty=e=>{for(const t in d){const n=splitSerializeName(d[t].serializedName);if(n[0]===e){return false}}return true};for(const t in n){if(isAdditionalProperty(t)){p[t]=e.deserialize(C,n[t],o+'["'+t+'"]',i)}}}else if(n&&!i.ignoreUnknownProperties){for(const e of Object.keys(n)){if(p[e]===undefined&&!y.includes(e)&&!isSpecialXmlProperty(e,i)){p[e]=n[e]}}}return p}function deserializeDictionaryType(e,t,n,o,i){const c=t.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 ${o}`)}if(n){const t={};for(const d of Object.keys(n)){t[d]=e.deserialize(c,n[d],o,i)}return t}return n}function deserializeSequenceType(e,t,n,o,i){let c=t.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 ${o}`)}if(n){if(!Array.isArray(n)){n=[n]}if(c.type.name==="Composite"&&c.type.className){c=e.modelMappers[c.type.className]??c}const t=[];for(let d=0;d<n.length;d++){t[d]=e.deserialize(c,n[d],`${o}[${d}]`,i)}return t}return n}function getIndexDiscriminator(e,t,n){const o=[n];while(o.length){const n=o.shift();const i=t===n?t:n+"."+t;if(Object.prototype.hasOwnProperty.call(e,i)){return e[i]}else{for(const[t,i]of Object.entries(e)){if(t.startsWith(n+".")&&i.type.uberParent===n&&i.type.className){o.push(i.type.className)}}}}return undefined}function getPolymorphicMapper(e,t,n,o){const i=getPolymorphicDiscriminatorRecursively(e,t);if(i){let c=i[o];if(c){if(o==="serializedName"){c=c.replace(/\\/gi,"")}const i=n[c];const d=t.type.uberParent??t.type.className;if(typeof i==="string"&&d){const n=getIndexDiscriminator(e.modelMappers.discriminators,i,d);if(n){t=n}}}}return t}function getPolymorphicDiscriminatorRecursively(e,t){return t.type.polymorphicDiscriminator||getPolymorphicDiscriminatorSafely(e,t.type.uberParent)||getPolymorphicDiscriminatorSafely(e,t.type.className)}function getPolymorphicDiscriminatorSafely(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}const Cs={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"};var Is=__nccwpck_require__(3345);const bs=Is.w;function getOperationArgumentValueFromParameter(e,t,n){let o=t.parameterPath;const i=t.mapper;let c;if(typeof o==="string"){o=[o]}if(Array.isArray(o)){if(o.length>0){if(i.isConstant){c=i.defaultValue}else{let t=getPropertyFromParameterPath(e,o);if(!t.propertyFound&&n){t=getPropertyFromParameterPath(n,o)}let d=false;if(!t.propertyFound){d=i.required||o[0]==="options"&&o.length===2}c=d?i.defaultValue:t.propertyValue}}}else{if(i.required){c={}}for(const t in o){const d=i.type.modelProperties[t];const p=o[t];const y=getOperationArgumentValueFromParameter(e,{parameterPath:p,mapper:d},n);if(y!==undefined){if(!c){c={}}c[t]=y}}}return c}function getPropertyFromParameterPath(e,t){const n={propertyFound:false};let o=0;for(;o<t.length;++o){const n=t[o];if(e&&n in e){e=e[n]}else{break}}if(o===t.length){n.propertyValue=e;n.propertyFound=true}return n}const Ss=Symbol.for("@azure/core-client original request");function hasOriginalRequest(e){return Ss in e}function getOperationRequestInfo(e){if(hasOriginalRequest(e)){return getOperationRequestInfo(e[Ss])}let t=bs.operationRequestMap.get(e);if(!t){t={};bs.operationRequestMap.set(e,t)}return t}const Bs=["application/json","text/json"];const ws=["application/xml","application/atom+xml"];const Rs="deserializationPolicy";function deserializationPolicy(e={}){const t=e.expectedContentTypes?.json??Bs;const n=e.expectedContentTypes?.xml??ws;const o=e.parseXML;const i=e.serializerOptions;const c={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??false,xmlCharKey:i?.xml.xmlCharKey??hs}};return{name:Rs,async sendRequest(e,i){const d=await i(e);return deserializeResponseBody(t,n,d,c,o)}}}function getOperationResponseMap(e){let t;const n=e.request;const o=getOperationRequestInfo(n);const i=o?.operationSpec;if(i){if(!o?.operationResponseGetter){t=i.responses[e.status]}else{t=o?.operationResponseGetter(i,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const n=getOperationRequestInfo(t);const o=n?.shouldDeserialize;let i;if(o===undefined){i=true}else if(typeof o==="boolean"){i=o}else{i=o(e)}return i}async function deserializeResponseBody(e,t,n,o,i){const c=await parse(e,t,n,o,i);if(!shouldDeserializeResponse(c)){return c}const d=getOperationRequestInfo(c.request);const p=d?.operationSpec;if(!p||!p.responses){return c}const y=getOperationResponseMap(c);const{error:C,shouldReturnResponse:Q}=handleErrorResponse(c,p,y,o);if(C){throw C}else if(Q){return c}if(y){if(y.bodyMapper){let e=c.parsedBody;if(p.isXML&&y.bodyMapper.type.name===Cs.Sequence){e=typeof e==="object"?e[y.bodyMapper.xmlElementName]:[]}try{c.parsedBody=p.serializer.deserialize(y.bodyMapper,e,"operationRes.parsedBody",o)}catch(e){const t=new ts(`Error ${e} occurred in deserializing the responseBody - ${c.bodyAsText}`,{statusCode:c.status,request:c.request,response:c});throw t}}else if(p.httpMethod==="HEAD"){c.parsedBody=n.status>=200&&n.status<300}if(y.headersMapper){c.parsedHeaders=p.serializer.deserialize(y.headersMapper,c.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return c}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,n,o){const i=200<=e.status&&e.status<300;const c=isOperationSpecEmpty(t)?i:!!n;if(c){if(n){if(!n.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const d=n??t.responses.default;const p=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const y=new ts(p,{statusCode:e.status,request:e.request,response:e});if(!d&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw y}const C=d?.bodyMapper;const Q=d?.headersMapper;try{if(e.parsedBody){const n=e.parsedBody;let i;if(C){let e=n;if(t.isXML&&C.type.name===Cs.Sequence){e=[];const t=C.xmlElementName;if(typeof n==="object"&&t){e=n[t]}}i=t.serializer.deserialize(C,e,"error.response.parsedBody",o)}const c=n.error||i||n;y.code=c.code;if(c.message){y.message=c.message}if(C){y.response.parsedBody=i}}if(e.headers&&Q){y.response.parsedHeaders=t.serializer.deserialize(Q,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){y.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:y,shouldReturnResponse:false}}async function parse(e,t,n,o,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){const c=n.bodyAsText;const d=n.headers.get("Content-Type")||"";const p=!d?[]:d.split(";").map((e=>e.toLowerCase()));try{if(p.length===0||p.some((t=>e.indexOf(t)!==-1))){n.parsedBody=JSON.parse(c);return n}else if(p.some((e=>t.indexOf(e)!==-1))){if(!i){throw new Error("Parsing XML not supported.")}const e=await i(c,o.xml);n.parsedBody=e;return n}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`;const o=e.code||ts.PARSE_ERROR;const i=new ts(t,{code:o,statusCode:n.status,request:n.request,response:n});throw i}}return n}function getStreamingResponseStatusCodes(e){const t=new Set;for(const n in e.responses){const o=e.responses[n];if(o.bodyMapper&&o.bodyMapper.type.name===Cs.Stream){t.add(Number(n))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:n}=e;let o;if(typeof t==="string"){o=t}else if(Array.isArray(t)){o=t.join(".")}else{o=n.serializedName}return o}const Ns="serializationPolicy";function serializationPolicy(e={}){const t=e.stringifyXML;return{name:Ns,async sendRequest(e,n){const o=getOperationRequestInfo(e);const i=o?.operationSpec;const c=o?.operationArguments;if(i&&c){serializeHeaders(e,c,i);serializeRequestBody(e,c,i,t)}return n(e)}}}function serializeHeaders(e,t,n){if(n.headerParameters){for(const o of n.headerParameters){let i=getOperationArgumentValueFromParameter(t,o);if(i!==null&&i!==undefined||o.mapper.required){i=n.serializer.serialize(o.mapper,i,getPathStringFromParameter(o));const t=o.mapper.headerCollectionPrefix;if(t){for(const n of Object.keys(i)){e.headers.set(t+n,i[n])}}else{e.headers.set(o.mapper.serializedName||getPathStringFromParameter(o),i)}}}}const o=t.options?.requestOptions?.customHeaders;if(o){for(const t of Object.keys(o)){e.headers.set(t,o[t])}}}function serializeRequestBody(e,t,n,o=function(){throw new Error("XML serialization unsupported!")}){const i=t.options?.serializerOptions;const c={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??false,xmlCharKey:i?.xml.xmlCharKey??hs}};const d=c.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(t,n.requestBody);const i=n.requestBody.mapper;const{required:p,serializedName:y,xmlName:C,xmlElementName:Q,xmlNamespace:v,xmlNamespacePrefix:D,nullable:k}=i;const $=i.type.name;try{if(e.body!==undefined&&e.body!==null||k&&e.body===null||p){const t=getPathStringFromParameter(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,c);const p=$===Cs.Stream;if(n.isXML){const t=D?`xmlns:${D}`:"xmlns";const n=getXmlValueWithNamespace(v,t,$,e.body,c);if($===Cs.Sequence){e.body=o(prepareXMLRootList(n,Q||C||y,t,v),{rootName:C||y,xmlCharKey:d})}else if(!p){e.body=o(n,{rootName:C||y,xmlCharKey:d})}}else if($===Cs.String&&(n.contentType?.match("text/plain")||n.mediaType==="text")){return}else if(!p){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(y,undefined," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(const o of n.formDataParameters){const i=getOperationArgumentValueFromParameter(t,o);if(i!==undefined&&i!==null){const t=o.mapper.serializedName||getPathStringFromParameter(o);e.formData[t]=n.serializer.serialize(o.mapper,i,getPathStringFromParameter(o),c)}}}}function getXmlValueWithNamespace(e,t,n,o,i){if(e&&!["Composite","Sequence","Dictionary"].includes(n)){const n={};n[i.xml.xmlCharKey]=o;n[gs]={[t]:e};return n}return o}function prepareXMLRootList(e,t,n,o){if(!Array.isArray(e)){e=[e]}if(!n||!o){return{[t]:e}}const i={[t]:e};i[gs]={[n]:o};return i}function createClientPipeline(e={}){const t=esm_createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});t.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return t}let Qs;function getCachedDefaultHttpClient(){if(!Qs){Qs=esm_defaultHttpClient_createDefaultHttpClient()}return Qs}const xs={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,n,o){const i=calculateUrlReplacements(t,n,o);let c=false;let d=replaceAll(e,i);if(t.path){let e=replaceAll(t.path,i);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){d=e;c=true}else{d=appendPath(d,e)}}const{queryParams:p,sequenceParams:y}=calculateQueryParameters(t,n,o);d=appendQueryParams(d,p,y,c);return d}function replaceAll(e,t){let n=e;for(const[e,o]of t){n=n.split(e).join(o)}return n}function calculateUrlReplacements(e,t,n){const o=new Map;if(e.urlParameters?.length){for(const i of e.urlParameters){let c=getOperationArgumentValueFromParameter(t,i,n);const d=getPathStringFromParameter(i);c=e.serializer.serialize(i.mapper,c,d);if(!i.skipEncoding){c=encodeURIComponent(c)}o.set(`{${i.mapper.serializedName||d}}`,c)}}return o}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const n=new URL(e);let o=n.pathname;if(!o.endsWith("/")){o=`${o}/`}if(t.startsWith("/")){t=t.substring(1)}const i=t.indexOf("?");if(i!==-1){const e=t.substring(0,i);const c=t.substring(i+1);o=o+e;if(c){n.search=n.search?`${n.search}&${c}`:c}}else{o=o+t}n.pathname=o;return n.toString()}function calculateQueryParameters(e,t,n){const o=new Map;const i=new Set;if(e.queryParameters?.length){for(const c of e.queryParameters){if(c.mapper.type.name==="Sequence"&&c.mapper.serializedName){i.add(c.mapper.serializedName)}let d=getOperationArgumentValueFromParameter(t,c,n);if(d!==undefined&&d!==null||c.mapper.required){d=e.serializer.serialize(c.mapper,d,getPathStringFromParameter(c));const t=c.collectionFormat?xs[c.collectionFormat]:"";if(Array.isArray(d)){d=d.map((e=>{if(e===null||e===undefined){return""}return e}))}if(c.collectionFormat==="Multi"&&d.length===0){continue}else if(Array.isArray(d)&&(c.collectionFormat==="SSV"||c.collectionFormat==="TSV")){d=d.join(t)}if(!c.skipEncoding){if(Array.isArray(d)){d=d.map((e=>encodeURIComponent(e)))}else{d=encodeURIComponent(d)}}if(Array.isArray(d)&&(c.collectionFormat==="CSV"||c.collectionFormat==="Pipes")){d=d.join(t)}o.set(c.mapper.serializedName||getPathStringFromParameter(c),d)}}}return{queryParams:o,sequenceParams:i}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const n=e.split("&");for(const e of n){const[n,o]=e.split("=",2);const i=t.get(n);if(i){if(Array.isArray(i)){i.push(o)}else{t.set(n,[i,o])}}else{t.set(n,o)}}return t}function appendQueryParams(e,t,n,o=false){if(t.size===0){return e}const i=new URL(e);const c=simpleParseQueryParams(i.search);for(const[e,i]of t){const t=c.get(e);if(Array.isArray(t)){if(Array.isArray(i)){t.push(...i);const n=new Set(t);c.set(e,Array.from(n))}else{t.push(i)}}else if(t){if(Array.isArray(i)){i.unshift(t)}else if(n.has(e)){c.set(e,[t,i])}if(!o){c.set(e,i)}}else{c.set(e,i)}}const d=[];for(const[e,t]of c){if(typeof t==="string"){d.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const n of t){d.push(`${e}=${n}`)}}else{d.push(`${e}=${t}`)}}i.search=d.length?`?${d.join("&")}`:"";return i.toString()}const Ts=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){Ts.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:n}of e.additionalPolicies){const e=n==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const n=t.baseUrl||this._endpoint;if(!n){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const o=getRequestUrl(n,t,e,this);const i=esm_pipelineRequest_createPipelineRequest({url:o});i.method=t.httpMethod;const c=getOperationRequestInfo(i);c.operationSpec=t;c.operationArguments=e;const d=t.contentType||this._requestContentType;if(d&&t.requestBody){i.headers.set("Content-Type",d)}const p=e.options;if(p){const e=p.requestOptions;if(e){if(e.timeout){i.timeout=e.timeout}if(e.onUploadProgress){i.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){i.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){c.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){i.allowInsecureConnection=true}}if(p.abortSignal){i.abortSignal=p.abortSignal}if(p.tracingOptions){i.tracingOptions=p.tracingOptions}}if(this._allowInsecureConnection){i.allowInsecureConnection=true}if(i.streamResponseStatusCodes===undefined){i.streamResponseStatusCodes=getStreamingResponseStatusCodes(t)}try{const e=await this.sendRequest(i);const n=flattenResponse(e,t.responses[e.status]);if(p?.onResponse){p.onResponse(e,n)}return n}catch(e){if(typeof e==="object"&&e?.response){const n=e.response;const o=flattenResponse(n,t.responses[e.statusCode]||t.responses["default"]);e.details=o;if(p?.onResponse){p.onResponse(n,o,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const t=getCredentialScopes(e);const n=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:n})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const n=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return n.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:n}=e;const o=e.logger||coreClientLogger;const i=n.headers.get("WWW-Authenticate");if(!i){o.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const c=parseCAEChallenge(i)||[];const d=c.find((e=>e.claims));if(!d){o.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const p=await e.getAccessToken(d.scope?[d.scope]:t,{claims:decodeStringToString(d.claims)});if(!p){return false}e.request.headers.set("Authorization",`${p.tokenType??"Bearer"} ${p.token}`);return true}const vs={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const n=getChallenge(e.response);if(n){const o=parseChallenge(n);const i=buildScopes(e,o);const c=extractTenantId(o);if(!c){return false}const d=await e.getAccessToken(i,{...t,tenantId:c});if(!d){return false}e.request.headers.set(vs.HeaderConstants.AUTHORIZATION,`${d.tokenType??"Bearer"} ${d.token}`);return true}return false};function extractTenantId(e){const t=new URL(e.authorization_uri);const n=t.pathname.split("/");const o=n[1];if(o&&isUuid(o)){return o}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const n=new URL(t.resource_id);n.pathname=vs.DefaultScope;let o=n.toString();if(o==="https://disk.azure.com/.default"){o="https://disk.azure.com//.default"}return[o]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const n=`${t.trim()} `.split(" ").filter((e=>e));const o=n.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return o.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Ps=Symbol("Original PipelineRequest");const Ds=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const n=e;const o=n[Ps];const i=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(o){o.headers=i;return o}else{const n=esm_pipelineRequest_createPipelineRequest({url:e.url,method:e.method,headers:i,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){n[Ds]=t.originalRequest}return n}}function toWebResourceLike(e,t){const n=t?.originalRequest??e;const o={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t?.createProxy){return new Proxy(o,{get(t,i,c){if(i===Ps){return e}else if(i==="clone"){return()=>toWebResourceLike(toPipelineRequest(o,{originalRequest:n}),{createProxy:true,originalRequest:n})}return Reflect.get(t,i,c)},set(t,n,o,i){if(n==="keepAlive"){e.disableKeepAlive=!o}const c=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof n==="string"&&c.includes(n)){e[n]=o}return Reflect.set(t,n,o,i)}})}else{return o}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{_headersMap;constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let n=0;n<t.length;++n){e.push(t[n].name)}return e}headerValues(){const e=[];const t=this.headersArray();for(let n=0;n<t.length;++n){e.push(t[n].value)}return e}toJson(e={}){const t={};if(e.preserveCase){for(const e in this._headersMap){const n=this._headersMap[e];t[n.name]=n.value}}else{for(const e in this._headersMap){const n=this._headersMap[e];t[getHeaderKey(n.name)]=n.value}}return t}toString(){return JSON.stringify(this.toJson({preserveCase:true}))}clone(){const e={};for(const t in this._headersMap){const n=this._headersMap[t];e[n.name]=n.value}return new HttpHeaders(e)}}const ks=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let n=toWebResourceLike(e.request);let o=toHttpHeadersLike(e.headers);if(t?.createProxy){return new Proxy(e,{get(t,i,c){if(i==="headers"){return o}else if(i==="request"){return n}else if(i===ks){return e}return Reflect.get(t,i,c)},set(e,t,i,c){if(t==="headers"){o=i}else if(t==="request"){n=i}return Reflect.set(e,t,i,c)}})}else{return{...e,request:n,headers:o}}}function response_toPipelineResponse(e){const t=e;const n=t[ks];const o=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(n){n.headers=o;return n}else{return{...e,headers:o,request:toPipelineRequest(e.request)}}}class ExtendedServiceClient extends ServiceClient{constructor(e){super(e);if(e.keepAliveOptions?.enable===false&&!pipelineContainsDisableKeepAlivePolicy(this.pipeline)){this.pipeline.addPolicy(createDisableKeepAlivePolicy())}if(e.redirectOptions?.handleRedirects===false){this.pipeline.removePolicy({name:Nn})}}async sendOperationRequest(e,t){const n=e?.options?.onResponse;let o;function onResponse(e,t,i){o=e;if(n){n(e,t,i)}}e.options={...e.options,onResponse:onResponse};const i=await super.sendOperationRequest(e,t);if(o){Object.defineProperty(i,"_response",{value:toCompatResponse(o)})}return i}}var _s;(function(e){e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING"})(_s||(_s={}));const Ls={log(e,t){},shouldLog(e){return false}};const Os="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const t=e.slice().reverse();return{name:Os,async sendRequest(e,n){let o={async sendRequest(e){const t=await n(toPipelineRequest(e));return toCompatResponse(t,{createProxy:true})}};for(const e of t){o=e.create(o,Ls)}const i=toWebResourceLike(e,{createProxy:true});const c=await o.sendRequest(i);return response_toPipelineResponse(c)}}}function convertHttpClient(e){return{sendRequest:async t=>{const n=await e.sendRequest(toWebResourceLike(t,{createProxy:true}));return response_toPipelineResponse(n)}}}const Fs="\n";function toXml(e,t){let n="";if(t.format&&t.indentBy.length>0){n=Fs}return arrToStr(e,t,"",n)}function arrToStr(e,t,n,o){let i="";let c=false;for(let d=0;d<e.length;d++){const p=e[d];const y=propName(p);if(y===undefined)continue;let C="";if(n.length===0)C=y;else C=`${n}.${y}`;if(y===t.textNodeName){let e=p[y];if(!isStopNode(C,t)){e=t.tagValueProcessor(y,e);e=replaceEntitiesValue(e,t)}if(c){i+=o}i+=e;c=false;continue}else if(y===t.cdataPropName){if(c){i+=o}i+=`<![CDATA[${p[y][0][t.textNodeName]}]]>`;c=false;continue}else if(y===t.commentPropName){i+=o+`\x3c!--${p[y][0][t.textNodeName]}--\x3e`;c=true;continue}else if(y[0]==="?"){const e=attr_to_str(p[":@"],t);const n=y==="?xml"?"":o;let d=p[y][0][t.textNodeName];d=d.length!==0?" "+d:"";i+=n+`<${y}${d}${e}?>`;c=true;continue}let Q=o;if(Q!==""){Q+=t.indentBy}const v=attr_to_str(p[":@"],t);const D=o+`<${y}${v}`;const k=arrToStr(p[y],t,C,Q);if(t.unpairedTags.indexOf(y)!==-1){if(t.suppressUnpairedNode)i+=D+">";else i+=D+"/>"}else if((!k||k.length===0)&&t.suppressEmptyNode){i+=D+"/>"}else if(k&&k.endsWith(">")){i+=D+`>${k}${o}</${y}>`}else{i+=D+">";if(k&&o!==""&&(k.includes("/>")||k.includes("</"))){i+=o+t.indentBy+k+o}else{i+=k}i+=`</${y}>`}c=true}return i}function propName(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(!e.hasOwnProperty(o))continue;if(o!==":@")return o}}function attr_to_str(e,t){let n="";if(e&&!t.ignoreAttributes){for(let o in e){if(!e.hasOwnProperty(o))continue;let i=t.attributeValueProcessor(o,e[o]);i=replaceEntitiesValue(i,t);if(i===true&&t.suppressBooleanAttributes){n+=` ${o.substr(t.attributeNamePrefix.length)}`}else{n+=` ${o.substr(t.attributeNamePrefix.length)}="${i}"`}}}return n}function isStopNode(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let n=e.substr(e.lastIndexOf(".")+1);for(let o in t.stopNodes){if(t.stopNodes[o]===e||t.stopNodes[o]==="*."+n)return true}return false}function replaceEntitiesValue(e,t){if(e&&e.length>0&&t.processEntities){for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}}return e}function getIgnoreAttributesFn(e){if(typeof e==="function"){return e}if(Array.isArray(e)){return t=>{for(const n of e){if(typeof n==="string"&&t===n){return true}if(n instanceof RegExp&&n.test(t)){return true}}}}return()=>false}const Us={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false};function Builder(e){this.options=Object.assign({},Us,e);if(this.options.ignoreAttributes===true||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes);this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}this.processTextOrObjNode=processTextOrObjNode;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return toXml(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}return this.j2x(e,0,[]).val}};Builder.prototype.j2x=function(e,t,n){let o="";let i="";const c=n.join(".");for(let d in e){if(!Object.prototype.hasOwnProperty.call(e,d))continue;if(typeof e[d]==="undefined"){if(this.isAttribute(d)){i+=""}}else if(e[d]===null){if(this.isAttribute(d)){i+=""}else if(d===this.options.cdataPropName){i+=""}else if(d[0]==="?"){i+=this.indentate(t)+"<"+d+"?"+this.tagEndChar}else{i+=this.indentate(t)+"<"+d+"/"+this.tagEndChar}}else if(e[d]instanceof Date){i+=this.buildTextValNode(e[d],d,"",t)}else if(typeof e[d]!=="object"){const n=this.isAttribute(d);if(n&&!this.ignoreAttributesFn(n,c)){o+=this.buildAttrPairStr(n,""+e[d])}else if(!n){if(d===this.options.textNodeName){let t=this.options.tagValueProcessor(d,""+e[d]);i+=this.replaceEntitiesValue(t)}else{i+=this.buildTextValNode(e[d],d,"",t)}}}else if(Array.isArray(e[d])){const o=e[d].length;let c="";let p="";for(let y=0;y<o;y++){const o=e[d][y];if(typeof o==="undefined"){}else if(o===null){if(d[0]==="?")i+=this.indentate(t)+"<"+d+"?"+this.tagEndChar;else i+=this.indentate(t)+"<"+d+"/"+this.tagEndChar}else if(typeof o==="object"){if(this.options.oneListGroup){const e=this.j2x(o,t+1,n.concat(d));c+=e.val;if(this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)){p+=e.attrStr}}else{c+=this.processTextOrObjNode(o,d,t,n)}}else{if(this.options.oneListGroup){let e=this.options.tagValueProcessor(d,o);e=this.replaceEntitiesValue(e);c+=e}else{c+=this.buildTextValNode(o,d,"",t)}}}if(this.options.oneListGroup){c=this.buildObjectNode(c,d,p,t)}i+=c}else{if(this.options.attributesGroupName&&d===this.options.attributesGroupName){const t=Object.keys(e[d]);const n=t.length;for(let i=0;i<n;i++){o+=this.buildAttrPairStr(t[i],""+e[d][t[i]])}}else{i+=this.processTextOrObjNode(e[d],d,t,n)}}}return{attrStr:o,val:i}};Builder.prototype.buildAttrPairStr=function(e,t){t=this.options.attributeValueProcessor(e,""+t);t=this.replaceEntitiesValue(t);if(this.options.suppressBooleanAttributes&&t==="true"){return" "+e}else return" "+e+'="'+t+'"'};function processTextOrObjNode(e,t,n,o){const i=this.j2x(e,n+1,o.concat(t));if(e[this.options.textNodeName]!==undefined&&Object.keys(e).length===1){return this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n)}else{return this.buildObjectNode(i.val,t,i.attrStr,n)}}Builder.prototype.buildObjectNode=function(e,t,n,o){if(e===""){if(t[0]==="?")return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;else{return this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar}}else{let i="</"+t+this.tagEndChar;let c="";if(t[0]==="?"){c="?";i=""}if((n||n==="")&&e.indexOf("<")===-1){return this.indentate(o)+"<"+t+n+c+">"+e+i}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&c.length===0){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(o)+"<"+t+n+c+this.tagEndChar+e+this.indentate(o)+i}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`></${e}`}return t};function buildEmptyObjNode(e,t,n,o){if(e!==""){return this.buildObjectNode(e,t,n,o)}else{if(t[0]==="?")return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;else{return this.indentate(o)+"<"+t+n+"/"+this.tagEndChar}}}Builder.prototype.buildTextValNode=function(e,t,n,o){if(this.options.cdataPropName!==false&&t===this.options.cdataPropName){return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar}else{let i=this.options.tagValueProcessor(t,e);i=this.replaceEntitiesValue(i);if(i===""){return this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar}else{return this.indentate(o)+"<"+t+n+">"+i+"</"+t+this.tagEndChar}}};Builder.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities){for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}}return e};function indentate(e){return this.options.indentBy.repeat(e)}function isAttribute(e){if(e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName){return e.substr(this.attrPrefixLen)}else{return false}}const Ms=":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";const Hs=Ms+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const $s="["+Ms+"]["+Hs+"]*";const Gs=new RegExp("^"+$s+"$");function getAllMatches(e,t){const n=[];let o=t.exec(e);while(o){const i=[];i.startIndex=t.lastIndex-o[0].length;const c=o.length;for(let e=0;e<c;e++){i.push(o[e])}n.push(i);o=t.exec(e)}return n}const isName=function(e){const t=Gs.exec(e);return!(t===null||typeof t==="undefined")};function isExist(e){return typeof e!=="undefined"}function isEmptyObject(e){return Object.keys(e).length===0}function merge(e,t,n){if(t){const o=Object.keys(t);const i=o.length;for(let c=0;c<i;c++){if(n==="strict"){e[o[c]]=[t[o[c]]]}else{e[o[c]]=t[o[c]]}}}}function getValue(e){if(exports.isExist(e)){return e}else{return""}}const qs={allowBooleanAttributes:false,unpairedTags:[]};function validate(e,t){t=Object.assign({},qs,t);const n=[];let o=false;let i=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let c=0;c<e.length;c++){if(e[c]==="<"&&e[c+1]==="?"){c+=2;c=readPI(e,c);if(c.err)return c}else if(e[c]==="<"){let d=c;c++;if(e[c]==="!"){c=readCommentAndCDATA(e,c);continue}else{let p=false;if(e[c]==="/"){p=true;c++}let y="";for(;c<e.length&&e[c]!==">"&&e[c]!==" "&&e[c]!=="\t"&&e[c]!=="\n"&&e[c]!=="\r";c++){y+=e[c]}y=y.trim();if(y[y.length-1]==="/"){y=y.substring(0,y.length-1);c--}if(!validateTagName(y)){let t;if(y.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+y+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,c))}const C=readAttributeStr(e,c);if(C===false){return getErrorObject("InvalidAttr","Attributes for '"+y+"' have open quote.",getLineNumberForPosition(e,c))}let Q=C.value;c=C.index;if(Q[Q.length-1]==="/"){const n=c-Q.length;Q=Q.substring(0,Q.length-1);const i=validateAttributeString(Q,t);if(i===true){o=true}else{return getErrorObject(i.err.code,i.err.msg,getLineNumberForPosition(e,n+i.err.line))}}else if(p){if(!C.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",getLineNumberForPosition(e,c))}else if(Q.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,d))}else if(n.length===0){return getErrorObject("InvalidTag","Closing tag '"+y+"' has not been opened.",getLineNumberForPosition(e,d))}else{const t=n.pop();if(y!==t.tagName){let n=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+y+"'.",getLineNumberForPosition(e,d))}if(n.length==0){i=true}}}else{const p=validateAttributeString(Q,t);if(p!==true){return getErrorObject(p.err.code,p.err.msg,getLineNumberForPosition(e,c-Q.length+p.err.line))}if(i===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,c))}else if(t.unpairedTags.indexOf(y)!==-1){}else{n.push({tagName:y,tagStartPos:d})}o=true}for(c++;c<e.length;c++){if(e[c]==="<"){if(e[c+1]==="!"){c++;c=readCommentAndCDATA(e,c);continue}else if(e[c+1]==="?"){c=readPI(e,++c);if(c.err)return c}else{break}}else if(e[c]==="&"){const t=validateAmpersand(e,c);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,c));c=t}else{if(i===true&&!isWhiteSpace(e[c])){return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,c))}}}if(e[c]==="<"){c--}}}else{if(isWhiteSpace(e[c])){continue}return getErrorObject("InvalidChar","char '"+e[c]+"' is not expected.",getLineNumberForPosition(e,c))}}if(!o){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(n.length==1){return getErrorObject("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",getLineNumberForPosition(e,n[0].tagStartPos))}else if(n.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const n=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){const o=e.substr(n,t-n);if(t>5&&o==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++){if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t<e.length;t++){if(e[t]==="<"){n++}else if(e[t]===">"){n--;if(n===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++){if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}}return t}const zs='"';const Vs="'";function readAttributeStr(e,t){let n="";let o="";let i=false;for(;t<e.length;t++){if(e[t]===zs||e[t]===Vs){if(o===""){o=e[t]}else if(o!==e[t]){}else{o=""}}else if(e[t]===">"){if(o===""){i=true;break}}n+=e[t]}if(o!==""){return false}return{value:n,index:t,tagClosed:i}}const js=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const n=getAllMatches(e,js);const o={};for(let e=0;e<n.length;e++){if(n[e][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",getPositionFromMatch(n[e]))}else if(n[e][3]!==undefined&&n[e][4]===undefined){return getErrorObject("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",getPositionFromMatch(n[e]))}else if(n[e][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",getPositionFromMatch(n[e]))}const i=n[e][2];if(!validateAttrName(i)){return getErrorObject("InvalidAttr","Attribute '"+i+"' is an invalid name.",getPositionFromMatch(n[e]))}if(!o.hasOwnProperty(i)){o[i]=1}else{return getErrorObject("InvalidAttr","Attribute '"+i+"' is repeated.",getPositionFromMatch(n[e]))}}return true}function validateNumberAmpersand(e,t){let n=/\d/;if(e[t]==="x"){t++;n=/[\da-fA-F]/}for(;t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function validateAmpersand(e,t){t++;if(e[t]===";")return-1;if(e[t]==="#"){t++;return validateNumberAmpersand(e,t)}let n=0;for(;t<e.length;t++,n++){if(e[t].match(/\w/)&&n<20)continue;if(e[t]===";")break;return-1}return t}function getErrorObject(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function validateAttrName(e){return isName(e)}function validateTagName(e){return isName(e)}function getLineNumberForPosition(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[1].length}const Ys={validate:validate};const Js={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,n){return e},captureMetaData:false};const buildOptions=function(e){return Object.assign({},Js,e)};let Ws;if(typeof Symbol!=="function"){Ws="@@xmlMetadata"}else{Ws=Symbol("XML Node Metadata")}class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e,t){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}if(t!==undefined){this.child[this.child.length-1][Ws]={startIndex:t}}}static getMetaDataSymbol(){return Ws}}class DocTypeReader{constructor(e){this.suppressValidationErr=!e}readDocType(e,t){const n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let o=1;let i=false,c=false;let d="";for(;t<e.length;t++){if(e[t]==="<"&&!c){if(i&&hasSeq(e,"!ENTITY",t)){t+=7;let o,i;[o,i,t]=this.readEntityExp(e,t+1,this.suppressValidationErr);if(i.indexOf("&")===-1)n[o]={regx:RegExp(`&${o};`,"g"),val:i}}else if(i&&hasSeq(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(i&&hasSeq(e,"!ATTLIST",t)){t+=8}else if(i&&hasSeq(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(hasSeq(e,"!--",t))c=true;else throw new Error(`Invalid DOCTYPE`);o++;d=""}else if(e[t]===">"){if(c){if(e[t-1]==="-"&&e[t-2]==="-"){c=false;o--}}else{o--}if(o===0){break}}else if(e[t]==="["){i=true}else{d+=e[t]}}if(o!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:n,i:t}}readEntityExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])&&e[t]!=='"'&&e[t]!=="'"){n+=e[t];t++}validateEntityName(n);t=skipWhitespace(e,t);if(!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()==="SYSTEM"){throw new Error("External entities are not supported")}else if(e[t]==="%"){throw new Error("Parameter entities are not supported")}}let o="";[t,o]=this.readIdentifierVal(e,t,"entity");t--;return[n,o,t]}readNotationExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])){n+=e[t];t++}!this.suppressValidationErr&&validateEntityName(n);t=skipWhitespace(e,t);const o=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&o!=="SYSTEM"&&o!=="PUBLIC"){throw new Error(`Expected SYSTEM or PUBLIC, found "${o}"`)}t+=o.length;t=skipWhitespace(e,t);let i=null;let c=null;if(o==="PUBLIC"){[t,i]=this.readIdentifierVal(e,t,"publicIdentifier");t=skipWhitespace(e,t);if(e[t]==='"'||e[t]==="'"){[t,c]=this.readIdentifierVal(e,t,"systemIdentifier")}}else if(o==="SYSTEM"){[t,c]=this.readIdentifierVal(e,t,"systemIdentifier");if(!this.suppressValidationErr&&!c){throw new Error("Missing mandatory system identifier for SYSTEM notation")}}return{notationName:n,publicIdentifier:i,systemIdentifier:c,index:--t}}readIdentifierVal(e,t,n){let o="";const i=e[t];if(i!=='"'&&i!=="'"){throw new Error(`Expected quoted string, found "${i}"`)}t++;while(t<e.length&&e[t]!==i){o+=e[t];t++}if(e[t]!==i){throw new Error(`Unterminated ${n} value`)}t++;return[t,o]}readElementExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])){n+=e[t];t++}if(!this.suppressValidationErr&&!isName(n)){throw new Error(`Invalid element name: "${n}"`)}t=skipWhitespace(e,t);let o="";if(e[t]==="E"&&hasSeq(e,"MPTY",t))t+=4;else if(e[t]==="A"&&hasSeq(e,"NY",t))t+=2;else if(e[t]==="("){t++;while(t<e.length&&e[t]!==")"){o+=e[t];t++}if(e[t]!==")"){throw new Error("Unterminated content model")}}else if(!this.suppressValidationErr){throw new Error(`Invalid Element Expression, found "${e[t]}"`)}return{elementName:n,contentModel:o.trim(),index:t}}readAttlistExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])){n+=e[t];t++}validateEntityName(n);t=skipWhitespace(e,t);let o="";while(t<e.length&&!/\s/.test(e[t])){o+=e[t];t++}if(!validateEntityName(o)){throw new Error(`Invalid attribute name: "${o}"`)}t=skipWhitespace(e,t);let i="";if(e.substring(t,t+8).toUpperCase()==="NOTATION"){i="NOTATION";t+=8;t=skipWhitespace(e,t);if(e[t]!=="("){throw new Error(`Expected '(', found "${e[t]}"`)}t++;let n=[];while(t<e.length&&e[t]!==")"){let o="";while(t<e.length&&e[t]!=="|"&&e[t]!==")"){o+=e[t];t++}o=o.trim();if(!validateEntityName(o)){throw new Error(`Invalid notation name: "${o}"`)}n.push(o);if(e[t]==="|"){t++;t=skipWhitespace(e,t)}}if(e[t]!==")"){throw new Error("Unterminated list of notations")}t++;i+=" ("+n.join("|")+")"}else{while(t<e.length&&!/\s/.test(e[t])){i+=e[t];t++}const n=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!n.includes(i.toUpperCase())){throw new Error(`Invalid attribute type: "${i}"`)}}t=skipWhitespace(e,t);let c="";if(e.substring(t,t+8).toUpperCase()==="#REQUIRED"){c="#REQUIRED";t+=8}else if(e.substring(t,t+7).toUpperCase()==="#IMPLIED"){c="#IMPLIED";t+=7}else{[t,c]=this.readIdentifierVal(e,t,"ATTLIST")}return{elementName:n,attributeName:o,attributeType:i,defaultValue:c,index:t}}}const skipWhitespace=(e,t)=>{while(t<e.length&&/\s/.test(e[t])){t++}return t};function hasSeq(e,t,n){for(let o=0;o<t.length;o++){if(t[o]!==e[n+o+1])return false}return true}function validateEntityName(e){if(isName(e))return e;else throw new Error(`Invalid entity name ${e}`)}const Ks=/^[-+]?0x[a-fA-F0-9]+$/;const Xs=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;const Zs={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true};function toNumber(e,t={}){t=Object.assign({},Zs,t);if(!e||typeof e!=="string")return e;let n=e.trim();if(t.skipLike!==undefined&&t.skipLike.test(n))return e;else if(e==="0")return 0;else if(t.hex&&Ks.test(n)){return parse_int(n,16)}else if(n.search(/.+[eE].+/)!==-1){return resolveEnotation(e,n,t)}else{const o=Xs.exec(n);if(o){const i=o[1]||"";const c=o[2];let d=trimZeros(o[3]);const p=i?e[c.length+1]===".":e[c.length]===".";if(!t.leadingZeros&&(c.length>1||c.length===1&&!p)){return e}else{const o=Number(n);const p=String(o);if(o===0)return o;if(p.search(/[eE]/)!==-1){if(t.eNotation)return o;else return e}else if(n.indexOf(".")!==-1){if(p==="0")return o;else if(p===d)return o;else if(p===`${i}${d}`)return o;else return e}let y=c?d:n;if(c){return y===p||i+y===p?o:e}else{return y===p||y===i+p?o:e}}}else{return e}}}const eo=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(e,t,n){if(!n.eNotation)return e;const o=t.match(eo);if(o){let i=o[1]||"";const c=o[3].indexOf("e")===-1?"E":"e";const d=o[2];const p=i?e[d.length+1]===c:e[d.length]===c;if(d.length>1&&p)return e;else if(d.length===1&&(o[3].startsWith(`.${c}`)||o[3][0]===c)){return Number(t)}else if(n.leadingZeros&&!p){t=(o[1]||"")+o[3];return Number(t)}else return e}else{return e}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substring(0,e.length-1);return e}return e}function parse_int(e,t){if(parseInt)return parseInt(e,t);else if(Number.parseInt)return Number.parseInt(e,t);else if(window&&window.parseInt)return window.parseInt(e,t);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>fromCodePoint(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>fromCodePoint(t,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes);if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set;this.stopNodesWildcard=new Set;for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];if(typeof t!=="string")continue;if(t.startsWith("*.")){this.stopNodesWildcard.add(t.substring(2))}else{this.stopNodesExact.add(t)}}}}}function addExternalEntities(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];this.lastEntities[o]={regex:new RegExp("&"+o+";","g"),val:e[o]}}}function parseTextData(e,t,n,o,i,c,d){if(e!==undefined){if(this.options.trimValues&&!o){e=e.trim()}if(e.length>0){if(!d)e=this.replaceEntitiesValue(e);const o=this.options.tagValueProcessor(t,e,n,i,c);if(o===null||o===undefined){return e}else if(typeof o!==typeof e||o!==e){return o}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=n+t[1]}}return e}const to=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t){if(this.options.ignoreAttributes!==true&&typeof e==="string"){const n=getAllMatches(e,to);const o=n.length;const i={};for(let e=0;e<o;e++){const o=this.resolveNameSpace(n[e][1]);if(this.ignoreAttributesFn(o,t)){continue}let c=n[e][4];let d=this.options.attributeNamePrefix+o;if(o.length){if(this.options.transformAttributeName){d=this.options.transformAttributeName(d)}if(d==="__proto__")d="#__proto__";if(c!==undefined){if(this.options.trimValues){c=c.trim()}c=this.replaceEntitiesValue(c);const e=this.options.attributeValueProcessor(o,c,t);if(e===null||e===undefined){i[d]=c}else if(typeof e!==typeof c||e!==c){i[d]=e}else{i[d]=parseValue(c,this.options.parseAttributeValue,this.options.numberParseOptions)}}else if(this.options.allowBooleanAttributes){i[d]=true}}}if(!Object.keys(i).length){return}if(this.options.attributesGroupName){const e={};e[this.options.attributesGroupName]=i;return e}return i}}const parseXml=function(e){e=e.replace(/\r\n?/g,"\n");const t=new XmlNode("!xml");let n=t;let o="";let i="";const c=new DocTypeReader(this.options.processEntities);for(let d=0;d<e.length;d++){const p=e[d];if(p==="<"){if(e[d+1]==="/"){const t=findClosingIndex(e,">",d,"Closing Tag is not closed.");let c=e.substring(d+2,t).trim();if(this.options.removeNSPrefix){const e=c.indexOf(":");if(e!==-1){c=c.substr(e+1)}}if(this.options.transformTagName){c=this.options.transformTagName(c)}if(n){o=this.saveTextToParentTag(o,n,i)}const p=i.substring(i.lastIndexOf(".")+1);if(c&&this.options.unpairedTags.indexOf(c)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`)}let y=0;if(p&&this.options.unpairedTags.indexOf(p)!==-1){y=i.lastIndexOf(".",i.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{y=i.lastIndexOf(".")}i=i.substring(0,y);n=this.tagsNodeStack.pop();o="";d=t}else if(e[d+1]==="?"){let t=readTagExp(e,d,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");o=this.saveTextToParentTag(o,n,i);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new XmlNode(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,i)}this.addChild(n,e,i,d)}d=t.closeIndex+1}else if(e.substr(d+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const c=e.substring(d+4,t-2);o=this.saveTextToParentTag(o,n,i);n.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}d=t}else if(e.substr(d+1,2)==="!D"){const t=c.readDocType(e,d);this.docTypeEntities=t.entities;d=t.i}else if(e.substr(d+1,2)==="!["){const t=findClosingIndex(e,"]]>",d,"CDATA is not closed.")-2;const c=e.substring(d+9,t);o=this.saveTextToParentTag(o,n,i);let p=this.parseTextData(c,n.tagname,i,true,false,true,true);if(p==undefined)p="";if(this.options.cdataPropName){n.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}])}else{n.add(this.options.textNodeName,p)}d=t+2}else{let c=readTagExp(e,d,this.options.removeNSPrefix);let p=c.tagName;const y=c.rawTagName;let C=c.tagExp;let Q=c.attrExpPresent;let v=c.closeIndex;if(this.options.transformTagName){const e=this.options.transformTagName(p);if(C===p){C=e}p=e}if(n&&o){if(n.tagname!=="!xml"){o=this.saveTextToParentTag(o,n,i,false)}}const D=n;if(D&&this.options.unpairedTags.indexOf(D.tagname)!==-1){n=this.tagsNodeStack.pop();i=i.substring(0,i.lastIndexOf("."))}if(p!==t.tagname){i+=i?"."+p:p}const k=d;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,p)){let t="";if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(p[p.length-1]==="/"){p=p.substr(0,p.length-1);i=i.substr(0,i.length-1);C=p}else{C=C.substr(0,C.length-1)}d=c.closeIndex}else if(this.options.unpairedTags.indexOf(p)!==-1){d=c.closeIndex}else{const n=this.readStopNodeData(e,y,v+1);if(!n)throw new Error(`Unexpected end of ${y}`);d=n.i;t=n.tagContent}const o=new XmlNode(p);if(p!==C&&Q){o[":@"]=this.buildAttributesMap(C,i)}if(t){t=this.parseTextData(t,p,i,true,Q,true,true)}i=i.substr(0,i.lastIndexOf("."));o.add(this.options.textNodeName,t);this.addChild(n,o,i,k)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(p[p.length-1]==="/"){p=p.substr(0,p.length-1);i=i.substr(0,i.length-1);C=p}else{C=C.substr(0,C.length-1)}if(this.options.transformTagName){const e=this.options.transformTagName(p);if(C===p){C=e}p=e}const e=new XmlNode(p);if(p!==C&&Q){e[":@"]=this.buildAttributesMap(C,i)}this.addChild(n,e,i,k);i=i.substr(0,i.lastIndexOf("."))}else{const e=new XmlNode(p);this.tagsNodeStack.push(n);if(p!==C&&Q){e[":@"]=this.buildAttributesMap(C,i)}this.addChild(n,e,i,k);n=e}o="";d=v}}}else{o+=e[d]}}return t.child};function addChild(e,t,n,o){if(!this.options.captureMetaData)o=undefined;const i=this.options.updateTag(t.tagname,n,t[":@"]);if(i===false){}else if(typeof i==="string"){t.tagname=i;e.addChild(t,o)}else{e.addChild(t,o)}}const OrderedObjParser_replaceEntitiesValue=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities){for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function saveTextToParentTag(e,t,n,o){if(e){if(o===undefined)o=t.child.length===0;e=this.parseTextData(e,t.tagname,n,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,o);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t,n,o){if(t&&t.has(o))return true;if(e&&e.has(n))return true;return false}function tagExpWithClosingIndex(e,t,n=">"){let o;let i="";for(let c=t;c<e.length;c++){let t=e[c];if(o){if(t===o)o=""}else if(t==='"'||t==="'"){o=t}else if(t===n[0]){if(n[1]){if(e[c+1]===n[1]){return{data:i,index:c}}}else{return{data:i,index:c}}}else if(t==="\t"){t=" "}i+=t}}function findClosingIndex(e,t,n,o){const i=e.indexOf(t,n);if(i===-1){throw new Error(o)}else{return i+t.length-1}}function readTagExp(e,t,n,o=">"){const i=tagExpWithClosingIndex(e,t+1,o);if(!i)return;let c=i.data;const d=i.index;const p=c.search(/\s/);let y=c;let C=true;if(p!==-1){y=c.substring(0,p);c=c.substring(p+1).trimStart()}const Q=y;if(n){const e=y.indexOf(":");if(e!==-1){y=y.substr(e+1);C=y!==i.data.substr(e+1)}}return{tagName:y,tagExp:c,closeIndex:d,attrExpPresent:C,rawTagName:Q}}function readStopNodeData(e,t,n){const o=n;let i=1;for(;n<e.length;n++){if(e[n]==="<"){if(e[n+1]==="/"){const c=findClosingIndex(e,">",n,`${t} is not closed`);let d=e.substring(n+2,c).trim();if(d===t){i--;if(i===0){return{tagContent:e.substring(o,n),i:c}}}n=c}else if(e[n+1]==="?"){const t=findClosingIndex(e,"?>",n+1,"StopNode is not closed.");n=t}else if(e.substr(n+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",n+3,"StopNode is not closed.");n=t}else if(e.substr(n+1,2)==="!["){const t=findClosingIndex(e,"]]>",n,"StopNode is not closed.")-2;n=t}else{const o=readTagExp(e,n,">");if(o){const e=o&&o.tagName;if(e===t&&o.tagExp[o.tagExp.length-1]!=="/"){i++}n=o.closeIndex}}}}}function parseValue(e,t,n){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return toNumber(e,n)}else{if(isExist(e)){return e}else{return""}}}function fromCodePoint(e,t,n){const o=Number.parseInt(e,t);if(o>=0&&o<=1114111){return String.fromCodePoint(o)}else{return n+e+";"}}const ro=XmlNode.getMetaDataSymbol();function prettify(e,t){return compress(e,t)}function compress(e,t,n){let o;const i={};for(let c=0;c<e.length;c++){const d=e[c];const p=node2json_propName(d);let y="";if(n===undefined)y=p;else y=n+"."+p;if(p===t.textNodeName){if(o===undefined)o=d[p];else o+=""+d[p]}else if(p===undefined){continue}else if(d[p]){let e=compress(d[p],t,y);const n=isLeafTag(e,t);if(d[ro]!==undefined){e[ro]=d[ro]}if(d[":@"]){assignAttributes(e,d[":@"],y,t)}else if(Object.keys(e).length===1&&e[t.textNodeName]!==undefined&&!t.alwaysCreateTextNode){e=e[t.textNodeName]}else if(Object.keys(e).length===0){if(t.alwaysCreateTextNode)e[t.textNodeName]="";else e=""}if(i[p]!==undefined&&i.hasOwnProperty(p)){if(!Array.isArray(i[p])){i[p]=[i[p]]}i[p].push(e)}else{if(t.isArray(p,y,n)){i[p]=[e]}else{i[p]=e}}}}if(typeof o==="string"){if(o.length>0)i[t.textNodeName]=o}else if(o!==undefined)i[t.textNodeName]=o;return i}function node2json_propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(n!==":@")return n}}function assignAttributes(e,t,n,o){if(t){const i=Object.keys(t);const c=i.length;for(let d=0;d<c;d++){const c=i[d];if(o.isArray(c,n+"."+c,true,true)){e[c]=[t[c]]}else{e[c]=t[c]}}}}function isLeafTag(e,t){const{textNodeName:n}=t;const o=Object.keys(e).length;if(o===0){return true}if(o===1&&(e[n]||typeof e[n]==="boolean"||e[n]===0)){return true}return false}class XMLParser{constructor(e){this.externalEntities={};this.options=buildOptions(e)}parse(e,t){if(typeof e!=="string"&&e.toString){e=e.toString()}else if(typeof e!=="string"){throw new Error("XML data is accepted in String or Bytes[] form.")}if(t){if(t===true)t={};const n=validate(e,t);if(n!==true){throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}}const n=new OrderedObjParser(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);if(this.options.preserveOrder||o===undefined)return o;else return prettify(o,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(e.indexOf("&")!==-1||e.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'")}else if(t==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[e]=t}}static getMetaDataSymbol(){return XmlNode.getMetaDataSymbol()}}const no="$";const so="_";function getCommonOptions(e){var t;return{attributesGroupName:no,textNodeName:(t=e.xmlCharKey)!==null&&t!==void 0?t:so,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){var t,n;return Object.assign(Object.assign({},getCommonOptions(e)),{attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:(t=e.rootName)!==null&&t!==void 0?t:"root",cdataPropName:(n=e.cdataPropName)!==null&&n!==void 0?n:"__cdata"})}function getParserOptions(e={}){return Object.assign(Object.assign({},getCommonOptions(e)),{parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false})}function stringifyXML(e,t={}){const n=getSerializerOptions(t);const o=new Builder(n);const i={[n.rootNodeName]:e};const c=o.build(i);return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${c}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const n=Ys.validate(e);if(n!==true){throw n}const o=new XMLParser(getParserOptions(t));const i=o.parse(e);if(i["?xml"]){delete i["?xml"]}if(!t.includeRoot){for(const e of Object.keys(i)){const t=i[e];return typeof t==="object"?Object.assign({},t):t}}return i}const oo=esm_createClientLogger("storage-blob");class BuffersStream extends Br.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let o=0;for(const e of this.buffers){o+=e.byteLength}if(o<this.byteLength){throw new Error("Data size shouldn't be larger than the total length of buffers.")}}_read(e){if(this.pushedBytesLength>=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(n<e&&this.pushedBytesLength<this.byteLength){const o=this.byteLength-this.pushedBytesLength;const i=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer;const c=Math.min(i,o);if(c>e-n){const o=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,o));this.pushedBytesLength+=e-n;this.byteOffsetInCurrentBuffer=o;n=e;break}else{const e=this.byteOffsetInCurrentBuffer+c;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(c===i){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=c;n+=c}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}var ao=__nccwpck_require__(4573);const co=ao.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e;this._size=0;const o=Math.ceil(e/co);for(let t=0;t<o;t++){let n=t===o-1?e%co:co;if(n===0){n=co}this.buffers.push(Buffer.allocUnsafe(n))}if(t){this.fill(t,n)}}fill(e,t){this._size=Math.min(this.capacity,t);let n=0,o=0,i=0,c=0,d=0;while(d<this._size){const t=e[n];const p=this.buffers[o];const y=t.copy(p,i,c);d+=y;c+=y;i+=y;if(c===t.length){n++;c=0}if(i===p.length){o++;i=0}}e.splice(0,n);if(e.length>0){e[0]=e[0].slice(c)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new be.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,o,i,c){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(n<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`)}if(i<=0){throw new RangeError(`concurrency must be larger than 0, current is ${i}`)}this.bufferSize=t;this.maxBuffers=n;this.readable=e;this.outgoingHandler=o;this.concurrency=i;this.encoding=c}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){const n=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler((()=>n.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers<this.maxBuffers){e=this.shiftBufferFromUnresolvedDataArray();this.numBuffers++}else{return false}}this.outgoing.push(e);this.triggerOutgoingHandlers()}return true}async triggerOutgoingHandlers(){let e;do{if(this.executingOutgoingHandlers>=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let lo;function cache_getCachedDefaultHttpClient(){if(!lo){lo=esm_defaultHttpClient_createDefaultHttpClient()}return lo}class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}const uo="1.0.0";const po={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ao={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",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const mo=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const go=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=utils_common_escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let c=Buffer.from("accountKey","base64");let d="";i=getValueInConnString(e,"AccountName");c=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){o=getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=getValueInConnString(e,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${d}`}if(!i){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:n,accountName:i,accountKey:c,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let o=getValueInConnString(e,"AccountName");if(!o){o=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const c=n?encodeURIComponent(n):undefined;const d=o.search===""?"?":o.search;const p=[];for(const e of d.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){p.push(e)}}}if(c){p.push(`${i}=${c}`)}o.search=p.length?`?${p.join("&")}`:"";return o.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&n<e.length-1}));const o={};for(const e of n){const t=e.split("=");const n=t[0];const i=t[1];o[n]=i}return o}function appendToURLQuery(e,t){const n=new URL(e);let o=n.search;if(o){o+="&"+t}else{o=t}n.search=o;return n.toString()}function truncatedISO8061Date(e,t=true){const n=e.toISOString();return t?n.substring(0,n.length-1)+"0000"+"Z":n.substring(0,n.length-5)+"Z"}function base64encode(e){return!isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const n=48;const o=6;const i=n-o;if(e.length>i){e=e.slice(0,i)}const c=e+padStart(t.toString(),n-e.length,"0");return base64encode(c)}async function utils_common_delay(e,t,n){return new Promise(((o,i)=>{let c;const abortHandler=()=>{if(c!==undefined){clearTimeout(c)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};c=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=createHttpHeaders();for(const[n,o]of e){if(n.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(o))}else{t.set(n,o)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}class StorageBrowserPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(Fn){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=setURLParameter(e.url,po.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(Ao.COOKIE);e.headers.remove(Ao.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}class StorageBrowserPolicyFactory{create(e,t){return new StorageBrowserPolicy(e,t)}}class CredentialPolicy extends BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(e,t){super(e,t)}}class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(e,t){return new AnonymousCredentialPolicy(e,t)}}const fo=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const ho=new Uint32Array([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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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]);const yo=new Uint32Array([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,32786,0,0,0,0,0,33298,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,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]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const n=[fo,ho,yo];let o=0;let i=0;let c=0;while(o<n.length){if(o===n.length-1&&i!==c){return i>c}const d=i<e.length?n[o][e[i].charCodeAt(0)]:1;const p=c<t.length?n[o][t[c].charCodeAt(0)]:1;if(d===1&&p===1){i=0;c=0;++o}else if(d===p){++i;++c}else if(d===0){++i}else if(p===0){++c}else{return d<p}}return false}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(Ao.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(Ao.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Ao.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Ao.CONTENT_ENCODING),this.getHeaderValueToSign(e,Ao.CONTENT_LENGTH),this.getHeaderValueToSign(e,Ao.CONTENT_MD5),this.getHeaderValueToSign(e,Ao.CONTENT_TYPE),this.getHeaderValueToSign(e,Ao.DATE),this.getHeaderValueToSign(e,Ao.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Ao.IF_MATCH),this.getHeaderValueToSign(e,Ao.IF_NONE_MATCH),this.getHeaderValueToSign(e,Ao.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Ao.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(Ao.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===Ao.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(Ao.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const o=getURLQueries(e.url);const i={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();i[n]=o[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(i[t])}`}}return n}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,Pn.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const Eo=esm_createClientLogger("storage-common");var Co;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(Co||(Co={}));function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const Io={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Co.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const bo=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(e,t,n=Io){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Io.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Io.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Io.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Io.maxRetryDelayInMs):Io.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Io.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Io.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const o=e.clone();const i=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!i){o.url=setURLHost(o.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){o.url=setURLParameter(o.url,po.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let c;try{Eo.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`);c=await this._nextPolicy.sendRequest(o);if(!this.shouldRetry(i,n,c)){return c}t=t||!i&&c.status===404}catch(e){Eo.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(i,n,c,e)){throw e}}await this.delay(i,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,o){if(t>=this.retryOptions.maxTries){Eo.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(const e of i){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){Eo.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||o){const t=n?n.status:o?o.statusCode:0;if(!e&&t===404){Eo.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){Eo.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(n){if(n?.status>=400){const e=n.headers.get(Ao.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){Eo.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let o=0;if(e){switch(this.retryOptions.retryPolicyType){case Co.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Co.FIXED:o=this.retryOptions.retryDelayInMs;break}}else{o=Math.random()*1e3}Eo.info(`RetryPolicy: Delay for ${o}ms`);return utils_common_delay(o,n,bo)}}class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}const So="storageBrowserPolicy";function storageBrowserPolicy(){return{name:So,async sendRequest(e,t){if(Fn){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=setURLParameter(e.url,po.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(Ao.COOKIE);e.headers.delete(Ao.CONTENT_LENGTH);return t(e)}}}const Bo="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(Ao.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:Bo,async sendRequest(e,t){correctContentLength(e);return t(e)}}}const wo="storageRetryPolicy";const Ro={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Co.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const No=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const Qo=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const t=e.retryPolicyType??Ro.retryPolicyType;const n=e.maxTries??Ro.maxTries;const o=e.retryDelayInMs??Ro.retryDelayInMs;const i=e.maxRetryDelayInMs??Ro.maxRetryDelayInMs;const c=e.secondaryHost??Ro.secondaryHost;const d=e.tryTimeoutInMs??Ro.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:o,error:i}){if(t>=n){Eo.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`);return false}if(i){for(const e of No){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){Eo.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){Eo.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(o||i){const t=o?.status??i?.statusCode??0;if(!e&&t===404){Eo.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){Eo.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o){if(o?.status>=400){const e=o.headers.get(Ao.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,n){let c=0;if(e){switch(t){case Co.EXPONENTIAL:c=Math.min((Math.pow(2,n-1)-1)*o,i);break;case Co.FIXED:c=o;break}}else{c=Math.random()*1e3}Eo.info(`RetryPolicy: Delay for ${c}ms`);return c}return{name:wo,async sendRequest(e,t){if(d){e.url=setURLParameter(e.url,po.Parameters.TIMEOUT,String(Math.floor(d/1e3)))}const n=e.url;const o=c?setURLHost(e.url,c):undefined;let i=false;let p=1;let y=true;let C;let Q;while(y){const c=i||!o||!["GET","HEAD","OPTIONS"].includes(e.method)||p%2===1;e.url=c?n:o;C=undefined;Q=undefined;try{Eo.info(`RetryPolicy: =====> Try=${p} ${c?"Primary":"Secondary"}`);C=await t(e);i=i||!c&&C.status===404}catch(e){if(esm_restError_isRestError(e)){Eo.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);Q=e}else{Eo.error(`RetryPolicy: Caught error, message: ${getErrorMessage(e)}`);throw e}}y=shouldRetry({isPrimaryRetry:c,attempt:p,response:C,error:Q});if(y){await utils_common_delay(calculateDelay(c,p),e.abortSignal,Qo)}p++}if(C){return C}throw Q??new ts("RetryPolicy failed without known error.")}}}const xo="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(Ao.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(Ao.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,Ao.CONTENT_LANGUAGE),getHeaderValueToSign(t,Ao.CONTENT_ENCODING),getHeaderValueToSign(t,Ao.CONTENT_LENGTH),getHeaderValueToSign(t,Ao.CONTENT_MD5),getHeaderValueToSign(t,Ao.CONTENT_TYPE),getHeaderValueToSign(t,Ao.DATE),getHeaderValueToSign(t,Ao.IF_MODIFIED_SINCE),getHeaderValueToSign(t,Ao.IF_MATCH),getHeaderValueToSign(t,Ao.IF_NONE_MATCH),getHeaderValueToSign(t,Ao.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,Ao.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const o=(0,Pn.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(Ao.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===Ao.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,o]of e.headers){if(n.toLowerCase().startsWith(Ao.PREFIX_FOR_STORAGE)){t.push({name:n,value:o})}}t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=getURLPath(t.url)||"/";let o="";o+=`/${e.accountName}${n}`;const i=getURLQueries(t.url);const c={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();c[n]=i[t];e.push(n)}}e.sort();for(const t of e){o+=`\n${t}:${decodeURIComponent(c[t])}`}}return o}return{name:xo,async sendRequest(e,t){signRequest(e);return t(e)}}}const To="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:To,async sendRequest(e,t){try{const n=await t(e);return n}catch(e){if(typeof e==="object"&&e!==null&&e.response&&e.response.parsedBody){if(e.response.parsedBody.code==="InvalidHeaderValue"&&e.response.parsedBody.HeaderName==="x-ms-version"){e.message="The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.\n"}}throw e}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,Pn.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}const vo="12.31.0";const Po="2026-02-06";const Do=256*1024*1024;const ko=4e3*1024*1024;const _o=5e4;const Lo=8*1024*1024;const Oo=4*1024*1024;const Fo=5;const Uo=100*1e3;const Mo="https://storage.azure.com/.default";const Ho={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const $o={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",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const qo="";const zo="*";const Vo=1*1024*1024;const jo=256;const Yo=4*Vo;const Jo="\r\n";const Wo="HTTP/1.1";const Ko="AES256";const Xo=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Zo=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];const ei=["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 ti="BlobUsesCustomerSpecifiedEncryption";const ri="BlobDoesNotUseCustomerSpecifiedEncryption";const ni=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){if(!e){e=new AnonymousCredential}const n=new Pipeline([],t);n._credential=e;return n}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const n=e.factories.filter((e=>!t.some((t=>t(e)))));if(n.length){const e=n.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(n),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...n}=e.options;let o=e._coreHttpClient;if(!o){o=t?convertHttpClient(t):cache_getCachedDefaultHttpClient();e._coreHttpClient=o}let i=e._corePipeline;if(!i){const t=`azsdk-js-azure-storage-blob/${vo}`;const o=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=createClientPipeline({...n,loggingOptions:{additionalAllowedHeaderNames:Zo,additionalAllowedQueryParameters:ei,logger:oo.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});i.removePolicy({phase:"Retry"});i.removePolicy({name:zn});i.addPolicy(storageCorrectContentLengthPolicy());i.addPolicy(storageRetryPolicy(n.retryOptions),{phase:"Retry"});i.addPolicy(storageRequestFailureDetailsParserPolicy());i.addPolicy(storageBrowserPolicy());const c=processDownlevelPipeline(e);if(c){i.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:undefined)}const d=getCredentialFromPipeline(e);if(isTokenCredential(d)){i.addPolicy(bearerTokenAuthenticationPolicy({credential:d,scopes:n.audience??Mo,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(d instanceof StorageSharedKeyCredential){i.addPolicy(storageSharedKeyCredentialPolicy({accountName:d.accountName,accountKey:d.accountKey}),{phase:"Sign"})}e._corePipeline=i}return{...n,allowInsecureConnection:true,httpClient:o,pipeline:i}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new AnonymousCredential;for(const n of e.factories){if(isTokenCredential(n.credential)){t=n.credential}else if(isStorageSharedKeyCredential(n)){return n}}return t}function isStorageSharedKeyCredential(e){if(e instanceof StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return isTokenCredential(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const n={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const o={log(e,t){},shouldLog(e){return false}};const i=e.create(n,o);const c=i.constructor.name;return t.some((e=>c.startsWith(e)))}var si;(function(e){e["AES256"]="AES256"})(si||(si={}));var oi;(function(e){e["Backup"]="backup"})(oi||(oi={}));var ii;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(ii||(ii={}));var ai;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(ai||(ai={}));const ci={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 li={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 ui={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 di={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 pi={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 Ai={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 mi={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const gi={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const fi={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 hi={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 yi={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 Ei={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 Ci={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 Ii={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 bi={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 Si={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 Bi={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 wi={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 Ri={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 Ni={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 Qi={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 xi={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 Ti={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 vi={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 Pi={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 Di={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 ki={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 _i={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Li={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 Oi={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 Fi={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 Ui={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 Mi={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 Hi={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 $i={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 Gi={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const qi={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:"Dictionary",value:{type:{name:"any"}}}}}}};const zi={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 Vi={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const ji={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 Yi={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 Ji={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 Wi={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ki={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 Xi={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zi={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 ea={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ta={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 ra={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const na={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 sa={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oa={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 ia={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const aa={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 ca={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const la={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 ua={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={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 pa={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Aa={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ma={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={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 fa={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ha={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 ya={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ea={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 Ca={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ia={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 ba={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sa={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 Ba={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wa={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 Ra={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Na={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 Qa={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xa={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 Ta={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const va={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 Pa={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Da={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 ka={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _a={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 La={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oa={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 Fa={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ua={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 Ma={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ha={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 $a={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ga={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 qa={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const za={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const Va={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ja={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Ya={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ja={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wa={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ka={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 Xa={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Za={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 ec={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tc={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 rc={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nc={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 sc={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oc={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 ic={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ac={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 cc={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lc={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 uc={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dc={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 pc={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ac={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 mc={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gc={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 fc={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hc={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 yc={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ec={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 Cc={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ic={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 bc={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sc={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 Bc={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wc={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 Rc={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Nc={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 Qc={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const xc={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 Tc={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vc={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 Pc={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dc={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const kc={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _c={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Lc={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oc={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 Fc={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uc={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 Mc={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hc={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 $c={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gc={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 qc={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zc={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 Vc={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jc={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 Yc={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Jc={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 Wc={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kc={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 Xc={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zc={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 el={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tl={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 rl={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nl={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 sl={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ol={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 il={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const al={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 cl={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ll={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 ul={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const dl={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 pl={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Al={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 ml={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gl={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 fl={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const hl={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 yl={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const El={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 Cl={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Il={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 bl={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sl={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 Bl={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wl={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Rl={parameterPath:"blobServiceProperties",mapper:ci};const Nl={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ql={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const xl={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Tl={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const vl={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Pl={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const Dl={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const kl={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const _l={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ll={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ol={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const Fl={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const Ul={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const Ml={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Hl={parameterPath:"keyInfo",mapper:Ci};const $l={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Gl={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const ql={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const zl={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Vl={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const jl={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const Yl={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Jl={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Wl={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Kl={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const Xl={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Zl={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const eu={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const tu={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const ru={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const nu={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const su={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ou={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const iu={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const au={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const cu={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const lu={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const uu={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const du={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const pu={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Au={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mu={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const gu={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const fu={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const hu={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const yu={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Eu={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Cu={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Iu={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const bu={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Su={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Bu={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const wu={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const Ru={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Nu={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Qu={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const xu={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Tu={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const vu={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Pu={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Du={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const ku={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const _u={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Lu={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const Ou={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const Fu={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const Uu={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const Mu={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Hu={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const $u={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const Gu={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const qu={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const zu={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Vu={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const ju={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const Yu={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const Ju={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wu={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const Ku={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const Xu={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Zu={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const ed={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const td={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const rd={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 nd={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const sd={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const od={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const id={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const ad={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const cd={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const ld={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const ud={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const dd={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const pd={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Ad={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const md={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const gd={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const fd={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 hd={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const yd={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ed={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const Cd={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Id={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bd={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 Sd={parameterPath:["options","queryRequest"],mapper:$i};const Bd={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wd={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Rd={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Nd={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Qd={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const xd={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const Td={parameterPath:["options","tags"],mapper:Bi};const vd={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Pd={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Dd={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const kd={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const _d={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Ld={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Od={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Fd={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ud={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Md={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Hd={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const $d={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const Gd={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const qd={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const zd={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Vd={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const jd={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const Yd={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const Jd={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wd={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const Kd={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Xd={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 Zd={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ep={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const tp={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const rp={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const np={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const sp={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const ip={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ap={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const lp={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const up={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const dp={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const pp={parameterPath:"blocks",mapper:Li};const Ap={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mp={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},fp)}getProperties(e){return this.client.sendOperationRequest({options:e},hp)}getStatistics(e){return this.client.sendOperationRequest({options:e},yp)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Ep)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},Cp)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ip)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},bp)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Sp)}}const gp=createSerializer(i,true);const fp={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ji},default:{bodyMapper:mi,headersMapper:Wi}},requestBody:Rl,queryParameters:[xl,Tl,vl],urlParameters:[Ql],headerParameters:[wl,Nl,Pl,Dl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:gp};const hp={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ci,headersMapper:Ki},default:{bodyMapper:mi,headersMapper:Xi}},queryParameters:[xl,Tl,vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:gp};const yp={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:gi,headersMapper:Zi},default:{bodyMapper:mi,headersMapper:ea}},queryParameters:[xl,vl,_l],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:gp};const Ep={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:hi,headersMapper:ta},default:{bodyMapper:mi,headersMapper:ra}},queryParameters:[vl,Ll,Ol,Fl,Ul,Ml],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:gp};const Cp={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:Ii,headersMapper:na},default:{bodyMapper:mi,headersMapper:sa}},requestBody:Hl,queryParameters:[xl,vl,$l],urlParameters:[Ql],headerParameters:[wl,Nl,Pl,Dl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:gp};const Ip={path:"/",httpMethod:"GET",responses:{200:{headersMapper:oa},default:{bodyMapper:mi,headersMapper:ia}},queryParameters:[Tl,vl,Gl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:gp};const bp={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:aa},default:{bodyMapper:mi,headersMapper:ca}},requestBody:ql,queryParameters:[vl,zl],urlParameters:[Ql],headerParameters:[Nl,Pl,Dl,Vl,jl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:gp};const Sp={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:bi,headersMapper:la},default:{bodyMapper:mi,headersMapper:ua}},queryParameters:[vl,Fl,Ul,Yl,Jl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:gp};class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},wp)}getProperties(e){return this.client.sendOperationRequest({options:e},Rp)}delete(e){return this.client.sendOperationRequest({options:e},Np)}setMetadata(e){return this.client.sendOperationRequest({options:e},Qp)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},xp)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},Tp)}restore(e){return this.client.sendOperationRequest({options:e},vp)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},Pp)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},Dp)}filterBlobs(e){return this.client.sendOperationRequest({options:e},kp)}acquireLease(e){return this.client.sendOperationRequest({options:e},_p)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Lp)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Op)}breakLease(e){return this.client.sendOperationRequest({options:e},Fp)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Up)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},Mp)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Hp)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},$p)}}const Bp=createSerializer(i,true);const wp={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:da},default:{bodyMapper:mi,headersMapper:pa}},queryParameters:[vl,Wl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Kl,Xl,Zl,eu],isXML:true,serializer:Bp};const Rp={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Aa},default:{bodyMapper:mi,headersMapper:ma}},queryParameters:[vl,Wl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu],isXML:true,serializer:Bp};const Np={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:ga},default:{bodyMapper:mi,headersMapper:fa}},queryParameters:[vl,Wl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu],isXML:true,serializer:Bp};const Qp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ha},default:{bodyMapper:mi,headersMapper:ya}},queryParameters:[vl,Wl,su],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Kl,tu,ru],isXML:true,serializer:Bp};const xp={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:Ea},default:{bodyMapper:mi,headersMapper:Ca}},queryParameters:[vl,Wl,ou],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu],isXML:true,serializer:Bp};const Tp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ia},default:{bodyMapper:mi,headersMapper:ba}},requestBody:iu,queryParameters:[vl,Wl,ou],urlParameters:[Ql],headerParameters:[wl,Nl,Pl,Dl,Xl,tu,ru,nu],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Bp};const vp={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Sa},default:{bodyMapper:mi,headersMapper:Ba}},queryParameters:[vl,Wl,au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,cu,lu],isXML:true,serializer:Bp};const Pp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:wa},default:{bodyMapper:mi,headersMapper:Ra}},queryParameters:[vl,Wl,uu],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,du,pu],isXML:true,serializer:Bp};const Dp={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Na},default:{bodyMapper:mi,headersMapper:Qa}},requestBody:ql,queryParameters:[vl,zl,Wl],urlParameters:[Ql],headerParameters:[Nl,Pl,Dl,Vl,jl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Bp};const kp={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:bi,headersMapper:xa},default:{bodyMapper:mi,headersMapper:Ta}},queryParameters:[vl,Fl,Ul,Yl,Jl,Wl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:Bp};const _p={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:va},default:{bodyMapper:mi,headersMapper:Pa}},queryParameters:[vl,Wl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,mu,gu,fu],isXML:true,serializer:Bp};const Lp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Da},default:{bodyMapper:mi,headersMapper:ka}},queryParameters:[vl,Wl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,hu,yu],isXML:true,serializer:Bp};const Op={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:_a},default:{bodyMapper:mi,headersMapper:La}},queryParameters:[vl,Wl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,yu,Eu],isXML:true,serializer:Bp};const Fp={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Oa},default:{bodyMapper:mi,headersMapper:Fa}},queryParameters:[vl,Wl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,Cu,Iu],isXML:true,serializer:Bp};const Up={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ua},default:{bodyMapper:mi,headersMapper:Ma}},queryParameters:[vl,Wl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,yu,bu,Su],isXML:true,serializer:Bp};const Mp={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Qi,headersMapper:Ha},default:{bodyMapper:mi,headersMapper:$a}},queryParameters:[vl,Ll,Ol,Fl,Ul,Wl,Bu,wu],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:Bp};const Hp={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Di,headersMapper:Ga},default:{bodyMapper:mi,headersMapper:qa}},queryParameters:[vl,Ll,Ol,Fl,Ul,Wl,Bu,wu,Ru],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:Bp};const $p={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:za},default:{bodyMapper:mi,headersMapper:Va}},queryParameters:[Tl,vl,Gl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:Bp};class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},qp)}getProperties(e){return this.client.sendOperationRequest({options:e},zp)}delete(e){return this.client.sendOperationRequest({options:e},Vp)}undelete(e){return this.client.sendOperationRequest({options:e},jp)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},Yp)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Jp)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Wp)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Kp)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},Xp)}setMetadata(e){return this.client.sendOperationRequest({options:e},Zp)}acquireLease(e){return this.client.sendOperationRequest({options:e},eA)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},tA)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},rA)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},nA)}breakLease(e){return this.client.sendOperationRequest({options:e},sA)}createSnapshot(e){return this.client.sendOperationRequest({options:e},oA)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},iA)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},aA)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},cA)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},lA)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},uA)}query(e){return this.client.sendOperationRequest({options:e},dA)}getTags(e){return this.client.sendOperationRequest({options:e},pA)}setTags(e){return this.client.sendOperationRequest({options:e},AA)}}const Gp=createSerializer(i,true);const qp={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ja},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ja},default:{bodyMapper:mi,headersMapper:Ya}},queryParameters:[vl,Nu,Qu],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,xu,Tu,vu,Pu,Du,ku,_u,Lu,Ou],isXML:true,serializer:Gp};const zp={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Ja},default:{bodyMapper:mi,headersMapper:Wa}},queryParameters:[vl,Nu,Qu],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou],isXML:true,serializer:Gp};const Vp={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Ka},default:{bodyMapper:mi,headersMapper:Xa}},queryParameters:[vl,Nu,Qu,Uu],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,_u,Lu,Ou,Fu],isXML:true,serializer:Gp};const jp={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Za},default:{bodyMapper:mi,headersMapper:ec}},queryParameters:[vl,au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:Gp};const Yp={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:tc},default:{bodyMapper:mi,headersMapper:rc}},queryParameters:[vl,Mu],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Hu,$u],isXML:true,serializer:Gp};const Jp={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nc},default:{bodyMapper:mi,headersMapper:sc}},queryParameters:[Tl,vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,_u,Lu,Ou,Gu,qu,zu,Vu,ju,Yu],isXML:true,serializer:Gp};const Wp={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:oc},default:{bodyMapper:mi,headersMapper:ic}},queryParameters:[vl,Nu,Qu,Ju],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,nu,Wu,Ku],isXML:true,serializer:Gp};const Kp={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:ac},default:{bodyMapper:mi,headersMapper:cc}},queryParameters:[vl,Nu,Qu,Ju],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:Gp};const Xp={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:lc},default:{bodyMapper:mi,headersMapper:uc}},queryParameters:[vl,Nu,Qu,Xu],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Zu],isXML:true,serializer:Gp};const Zp={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:dc},default:{bodyMapper:mi,headersMapper:pc}},queryParameters:[vl,su],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,ed],isXML:true,serializer:Gp};const eA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ac},default:{bodyMapper:mi,headersMapper:mc}},queryParameters:[vl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,mu,gu,fu,_u,Lu,Ou],isXML:true,serializer:Gp};const tA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:gc},default:{bodyMapper:mi,headersMapper:fc}},queryParameters:[vl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,hu,yu,_u,Lu,Ou],isXML:true,serializer:Gp};const rA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:hc},default:{bodyMapper:mi,headersMapper:yc}},queryParameters:[vl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,yu,Eu,_u,Lu,Ou],isXML:true,serializer:Gp};const nA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ec},default:{bodyMapper:mi,headersMapper:Cc}},queryParameters:[vl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,yu,bu,Su,_u,Lu,Ou],isXML:true,serializer:Gp};const sA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Ic},default:{bodyMapper:mi,headersMapper:bc}},queryParameters:[vl,Au],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,Cu,Iu,_u,Lu,Ou],isXML:true,serializer:Gp};const oA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Sc},default:{bodyMapper:mi,headersMapper:Bc}},queryParameters:[vl,td],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,ed],isXML:true,serializer:Gp};const iA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wc},default:{bodyMapper:mi,headersMapper:Rc}},queryParameters:[vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Kl,tu,ru,nu,_u,Lu,Ou,Wu,Ku,rd,nd,sd,od,id,ad,cd,ld,ud,dd,pd],isXML:true,serializer:Gp};const aA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Nc},default:{bodyMapper:mi,headersMapper:Qc}},queryParameters:[vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Kl,tu,ru,nu,_u,Lu,Ou,Wu,Ku,ed,rd,sd,od,id,ad,ld,ud,pd,Ad,md,gd,fd,hd],isXML:true,serializer:Gp};const cA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:xc},default:{bodyMapper:mi,headersMapper:Tc}},queryParameters:[vl,yd,Cd],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,Ed],isXML:true,serializer:Gp};const lA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:vc},202:{headersMapper:vc},default:{bodyMapper:mi,headersMapper:Pc}},queryParameters:[vl,Nu,Qu,Id],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,Ou,nd,bd],isXML:true,serializer:Gp};const uA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Dc},default:{bodyMapper:mi,headersMapper:kc}},queryParameters:[Tl,vl,Gl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl],isXML:true,serializer:Gp};const dA={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:_c},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:_c},default:{bodyMapper:mi,headersMapper:Lc}},requestBody:Sd,queryParameters:[vl,Nu,Bd],urlParameters:[Ql],headerParameters:[wl,Nl,Pl,Dl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Gp};const pA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Bi,headersMapper:Oc},default:{bodyMapper:mi,headersMapper:Fc}},queryParameters:[vl,Nu,Qu,wd],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,Ou,Rd,Nd,Qd,xd],isXML:true,serializer:Gp};const AA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Uc},default:{bodyMapper:mi,headersMapper:Mc}},requestBody:Td,queryParameters:[vl,Qu,wd],urlParameters:[Ql],headerParameters:[wl,Nl,Pl,Dl,tu,Ou,Rd,Nd,Qd,xd,vd,Pd],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Gp};class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},gA)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},fA)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},hA)}uploadPagesFromURL(e,t,n,o,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:o,options:i},yA)}getPageRanges(e){return this.client.sendOperationRequest({options:e},EA)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},CA)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},IA)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},bA)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},SA)}}const mA=createSerializer(i,true);const gA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Hc},default:{bodyMapper:mi,headersMapper:$c}},queryParameters:[vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Vl,Kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,Gu,qu,zu,Vu,ju,Yu,Wu,Ku,ed,rd,ud,pd,Dd,kd,_d],isXML:true,serializer:mA};const fA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Gc},default:{bodyMapper:mi,headersMapper:qc}},requestBody:Od,queryParameters:[vl,Ud],urlParameters:[Ql],headerParameters:[Pl,Dl,Vl,tu,ru,nu,xu,Pu,Du,ku,_u,Lu,Ou,ed,vd,Pd,Ld,Fd,Md,Hd,$d,Gd],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:mA};const hA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:zc},default:{bodyMapper:mi,headersMapper:Vc}},queryParameters:[vl,Ud],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Vl,tu,ru,nu,xu,Pu,Du,ku,_u,Lu,Ou,ed,Hd,$d,Gd,qd],isXML:true,serializer:mA};const yA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jc},default:{bodyMapper:mi,headersMapper:Yc}},queryParameters:[vl,Ud],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Vl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,ed,sd,od,id,ad,md,gd,hd,Md,Hd,$d,Gd,zd,Vd,jd,Yd],isXML:true,serializer:mA};const EA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ui,headersMapper:Jc},default:{bodyMapper:mi,headersMapper:Wc}},queryParameters:[vl,Fl,Ul,Nu,Jd],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,xu,_u,Lu,Ou],isXML:true,serializer:mA};const CA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ui,headersMapper:Kc},default:{bodyMapper:mi,headersMapper:Xc}},queryParameters:[vl,Fl,Ul,Nu,Jd,Wd],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,xu,_u,Lu,Ou,Kd],isXML:true,serializer:mA};const IA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Zc},default:{bodyMapper:mi,headersMapper:el}},queryParameters:[Tl,vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,ed,kd],isXML:true,serializer:mA};const bA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:tl},default:{bodyMapper:mi,headersMapper:rl}},queryParameters:[Tl,vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,_u,Lu,Ou,_d,Xd],isXML:true,serializer:mA};const SA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:nl},default:{bodyMapper:mi,headersMapper:sl}},queryParameters:[vl,Zd],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,ru,nu,_u,Lu,Ou,ld],isXML:true,serializer:mA};class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},wA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},RA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},NA)}seal(e){return this.client.sendOperationRequest({options:e},QA)}}const BA=createSerializer(i,true);const wA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ol},default:{bodyMapper:mi,headersMapper:il}},queryParameters:[vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Vl,Kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,Gu,qu,zu,Vu,ju,Yu,Wu,Ku,ed,ud,pd,ep],isXML:true,serializer:BA};const RA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:al},default:{bodyMapper:mi,headersMapper:cl}},requestBody:Od,queryParameters:[vl,tp],urlParameters:[Ql],headerParameters:[Pl,Dl,Vl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,ed,vd,Pd,Ld,Fd,rp,np],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:BA};const NA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ll},default:{bodyMapper:mi,headersMapper:ul}},queryParameters:[vl,tp],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Vl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,ed,sd,od,id,ad,md,gd,hd,vd,zd,jd,rp,np,sp],isXML:true,serializer:BA};const QA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:dl},default:{bodyMapper:mi,headersMapper:pl}},queryParameters:[vl,ip],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,ru,nu,_u,Lu,np],isXML:true,serializer:BA};class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},TA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},vA)}stageBlock(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:o},PA)}stageBlockFromURL(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:o},DA)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},kA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},_A)}}const xA=createSerializer(i,true);const TA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Al},default:{bodyMapper:mi,headersMapper:ml}},requestBody:Od,queryParameters:[vl],urlParameters:[Ql],headerParameters:[Pl,Dl,Vl,Kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,Gu,qu,zu,Vu,ju,Yu,Wu,Ku,ed,rd,ud,pd,vd,Pd,Ld,Fd,ap],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:xA};const vA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:gl},default:{bodyMapper:mi,headersMapper:fl}},queryParameters:[vl],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Vl,Kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,Gu,qu,zu,Vu,ju,Yu,ed,rd,sd,od,id,ad,cd,ld,ud,md,gd,fd,hd,vd,ap,lp],isXML:true,serializer:xA};const PA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hl},default:{bodyMapper:mi,headersMapper:yl}},requestBody:Od,queryParameters:[vl,up,dp],urlParameters:[Ql],headerParameters:[Pl,Dl,Vl,tu,Pu,Du,ku,ed,vd,Pd,Ld,Fd],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:xA};const DA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:El},default:{bodyMapper:mi,headersMapper:Cl}},queryParameters:[vl,up,dp],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,Vl,tu,Pu,Du,ku,ed,sd,od,id,ad,md,gd,hd,zd,jd,sp],isXML:true,serializer:xA};const kA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Il},default:{bodyMapper:mi,headersMapper:bl}},requestBody:pp,queryParameters:[vl,Ap],urlParameters:[Ql],headerParameters:[wl,Nl,Pl,Dl,Kl,tu,ru,nu,Pu,Du,ku,_u,Lu,Ou,Gu,qu,zu,Vu,ju,Yu,Wu,Ku,ed,rd,ud,pd,vd,Pd],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:xA};const _A={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Oi,headersMapper:Sl},default:{bodyMapper:mi,headersMapper:Bl}},queryParameters:[vl,Nu,Ap,mp],urlParameters:[Ql],headerParameters:[Pl,Dl,kl,tu,Ou],isXML:true,serializer:xA};class StorageClient extends ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const n={requestContentType:"application/json; charset=utf-8"};const o=`azsdk-js-azure-storage-blob/12.30.0`;const i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;const c={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??"{url}"};super(c);this.url=e;this.version=t.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(e,t){const n={...t};if(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}"){n.path=""}return super.sendOperationRequest(e,n)}}function utils_common_escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=utils_utils_common_escape(n);t.pathname=n;return t.toString()}function utils_common_getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function utils_common_getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=utils_common_getProxyUriFromDevConnString(e);e=Xo}let n=utils_common_getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let c=Buffer.from("accountKey","base64");let d="";i=utils_common_getValueInConnString(e,"AccountName");c=Buffer.from(utils_common_getValueInConnString(e,"AccountKey"),"base64");if(!n){o=utils_common_getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=utils_common_getValueInConnString(e,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${d}`}if(!i){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:n,accountName:i,accountKey:c,proxyUri:t}}else{let t=utils_common_getValueInConnString(e,"SharedAccessSignature");let o=utils_common_getValueInConnString(e,"AccountName");if(!o){o=utils_common_getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function utils_utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function utils_common_setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const c=n?encodeURIComponent(n):undefined;const d=o.search===""?"?":o.search;const p=[];for(const e of d.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){p.push(e)}}}if(c){p.push(`${i}=${c}`)}o.search=p.length?`?${p.join("&")}`:"";return o.toString()}function utils_common_getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function utils_common_setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function utils_common_getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function utils_common_getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function utils_common_getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function utils_common_getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&n<e.length-1}));const o={};for(const e of n){const t=e.split("=");const n=t[0];const i=t[1];o[n]=i}return o}function utils_common_appendToURLQuery(e,t){const n=new URL(e);let o=n.search;if(o){o+="&"+t}else{o=t}n.search=o;return n.toString()}function utils_common_truncatedISO8061Date(e,t=true){const n=e.toISOString();return t?n.substring(0,n.length-1)+"0000"+"Z":n.substring(0,n.length-5)+"Z"}function utils_common_base64encode(e){return!Fn?btoa(e):Buffer.from(e).toString("base64")}function utils_common_base64decode(e){return!isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function utils_common_generateBlockID(e,t){const n=48;const o=6;const i=n-o;if(e.length>i){e=e.slice(0,i)}const c=e+utils_common_padStart(t.toString(),n-e.length,"0");return utils_common_base64encode(c)}async function utils_utils_common_delay(e,t,n){return new Promise(((o,i)=>{let c;const abortHandler=()=>{if(c!==undefined){clearTimeout(c)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};c=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function utils_common_sanitizeURL(e){let t=e;if(utils_common_getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=utils_common_setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function utils_common_sanitizeHeaders(e){const t=createHttpHeaders();for(const[n,o]of e){if(n.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(n,utils_common_sanitizeURL(o))}else{t.set(n,o)}}return t}function utils_common_iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&ni.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(o)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.blobTagSet.push({key:n,value:o})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const n of e.blobTagSet){t[n.key]=n.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const n in e){const o=n.split("_");const i="or-";if(o[0].startsWith(i)){o[0]=o[0].substring(i.length)}const c={ruleId:o[1],replicationStatus:e[n]};const d=t.findIndex((e=>e.policyId===o[0]));if(d>-1){t[d].rules.push(c)}else{t.push({policyId:o[0],rules:[c]})}}return t}function utils_common_attachCredential(e,t){e.credential=t;return e}function utils_common_httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let n=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)n=e.clearRange;let o=0;let i=0;while(o<t.length&&i<n.length){if(t[o].start<n[i].start){yield{start:t[o].start,end:t[o].end,isClear:false};++o}else{yield{start:n[i].start,end:n[i].end,isClear:true};++i}}for(;o<t.length;++o){yield{start:t[o].start,end:t[o].end,isClear:false}}for(;i<n.length;++i){yield{start:n[i].start,end:n[i].end,isClear:true}}}function utils_common_EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function utils_common_assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}class StorageClient_StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=utils_common_escapeURLPath(e);this.accountName=utils_common_getAccountNameFromUrl(e);this.pipeline=t;this.storageClientContext=new StorageContextClient(this.url,getCoreClientOptions(t));this.isHttps=utils_common_iEqual(utils_common_getURLScheme(this.url)||"","https");this.credential=getCredentialFromPipeline(t);const n=this.storageClientContext;n.requestContentType=undefined}}const LA=createTracingClient({packageName:"@azure/storage-blob",packageVersion:vo,namespace:"Microsoft.Storage"});class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${n}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${n}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}var OA;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(OA||(OA={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,n,o,i,c,d,p,y,C,Q,v,D,k,$,V,ee,te,re,ne,se){this.version=e;this.signature=t;if(n!==undefined&&typeof n!=="string"){this.permissions=n.permissions;this.services=n.services;this.resourceTypes=n.resourceTypes;this.protocol=n.protocol;this.startsOn=n.startsOn;this.expiresOn=n.expiresOn;this.ipRangeInner=n.ipRange;this.identifier=n.identifier;this.delegatedUserObjectId=n.delegatedUserObjectId;this.encryptionScope=n.encryptionScope;this.resource=n.resource;this.cacheControl=n.cacheControl;this.contentDisposition=n.contentDisposition;this.contentEncoding=n.contentEncoding;this.contentLanguage=n.contentLanguage;this.contentType=n.contentType;if(n.userDelegationKey){this.signedOid=n.userDelegationKey.signedObjectId;this.signedTenantId=n.userDelegationKey.signedTenantId;this.signedStartsOn=n.userDelegationKey.signedStartsOn;this.signedExpiresOn=n.userDelegationKey.signedExpiresOn;this.signedService=n.userDelegationKey.signedService;this.signedVersion=n.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId;this.correlationId=n.correlationId}}else{this.services=o;this.resourceTypes=i;this.expiresOn=p;this.permissions=n;this.protocol=c;this.startsOn=d;this.ipRangeInner=y;this.delegatedUserObjectId=se;this.encryptionScope=ne;this.identifier=C;this.resource=Q;this.cacheControl=v;this.contentDisposition=D;this.contentEncoding=k;this.contentLanguage=$;this.contentType=V;if(ee){this.signedOid=ee.signedObjectId;this.signedTenantId=ee.signedTenantId;this.signedStartsOn=ee.signedStartsOn;this.signedExpiresOn=ee.signedExpiresOn;this.signedService=ee.signedService;this.signedVersion=ee.signedVersion;this.preauthorizedAgentObjectId=te;this.correlationId=re}}}toString(){const e=["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","sduoid"];const t=[];for(const n of e){switch(n){case"sv":this.tryAppendQueryParameter(t,n,this.version);break;case"ss":this.tryAppendQueryParameter(t,n,this.services);break;case"srt":this.tryAppendQueryParameter(t,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,n,this.protocol);break;case"st":this.tryAppendQueryParameter(t,n,this.startsOn?utils_common_truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,n,this.expiresOn?utils_common_truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,n,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,n,this.signedStartsOn?utils_common_truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,n,this.signedExpiresOn?utils_common_truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,n,this.resource);break;case"sp":this.tryAppendQueryParameter(t,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,n,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(t,n,this.delegatedUserObjectId);break}}return t.join("&")}tryAppendQueryParameter(e,t,n){if(!n){return}t=encodeURIComponent(t);n=encodeURIComponent(n);if(t.length>0&&n.length>0){e.push(`${t}=${n}`)}}}function generateBlobSASQueryParameters(e,t,n){return generateBlobSASQueryParametersInternal(e,t,n).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,n){const o=e.version?e.version:Po;const i=t instanceof StorageSharedKeyCredential?t:undefined;let c;if(i===undefined&&n!==undefined){c=new UserDelegationKeyCredential(n,t)}if(i===undefined&&c===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(o>="2020-12-06"){if(i!==undefined){return generateBlobSASQueryParameters20201206(e,i)}else{if(o>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,c)}else{return generateBlobSASQueryParametersUDK20201206(e,c)}}}if(o>="2018-11-09"){if(i!==undefined){return generateBlobSASQueryParameters20181109(e,i)}else{if(o>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,c)}else{return generateBlobSASQueryParametersUDK20181109(e,c)}}}if(o>="2015-04-05"){if(i!==undefined){return generateBlobSASQueryParameters20150405(e,i)}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(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";if(e.blobName){n="b"}let o;if(e.permissions){if(e.blobName){o=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{o=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[o?o:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const c=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,c,o,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const c=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const d=t.computeHMACSHA256(c);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:c}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const c=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const d=t.computeHMACSHA256(c);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:c}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const c=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(c);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:c}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const c=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(c);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:c}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const c=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(c);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:c}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const c=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(c);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:c}}function getCanonicalName(e,t,n){const o=[`/blob/${e}/${t}`];if(n){o.push(`/${n}`)}return o.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:Po;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const n=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=n.container}else{this._isContainer=false;this._containerOrBlobOperation=n.blob}if(!t){t=esm_randomUUID()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==qo||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==qo||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return LA.withSpan("BlobLeaseClient-acquireLease",t,(async n=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==qo||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==qo||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return LA.withSpan("BlobLeaseClient-changeLease",t,(async n=>{const o=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));this._leaseId=e;return o}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==qo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==qo||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return LA.withSpan("BlobLeaseClient-releaseLease",e,(async t=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==qo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==qo||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return LA.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==qo||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==qo||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return LA.withSpan("BlobLeaseClient-breakLease",t,(async n=>{const o={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(o))}))}}class RetriableReadableStream extends Br.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,o,i={}){super({highWaterMark:i.highWaterMark});this.getter=t;this.source=e;this.start=n;this.offset=n;this.end=n+o-1;this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0;this.onProgress=i.onProgress;this.options=i;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);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new AbortError_AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries<this.maxRetryRequests){this.retries+=1;this.getter(this.offset).then((e=>{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}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}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{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 Fn?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,o,i={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,n,o,i)}}const FA=16;const UA=new Uint8Array([79,98,106,1]);const MA="avro.codec";const HA="avro.schema";class AvroParser{static async readFixedBytes(e,t,n={}){const o=await e.read(t,{abortSignal:n.abortSignal});if(o.length!==t){throw new Error("Hit stream end.")}return o}static async readByte(e,t={}){const n=await AvroParser.readFixedBytes(e,1,t);return n[0]}static async readZigZagLong(e,t={}){let n=0;let o=0;let i,c,d;do{i=await AvroParser.readByte(e,t);c=i&128;n|=(i&127)<<o;o+=7}while(c&&o<28);if(c){n=n;d=268435456;do{i=await AvroParser.readByte(e,t);n+=(i&127)*d;d*=128}while(i&128);const o=(n%2?-(n+1):n)/2;if(o<Number.MIN_SAFE_INTEGER||o>Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return o}return n>>1^-(n&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const n=await AvroParser.readByte(e,t);if(n===1){return true}else if(n===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const n=await AvroParser.readFixedBytes(e,4,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat32(0,true)}static async readDouble(e,t={}){const n=await AvroParser.readFixedBytes(e,8,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat64(0,true)}static async readBytes(e,t={}){const n=await AvroParser.readLong(e,t);if(n<0){throw new Error("Bytes size was negative.")}return e.read(n,{abortSignal:t.abortSignal})}static async readString(e,t={}){const n=await AvroParser.readBytes(e,t);const o=new TextDecoder;return o.decode(n)}static async readMapPair(e,t,n={}){const o=await AvroParser.readString(e,n);const i=await t(e,n);return{key:o,value:i}}static async readMap(e,t,n={}){const readPairMethod=(e,n={})=>AvroParser.readMapPair(e,t,n);const o=await AvroParser.readArray(e,readPairMethod,n);const i={};for(const e of o){i[e.key]=e.value}return i}static async readArray(e,t,n={}){const o=[];for(let i=await AvroParser.readLong(e,n);i!==0;i=await AvroParser.readLong(e,n)){if(i<0){await AvroParser.readLong(e,n);i=-i}while(i--){const i=await t(e,n);o.push(i)}}return o}}var $A;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})($A||($A={}));var GA;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(GA||(GA={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case GA.NULL:case GA.BOOLEAN:case GA.INT:case GA.LONG:case GA.FLOAT:case GA.DOUBLE:case GA.BYTES:case GA.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case $A.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const n={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){n[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(n,e.name);case $A.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case $A.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case $A.ARRAY:case $A.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case GA.NULL:return AvroParser.readNull();case GA.BOOLEAN:return AvroParser.readBoolean(e,t);case GA.INT:return AvroParser.readInt(e,t);case GA.LONG:return AvroParser.readLong(e,t);case GA.FLOAT:return AvroParser.readFloat(e,t);case GA.DOUBLE:return AvroParser.readDouble(e,t);case GA.BYTES:return AvroParser.readBytes(e,t);case GA.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._symbols[n]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._types[n].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const n={};n["$schema"]=this._name;for(const o in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,o)){n[o]=await this._fields[o].read(e,t)}}return n}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let n=0;n<e.length;++n){if(e[n]!==t[n])return false}return true}class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,n,o){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=n||0;this._objectIndex=o||0;this._initialBlockOffset=n||0}async initialize(e={}){const t=await AvroParser.readFixedBytes(this._headerStream,UA.length,{abortSignal:e.abortSignal});if(!arraysEqual(t,UA)){throw new Error("Stream is not an Avro file.")}this._metadata=await AvroParser.readMap(this._headerStream,AvroParser.readString,{abortSignal:e.abortSignal});const n=this._metadata[MA];if(!(n===undefined||n===null||n==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await AvroParser.readFixedBytes(this._headerStream,FA,{abortSignal:e.abortSignal});const o=JSON.parse(this._metadata[HA]);this._itemType=AvroType.fromSchema(o);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t<this._objectIndex;t++){await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--}}}hasNext(){return!this._initialized||this._itemsRemainingInBlock>0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await AvroParser.readFixedBytes(this._dataStream,FA,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}class AvroReadable{}var qA=__nccwpck_require__(181);const zA=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return qA.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw zA}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const n=this._readable.read(e);if(n){this._position+=n.length;return this.toUint8Array(n)}else{return new Promise(((n,o)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();n(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();o()};const abortHandler=()=>{cleanUp();o(zA)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends Br.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const n=t.$schema;if(typeof n!=="string"){throw Error("Missing schema in avro record.")}switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const n=t.name;if(typeof n!=="string"){throw Error("Invalid name in avro error record.")}const o=t.description;if(typeof o!=="string"){throw Error("Invalid description in avro error record.")}const i=t.position;if(typeof i!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:i,name:n,isFatal:e,description:o})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){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 Fn?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}var VA;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(VA||(VA={}));var jA;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(jA||(jA={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=Ko}}var YA;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(YA||(YA={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const n=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var JA=__nccwpck_require__(5862);class BlobBeginCopyFromUrlPoller extends JA.vu{intervalInMs;constructor(e){const{blobClient:t,copySource:n,intervalInMs:o=15e3,onProgress:i,resumeFrom:c,startCopyFromURLOptions:d}=e;let p;if(c){p=JSON.parse(c).state}const y=makeBlobBeginCopyFromURLPollOperation({...p,blobClient:t,copySource:n,startCopyFromURLOptions:d});super(y);if(typeof i==="function"){this.onProgress(i)}this.intervalInMs=o}delay(){return delay_delay(this.intervalInMs)}}const WA=async function cancel(e={}){const t=this.state;const{copyId:n}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!n){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const KA=async function update(e={}){const t=this.state;const{blobClient:n,copySource:o,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=true;const e=await n.startCopyFromURL(o,i);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const n=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:o,copyProgress:i}=n;const c=t.copyProgress;if(i){t.copyProgress=i}if(o==="pending"&&i!==c&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(o==="success"){t.result=n;t.isCompleted=true}else if(o==="failed"){t.error=new Error(`Blob copy failed with reason: "${n.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const XA=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:WA,toString:XA,update:KA}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.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 e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var ZA;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(ZA||(ZA={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=ZA.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new be.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=ZA.Error;t(e)}))}))}nextOperation(){if(this.offset<this.operations.length){return this.operations[this.offset++]}return null}parallelExecute(){if(this.state===ZA.Error){return}if(this.completed>=this.operations.length){this.emitter.emit("finish");return}while(this.actives<this.concurrency){const e=this.nextOperation();if(e){e()}else{return}}}}var em=__nccwpck_require__(3024);async function streamToBuffer(e,t,n,o,i){let c=0;const d=o-n;return new Promise(((o,p)=>{const y=setTimeout((()=>p(new Error(`The operation cannot be completed in timeout.`))),Uo);e.on("readable",(()=>{if(c>=d){clearTimeout(y);o();return}let p=e.read();if(!p){return}if(typeof p==="string"){p=Buffer.from(p,i)}const C=c+p.length>d?d-c:p.length;t.fill(p.slice(0,C),n+c,n+c+C);c+=C}));e.on("end",(()=>{clearTimeout(y);if(c<d){p(new Error(`Stream drains before getting enough data needed. Data read: ${c}, data need: ${d}`))}o()}));e.on("error",(e=>{clearTimeout(y);p(e)}))}))}async function streamToBuffer2(e,t,n){let o=0;const i=t.length;return new Promise(((c,d)=>{e.on("readable",(()=>{let c=e.read();if(!c){return}if(typeof c==="string"){c=Buffer.from(c,n)}if(o+c.length>i){d(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(c,o,o+c.length);o+=c.length}));e.on("end",(()=>{c(o)}));e.on("error",d)}))}async function streamToBuffer3(e,t){return new Promise(((n,o)=>{const i=[];e.on("data",(e=>{i.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{n(Buffer.concat(i))}));e.on("error",o)}))}async function readStreamToLocalFile(e,t){return new Promise(((n,o)=>{const i=em.createWriteStream(t);e.on("error",(e=>{o(e)}));i.on("error",(e=>{o(e)}));i.on("close",n);e.pipe(i)}))}const tm=rr.promisify(em.stat);const rm=em.createReadStream;class BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,o){o=o||{};let i;let c;if(isPipelineLike(t)){c=e;i=t}else if(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){c=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){c=e;if(n&&typeof n!=="string"){o=n}i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const p=n;const y=utils_common_extractConnectionStringParts(e);if(y.kind==="AccountConnString"){if(Fn){const e=new StorageSharedKeyCredential(y.accountName,y.accountKey);c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(y.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(y.kind==="SASConnString"){c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p))+"?"+y.accountSas;i=newPipeline(new AnonymousCredential,o)}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,i);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,Ho.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,Ho.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient(utils_common_setURLParameter(this.url,Ho.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(utils_common_setURLParameter(this.url,Ho.Parameters.VERSIONID,e.length===0?undefined:e),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(e=0,t,n={}){n.conditions=n.conditions||{};n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return LA.withSpan("BlobClient-download",n,(async o=>{const i=utils_common_assertResponse(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Fn?undefined:n.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:o.tracingOptions}));const c={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)};if(!Fn){return c}if(n.maxRetryRequests===undefined||n.maxRetryRequests<0){n.maxRetryRequests=Fo}if(i.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!i.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(c,(async t=>{const o={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:rangeToString({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...o})).readableStreamBody}),e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})}))}async exists(e={}){return LA.withSpan("BlobClient-exists",e,(async t=>{try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===ti||e.details.errorCode===ri)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return LA.withSpan("BlobClient-getProperties",e,(async t=>{const n=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(n.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return LA.withSpan("BlobClient-delete",e,(async t=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return LA.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=utils_common_assertResponse(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return LA.withSpan("BlobClient-undelete",e,(async t=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return LA.withSpan("BlobClient-setHTTPHeaders",t,(async n=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return LA.withSpan("BlobClient-setMetadata",t,(async n=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async setTags(e,t={}){return LA.withSpan("BlobClient-setTags",t,(async n=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:toBlobTags(e)}))))}async getTags(e={}){return LA.withSpan("BlobClient-getTags",e,(async t=>{const n=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const o={...n,_response:n._response,tags:toTags({blobTagSet:n.blobTagSet})||{}};return o}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return LA.withSpan("BlobClient-createSnapshot",e,(async t=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const n={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const o=new BlobBeginCopyFromUrlPoller({blobClient:n,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await o.poll();return o}async abortCopyFromURL(e,t={}){return LA.withSpan("BlobClient-abortCopyFromURL",t,(async n=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return LA.withSpan("BlobClient-syncCopyFromURL",t,(async n=>utils_common_assertResponse(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async setAccessTier(e,t={}){return LA.withSpan("BlobClient-setAccessTier",t,(async n=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions}))))}async downloadToBuffer(e,t,n,o={}){let i;let c=0;let d=0;let p=o;if(e instanceof Buffer){i=e;c=t||0;d=typeof n==="number"?n:0}else{c=typeof e==="number"?e:0;d=typeof t==="number"?t:0;p=n||{}}let y=p.blockSize??0;if(y<0){throw new RangeError("blockSize option must be >= 0")}if(y===0){y=Oo}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(!p.conditions){p.conditions={}}return LA.withSpan("BlobClient-downloadToBuffer",p,(async e=>{if(!d){const t=await this.getProperties({...p,tracingOptions:e.tracingOptions});d=t.contentLength-c;if(d<0){throw new RangeError(`offset ${c} shouldn't be larger than blob size ${t.contentLength}`)}}if(!i){try{i=Buffer.alloc(d)}catch(e){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 ${e.message}`)}}if(i.length<d){throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${d}`)}let t=0;const n=new Batch(p.concurrency);for(let o=c;o<c+d;o=o+y){n.addOperation((async()=>{let n=c+d;if(o+y<n){n=o+y}const C=await this.download(o,n-o,{abortSignal:p.abortSignal,conditions:p.conditions,maxRetryRequests:p.maxRetryRequestsPerBlock,customerProvidedKey:p.customerProvidedKey,tracingOptions:e.tracingOptions});const Q=C.readableStreamBody;await streamToBuffer(Q,i,o-c,n-c);t+=n-o;if(p.onProgress){p.onProgress({loadedBytes:t})}}))}await n.do();return i}))}async downloadToFile(e,t=0,n,o={}){return LA.withSpan("BlobClient-downloadToFile",o,(async i=>{const c=await this.download(t,n,{...o,tracingOptions:i.tracingOptions});if(c.readableStreamBody){await readStreamToLocalFile(c.readableStreamBody,e)}c.blobDownloadStream=undefined;return c}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const n=new URL(this.url);if(n.host.split(".")[1]==="blob"){const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}else if(utils_common_isIpEndpointStyle(n)){const o=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=o[2];t=o[4]}else{const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return LA.withSpan("BlobClient-startCopyFromURL",t,(async n=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(utils_common_appendToURLQuery(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return LA.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return LA.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return LA.withSpan("BlobClient-setLegalHold",t,(async t=>utils_common_assertResponse(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return LA.withSpan("BlobClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,n,o){let i;let c;o=o||{};if(isPipelineLike(t)){c=e;i=t}else if(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){c=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){c=e;i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const p=n;const y=utils_common_extractConnectionStringParts(e);if(y.kind==="AccountConnString"){if(Fn){const e=new StorageSharedKeyCredential(y.accountName,y.accountKey);c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(y.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(y.kind==="SASConnString"){c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p))+"?"+y.accountSas;i=newPipeline(new AnonymousCredential,o)}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,i);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient(utils_common_setURLParameter(this.url,Ho.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return LA.withSpan("AppendBlobClient-create",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:zo};return LA.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const n=utils_common_assertResponse(await this.create({...e,conditions:t}));return{succeeded:true,...n,_response:n._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return LA.withSpan("AppendBlobClient-seal",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return LA.withSpan("AppendBlobClient-appendBlock",n,(async o=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async appendBlockFromURL(e,t,n,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps);return LA.withSpan("AppendBlobClient-appendBlockFromURL",o,(async i=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:o.abortSignal,sourceRange:rangeToString({offset:t,count:n}),sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,appendPositionAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(o.sourceAuthorization),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}}class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,n,o){let i;let c;o=o||{};if(isPipelineLike(t)){c=e;i=t}else if(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){c=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){c=e;if(n&&typeof n!=="string"){o=n}i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const p=n;const y=utils_common_extractConnectionStringParts(e);if(y.kind==="AccountConnString"){if(Fn){const e=new StorageSharedKeyCredential(y.accountName,y.accountKey);c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(y.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(y.kind==="SASConnString"){c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p))+"?"+y.accountSas;i=newPipeline(new AnonymousCredential,o)}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,i);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient(utils_common_setURLParameter(this.url,Ho.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);if(!Fn){throw new Error("This operation currently is only supported in Node.js.")}return LA.withSpan("BlockBlobClient-query",t,(async n=>{const o=utils_common_assertResponse(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions}));return new BlobQueryResponse(o,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return LA.withSpan("BlockBlobClient-upload",n,(async o=>utils_common_assertResponse(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:o.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return LA.withSpan("BlockBlobClient-syncUploadFromURL",t,(async n=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async stageBlock(e,t,n,o={}){ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps);return LA.withSpan("BlockBlobClient-stageBlock",o,(async i=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,requestOptions:{onUploadProgress:o.onProgress},transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async stageBlockFromURL(e,t,n=0,o,i={}){ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return LA.withSpan("BlockBlobClient-stageBlockFromURL",i,(async c=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!o?undefined:rangeToString({offset:n,count:o}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:c.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return LA.withSpan("BlockBlobClient-commitBlockList",t,(async n=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:n.tracingOptions}))))}async getBlockList(e,t={}){return LA.withSpan("BlockBlobClient-getBlockList",t,(async n=>{const o=utils_common_assertResponse(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));if(!o.committedBlocks){o.committedBlocks=[]}if(!o.uncommittedBlocks){o.uncommittedBlocks=[]}return o}))}async uploadData(e,t={}){return LA.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(Fn){let n;if(e instanceof Buffer){n=e}else if(e instanceof ArrayBuffer){n=Buffer.from(e)}else{e=e;n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.byteLength,t)}else{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}}))}async uploadBrowserData(e,t={}){return LA.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}))}async uploadSeekableInternal(e,t,n={}){let o=n.blockSize??0;if(o<0||o>ko){throw new RangeError(`blockSize option must be >= 0 and <= ${ko}`)}const i=n.maxSingleShotSize??Do;if(i<0||i>Do){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Do}`)}if(o===0){if(t>ko*_o){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>i){o=Math.ceil(t/_o);if(o<Oo){o=Oo}}}if(!n.blobHTTPHeaders){n.blobHTTPHeaders={}}if(!n.conditions){n.conditions={}}return LA.withSpan("BlockBlobClient-uploadSeekableInternal",n,(async c=>{if(t<=i){return utils_common_assertResponse(await this.upload(e(0,t),t,c))}const d=Math.floor((t-1)/o)+1;if(d>_o){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${_o}`)}const p=[];const y=esm_randomUUID();let C=0;const Q=new Batch(n.concurrency);for(let i=0;i<d;i++){Q.addOperation((async()=>{const Q=utils_common_generateBlockID(y,i);const v=o*i;const D=i===d-1?t:v+o;const k=D-v;p.push(Q);await this.stageBlock(Q,e(v,k),k,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:c.tracingOptions});C+=k;if(n.onProgress){n.onProgress({loadedBytes:C})}}))}await Q.do();return this.commitBlockList(p,c)}))}async uploadFile(e,t={}){return LA.withSpan("BlockBlobClient-uploadFile",t,(async n=>{const o=(await tm(e)).size;return this.uploadSeekableInternal(((t,n)=>()=>rm(e,{autoClose:true,end:n?t+n-1:Infinity,start:t})),o,{...t,tracingOptions:n.tracingOptions})}))}async uploadStream(e,t=Lo,n=5,o={}){if(!o.blobHTTPHeaders){o.blobHTTPHeaders={}}if(!o.conditions){o.conditions={}}return LA.withSpan("BlockBlobClient-uploadStream",o,(async i=>{let c=0;const d=esm_randomUUID();let p=0;const y=[];const C=new BufferScheduler(e,t,n,(async(e,t)=>{const n=utils_common_generateBlockID(d,c);y.push(n);c++;await this.stageBlock(n,e,t,{customerProvidedKey:o.customerProvidedKey,conditions:o.conditions,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions});p+=t;if(o.onProgress){o.onProgress({loadedBytes:p})}}),Math.ceil(n/4*3));await C.do();return utils_common_assertResponse(await this.commitBlockList(y,{...o,tracingOptions:i.tracingOptions}))}))}}class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,n,o){let i;let c;o=o||{};if(isPipelineLike(t)){c=e;i=t}else if(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){c=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){c=e;i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const p=n;const y=utils_common_extractConnectionStringParts(e);if(y.kind==="AccountConnString"){if(Fn){const e=new StorageSharedKeyCredential(y.accountName,y.accountKey);c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(y.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(y.kind==="SASConnString"){c=utils_common_appendToURLPath(utils_common_appendToURLPath(y.url,encodeURIComponent(d)),encodeURIComponent(p))+"?"+y.accountSas;i=newPipeline(new AnonymousCredential,o)}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,i);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient(utils_common_setURLParameter(this.url,Ho.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return LA.withSpan("PageBlobClient-create",t,(async n=>utils_common_assertResponse(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(e,t={}){return LA.withSpan("PageBlobClient-createIfNotExists",t,(async n=>{try{const o={ifNoneMatch:zo};const i=utils_common_assertResponse(await this.create(e,{...t,conditions:o,tracingOptions:n.tracingOptions}));return{succeeded:true,...i,_response:i._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,n,o={}){o.conditions=o.conditions||{};ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps);return LA.withSpan("PageBlobClient-uploadPages",o,(async i=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(n,e,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},requestOptions:{onUploadProgress:o.onProgress},range:rangeToString({offset:t,count:n}),sequenceNumberAccessConditions:o.conditions,transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async uploadPagesFromURL(e,t,n,o,i={}){i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return LA.withSpan("PageBlobClient-uploadPagesFromURL",i,(async c=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:o}),0,rangeToString({offset:n,count:o}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:c.tracingOptions}))))}async clearPages(e=0,t,n={}){n.conditions=n.conditions||{};return LA.withSpan("PageBlobClient-clearPages",n,(async o=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async getPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};return LA.withSpan("PageBlobClient-getPageRanges",n,(async o=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),tracingOptions:o.tracingOptions}));return rangeResponseFromModel(i)}))}async listPageRangesSegment(e=0,t,n,o={}){return LA.withSpan("PageBlobClient-getPageRangesSegment",o,(async i=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),marker:n,maxPageSize:o.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,n,o={}){let i;if(!!n||n===undefined){do{i=await this.listPageRangesSegment(e,t,n,o);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeItems(e=0,t,n={}){let o;for await(const i of this.listPageRangeItemSegments(e,t,o,n)){yield*ExtractPageRangeInfoItems(i)}}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};const o=this.listPageRangeItems(e,t,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeItemSegments(e,t,o.continuationToken,{maxPageSize:o.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};return LA.withSpan("PageBlobClient-getPageRangesDiff",o,(async i=>{const c=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevsnapshot:n,range:rangeToString({offset:e,count:t}),tracingOptions:i.tracingOptions}));return rangeResponseFromModel(c)}))}async listPageRangesDiffSegment(e,t,n,o,i={}){return LA.withSpan("PageBlobClient-getPageRangesDiffSegment",i,(async c=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:rangeToString({offset:e,count:t}),marker:o,maxPageSize:i?.maxPageSize,tracingOptions:c.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,n,o,i){let c;if(!!o||o===undefined){do{c=await this.listPageRangesDiffSegment(e,t,n,o,i);o=c.continuationToken;yield await c}while(o)}}async*listPageRangeDiffItems(e,t,n,o){let i;for await(const c of this.listPageRangeDiffItemSegments(e,t,n,i,o)){yield*ExtractPageRangeInfoItems(c)}}listPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};const i=this.listPageRangeDiffItems(e,t,n,{...o});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...o})}}async getPageRangesDiffForManagedDisks(e,t,n,o={}){o.conditions=o.conditions||{};return LA.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",o,(async i=>{const c=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevSnapshotUrl:n,range:rangeToString({offset:e,count:t}),tracingOptions:i.tracingOptions}));return rangeResponseFromModel(c)}))}async resize(e,t={}){t.conditions=t.conditions||{};return LA.withSpan("PageBlobClient-resize",t,(async n=>utils_common_assertResponse(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async updateSequenceNumber(e,t,n={}){n.conditions=n.conditions||{};return LA.withSpan("PageBlobClient-updateSequenceNumber",n,(async o=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:o.tracingOptions}))))}async startCopyIncremental(e,t={}){return LA.withSpan("PageBlobClient-startCopyIncremental",t,(async n=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}}async function getBodyAsText(e){let t=Buffer.alloc(Yo);const n=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,n);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const nm=": ";const sm=" ";const om=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${Jo}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==$o.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const n=t.length;if(n!==this.subRequests.size&&n!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const o=new Array(n);let i=0;let c=0;for(let e=0;e<n;e++){const n=t[e];const d={};d.headers=toHttpHeadersLike(esm_httpHeaders_createHttpHeaders());const p=n.split(`${Jo}`);let y=false;let C=false;let Q=false;let v=om;for(const e of p){if(!y){if(e.startsWith(Go.CONTENT_ID)){v=parseInt(e.split(nm)[1])}if(e.startsWith(Wo)){y=true;const t=e.split(sm);d.status=parseInt(t[1]);d.statusMessage=t.slice(2).join(sm)}continue}if(e.trim()===""){if(!C){C=true}continue}if(!C){if(e.indexOf(nm)===-1){throw new Error(`Invalid state: find non-empty line '${e}' without HTTP header delimiter '${nm}'.`)}const t=e.split(nm);d.headers.set(t[0],t[1]);if(t[0]===Go.X_MS_ERROR_CODE){d.errorCode=t[1];Q=true}}else{if(!d.bodyAsText){d.bodyAsText=""}d.bodyAsText+=e}}if(v!==om&&Number.isInteger(v)&&v>=0&&v<this.subRequests.size&&o[v]===undefined){d._request=this.subRequests.get(v);o[v]=d}else{oo.error(`subResponses[${e}] is dropped as the Content-ID is not found or invalid, Content-ID: ${v}`)}if(Q){c++}else{i++}}return{subResponses:o,subResponsesSucceededCount:i,subResponsesFailedCount:c}}}var im;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(im||(im={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===im.UNLOCKED){this.keys[e]=im.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=im.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===im.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,n){let o;let i;if(typeof e==="string"&&(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){o=e;i=t}else if(e instanceof BlobClient){o=e.url;i=e.credential;n=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return LA.withSpan("BatchDeleteRequest-addSubRequest",n,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:o,credential:i},(async()=>{await new BlobClient(o,this.batchRequest.createPipeline(i)).delete(e)}))}))}async setBlobAccessTier(e,t,n,o){let i;let c;let d;if(typeof e==="string"&&(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){i=e;c=t;d=n}else if(e instanceof BlobClient){i=e.url;c=e.credential;d=t;o=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!o){o={}}return LA.withSpan("BatchSetTierRequest-addSubRequest",o,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:i,credential:c},(async()=>{await new BlobClient(i,this.batchRequest.createPipeline(c)).setAccessTier(d,e)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=esm_randomUUID();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${Jo}${Go.CONTENT_TYPE}: application/http${Jo}${Go.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=esm_pipeline_createEmptyPipeline();t.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(e)){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:Mo,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof StorageSharedKeyCredential){t.addPolicy(storageSharedKeyCredentialPolicy({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const n=new Pipeline([]);n._credential=e;n._corePipeline=t;return n}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${Go.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${utils_common_getURLPathAndQuery(e.url)} ${Wo}${Jo}`].join(Jo);for(const[t,n]of e.headers){this.body+=`${t}: ${n}${Jo}`}this.body+=Jo}preAddSubRequest(e){if(this.operationCount>=jo){throw new RangeError(`Cannot exceed ${jo} sub requests in a single batch`)}const t=utils_common_getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${Jo}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let n="";for(const[t]of e.headers){if(utils_common_iEqual(t,Go.X_MS_VERSION)){n=t}}if(n!==""){e.headers.delete(n)}return t(e)}}}class BlobBatchClient{serviceOrContainerContext;constructor(e,t,n){let o;if(isPipelineLike(t)){o=t}else if(!t){o=newPipeline(new AnonymousCredential,n)}else{o=newPipeline(t,n)}const i=new StorageContextClient(e,getCoreClientOptions(o));const c=utils_common_getURLPath(e);if(c&&c!=="/"){this.serviceOrContainerContext=i.container}else{this.serviceOrContainerContext=i.service}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,n){const o=new BlobBatch;for(const i of e){if(typeof i==="string"){await o.deleteBlob(i,t,n)}else{await o.deleteBlob(i,t)}}return this.submitBatch(o)}async setBlobsAccessTier(e,t,n,o){const i=new BlobBatch;for(const c of e){if(typeof c==="string"){await i.setBlobAccessTier(c,t,n,o)}else{await i.setBlobAccessTier(c,t,n)}}return this.submitBatch(i)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return LA.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const n=e.getHttpRequestBody();const o=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(n),e.getMultiPartContentType(),n,{...t}));const i=new BatchResponseParser(o,e.getSubRequests());const c=await i.parseBatchResponse();const d={_response:o._response,contentType:o.contentType,errorCode:o.errorCode,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,subResponses:c.subResponses,subResponsesSucceededCount:c.subResponsesSucceededCount,subResponsesFailedCount:c.subResponsesFailedCount};return d}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,n){let o;let i;n=n||{};if(isPipelineLike(t)){i=e;o=t}else if(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;o=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;o=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"){const c=t;const d=utils_common_extractConnectionStringParts(e);if(d.kind==="AccountConnString"){if(Fn){const e=new StorageSharedKeyCredential(d.accountName,d.accountKey);i=utils_common_appendToURLPath(d.url,encodeURIComponent(c));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(d.proxyUri)}o=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){i=utils_common_appendToURLPath(d.url,encodeURIComponent(c))+"?"+d.accountSas;o=newPipeline(new AnonymousCredential,n)}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(i,o);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return LA.withSpan("ContainerClient-create",e,(async e=>utils_common_assertResponse(await this.containerContext.create(e))))}async createIfNotExists(e={}){return LA.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return LA.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return LA.withSpan("ContainerClient-getProperties",e,(async t=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return LA.withSpan("ContainerClient-delete",e,(async t=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return LA.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return LA.withSpan("ContainerClient-setMetadata",t,(async n=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return LA.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const n=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const o={_response:n._response,blobPublicAccess:n.blobPublicAccess,date:n.date,etag:n.etag,errorCode:n.errorCode,lastModified:n.lastModified,requestId:n.requestId,clientRequestId:n.clientRequestId,signedIdentifiers:[],version:n.version};for(const e of n){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}o.signedIdentifiers.push({accessPolicy:t,id:e.id})}return o}))}async setAccessPolicy(e,t,n={}){n.conditions=n.conditions||{};return LA.withSpan("ContainerClient-setAccessPolicy",n,(async o=>{const i=[];for(const e of t||[]){i.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?utils_common_truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:n.abortSignal,access:e,containerAcl:i,leaseAccessConditions:n.conditions,modifiedAccessConditions:n.conditions,tracingOptions:o.tracingOptions}))}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,n,o={}){return LA.withSpan("ContainerClient-uploadBlockBlob",o,(async o=>{const i=this.getBlockBlobClient(e);const c=await i.upload(t,n,o);return{blockBlobClient:i,response:c}}))}async deleteBlob(e,t={}){return LA.withSpan("ContainerClient-deleteBlob",t,(async n=>{let o=this.getBlobClient(e);if(t.versionId){o=o.withVersion(t.versionId)}return o.delete(n)}))}async listBlobFlatSegment(e,t={}){return LA.withSpan("ContainerClient-listBlobFlatSegment",t,(async n=>{const o=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:n.tracingOptions}));const i={...o,_response:{...o._response,parsedBody:ConvertInternalResponseOfListBlobFlat(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t}))}};return i}))}async listBlobHierarchySegment(e,t,n={}){return LA.withSpan("ContainerClient-listBlobHierarchySegment",n,(async o=>{const i=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...n,tracingOptions:o.tracingOptions}));const c={...i,_response:{...i._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(i._response.parsedBody)},segment:{...i.segment,blobItems:i.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t})),blobPrefixes:i.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}};return c}))}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listBlobFlatSegment(e,t);e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async*listHierarchySegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.listBlobHierarchySegment(e,t,n);t=o.continuationToken;yield await o}while(t)}}async*listItemsByHierarchy(e,t={}){let n;for await(const o of this.listHierarchySegments(e,n,t)){const e=o.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const n=[];if(t.includeCopy){n.push("copy")}if(t.includeDeleted){n.push("deleted")}if(t.includeMetadata){n.push("metadata")}if(t.includeSnapshots){n.push("snapshots")}if(t.includeVersions){n.push("versions")}if(t.includeUncommitedBlobs){n.push("uncommittedblobs")}if(t.includeTags){n.push("tags")}if(t.includeDeletedWithVersions){n.push("deletedwithversions")}if(t.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(t.includeLegalHold){n.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const o={...t,...n.length>0?{include:n}:{}};const i=this.listItemsByHierarchy(e,o);return{async next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...o})}}async findBlobsByTagsSegment(e,t,n={}){return LA.withSpan("ContainerClient-findBlobsByTagsSegment",n,(async o=>{const i=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const c={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return c}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async getAccountInfo(e={}){return LA.withSpan("ContainerClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=generateBlobSASQueryParameters({containerName:this._containerName,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=generateBlobSASQueryParameters({containerName:this._containerName,...e},t,this.accountName).toString();n(utils_common_appendToURLQuery(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${n}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const n of e){switch(n){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${n}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const n of e){switch(n){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${n}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const n=e.version?e.version:Po;if(e.permissions&&e.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const o=AccountSASPermissions.parse(e.permissions.toString());const i=AccountSASServices.parse(e.services).toString();const c=AccountSASResourceTypes.parse(e.resourceTypes).toString();let d;if(n>="2020-12-06"){d=[t.accountName,o,i,c,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",n,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{d=[t.accountName,o,i,c,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n")}const p=t.computeHMACSHA256(d);return{sasQueryParameters:new SASQueryParameters(n,p,o.toString(),i,c,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:d}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const n=utils_common_extractConnectionStringParts(e);if(n.kind==="AccountConnString"){if(Fn){const e=new StorageSharedKeyCredential(n.accountName,n.accountKey);if(!t.proxyOptions){t.proxyOptions=proxyPolicy_getDefaultProxySettings(n.proxyUri)}const o=newPipeline(e,t);return new BlobServiceClient(n.url,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(n.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(n.url+"?"+n.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,n){let o;if(isPipelineLike(t)){o=t}else if(Fn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){o=newPipeline(t,n)}else{o=newPipeline(new AnonymousCredential,n)}super(e,o);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return LA.withSpan("BlobServiceClient-createContainer",t,(async t=>{const n=this.getContainerClient(e);const o=await n.create(t);return{containerClient:n,containerCreateResponse:o}}))}async deleteContainer(e,t={}){return LA.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const n=this.getContainerClient(e);return n.delete(t)}))}async undeleteContainer(e,t,n={}){return LA.withSpan("BlobServiceClient-undeleteContainer",n,(async o=>{const i=this.getContainerClient(n.destinationContainerName||e);const c=i["storageClientContext"].container;const d=utils_common_assertResponse(await c.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:o.tracingOptions}));return{containerClient:i,containerUndeleteResponse:d}}))}async getProperties(e={}){return LA.withSpan("BlobServiceClient-getProperties",e,(async t=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return LA.withSpan("BlobServiceClient-setProperties",t,(async n=>utils_common_assertResponse(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}async getStatistics(e={}){return LA.withSpan("BlobServiceClient-getStatistics",e,(async t=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return LA.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return LA.withSpan("BlobServiceClient-listContainersSegment",t,(async n=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:n.tracingOptions}))))}async findBlobsByTagsSegment(e,t,n={}){return LA.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,(async o=>{const i=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const c={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return c}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listContainersSegment(e,t);n.containerItems=n.containerItems||[];e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async getUserDelegationKey(e,t,n={}){return LA.withSpan("BlobServiceClient-getUserDelegationKey",n,(async o=>{const i=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(e,false),expiresOn:utils_common_truncatedISO8061Date(t,false)},{abortSignal:n.abortSignal,tracingOptions:o.tracingOptions}));const c={signedObjectId:i.signedObjectId,signedTenantId:i.signedTenantId,signedStartsOn:new Date(i.signedStartsOn),signedExpiresOn:new Date(i.signedExpiresOn),signedService:i.signedService,signedVersion:i.signedVersion,value:i.value};const d={_response:i._response,requestId:i.requestId,clientRequestId:i.clientRequestId,version:i.version,date:i.date,errorCode:i.errorCode,...c};return d}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const i=generateAccountSASQueryParameters({permissions:t,expiresOn:e,resourceTypes:n,services:AccountSASServices.parse("b").toString(),...o},this.credential).toString();return utils_common_appendToURLQuery(this.url,i)}generateSasStringToSign(e,t=AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:t,expiresOn:e,resourceTypes:n,services:AccountSASServices.parse("b").toString(),...o},this.credential).stringToSign}}var am;(function(e){e["AES256"]="AES256"})(am||(am={}));class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\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(t);this.code=e;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. 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(e);this.name="UsageError"}}UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")};class RateLimitError extends Error{constructor(e){super(e);this.name="RateLimitError"}}var cm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);info(`Sent ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function uploadCacheArchiveSDK(e,t,n){return cm(this,void 0,void 0,(function*(){var o;const i=new BlobClient(e);const c=i.getBlockBlobClient();const d=new UploadProgress((o=n===null||n===void 0?void 0:n.archiveSizeBytes)!==null&&o!==void 0?o:0);const p={blockSize:n===null||n===void 0?void 0:n.uploadChunkSize,concurrency:n===null||n===void 0?void 0:n.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:d.onProgress()};try{d.startDisplayTimer();core_debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);const e=yield c.uploadFile(t,p);if(e._response.status>=400){throw new InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{d.stopDisplayTimer()}}))}var lm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}function isServerErrorStatusCode(e){if(!e){return true}return e>=500}function isRetryableStatusCode(e){if(!e){return false}const t=[re.BadGateway,re.ServiceUnavailable,re.GatewayTimeout];return t.includes(e)}function sleep(e){return lm(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,n){return lm(this,arguments,void 0,(function*(e,t,n,o=Gt,i=qt,c=undefined){let d="";let p=1;while(p<=o){let y=undefined;let C=undefined;let Q=false;try{y=yield t()}catch(e){if(c){y=c(e)}Q=true;d=e.message}if(y){C=n(y);if(!isServerErrorStatusCode(C)){return y}}if(C){Q=isRetryableStatusCode(C);d=`Cache service responded with ${C}`}core_debug(`${e} - Attempt ${p} of ${o} failed with error: ${d}`);if(!Q){core_debug(`${e} - Error is not retryable`);break}yield sleep(i);p++}throw Error(`${e} failed: ${d}`)}))}function retryTypedResponse(e,t){return lm(this,arguments,void 0,(function*(e,t,n=Gt,o=qt){return yield retry(e,t,(e=>e.statusCode),n,o,(e=>{if(e instanceof HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}function retryHttpClientResponse(e,t){return lm(this,arguments,void 0,(function*(e,t,n=Gt,o=qt){return yield retry(e,t,(e=>e.message.statusCode),n,o)}))}var um=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function pipeResponseToStream(e,t){return um(this,void 0,void 0,(function*(){const n=Et.promisify(yt.pipeline);yield n(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;core_debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);info(`Received ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function downloadCacheHttpClient(e,t){return um(this,void 0,void 0,(function*(){const n=y.createWriteStream(t);const o=new lib_HttpClient("actions/cache");const i=yield retryHttpClientResponse("downloadCache",(()=>um(this,void 0,void 0,(function*(){return o.get(e)}))));i.message.socket.setTimeout(zt,(()=>{i.message.destroy();core_debug(`Aborting download, socket timed out after ${zt} ms`)}));yield pipeResponseToStream(i,n);const c=i.message.headers["content-length"];if(c){const e=parseInt(c);const n=getArchiveFileSizeInBytes(t);if(n!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}}else{core_debug("Unable to validate download, no Content-Length header")}}))}function downloadCacheHttpClientConcurrent(e,t,n){return um(this,void 0,void 0,(function*(){var o;const i=yield y.promises.open(t,"w");const c=new lib_HttpClient("actions/cache",undefined,{socketTimeout:n.timeoutInMs,keepAlive:true});try{const t=yield retryHttpClientResponse("downloadCacheMetadata",(()=>um(this,void 0,void 0,(function*(){return yield c.request("HEAD",e,null,{})}))));const d=t.message.headers["content-length"];if(d===undefined||d===null){throw new Error("Content-Length not found on blob response")}const p=parseInt(d);if(Number.isNaN(p)){throw new Error(`Could not interpret Content-Length: ${p}`)}const y=[];const C=4*1024*1024;for(let t=0;t<p;t+=C){const n=Math.min(C,p-t);y.push({offset:t,promiseGetter:()=>um(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(c,e,t,n)}))})}y.reverse();let Q=0;let v=0;const D=new DownloadProgress(p);D.startDisplayTimer();const k=D.onProgress();const $=[];let V;const waitAndWrite=()=>um(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values($));yield i.write(e.buffer,0,e.count,e.offset);Q--;delete $[e.offset];v+=e.count;k({loadedBytes:v})}));while(V=y.pop()){$[V.offset]=V.promiseGetter();Q++;if(Q>=((o=n.downloadConcurrency)!==null&&o!==void 0?o:10)){yield waitAndWrite()}}while(Q>0){yield waitAndWrite()}}finally{c.dispose();yield i.close()}}))}function downloadSegmentRetry(e,t,n,o){return um(this,void 0,void 0,(function*(){const i=5;let c=0;while(true){try{const i=3e4;const c=yield promiseWithTimeout(i,downloadSegment(e,t,n,o));if(typeof c==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return c}catch(e){if(c>=i){throw e}c++}}}))}function downloadSegment(e,t,n,o){return um(this,void 0,void 0,(function*(){const i=yield retryHttpClientResponse("downloadCachePart",(()=>um(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${n}-${n+o-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:n,count:o,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,n){return um(this,void 0,void 0,(function*(){var o;const i=new BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}});const c=yield i.getProperties();const d=(o=c.contentLength)!==null&&o!==void 0?o:-1;if(d<0){core_debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,qA.constants.MAX_LENGTH);const o=new DownloadProgress(d);const c=y.openSync(t,"w");try{o.startDisplayTimer();const t=new AbortController;const p=t.signal;while(!o.isDone()){const C=o.segmentOffset+o.segmentSize;const Q=Math.min(e,d-C);o.nextSegment(Q);const v=yield promiseWithTimeout(n.segmentTimeoutInMs||36e5,i.downloadToBuffer(C,Q,{abortSignal:p,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(v==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(v)){y.writeFileSync(c,v)}}}finally{o.stopDisplayTimer();y.closeSync(c)}}}))}const promiseWithTimeout=(e,t)=>um(void 0,void 0,void 0,(function*(){let n;const o=new Promise((t=>{n=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,o]).then((e=>{clearTimeout(n);return e}))}));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;core_debug(`Use Azure SDK: ${t.useAzureSdk}`);core_debug(`Upload concurrency: ${t.uploadConcurrency}`);core_debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const n=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(n&&!isNaN(Number(n))&&isFinite(Number(n))){t.segmentTimeoutInMs=Number(n)*60*1e3}core_debug(`Use Azure SDK: ${t.useAzureSdk}`);core_debug(`Download concurrency: ${t.downloadConcurrency}`);core_debug(`Request timeout (ms): ${t.timeoutInMs}`);core_debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);core_debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);core_debug(`Lookup only: ${t.lookupOnly}`);return t}function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const o=t.endsWith(".GHE.COM");const i=t.endsWith(".LOCALHOST");return!n&&!o&&!i}function getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}function getCacheServiceURL(){const e=getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}var dm=__nccwpck_require__(8658);function user_agent_getUserAgentString(){return`@actions/cache-${dm.version}`}var Am=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function getCacheApiUrl(e){const t=getCacheServiceURL();if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const n=`${t}_apis/artifactcache/${e}`;core_debug(`Resource Url: ${n}`);return n}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new auth_BearerCredentialHandler(e);return new lib_HttpClient(user_agent_getUserAgentString(),[t],getRequestOptions())}function getCacheEntry(e,t,n){return Am(this,void 0,void 0,(function*(){const o=createHttpClient();const i=getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const c=`cache?keys=${encodeURIComponent(e.join(","))}&version=${i}`;const d=yield retryTypedResponse("getCacheEntry",(()=>Am(this,void 0,void 0,(function*(){return o.getJson(getCacheApiUrl(c))}))));if(d.statusCode===204){if(isDebug()){yield printCachesListForDiagnostics(e[0],o,i)}return null}if(!isSuccessStatusCode(d.statusCode)){throw new Error(`Cache service responded with ${d.statusCode}`)}const p=d.result;const y=p===null||p===void 0?void 0:p.archiveLocation;if(!y){throw new Error("Cache not found.")}core_setSecret(y);core_debug(`Cache Result:`);core_debug(JSON.stringify(p));return p}))}function printCachesListForDiagnostics(e,t,n){return Am(this,void 0,void 0,(function*(){const o=`caches?key=${encodeURIComponent(e)}`;const i=yield retryTypedResponse("listCache",(()=>Am(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(o))}))));if(i.statusCode===200){const t=i.result;const o=t===null||t===void 0?void 0:t.totalCount;if(o&&o>0){core_debug(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){core_debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,n){return Am(this,void 0,void 0,(function*(){const o=new er.URL(e);const i=getDownloadOptions(n);if(o.hostname.endsWith(".blob.core.windows.net")){if(i.useAzureSdk){yield downloadCacheStorageSDK(e,t,i)}else if(i.concurrentBlobDownloads){yield downloadCacheHttpClientConcurrent(e,t,i)}else{yield downloadCacheHttpClient(e,t)}}else{yield downloadCacheHttpClient(e,t)}}))}function reserveCache(e,t,n){return Am(this,void 0,void 0,(function*(){const o=createHttpClient();const i=getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const c={key:e,version:i,cacheSize:n===null||n===void 0?void 0:n.cacheSize};const d=yield retryTypedResponse("reserveCache",(()=>Am(this,void 0,void 0,(function*(){return o.postJson(getCacheApiUrl("caches"),c)}))));return d}))}function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,n,o,i){return Am(this,void 0,void 0,(function*(){core_debug(`Uploading chunk of size ${i-o+1} bytes at offset ${o} with content range: ${getContentRange(o,i)}`);const c={"Content-Type":"application/octet-stream","Content-Range":getContentRange(o,i)};const d=yield retryHttpClientResponse(`uploadChunk (start: ${o}, end: ${i})`,(()=>Am(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,n(),c)}))));if(!isSuccessStatusCode(d.message.statusCode)){throw new Error(`Cache service responded with ${d.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,n,o){return Am(this,void 0,void 0,(function*(){const i=getArchiveFileSizeInBytes(n);const c=getCacheApiUrl(`caches/${t.toString()}`);const d=y.openSync(n,"r");const p=getUploadOptions(o);const C=assertDefined("uploadConcurrency",p.uploadConcurrency);const Q=assertDefined("uploadChunkSize",p.uploadChunkSize);const v=[...new Array(C).keys()];core_debug("Awaiting all uploads");let D=0;try{yield Promise.all(v.map((()=>Am(this,void 0,void 0,(function*(){while(D<i){const t=Math.min(i-D,Q);const o=D;const p=D+t-1;D+=Q;yield uploadChunk(e,c,(()=>y.createReadStream(n,{fd:d,start:o,end:p,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),o,p)}})))))}finally{y.closeSync(d)}return}))}function commitCache(e,t,n){return Am(this,void 0,void 0,(function*(){const o={size:n};return yield retryTypedResponse("commitCache",(()=>Am(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),o)}))))}))}function saveCache(e,t,n,o){return Am(this,void 0,void 0,(function*(){const i=getUploadOptions(o);if(i.useAzureSdk){if(!n){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield uploadCacheArchiveSDK(n,t,o)}else{const n=createHttpClient();core_debug("Upload cache");yield uploadFile(n,e,t,o);core_debug("Commiting cache");const i=getArchiveFileSizeInBytes(t);info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);const c=yield commitCache(n,e,i);if(!isSuccessStatusCode(c.statusCode)){throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`)}info("Cache saved successfully")}}))}var gm=__nccwpck_require__(6762);var fm=__nccwpck_require__(8372);class CacheScope$Type extends fm.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.scope!=="")t.tag(1,fm.WireType.LengthDelimited).string(e.scope);if(e.permission!=="0")t.tag(2,fm.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const hm=new CacheScope$Type;class CacheMetadata$Type extends fm.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>hm}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(hm.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.repositoryId!=="0")t.tag(1,fm.WireType.Varint).int64(e.repositoryId);for(let o=0;o<e.scope.length;o++)hm.internalBinaryWrite(e.scope[o],t.tag(2,fm.WireType.LengthDelimited).fork(),n).join();let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const ym=new CacheMetadata$Type;class CreateCacheEntryRequest$Type extends fm.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>ym},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.metadata=ym.internalBinaryRead(e,e.uint32(),n,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.metadata)ym.internalBinaryWrite(e.metadata,t.tag(1,fm.WireType.LengthDelimited).fork(),n).join();if(e.key!=="")t.tag(2,fm.WireType.LengthDelimited).string(e.key);if(e.version!=="")t.tag(3,fm.WireType.LengthDelimited).string(e.version);let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Em=new CreateCacheEntryRequest$Type;class CreateCacheEntryResponse$Type extends fm.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){const t={ok:false,signedUploadUrl:"",message:""};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.ok!==false)t.tag(1,fm.WireType.Varint).bool(e.ok);if(e.signedUploadUrl!=="")t.tag(2,fm.WireType.LengthDelimited).string(e.signedUploadUrl);if(e.message!=="")t.tag(3,fm.WireType.LengthDelimited).string(e.message);let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Cm=new CreateCacheEntryResponse$Type;class FinalizeCacheEntryUploadRequest$Type extends fm.MessageType{constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest",[{no:1,name:"metadata",kind:"message",T:()=>ym},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.metadata=ym.internalBinaryRead(e,e.uint32(),n,i.metadata);break;case 2:i.key=e.string();break;case 3:i.sizeBytes=e.int64().toString();break;case 4:i.version=e.string();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.metadata)ym.internalBinaryWrite(e.metadata,t.tag(1,fm.WireType.LengthDelimited).fork(),n).join();if(e.key!=="")t.tag(2,fm.WireType.LengthDelimited).string(e.key);if(e.sizeBytes!=="0")t.tag(3,fm.WireType.Varint).int64(e.sizeBytes);if(e.version!=="")t.tag(4,fm.WireType.LengthDelimited).string(e.version);let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Im=new FinalizeCacheEntryUploadRequest$Type;class FinalizeCacheEntryUploadResponse$Type extends fm.MessageType{constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"entry_id",kind:"scalar",T:3},{no:3,name:"message",kind:"scalar",T:9}])}create(e){const t={ok:false,entryId:"0",message:""};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.ok=e.bool();break;case 2:i.entryId=e.int64().toString();break;case 3:i.message=e.string();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.ok!==false)t.tag(1,fm.WireType.Varint).bool(e.ok);if(e.entryId!=="0")t.tag(2,fm.WireType.Varint).int64(e.entryId);if(e.message!=="")t.tag(3,fm.WireType.LengthDelimited).string(e.message);let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const bm=new FinalizeCacheEntryUploadResponse$Type;class GetCacheEntryDownloadURLRequest$Type extends fm.MessageType{constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest",[{no:1,name:"metadata",kind:"message",T:()=>ym},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.metadata=ym.internalBinaryRead(e,e.uint32(),n,i.metadata);break;case 2:i.key=e.string();break;case 3:i.restoreKeys.push(e.string());break;case 4:i.version=e.string();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.metadata)ym.internalBinaryWrite(e.metadata,t.tag(1,fm.WireType.LengthDelimited).fork(),n).join();if(e.key!=="")t.tag(2,fm.WireType.LengthDelimited).string(e.key);for(let n=0;n<e.restoreKeys.length;n++)t.tag(3,fm.WireType.LengthDelimited).string(e.restoreKeys[n]);if(e.version!=="")t.tag(4,fm.WireType.LengthDelimited).string(e.version);let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Sm=new GetCacheEntryDownloadURLRequest$Type;class GetCacheEntryDownloadURLResponse$Type extends fm.MessageType{constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_download_url",kind:"scalar",T:9},{no:3,name:"matched_key",kind:"scalar",T:9}])}create(e){const t={ok:false,signedDownloadUrl:"",matchedKey:""};globalThis.Object.defineProperty(t,fm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,fm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),c=e.pos+t;while(e.pos<c){let[t,o]=e.tag();switch(t){case 1:i.ok=e.bool();break;case 2:i.signedDownloadUrl=e.string();break;case 3:i.matchedKey=e.string();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(c!==false)(c===true?fm.UnknownFieldHandler.onRead:c)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.ok!==false)t.tag(1,fm.WireType.Varint).bool(e.ok);if(e.signedDownloadUrl!=="")t.tag(2,fm.WireType.LengthDelimited).string(e.signedDownloadUrl);if(e.matchedKey!=="")t.tag(3,fm.WireType.LengthDelimited).string(e.matchedKey);let o=n.writeUnknownFields;if(o!==false)(o==true?fm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Bm=new GetCacheEntryDownloadURLResponse$Type;const wm=new gm.C0("github.actions.results.api.v1.CacheService",[{name:"CreateCacheEntry",options:{},I:Em,O:Cm},{name:"FinalizeCacheEntryUpload",options:{},I:Im,O:bm},{name:"GetCacheEntryDownloadURL",options:{},I:Sm,O:Bm}]);class CacheServiceClientJSON{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=Em.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",t);return n.then((e=>Cm.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=Im.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return n.then((e=>bm.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=Sm.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return n.then((e=>Bm.fromJson(e,{ignoreUnknownFields:true})))}}class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=CreateCacheEntryRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return n.then((e=>CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=FinalizeCacheEntryUploadRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return n.then((e=>FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=GetCacheEntryDownloadURLRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return n.then((e=>GetCacheEntryDownloadURLResponse.fromBinary(e)))}}function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const n=t.searchParams.get("sig");if(n){core_setSecret(n);core_setSecret(encodeURIComponent(n))}}catch(t){core_debug(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function maskSecretUrls(e){if(typeof e!=="object"||e===null){core_debug("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}var Rm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class CacheServiceClient{constructor(e,t,n,o){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const i=getRuntimeToken();this.baseUrl=getCacheServiceURL();if(t){this.maxAttempts=t}if(n){this.baseRetryIntervalMilliseconds=n}if(o){this.retryMultiplier=o}this.httpClient=new lib_HttpClient(e,[new auth_BearerCredentialHandler(i)])}request(e,t,n,o){return Rm(this,void 0,void 0,(function*(){const i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;core_debug(`[Request] ${t} ${i}`);const c={"Content-Type":n};try{const{body:e}=yield this.retryableRequest((()=>Rm(this,void 0,void 0,(function*(){return this.httpClient.post(i,JSON.stringify(o),c)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return Rm(this,void 0,void 0,(function*(){let t=0;let n="";let o="";while(t<this.maxAttempts){let i=false;try{const t=yield e();const c=t.message.statusCode;o=yield t.readBody();core_debug(`[Response] - ${t.message.statusCode}`);core_debug(`Headers: ${JSON.stringify(t.message.headers,null,2)}`);const d=JSON.parse(o);maskSecretUrls(d);core_debug(`Body: ${JSON.stringify(d,null,2)}`);if(this.isSuccessStatusCode(c)){return{response:t,body:d}}i=this.isRetryableHttpStatusCode(c);n=`Failed request: (${c}) ${t.message.statusMessage}`;if(d.msg){if(UsageError.isUsageErrorMessage(d.msg)){throw new UsageError}n=`${n}: ${d.msg}`}if(c===re.TooManyRequests){const e=t.message.headers["retry-after"];if(e){const t=parseInt(e,10);if(!isNaN(t)&&t>0){warning(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}}throw new RateLimitError(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError){core_debug(`Raw Body: ${o}`)}if(e instanceof UsageError){throw e}if(e instanceof RateLimitError){throw e}if(NetworkError.isNetworkErrorCode(e===null||e===void 0?void 0:e.code)){throw new NetworkError(e===null||e===void 0?void 0:e.code)}i=true;n=e.message}if(!i){throw new Error(`Received non-retryable error: ${n}`)}if(t+1===this.maxAttempts){throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`)}const c=this.getExponentialRetryTimeMilliseconds(t);info(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${c} ms...`);yield this.sleep(c);t++}throw new Error(`Request failed`)}))}isSuccessStatusCode(e){if(!e)return false;return e>=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[re.BadGateway,re.GatewayTimeout,re.InternalServerError,re.ServiceUnavailable];return t.includes(e)}sleep(e){return Rm(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient(user_agent_getUserAgentString(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new CacheServiceClientJSON(t)}var Nm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const Qm=process.platform==="win32";function getTarPath(){return Nm(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield getGnuTarPathOnWindows();const t=jt;if(e){return{path:e,type:$t.GNU}}else if((0,y.existsSync)(t)){return{path:t,type:$t.BSD}}break}case"darwin":{const e=yield which("gtar",false);if(e){return{path:e,type:$t.GNU}}else{return{path:yield which("tar",true),type:$t.BSD}}}default:break}return{path:yield which("tar",true),type:$t.GNU}}))}function getTarArgs(e,t,n){return Nm(this,arguments,void 0,(function*(e,t,n,o=""){const i=[`"${e.path}"`];const c=getCacheFileName(t);const d="cache.tar";const p=getWorkingDirectory();const y=e.type===$t.BSD&&t!==Ht.Gzip&&Qm;switch(n){case"create":i.push("--posix","-cf",y?d:c.replace(new RegExp(`\\${C.sep}`,"g"),"/"),"--exclude",y?d:c.replace(new RegExp(`\\${C.sep}`,"g"),"/"),"-P","-C",p.replace(new RegExp(`\\${C.sep}`,"g"),"/"),"--files-from",Jt);break;case"extract":i.push("-xf",y?d:o.replace(new RegExp(`\\${C.sep}`,"g"),"/"),"-P","-C",p.replace(new RegExp(`\\${C.sep}`,"g"),"/"));break;case"list":i.push("-tf",y?d:o.replace(new RegExp(`\\${C.sep}`,"g"),"/"),"-P");break}if(e.type===$t.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t){return Nm(this,arguments,void 0,(function*(e,t,n=""){let o;const i=yield getTarPath();const c=yield getTarArgs(i,e,t,n);const d=t!=="create"?yield getDecompressionProgram(i,e,n):yield getCompressionProgram(i,e);const p=i.type===$t.BSD&&e!==Ht.Gzip&&Qm;if(p&&t!=="create"){o=[[...d].join(" "),[...c].join(" ")]}else{o=[[...c].join(" "),[...d].join(" ")]}if(p){return o}return[o.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,n){return Nm(this,void 0,void 0,(function*(){const o=e.type===$t.BSD&&t!==Ht.Gzip&&Qm;switch(t){case Ht.Zstd:return o?["zstd -d --long=30 --force -o",Yt,n.replace(new RegExp(`\\${C.sep}`,"g"),"/")]:["--use-compress-program",Qm?'"zstd -d --long=30"':"unzstd --long=30"];case Ht.ZstdWithoutLong:return o?["zstd -d --force -o",Yt,n.replace(new RegExp(`\\${C.sep}`,"g"),"/")]:["--use-compress-program",Qm?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return Nm(this,void 0,void 0,(function*(){const n=getCacheFileName(t);const o=e.type===$t.BSD&&t!==Ht.Gzip&&Qm;switch(t){case Ht.Zstd:return o?["zstd -T0 --long=30 --force -o",n.replace(new RegExp(`\\${C.sep}`,"g"),"/"),Yt]:["--use-compress-program",Qm?'"zstd -T0 --long=30"':"zstdmt --long=30"];case Ht.ZstdWithoutLong:return o?["zstd -T0 --force -o",n.replace(new RegExp(`\\${C.sep}`,"g"),"/"),Yt]:["--use-compress-program",Qm?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return Nm(this,void 0,void 0,(function*(){for(const n of e){try{yield exec_exec(n,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${n.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return Nm(this,void 0,void 0,(function*(){const n=yield getCommands(t,"list",e);yield execCommands(n)}))}function tar_extractTar(e,t){return Nm(this,void 0,void 0,(function*(){const n=getWorkingDirectory();yield mkdirP(n);const o=yield getCommands(t,"extract",e);yield execCommands(o)}))}function createTar(e,t,n){return Nm(this,void 0,void 0,(function*(){(0,y.writeFileSync)(C.join(e,Jt),t.join("\n"));const o=yield getCommands(n,"create");yield execCommands(o,e)}))}var xm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}class FinalizeCacheError extends Error{constructor(e){super(e);this.name="FinalizeCacheError";Object.setPrototypeOf(this,FinalizeCacheError.prototype)}}function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=getCacheServiceVersion();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}function restoreCache(e,t,n,o){return xm(this,arguments,void 0,(function*(e,t,n,o,i=false){const c=getCacheServiceVersion();core_debug(`Cache service version: ${c}`);checkPaths(e);switch(c){case"v2":return yield restoreCacheV2(e,t,n,o,i);case"v1":default:return yield restoreCacheV1(e,t,n,o,i)}}))}function restoreCacheV1(e,t,n,o){return xm(this,arguments,void 0,(function*(e,t,n,o,i=false){n=n||[];const c=[t,...n];core_debug("Resolved Keys:");core_debug(JSON.stringify(c));if(c.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of c){checkKey(e)}const d=yield getCompressionMethod();let p="";try{const t=yield getCacheEntry(c,e,{compressionMethod:d,enableCrossOsArchive:i});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(o===null||o===void 0?void 0:o.lookupOnly){info("Lookup only - skipping download");return t.cacheKey}p=C.join(yield createTempDirectory(),getCacheFileName(d));core_debug(`Archive Path: ${p}`);yield downloadCache(t.archiveLocation,p,o);if(isDebug()){yield listTar(p,d)}const n=getArchiveFileSizeInBytes(p);info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);yield tar_extractTar(p,d);info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to restore: ${e.message}`)}else{warning(`Failed to restore: ${e.message}`)}}}finally{try{yield unlinkFile(p)}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,n,o){return xm(this,arguments,void 0,(function*(e,t,n,o,i=false){o=Object.assign(Object.assign({},o),{useAzureSdk:true});n=n||[];const c=[t,...n];core_debug("Resolved Keys:");core_debug(JSON.stringify(c));if(c.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of c){checkKey(e)}let d="";try{const p=internalCacheTwirpClient();const y=yield getCompressionMethod();const Q={key:t,restoreKeys:n,version:getCacheVersion(e,y,i)};const v=yield p.GetCacheEntryDownloadURL(Q);if(!v.ok){core_debug(`Cache not found for version ${Q.version} of keys: ${c.join(", ")}`);return undefined}const D=Q.key!==v.matchedKey;if(D){info(`Cache hit for restore-key: ${v.matchedKey}`)}else{info(`Cache hit for: ${v.matchedKey}`)}if(o===null||o===void 0?void 0:o.lookupOnly){info("Lookup only - skipping download");return v.matchedKey}d=C.join(yield createTempDirectory(),getCacheFileName(y));core_debug(`Archive path: ${d}`);core_debug(`Starting download of archive to: ${d}`);yield downloadCache(v.signedDownloadUrl,d,o);const k=getArchiveFileSizeInBytes(d);info(`Cache Size: ~${Math.round(k/(1024*1024))} MB (${k} B)`);if(isDebug()){yield listTar(d,y)}yield tar_extractTar(d,y);info("Cache restored successfully");return v.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to restore: ${e.message}`)}else{warning(`Failed to restore: ${e.message}`)}}}finally{try{if(d){yield unlinkFile(d)}}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return undefined}))}function cache_saveCache(e,t,n){return xm(this,arguments,void 0,(function*(e,t,n,o=false){const i=getCacheServiceVersion();core_debug(`Cache service version: ${i}`);checkPaths(e);checkKey(t);switch(i){case"v2":return yield saveCacheV2(e,t,n,o);case"v1":default:return yield saveCacheV1(e,t,n,o)}}))}function saveCacheV1(e,t,n){return xm(this,arguments,void 0,(function*(e,t,n,o=false){var i,c,d,p,y;const Q=yield getCompressionMethod();let v=-1;const D=yield resolvePaths(e);core_debug("Cache Paths:");core_debug(`${JSON.stringify(D)}`);if(D.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const k=yield createTempDirectory();const $=C.join(k,getCacheFileName(Q));core_debug(`Archive Path: ${$}`);try{yield createTar(k,D,Q);if(isDebug()){yield listTar($,Q)}const C=10*1024*1024*1024;const V=getArchiveFileSizeInBytes($);core_debug(`File Size: ${V}`);if(V>C&&!isGhes()){throw new Error(`Cache size of ~${Math.round(V/(1024*1024))} MB (${V} B) is over the 10GB limit, not saving cache.`)}core_debug("Reserving Cache");const ee=yield reserveCache(t,e,{compressionMethod:Q,enableCrossOsArchive:o,cacheSize:V});if((i=ee===null||ee===void 0?void 0:ee.result)===null||i===void 0?void 0:i.cacheId){v=(c=ee===null||ee===void 0?void 0:ee.result)===null||c===void 0?void 0:c.cacheId}else if((ee===null||ee===void 0?void 0:ee.statusCode)===400){throw new Error((p=(d=ee===null||ee===void 0?void 0:ee.error)===null||d===void 0?void 0:d.message)!==null&&p!==void 0?p:`Cache size of ~${Math.round(V/(1024*1024))} MB (${V} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(y=ee===null||ee===void 0?void 0:ee.error)===null||y===void 0?void 0:y.message}`)}core_debug(`Saving Cache (ID: ${v})`);yield saveCache(v,$,"",n)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){info(`Failed to save: ${t.message}`)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to save: ${t.message}`)}else{warning(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile($)}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return v}))}function saveCacheV2(e,t,n){return xm(this,arguments,void 0,(function*(e,t,n,o=false){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const i=yield getCompressionMethod();const c=internalCacheTwirpClient();let d=-1;const p=yield resolvePaths(e);core_debug("Cache Paths:");core_debug(`${JSON.stringify(p)}`);if(p.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const y=yield createTempDirectory();const Q=C.join(y,getCacheFileName(i));core_debug(`Archive Path: ${Q}`);try{yield createTar(y,p,i);if(isDebug()){yield listTar(Q,i)}const C=getArchiveFileSizeInBytes(Q);core_debug(`File Size: ${C}`);n.archiveSizeBytes=C;core_debug("Reserving Cache");const v=getCacheVersion(e,i,o);const D={key:t,version:v};let k;try{const e=yield c.CreateCacheEntry(D);if(!e.ok){if(e.message){warning(`Cache reservation failed: ${e.message}`)}throw new Error(e.message||"Response was not ok")}k=e.signedUploadUrl}catch(e){core_debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}core_debug(`Attempting to upload cache located at: ${Q}`);yield saveCache(d,Q,k,n);const $={key:t,version:v,sizeBytes:`${C}`};const V=yield c.FinalizeCacheEntryUpload($);core_debug(`FinalizeCacheEntryUploadResponse: ${V.ok}`);if(!V.ok){if(V.message){throw new FinalizeCacheError(V.message)}throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}d=parseInt(V.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){info(`Failed to save: ${t.message}`)}else if(t.name===FinalizeCacheError.name){warning(t.message)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to save: ${t.message}`)}else{warning(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile(Q)}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return d}))}class Cache{opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e;this.ghaCacheKey=Et.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform());this.ghaNoCache=this.opts.ghaNoCache;this.cacheDir=C.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform());this.cachePath=C.join(this.cacheDir,this.opts.cacheFile);if(!y.existsSync(this.cacheDir)){y.mkdirSync(this.cacheDir,{recursive:true})}}async save(e,t){core_debug(`Cache.save ${e}`);const n=this.copyToCache(e);const o=await cacheDir(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());core_debug(`Cache.save cached to hosted tool cache ${o}`);if(!this.ghaNoCache&&isFeatureAvailable()){if(t){try{core_debug(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`);await cache_saveCache([this.cacheDir],this.ghaCacheKey)}catch(e){warning(`Failed to save cache: ${e}`)}}else{core_debug(`Cache.save sending ${this.ghaCacheKey} to post state`);saveState(Cache.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}))}}return n}async find(){try{let e=find(this.opts.htcName,this.opts.htcVersion,this.platform());if(e){info(`Restored from hosted tool cache ${e}`);return this.copyToCache(`${e}/${this.opts.cacheFile}`)}if(!this.ghaNoCache&&isFeatureAvailable()){core_debug(`GitHub Actions cache feature available`);if(await restoreCache([this.cacheDir],this.ghaCacheKey)){info(`Restored ${this.ghaCacheKey} from GitHub Actions cache`);e=await cacheDir(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());info(`Cached to hosted tool cache ${e}`);return this.copyToCache(`${e}/${this.opts.cacheFile}`)}}else if(this.ghaNoCache){info(`GitHub Actions cache disabled`)}else{info(`GitHub Actions cache feature not available`)}}catch(e){warning(`Failed to restore cache: ${e}`)}return""}static async post(){const e=getState(Cache.POST_CACHE_KEY);if(!e){info(`State not set`);return Promise.resolve(undefined)}let t;try{t=JSON.parse(e)}catch(e){throw new Error(`Failed to parse cache post state: ${e}`)}if(!t.dir||!t.key){throw new Error(`Invalid cache post state: ${e}`)}try{info(`Caching ${t.key} to GitHub Actions cache`);await cache_saveCache([t.dir],t.key)}catch(e){warning(`Failed to save cache: ${e}`)}return t}copyToCache(e){info(`Copying ${e} to ${this.cachePath}`);y.copyFileSync(e,this.cachePath);return this.cachePath}platform(){const e=process.config.variables.arm_version;return`${c.platform()}-${c.arch()}${e?"v"+e:""}`}}const Tm=!!process.env["STATE_isPost"];if(!Tm){saveState("isPost","true")}async function run(e,t){if(!Tm){try{await e()}catch(e){setFailed(e.message)}}else{if(t){await t()}await group(`Post cache`,(async()=>{await Cache.post()}))}}
|
||
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
||
function isNothing(e){return typeof e==="undefined"||e===null}function js_yaml_isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function js_yaml_extend(e,t){var n,o,i,c;if(t){c=Object.keys(t);for(n=0,o=c.length;n<o;n+=1){i=c[n];e[i]=t[i]}}return e}function repeat(e,t){var n="",o;for(o=0;o<t;o+=1){n+=e}return n}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var vm=isNothing;var Pm=js_yaml_isObject;var Dm=toArray;var km=repeat;var _m=isNegativeZero;var Lm=js_yaml_extend;var Om={isNothing:vm,isObject:Pm,toArray:Dm,repeat:km,isNegativeZero:_m,extend:Lm};function formatError(e,t){var n="",o=e.reason||"(unknown reason)";if(!e.mark)return o;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return o+" "+n}function YAMLException$1(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};var Fm=YAMLException$1;function getLine(e,t,n,o,i){var c="";var d="";var p=Math.floor(i/2)-1;if(o-t>p){c=" ... ";t=o-p+c.length}if(n-o>p){d=" ...";n=o+p-d.length}return{str:c+e.slice(t,n).replace(/\t/g,"→")+d,pos:o-t+c.length}}function js_yaml_padStart(e,t){return Om.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var o=[0];var i=[];var c;var d=-1;while(c=n.exec(e.buffer)){i.push(c.index);o.push(c.index+c[0].length);if(e.position<=c.index&&d<0){d=o.length-2}}if(d<0)d=o.length-1;var p="",y,C;var Q=Math.min(e.line+t.linesAfter,i.length).toString().length;var v=t.maxLength-(t.indent+Q+3);for(y=1;y<=t.linesBefore;y++){if(d-y<0)break;C=getLine(e.buffer,o[d-y],i[d-y],e.position-(o[d]-o[d-y]),v);p=Om.repeat(" ",t.indent)+js_yaml_padStart((e.line-y+1).toString(),Q)+" | "+C.str+"\n"+p}C=getLine(e.buffer,o[d],i[d],e.position,v);p+=Om.repeat(" ",t.indent)+js_yaml_padStart((e.line+1).toString(),Q)+" | "+C.str+"\n";p+=Om.repeat("-",t.indent+Q+3+C.pos)+"^"+"\n";for(y=1;y<=t.linesAfter;y++){if(d+y>=i.length)break;C=getLine(e.buffer,o[d+y],i[d+y],e.position-(o[d]-o[d+y]),v);p+=Om.repeat(" ",t.indent)+js_yaml_padStart((e.line+y+1).toString(),Q)+" | "+C.str+"\n"}return p.replace(/\n$/,"")}var Um=makeSnippet;var Mm=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var Hm=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function Type$1(e,t){t=t||{};Object.keys(t).forEach((function(t){if(Mm.indexOf(t)===-1){throw new Fm('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(Hm.indexOf(this.kind)===-1){throw new Fm('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var $m=Type$1;function compileList(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,o){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=o}}));n[t]=e}));return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t<n;t+=1){arguments[t].forEach(collectType)}return e}function Schema$1(e){return this.extend(e)}Schema$1.prototype.extend=function extend(e){var t=[];var n=[];if(e instanceof $m){n.push(e)}else if(Array.isArray(e)){n=n.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)n=n.concat(e.explicit)}else{throw new Fm("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof $m)){throw new Fm("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new Fm("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new Fm("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));n.forEach((function(e){if(!(e instanceof $m)){throw new Fm("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var o=Object.create(Schema$1.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(n);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};var Gm=Schema$1;var qm=new $m("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}});var zm=new $m("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}});var Vm=new $m("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}});var jm=new Gm({explicit:[qm,zm,Vm]});function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}var Ym=new $m("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Jm=new $m("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,n=0,o=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;o=true}return o&&i!=="_"}if(i==="x"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isHexCode(e.charCodeAt(n)))return false;o=true}return o&&i!=="_"}if(i==="o"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isOctCode(e.charCodeAt(n)))return false;o=true}return o&&i!=="_"}}if(i==="_")return false;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isDecCode(e.charCodeAt(n))){return false}o=true}if(!o||i==="_")return false;return true}function constructYamlInteger(e){var t=e,n=1,o;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}o=t[0];if(o==="-"||o==="+"){if(o==="-")n=-1;t=t.slice(1);o=t[0]}if(t==="0")return 0;if(o==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!Om.isNegativeZero(e))}var Wm=new $m("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var Km=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!Km.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,n;t=e.replace(/_/g,"").toLowerCase();n=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var Xm=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(Om.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return Xm.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Om.isNegativeZero(e))}var Zm=new $m("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});var eg=jm.extend({implicit:[Ym,Jm,Wm,Zm]});var tg=eg;var rg=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var ng=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(rg.exec(e)!==null)return true;if(ng.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,n,o,i,c,d,p,y=0,C=null,Q,v,D;t=rg.exec(e);if(t===null)t=ng.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];o=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(n,o,i))}c=+t[4];d=+t[5];p=+t[6];if(t[7]){y=t[7].slice(0,3);while(y.length<3){y+="0"}y=+y}if(t[9]){Q=+t[10];v=+(t[11]||0);C=(Q*60+v)*6e4;if(t[9]==="-")C=-C}D=new Date(Date.UTC(n,o,i,c,d,p,y));if(C)D.setTime(D.getTime()-C);return D}function representYamlTimestamp(e){return e.toISOString()}var sg=new $m("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return e==="<<"||e===null}var og=new $m("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});var ig="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,n,o=0,i=e.length,c=ig;for(n=0;n<i;n++){t=c.indexOf(e.charAt(n));if(t>64)continue;if(t<0)return false;o+=6}return o%8===0}function constructYamlBinary(e){var t,n,o=e.replace(/[\r\n=]/g,""),i=o.length,c=ig,d=0,p=[];for(t=0;t<i;t++){if(t%4===0&&t){p.push(d>>16&255);p.push(d>>8&255);p.push(d&255)}d=d<<6|c.indexOf(o.charAt(t))}n=i%4*6;if(n===0){p.push(d>>16&255);p.push(d>>8&255);p.push(d&255)}else if(n===18){p.push(d>>10&255);p.push(d>>2&255)}else if(n===12){p.push(d>>4&255)}return new Uint8Array(p)}function representYamlBinary(e){var t="",n=0,o,i,c=e.length,d=ig;for(o=0;o<c;o++){if(o%3===0&&o){t+=d[n>>18&63];t+=d[n>>12&63];t+=d[n>>6&63];t+=d[n&63]}n=(n<<8)+e[o]}i=c%3;if(i===0){t+=d[n>>18&63];t+=d[n>>12&63];t+=d[n>>6&63];t+=d[n&63]}else if(i===2){t+=d[n>>10&63];t+=d[n>>4&63];t+=d[n<<2&63];t+=d[64]}else if(i===1){t+=d[n>>2&63];t+=d[n<<4&63];t+=d[64];t+=d[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var ag=new $m("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var cg=Object.prototype.hasOwnProperty;var lg=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],n,o,i,c,d,p=e;for(n=0,o=p.length;n<o;n+=1){i=p[n];d=false;if(lg.call(i)!=="[object Object]")return false;for(c in i){if(cg.call(i,c)){if(!d)d=true;else return false}}if(!d)return false;if(t.indexOf(c)===-1)t.push(c);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}var ug=new $m("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap});var dg=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,n,o,i,c,d=e;c=new Array(d.length);for(t=0,n=d.length;t<n;t+=1){o=d[t];if(dg.call(o)!=="[object Object]")return false;i=Object.keys(o);if(i.length!==1)return false;c[t]=[i[0],o[i[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,n,o,i,c,d=e;c=new Array(d.length);for(t=0,n=d.length;t<n;t+=1){o=d[t];i=Object.keys(o);c[t]=[i[0],o[i[0]]]}return c}var pg=new $m("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs});var Ag=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,n=e;for(t in n){if(Ag.call(n,t)){if(n[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}var mg=new $m("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet});var gg=tg.extend({implicit:[sg,og],explicit:[ag,ug,pg,mg]});var fg=Object.prototype.hasOwnProperty;var hg=1;var yg=2;var Eg=3;var Cg=4;var Ig=1;var bg=2;var Sg=3;var Bg=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var wg=/[\x85\u2028\u2029]/;var Rg=/[,\[\]\{\}]/;var Ng=/^(?:!|!!|![a-z\-]+!)$/i;var Qg=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function setProperty(e,t,n){if(t==="__proto__"){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:n})}else{e[t]=n}}var xg=new Array(256);var Tg=new Array(256);for(var vg=0;vg<256;vg++){xg[vg]=simpleEscapeSequence(vg)?1:0;Tg[vg]=simpleEscapeSequence(vg)}function State$1(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||gg;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=Um(n);return new Fm(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var Pg={YAML:function handleYamlDirective(e,t,n){var o,i,c;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(o===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(o[1],10);c=parseInt(o[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=c<2;if(c!==1&&c!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,n){var o,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}o=n[0];i=n[1];if(!Ng.test(o)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(fg.call(e.tagMap,o)){throwError(e,'there is a previously declared suffix for "'+o+'" tag handle')}if(!Qg.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[o]=i}};function captureSegment(e,t,n,o){var i,c,d,p;if(t<n){p=e.input.slice(t,n);if(o){for(i=0,c=p.length;i<c;i+=1){d=p.charCodeAt(i);if(!(d===9||32<=d&&d<=1114111)){throwError(e,"expected valid JSON character")}}}else if(Bg.test(p)){throwError(e,"the stream contains non-printable characters")}e.result+=p}}function mergeMappings(e,t,n,o){var i,c,d,p;if(!Om.isObject(n)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}i=Object.keys(n);for(d=0,p=i.length;d<p;d+=1){c=i[d];if(!fg.call(t,c)){setProperty(t,c,n[c]);o[c]=true}}}function storeMappingPair(e,t,n,o,i,c,d,p,y){var C,Q;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(C=0,Q=i.length;C<Q;C+=1){if(Array.isArray(i[C])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[C])==="[object Object]"){i[C]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(o==="tag:yaml.org,2002:merge"){if(Array.isArray(c)){for(C=0,Q=c.length;C<Q;C+=1){mergeMappings(e,t,c[C],n)}}else{mergeMappings(e,t,c,n)}}else{if(!e.json&&!fg.call(n,i)&&fg.call(t,i)){e.line=d||e.line;e.lineStart=p||e.lineStart;e.position=y||e.position;throwError(e,"duplicated mapping key")}setProperty(t,i,c);delete n[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,n){var o=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);o++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(n!==-1&&o!==0&&e.lineIndent<n){throwWarning(e,"deficient indentation")}return o}function testDocumentSeparator(e){var t=e.position,n;n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){t+=3;n=e.input.charCodeAt(t);if(n===0||is_WS_OR_EOL(n)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=Om.repeat("\n",t-1)}}function readPlainScalar(e,t,n){var o,i,c,d,p,y,C,Q,v=e.kind,D=e.result,k;k=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(k)||is_FLOW_INDICATOR(k)||k===35||k===38||k===42||k===33||k===124||k===62||k===39||k===34||k===37||k===64||k===96){return false}if(k===63||k===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";c=d=e.position;p=false;while(k!==0){if(k===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(k===35){o=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(o)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(k)){break}else if(is_EOL(k)){y=e.line;C=e.lineStart;Q=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){p=true;k=e.input.charCodeAt(e.position);continue}else{e.position=d;e.line=y;e.lineStart=C;e.lineIndent=Q;break}}if(p){captureSegment(e,c,d,false);writeFoldedLines(e,e.line-y);c=d=e.position;p=false}if(!is_WHITE_SPACE(k)){d=e.position+1}k=e.input.charCodeAt(++e.position)}captureSegment(e,c,d,false);if(e.result){return true}e.kind=v;e.result=D;return false}function readSingleQuotedScalar(e,t){var n,o,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;o=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,o,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){o=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,o,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));o=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,o,i,c,d,p;p=e.input.charCodeAt(e.position);if(p!==34){return false}e.kind="scalar";e.result="";e.position++;n=o=e.position;while((p=e.input.charCodeAt(e.position))!==0){if(p===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(p===92){captureSegment(e,n,e.position,true);p=e.input.charCodeAt(++e.position);if(is_EOL(p)){skipSeparationSpace(e,false,t)}else if(p<256&&xg[p]){e.result+=Tg[p];e.position++}else if((d=escapedHexLen(p))>0){i=d;c=0;for(;i>0;i--){p=e.input.charCodeAt(++e.position);if((d=fromHexCode(p))>=0){c=(c<<4)+d}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(c);e.position++}else{throwError(e,"unknown escape sequence")}n=o=e.position}else if(is_EOL(p)){captureSegment(e,n,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=o=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;o=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n=true,o,i,c,d=e.tag,p,y=e.anchor,C,Q,v,D,k,$=Object.create(null),V,ee,te,re;re=e.input.charCodeAt(e.position);if(re===91){Q=93;k=false;p=[]}else if(re===123){Q=125;k=true;p={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=p}re=e.input.charCodeAt(++e.position);while(re!==0){skipSeparationSpace(e,true,t);re=e.input.charCodeAt(e.position);if(re===Q){e.position++;e.tag=d;e.anchor=y;e.kind=k?"mapping":"sequence";e.result=p;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(re===44){throwError(e,"expected the node content, but found ','")}ee=V=te=null;v=D=false;if(re===63){C=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(C)){v=D=true;e.position++;skipSeparationSpace(e,true,t)}}o=e.line;i=e.lineStart;c=e.position;composeNode(e,t,hg,false,true);ee=e.tag;V=e.result;skipSeparationSpace(e,true,t);re=e.input.charCodeAt(e.position);if((D||e.line===o)&&re===58){v=true;re=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,hg,false,true);te=e.result}if(k){storeMappingPair(e,p,$,ee,V,te,o,i,c)}else if(v){p.push(storeMappingPair(e,null,$,ee,V,te,o,i,c))}else{p.push(V)}skipSeparationSpace(e,true,t);re=e.input.charCodeAt(e.position);if(re===44){n=true;re=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,o,i=Ig,c=false,d=false,p=t,y=0,C=false,Q,v;v=e.input.charCodeAt(e.position);if(v===124){o=false}else if(v===62){o=true}else{return false}e.kind="scalar";e.result="";while(v!==0){v=e.input.charCodeAt(++e.position);if(v===43||v===45){if(Ig===i){i=v===43?Sg:bg}else{throwError(e,"repeat of a chomping mode identifier")}}else if((Q=fromDecimalCode(v))>=0){if(Q===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!d){p=t+Q-1;d=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(v)){do{v=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(v));if(v===35){do{v=e.input.charCodeAt(++e.position)}while(!is_EOL(v)&&v!==0)}}while(v!==0){readLineBreak(e);e.lineIndent=0;v=e.input.charCodeAt(e.position);while((!d||e.lineIndent<p)&&v===32){e.lineIndent++;v=e.input.charCodeAt(++e.position)}if(!d&&e.lineIndent>p){p=e.lineIndent}if(is_EOL(v)){y++;continue}if(e.lineIndent<p){if(i===Sg){e.result+=Om.repeat("\n",c?1+y:y)}else if(i===Ig){if(c){e.result+="\n"}}break}if(o){if(is_WHITE_SPACE(v)){C=true;e.result+=Om.repeat("\n",c?1+y:y)}else if(C){C=false;e.result+=Om.repeat("\n",y+1)}else if(y===0){if(c){e.result+=" "}}else{e.result+=Om.repeat("\n",y)}}else{e.result+=Om.repeat("\n",c?1+y:y)}c=true;d=true;y=0;n=e.position;while(!is_EOL(v)&&v!==0){v=e.input.charCodeAt(++e.position)}captureSegment(e,n,e.position,false)}return true}function readBlockSequence(e,t){var n,o=e.tag,i=e.anchor,c=[],d,p=false,y;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=c}y=e.input.charCodeAt(e.position);while(y!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(y!==45){break}d=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(d)){break}p=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){c.push(null);y=e.input.charCodeAt(e.position);continue}}n=e.line;composeNode(e,t,Eg,false,true);c.push(e.result);skipSeparationSpace(e,true,-1);y=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&y!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(p){e.tag=o;e.anchor=i;e.kind="sequence";e.result=c;return true}return false}function readBlockMapping(e,t,n){var o,i,c,d,p,y,C=e.tag,Q=e.anchor,v={},D=Object.create(null),k=null,$=null,V=null,ee=false,te=false,re;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=v}re=e.input.charCodeAt(e.position);while(re!==0){if(!ee&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}o=e.input.charCodeAt(e.position+1);c=e.line;if((re===63||re===58)&&is_WS_OR_EOL(o)){if(re===63){if(ee){storeMappingPair(e,v,D,k,$,null,d,p,y);k=$=V=null}te=true;ee=true;i=true}else if(ee){ee=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;re=o}else{d=e.line;p=e.lineStart;y=e.position;if(!composeNode(e,n,yg,false,true)){break}if(e.line===c){re=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(re)){re=e.input.charCodeAt(++e.position)}if(re===58){re=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(re)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(ee){storeMappingPair(e,v,D,k,$,null,d,p,y);k=$=V=null}te=true;ee=false;i=false;k=e.tag;$=e.result}else if(te){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=C;e.anchor=Q;return true}}else if(te){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=C;e.anchor=Q;return true}}if(e.line===c||e.lineIndent>t){if(ee){d=e.line;p=e.lineStart;y=e.position}if(composeNode(e,t,Cg,true,i)){if(ee){$=e.result}else{V=e.result}}if(!ee){storeMappingPair(e,v,D,k,$,V,d,p,y);k=$=V=null}skipSeparationSpace(e,true,-1);re=e.input.charCodeAt(e.position)}if((e.line===c||e.lineIndent>t)&&re!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(ee){storeMappingPair(e,v,D,k,$,null,d,p,y)}if(te){e.tag=C;e.anchor=Q;e.kind="mapping";e.result=v}return te}function readTagProperty(e){var t,n=false,o=false,i,c,d;d=e.input.charCodeAt(e.position);if(d!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}d=e.input.charCodeAt(++e.position);if(d===60){n=true;d=e.input.charCodeAt(++e.position)}else if(d===33){o=true;i="!!";d=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(n){do{d=e.input.charCodeAt(++e.position)}while(d!==0&&d!==62);if(e.position<e.length){c=e.input.slice(t,e.position);d=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(d!==0&&!is_WS_OR_EOL(d)){if(d===33){if(!o){i=e.input.slice(t-1,e.position+1);if(!Ng.test(i)){throwError(e,"named tag handle cannot contain such characters")}o=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}d=e.input.charCodeAt(++e.position)}c=e.input.slice(t,e.position);if(Rg.test(c)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(c&&!Qg.test(c)){throwError(e,"tag name cannot contain such characters: "+c)}try{c=decodeURIComponent(c)}catch(t){throwError(e,"tag name is malformed: "+c)}if(n){e.tag=c}else if(fg.call(e.tagMap,i)){e.tag=e.tagMap[i]+c}else if(i==="!"){e.tag="!"+c}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+c}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var t,n;n=e.input.charCodeAt(e.position);if(n!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,n,o;o=e.input.charCodeAt(e.position);if(o!==42)return false;o=e.input.charCodeAt(++e.position);t=e.position;while(o!==0&&!is_WS_OR_EOL(o)&&!is_FLOW_INDICATOR(o)){o=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}n=e.input.slice(t,e.position);if(!fg.call(e.anchorMap,n)){throwError(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,n,o,i){var c,d,p,y=1,C=false,Q=false,v,D,k,$,V,ee;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;c=d=p=Cg===n||Eg===n;if(o){if(skipSeparationSpace(e,true,-1)){C=true;if(e.lineIndent>t){y=1}else if(e.lineIndent===t){y=0}else if(e.lineIndent<t){y=-1}}}if(y===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){C=true;p=c;if(e.lineIndent>t){y=1}else if(e.lineIndent===t){y=0}else if(e.lineIndent<t){y=-1}}else{p=false}}}if(p){p=C||i}if(y===1||Cg===n){if(hg===n||yg===n){V=t}else{V=t+1}ee=e.position-e.lineStart;if(y===1){if(p&&(readBlockSequence(e,ee)||readBlockMapping(e,ee,V))||readFlowCollection(e,V)){Q=true}else{if(d&&readBlockScalar(e,V)||readSingleQuotedScalar(e,V)||readDoubleQuotedScalar(e,V)){Q=true}else if(readAlias(e)){Q=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,V,hg===n)){Q=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(y===0){Q=p&&readBlockSequence(e,ee)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(v=0,D=e.implicitTypes.length;v<D;v+=1){$=e.implicitTypes[v];if($.resolve(e.result)){e.result=$.construct(e.result);e.tag=$.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(fg.call(e.typeMap[e.kind||"fallback"],e.tag)){$=e.typeMap[e.kind||"fallback"][e.tag]}else{$=null;k=e.typeMap.multi[e.kind||"fallback"];for(v=0,D=k.length;v<D;v+=1){if(e.tag.slice(0,k[v].tag.length)===k[v].tag){$=k[v];break}}}if(!$){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&$.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+$.kind+'", not "'+e.kind+'"')}if(!$.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=$.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||Q}function readDocument(e){var t=e.position,n,o,i,c=false,d;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((d=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);d=e.input.charCodeAt(e.position);if(e.lineIndent>0||d!==37){break}c=true;d=e.input.charCodeAt(++e.position);n=e.position;while(d!==0&&!is_WS_OR_EOL(d)){d=e.input.charCodeAt(++e.position)}o=e.input.slice(n,e.position);i=[];if(o.length<1){throwError(e,"directive name must not be less than one character in length")}while(d!==0){while(is_WHITE_SPACE(d)){d=e.input.charCodeAt(++e.position)}if(d===35){do{d=e.input.charCodeAt(++e.position)}while(d!==0&&!is_EOL(d));break}if(is_EOL(d))break;n=e.position;while(d!==0&&!is_WS_OR_EOL(d)){d=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(d!==0)readLineBreak(e);if(fg.call(Pg,o)){Pg[o](e,o,i)}else{throwWarning(e,'unknown document directive "'+o+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(c){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,Cg,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&wg.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var n=new State$1(e,t);var o=e.indexOf("\0");if(o!==-1){n.position=o;throwError(n,"null byte is not allowed in input")}n.input+="\0";while(n.input.charCodeAt(n.position)===32){n.lineIndent+=1;n.position+=1}while(n.position<n.length-1){readDocument(n)}return n.documents}function loadAll$1(e,t,n){if(t!==null&&typeof t==="object"&&typeof n==="undefined"){n=t;t=null}var o=loadDocuments(e,n);if(typeof t!=="function"){return o}for(var i=0,c=o.length;i<c;i+=1){t(o[i])}}function load$1(e,t){var n=loadDocuments(e,t);if(n.length===0){return undefined}else if(n.length===1){return n[0]}throw new Fm("expected a single document in the stream, but found more")}var Dg=loadAll$1;var kg=load$1;var _g={loadAll:Dg,load:kg};var Lg=Object.prototype.toString;var Og=Object.prototype.hasOwnProperty;var Fg=65279;var Ug=9;var Mg=10;var Hg=13;var $g=32;var Gg=33;var qg=34;var zg=35;var Vg=37;var jg=38;var Yg=39;var Jg=42;var Wg=44;var Kg=45;var Xg=58;var Zg=61;var ef=62;var tf=63;var rf=64;var nf=91;var sf=93;var of=96;var af=123;var cf=124;var lf=125;var uf={};uf[0]="\\0";uf[7]="\\a";uf[8]="\\b";uf[9]="\\t";uf[10]="\\n";uf[11]="\\v";uf[12]="\\f";uf[13]="\\r";uf[27]="\\e";uf[34]='\\"';uf[92]="\\\\";uf[133]="\\N";uf[160]="\\_";uf[8232]="\\L";uf[8233]="\\P";var df=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var pf=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var n,o,i,c,d,p,y;if(t===null)return{};n={};o=Object.keys(t);for(i=0,c=o.length;i<c;i+=1){d=o[i];p=String(t[d]);if(d.slice(0,2)==="!!"){d="tag:yaml.org,2002:"+d.slice(2)}y=e.compiledTypeMap["fallback"][d];if(y&&Og.call(y.styleAliases,p)){p=y.styleAliases[p]}n[d]=p}return n}function encodeHex(e){var t,n,o;t=e.toString(16).toUpperCase();if(e<=255){n="x";o=2}else if(e<=65535){n="u";o=4}else if(e<=4294967295){n="U";o=8}else{throw new Fm("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+n+Om.repeat("0",o-t.length)+t}var Af=1,mf=2;function State(e){this.schema=e["schema"]||gg;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=Om.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?mf:Af;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var n=Om.repeat(" ",t),o=0,i=-1,c="",d,p=e.length;while(o<p){i=e.indexOf("\n",o);if(i===-1){d=e.slice(o);o=p}else{d=e.slice(o,i+1);o=i+1}if(d.length&&d!=="\n")c+=n;c+=d}return c}function generateNextLine(e,t){return"\n"+Om.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var n,o,i;for(n=0,o=e.implicitTypes.length;n<o;n+=1){i=e.implicitTypes[n];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===$g||e===Ug}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Fg||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==Fg&&e!==Hg&&e!==Mg}function isPlainSafe(e,t,n){var o=isNsCharOrWhitespace(e);var i=o&&!isWhitespace(e);return(n?o:o&&e!==Wg&&e!==nf&&e!==sf&&e!==af&&e!==lf)&&e!==zg&&!(t===Xg&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===zg||t===Xg&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==Fg&&!isWhitespace(e)&&e!==Kg&&e!==tf&&e!==Xg&&e!==Wg&&e!==nf&&e!==sf&&e!==af&&e!==lf&&e!==zg&&e!==jg&&e!==Jg&&e!==Gg&&e!==cf&&e!==Zg&&e!==ef&&e!==Yg&&e!==qg&&e!==Vg&&e!==rf&&e!==of}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==Xg}function codePointAt(e,t){var n=e.charCodeAt(t),o;if(n>=55296&&n<=56319&&t+1<e.length){o=e.charCodeAt(t+1);if(o>=56320&&o<=57343){return(n-55296)*1024+o-56320+65536}}return n}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var gf=1,ff=2,hf=3,yf=4,Ef=5;function chooseScalarStyle(e,t,n,o,i,c,d,p){var y;var C=0;var Q=null;var v=false;var D=false;var k=o!==-1;var $=-1;var V=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||d){for(y=0;y<e.length;C>=65536?y+=2:y++){C=codePointAt(e,y);if(!isPrintable(C)){return Ef}V=V&&isPlainSafe(C,Q,p);Q=C}}else{for(y=0;y<e.length;C>=65536?y+=2:y++){C=codePointAt(e,y);if(C===Mg){v=true;if(k){D=D||y-$-1>o&&e[$+1]!==" ";$=y}}else if(!isPrintable(C)){return Ef}V=V&&isPlainSafe(C,Q,p);Q=C}D=D||k&&(y-$-1>o&&e[$+1]!==" ")}if(!v&&!D){if(V&&!d&&!i(e)){return gf}return c===mf?Ef:ff}if(n>9&&needIndentIndicator(e)){return Ef}if(!d){return D?yf:hf}return c===mf?Ef:ff}function writeScalar(e,t,n,o,i){e.dump=function(){if(t.length===0){return e.quotingType===mf?'""':"''"}if(!e.noCompatMode){if(df.indexOf(t)!==-1||pf.test(t)){return e.quotingType===mf?'"'+t+'"':"'"+t+"'"}}var c=e.indent*Math.max(1,n);var d=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c);var p=o||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,p,e.indent,d,testAmbiguity,e.quotingType,e.forceQuotes&&!o,i)){case gf:return t;case ff:return"'"+t.replace(/'/g,"''")+"'";case hf:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,c));case yf:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,d),c));case Ef:return'"'+escapeString(t)+'"';default:throw new Fm("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"";var o=e[e.length-1]==="\n";var i=o&&(e[e.length-2]==="\n"||e==="\n");var c=i?"+":o?"":"-";return n+c+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var n=/(\n+)([^\n]*)/g;var o=function(){var o=e.indexOf("\n");o=o!==-1?o:e.length;n.lastIndex=o;return foldLine(e.slice(0,o),t)}();var i=e[0]==="\n"||e[0]===" ";var c;var d;while(d=n.exec(e)){var p=d[1],y=d[2];c=y[0]===" ";o+=p+(!i&&!c&&y!==""?"\n":"")+foldLine(y,t);i=c}return o}function foldLine(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var o;var i=0,c,d=0,p=0;var y="";while(o=n.exec(e)){p=o.index;if(p-i>t){c=d>i?d:p;y+="\n"+e.slice(i,c);i=c+1}d=p}y+="\n";if(e.length-i>t&&d>i){y+=e.slice(i,d)+"\n"+e.slice(d+1)}else{y+=e.slice(i)}return y.slice(1)}function escapeString(e){var t="";var n=0;var o;for(var i=0;i<e.length;n>=65536?i+=2:i++){n=codePointAt(e,i);o=uf[n];if(!o&&isPrintable(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=o||encodeHex(n)}}return t}function writeFlowSequence(e,t,n){var o="",i=e.tag,c,d,p;for(c=0,d=n.length;c<d;c+=1){p=n[c];if(e.replacer){p=e.replacer.call(n,String(c),p)}if(writeNode(e,t,p,false,false)||typeof p==="undefined"&&writeNode(e,t,null,false,false)){if(o!=="")o+=","+(!e.condenseFlow?" ":"");o+=e.dump}}e.tag=i;e.dump="["+o+"]"}function writeBlockSequence(e,t,n,o){var i="",c=e.tag,d,p,y;for(d=0,p=n.length;d<p;d+=1){y=n[d];if(e.replacer){y=e.replacer.call(n,String(d),y)}if(writeNode(e,t+1,y,true,true,false,true)||typeof y==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!o||i!==""){i+=generateNextLine(e,t)}if(e.dump&&Mg===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=c;e.dump=i||"[]"}function writeFlowMapping(e,t,n){var o="",i=e.tag,c=Object.keys(n),d,p,y,C,Q;for(d=0,p=c.length;d<p;d+=1){Q="";if(o!=="")Q+=", ";if(e.condenseFlow)Q+='"';y=c[d];C=n[y];if(e.replacer){C=e.replacer.call(n,y,C)}if(!writeNode(e,t,y,false,false)){continue}if(e.dump.length>1024)Q+="? ";Q+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,C,false,false)){continue}Q+=e.dump;o+=Q}e.tag=i;e.dump="{"+o+"}"}function writeBlockMapping(e,t,n,o){var i="",c=e.tag,d=Object.keys(n),p,y,C,Q,v,D;if(e.sortKeys===true){d.sort()}else if(typeof e.sortKeys==="function"){d.sort(e.sortKeys)}else if(e.sortKeys){throw new Fm("sortKeys must be a boolean or a function")}for(p=0,y=d.length;p<y;p+=1){D="";if(!o||i!==""){D+=generateNextLine(e,t)}C=d[p];Q=n[C];if(e.replacer){Q=e.replacer.call(n,C,Q)}if(!writeNode(e,t+1,C,true,true,true)){continue}v=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(v){if(e.dump&&Mg===e.dump.charCodeAt(0)){D+="?"}else{D+="? "}}D+=e.dump;if(v){D+=generateNextLine(e,t)}if(!writeNode(e,t+1,Q,true,v)){continue}if(e.dump&&Mg===e.dump.charCodeAt(0)){D+=":"}else{D+=": "}D+=e.dump;i+=D}e.tag=c;e.dump=i||"{}"}function detectType(e,t,n){var o,i,c,d,p,y;i=n?e.explicitTypes:e.implicitTypes;for(c=0,d=i.length;c<d;c+=1){p=i[c];if((p.instanceOf||p.predicate)&&(!p.instanceOf||typeof t==="object"&&t instanceof p.instanceOf)&&(!p.predicate||p.predicate(t))){if(n){if(p.multi&&p.representName){e.tag=p.representName(t)}else{e.tag=p.tag}}else{e.tag="?"}if(p.represent){y=e.styleMap[p.tag]||p.defaultStyle;if(Lg.call(p.represent)==="[object Function]"){o=p.represent(t,y)}else if(Og.call(p.represent,y)){o=p.represent[y](t,y)}else{throw new Fm("!<"+p.tag+'> tag resolver accepts not "'+y+'" style')}e.dump=o}return true}}return false}function writeNode(e,t,n,o,i,c,d){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var p=Lg.call(e.dump);var y=o;var C;if(o){o=e.flowLevel<0||e.flowLevel>t}var Q=p==="[object Object]"||p==="[object Array]",v,D;if(Q){v=e.duplicates.indexOf(n);D=v!==-1}if(e.tag!==null&&e.tag!=="?"||D||e.indent!==2&&t>0){i=false}if(D&&e.usedDuplicates[v]){e.dump="*ref_"+v}else{if(Q&&D&&!e.usedDuplicates[v]){e.usedDuplicates[v]=true}if(p==="[object Object]"){if(o&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,i);if(D){e.dump="&ref_"+v+e.dump}}else{writeFlowMapping(e,t,e.dump);if(D){e.dump="&ref_"+v+" "+e.dump}}}else if(p==="[object Array]"){if(o&&e.dump.length!==0){if(e.noArrayIndent&&!d&&t>0){writeBlockSequence(e,t-1,e.dump,i)}else{writeBlockSequence(e,t,e.dump,i)}if(D){e.dump="&ref_"+v+e.dump}}else{writeFlowSequence(e,t,e.dump);if(D){e.dump="&ref_"+v+" "+e.dump}}}else if(p==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,c,y)}}else if(p==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new Fm("unacceptable kind of an object to dump "+p)}if(e.tag!==null&&e.tag!=="?"){C=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){C="!"+C}else if(C.slice(0,18)==="tag:yaml.org,2002:"){C="!!"+C.slice(18)}else{C="!<"+C+">"}e.dump=C+" "+e.dump}}return true}function getDuplicateReferences(e,t){var n=[],o=[],i,c;inspectNode(e,n,o);for(i=0,c=o.length;i<c;i+=1){t.duplicates.push(n[o[i]])}t.usedDuplicates=new Array(c)}function inspectNode(e,t,n){var o,i,c;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(n.indexOf(i)===-1){n.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,c=e.length;i<c;i+=1){inspectNode(e[i],t,n)}}else{o=Object.keys(e);for(i=0,c=o.length;i<c;i+=1){inspectNode(e[o[i]],t,n)}}}}}function dump$1(e,t){t=t||{};var n=new State(t);if(!n.noRefs)getDuplicateReferences(e,n);var o=e;if(n.replacer){o=n.replacer.call({"":o},"",o)}if(writeNode(n,0,o,true,true))return n.dump+"\n";return""}var Cf=dump$1;var If={dump:Cf};function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}var bf=$m;var Sf=Gm;var Bf=jm;var wf=eg;var Rf=tg;var Nf=gg;var Qf=_g.load;var xf=_g.loadAll;var Tf=If.dump;var vf=Fm;var Pf={binary:ag,float:Zm,map:Vm,null:Ym,pairs:pg,set:mg,timestamp:sg,bool:Jm,int:Wm,merge:og,omap:ug,seq:zm,str:qm};var Df=renamed("safeLoad","load");var kf=renamed("safeLoadAll","loadAll");var _f=renamed("safeDump","dump");var Lf={Type:bf,Schema:Sf,FAILSAFE_SCHEMA:Bf,JSON_SCHEMA:wf,CORE_SCHEMA:Rf,DEFAULT_SCHEMA:Nf,load:Qf,loadAll:xf,dump:Tf,YAMLException:vf,types:Pf,safeLoad:Df,safeLoadAll:kf,safeDump:_f};var Of=__nccwpck_require__(1955);class Git{static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){const t=e.match(Git.protoRegexp);if(t&&t.length>0){let n=t[0].toLowerCase();n=n.slice(0,n.lastIndexOf("://"));if(!(n in Git.supportedProtos)){throw new Error(`Invalid protocol: ${n}`)}return Git.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){const t=new URL(e.toString());t.hash="";let n;if(e.username||e.password){n={username:e.username,password:e.password,passwordSet:e.password!==""}}return{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:Git.splitGitFragment(e.hash),remote:t.toString()}}static splitGitFragment(e){if(e===""){return undefined}const[t,n]=e.slice(1).split(":");return{ref:t,subdir:n}}static parseRef(e){const t={};let n;if(e.startsWith("./")||e.startsWith("../")){throw new Error("Invalid argument")}else if(e.startsWith("github.com/")){t.indistinguishableFromLocal=true;n=Git.fromURL(new URL("https://"+e))}else{n=Git.parseURL(e);if(["http","git"].includes(n.scheme)){t.unencryptedTCP=true}if(["http","https"].includes(n.scheme)&&!n.path.endsWith(".git")){throw new Error("Invalid argument")}}t.remote=n.remote;if(t.indistinguishableFromLocal){t.remote=t.remote.split("://")[1]}if(n.fragment){t.commit=n.fragment.ref;t.subDir=n.fragment.subdir}const o=t.remote.split("/");t.shortName=o[o.length-1].replace(".git","");return t}}var Ff=__nccwpck_require__(1288);class Context{constructor(){var e,t,n;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,y.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,y.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${c.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.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10);this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}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'")}}var Uf=__nccwpck_require__(9659);var Mf=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}function getProxyAgent(e){const t=new Uf.HttpClient;return t.getAgent(e)}function getProxyAgentDispatcher(e){const t=new Uf.HttpClient;return t.getAgentDispatcher(e)}function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,n)=>Mf(this,void 0,void 0,(function*(){return(0,ee.fetch)(e,Object.assign(Object.assign({},n),{dispatcher:t}))}));return proxyFetch}function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}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"<environment undetectable>"}function register(e,t,n,o){if(typeof n!=="function"){throw new Error("method for before hook must be a function")}if(!o){o={}}if(Array.isArray(t)){return t.reverse().reduce(((t,n)=>register.bind(null,e,n,t,o)),n)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return n(o)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,o)),n)()}))}function addHook(e,t,n,o){const i=o;if(!e.registry[n]){e.registry[n]=[]}if(t==="before"){o=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}if(t==="after"){o=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then((e=>{n=e;return i(n,t)})).then((()=>n))}}if(t==="error"){o=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>i(e,t)))}e.registry[n].push({hook:o,orig:i})}function removeHook(e,t,n){if(!e.registry[t]){return}const o=e.registry[t].map((e=>e.orig)).indexOf(n);if(o===-1){return}e.registry[t].splice(o,1)}const Hf=Function.bind;const $f=Hf.bind(Hf);function bindApi(e,t,n){const o=$f(removeHook,null).apply(null,n?[t,n]:[t]);e.api={remove:o};e.remove=o;["before","error","after","wrap"].forEach((o=>{const i=n?[t,o,n]:[t,o];e[o]=e.api[o]=$f(addHook,null).apply(null,i)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const n=register.bind(null,t,e);bindApi(n,t,e);return n}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Gf={Singular:Singular,Collection:Collection};var qf="0.0.0-development";var zf=`octokit-endpoint.js/${qf} ${getUserAgent()}`;var Vf={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":zf},mediaType:{format:""}};function dist_bundle_lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,n)=>{t[n.toLowerCase()]=e[n];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n==="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function mergeDeep(e,t){const n=Object.assign({},e);Object.keys(t).forEach((o=>{if(isPlainObject(t[o])){if(!(o in e))Object.assign(n,{[o]:t[o]});else n[o]=mergeDeep(e[o],t[o])}else{Object.assign(n,{[o]:t[o]})}}));return n}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function dist_bundle_merge(e,t,n){if(typeof t==="string"){let[e,o]=t.split(" ");n=Object.assign(o?{method:e,url:o}:{url:e},n)}else{n=Object.assign({},t)}n.headers=dist_bundle_lowercaseKeys(n.headers);removeUndefinedProperties(n);removeUndefinedProperties(n.headers);const o=mergeDeep(e||{},n);if(n.url==="/graphql"){if(e&&e.mediaType.previews?.length){o.mediaType.previews=e.mediaType.previews.filter((e=>!o.mediaType.previews.includes(e))).concat(o.mediaType.previews)}o.mediaType.previews=(o.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return o}function addQueryParameters(e,t){const n=/\?/.test(e)?"&":"?";const o=Object.keys(t);if(o.length===0){return e}return e+n+o.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var jf=/\{[^{}}]+\}/g;function removeNonChars(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(jf);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const n={__proto__:null};for(const o of Object.keys(e)){if(t.indexOf(o)===-1){n[o]=e[o]}}return n}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,n){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(n){return encodeUnreserved(n)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,n,o){var i=e[n],c=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="bigint"||typeof i==="boolean"){i=i.toString();if(o&&o!=="*"){i=i.substring(0,parseInt(o,10))}c.push(encodeValue(t,i,isKeyOperator(t)?n:""))}else{if(o==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach((function(e){c.push(encodeValue(t,e,isKeyOperator(t)?n:""))}))}else{Object.keys(i).forEach((function(e){if(isDefined(i[e])){c.push(encodeValue(t,i[e],e))}}))}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach((function(n){e.push(encodeValue(t,n))}))}else{Object.keys(i).forEach((function(n){if(isDefined(i[n])){e.push(encodeUnreserved(n));e.push(encodeValue(t,i[n].toString()))}}))}if(isKeyOperator(t)){c.push(encodeUnreserved(n)+"="+e.join(","))}else if(e.length!==0){c.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){c.push(encodeUnreserved(n))}}else if(i===""&&(t==="&"||t==="?")){c.push(encodeUnreserved(n)+"=")}else if(i===""){c.push("")}}return c}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var n=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,o,i){if(o){let e="";const i=[];if(n.indexOf(o.charAt(0))!==-1){e=o.charAt(0);o=o.substr(1)}o.split(/,/g).forEach((function(n){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(getValues(t,e,o[1],o[2]||o[3]))}));if(e&&e!=="+"){var c=",";if(e==="?"){c="&"}else if(e!=="#"){c=e}return(i.length!==0?e:"")+i.join(c)}else{return i.join(",")}}else{return encodeReserved(i)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function dist_bundle_parse(e){let t=e.method.toUpperCase();let n=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let o=Object.assign({},e.headers);let i;let c=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const d=extractUrlVariableNames(n);n=parseUrl(n).expand(c);if(!/^http/.test(n)){n=e.baseUrl+n}const p=Object.keys(e).filter((e=>d.includes(e))).concat("baseUrl");const y=omit(c,p);const C=/application\/octet-stream/i.test(o.accept);if(!C){if(e.mediaType.format){o.accept=o.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(n.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=o.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];o.accept=t.concat(e.mediaType.previews).map((t=>{const n=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${n}`})).join(",")}}}if(["GET","HEAD"].includes(t)){n=addQueryParameters(n,y)}else{if("data"in y){i=y.data}else{if(Object.keys(y).length){i=y}}}if(!o["content-type"]&&typeof i!=="undefined"){o["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:n,headers:o},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,n){return dist_bundle_parse(dist_bundle_merge(e,t,n))}function withDefaults(e,t){const n=dist_bundle_merge(e,t);const o=endpointWithDefaults.bind(null,n);return Object.assign(o,{DEFAULTS:n,defaults:withDefaults.bind(null,n),merge:dist_bundle_merge.bind(null,n),parse:dist_bundle_parse})}var Yf=withDefaults(null,Vf);var Jf=__nccwpck_require__(1120);const Wf=/^-?\d+$/;const Kf=/^-?\d+n+$/;const Xf=JSON.stringify;const Zf=JSON.parse;const eh=/^-?\d+n$/;const th=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const rh=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const JSONStringify=(e,t,n)=>{if("rawJSON"in JSON){return Xf(e,((e,n)=>{if(typeof n==="bigint")return JSON.rawJSON(n.toString());if(typeof t==="function")return t(e,n);if(Array.isArray(t)&&t.includes(e))return n;return n}),n)}if(!e)return Xf(e,t,n);const o=Xf(e,((e,n)=>{const o=typeof n==="string"&&Boolean(n.match(Kf));if(o)return n.toString()+"n";if(typeof n==="bigint")return n.toString()+"n";if(typeof t==="function")return t(e,n);if(Array.isArray(t)&&t.includes(e))return n;return n}),n);const i=o.replace(th,"$1$2$3");const c=i.replace(rh,"$1$2$3");return c};const isContextSourceSupported=()=>JSON.parse("1",((e,t,n)=>!!n&&n.source==="1"));const convertMarkedBigIntsReviver=(e,t,n,o)=>{const i=typeof t==="string"&&t.match(eh);if(i)return BigInt(t.slice(0,-1));const c=typeof t==="string"&&t.match(Kf);if(c)return t.slice(0,-1);if(typeof o!=="function")return t;return o(e,t,n)};const JSONParseV2=(e,t)=>JSON.parse(e,((e,n,o)=>{const i=typeof n==="number"&&(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER);const c=o&&Wf.test(o.source);const d=i&&c;if(d)return BigInt(o.source);if(typeof t!=="function")return n;return t(e,n,o)}));const nh=Number.MAX_SAFE_INTEGER.toString();const sh=nh.length;const oh=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g;const ih=/^"-?\d+n+"$/;const JSONParse=(e,t)=>{if(!e)return Zf(e,t);if(isContextSourceSupported())return JSONParseV2(e,t);const n=e.replace(oh,((e,t,n,o)=>{const i=e[0]==='"';const c=i&&Boolean(e.match(ih));if(c)return e.substring(0,e.length-1)+'n"';const d=n||o;const p=t&&(t.length<sh||t.length===sh&&t<=nh);if(i||d||p)return e;return'"'+e+'n"'}));return Zf(n,((e,n,o)=>convertMarkedBigIntsReviver(e,n,o,t)))};class RequestError extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause});this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}
|
||
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in n){this.response=n.response}const o=Object.assign({},n.request);if(n.request.headers.authorization){o.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o}}var ah="10.0.8";var ch={headers:{"user-agent":`octokit-request.js/${ah} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n==="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const n=e.request?.log||console;const o=e.request?.parseSuccessResponseBody!==false;const i=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const c=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let d;try{d=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:c,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let n="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}n=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){n=t.cause.message}else if(typeof t.cause==="string"){n=t.cause}}}const o=new RequestError(n,500,{request:e});o.cause=t;throw o}const p=d.status;const y=d.url;const C={};for(const[e,t]of d.headers){C[e]=t}const Q={url:y,status:p,headers:C,data:""};if("deprecation"in C){const t=C.link&&C.link.match(/<([^<>]+)>; rel="deprecation"/);const o=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${C.sunset}${o?`. See ${o}`:""}`)}if(p===204||p===205){return Q}if(e.method==="HEAD"){if(p<400){return Q}throw new RequestError(d.statusText,p,{response:Q,request:e})}if(p===304){Q.data=await getResponseData(d);throw new RequestError("Not modified",p,{response:Q,request:e})}if(p>=400){Q.data=await getResponseData(d);throw new RequestError(toErrorMessage(Q.data),p,{response:Q,request:e})}Q.data=o?await getResponseData(d):d.body;return Q}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const n=(0,Jf.xL)(t);if(isJSONResponse(n)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(n.type.startsWith("text/")||n.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
|
||
/* v8 ignore next -- @preserve */
|
||
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const n=e.defaults(t);const newApi=function(e,t){const o=n.merge(e,t);if(!o.request||!o.request.hook){return fetchWrapper(n.parse(o))}const request2=(e,t)=>fetchWrapper(n.parse(n.merge(e,t)));Object.assign(request2,{endpoint:n,defaults:dist_bundle_withDefaults.bind(null,n)});return o.request.hook(request2,o)};return Object.assign(newApi,{endpoint:n,defaults:dist_bundle_withDefaults.bind(null,n)})}var lh=dist_bundle_withDefaults(Yf,ch);
|
||
/* v8 ignore next -- @preserve */
|
||
/* v8 ignore else -- @preserve */var uh="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var dh=class extends Error{constructor(e,t,n){super(_buildMessageForResponseErrors(n));this.request=e;this.headers=t;this.response=n;this.errors=n.errors;this.data=n.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var ph=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var Ah=["query","method","url"];var mh=/\/api\/v3\/?$/;function graphql(e,t,n){if(n){if(typeof t==="string"&&"query"in n){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in n){if(!Ah.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const o=typeof t==="string"?Object.assign({query:t},n):t;const i=Object.keys(o).reduce(((e,t)=>{if(ph.includes(t)){e[t]=o[t];return e}if(!e.variables){e.variables={}}e.variables[t]=o[t];return e}),{});const c=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(mh.test(c)){i.url=c.replace(mh,"/api/graphql")}return e(i).then((e=>{if(e.data.errors){const t={};for(const n of Object.keys(e.headers)){t[n]=e.headers[n]}throw new dh(i,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const n=e.defaults(t);const newApi=(e,t)=>graphql(n,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,n),endpoint:n.endpoint})}var gh=graphql_dist_bundle_withDefaults(lh,{headers:{"user-agent":`octokit-graphql.js/${uh} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var fh="(?:[a-zA-Z0-9_-]+)";var hh="\\.";var yh=new RegExp(`^${fh}${hh}${fh}${hh}${fh}$`);var Eh=yh.test.bind(yh);async function auth(e){const t=Eh(e);const n=e.startsWith("v1.")||e.startsWith("ghs_");const o=e.startsWith("ghu_");const i=t?"app":n?"installation":o?"user-to-server":"oauth";return{type:"token",token:e,tokenType:i}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,n,o){const i=t.endpoint.merge(n,o);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}var Ch=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const Ih="7.0.6";const dist_src_noop=()=>{};const bh=console.warn.bind(console);const Sh=console.error.bind(console);function createLogger(e={}){if(typeof e.debug!=="function"){e.debug=dist_src_noop}if(typeof e.info!=="function"){e.info=dist_src_noop}if(typeof e.warn!=="function"){e.warn=bh}if(typeof e.error!=="function"){e.error=Sh}return e}const Bh=`octokit-core.js/${Ih} ${getUserAgent()}`;class Octokit{static VERSION=Ih;static defaults(e){const t=class extends(this){constructor(...t){const n=t[0]||{};if(typeof e==="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const n=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return n}constructor(e={}){const t=new Gf.Collection;const n={baseUrl:lh.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Bh}`:Bh;if(e.baseUrl){n.baseUrl=e.baseUrl}if(e.previews){n.mediaType.previews=e.previews}if(e.timeZone){n.headers["time-zone"]=e.timeZone}this.request=lh.defaults(n);this.graphql=withCustomRequest(this.request).defaults(n);this.log=createLogger(e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const n=Ch(e.auth);t.wrap("request",n.hook);this.auth=n}}else{const{authStrategy:n,...o}=e;const i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",i.hook);this.auth=i}const o=this.constructor;for(let t=0;t<o.plugins.length;++t){Object.assign(this,o.plugins[t](this,e))}}request;graphql;log;hook;auth}const wh="17.0.0";const Rh={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteCustomImageFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],deleteCustomImageVersionFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomImageForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],getCustomImageVersionForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listCustomImageVersionsForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"],listCustomImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingPremiumRequestUsageReportOrg:["GET /organizations/{org}/settings/billing/premium_request/usage"],getGithubBillingPremiumRequestUsageReportUser:["GET /users/{username}/settings/billing/premium_request/usage"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},enterpriseTeamMemberships:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"],get:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],list:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],remove:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"]},enterpriseTeamOrganizations:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"],delete:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignment:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignments:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"]},enterpriseTeams:{create:["POST /enterprises/{enterprise}/teams"],delete:["DELETE /enterprises/{enterprise}/teams/{team_slug}"],get:["GET /enterprises/{enterprise}/teams/{team_slug}"],list:["GET /enterprises/{enterprise}/teams"],update:["PATCH /enterprises/{enterprise}/teams/{team_slug}"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createWebhook:["POST /orgs/{org}/hooks"],customPropertiesForOrgsCreateOrUpdateOrganizationValues:["PATCH /organizations/{org}/org-properties/values"],customPropertiesForOrgsGetOrganizationValues:["GET /organizations/{org}/org-properties/values"],customPropertiesForReposCreateOrUpdateOrganizationDefinition:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:["PATCH /orgs/{org}/properties/schema"],customPropertiesForReposCreateOrUpdateOrganizationValues:["PATCH /orgs/{org}/properties/values"],customPropertiesForReposDeleteOrganizationDefinition:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinition:["GET /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinitions:["GET /orgs/{org}/properties/schema"],customPropertiesForReposGetOrganizationValues:["GET /orgs/{org}/properties/values"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],disableSelectedRepositoryImmutableReleasesOrganization:["DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],enableSelectedRepositoryImmutableReleasesOrganization:["PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],get:["GET /orgs/{org}"],getImmutableReleasesSettings:["GET /orgs/{org}/settings/immutable-releases"],getImmutableReleasesSettingsRepositories:["GET /orgs/{org}/settings/immutable-releases/repositories"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestationRepositories:["GET /orgs/{org}/attestations/repositories"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setImmutableReleasesSettings:["PUT /orgs/{org}/settings/immutable-releases"],setImmutableReleasesSettingsRepositories:["PUT /orgs/{org}/settings/immutable-releases/repositories"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{username}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{username}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{username}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{username}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{username}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkImmutableReleases:["GET /repos/{owner}/{repo}/immutable-releases"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],customPropertiesForReposCreateOrUpdateRepositoryValues:["PATCH /repos/{owner}/{repo}/properties/values"],customPropertiesForReposGetRepositoryValues:["GET /repos/{owner}/{repo}/properties/values"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableImmutableReleases:["DELETE /repos/{owner}/{repo}/immutable-releases"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableImmutableReleases:["PUT /repos/{owner}/{repo}/immutable-releases"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var Nh=Rh;const Qh=new Map;for(const[e,t]of Object.entries(Nh)){for(const[n,o]of Object.entries(t)){const[t,i,c]=o;const[d,p]=t.split(/ /);const y=Object.assign({method:d,url:p},i);if(!Qh.has(e)){Qh.set(e,new Map)}Qh.get(e).set(n,{scope:e,methodName:n,endpointDefaults:y,decorations:c})}}const xh={has({scope:e},t){return Qh.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,n){Object.defineProperty(e.cache,t,n);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...Qh.get(e).keys()]},set(e,t,n){return e.cache[t]=n},get({octokit:e,scope:t,cache:n},o){if(n[o]){return n[o]}const i=Qh.get(t).get(o);if(!i){return void 0}const{endpointDefaults:c,decorations:d}=i;if(d){n[o]=decorate(e,t,o,c,d)}else{n[o]=e.request.defaults(c)}return n[o]}};function endpointsToMethods(e){const t={};for(const n of Qh.keys()){t[n]=new Proxy({octokit:e,scope:n,cache:{}},xh)}return t}function decorate(e,t,n,o,i){const c=e.request.defaults(o);function withDecorations(...o){let d=c.endpoint.merge(...o);if(i.mapToData){d=Object.assign({},d,{data:d[i.mapToData],[i.mapToData]:void 0});return c(d)}if(i.renamed){const[o,c]=i.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${o}.${c}()`)}if(i.deprecated){e.log.warn(i.deprecated)}if(i.renamedParameters){const d=c.endpoint.merge(...o);for(const[o,c]of Object.entries(i.renamedParameters)){if(o in d){e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${n}()". Use "${c}" instead`);if(!(c in d)){d[c]=d[o]}delete d[o]}}return c(d)}return c(...o)}return Object.assign(withDecorations,c)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=wh;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=wh;var Th="0.0.0-development";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t=("total_count"in e.data||"total_commits"in e.data)&&!("url"in e.data);if(!t)return e;const n=e.data.incomplete_results;const o=e.data.repository_selection;const i=e.data.total_count;const c=e.data.total_commits;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;delete e.data.total_commits;const d=Object.keys(e.data)[0];const p=e.data[d];e.data=p;if(typeof n!=="undefined"){e.data.incomplete_results=n}if(typeof o!=="undefined"){e.data.repository_selection=o}e.data.total_count=i;e.data.total_commits=c;return e}function iterator(e,t,n){const o=typeof t==="function"?t.endpoint(n):e.request.endpoint(t,n);const i=typeof t==="function"?t:e.request;const c=o.method;const d=o.headers;let p=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!p)return{done:true};try{const e=await i({method:c,url:p,headers:d});const t=normalizePaginatedListResponse(e);p=((t.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1];if(!p&&"total_commits"in t.data){const e=new URL(t.url);const n=e.searchParams;const o=parseInt(n.get("page")||"1",10);const i=parseInt(n.get("per_page")||"250",10);if(o*i<t.data.total_commits){n.set("page",String(o+1));p=e.toString()}}return{value:t}}catch(e){if(e.status!==409)throw e;p="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,n,o){if(typeof n==="function"){o=n;n=void 0}return gather(e,[],iterator(e,t,n)[Symbol.asyncIterator](),o)}function gather(e,t,n,o){return n.next().then((i=>{if(i.done){return t}let c=false;function done(){c=true}t=t.concat(o?o(i.value,done):i.value.data);if(c){return t}return gather(e,t,n,o)}))}var vh=Object.assign(paginate,{iterator:iterator});var Ph=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/code-security/configurations","GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/teams","GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships","GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations","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 /organizations/{org}/dependabot/repository-access","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/hosted-runners","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners","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}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/attestations/repositories","GET /orgs/{org}/attestations/{subject_digest}","GET /orgs/{org}/blocks","GET /orgs/{org}/campaigns","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/code-security/configurations","GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/metrics","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}","GET /orgs/{org}/insights/api/subject-stats","GET /orgs/{org}/insights/api/user-stats/{user_id}","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/private-registries","GET /orgs/{org}/projects","GET /orgs/{org}/projectsV2","GET /orgs/{org}/projectsV2/{project_number}/fields","GET /orgs/{org}/projectsV2/{project_number}/items","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/rulesets/{ruleset_id}/history","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/settings/immutable-releases/repositories","GET /orgs/{org}/settings/network-configurations","GET /orgs/{org}/team/{team_slug}/copilot/metrics","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/{project_id}/collaborators","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/attestations/{subject_digest}","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}/compare/{basehead}","GET /repos/{owner}/{repo}/compare/{base}...{head}","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking","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}/sub_issues","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/attestations/{subject_digest}","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}/projectsV2","GET /users/{username}/projectsV2/{project_number}/fields","GET /users/{username}/projectsV2/{project_number}/items","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return Ph.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=Th;const Dh=new Context;const kh=getApiBaseUrl();const _h={baseUrl:kh,request:{agent:getProxyAgent(kh),fetch:getProxyFetch(kh)}};const Lh=Octokit.plugin(restEndpointMethods,paginateRest).defaults(_h);function getOctokitOptions(e,t){const n=Object.assign({},t||{});const o=getAuthString(e,n);if(o){n.auth=o}return n}const Oh=new Context;function getOctokit(e,t,...n){const o=Lh.plugin(...n);return new o(getOctokitOptions(e,t))}class InvalidTokenError extends Error{}InvalidTokenError.prototype.name="InvalidTokenError";function b64DecodeUnicode(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();if(n.length<2){n="0"+n}return"%"+n})))}function base64UrlDecode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(t)}catch(e){return atob(t)}}function jwtDecode(e,t){if(typeof e!=="string"){throw new InvalidTokenError("Invalid token specified: must be a string")}t||(t={});const n=t.header===true?0:1;const o=e.split(".")[n];if(typeof o!=="string"){throw new InvalidTokenError(`Invalid token specified: missing part #${n+1}`)}let i;try{i=base64UrlDecode(o)}catch(e){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}class github_GitHub{githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN;this.octokit=getOctokit(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...Oh.repo}).then((e=>e.data))}async releases(e,t){let n;try{n=await this.releasesRaw(e,t)}catch(o){if(!this.githubToken){throw o}n=await this.releasesRaw(e,t,this.githubToken)}return n}async releasesRaw(e,t,n){const o=`https://raw.githubusercontent.com/${t.owner}/${t.repo}/${t.ref}/${t.path}`;const i=new lib_HttpClient("docker-actions-toolkit");const c=await i.get(o,n?{Authorization:`token ${n}`}:undefined);const d=await c.readBody();const p=c.message.statusCode||500;if(p>=400){throw new Error(`Failed to get ${e} releases from ${o} with status code ${p}: ${d}`)}return JSON.parse(d)}static get context(){return Oh}static get serverURL(){return process.env.GITHUB_SERVER_URL||"https://github.com"}static get apiURL(){return process.env.GITHUB_API_URL||"https://api.github.com"}static get isGHES(){const e=new URL(github_GitHub.serverURL);const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const o=t.endsWith(".GHE.COM");const i=t.endsWith(".LOCALHOST");return!n&&!o&&!i}static get repository(){return`${Oh.repo.owner}/${Oh.repo.repo}`}static get workspace(){return process.env.GITHUB_WORKSPACE||process.cwd()}static get runId(){return process.env.GITHUB_RUN_ID?+process.env.GITHUB_RUN_ID:Oh.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(e){return`${github_GitHub.serverURL}/${github_GitHub.repository}/actions/runs/${github_GitHub.runId}${e?`/attempts/${github_GitHub.runAttempt}`:""}`}static get actionsRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";return e?jwtDecode(e):undefined}static async printActionsRuntimeTokenACs(){let e;try{e=github_GitHub.actionsRuntimeToken}catch(e){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${e.message}`)}if(!e){throw new Error(`ACTIONS_RUNTIME_TOKEN not set`)}try{JSON.parse(`${e.ac}`).forEach((e=>{let t;switch(e.Permission){case 1:t="read";break;case 2:t="write";break;case 3:t="read/write";break;default:t=`unimplemented (${e.Permission})`}info(`${e.Scope}: ${t}`)}))}catch(e){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${e.message}`)}}}class context_Context{static _tmpDir=y.mkdtempSync(C.join(context_Context.ensureDirExists(process.env.RUNNER_TEMP||c.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){y.mkdirSync(e,{recursive:true});return e}static tmpDir(){return context_Context._tmpDir}static tmpName(e){return Ff.om(e)}static gitRef(){return context_Context.parseGitRef(Oh.ref,Oh.sha)}static parseGitRef(e,t){const n=!!(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF&&process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF==="true");if(t&&e&&!e.startsWith("refs/")){e=`refs/heads/${e}`}if(t&&!e.startsWith(`refs/pull/`)){e=t}else if(e.startsWith(`refs/pull/`)&&n){e=e.replace(/\/merge$/g,"/head")}return e}static gitContext(){return`${github_GitHub.serverURL}/${Oh.repo.owner}/${Oh.repo.repo}.git#${context_Context.gitRef()}`}}class Exec{static async exec(e,t,n){core_debug(`Exec.exec: ${e} ${t?.join(" ")}`);return exec_exec(e,t,n)}static async getExecOutput(e,t,n){core_debug(`Exec.getExecOutput: ${e} ${t?.join(" ")}`);return getExecOutput(e,t,n)}}class CsvError extends Error{constructor(e,t,n,...o){if(Array.isArray(t))t=t.join(" ").trim();super(t);if(Error.captureStackTrace!==undefined){Error.captureStackTrace(this,CsvError)}this.code=e;for(const e of o){for(const t in e){const o=e[t];this[t]=Buffer.isBuffer(o)?o.toString(n.encoding):o==null?o:JSON.parse(JSON.stringify(o))}}}}const is_object=function(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)};const normalize_columns_array=function(e){const t=[];for(let n=0,o=e.length;n<o;n++){const o=e[n];if(o===undefined||o===null||o===false){t[n]={disabled:true}}else if(typeof o==="string"){t[n]={name:o}}else if(is_object(o)){if(typeof o.name!=="string"){throw new CsvError("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${n}`,"when column is an object literal"])}t[n]=o}else{throw new CsvError("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(o)} at position ${n}`])}}return t};class ResizeableBuffer{constructor(e=100){this.size=e;this.length=0;this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){const t=this.length+e.length;if(t>=this.size){this.resize();if(t>=this.size){throw Error("INVALID_BUFFER_STATE")}}const n=this.buf;this.buf=Buffer.allocUnsafe(this.size);e.copy(this.buf,0);n.copy(this.buf,e.length);this.length+=e.length}else{const t=this.length++;if(t===this.size){this.resize()}const n=this.clone();this.buf[0]=e;n.copy(this.buf,1,0,t)}}append(e){const t=this.length++;if(t===this.size){this.resize()}this.buf[t]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){const e=this.length;this.size=this.size*2;const t=Buffer.allocUnsafe(this.size);this.buf.copy(t,0,0,e);this.buf=t}toString(e){if(e){return this.buf.slice(0,this.length).toString(e)}else{return Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const Fh=ResizeableBuffer;const Uh=12;const Mh=13;const Hh=10;const $h=32;const Gh=9;const init_state=function(e){return{bomSkipped:false,bufBytesStart:0,castField:e.cast_function,commenting:false,error:undefined,enabled:e.from_line===1,escaping:false,escapeIsQuote:Buffer.isBuffer(e.escape)&&Buffer.isBuffer(e.quote)&&Buffer.compare(e.escape,e.quote)===0,expectedRecordLength:Array.isArray(e.columns)?e.columns.length:undefined,field:new Fh(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(e.comment!==null?e.comment.length:0,...e.delimiter.map((e=>e.length)),e.quote!==null?e.quote.length:0),previousBuf:undefined,quoting:false,stop:false,rawBuffer:new Fh(100),record:[],recordHasError:false,record_length:0,recordDelimiterMaxLength:e.record_delimiter.length===0?0:Math.max(...e.record_delimiter.map((e=>e.length))),trimChars:[Buffer.from(" ",e.encoding)[0],Buffer.from("\t",e.encoding)[0]],wasQuoting:false,wasRowDelimiter:false,timchars:[Buffer.from(Buffer.from([Mh],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([Hh],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([Uh],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([$h],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([Gh],"utf8").toString(),e.encoding)]}};const underscore=function(e){return e.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()}))};const normalize_options=function(e){const t={};for(const n in e){t[underscore(n)]=e[n]}if(t.encoding===undefined||t.encoding===true){t.encoding="utf8"}else if(t.encoding===null||t.encoding===false){t.encoding=null}else if(typeof t.encoding!=="string"&&t.encoding!==null){throw new CsvError("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(t.encoding)}`],t)}if(t.bom===undefined||t.bom===null||t.bom===false){t.bom=false}else if(t.bom!==true){throw new CsvError("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`],t)}t.cast_function=null;if(t.cast===undefined||t.cast===null||t.cast===false||t.cast===""){t.cast=undefined}else if(typeof t.cast==="function"){t.cast_function=t.cast;t.cast=true}else if(t.cast!==true){throw new CsvError("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`],t)}if(t.cast_date===undefined||t.cast_date===null||t.cast_date===false||t.cast_date===""){t.cast_date=false}else if(t.cast_date===true){t.cast_date=function(e){const t=Date.parse(e);return!isNaN(t)?new Date(t):e}}else if(typeof t.cast_date!=="function"){throw new CsvError("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`],t)}t.cast_first_line_to_header=undefined;if(t.columns===true){t.cast_first_line_to_header=undefined}else if(typeof t.columns==="function"){t.cast_first_line_to_header=t.columns;t.columns=true}else if(Array.isArray(t.columns)){t.columns=normalize_columns_array(t.columns)}else if(t.columns===undefined||t.columns===null||t.columns===false){t.columns=false}else{throw new CsvError("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(t.columns)}`],t)}if(t.group_columns_by_name===undefined||t.group_columns_by_name===null||t.group_columns_by_name===false){t.group_columns_by_name=false}else if(t.group_columns_by_name!==true){throw new CsvError("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(t.group_columns_by_name)}`],t)}else if(t.columns===false){throw new CsvError("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],t)}if(t.comment===undefined||t.comment===null||t.comment===false||t.comment===""){t.comment=null}else{if(typeof t.comment==="string"){t.comment=Buffer.from(t.comment,t.encoding)}if(!Buffer.isBuffer(t.comment)){throw new CsvError("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`],t)}}if(t.comment_no_infix===undefined||t.comment_no_infix===null||t.comment_no_infix===false){t.comment_no_infix=false}else if(t.comment_no_infix!==true){throw new CsvError("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t)}const n=JSON.stringify(t.delimiter);if(!Array.isArray(t.delimiter))t.delimiter=[t.delimiter];if(t.delimiter.length===0){throw new CsvError("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t)}t.delimiter=t.delimiter.map((function(e){if(e===undefined||e===null||e===false){return Buffer.from(",",t.encoding)}if(typeof e==="string"){e=Buffer.from(e,t.encoding)}if(!Buffer.isBuffer(e)||e.length===0){throw new CsvError("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t)}return e}));if(t.escape===undefined||t.escape===true){t.escape=Buffer.from('"',t.encoding)}else if(typeof t.escape==="string"){t.escape=Buffer.from(t.escape,t.encoding)}else if(t.escape===null||t.escape===false){t.escape=null}if(t.escape!==null){if(!Buffer.isBuffer(t.escape)){throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`)}}if(t.from===undefined||t.from===null){t.from=1}else{if(typeof t.from==="string"&&/\d+/.test(t.from)){t.from=parseInt(t.from)}if(Number.isInteger(t.from)){if(t.from<0){throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}}else{throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`)}}if(t.from_line===undefined||t.from_line===null){t.from_line=1}else{if(typeof t.from_line==="string"&&/\d+/.test(t.from_line)){t.from_line=parseInt(t.from_line)}if(Number.isInteger(t.from_line)){if(t.from_line<=0){throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}}else{throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`)}}if(t.ignore_last_delimiters===undefined||t.ignore_last_delimiters===null){t.ignore_last_delimiters=false}else if(typeof t.ignore_last_delimiters==="number"){t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters);if(t.ignore_last_delimiters===0){t.ignore_last_delimiters=false}}else if(typeof t.ignore_last_delimiters!=="boolean"){throw new CsvError("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(t.ignore_last_delimiters)}`],t)}if(t.ignore_last_delimiters===true&&t.columns===false){throw new CsvError("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t)}if(t.info===undefined||t.info===null||t.info===false){t.info=false}else if(t.info!==true){throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`)}if(t.max_record_size===undefined||t.max_record_size===null||t.max_record_size===false){t.max_record_size=0}else if(Number.isInteger(t.max_record_size)&&t.max_record_size>=0){}else if(typeof t.max_record_size==="string"&&/\d+/.test(t.max_record_size)){t.max_record_size=parseInt(t.max_record_size)}else{throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`)}if(t.objname===undefined||t.objname===null||t.objname===false){t.objname=undefined}else if(Buffer.isBuffer(t.objname)){if(t.objname.length===0){throw new Error(`Invalid Option: objname must be a non empty buffer`)}if(t.encoding===null){}else{t.objname=t.objname.toString(t.encoding)}}else if(typeof t.objname==="string"){if(t.objname.length===0){throw new Error(`Invalid Option: objname must be a non empty string`)}}else if(typeof t.objname==="number"){}else{throw new Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`)}if(t.objname!==undefined){if(typeof t.objname==="number"){if(t.columns!==false){throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}}else{if(t.columns===false){throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}}}if(t.on_record===undefined||t.on_record===null){t.on_record=undefined}else if(typeof t.on_record!=="function"){throw new CsvError("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`],t)}if(t.on_skip!==undefined&&t.on_skip!==null&&typeof t.on_skip!=="function"){throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(t.on_skip)}`)}if(t.quote===null||t.quote===false||t.quote===""){t.quote=null}else{if(t.quote===undefined||t.quote===true){t.quote=Buffer.from('"',t.encoding)}else if(typeof t.quote==="string"){t.quote=Buffer.from(t.quote,t.encoding)}if(!Buffer.isBuffer(t.quote)){throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`)}}if(t.raw===undefined||t.raw===null||t.raw===false){t.raw=false}else if(t.raw!==true){throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`)}if(t.record_delimiter===undefined){t.record_delimiter=[]}else if(typeof t.record_delimiter==="string"||Buffer.isBuffer(t.record_delimiter)){if(t.record_delimiter.length===0){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t)}t.record_delimiter=[t.record_delimiter]}else if(!Array.isArray(t.record_delimiter)){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t)}t.record_delimiter=t.record_delimiter.map((function(e,n){if(typeof e!=="string"&&!Buffer.isBuffer(e)){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t)}else if(e.length===0){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t)}if(typeof e==="string"){e=Buffer.from(e,t.encoding)}return e}));if(typeof t.relax_column_count==="boolean"){}else if(t.relax_column_count===undefined||t.relax_column_count===null){t.relax_column_count=false}else{throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`)}if(typeof t.relax_column_count_less==="boolean"){}else if(t.relax_column_count_less===undefined||t.relax_column_count_less===null){t.relax_column_count_less=false}else{throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`)}if(typeof t.relax_column_count_more==="boolean"){}else if(t.relax_column_count_more===undefined||t.relax_column_count_more===null){t.relax_column_count_more=false}else{throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`)}if(typeof t.relax_quotes==="boolean"){}else if(t.relax_quotes===undefined||t.relax_quotes===null){t.relax_quotes=false}else{throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(t.relax_quotes)}`)}if(typeof t.skip_empty_lines==="boolean"){}else if(t.skip_empty_lines===undefined||t.skip_empty_lines===null){t.skip_empty_lines=false}else{throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`)}if(typeof t.skip_records_with_empty_values==="boolean"){}else if(t.skip_records_with_empty_values===undefined||t.skip_records_with_empty_values===null){t.skip_records_with_empty_values=false}else{throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_records_with_empty_values)}`)}if(typeof t.skip_records_with_error==="boolean"){}else if(t.skip_records_with_error===undefined||t.skip_records_with_error===null){t.skip_records_with_error=false}else{throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(t.skip_records_with_error)}`)}if(t.rtrim===undefined||t.rtrim===null||t.rtrim===false){t.rtrim=false}else if(t.rtrim!==true){throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`)}if(t.ltrim===undefined||t.ltrim===null||t.ltrim===false){t.ltrim=false}else if(t.ltrim!==true){throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`)}if(t.trim===undefined||t.trim===null||t.trim===false){t.trim=false}else if(t.trim!==true){throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`)}if(t.trim===true&&e.ltrim!==false){t.ltrim=true}else if(t.ltrim!==true){t.ltrim=false}if(t.trim===true&&e.rtrim!==false){t.rtrim=true}else if(t.rtrim!==true){t.rtrim=false}if(t.to===undefined||t.to===null){t.to=-1}else if(t.to!==-1){if(typeof t.to==="string"&&/\d+/.test(t.to)){t.to=parseInt(t.to)}if(Number.isInteger(t.to)){if(t.to<=0){throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}}else{throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`)}}if(t.to_line===undefined||t.to_line===null){t.to_line=-1}else if(t.to_line!==-1){if(typeof t.to_line==="string"&&/\d+/.test(t.to_line)){t.to_line=parseInt(t.to_line)}if(Number.isInteger(t.to_line)){if(t.to_line<=0){throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}}else{throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`)}}return t};const isRecordEmpty=function(e){return e.every((e=>e==null||e.toString&&e.toString().trim()===""))};const qh=13;const zh=10;const Vh={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])};const transform=function(e={}){const t={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0};const n=normalize_options(e);return{info:t,original_options:e,options:n,state:init_state(n),__needMoreData:function(e,t,n){if(n)return false;const{encoding:o,escape:i,quote:c}=this.options;const{quoting:d,needMoreDataSize:p,recordDelimiterMaxLength:y}=this.state;const C=t-e-1;const Q=Math.max(p,y===0?Buffer.from("\r\n",o).length:y,d?(i===null?0:i.length)+c.length:0,d?c.length+y:0);return C<Q},parse:function(e,t,n,o){const{bom:i,comment_no_infix:c,encoding:d,from_line:p,ltrim:y,max_record_size:C,raw:Q,relax_quotes:v,rtrim:D,skip_empty_lines:k,to:$,to_line:V}=this.options;let{comment:ee,escape:te,quote:re,record_delimiter:ne}=this.options;const{bomSkipped:se,previousBuf:oe,rawBuffer:ie,escapeIsQuote:ae}=this.state;let ce;if(oe===undefined){if(e===undefined){o();return}else{ce=e}}else if(oe!==undefined&&e===undefined){ce=oe}else{ce=Buffer.concat([oe,e])}if(se===false){if(i===false){this.state.bomSkipped=true}else if(ce.length<3){if(t===false){this.state.previousBuf=ce;return}}else{for(const e in Vh){if(Vh[e].compare(ce,0,Vh[e].length)===0){const t=Vh[e].length;this.state.bufBytesStart+=t;ce=ce.slice(t);const n=normalize_options({...this.original_options,encoding:e});for(const e in n){this.options[e]=n[e]}({comment:ee,escape:te,quote:re}=this.options);break}}this.state.bomSkipped=true}}const le=ce.length;let ue;for(ue=0;ue<le;ue++){if(this.__needMoreData(ue,le,t)){break}if(this.state.wasRowDelimiter===true){this.info.lines++;this.state.wasRowDelimiter=false}if(V!==-1&&this.info.lines>V){this.state.stop=true;o();return}if(this.state.quoting===false&&ne.length===0){const e=this.__autoDiscoverRecordDelimiter(ce,ue);if(e){ne=this.options.record_delimiter}}const e=ce[ue];if(Q===true){ie.append(e)}if((e===qh||e===zh)&&this.state.wasRowDelimiter===false){this.state.wasRowDelimiter=true}if(this.state.escaping===true){this.state.escaping=false}else{if(te!==null&&this.state.quoting===true&&this.__isEscape(ce,ue,e)&&ue+te.length<le){if(ae){if(this.__isQuote(ce,ue+te.length)){this.state.escaping=true;ue+=te.length-1;continue}}else{this.state.escaping=true;ue+=te.length-1;continue}}if(this.state.commenting===false&&this.__isQuote(ce,ue)){if(this.state.quoting===true){const t=ce[ue+re.length];const n=D&&this.__isCharTrimable(ce,ue+re.length);const o=ee!==null&&this.__compareBytes(ee,ce,ue+re.length,t);const i=this.__isDelimiter(ce,ue+re.length,t);const c=ne.length===0?this.__autoDiscoverRecordDelimiter(ce,ue+re.length):this.__isRecordDelimiter(t,ce,ue+re.length);if(te!==null&&this.__isEscape(ce,ue,e)&&this.__isQuote(ce,ue+te.length)){ue+=te.length-1}else if(!t||i||c||o||n){this.state.quoting=false;this.state.wasQuoting=true;ue+=re.length-1;continue}else if(v===false){const e=this.__error(new CsvError("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(e!==undefined)return e}else{this.state.quoting=false;this.state.wasQuoting=true;this.state.field.prepend(re);ue+=re.length-1}}else{if(this.state.field.length!==0){if(v===false){const e=this.__infoField();const t=Object.keys(Vh).map((e=>Vh[e].equals(this.state.field.toString())?e:false)).filter(Boolean)[0];const n=this.__error(new CsvError("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(e.column)} at line ${e.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,t?`(${t} bom)`:undefined],this.options,e,{field:this.state.field}));if(n!==undefined)return n}}else{this.state.quoting=true;ue+=re.length-1;continue}}}if(this.state.quoting===false){const t=this.__isRecordDelimiter(e,ce,ue);if(t!==0){const e=this.state.commenting&&this.state.wasQuoting===false&&this.state.record.length===0&&this.state.field.length===0;if(e){this.info.comment_lines++}else{if(this.state.enabled===false&&this.info.lines+(this.state.wasRowDelimiter===true?1:0)>=p){this.state.enabled=true;this.__resetField();this.__resetRecord();ue+=t-1;continue}if(k===true&&this.state.wasQuoting===false&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++;ue+=t-1;continue}this.info.bytes=this.state.bufBytesStart+ue;const e=this.__onField();if(e!==undefined)return e;this.info.bytes=this.state.bufBytesStart+ue+t;const i=this.__onRecord(n);if(i!==undefined)return i;if($!==-1&&this.info.records>=$){this.state.stop=true;o();return}}this.state.commenting=false;ue+=t-1;continue}if(this.state.commenting){continue}if(ee!==null&&(c===false||this.state.record.length===0&&this.state.field.length===0)){const t=this.__compareBytes(ee,ce,ue,e);if(t!==0){this.state.commenting=true;continue}}const i=this.__isDelimiter(ce,ue,e);if(i!==0){this.info.bytes=this.state.bufBytesStart+ue;const e=this.__onField();if(e!==undefined)return e;ue+=i-1;continue}}}if(this.state.commenting===false){if(C!==0&&this.state.record_length+this.state.field.length>C){return this.__error(new CsvError("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${C}`,`at line ${this.info.lines}`],this.options,this.__infoField()))}}const i=y===false||this.state.quoting===true||this.state.field.length!==0||!this.__isCharTrimable(ce,ue);const se=D===false||this.state.wasQuoting===false;if(i===true&&se===true){this.state.field.append(e)}else if(D===true&&!this.__isCharTrimable(ce,ue)){return this.__error(new CsvError("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()))}else{if(i===false){ue+=this.__isCharTrimable(ce,ue)-1}continue}}if(t===true){if(this.state.quoting===true){const e=this.__error(new CsvError("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==undefined)return e}else{if(this.state.wasQuoting===true||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+ue;const e=this.__onField();if(e!==undefined)return e;const t=this.__onRecord(n);if(t!==undefined)return t}else if(this.state.wasRowDelimiter===true){this.info.empty_lines++}else if(this.state.commenting===true){this.info.comment_lines++}}}else{this.state.bufBytesStart+=ue;this.state.previousBuf=ce.slice(ue)}if(this.state.wasRowDelimiter===true){this.info.lines++;this.state.wasRowDelimiter=false}},__onRecord:function(e){const{columns:t,group_columns_by_name:n,encoding:o,info:i,from:c,relax_column_count:d,relax_column_count_less:p,relax_column_count_more:y,raw:C,skip_records_with_empty_values:Q}=this.options;const{enabled:v,record:D}=this.state;if(v===false){return this.__resetRecord()}const k=D.length;if(t===true){if(Q===true&&isRecordEmpty(D)){this.__resetRecord();return}return this.__firstLineToColumns(D)}if(t===false&&this.info.records===0){this.state.expectedRecordLength=k}if(k!==this.state.expectedRecordLength){const e=t===false?new CsvError("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${k} on line ${this.info.lines}`],this.options,this.__infoField(),{record:D}):new CsvError("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${t.length},`,`got ${k} on line ${this.info.lines}`],this.options,this.__infoField(),{record:D});if(d===true||p===true&&k<this.state.expectedRecordLength||y===true&&k>this.state.expectedRecordLength){this.info.invalid_field_length++;this.state.error=e}else{const t=this.__error(e);if(t)return t}}if(Q===true&&isRecordEmpty(D)){this.__resetRecord();return}if(this.state.recordHasError===true){this.__resetRecord();this.state.recordHasError=false;return}this.info.records++;if(c===1||this.info.records>=c){const{objname:c}=this.options;if(t!==false){const d={};for(let e=0,o=D.length;e<o;e++){if(t[e]===undefined||t[e].disabled)continue;if(n===true&&d[t[e].name]!==undefined){if(Array.isArray(d[t[e].name])){d[t[e].name]=d[t[e].name].concat(D[e])}else{d[t[e].name]=[d[t[e].name],D[e]]}}else{d[t[e].name]=D[e]}}if(C===true||i===true){const t=Object.assign({record:d},C===true?{raw:this.state.rawBuffer.toString(o)}:{},i===true?{info:this.__infoRecord()}:{});const n=this.__push(c===undefined?t:[d[c],t],e);if(n){return n}}else{const t=this.__push(c===undefined?d:[d[c],d],e);if(t){return t}}}else{if(C===true||i===true){const t=Object.assign({record:D},C===true?{raw:this.state.rawBuffer.toString(o)}:{},i===true?{info:this.__infoRecord()}:{});const n=this.__push(c===undefined?t:[D[c],t],e);if(n){return n}}else{const t=this.__push(c===undefined?D:[D[c],D],e);if(t){return t}}}}this.__resetRecord()},__firstLineToColumns:function(e){const{firstLineToHeaders:t}=this.state;try{const n=t===undefined?e:t.call(null,e);if(!Array.isArray(n)){return this.__error(new CsvError("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(n)}`],this.options,this.__infoField(),{headers:n}))}const o=normalize_columns_array(n);this.state.expectedRecordLength=o.length;this.options.columns=o;this.__resetRecord();return}catch(e){return e}},__resetRecord:function(){if(this.options.raw===true){this.state.rawBuffer.reset()}this.state.error=undefined;this.state.record=[];this.state.record_length=0},__onField:function(){const{cast:e,encoding:t,rtrim:n,max_record_size:o}=this.options;const{enabled:i,wasQuoting:c}=this.state;if(i===false){return this.__resetField()}let d=this.state.field.toString(t);if(n===true&&c===false){d=d.trimRight()}if(e===true){const[e,t]=this.__cast(d);if(e!==undefined)return e;d=t}this.state.record.push(d);if(o!==0&&typeof d==="string"){this.state.record_length+=d.length}this.__resetField()},__resetField:function(){this.state.field.reset();this.state.wasQuoting=false},__push:function(e,t){const{on_record:n}=this.options;if(n!==undefined){const t=this.__infoRecord();try{e=n.call(null,e,t)}catch(e){return e}if(e===undefined||e===null){return}}t(e)},__cast:function(e){const{columns:t,relax_column_count:n}=this.options;const o=Array.isArray(t);if(o===true&&n&&this.options.columns.length<=this.state.record.length){return[undefined,undefined]}if(this.state.castField!==null){try{const t=this.__infoField();return[undefined,this.state.castField.call(null,e,t)]}catch(e){return[e]}}if(this.__isFloat(e)){return[undefined,parseFloat(e)]}else if(this.options.cast_date!==false){const t=this.__infoField();return[undefined,this.options.cast_date.call(null,e,t)]}return[undefined,e]},__isCharTrimable:function(e,t){const isTrim=(e,t)=>{const{timchars:n}=this.state;e:for(let o=0;o<n.length;o++){const i=n[o];for(let n=0;n<i.length;n++){if(i[n]!==e[t+n])continue e}return i.length}return 0};return isTrim(e,t)},__isFloat:function(e){return e-parseFloat(e)+1>=0},__compareBytes:function(e,t,n,o){if(e[0]!==o)return 0;const i=e.length;for(let o=1;o<i;o++){if(e[o]!==t[n+o])return 0}return i},__isDelimiter:function(e,t,n){const{delimiter:o,ignore_last_delimiters:i}=this.options;if(i===true&&this.state.record.length===this.options.columns.length-1){return 0}else if(i!==false&&typeof i==="number"&&this.state.record.length===i-1){return 0}e:for(let i=0;i<o.length;i++){const c=o[i];if(c[0]===n){for(let n=1;n<c.length;n++){if(c[n]!==e[t+n])continue e}return c.length}}return 0},__isRecordDelimiter:function(e,t,n){const{record_delimiter:o}=this.options;const i=o.length;e:for(let c=0;c<i;c++){const i=o[c];const d=i.length;if(i[0]!==e){continue}for(let e=1;e<d;e++){if(i[e]!==t[n+e]){continue e}}return i.length}return 0},__isEscape:function(e,t,n){const{escape:o}=this.options;if(o===null)return false;const i=o.length;if(o[0]===n){for(let n=0;n<i;n++){if(o[n]!==e[t+n]){return false}}return true}return false},__isQuote:function(e,t){const{quote:n}=this.options;if(n===null)return false;const o=n.length;for(let i=0;i<o;i++){if(n[i]!==e[t+i]){return false}}return true},__autoDiscoverRecordDelimiter:function(e,t){const{encoding:n}=this.options;const o=[Buffer.from("\r\n",n),Buffer.from("\n",n),Buffer.from("\r",n)];e:for(let n=0;n<o.length;n++){const i=o[n].length;for(let c=0;c<i;c++){if(o[n][c]!==e[t+c]){continue e}}this.options.record_delimiter.push(o[n]);this.state.recordDelimiterMaxLength=o[n].length;return o[n].length}return 0},__error:function(e){const{encoding:t,raw:n,skip_records_with_error:o}=this.options;const i=typeof e==="string"?new Error(e):e;if(o){this.state.recordHasError=true;if(this.options.on_skip!==undefined){try{this.options.on_skip(i,n?this.state.rawBuffer.toString(t):undefined)}catch(i){return i}}return undefined}else{return i}},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){const{columns:e,raw:t,encoding:n}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:e===true,index:this.state.record.length,raw:t?this.state.rawBuffer.toString(n):undefined}},__infoField:function(){const{columns:e}=this.options;const t=Array.isArray(e);return{...this.__infoRecord(),column:t===true?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};const sync_parse=function(e,t={}){if(typeof e==="string"){e=Buffer.from(e)}const n=t&&t.objname?{}:[];const o=transform(t);const push=e=>{if(o.options.objname===undefined)n.push(e);else{n[e[0]]=e[1]}};const close=()=>{};const i=o.parse(e,true,push,close);if(i!==undefined)throw i;return n};class Util{static getInputList(e,t){return this.getList(getInput(e),t)}static getList(e,t){const n=[];if(e==""){return n}const o=sync_parse(e,{columns:false,relaxQuotes:true,comment:t?.comment,relaxColumnCount:true,skipEmptyLines:true,quote:t?.quote});for(const e of o){if(e.length==1){if(t?.ignoreComma){n.push(e[0])}else{n.push(...e[0].split(","))}}else if(!t?.ignoreComma){n.push(...e)}else{n.push(e.join(","))}}return n.filter((e=>e)).map((e=>e.trim()))}static getInputNumber(e){const t=getInput(e);if(!t){return undefined}return parseInt(t)}static async asyncForEach(e,t){for(let n=0;n<e.length;n++){await t(e[n],n,e)}}static isValidURL(e){let t;try{t=new URL(e)}catch{return false}return t.protocol==="http:"||t.protocol==="https:"}static isValidRef(e){if(Util.isValidURL(e)){return true}for(const t of["git://","github.com/","git@"]){if(e.startsWith(t)){return true}}return false}static async powershellCommand(e,t){const n=await which("powershell",true);const o=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=[];if(t){for(const e in t){i.push(`-${e} '${t[e].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`)}}return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${o}' ${i.join(" ")}`]}}static isDirectory(e){try{return y.lstatSync(e).isDirectory()}catch{}return false}static trimPrefix(e,t){if(!e||!t){return e}const n=e.indexOf(t);if(n!==0){return e}return e.substring(t.length)}static trimSuffix(e,t){if(!e||!t){return e}const n=e.lastIndexOf(t);if(n===-1||n+t.length!==e.length){return e}return e.substring(0,n)}static sleep(e){return new Promise((t=>setTimeout(t,e*1e3)))}static hash(e){return p.createHash("sha256").update(e).digest("hex")}static parseBool(e){switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return true;case"0":case"f":case"F":case"false":case"FALSE":case"False":return false;default:throw new Error(`parseBool syntax error: ${e}`)}}static formatFileSize(e){if(e===0)return"0 Bytes";const t=1024;const n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];const o=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){const t=p.randomBytes(Math.ceil(e/2));return t.toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map((e=>`&#x${e.charCodeAt(0).toString(16)};`)).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,t){const n=C.resolve(e);const o=C.resolve(t);return o.startsWith(n.endsWith(C.sep)?n:`${n}${C.sep}`)}static formatDuration(e){if(e===0)return"0s";const t=Math.floor(e/1e9);const n=Math.floor(t/3600);const o=Math.floor(t%3600/60);const i=t%60;const c=[];if(n)c.push(`${n}h`);if(o)c.push(`${o}m`);if(i||c.length===0)c.push(`${i}s`);return c.join("")}}class Docker{static get configDir(){return process.env.DOCKER_CONFIG||C.join(c.homedir(),".docker")}static configFile(){const e=C.join(Docker.configDir,"config.json");if(!y.existsSync(e)){return undefined}return JSON.parse(y.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await which("docker",true).then((e=>{core_debug(`Docker.isAvailable ok: ${e}`);return true})).catch((e=>{core_debug(`Docker.isAvailable error: ${e}`);return false}))}static async isDaemonRunning(){try{await Docker.getExecOutput([`version`],{silent:true});return true}catch{return false}}static async exec(e,t){return Exec.exec("docker",e,Docker.execOptions(t))}static async getExecOutput(e,t){return Exec.getExecOutput("docker",e,Docker.execOptions(t))}static execOptions(e){if(!e){e={}}if(!e.env){e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"})}else{e.env.DOCKER_CONTENT_TRUST="false"}return e}static async context(e){const t=["context","inspect","--format","{{.Name}}"];if(e){t.push(e)}return await Docker.getExecOutput(t,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr)}return e.stdout.trim()}))}static async contextInspect(e){const t=["context","inspect","--format=json"];if(e){t.push(e)}return await Docker.getExecOutput(t,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}return JSON.parse(e.stdout.trim())[0]}))}static async printVersion(){await Docker.exec(["version"])}static async printInfo(){await Docker.exec(["info"])}static parseRepoTag(e){let t;const n=e.indexOf("@");const o=e.lastIndexOf(":");if(n>=0){t=n}else if(o>=0){t=o}else{return{repository:e,tag:"latest"}}const i=e.slice(t+1);if(i.indexOf("/")===-1){return{repository:e.slice(0,t),tag:i}}return{repository:e,tag:"latest"}}static async pull(e,t){const n=Docker.parseRepoTag(e);const o=n.repository.replace(/[^a-zA-Z0-9.]+/g,"--");const i=n.tag.replace(/[^a-zA-Z0-9.]+/g,"--");const c=new Cache({htcName:o,htcVersion:i,baseCacheDir:C.join(Docker.configDir,".cache","images",o),cacheFile:"image.tar"});let d;if(t){d=await c.find();if(d){info(`Image found from cache in ${d}`);await Docker.getExecOutput(["load","-i",d],{ignoreReturnCode:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){warning(`Failed to load image from cache: ${e.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`)}}))}}let p=true;await Docker.getExecOutput(["pull",e],{ignoreReturnCode:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){p=false;const t=e.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error";if(d){warning(`Failed to pull image, using one from cache: ${t}`)}else{throw new Error(t)}}}));if(t&&p){const t=C.join(context_Context.tmpDir(),`${Util.hash(e)}.tar`);await Docker.getExecOutput(["save","-o",t,e],{ignoreReturnCode:true}).then((async e=>{if(e.stderr.length>0&&e.exitCode!=0){warning(`Failed to save image: ${e.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`)}else{const e=await c.save(t);info(`Image cached to ${e}`)}}))}}}class Buildx{_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone;this._version="";this._versionOnce=false}static get configDir(){return process.env.BUILDX_CONFIG||C.join(Docker.configDir,"buildx")}static get refsDir(){return C.join(Buildx.configDir,"refs")}static get refsGroupDir(){return C.join(Buildx.refsDir,"__group__")}static get certsDir(){return C.join(Buildx.configDir,"certs")}async isStandalone(){const e=this._standalone??!await Docker.isAvailable();core_debug(`Buildx.isStandalone: ${e}`);return e}async getCommand(e){const t=await this.isStandalone();return{command:t?"buildx":"docker",args:t?e:["buildx",...e]}}async isAvailable(){const e=await this.getCommand([]);const t=await Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){core_debug(`Buildx.isAvailable cmd err: ${e.stderr.trim()}`);return false}return e.exitCode==0})).catch((e=>{core_debug(`Buildx.isAvailable error: ${e}`);return false}));core_debug(`Buildx.isAvailable: ${t}`);return t}async version(){if(this._versionOnce){return this._version}this._versionOnce=true;const e=await this.getCommand(["version"]);this._version=await Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}return Buildx.parseVersion(e.stdout.trim())}));return this._version}async printVersion(){const e=await this.getCommand(["version"]);await Exec.exec(e.command,e.args,{failOnStdErr:false})}static parseVersion(e){const t=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!t){throw new Error(`Cannot parse buildx version`)}return t[1]}async versionSatisfies(e,t){const n=t??await this.version();if(!n){core_debug(`Buildx.versionSatisfies false: undefined version`);return false}const o=Of.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;core_debug(`Buildx.versionSatisfies ${n} statisfies ${e}: ${o}`);return o}static resolveCertsDriverOpts(e,t,n){let o;try{o=new URL(t)}catch{return[]}if(o.protocol!="tcp:"){return[]}const i=[];if(Object.keys(n).length==0){return i}let c=o.hostname;if(o.port.length>0){c+=`-${o.port}`}if(n.cacert!==undefined){const e=C.join(Buildx.certsDir,`cacert_${c}.pem`);y.writeFileSync(e,n.cacert);i.push(`cacert=${e}`)}if(n.cert!==undefined){const e=C.join(Buildx.certsDir,`cert_${c}.pem`);y.writeFileSync(e,n.cert);i.push(`cert=${e}`)}if(n.key!==undefined){const e=C.join(Buildx.certsDir,`key_${c}.pem`);y.writeFileSync(e,n.key);i.push(`key=${e}`)}if(e!="remote"){return[]}return i}static localState(e,t){const[n,o,i]=e.split("/");if(!n||!o||!i){throw new Error(`Invalid build reference: ${e}`)}const c=C.join(t||Buildx.refsDir,n,o,i);if(!y.existsSync(c)){throw new Error(`Local state not found in ${c}`)}return Buildx.fixLocalState(JSON.parse(y.readFileSync(c,"utf8")))}static fixLocalState(e){const fnTrimToValidContext=function(e){const t=e.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(t&&t.length==3){const e=t[1];let n=t[2];if(n.startsWith("https:/")&&!n.startsWith("https://")){n=n.replace("https:/","https://")}if(n.startsWith("http:/")&&!n.startsWith("http://")){n=n.replace("http:/","http://")}if(n.startsWith("ssh:/")&&!n.startsWith("ssh://")){n=n.replace("ssh:/","ssh://")}if(n.startsWith("git:/")&&!n.startsWith("git://")){n=n.replace("git:/","git://")}return[n,e,true]}return[e,"",false]};const[t,n,o]=fnTrimToValidContext(e.LocalPath);if(o){e.LocalPath=t;if(e.DockerfilePath.indexOf(n)===0){e.DockerfilePath=e.DockerfilePath.substring(n.length)}}e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath;e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath;return e}static refs(e,t={}){const{dir:n,builderName:o,nodeName:i,since:c}=e;let d=C.resolve(n);if(e.builderName){d=C.join(d,e.builderName)}if(e.nodeName){d=C.join(d,e.nodeName)}if(!y.existsSync(d)){return t}const p=y.readdirSync(d);for(const n of p){const p=C.join(d,n);const Q=y.statSync(p);if(Q.isDirectory()){const c={...e};if(!o){if(n==="__group__"){continue}c.builderName=n}else if(!i){c.nodeName=n}Buildx.refs(c,t)}else{if(c&&Q.mtime<c){continue}const e=Buildx.fixLocalState(JSON.parse(y.readFileSync(p,"utf8")));const d=`${o}/${i}/${n}`;t[d]=e}}return t}static async convertWarningsToGitHubAnnotations(e,t,n){if(e.length===0){return}const fnGitURL=function(e){try{return Git.parseURL(e)}catch{}};const fnLocalState=function(e){try{return Buildx.localState(e,n)}catch(t){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): local state not found: ${t.message}`)}};const o=[];for(const e of t){const t=fnLocalState(e);if(!t){continue}if(t.DockerfilePath=="-"){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): skipping stdin Dockerfile`);continue}else if(t.DockerfilePath==""){t.DockerfilePath="Dockerfile"}const n=fnGitURL(t.LocalPath);if(n){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): git context detected: ${t.LocalPath}`);const i=n.host.replace(/:.*/,"");if(i!=="github.com"&&!i.endsWith(".ghe.com")){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): not a GitHub repo: ${i}`);continue}const c=n.path.replace(/^\//,"").replace(/\.git$/,"");if(c!==github_GitHub.repository){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): not same GitHub repo: ${c} != ${github_GitHub.repository}`);continue}o.push({path:t.DockerfilePath,remote:true});continue}if(!y.existsSync(t.DockerfilePath)){core_debug(`Buildx.convertWarningsToGitHubAnnotations: Dockerfile not found from localstate ref ${e}: ${t.DockerfilePath}`);continue}const i=github_GitHub.workspace;if(Util.isPathRelativeTo(i,t.DockerfilePath)){o.push({path:C.relative(i,t.DockerfilePath),content:Buffer.from(y.readFileSync(t.DockerfilePath,{encoding:"utf-8"}),"utf-8").toString("base64")})}else{core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping Dockerfile outside of workspace: ${t.DockerfilePath}`)}}if(o.length===0){core_debug(`Buildx.convertWarningsToGitHubAnnotations: no Dockerfiles found`);return}core_debug(`Buildx.convertWarningsToGitHubAnnotations: found ${o.length} Dockerfiles: ${JSON.stringify(o,null,2)}`);const i=[];for(const t of e){if(!t.detail||!t.short){core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without detail or short`);continue}const e=t.sourceInfo?.filename;const n=t.sourceInfo?.data;if(!e||!n){core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without source info filename or data`);continue}const c=t.detail.map((e=>atob(e))).join(" ");let d=atob(t.short).replace(/\s\(line \d+\)$/,"");if(t.url){d+=`\nMore info: ${t.url}`}const p=t.range&&t.range.length>0?t.range[0]?.start.line:undefined;let y=false;for(const t of o){if(t.remote||t.path.endsWith(e)&&t.content===n){i.push({title:c,message:d,file:t.path,startLine:p});y=true;break}}if(!y){core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${e}: ${c}`)}}return i}}function getInputs(){return{registry:getInput("registry"),username:getInput("username"),password:getInput("password"),scope:getInput("scope"),ecr:getInput("ecr"),logout:getBooleanInput("logout"),registryAuth:getInput("registry-auth")}}function getAuthList(e){if(e.registryAuth&&(e.registry||e.username||e.password||e.scope||e.ecr)){throw new Error("Cannot use registry-auth with other inputs")}let t=[];if(!e.registryAuth){t.push({registry:e.registry||"docker.io",username:e.username,password:e.password,scope:e.scope,ecr:e.ecr||"auto",configDir:scopeToConfigDir(e.registry,e.scope)})}else{t=Qf(e.registryAuth).map((e=>{core_setSecret(e.password);return{registry:e.registry||"docker.io",username:e.username,password:e.password,scope:e.scope,ecr:e.ecr||"auto",configDir:scopeToConfigDir(e.registry||"docker.io",e.scope)}}))}if(t.length==0){throw new Error("No registry to login")}return t}function scopeToConfigDir(e,t){if(scopeDisabled()||!t||t===""){return""}let n=Q().join(Buildx.configDir,"config",e==="docker.io"?"registry-1.docker.io":e);if(t.startsWith("@")){n+=t}else{n=Q().join(n,t)}return n}function scopeDisabled(){if(process.env.DOCKER_LOGIN_SCOPE_DISABLED){return Util.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED)}return false}var jh=__nccwpck_require__(8249);var Yh=__nccwpck_require__(9821);var Jh=__nccwpck_require__(1279);const Wh=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/;const Kh=/public\.ecr\.aws|ecr-public\.aws\.com/;const isECR=e=>Wh.test(e)||isPubECR(e);const isPubECR=e=>Kh.test(e);const getRegion=e=>{if(isPubECR(e)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const t=e.match(Wh);if(!t){return""}return t[4]};const getAccountIDs=e=>{if(isPubECR(e)){return[]}const t=e.match(Wh);if(!t){return[]}const n=[t[2]];if(process.env.AWS_ACCOUNT_IDS){n.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return n.filter(((e,t)=>n.indexOf(e)===t))};const getRegistriesData=async(e,t,n)=>{const o=getRegion(e);const i=getAccountIDs(e);const c={};if(i.length>0){core_debug(`Requesting AWS ECR auth token for ${i.join(", ")}`);c["registryIds"]=i}let d;const p=process.env.http_proxy||process.env.HTTP_PROXY||"";if(p){core_debug(`Using http proxy ${p}`);d=new Jr.HttpProxyAgent(p)}let y;const C=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(C){core_debug(`Using https proxy ${C}`);y=new Yr.HttpsProxyAgent(C)}const Q=t&&n?{accessKeyId:t,secretAccessKey:n}:undefined;if(isPubECR(e)){info(`AWS Public ECR detected with ${o} region`);const e=new Yh.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:Q,region:o,requestHandler:new Jh.NodeHttpHandler({httpAgent:d,httpsAgent:y})});const t=await e.getAuthorizationToken(c);if(!t.authorizationData||!t.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const n=Buffer.from(t.authorizationData.authorizationToken,"base64").toString("utf-8");const i=n.split(":",2);core_setSecret(i[0]);core_setSecret(i[1]);return[{registry:"public.ecr.aws",username:i[0],password:i[1]}]}else{info(`AWS ECR detected with ${o} region`);const e=new jh.ECR({customUserAgent:"docker-login-action",credentials:Q,region:o,requestHandler:new Jh.NodeHttpHandler({httpAgent:d,httpsAgent:y})});const t=await e.getAuthorizationToken(c);if(!Array.isArray(t.authorizationData)||!t.authorizationData.length){throw new Error("Could not retrieve an authorization token from AWS ECR")}const n=[];for(const e of t.authorizationData){const t=Buffer.from(e.authorizationToken||"","base64").toString("utf-8");const o=t.split(":",2);core_setSecret(o[0]);core_setSecret(o[1]);n.push({registry:e.proxyEndpoint||"",username:o[0],password:o[1]})}return n}};async function login(e){if(/true/i.test(e.ecr)||e.ecr=="auto"&&isECR(e.registry)){await loginECR(e.registry,e.username,e.password,e.scope)}else{await loginStandard(e.registry,e.username,e.password,e.scope)}}async function logout(e,t){let n;if(t!==""){n=Object.assign({},process.env,{DOCKER_CONFIG:t});info(`Alternative config dir: ${t}`)}await Docker.getExecOutput(["logout",e],{ignoreReturnCode:true,env:n}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){warning(e.stderr.trim())}}))}async function loginStandard(e,t,n,o){if(!t&&!n){throw new Error("Username and password required")}if(!t){throw new Error("Username required")}if(!n){throw new Error("Password required")}await loginExec(e,t,n,o)}async function loginECR(e,t,n,o){info(`Retrieving registries data through AWS SDK...`);const i=await getRegistriesData(e,t,n);for(const e of i){await loginExec(e.registry,e.username,e.password,o)}}async function loginExec(e,t,n,o){let i;const c=scopeToConfigDir(e,o);if(c!==""){i=Object.assign({},process.env,{DOCKER_CONFIG:c});info(`Logging into ${e} (scope ${o})...`)}else{info(`Logging into ${e}...`)}await Docker.getExecOutput(["login","--password-stdin","--username",t,e],{ignoreReturnCode:true,silent:true,input:Buffer.from(n),env:i}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}info("Login Succeeded!")}))}const Xh=process.env["STATE_registries"]?JSON.parse(process.env["STATE_registries"]):[];const Zh=/true/i.test(process.env["STATE_logout"]||"");function setRegistries(e){saveState("registries",JSON.stringify(e))}function setLogout(e){saveState("logout",e)}async function main(){const e=getInputs();setLogout(e.logout);const t=getAuthList(e);setRegistries(Array.from(new Map(t.map((e=>[`${e.registry}|${e.configDir}`,{registry:e.registry,configDir:e.configDir}]))).values()));if(t.length===1){await login(t[0]);return}for(const e of t){await group(`Login to ${e.registry}`,(async()=>{await login(e)}))}}async function post(){if(!Zh){return}for(const e of Xh){await group(`Logout from ${e.registry}`,(async()=>{await logout(e.registry,e.configDir)}))}}run(main,post);var ey=o.i;export{ey as main};
|
||
//# sourceMappingURL=index.js.map |